|
@ -2,6 +2,7 @@ |
|
|
<el-dialog title="关联物料" |
|
|
<el-dialog title="关联物料" |
|
|
custom-class="customer-user-container" |
|
|
custom-class="customer-user-container" |
|
|
model-value |
|
|
model-value |
|
|
|
|
|
width="80%" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:before-close="cancel"> |
|
|
:before-close="cancel"> |
|
|
<div class="users-wrap"> |
|
|
<div class="users-wrap"> |
|
@ -12,9 +13,12 @@ |
|
|
filterable |
|
|
filterable |
|
|
:props="{ |
|
|
:props="{ |
|
|
key: 'Article-ArtId', |
|
|
key: 'Article-ArtId', |
|
|
label: 'Article-ArtId' |
|
|
|
|
|
|
|
|
label: 'Article-Descr1' |
|
|
}" |
|
|
}" |
|
|
:data="artList"> |
|
|
:data="artList"> |
|
|
|
|
|
<template #default="{option}"> |
|
|
|
|
|
<span>{{ option['Article-ArtId'] }} - {{ option['Article-Descr1'] }}</span> |
|
|
|
|
|
</template> |
|
|
</el-transfer> |
|
|
</el-transfer> |
|
|
</div> |
|
|
</div> |
|
|
<template #footer> |
|
|
<template #footer> |
|
@ -50,7 +54,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// 获取用户数据 |
|
|
|
|
|
|
|
|
// 获取物料数据 |
|
|
getArtList() { |
|
|
getArtList() { |
|
|
this.loading = true |
|
|
this.loading = true |
|
|
get("/admin/base/article/selectdata",{artSpec1: 'FINISHED'}).then((res) => { |
|
|
get("/admin/base/article/selectdata",{artSpec1: 'FINISHED'}).then((res) => { |
|
@ -76,10 +80,19 @@ export default { |
|
|
let records = [] |
|
|
let records = [] |
|
|
if (this.chooseArts.length > 0) { |
|
|
if (this.chooseArts.length > 0) { |
|
|
this.chooseArts.map((el) => { |
|
|
this.chooseArts.map((el) => { |
|
|
|
|
|
let Descr1 = ''; // 描述 |
|
|
|
|
|
if (this.artList.length > 0) { // 获取描述 |
|
|
|
|
|
this.artList.map((mapItem) => { |
|
|
|
|
|
if (el === mapItem['Article-ArtId']) { |
|
|
|
|
|
Descr1 = mapItem['Article-Descr1'] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
records.push({ |
|
|
records.push({ |
|
|
"AP_CustArtlst-PlantNr": this.item["Customer-PlantNr"], |
|
|
"AP_CustArtlst-PlantNr": this.item["Customer-PlantNr"], |
|
|
"AP_CustArtlst-CustomerId": this.item["Customer-CustomerId"], |
|
|
"AP_CustArtlst-CustomerId": this.item["Customer-CustomerId"], |
|
|
"AP_CustArtlst-ArtId": el |
|
|
|
|
|
|
|
|
"AP_CustArtlst-ArtId": el, |
|
|
|
|
|
"AP_CustArtlst-Descr1": Descr1 |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
this.item['Customer-ArtList'] = records |
|
|
this.item['Customer-ArtList'] = records |
|
|