From da3dbb56388ae49097e50ded584ed2abb7f5022d Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 17 十月 2023 14:16:25 +0800
Subject: [PATCH] bug修复(5243)
---
src/views/sales/salesOpportunity/DetailOpportunity.vue | 80 ++++++++++++++++++++++++++++++----------
1 files changed, 60 insertions(+), 20 deletions(-)
diff --git a/src/views/sales/salesOpportunity/DetailOpportunity.vue b/src/views/sales/salesOpportunity/DetailOpportunity.vue
index 52c94cd..48b87cf 100644
--- a/src/views/sales/salesOpportunity/DetailOpportunity.vue
+++ b/src/views/sales/salesOpportunity/DetailOpportunity.vue
@@ -9,7 +9,7 @@
>
<template slot="title">
<div class="header">
- <span class="header-label">鏈轰細鍚嶇О</span>
+ <span class="header-label">閿�鍞満浼�</span>
<span class="header-title">{{ detailConfig.infomation.name }}</span>
</div>
</template>
@@ -22,7 +22,7 @@
<div>璺熻繘璁板綍<el-badge type="primary" :value="2"> </el-badge></div>
</template> -->
</el-tab-pane>
- <el-tab-pane label="鏀舵棰勬祴" name="collectionForecast"></el-tab-pane>
+ <!-- <el-tab-pane label="鏀舵棰勬祴" name="collectionForecast"></el-tab-pane> -->
<el-tab-pane label="鎶ヤ环鍗�" name="quotation"></el-tab-pane>
<el-tab-pane label="閿�鍞槑缁嗗崟" name="detail"></el-tab-pane>
<el-tab-pane label="鏈嶅姟鍚堝悓" name="serviceContract"></el-tab-pane>
@@ -240,23 +240,23 @@
</div> -->
</div>
<div v-if="activeName === 'second'" class="second">
- <FollowupRecords :isDetail="true" />
+ <FollowupRecords :isDetail="true" :add-config="addConfig" />
</div>
<div v-if="activeName === 'collectionForecast'" class="second">
<!-- <SalesOpportunity :isDetail="true" /> -->
</div>
<div v-if="activeName === 'quotation'" class="second">
- <Quotation :isDetail="true" />
+ <Quotation :isDetail="true" :add-config="addConfig" />
</div>
<div v-if="activeName === 'detail'" class="second">
- <SalesDetails :isDetail="true" />
+ <SalesDetails :isDetail="true" :add-config="addConfig" />
</div>
<div v-if="activeName === 'serviceContract'" class="second">
- <ServiceContract :isDetail="true" />
+ <ServiceContract :isDetail="true" :add-config="addConfig" />
</div>
</div>
<!-- 鎺ㄨ繘 -->
- <DetailAdvanceDialog v-if="advanceConfig.visible" :advance-config="advanceConfig" />
+ <DetailAdvanceDialog v-if="advanceConfig.visible" :advance-config="advanceConfig" @pushed="updatePushData" />
</el-drawer>
</div>
</template>
@@ -268,6 +268,7 @@
import ServiceContract from "@/views/service/serviceContract"
import DetailAdvanceDialog from "@/views/sales/salesOpportunity/DetailAdvanceDialog"
import { getSaleStageList } from "@/api/sales/salesOpportunity"
+import {getAllData} from "@/api/client/client";
export default {
name: "DetailClientManage",
props: {
@@ -285,6 +286,7 @@
computed: {},
data() {
return {
+ statusList: [],
detailConfig: this.opportunityDetail,
activeName: "first",
isSchduleExpand: true, // 杩涘害杩借釜
@@ -311,15 +313,43 @@
active: "",
allOptions: [],
options: []
- }
+ },
+ addConfig: {}
}
},
created() {
- this.getSaleStageList()
this.setData(this.detailConfig.infomation)
+ this.addConfig = {
+ id_name: "sale_chance_id",
+ keywordType: "閿�鍞満浼�",
+ keyword: this.detailConfig.infomation.name,
+ id: this.detailConfig.infomation.id,
+ common_name: this.detailConfig.infomation.name,
+ client_name: this.detailConfig.infomation.client.name,
+ contact_name: this.detailConfig.infomation.contact_name,
+ client_id: this.detailConfig.infomation.client_id,
+ contact_id: this.detailConfig.infomation.contact_id,
+ sale_chance_name: this.detailConfig.infomation.name,
+ sale_chance_id: this.detailConfig.infomation.id
+ }
+ this.getSaleStageList().then(()=>{
+ return this.getAllData()
+ }).then((statusList)=>{
+ this.statusList =statusList
+
+ this.setData(this.detailConfig.infomation)
+
+ })
+ console.log('this.detailConfig.infomation',this.detailConfig.infomation)
},
mounted() {},
methods: {
+ /**
+ * 鏇存柊鎺ㄨ繘璁板綍
+ */
+ updatePushData(e){
+ this.sale_active = e.step - 1
+ },
async getSaleStageList() {
await getSaleStageList().then((res) => {
this.stepsList = res.data.list
@@ -346,9 +376,9 @@
},
{
leftStr: "鍟嗘満鏉ユ簮",
- leftValue: item.SalesSources.name,
+ leftValue: item.sales_sources.name,
rightStr: "鍟嗘満绫诲瀷",
- rightValue: "" // item.SaleType.name
+ rightValue: item.sale_type.name
},
{
leftStr: "閿�鍞樁娈�",
@@ -358,20 +388,20 @@
},
{
leftStr: "鑰佸鎴疯惀閿�",
- leftValue: item.regular_customers_id,
- rightStr: "绛惧埌",
+ leftValue: item.regular_customers.name,
+ rightStr: "瀹℃壒鐘舵��",
rightValue: ""
},
{
- leftStr: "瀹℃壒鐘舵��",
- leftValue: "",
- rightStr: "绔炰簤瀵规墜",
+ leftStr: "绔炰簤瀵规墜",
+ leftValue: item.competitors,
+ rightStr: "鍒涘缓浜�",
rightValue: ""
},
{
- leftStr: "鍒涘缓浜�",
+ leftStr: "鍒涘缓鏃堕棿",
leftValue: "",
- rightStr: "鍒涘缓鏃堕棿",
+ rightStr: "",
rightValue: ""
}
]
@@ -392,7 +422,7 @@
leftStr: "棰勮鍚堝悓閲戦",
leftValue: item.projected_amount,
rightStr: "褰撳墠鐘舵��",
- rightValue: item.status_id
+ rightValue: this.statusList.find(ele=>ele.id === item.status_id)?.name ?? ''
}
]
this.dynamicInfoList = [
@@ -474,7 +504,7 @@
},
{
leftStr: "璇︾粏鍦板潃",
- leftValue: "",
+ leftValue: item.detail_address,
rightStr: "",
rightValue: ""
}
@@ -538,6 +568,16 @@
options: options,
id: this.detailConfig.infomation.id
}
+ },
+
+ getAllData(){
+ return getAllData()
+ .then((res) => {
+ return res.data.status
+ })
+ .catch((err) => {
+ console.log(err)
+ })
}
}
}
--
Gitblit v1.8.0