add mobile

This commit is contained in:
2025-02-17 22:00:03 +08:00
parent 253bdabb97
commit ccaa46ff93
12 changed files with 81 additions and 37 deletions

View File

@@ -0,0 +1,6 @@
const statusFieldMap = {
'指導教諭確認中': '担任',
'主幹確認中': '指導',
'園長確認中': '主幹',
'完了': '園長'
}

View File

@@ -1,13 +1,6 @@
(function () {
"use strict";
const statusFieldMap = {
'指導教諭確認中': '担任',
'主幹確認中': '指導',
'園長確認中': '主幹',
'完了': '園長'
}
kintone.events.on("app.record.detail.process.proceed", (event) => {
const field = statusFieldMap[event.nextStatus.value];
if (field) {

View File

@@ -0,0 +1,12 @@
(function () {
"use strict";
kintone.events.on("mobile.app.record.detail.process.proceed", (event) => {
const field = statusFieldMap[event.nextStatus.value];
if (field) {
event.record[field].value = kintone.getLoginUser().name;
}
return event;
});
})();