@shisyamo4131/air-guard-v2-schemas 1.3.1-dev.6 → 1.3.1-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/OperationResult.js +6 -17
package/package.json
CHANGED
package/src/OperationResult.js
CHANGED
|
@@ -205,12 +205,14 @@ const classProps = {
|
|
|
205
205
|
customClass: OperationResultDetail,
|
|
206
206
|
}),
|
|
207
207
|
isLocked: defField("check", {
|
|
208
|
-
label: "
|
|
208
|
+
label: "実績確定",
|
|
209
209
|
default: false,
|
|
210
210
|
}),
|
|
211
|
-
|
|
212
|
-
/** add */
|
|
213
211
|
agreement: defField("object", { label: "取極め", customClass: Agreement }),
|
|
212
|
+
ignoreEmptyAgreement: defField("check", {
|
|
213
|
+
label: "取極めなしを無視",
|
|
214
|
+
default: false,
|
|
215
|
+
}),
|
|
214
216
|
};
|
|
215
217
|
|
|
216
218
|
export default class OperationResult extends Operation {
|
|
@@ -431,7 +433,7 @@ export default class OperationResult extends Operation {
|
|
|
431
433
|
enumerable: true,
|
|
432
434
|
get() {
|
|
433
435
|
if (this.hasAgreement) return true;
|
|
434
|
-
return this.
|
|
436
|
+
return this.ignoreEmptyAgreement;
|
|
435
437
|
},
|
|
436
438
|
set(v) {},
|
|
437
439
|
},
|
|
@@ -470,19 +472,6 @@ export default class OperationResult extends Operation {
|
|
|
470
472
|
this.refreshBillingDateAt();
|
|
471
473
|
}
|
|
472
474
|
|
|
473
|
-
/**
|
|
474
|
-
* Override `beforeDelete`.
|
|
475
|
-
* - Prevents deletion if the instance has `siteOperationScheduleId`.
|
|
476
|
-
*/
|
|
477
|
-
async beforeDelete() {
|
|
478
|
-
await super.beforeDelete();
|
|
479
|
-
if (this.siteOperationScheduleId) {
|
|
480
|
-
throw new Error(
|
|
481
|
-
"この稼働実績は現場稼働予定から作成されているため、削除できません。"
|
|
482
|
-
);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
|
|
486
475
|
/**
|
|
487
476
|
* Override update method to prevent editing if isLocked is true
|
|
488
477
|
* @param {*} options
|