From c575681eed4e8c4e93ea9e371aa09d036919112a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Mon, 3 Apr 2023 17:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E9=80=81=E4=BA=A7=E5=93=81=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchase/product/supProductEditDialog.vue | 86 ++++++++++++------- 1 file changed, 55 insertions(+), 31 deletions(-) diff --git a/src/views/purchase/product/supProductEditDialog.vue b/src/views/purchase/product/supProductEditDialog.vue index 27a240e..6fd1bd5 100644 --- a/src/views/purchase/product/supProductEditDialog.vue +++ b/src/views/purchase/product/supProductEditDialog.vue @@ -549,38 +549,62 @@ export default { this.$message.error("生产企业未通过审核不能提交!"); return; } - if(val==3){ - this.$confirm( "已审核通过,是否需要重新提交变更", { - confirmButtonText: "确定", - type: "warning", - showCancelButton: false, - }) - .then(() => { - this.$refs['inputQuery'].validate(valid => { - if (valid) { - // this.inputQuery.auditStatus = val; - - - let formData = JSON.parse(JSON.stringify(this.inputQuery)); - formData.manufacturerIdFk = this.manufacturerId; - formData.auditStatus = val; - this.loading = true; - let urlName = this.editType == 0 ? 'add' : 'update'; - addOrModifyRegistration(formData, urlName).then(response => { - this.loading = false; - if (response.code === 20000) { - this.closeRegistrationDialog(true); - this.$message.success("保存成功"); - } else { - this.$message.error(response.message); - } - }); - } else { - return false; - } - }); + } + if(val==3){ + this.$confirm( "已审核通过,是否需要重新提交变更", { + confirmButtonText: "确定", + type: "warning", + showCancelButton: false, + }) + .then(() => { + this.$refs['inputQuery'].validate(valid => { + if (valid) { + // this.inputQuery.auditStatus = val; + + + let formData = JSON.parse(JSON.stringify(this.inputQuery)); + formData.manufacturerIdFk = this.manufacturerId; + formData.auditStatus = val; + this.loading = true; + let urlName = this.editType == 0 ? 'add' : 'update'; + addOrModifyRegistration(formData, urlName).then(response => { + this.loading = false; + if (response.code === 20000) { + this.closeRegistrationDialog(true); + this.$message.success("保存成功"); + } else { + this.$message.error(response.message); + } + }); + } else { + return false; + } }); - } + }); + }else{ + this.$refs['inputQuery'].validate(valid => { + if (valid) { + // this.inputQuery.auditStatus = val; + + + let formData = JSON.parse(JSON.stringify(this.inputQuery)); + formData.manufacturerIdFk = this.manufacturerId; + formData.auditStatus = val; + this.loading = true; + let urlName = this.editType == 0 ? 'add' : 'update'; + addOrModifyRegistration(formData, urlName).then(response => { + this.loading = false; + if (response.code === 20000) { + this.closeRegistrationDialog(true); + this.$message.success("保存成功"); + } else { + this.$message.error(response.message); + } + }); + } else { + return false; + } + }); } }, toViewCompanyCert(row) {