|
@@ -168,10 +168,12 @@ export default {
|
|
],
|
|
],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
- this.searchForm.beginDate == null ? this.searchForm.beginDate = getDate.getToday().starttime : null
|
|
|
|
- this.searchForm.endDate == null ? this.searchForm.endDate = getDate.getToday().endtime : null
|
|
|
|
- return getVerificationRecordsList(Object.assign(parameter, this.searchForm)).then(res => {
|
|
|
|
|
|
+ const _this = this
|
|
|
|
+ _this.searchForm.beginDate == null ? this.searchForm.beginDate = getDate.getToday().starttime : null
|
|
|
|
+ _this.searchForm.endDate == null ? this.searchForm.endDate = getDate.getToday().endtime : null
|
|
|
|
+ return getVerificationRecordsList(Object.assign(parameter, _this.searchForm)).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
|
|
+ _this.orderTotal = res.data.count
|
|
const no = (res.data.pageNo - 1) * res.data.pageSize
|
|
const no = (res.data.pageNo - 1) * res.data.pageSize
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
const _item = res.data.list[i]
|
|
const _item = res.data.list[i]
|
|
@@ -202,7 +204,6 @@ export default {
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: 1000
|
|
pageSize: 1000
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log(res, '-----------')
|
|
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.storeOptionData = res.data.list || []
|
|
this.storeOptionData = res.data.list || []
|
|
}
|
|
}
|
|
@@ -223,8 +224,7 @@ export default {
|
|
getVerificationRecordsListTotal(params).then(res => {
|
|
getVerificationRecordsListTotal(params).then(res => {
|
|
console.log(res, '--------')
|
|
console.log(res, '--------')
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- this.orderTotal = res.data.orderNum || 0
|
|
|
|
- this.paymentAmountTotal = res.data.paymentAmount || 0
|
|
|
|
|
|
+ this.paymentAmountTotal = res.data || 0
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -288,7 +288,6 @@ export default {
|
|
},
|
|
},
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {
|
|
next(vm => {
|
|
- // vm.getItemListData()
|
|
|
|
vm.handleRest()
|
|
vm.handleRest()
|
|
vm.getStoreListData()
|
|
vm.getStoreListData()
|
|
})
|
|
})
|