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