|
@@ -37,6 +37,16 @@
|
|
:scroll="{ y: 200 }"
|
|
:scroll="{ y: 200 }"
|
|
:pagination="false"
|
|
:pagination="false"
|
|
bordered>
|
|
bordered>
|
|
|
|
+ <template slot="errorMsg" slot-scope="text,record">
|
|
|
|
+ <a-popover placement="topRight">
|
|
|
|
+ <template slot="content">
|
|
|
|
+ <p v-for="d in record.importErrorMsgSet" v-if="d">{{ d }};</p>
|
|
|
|
+ </template>
|
|
|
|
+ <a-button type="link">
|
|
|
|
+ 查看
|
|
|
|
+ </a-button>
|
|
|
|
+ </a-popover>
|
|
|
|
+ </template>
|
|
</a-table>
|
|
</a-table>
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<div class="btn-con">
|
|
<div class="btn-con">
|
|
@@ -100,7 +110,7 @@ export default {
|
|
{ title: '在途数(个)', dataIndex: 'inTransit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '在途数(个)', dataIndex: 'inTransit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '最大库存数(个)', dataIndex: 'upperLimit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '最大库存数(个)', dataIndex: 'upperLimit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '最小库存数(个)', dataIndex: 'lowerLimit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '最小库存数(个)', dataIndex: 'lowerLimit', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
- { title: '错误原因', dataIndex: 'errorMsg', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true }
|
|
|
|
|
|
+ { title: '错误原因', scopedSlots: { customRender: 'errorMsg' }, width: '10%', align: 'center' }
|
|
],
|
|
],
|
|
loadData: [],
|
|
loadData: [],
|
|
unLoadData: [],
|
|
unLoadData: [],
|
|
@@ -122,6 +132,7 @@ export default {
|
|
if (res.data.errorList && res.data.errorList.length > 0) {
|
|
if (res.data.errorList && res.data.errorList.length > 0) {
|
|
res.data.errorList.map((item, index) => {
|
|
res.data.errorList.map((item, index) => {
|
|
item.no = index + 1
|
|
item.no = index + 1
|
|
|
|
+ item.importErrorMsgSet = item.errorMsg ? item.errorMsg.split(';') : []
|
|
})
|
|
})
|
|
}
|
|
}
|
|
_this.loadData = res.data.rightList || []
|
|
_this.loadData = res.data.rightList || []
|