|
@@ -143,7 +143,11 @@ export default {
|
|
]
|
|
]
|
|
if (this.$hasPermissions('B_purchaseReceiptDetail_costPrice')) { // 成本价权限
|
|
if (this.$hasPermissions('B_purchaseReceiptDetail_costPrice')) { // 成本价权限
|
|
arr.splice(6, 0, { title: '采购单价', dataIndex: 'productCost', width: '10%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
arr.splice(6, 0, { title: '采购单价', dataIndex: 'productCost', width: '10%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
- arr.splice(7, 0, { title: '采购金额', dataIndex: 'subtotal', width: '10%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
|
|
|
|
+ if (this.basicInfoData && this.basicInfoData.supplierName) {
|
|
|
|
+ arr.splice(7, 0, { title: '采购金额', dataIndex: 'subtotal', width: '10%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
|
|
|
|
+ } else {
|
|
|
|
+ arr.splice(7, 0, { title: '采购金额', dataIndex: 'subtotal', width: '10%', align: 'right', customRender: function (text) { return text || '--' } })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.basicInfoData && this.basicInfoData.state && this.basicInfoData.state === 'FINISH') {
|
|
if (this.basicInfoData && this.basicInfoData.state && this.basicInfoData.state === 'FINISH') {
|
|
arr.push({ title: '唯一码', dataIndex: 'action', width: '10%', align: 'center', scopedSlots: { customRender: 'action' } })
|
|
arr.push({ title: '唯一码', dataIndex: 'action', width: '10%', align: 'center', scopedSlots: { customRender: 'action' } })
|