From 9e007f676d0e55c4bf0cc2a78bc7dc96be188d50 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期四, 14 十二月 2023 19:45:52 +0800 Subject: [PATCH] 隐藏生成计划和服务收费管理模块 --- src/views/other/payment/receipt/index.vue | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/other/payment/receipt/index.vue b/src/views/other/payment/receipt/index.vue index 3e8365e..5649bb0 100644 --- a/src/views/other/payment/receipt/index.vue +++ b/src/views/other/payment/receipt/index.vue @@ -146,8 +146,7 @@ } this.getData() }, - mounted() { - }, + mounted() {}, methods: { setTable() { this.tableList = { @@ -181,14 +180,14 @@ // console.log() this.loading = true let params = {} - let sourceTyle = this.addConfig.keywordType === "閿�鍞槑缁嗗崟" ? 1 : 2 + let sourceTyle = this.addConfig.keywordType === "閿�鍞槑缁嗗崟" || this.addConfig.keywordType === "瀹㈡埛鍚嶇О" ? 1 : 2 if (this.addConfig.id) { params = { - sourceID: this.addConfig.id, + sourceId: this.addConfig.id, sourceType: sourceTyle, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize, - client_id:this.addConfig.client_id, + client_id: this.addConfig.client_id } } else { params = { @@ -196,13 +195,13 @@ keywordType: this.keywordType, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize, - client_id:this.addConfig.client_id, + client_id: this.addConfig.client_id } } await getReceiptList(params) .then((res) => { - if (res.data.code === 200) { - const resList = res?.data?.data?.data ?? [] + if (res.code === 200) { + const resList = res?.data?.data ?? [] if (resList.length > 0) { const list = resList.map((item) => { return { @@ -213,7 +212,7 @@ } }) this.tableList.tableInfomation = list || [] - this.pagerOptions.totalCount = res.data.data.count + this.pagerOptions.totalCount = res.data.count } else { this.tableList.tableInfomation = [] } @@ -247,8 +246,9 @@ addBtnClick() { this.editConfig.visible = true this.editConfig.title = "鏂板缓" - this.editConfig.sourceType = this.sourceType - this.editConfig.infomation = { ...this.addConfig, number: "" } + this.editConfig.sourceType = this.addConfig.keywordType === "瀹㈡埛鍚嶇О" ? 1 : this.sourceType + console.log(this.addConfig) + this.editConfig.infomation = { ...this.addConfig, saleDetailNumber: "" } } } } -- Gitblit v1.8.0