From b447b781046ffb86a63eaf432dfdc1f342dc2ac2 Mon Sep 17 00:00:00 2001 From: think <1787994136@qq.com> Date: Wed, 19 Feb 2025 10:47:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/heli/taskdispatch/detailDialog.vue | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/taskdispatch/detailDialog.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/taskdispatch/detailDialog.vue index cc068b8..949d49b 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/taskdispatch/detailDialog.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/taskdispatch/detailDialog.vue @@ -776,6 +776,34 @@ watch( } ); watches.push(unwatchDeviceModel); + //预计开始时间 + const unwatchStartTime = watch( + () => detail.deviceModel, + (newStartTime) => { + console.log(`第 ${index + 1} 行的预计开始时间变化为: ${newStartTime}`); + console.log("detail==", detail); + if (detail.startTime) { + //设置派工类型 + detail.dispatchTypes = "ASSEMBLE"; + openDialogWT(detail); + } + } + ); + watches.push(unwatchStartTime); + //预计结束时间 + const unwatchEndTime = watch( + () => detail.deviceModel, + (newEndTime) => { + console.log(`第 ${index + 1} 行的预计结束时间变化为: ${newEndTime}`); + console.log("detail==", detail); + if (detail.startTime) { + //设置派工类型 + detail.dispatchTypes = "ASSEMBLE"; + openDialogWT(detail); + } + } + ); + watches.push(unwatchEndTime); }); }, { deep: true