lilei 2 months ago
parent
commit
e067ffa31d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/salesManagement/salesQueryNew/list.vue

+ 4 - 1
src/views/salesManagement/salesQueryNew/list.vue

@@ -563,11 +563,14 @@ export default {
       arr.map(item => {
         item.isShow = true
         const arr = ['totalAmount', 'totalPushedAmount', 'totalUnpushedAmount', 'totalConvertPromoGiftsAmount']
-        item.isShow = _this.$hasPermissions('M_salesQueryList_salesPrice') ? arr.includes(item.dataIndex) : !arr.includes(item.dataIndex)
+        if (arr.includes(item.dataIndex)) {
+          item.isShow = _this.$hasPermissions('M_salesQueryList_salesPrice')
+        }
         if (_this.colsArr.find(k => k.value == item.dataIndex)) {
           item.isShow = _this.showCols.includes(item.dataIndex)
         }
       })
+      console.log(arr, _this.$hasPermissions('M_salesQueryList_salesPrice'))
       return arr.filter(item => item.isShow)
     }
   },