From 26c39cd359bc0d2edc88408ff51ef70554e32a90 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 29 二月 2024 09:48:17 +0800 Subject: [PATCH] 跟进记录明细报价单没点击弹框下拉数据为空的问题选择机会或者报价单赋值客户名称 --- src/views/other/commonDialog/SelectLeadDialog.vue | 67 ++++++++++++++++++++++++--------- 1 files changed, 48 insertions(+), 19 deletions(-) diff --git a/src/views/other/commonDialog/SelectLeadDialog.vue b/src/views/other/commonDialog/SelectLeadDialog.vue index 51ab2cd..a5897d4 100644 --- a/src/views/other/commonDialog/SelectLeadDialog.vue +++ b/src/views/other/commonDialog/SelectLeadDialog.vue @@ -10,18 +10,12 @@ > <div class="bg-view"> <div class="query-bg"> - <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="queryInput" size="mini" class="input-with-select"> - <el-select v-model="select" slot="prepend" placeholder="璇烽�夋嫨"> - <el-option label="鍏ㄩ儴瀛楁" value="1"></el-option> - <el-option label="瀹㈡埛鍚嶇О" value="2"></el-option> - <el-option label="鍟嗘満鐘舵��" value="3"></el-option> - <el-option label="鍟嗘満鏉ユ簮" value="4"></el-option> - </el-select> - </el-input> - <div class="btn"> - <el-button type="primary" size="mini" disabled>璁剧疆瀛楁</el-button> - <el-button type="primary" size="mini" disabled>蹇�熷垱寤�</el-button> - </div> + <SearchCommonView + ref="searchCommonView" + :search-options="searchOptions" + @searchClick="searchClick" + @resetClick="resetClick" + /> </div> <el-table :data="tableData" @@ -42,7 +36,10 @@ </div> </el-table> <div slot="footer" class="dialog-footer"> - <div class="remark">璇存槑锛氭敮鎸佸瀛楁妯$硦鏌ヨ锛屼粎鏄剧ず绗﹀悎鏉′欢鐨勫墠5鏉℃暟鎹�</div> + <!-- <div class="remark">璇存槑锛氭敮鎸佸瀛楁妯$硦鏌ヨ锛屼粎鏄剧ず绗﹀悎鏉′欢鐨勫墠5鏉℃暟鎹�</div> --> + <div class="btn-pager"> + <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" /> + </div> </div> </div> </el-dialog> @@ -51,8 +48,10 @@ <script> import { getSalesLeadsList } from "@/api/client/salesLead" +import pageMixin from "@/components/makepager/pager/mixin/pageMixin" export default { name: "EditSelChanceDialog", + mixins: [pageMixin], props: { editCommonConfig: { type: Object, @@ -60,7 +59,8 @@ return { editVisible: false, title: "", - infomation: {} + infomation: {}, + search_map: {} } } } @@ -75,7 +75,12 @@ select: "1", tableData: [], searchSelOptions: [], - loading: false + loading: false, + searchOptions: [ + { value: "name", label: "瀹㈡埛鍚嶇О" }, + { value: "businessStatus", label: "鍟嗘満鐘舵��" }, + { value: "sales_sources_id", label: "鍟嗘満鏉ユ簮" } + ] } }, created() { @@ -88,7 +93,11 @@ // 璇锋眰鏁版嵁 async getData() { this.loading = true - await getSalesLeadsList() + await getSalesLeadsList({ + search_map: this.editConfig.search_map, + page: this.pagerOptions.currPage, + pageSize: this.pagerOptions.pageSize + }) .then((res) => { console.log(res) if (res.code === 200) { @@ -98,7 +107,8 @@ ...item } }) - this.tableData = list.slice(0, 5) || [] + this.tableData = list || [] + this.pagerOptions.totalCount = res.data.count } else { this.tableData = [] } @@ -117,6 +127,18 @@ this.editConfig.editVisible = false console.log(row) this.$emit("selClient", row, "lead") + }, + // 鎼滅储 + searchClick(val, content) { + console.log(val, content) + this.editConfig.search_map = { + [val.value]: content + } + this.getData() + }, + resetClick() { + this.editConfig.search_map = {} + this.getData() } } } @@ -146,9 +168,16 @@ cursor: pointer; } .dialog-footer { - height: 40px; - line-height: 40px; + height: 50px; + line-height: 50px; color: red; + .btn-pager { + display: flex; + margin-top: 0px; + .page { + margin-left: auto; + } + } } ::v-deep { .input-with-select .el-input-group__prepend { -- Gitblit v1.8.0