|
@@ -383,10 +383,13 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
{ field: 'totalCategory', key: '21', title: '款数', width: 50, align: 'center', fixed: 'right' },
|
|
|
- { field: 'totalQty', key: '22', title: '数量', width: 50, align: 'center', fixed: 'right' },
|
|
|
- { field: 'totalAmount', key: '23', title: '总金额', width: 60, align: 'center', fixed: 'right', renderBodyCell: ({ row, column, rowIndex }, h) => { return this.toThousands(row[column.field]) } },
|
|
|
- { field: 'lossAmount', key: '24', title: '优惠金额', width: 60, align: 'center', fixed: 'right', renderBodyCell: ({ row, column, rowIndex }, h) => { return this.toThousands(row[column.field]) } }
|
|
|
+ { field: 'totalQty', key: '22', title: '数量', width: 50, align: 'center', fixed: 'right' }
|
|
|
]
|
|
|
+ // 销售价权限
|
|
|
+ if (this.type == 'view' && this.$hasPermissions('B_salesDetail_salesPrice') || this.type == 'edit' && this.$hasPermissions('B_salesEdit_salesPrice')) {
|
|
|
+ cols.push({ field: 'totalAmount', key: '23', title: '总金额', width: 60, align: 'center', fixed: 'right', renderBodyCell: ({ row, column, rowIndex }, h) => { return this.toThousands(row[column.field]) } })
|
|
|
+ cols.push({ field: 'lossAmount', key: '24', title: '优惠金额', width: 60, align: 'center', fixed: 'right', renderBodyCell: ({ row, column, rowIndex }, h) => { return this.toThousands(row[column.field]) } })
|
|
|
+ }
|
|
|
// 编辑页面
|
|
|
if (this.type == 'edit') {
|
|
|
cols.push({
|