From 4ffa5747aea9d18c5e6e3127c03c1132b32caa4b 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 14:34:51 +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 | 91 +++++++------------
1 file changed, 32 insertions(+), 59 deletions(-)
diff --git a/src/views/purchase/product/supProductEditDialog.vue b/src/views/purchase/product/supProductEditDialog.vue
index 6c257cd..27a240e 100644
--- a/src/views/purchase/product/supProductEditDialog.vue
+++ b/src/views/purchase/product/supProductEditDialog.vue
@@ -179,42 +179,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -585,30 +549,39 @@ export default {
this.$message.error("生产企业未通过审核不能提交!");
return;
}
- }
- 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;
+ }
+ });
+ });
}
- });
+ }
},
toViewCompanyCert(row) {
window.open(this.certFileUrl + row.filePath);