From 7ac12e80a13beaf67a84bbe869f9467eceaa8b74 Mon Sep 17 00:00:00 2001 From: liwei Date: Thu, 28 Oct 2021 15:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E6=B7=BB=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plant/material/part.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/views/plant/material/part.vue b/src/views/plant/material/part.vue index a64156a..3707dfa 100644 --- a/src/views/plant/material/part.vue +++ b/src/views/plant/material/part.vue @@ -48,6 +48,9 @@ {{ artSpec1Text(scope.row[item]) }} + + {{ statusText(scope.row[item]) }} + {{ scope.row[item] }} @@ -232,6 +235,14 @@ + + + + + @@ -523,6 +534,11 @@ export default { this.getAtatusArrayList(); }, methods: { + // 物料状态中文映射 + statusText(value){ + const item=this.statusArray.find(e=> e['stdeftab-stdeftyp'] == value); + return item?item['stdeftab-bez'] : value + }, // 物料类型中文映射 artSpec1Text(value){ const item=this.artSpecList.find(e=> e['stdeftab-stdeftyp'] == value); @@ -531,7 +547,7 @@ export default { // 物料状态列表 getAtatusArrayList(){ this.getStanderOne({ statid: 'Article-Status' }).then(({data=[]}) => { - this.statusArray=data.map(()=>{ + this.statusArray=data.map((e)=>{ e['stdeftab-stdeftyp']= Number(e['stdeftab-stdeftyp']); return e; }); @@ -631,6 +647,8 @@ export default { 'Article-ArtTypeId', 'Article-ProjectId', 'Article-CustArtId', + 'Article-Status', + 'Article-Version', 'Article-AlternativeArtId', 'Article-UomId', 'Article-QuantityPerHour',