From b71877f08ec034061e4e94527752683f99beee9d Mon Sep 17 00:00:00 2001 From: hwj Date: Mon, 13 Apr 2026 17:04:52 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E6=8E=92=E4=BA=A7=E5=BC=B9?= =?UTF-8?q?=E6=A1=86-=E6=B7=BB=E5=8A=A0=E6=98=AF=E5=90=A6=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E8=8A=82=E5=81=87=E6=97=A5switch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TaskScheduleDialog.vue | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/src/views/mes/tasksummary/components/TaskScheduleDialog.vue b/src/views/mes/tasksummary/components/TaskScheduleDialog.vue index 3a4864e6..64740eff 100644 --- a/src/views/mes/tasksummary/components/TaskScheduleDialog.vue +++ b/src/views/mes/tasksummary/components/TaskScheduleDialog.vue @@ -15,6 +15,24 @@ +
+ * + 生产时间安排 + +
+
+ 是否跳过节假日 + +
@@ -47,8 +65,10 @@ - - 库存任务 + +
+ +
@@ -261,8 +281,10 @@ const capacityTypeOptions = [ const searchForm = reactive({ inventoryTaskSchedule: false, + skipHoliday: false, sortRule: 2 as number | undefined, capacityType: 1 as number | undefined, + workTimeRange: ['08:00', '18:00'] as string[], code: '', orderDate: [] as string[], deliveryDate: [] as string[], @@ -553,8 +575,10 @@ const handleSearch = async () => { const handleReset = async () => { searchForm.inventoryTaskSchedule = false + searchForm.skipHoliday = false searchForm.sortRule = undefined searchForm.capacityType = 1 + searchForm.workTimeRange = ['08:00', '18:00'] searchForm.code = '' searchForm.orderDate = [] searchForm.deliveryDate = [] @@ -669,6 +693,11 @@ const handleSubmit = async () => { message.warning('请选择产能来源') return } + const [workStartTime, workEndTime] = Array.isArray(searchForm.workTimeRange) ? searchForm.workTimeRange : [] + if (!workStartTime || !workEndTime) { + message.warning('请选择生产时间安排') + return + } const selectedRows = detailTableRef.value?.getSelectionRows() || [] if (selectedRows.length === 0) { @@ -705,7 +734,10 @@ const handleSubmit = async () => { const scheduleResult = await TaskApi.oneClickSchedule({ createReqVO, sortRule: searchForm.sortRule, - capacityType: searchForm.capacityType + capacityType: searchForm.capacityType, + workStartTime, + workEndTime, + skipHoliday: searchForm.skipHoliday }) const scheduleData = Array.isArray(scheduleResult) ? scheduleResult