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 | 55 ++++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 40 insertions(+), 15 deletions(-)
diff --git a/src/views/sales/salesOpportunity/DetailOpportunity.vue b/src/views/sales/salesOpportunity/DetailOpportunity.vue
index 90985b1..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>
@@ -256,7 +256,7 @@
</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, // 杩涘害杩借釜
@@ -330,11 +332,24 @@
sale_chance_name: this.detailConfig.infomation.name,
sale_chance_id: this.detailConfig.infomation.id
}
- this.getSaleStageList()
- this.setData(this.detailConfig.infomation)
+ 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
@@ -363,7 +378,7 @@
leftStr: "鍟嗘満鏉ユ簮",
leftValue: item.sales_sources.name,
rightStr: "鍟嗘満绫诲瀷",
- rightValue: "" // item.SaleType.name
+ rightValue: item.sale_type.name
},
{
leftStr: "閿�鍞樁娈�",
@@ -373,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: ""
}
]
@@ -407,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 = [
@@ -489,7 +504,7 @@
},
{
leftStr: "璇︾粏鍦板潃",
- leftValue: "",
+ leftValue: item.detail_address,
rightStr: "",
rightValue: ""
}
@@ -553,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