update folder structure
This commit is contained in:
30
src/サービスレポート・出張経費精算入力/pvc-desktop-view.js
Normal file
30
src/サービスレポート・出張経費精算入力/pvc-desktop-view.js
Normal file
@@ -0,0 +1,30 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* 新規登録・編集画面保存時の処理
|
||||
* engineer_mechanicに複数のユーザーが設定されている場合は、エラーを表示して保存をキャンセルする
|
||||
*/
|
||||
kintone.events.on(
|
||||
["app.record.create.submit", "app.record.edit.submit"],
|
||||
function (event) {
|
||||
const record = event.record;
|
||||
|
||||
// engineer_mechanicに複数のユーザーが設定されている場合は、エラーを表示して保存をキャンセル
|
||||
if (record.engineer_mechanic.value.length > 1) {
|
||||
event.error = "engineer/mechanicにユーザーが複数設定されています";
|
||||
return event;
|
||||
}
|
||||
|
||||
return event;
|
||||
}
|
||||
);
|
||||
|
||||
/**
|
||||
* 一覧画面の編集保存時の処理
|
||||
*/
|
||||
kintone.events.on("app.record.index.edit.submit", function (event) {
|
||||
event.error = "一覧画面からの編集機能は制限しております。";
|
||||
return event;
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user