fix app flow
This commit is contained in:
@@ -507,13 +507,13 @@ const statusFieldMap = {
|
||||
'園長確認中': '主幹',
|
||||
'完了': '園長'
|
||||
}
|
||||
function getUpdateFieldByNextFlow(nextStatus) {
|
||||
return statusFieldMap[nextStatus];
|
||||
}
|
||||
|
||||
function addApproveFlowAction() {
|
||||
return kintone.events.on("app.record.detail.process.proceed", (event) => {
|
||||
event.record[getUpdateFieldByNextFlow(event.nextStatus.value)].value = kintone.getLoginUser().name;
|
||||
const field = statusFieldMap[event.nextStatus.value];
|
||||
if (field) {
|
||||
event.record[field].value = kintone.getLoginUser().name;
|
||||
}
|
||||
return event;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user