From 8e5ec095fc4ba9cac7c91b681b06846d3e4155ae Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 16 十月 2023 21:17:29 +0800 Subject: [PATCH] 销售明细,退货单、退款单根据客户进行筛选 --- src/views/sales/salesOpportunity/DetailOpportunity.vue | 45 +++++++++++++++++++++++++++++++++++---------- 1 files changed, 35 insertions(+), 10 deletions(-) diff --git a/src/views/sales/salesOpportunity/DetailOpportunity.vue b/src/views/sales/salesOpportunity/DetailOpportunity.vue index d26b156..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,13 +388,13 @@ }, { leftStr: "鑰佸鎴疯惀閿�", - leftValue: item.regular_customers_id, + leftValue: item.regular_customers.name, rightStr: "瀹℃壒鐘舵��", rightValue: "" }, { leftStr: "绔炰簤瀵规墜", - leftValue: "", + leftValue: item.competitors, 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