|
@@ -91,6 +91,14 @@
|
|
|
bordered
|
|
|
:style="{ height: tableHeight+84.5+'px' }"
|
|
|
:scroll="{ y: tableHeight - 20 }">
|
|
|
+ <!-- 调拨类型 -->
|
|
|
+ <template slot="allocateType" slot-scope="text, record">
|
|
|
+ <div>
|
|
|
+ <span>{{ record.allocateSortName||'--' }}</span>
|
|
|
+ <span v-if="record.allocateSortName&&record.allocateTypeName">/{{ record.allocateTypeName }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <!-- 费用归属品类 -->
|
|
|
<template slot="productType" slot-scope="text, record">
|
|
|
<span v-if="record.productTypeName1">{{ record.productTypeName1 }}{{ record.productTypeName2?'>'+record.productTypeName2:'' }}{{ record.productTypeName3?'>'+record.productTypeName3:'' }}</span>
|
|
|
<span v-else>--</span>
|
|
@@ -200,7 +208,7 @@ export default {
|
|
|
{ title: '客户名称', dataIndex: 'targetName', width: '20%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '客户类型', dataIndex: 'targetTypeDictValue', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '费用类型', dataIndex: 'costTypeName', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '调拨类型', dataIndex: 'allocateSortName', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '调拨类型', dataIndex: 'allocateSortName', width: '15%', align: 'center', scopedSlots: { customRender: 'allocateType' } },
|
|
|
{ title: '费用归属品牌', dataIndex: 'productBrandName', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '费用归属品类', dataIndex: 'productTypeName1', width: '15%', align: 'center', scopedSlots: { customRender: 'productType' } },
|
|
|
{ title: '调拨数量', dataIndex: 'totalQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -209,11 +217,11 @@ export default {
|
|
|
{ title: '操作员', dataIndex: 'creatorName', width: '11%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
|
|
|
]
|
|
|
if (this.$hasPermissions('M_allocationOrderTotalList_salesPrice')) { // 成本价权限
|
|
|
- arr.splice(10, 0, { title: '售价', dataIndex: 'totalPrice', width: '11%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.splice(10, 0, { title: '售价', dataIndex: 'totalPrice', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
if (this.$hasPermissions('M_allocationOrderTotalList_costPrice')) { // 成本价权限
|
|
|
- arr.splice(11, 0, { title: '成本价', dataIndex: 'totalCost', width: '11%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
- arr.splice(12, 0, { title: '毛利', dataIndex: 'totalGrossProfit', width: '11%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.splice(11, 0, { title: '成本价', dataIndex: 'totalCost', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.splice(12, 0, { title: '毛利', dataIndex: 'totalGrossProfit', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
return arr
|
|
|
}
|