update process
This commit is contained in:
21
src/8.学期反省・評価/processStateHandler.js
Normal file
21
src/8.学期反省・評価/processStateHandler.js
Normal 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;
|
||||
});
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user