From 191c8a8cfbf22395ad8256dc41538a46ce7af94c Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 04 一月 2024 18:46:02 +0800 Subject: [PATCH] 销售 报价单目前是查询的对应的客户下的报价单,没有依赖于销售机会,修改为报价单依赖于选择的销售机会的查询 --- src/views/service/clientServiceOrder/index.vue | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/views/service/clientServiceOrder/index.vue b/src/views/service/clientServiceOrder/index.vue index d1e9ff2..c8fd71a 100644 --- a/src/views/service/clientServiceOrder/index.vue +++ b/src/views/service/clientServiceOrder/index.vue @@ -179,14 +179,23 @@ // 璇锋眰鏁版嵁 async getData() { this.loading = true - await getServiceOrderList({ - keyword: this.keyword, - keywordType: this.keywordType, - page: this.pagerOptions.currPage, - pageSize: this.pagerOptions.pageSize, - salesDetailsId: 0, - serviceContractId: 0 - }) + console.log(this.addConfig) + let params = {} + if (this.addConfig.keywordType === "鏈嶅姟鍚堝悓") { + params = { + serviceContractId: this.addConfig.serviceContractId, + page: this.pagerOptions.currPage, + pageSize: this.pagerOptions.pageSize + } + } else { + params = { + keyword: this.keyword, + keywordType: this.keywordType, + page: this.pagerOptions.currPage, + pageSize: this.pagerOptions.pageSize + } + } + await getServiceOrderList(params) .then((res) => { console.log(res) if (res.code === 200) { -- Gitblit v1.8.0