From 0f4bfcc4a1e391077c61d7006301fe81863b2750 Mon Sep 17 00:00:00 2001 From: yinq Date: Mon, 12 May 2025 09:23:33 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=94=9F=E4=BA=A7=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=9F=A5=E8=AF=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/planInfo/index.vue | 90 ++++++++++++++++++++------------ 1 file changed, 58 insertions(+), 32 deletions(-) diff --git a/src/views/mes/planInfo/index.vue b/src/views/mes/planInfo/index.vue index 9715906..9a5c29d 100644 --- a/src/views/mes/planInfo/index.vue +++ b/src/views/mes/planInfo/index.vue @@ -23,7 +23,8 @@ - + - - - - - - - - + + + - + @@ -51,11 +55,12 @@ - - - - - + + + + + + 搜索 重置 @@ -400,12 +405,22 @@
+ + + + + 机台信息
已勾选机台: {{ tag }}
- + 机台编号 @@ -450,16 +465,7 @@ /> - - - - - + 已勾选机台: {{ tag }}
- + 机台编号 @@ -631,7 +637,7 @@ 已勾选机台: {{ tag }} - + 机台编号 @@ -1050,6 +1056,18 @@ const data = reactive>({ ], planAmount: [ { required: true, message: '计划数量不能为空', trigger: 'blur' } + ], + planBeginTime: [ + { required: true, message: '计划日期不能为空', trigger: 'blur' } + ], + planAmount1: [ + { required: true, message: '早班数量不能为空', trigger: 'blur' } + ], + planAmount2: [ + { required: true, message: '中班数量不能为空', trigger: 'blur' } + ], + planAmount3: [ + { required: true, message: '晚班数量不能为空', trigger: 'blur' } ] } }); @@ -1066,10 +1084,18 @@ const getWorkshopId = async () => { /** 查询生产计划信息列表 */ const getList = async () => { loading.value = true; - const res = await listPlanInfo(queryParams.value); - planInfoList.value = res.rows; - total.value = res.total; - loading.value = false; + try { + const params = { + ...queryParams.value, + planBeginTime: queryParams.value.planRangeTime?.[0], + planEndTime: queryParams.value.planRangeTime?.[1] + }; + const res = await listPlanInfo(params); + planInfoList.value = res.rows; + total.value = res.total; + } finally { + loading.value = false; + } }; /** 取消按钮 */