Sfoglia il codice sorgente

fix: 供应商新增增加资质新增

liujt 5 giorni fa
parent
commit
2b786586a2

+ 12 - 0
src/views/saleManage/contact/components/addContactDialog.vue

@@ -1411,6 +1411,18 @@
               this.form.qualificationCensorship = res.value;
               this.enableStatus = res.value
             });
+
+            this.$refs.certificateManagementRef &&
+            this.$refs.certificateManagementRef.init(
+              this.form.type != 1
+                ? this.getLabel == '供货列表'
+                  ? '3'
+                  : '6'
+                : '4',
+              this.form.id,
+              this.form.name,
+              true
+            );
           });
         } else {
           this.isUpdate = true;

+ 2 - 3
src/views/saleManage/contact/components/certificateManagement/components/add-dialog.vue

@@ -249,12 +249,11 @@
           this.getInfo(row.id);
         } else {
           this.title = '新增';
-          console.log(holderData, 'holderData');
-
+          console.log(holderData, 'holderData~~~');
+          this.form.holderType = holderData?.holderType || '';
           if (holderData.holderId) {
             this.form.holder = holderData.holder;
             this.form.holderId = holderData.holderId;
-            this.form.holderType = holderData.holderType;
           }
 
           // this.getOrderCode();

+ 5 - 2
src/views/saleManage/contact/components/certificateManagement/index.vue

@@ -206,9 +206,11 @@
       this.requestDict('规则状态');
     },
     methods: {
-      init(holderType, holderId, holder) {
+      init(holderType, holderId, holder, isContactAdd) {
         this.holderData = { holderId, holder, holderType };
-        this.getTable();
+        if(!isContactAdd) {
+          this.getTable();
+        }
       },
       async submit(row) {
         this.processSubmitDialogFlag = true;
@@ -251,6 +253,7 @@
         }
       },
       handleUpload(type, row) {
+        console.log(type, row, this.holderData, 'row');
         this.$refs.addDialogRef.open(row, type, this.holderData);
       },