From 22f9e1efd4c77a2c665d2e3e2c84c25e6ae775d4 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 21 十二月 2023 17:07:01 +0800 Subject: [PATCH] 销售明细单 销售机会,销售报价单根据接口获取的配置判断是否必填的功能+按钮禁止点击的样式修改 --- src/views/client/followupRecords/index.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue index 592b2bb..4904afc 100644 --- a/src/views/client/followupRecords/index.vue +++ b/src/views/client/followupRecords/index.vue @@ -50,7 +50,7 @@ </div> </div> <!-- 鏂板缓/缂栬緫璺熻繘璁板綍 --> - <AddFollowupRecordsDialog v-if="editConfig.visible" :edit-contacts-config="editConfig" /> + <AddFollowupRecordsDialog :is-detail="isDetail" v-if="editConfig.visible" :edit-contacts-config="editConfig" /> <!-- 鑱旂郴浜鸿鎯� --> <DetailContacts v-if="contactsDeail.visible" :contacts-detail="contactsDeail" /> <!-- 瀹㈡埛璇︽儏 --> @@ -249,21 +249,24 @@ }, // 鎼滅储 onFilterSearch(searchText) { - this.search_map.name = searchText ?? "" + this.search_map.client_name = searchText ?? "" this.pagerOptions.currPage = 1 this.getData() }, // 鏂板缓 addBtnClick() { this.editConfig.title = "鏂板缓" - this.editConfig.infomation = { ...this.addConfig } + this.editConfig.infomation = { ...this.addConfig ,contact_name:"",sales_leads_name:"",sale_chance_name:""} this.editConfig.visible = true }, // 缂栬緫 handleClick(row) { console.log(row) this.editConfig.title = "缂栬緫" - this.editConfig.infomation = { ...row, sale_chance_name: "", sales_leads_name: "" } + let config=JSON.parse(JSON.stringify(row)); + config.client_status_id=config.client_status_id?config.client_status_id:null + config.contact_information_id=config.contact_information_id?config.contact_information_id:null + this.editConfig.infomation = { ...config, sale_chance_name: "", sales_leads_name: "" } this.editConfig.visible = true }, // 鍒犻櫎 -- Gitblit v1.8.0