From 2d3e5c4b3341adcc4bfe62fcf6c6ce421b873789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Fri, 16 Aug 2024 09:01:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9Q3=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionQ3/index.vue | 40 ++++++++++++---------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/src/views/qms/inspectionQ3/index.vue b/src/views/qms/inspectionQ3/index.vue index 015febed4..e414ef0b7 100644 --- a/src/views/qms/inspectionQ3/index.vue +++ b/src/views/qms/inspectionQ3/index.vue @@ -450,31 +450,25 @@ const submitForm = async (formType, submitData) => { } data.responUser = userStore.getUser.nickname data.subList = tableData.value // 拼接子表数据参数 - if (tableData.value.find((item) => item.qty <= 0)) { - message.warning('数量必须大于0') - formRef.value.formLoading = false - return - } - // 判断子表中,是否有不同的生产线和工位 - // if (tableData.value.length > 0) { - // let productionLineCode = tableData.value[0].productionLineCode - // let workStationCode = tableData.value[0].workStationCode - // for(var i=0;i { + if(item.qty == 0){ + message.warning("数量不能为0") + flag = true; + return; + } + }) + if(flag){ + return + } + formRef.value.formLoading = true await InspectionQ3MainApi.createInspectionQ3Main(data) message.success(t('common.createSuccess')) } else { From 4f081edd52b192b923ccc6d3437d74b7d654bba4 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 16 Aug 2024 09:00:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scrap/scrapRequestMain/index.vue | 356 ++++++++++++------ 1 file changed, 246 insertions(+), 110 deletions(-) diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue index 831ecf7ed..76fc6168f 100644 --- a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue @@ -1,23 +1,31 @@