-
营收总报
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
钱包汇总
+
-
-
-
营收总报
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -110,7 +109,7 @@
import {getMerchantOrderReport} from "@/api/adapayMember/adapayMember";
import Template from "@/views/billing/template";
import {getMerchantOrderList} from "@/api/order/order";
-
+import { getDay } from "@/utils/common";
export default {
dicts: ["order_status"],
components: {Template},
@@ -125,7 +124,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
- merchantId: '',
+ merchantId: this.$route.query.merchantId,
startTime: '',
endTime: '',
orderCode: null,
@@ -137,11 +136,9 @@ export default {
};
},
async created() {
- console.log("this.$route", this.$route);
- this.merchantId = this.$route.query.merchantId;
- console.log("merchantId", this.merchantId)
+ await this.defaultDate()
this.getList();
- this.getMerchantOrderList();
+ this.getOrderList();
},
methods: {
getList() {
@@ -162,22 +159,51 @@ export default {
);
},
- getMerchantOrderList() {
+ getOrderList() {
const param = {
merchantId: this.merchantId,
- startTime: "2023-01-01"
+ startTime: "2023-01-01",
+ pageNum: this.queryParams.pageNum,
+ pageSize: this.queryParams.pageSize,
}
console.log("param", param)
- getMerchantOrderList(param).then((response) => {
+ getMerchantOrderList(this.queryParams).then((response) => {
console.log("getMerchantOrderList", response)
this.merchantOrderList = response.rows;
this.total = response.total;
})
- }
+ },
+ handleQuery() {
+ let arr = this.createTimeRange[0]
+ let str = this.createTimeRange[1]
+ this.queryParams.startTime = arr
+ this.queryParams.endTime = str
+ this.queryParams.pageNum = 1;
+ this.getList();
+ this.getOrderList();
+ },
+ defaultDate() {
+ //字符串拼接,开始时间,结束时间
+ let beg = getDay(-7); //当月第一天
+ let end = getDay(0); //当天
+ this.createTimeRange = [beg, end]; //将值设置给插件绑定的数据
+ // return this.createTimeRange;
+ this.queryParams.startTime = beg
+ this.queryParams.endTime = end
+ },
+
}
}
-
diff --git a/jsowell-ui/src/views/financial/components/virtualFinance.vue b/jsowell-ui/src/views/financial/components/virtualFinance.vue
index 23122a991..f3afc9fbb 100644
--- a/jsowell-ui/src/views/financial/components/virtualFinance.vue
+++ b/jsowell-ui/src/views/financial/components/virtualFinance.vue
@@ -1,7 +1,7 @@
-
+
虚拟充值用户充电收入
@@ -15,7 +15,8 @@
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
-
-
-
-
-
-
-
-
+
+
+
+
+ 查询
+
-
- {{ showOrHideText }}
-
-
+
+
+