zhangdan 4 år sedan
förälder
incheckning
0b0de2fee1
1 ändrade filer med 6 tillägg och 7 borttagningar
  1. 6 7
      src/views/SetmealSales/VerificationRecords.vue

+ 6 - 7
src/views/SetmealSales/VerificationRecords.vue

@@ -168,10 +168,12 @@ export default {
       ],
       // 加载数据方法 必须为 Promise 对象
       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) {
+            _this.orderTotal = res.data.count
             const no = (res.data.pageNo - 1) * res.data.pageSize
             for (let i = 0; i < res.data.list.length; i++) {
               const _item = res.data.list[i]
@@ -202,7 +204,6 @@ export default {
         pageNo: 1,
         pageSize: 1000
       }).then(res => {
-        console.log(res, '-----------')
         if (res.status == 200) {
           this.storeOptionData = res.data.list || []
         }
@@ -223,8 +224,7 @@ export default {
       getVerificationRecordsListTotal(params).then(res => {
         console.log(res, '--------')
         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) {
     next(vm => {
-      // vm.getItemListData()
       vm.handleRest()
       vm.getStoreListData()
     })