From 191c8a8cfbf22395ad8256dc41538a46ce7af94c Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 04 一月 2024 18:46:02 +0800 Subject: [PATCH] 销售 报价单目前是查询的对应的客户下的报价单,没有依赖于销售机会,修改为报价单依赖于选择的销售机会的查询 --- src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue index c7fa8a6..e4e0366 100644 --- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue +++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue @@ -107,7 +107,7 @@ :disabled="isNameChanceEdit || isView" ></el-autocomplete> <div - v-if="!isNameChanceEdit && !isView" + v-if="!isNameChanceEdit && !isView&&editConfig.infomation.client_name" class="common-select-btn" @click="selClientClick('chance')" > @@ -178,7 +178,7 @@ :disabled="isAddQuatation || isView" ></el-autocomplete> <div - v-if="!isAddQuatation && !isView" + v-if="!isAddQuatation && !isView&&editConfig.infomation.sale_chance_name" class="common-select-btn" @click="selClientClick('quotation')" > @@ -787,6 +787,7 @@ if (res.code == 200) { console.log(res) this.quotationList = res.data.list + this.count=res.data.count; if (value === "鍏ㄩ儴浜у搧") { // this.quotationList.map((item) => { // if (item.id === this.editConfig.infomation.quotationId) { @@ -814,11 +815,15 @@ restaurants = this.clientList console.log(restaurants, "瀹㈡埛鍗�") } else if (value === "chance") { - restaurants = this.saleChancelist + if(this.editConfig.infomation.client_name){ + restaurants = this.saleChancelist + } } else if (value === "subbill") { restaurants = this.subOrderList } else if (value === "quotation") { - restaurants = this.quotationList + if(this.editConfig.infomation.sale_chance_name){ + restaurants = this.quotationList + } } var results = queryString ? restaurants.filter(this.createStateFilter(queryString, value)) : restaurants cb(results) @@ -896,6 +901,8 @@ this.editSelCommonConfig.title = "鎶ヤ环鍗�" this.editSelCommonConfig.editVisible = true this.editSelCommonConfig.clientId = this.clientId + this.editSelCommonConfig.isRequest = false + this.editSelCommonConfig.count=this.count this.editSelCommonConfig.tableInfomation = [...this.quotationList] } }, -- Gitblit v1.8.0