lilei vor 2 Monaten
Ursprung
Commit
e067ffa31d
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  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)
     }
   },