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] =?UTF-8?q?=E4=BF=AE=E6=94=B9Q3=E9=A1=B5=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=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 {