From b24e72955145f56e12fe5088d6b449b10cc94cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 30 Jan 2024 09:29:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=96=99=E4=BF=AE=E6=94=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnRequestMain/index.vue | 10 +++++----- .../productionreturnRequestMainNo/index.vue | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index b30d8f4af..4516a3016 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue @@ -543,15 +543,15 @@ const handleDeleteTable = (item, index) => { // 主子数据 提交 const submitForm = async (formType, data) => { data.subList = tableData.value // 拼接子表数据参数 - // 子表不能为空 - if (tableData.value.length == 0) { - formRef.value.formLoading = false - return message.warning('请添加明细数据!') - } // 合格退料 添加参数 isOK data.isOK = true try { if (formType === 'create') { + // 子表不能为空 + if (tableData.value.length == 0) { + formRef.value.formLoading = false + return message.warning('请添加明细数据!') + } await ProductionreturnRequestMainApi.createProductionreturnRequestMain(data) message.success(t('common.createSuccess')) } else { diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue index cf48af850..16c6a20fd 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue @@ -541,15 +541,15 @@ const handleDeleteTable = (item, index) => { // 主子数据 提交 const submitForm = async (formType, data) => { data.subList = tableData.value // 拼接子表数据参数 - // 子表不能为空 - if (tableData.value.length == 0) { - formRef.value.formLoading = false - return message.warning('请添加明细数据!') - } // 合格退料 添加参数 isOK data.isOK = false // 不合格 false try { if (formType === 'create') { + // 子表不能为空 + if (tableData.value.length == 0) { + formRef.value.formLoading = false + return message.warning('请添加明细数据!') + } await ProductionreturnRequestMainNoApi.createProductionreturnRequestMain(data) message.success(t('common.createSuccess')) } else {