From f69adc78298acdfa601b58934bffe7f2a45d38cd Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期一, 08 一月 2024 16:57:54 +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 53a79ca..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, - - sourceId:this.addConfig.salesDetailsId - }) + 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