|
@@ -749,20 +749,7 @@ export default {
|
|
created() {
|
|
created() {
|
|
that = this;
|
|
that = this;
|
|
if (!(this.searchForm.orderDate?.length > 0)) {
|
|
if (!(this.searchForm.orderDate?.length > 0)) {
|
|
- var now = new Date();
|
|
|
|
- var startDate = new Date(
|
|
|
|
- Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
|
|
- )
|
|
|
|
- .toISOString()
|
|
|
|
- .slice(0, 10);
|
|
|
|
- var endDate = new Date(
|
|
|
|
- Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
|
|
- )
|
|
|
|
- .toISOString()
|
|
|
|
- .slice(0, 10);
|
|
|
|
- this.searchForm.orderDate = [];
|
|
|
|
- this.searchForm.orderDate.push(startDate);
|
|
|
|
- this.searchForm.orderDate.push(endDate);
|
|
|
|
|
|
+ this.getNow()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -777,12 +764,25 @@ export default {
|
|
this.shopList = res.data.rows;
|
|
this.shopList = res.data.rows;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getNow(){
|
|
|
|
+ var now = new Date();
|
|
|
|
+ var startDate = new Date(
|
|
|
|
+ Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
|
|
+ )
|
|
|
|
+ .toISOString()
|
|
|
|
+ .slice(0, 10);
|
|
|
|
+ var endDate = new Date(
|
|
|
|
+ Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
|
|
+ )
|
|
|
|
+ .toISOString()
|
|
|
|
+ .slice(0, 10);
|
|
|
|
+ this.searchForm.orderDate = [];
|
|
|
|
+ this.searchForm.orderDate.push(startDate);
|
|
|
|
+ this.searchForm.orderDate.push(endDate);
|
|
|
|
+ },
|
|
onClear(type) {
|
|
onClear(type) {
|
|
if (type == "paymentType") {
|
|
if (type == "paymentType") {
|
|
this.searchForm.paymentType = null;
|
|
this.searchForm.paymentType = null;
|
|
@@ -1029,7 +1029,7 @@ export default {
|
|
search: null,
|
|
search: null,
|
|
orderStartDate: null,
|
|
orderStartDate: null,
|
|
orderEndDate: null,
|
|
orderEndDate: null,
|
|
- paymentStatus: null,
|
|
|
|
|
|
+ paymentStatus: "SUCCESS",
|
|
paymentType: null,
|
|
paymentType: null,
|
|
routingOrganId: null,
|
|
routingOrganId: null,
|
|
actualAmount: null,
|
|
actualAmount: null,
|
|
@@ -1041,6 +1041,7 @@ export default {
|
|
lessActualAmount: null,
|
|
lessActualAmount: null,
|
|
orderDate: [],
|
|
orderDate: [],
|
|
};
|
|
};
|
|
|
|
+ this.getNow()
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
removeGoodsList(item) {
|
|
removeGoodsList(item) {
|