fix file name
This commit is contained in:
21
src/12.2歳以上日誌出力用/pvc.processAutoUpdate.js
Normal file
21
src/12.2歳以上日誌出力用/pvc.processAutoUpdate.js
Normal file
@@ -0,0 +1,21 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
const statusFieldMap = {
|
||||
'指導教諭確認中(0~2歳)': '担任',
|
||||
'指導教諭確認中(3~5歳)': '担任',
|
||||
'園長確認中': '指導',
|
||||
'完了': '園長'
|
||||
}
|
||||
|
||||
window._StatusFieldMap = statusFieldMap
|
||||
|
||||
kintone.events.on("app.record.detail.process.proceed", (event) => {
|
||||
const field = statusFieldMap[event.nextStatus.value];
|
||||
if (field) {
|
||||
event.record[field].value = kintone.getLoginUser().name;
|
||||
}
|
||||
return event;
|
||||
});
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user