yusheng 1 год назад
Родитель
Сommit
88514ce727
1 измененных файлов с 5 добавлено и 5 удалено
  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 &&
               this.$refs.inventoryTable.putTableValue(data);
               this.$refs.inventoryTable.putTableValue(data);
             this.getLinkInfo(data.contactId);
             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('请先选择询价方名称');
           return this.$message.error('请先选择询价方名称');
         const data = await getTableList({
         const data = await getTableList({
           pageNum: 1,
           pageNum: 1,
           size: 30,
           size: 30,
-          contactName: name,
+          contactId: id,
           approvalStatus: 2,
           approvalStatus: 2,
           status: 1
           status: 1
         });
         });
@@ -594,7 +594,7 @@
         });
         });
 
 
         this.getLinkInfo(obj.id);
         this.getLinkInfo(obj.id);
-        this.getBusinessList(base.name);
+        this.getBusinessList(base.id);
 
 
         this.$nextTick(() => {
         this.$nextTick(() => {
           if(this.form.opportunityType==1){
           if(this.form.opportunityType==1){