|
@@ -90,22 +90,22 @@ export default {
|
|
|
nowColumns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '8%', align: 'center' },
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '25%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productEntity.name', width: '25%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品名称', dataIndex: 'productName', width: '25%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '出库仓库', dataIndex: 'warehouseName', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '数量', dataIndex: 'qtyText', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '数量', dataIndex: 'qty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '库存', dataIndex: 'stockQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '单位', dataIndex: 'productEntity.unit', width: '14%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ { title: '单位', dataIndex: 'productUnit', width: '14%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
],
|
|
|
loadData: [],
|
|
|
nowUnColumns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '9%', align: 'center' },
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productEntity.name', width: '21%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品名称', dataIndex: 'productName', width: '21%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '出库仓库', dataIndex: 'warehouseName', width: '21%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '数量', dataIndex: 'qtyText', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '数量', dataIndex: 'importQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '库存', dataIndex: 'stockQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '单位', dataIndex: 'productEntity.unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '备注', dataIndex: 'importErrorMsgSet', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ { title: '单位', dataIndex: 'productUnit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '备注', dataIndex: 'errorDescSet', width: '20%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
],
|
|
|
unLoadData: [],
|
|
|
loading: false
|
|
@@ -114,6 +114,7 @@ export default {
|
|
|
methods: {
|
|
|
getData () {
|
|
|
const paramsData = JSON.parse(JSON.stringify(this.paramsData))
|
|
|
+ console.log(paramsData)
|
|
|
this.loadData = paramsData.rightList || []
|
|
|
this.unLoadData = paramsData.errorList || []
|
|
|
this.loadData.map((item, index) => {
|
|
@@ -121,7 +122,6 @@ export default {
|
|
|
})
|
|
|
this.unLoadData.map((item, index) => {
|
|
|
item.no = index + 1
|
|
|
- item.importErrorMsgSet = item.remarks.split(',')
|
|
|
})
|
|
|
},
|
|
|
// 确认导入
|