From c26bbddf16ba6117707a88311bfd678faf81fb79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Thu, 4 Feb 2021 15:24:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/order/buyiRecord.vue | 110 +++++++++++++++------------- 1 file changed, 59 insertions(+), 51 deletions(-) diff --git a/src/components/order/buyiRecord.vue b/src/components/order/buyiRecord.vue index 6345ae2..0d72a48 100644 --- a/src/components/order/buyiRecord.vue +++ b/src/components/order/buyiRecord.vue @@ -9,6 +9,36 @@ @@ -92,13 +72,30 @@ export default { return { tableData: [], count: 0, - pageNum: 1 + pageNum: 1, + products: [], + dateRange:[], + searchModel: { + type:null, + page:1, + ProductId:null, + Btime: "", + Etime: "" + }, + types: [ + { text: "充值", value: 1 }, + { text: "退款", value: 2 }, + { text: "补差价", value: 3 }, + ], } }, created () { this.$store.commit('setCurrentNav', '订单管理>>原后台财务明细>>补遗记录') this.getData() + this.$api.get("course/v1/product/page", this.searchModel).then(res => { + this.products = res.Data; + }); }, methods: { getData () { @@ -141,6 +138,17 @@ export default { }).then(res => { console.log(res) }) + }, + search () { + if (this.dateRange && this.dateRange.length == 2) { + this.searchModel.Btime = this.dateRange[0]; + this.searchModel.Etime = this.dateRange[1]; + } + this.searchModel.page = 1 + this.$api.get(this.$api.phpURL + 'order/FinanceCheck/buyiList',this.searchModel).then(res => { + this.tableData = res.data + this.count = parseInt(res.count) + }) } } }