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 {