|
@@ -196,7 +196,12 @@ export default {
|
|
|
localDataSource: [], // 原始列表数据
|
|
|
detailData: null, // 详情数据
|
|
|
isShowBisiceInfo: false, // 显示基础内容
|
|
|
- colsArr: [
|
|
|
+ showCell: []// 已选要显示的列
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ colsArr () {
|
|
|
+ return [
|
|
|
{
|
|
|
title: '成本价',
|
|
|
key: 'totalCost',
|
|
@@ -209,11 +214,8 @@ export default {
|
|
|
disabled: !(this.detailData && this.detailData.sourceType && this.detailData.sourceType === 'XPRH_PURCHASE'),
|
|
|
checked: false
|
|
|
}
|
|
|
- ],
|
|
|
- showCell: []// 已选要显示的列
|
|
|
- }
|
|
|
- },
|
|
|
- computed: {
|
|
|
+ ]
|
|
|
+ },
|
|
|
// 是否自建单据
|
|
|
isOwerEdit () {
|
|
|
return this.detailData && this.detailData.sourceType == 'SALES'
|
|
@@ -237,9 +239,11 @@ export default {
|
|
|
{ title: '售价小计', dataIndex: 'totalAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
{ title: '折后小计', dataIndex: 'discountedAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
{ title: '折扣金额', dataIndex: 'discountAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
- { slots: { title: 'costTitle' }, dataIndex: 'totalCost', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
- { title: <a-tooltip placement="bottom" title='返券金额以销售单完结时的活动规则为准'>返券金额 <a-icon type="question-circle" /></a-tooltip>, dataIndex: 'giveAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
+ { slots: { title: 'costTitle' }, dataIndex: 'totalCost', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
]
|
|
|
+ if (this.detailData && this.detailData.sourceType && this.detailData.sourceType === 'XPRH_PURCHASE') {
|
|
|
+ arr.push({ title: <a-tooltip placement="bottom" title='返券金额以销售单完结时的活动规则为准'>返券金额 <a-icon type="question-circle" /></a-tooltip>, dataIndex: 'giveAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ }
|
|
|
// 下级创建,不显示仓库仓位
|
|
|
if (!this.isOwerEdit) {
|
|
|
arr.push({ title: '库存数量', dataIndex: 'currentStockQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|