|
@@ -342,6 +342,9 @@
|
|
bordered
|
|
bordered
|
|
@change="handleMeTableChange"
|
|
@change="handleMeTableChange"
|
|
>
|
|
>
|
|
|
|
+ <template slot="supplierId" slot-scope="text, record">
|
|
|
|
+ {{ formatSupplierName(record.supplierId) }}
|
|
|
|
+ </template>
|
|
<template slot="depotId" slot-scope="text, record">
|
|
<template slot="depotId" slot-scope="text, record">
|
|
{{ formatDepotName(record.depotId) }}
|
|
{{ formatDepotName(record.depotId) }}
|
|
</template>
|
|
</template>
|
|
@@ -593,6 +596,7 @@ export default {
|
|
{
|
|
{
|
|
title: '供应商',
|
|
title: '供应商',
|
|
dataIndex: 'supplierId',
|
|
dataIndex: 'supplierId',
|
|
|
|
+ scopedSlots: { customRender: 'supplierId' }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '库存(最小单位)',
|
|
title: '库存(最小单位)',
|
|
@@ -735,6 +739,10 @@ export default {
|
|
const target = this.depotList.find(item => item.value == id)
|
|
const target = this.depotList.find(item => item.value == id)
|
|
return target ? target.title : ''
|
|
return target ? target.title : ''
|
|
},
|
|
},
|
|
|
|
+ formatSupplierName(id){
|
|
|
|
+ const target = this.supList.find(item => item.id == id)
|
|
|
|
+ return target ? target.supplier : ''
|
|
|
|
+ },
|
|
// 快捷键
|
|
// 快捷键
|
|
handleOkKey(e) {
|
|
handleOkKey(e) {
|
|
const key = window.event.keyCode ? window.event.keyCode : window.event.which
|
|
const key = window.event.keyCode ? window.event.keyCode : window.event.which
|