update process

This commit is contained in:
2025-09-15 09:47:59 +08:00
parent 1d06e25626
commit c5cf6c0c22
48 changed files with 163 additions and 59 deletions

View File

@@ -0,0 +1,21 @@
(function () {
"use strict";
const statusFieldMap = {
'園長確認中1学期': '指導1',
'担任作成中2学期': '園長1',
'園長確認中2学期': '指導2',
'担任作成中3学期': '園長2',
'園長確認中3学期': '指導3',
'完了3学期': '園長3',
}
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;
});
})();