yusheng hace 1 año
padre
commit
88514ce727
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      src/views/saleManage/quotation/components/addDialog.vue

+ 5 - 5
src/views/saleManage/quotation/components/addDialog.vue

@@ -497,7 +497,7 @@
             this.$refs.inventoryTable &&
               this.$refs.inventoryTable.putTableValue(data);
             this.getLinkInfo(data.contactId);
-            this.getBusinessList(data.contactName);
+            this.getBusinessList(data.contactId);
           });
         }
       },
@@ -542,13 +542,13 @@
         }
       },
       //获取客户的商机列表
-      async getBusinessList(name) {
-        if (!this.form.contactName)
+      async getBusinessList(id) {
+        if (!this.form.contactId)
           return this.$message.error('请先选择询价方名称');
         const data = await getTableList({
           pageNum: 1,
           size: 30,
-          contactName: name,
+          contactId: id,
           approvalStatus: 2,
           status: 1
         });
@@ -594,7 +594,7 @@
         });
 
         this.getLinkInfo(obj.id);
-        this.getBusinessList(base.name);
+        this.getBusinessList(base.id);
 
         this.$nextTick(() => {
           if(this.form.opportunityType==1){