|
@@ -187,7 +187,7 @@
|
|
|
this.colspanNums = 5
|
|
|
if (this.$hasPermissions(this.authCode + '_costPrice')) { // 成本价权限
|
|
|
this.colspanNums = this.colspanNums + 1
|
|
|
- arr.push({ title: '成本价', field: 'showCost', width: 80,key: "f", align: 'center',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field])} })
|
|
|
+ arr.push({ title: '成本价', field: 'showCost', width: 80,key: "f", align: 'right',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field])} })
|
|
|
}
|
|
|
this.colspanNums = this.colspanNums + 2
|
|
|
arr = arr.concat([
|
|
@@ -197,20 +197,20 @@
|
|
|
|
|
|
if (this.$hasPermissions(this.authCode + '_provincePrice')) {
|
|
|
this.colspanNums = this.colspanNums + 1
|
|
|
- arr.push({ title: '省级价', field: 'provincePrice', width: 80,key: "i", align: 'center',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field])} })
|
|
|
+ arr.push({ title: '省级价', field: 'provincePrice', width: 80,key: "i", align: 'right',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field])} })
|
|
|
}
|
|
|
// 是否勾选市级价格
|
|
|
if (this.isCityPrice) {
|
|
|
this.colspanNums = this.colspanNums + 1
|
|
|
- arr.push({ title: '市级价', field: 'cityPrice', width: 80,key: "j", align: 'center',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field])} })
|
|
|
+ arr.push({ title: '市级价', field: 'cityPrice', width: 80,key: "j", align: 'right',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field])} })
|
|
|
if (this.$hasPermissions(this.authCode + '_salesPrice')) { // 售价权限
|
|
|
this.colspanNums = this.colspanNums + 1
|
|
|
- arr.push({ title: '销售价', field: 'price', width: 120,key: "k", align: 'center',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return discountPriceFormat(row,row[column.field],h)} })
|
|
|
+ arr.push({ title: '销售价', field: 'price', width: 100,key: "k", align: 'right',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return discountPriceFormat(row,row[column.field],h)} })
|
|
|
}
|
|
|
} else {
|
|
|
if (this.$hasPermissions(this.authCode + '_salesPrice')) { // 售价权限
|
|
|
this.colspanNums = this.colspanNums + 1
|
|
|
- arr.push({ title: '销售价', field: 'price', width: 120,key: "l", align: 'center',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return discountPriceFormat(row,row[column.field],h)} })
|
|
|
+ arr.push({ title: '销售价', field: 'price', width: 100,key: "l", align: 'right',operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return discountPriceFormat(row,row[column.field],h)} })
|
|
|
}
|
|
|
}
|
|
|
|