|
@@ -289,10 +289,12 @@ export default {
|
|
|
{ title: '待下推数', field: 'unpushedQty', width: 80, key: 'o', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return row.borrowFlag != '1' ? numsFormat(row[column.field]) : '--' } },
|
|
|
{ title: '已下推数', field: 'pushedQty', width: 80, key: 'p', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return row.borrowFlag != '1' ? numsFormat(row[column.field]) : '--' } }
|
|
|
])
|
|
|
-
|
|
|
+ // 如果有转采购额
|
|
|
+ if (this.showConvertPromoGifts) {
|
|
|
+ arr.push({ title: '转采购额数量', field: 'convertPromoGiftsQty', width: 100, key: 'z', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return row.convertPromoGiftsFlag ? numsFormat(row[column.field]) : '--' } })
|
|
|
+ }
|
|
|
arr.push({ title: '已取消数', field: 'cancelQty', width: 80, key: 'q', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return row.borrowFlag != '1' ? numsFormat(row[column.field]) : '--' } })
|
|
|
if (this.showAveragePrice) {
|
|
|
- this.colspanNums = this.colspanNums + 4
|
|
|
arr.push({ title: '单重(kg)', field: 'weightKg', width: 80, key: 'q1', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
|
arr.push({ title: '合计重量(kg)', field: 'totalWeightKg', width: 98, key: 'q2', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
|
if (this.$hasPermissions(this.authCode + '_costPrice') || this.showPrice) {
|
|
@@ -308,6 +310,10 @@ export default {
|
|
|
hasConvertPromoGifts () {
|
|
|
return this.detailData && this.detailData.totalConvertPromoGiftsQty
|
|
|
},
|
|
|
+ // 是否显示可转采购额
|
|
|
+ showConvertPromoGifts () {
|
|
|
+ return this.activeList && this.activeList.filter(item => item.enabledFlag == 1).find(item => item.promotionRule && item.promotionRule.convertExpenseFlag == 1 && item.promotionRule.promotionRuleType == 'BUY_PROD_GIVE_PROD')
|
|
|
+ },
|
|
|
// 是否显示库存列
|
|
|
showStock () {
|
|
|
return this.detailData && (this.detailData.billStatus == 'WAIT_AUDIT' || this.detailData.billStatus == 'HQ_CHANGE' || this.detailData.billStatus == 'SUPERIOR_AUDIT_REJECT') && this.$hasPermissions('B_salesAudit')
|