From 23d80c1b64f23ede237ab8e89ebc2ee2aaf43f26 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 19 七月 2023 19:32:10 +0800
Subject: [PATCH] 销售模块接口联调

---
 src/views/sales/salesOpportunity/index.vue |   98 +++++++-----------------------------------------
 1 files changed, 15 insertions(+), 83 deletions(-)

diff --git a/src/views/sales/salesOpportunity/index.vue b/src/views/sales/salesOpportunity/index.vue
index eba3e09..d12fe97 100644
--- a/src/views/sales/salesOpportunity/index.vue
+++ b/src/views/sales/salesOpportunity/index.vue
@@ -85,16 +85,16 @@
       this.tableList = {
         tableInfomation: [],
         tableColumn: [
-          { label: "鏈轰細鍚嶇О", prop: "opportunityName", min: 120 }, // 鏈轰細鍚嶇О
-          { label: "瀹㈡埛鍚嶇О", prop: "customName", min: 90 }, // 瀹㈡埛鍚嶇О
-          { label: "閿�鍞満浼氱紪鍙�", prop: "salesOpportunityNo" }, // 閿�鍞満浼氱紪鍙�
-          { label: "鑱旂郴浜哄鍚�", prop: "contactName", min: 100 }, // 鑱旂郴浜哄鍚�
-          { label: "閿�鍞樁娈�", prop: "saleStage" }, // 閿�鍞樁娈�
-          { label: "鍙兘鎬�(%)", prop: "possible" }, // 鍙兘鎬�
-          { label: "棰勮鎴愪氦鏃ユ湡", prop: "expectDealDate" }, // 棰勮鎴愪氦鏃ユ湡
-          { label: "棰勮鍚堝悓閲戦", prop: "expectContractAmount" }, // 棰勮鍚堝悓閲戦
-          { label: "棰勭畻缁濆鍊�", prop: "budgetAbsoluteValue" }, // 棰勭畻缁濆鍊�
-          { label: "閿�鍞礋璐d汉", prop: "salesHead" } // 閿�鍞礋璐d汉
+          { label: "鏈轰細鍚嶇О", prop: "name", min: 120 }, // 鏈轰細鍚嶇О
+          { label: "瀹㈡埛鍚嶇О", prop: "client_name", min: 90 }, // 瀹㈡埛鍚嶇О
+          { label: "閿�鍞満浼氱紪鍙�", prop: "number" }, // 閿�鍞満浼氱紪鍙�
+          { label: "鑱旂郴浜哄鍚�", prop: "contact_name", min: 100 }, // 鑱旂郴浜哄鍚�
+          { label: "閿�鍞樁娈�", prop: "sale_stage_id" }, // 閿�鍞樁娈�
+          { label: "鍙兘鎬�(%)", prop: "possibilities_id" }, // 鍙兘鎬�
+          { label: "棰勮鎴愪氦鏃ユ湡", prop: "expected_time" }, // 棰勮鎴愪氦鏃ユ湡
+          { label: "棰勮鍚堝悓閲戦", prop: "projected_amount" }, // 棰勮鍚堝悓閲戦
+          { label: "棰勭畻缁濆鍊�", prop: "capital_budget" }, // 棰勭畻缁濆鍊�
+          { label: "閿�鍞礋璐d汉", prop: "member_id" } // 閿�鍞礋璐d汉
         ]
       }
       this.searchOptions = []
@@ -113,7 +113,9 @@
             if (res.data.list && res.data.list.length > 0) {
               const list = res.data.list.map((item) => {
                 return {
-                  ...item
+                  ...item,
+                  client_name: item.client.name,
+                  contact_name: item.contact.name
                 }
               })
               this.tableList.tableInfomation = list || []
@@ -135,84 +137,14 @@
     addBtnClick() {
       this.editConfig.visible = true
       this.editConfig.title = "鏂板缓"
-      this.editConfig.infomation = {
-        customName: "",
-        salesOpportunityNo: "POT521",
-        opportunityName: "",
-        contactName: "",
-        businessSource: "",
-        businessType: "",
-        saleStage: "",
-        salesHead: "",
-        oldCustomerMarket: "",
-        competitor: "",
-        possible: "",
-        currency: "",
-        budgetAbsoluteValue: "",
-        expectDealDate: "",
-        expectContractAmount: "",
-        currentState: "",
-        demandPainPoint: "",
-        projectApproval: "",
-        fundBudget: "",
-        decisionMaker: "",
-        decisionFactors: "",
-        decisionFlow: "",
-        programme: "",
-        advantage: "",
-        disadvantage: "",
-        opportunity: "",
-        threaten: "",
-        position: "",
-        map: "",
-        country: "1",
-        province: "1",
-        city: "1",
-        region: "1",
-        notes: ""
-      }
+      this.editConfig.infomation = {}
     },
     // 缂栬緫
     handleClick(row) {
       console.log(row)
       this.editConfig.visible = true
       this.editConfig.title = "缂栬緫"
-      this.editConfig.infomation = {
-        customName: "",
-        salesOpportunityNo: "POT521",
-        opportunityName: "",
-        contactName: "",
-        businessSource: "",
-        businessType: "",
-        saleStage: "",
-        salesHead: "",
-        oldCustomerMarket: "",
-        competitor: "",
-        possible: "",
-        currency: "",
-        budgetAbsoluteValue: "",
-        expectDealDate: "",
-        expectContractAmount: "",
-        currentState: "",
-        demandPainPoint: "",
-        projectApproval: "",
-        fundBudget: "",
-        decisionMaker: "",
-        decisionFactors: "",
-        decisionFlow: "",
-        programme: "",
-        advantage: "",
-        disadvantage: "",
-        opportunity: "",
-        threaten: "",
-        position: "",
-        map: "",
-        country: "1",
-        province: "1",
-        city: "1",
-        region: "1",
-        notes: ""
-      }
+      this.editConfig.infomation = { ...row }
     }
   }
 }

--
Gitblit v1.8.0