|
@@ -137,8 +137,8 @@ export default {
|
|
|
},
|
|
|
// 筛选
|
|
|
ruleTypeList: [
|
|
|
- { value: 'BUY_PROD_GIVE_PROD', label: '卖产品送产品', selected: true },
|
|
|
- { value: 'BUY_PROD_GIVE_MONEY', label: '卖产品送采购额', selected: true },
|
|
|
+ { value: 'BUY_PROD_GIVE_PROD', label: '买产品送产品', selected: true },
|
|
|
+ { value: 'BUY_PROD_GIVE_MONEY', label: '买产品送采购额', selected: true },
|
|
|
{ value: 'PROMO_PROD', label: '特价活动', selected: true }
|
|
|
],
|
|
|
ruleEnableList: [
|
|
@@ -265,7 +265,8 @@ export default {
|
|
|
title: '累计',
|
|
|
width: 50,
|
|
|
align: 'center',
|
|
|
- renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'gateUnit', _this.openTotalProduct)
|
|
|
+ renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'gateUnit')
|
|
|
+ // renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'gateUnit', _this.openTotalProduct)
|
|
|
},
|
|
|
{
|
|
|
field: 'geteBalance',
|
|
@@ -339,7 +340,8 @@ export default {
|
|
|
title: '累计',
|
|
|
width: 50,
|
|
|
align: 'center',
|
|
|
- renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'regularUnit', _this.openTotalProduct)
|
|
|
+ renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'regularUnit')
|
|
|
+ // renderBodyCell: ({ row, column, rowIndex }, h) => formatTd(row, column, rowIndex, 'regularUnit', _this.openTotalProduct)
|
|
|
},
|
|
|
{
|
|
|
field: 'regularBaseVal',
|
|
@@ -420,17 +422,16 @@ export default {
|
|
|
{ field: 'totalCategory', key: '22', title: '款数', width: 50, align: 'center', fixed: 'right' },
|
|
|
{ field: 'totalQty', key: '23', title: '数量', width: 50, align: 'center', fixed: 'right' }
|
|
|
]
|
|
|
- if (this.type == 'edit') {
|
|
|
- cols.unshift({
|
|
|
- field: '',
|
|
|
- key: '0',
|
|
|
- type: 'checkbox',
|
|
|
- title: '',
|
|
|
- width: 23,
|
|
|
- align: 'center',
|
|
|
- fixed: 'left'
|
|
|
- })
|
|
|
- }
|
|
|
+ // 复选框
|
|
|
+ cols.unshift({
|
|
|
+ field: '',
|
|
|
+ key: '0',
|
|
|
+ type: 'checkbox',
|
|
|
+ title: '',
|
|
|
+ width: 23,
|
|
|
+ align: 'center',
|
|
|
+ fixed: 'left'
|
|
|
+ })
|
|
|
// 销售价权限
|
|
|
if (this.type == 'view' && this.$hasPermissions('B_salesDetail_salesPrice') || this.type == 'edit' && this.$hasPermissions('B_salesEdit_salesPrice')) {
|
|
|
cols.push({ field: 'totalAmount', key: '24', title: '总金额', width: 60, align: 'center', fixed: 'right', renderBodyCell: ({ row, column, rowIndex }, h) => { return this.toThousands(row[column.field]) } })
|
|
@@ -541,8 +542,8 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
return cols.filter((item, index) => {
|
|
|
- const i = this.type === 'edit' ? index - 1 : index
|
|
|
- return this.showCols.includes(i.toString()) || (this.type === 'edit' && index == 0) || index > (this.type === 'edit' ? 8 : 7)
|
|
|
+ const i = index - 1
|
|
|
+ return this.showCols.includes(i.toString()) || index == 0 || index > 12
|
|
|
})
|
|
|
}
|
|
|
},
|