|
@@ -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)
|
|
|
}
|
|
|
},
|