@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.51 → 2.3.7-dev.53
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/SiteOperationSchedule.js +13 -1
package/package.json
CHANGED
|
@@ -595,7 +595,13 @@ export default class SiteOperationSchedule extends Operation {
|
|
|
595
595
|
// 加えて重複も除外する。
|
|
596
596
|
const targetDates = dates
|
|
597
597
|
.map((date) => {
|
|
598
|
-
if (date instanceof Date)
|
|
598
|
+
if (date instanceof Date) {
|
|
599
|
+
const jstDate = new Date(date.getTime() + 9 * 60 * 60 * 1000);
|
|
600
|
+
const year = jstDate.getUTCFullYear();
|
|
601
|
+
const month = String(jstDate.getUTCMonth() + 1).padStart(2, "0");
|
|
602
|
+
const day = String(jstDate.getUTCDate()).padStart(2, "0");
|
|
603
|
+
return `${year}-${month}-${day}`;
|
|
604
|
+
}
|
|
599
605
|
return date;
|
|
600
606
|
})
|
|
601
607
|
.filter((date) => date !== this.date)
|
|
@@ -610,6 +616,12 @@ export default class SiteOperationSchedule extends Operation {
|
|
|
610
616
|
instance.docId = "";
|
|
611
617
|
instance.dateAt = new Date(date);
|
|
612
618
|
instance.operationResultId = null;
|
|
619
|
+
|
|
620
|
+
// 2025-12-23 追加
|
|
621
|
+
// 複製元が既に配置通知を出している可能性があるため、`hasNotification` を false に更新
|
|
622
|
+
instance.employees.forEach((emp) => (emp.hasNotification = false));
|
|
623
|
+
instance.outsourcers.forEach((out) => (out.hasNotification = false));
|
|
624
|
+
|
|
613
625
|
return instance;
|
|
614
626
|
});
|
|
615
627
|
|