From 7874262b15ca8d2495012ed5f934332dbeeadf29 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期四, 28 九月 2023 09:42:57 +0800 Subject: [PATCH] feat: 客户管理页列表配置列显隐控制 --- src/views/sales/quotation/DetailQuotation.vue | 66 ++++++++++++++------------------ 1 files changed, 29 insertions(+), 37 deletions(-) diff --git a/src/views/sales/quotation/DetailQuotation.vue b/src/views/sales/quotation/DetailQuotation.vue index 9ff8004..3fbd54a 100644 --- a/src/views/sales/quotation/DetailQuotation.vue +++ b/src/views/sales/quotation/DetailQuotation.vue @@ -14,15 +14,15 @@ </div> </template> <div class="content"> - <div class="top">{{ "鍚堝悓鍙戣捣浜猴細" + "" }}</div> + <!-- <div class="top">{{ "鍚堝悓鍙戣捣浜猴細" + "" }}</div> --> <div class="tab-view"> <el-tabs v-model="activeName" @tab-click="tabsClick"> <el-tab-pane label="璇︽儏" name="first"></el-tab-pane> - <el-tab-pane label="鎶ヤ环鍙樻洿鍗�" name="changeOrder"> - <!-- <template slot="label"> + <!-- <el-tab-pane label="鎶ヤ环鍙樻洿鍗�" name="changeOrder"> --> + <!-- <template slot="label"> <div>璺熻繘璁板綍<el-badge type="primary" :value="2"> </el-badge></div> </template> --> - </el-tab-pane> + <!-- </el-tab-pane> --> <el-tab-pane label="閿�鍞槑缁嗗崟" name="detail"></el-tab-pane> <el-tab-pane label="鏈嶅姟鍚堝悓" name="serviceContract"></el-tab-pane> </el-tabs> @@ -126,10 +126,10 @@ <!-- <FollowupRecords :isDetail="true" /> --> </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> </el-drawer> @@ -171,14 +171,26 @@ showSummary: { show: true, total: true, - sumProp: ["other1", "other2", "other3", "other4"], - mergeNumber: 3 + sumProp: ["amount", "price", "total"], + mergeNumber: 1 }, - productTableList: {} + productTableList: {}, + addConfig: {} } }, created() { this.setData(this.detailConfig.infomation) + this.addConfig = { + id_name: "quotation_number", + keywordType: "鎶ヤ环鍗�", + keyword: this.detailConfig.infomation.number, + 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 + } this.setTableForm() }, mounted() {}, @@ -193,7 +205,7 @@ }, { leftStr: "鎶ヤ环鍗曠姸鎬�", - leftValue: item.quotation_status_id, + leftValue: item.quotation_status.name, rightStr: "鑱旂郴浜哄鍚�", rightValue: item.contact_name }, @@ -201,7 +213,7 @@ leftStr: "鏈夋晥鏈熻嚦", leftValue: item.validity_date, rightStr: "閿�鍞礋璐d汉", - rightValue: item.member_id + rightValue: item.member.username }, { leftStr: "閿�鍞満浼�", @@ -237,33 +249,13 @@ }, setTableForm() { this.productTableList = { - tableData: [ - { - id: "1", - productName: "涓婃捣鏈夐檺鍏徃", - other0: "ZDYBD03-1", - other1: "12", - other2: "5.00", - other4: "3.00", - other3: "2.00" - } - ], + tableData: this.detailConfig.infomation.products, tableColumn: [ - { label: "#", prop: "id", width: 40 }, - { label: "鍚◣鍗曚环", prop: "other9", input: true }, - { label: "浜у搧鍚嶇О", prop: "productName", input: true, isRequird: true }, - { label: "浜у搧缂栧彿", prop: "other0" }, - { label: "鏁伴噺", prop: "other1", input: true, isRequird: true }, - { label: "鎶樻墸鐜�(%)", prop: "other6", input: true }, - { label: "涓嶅惈绋庡崟浠�", prop: "other7", input: true }, - { label: "鎶樻墸棰�", prop: "other2" }, - { label: "绋�(閿�鍞�)", prop: "other7", input: true }, - { label: "瀹為檯鍚◣鍗曚环", prop: "other3" }, - { label: "涓嶅惈绋庨噾棰�", prop: "other4" }, - { label: "浠风◣鍚堣", prop: "other3", input: true }, - { label: "鎻忚堪", prop: "other8" }, - { label: "婧愬崟绫诲瀷", prop: "other5" }, - { label: "婧愬崟", prop: "other6" } + { label: "浜у搧鍚嶇О", prop: "name", productName: true, isRequird: true }, + { label: "浜у搧缂栧彿", prop: "number" }, + { label: "鏁伴噺", prop: "amount", inputNumber: true, isRequird: true }, + { label: "閿�鍞崟浠�", prop: "price", inputFloat: true }, + { label: "浠风◣鍚堣", prop: "total", inputFloat: true } ] } } -- Gitblit v1.8.0