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) {