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) + }) } } }