Pārlūkot izejas kodu

【修改】销售返利单列表数据显示

howie 2 gadi atpakaļ
vecāks
revīzija
c429de6629
1 mainītis faili ar 17 papildinājumiem un 17 dzēšanām
  1. 17 17
      src/views/finance/rebate_list.vue

+ 17 - 17
src/views/finance/rebate_list.vue

@@ -767,26 +767,26 @@ export default {
       }
       const res = await getRebateOrderList(params)
       this.listTotal = res.data.total
-      let arr = res.data.records
-      arr.forEach(value => {
+      this.dataList = res.data.records
+      this.dataList.forEach(value => {
         value.sums1 = []
         value.sums2 = ['amount', 'rebateAmount', 'withholdAmount', 'allowanceAmount', 'handledAllowanceAmount']
       })
-      if (this.isCustomer) {
-        let arr2 = arr.filter(v => {
-          if (
-            (v.examineStatus == 'OK_ONE' || v.examineStatus == 'OK' || v.examineStatus == 'FAIL') &&
-            v.withholdAmount == 0
-          ) {
-            return v
-          }
-        })
-        this.dataList = arr2
-        this.listTotal = arr2.length
-      } else {
-        this.dataList = arr
-        this.listTotal = res.data.total
-      }
+      // if (this.isCustomer) {
+      //   let arr2 = arr.filter(v => {
+      //     if (
+      //       (v.examineStatus == 'OK_ONE' || v.examineStatus == 'OK' || v.examineStatus == 'FAIL') &&
+      //       v.withholdAmount == 0
+      //     ) {
+      //       return v
+      //     }
+      //   })
+      //   this.dataList = arr2
+      //   this.listTotal = arr2.length
+      // } else {
+      //   this.dataList = arr
+      //   this.listTotal = res.data.total
+      // }
     },
     //确认
     confirmFn(id, isShow) {