|
@@ -53,47 +53,75 @@ export default {
|
|
|
flagMap: {},
|
|
|
invoiceUrls: [],
|
|
|
moneyTypeMap: {},
|
|
|
+ statusMap: {},
|
|
|
model: {
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
title: '序号',
|
|
|
dataIndex: 'index',
|
|
|
+ width: 70,
|
|
|
customRender: (text, record, index) => {
|
|
|
return index + 1
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: '名称',
|
|
|
+ width: 100,
|
|
|
dataIndex: 'spareName'
|
|
|
},
|
|
|
{
|
|
|
title: '编号',
|
|
|
+ width: 100,
|
|
|
dataIndex: 'no'
|
|
|
},
|
|
|
{
|
|
|
title: '规格',
|
|
|
+ width: 100,
|
|
|
dataIndex: 'ggxh'
|
|
|
},
|
|
|
{
|
|
|
title: '仓库',
|
|
|
- dataIndex: 'storeName'
|
|
|
+ dataIndex: 'storeName',
|
|
|
+ width: 100
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
title: '货架号',
|
|
|
- dataIndex: 'storePosition'
|
|
|
+ dataIndex: 'storePosition',
|
|
|
+ width: 100
|
|
|
},
|
|
|
{
|
|
|
title: '采购数量',
|
|
|
dataIndex: 'num',
|
|
|
- width: 150,
|
|
|
- scopedSlots: { customRender: 'num' }
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '已采购数量',
|
|
|
+ width: 100,
|
|
|
+ dataIndex: 'purchasedNum'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '已入库数量',
|
|
|
+ width: 100,
|
|
|
+ dataIndex: 'inStoreNum'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '明细状态',
|
|
|
+ width: 100,
|
|
|
+ dataIndex: 'detailStatus',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return this.BaseTool.Table.getMapText(this.statusMap, text)
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
// 下拉框map
|
|
|
+ this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_DETAIL_STATUS)
|
|
|
+ console.log(this.statusMap)
|
|
|
this.flagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PROJECT_NEW_AND_OLD)
|
|
|
this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LONG_YAN_PURCHASE_TYPE)
|
|
|
},
|