From 71c5372cefad7acd994285b6926191904ad0ec17 Mon Sep 17 00:00:00 2001 From: liwei Date: Thu, 28 Oct 2021 10:23:26 +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 | 41 +++++++++++++++++++---- src/views/productplan/workbench/order.vue | 8 +++-- 2 files changed, 40 insertions(+), 9 deletions(-) diff --git a/src/views/plant/material/part.vue b/src/views/plant/material/part.vue index 359e43a..a64156a 100644 --- a/src/views/plant/material/part.vue +++ b/src/views/plant/material/part.vue @@ -212,10 +212,26 @@ /> - - - - + + + + + + + @@ -228,7 +244,6 @@ - - { this.projectArray = res.data }) - + this.getAtatusArrayList(); }, methods: { // 物料类型中文映射 @@ -510,6 +528,15 @@ export default { const item=this.artSpecList.find(e=> e['stdeftab-stdeftyp'] == value); return item?item['stdeftab-bez'] : value }, + // 物料状态列表 + getAtatusArrayList(){ + this.getStanderOne({ statid: 'Article-Status' }).then(({data=[]}) => { + this.statusArray=data.map(()=>{ + e['stdeftab-stdeftyp']= Number(e['stdeftab-stdeftyp']); + return e; + }); + }) + }, // 物料类型列表 getArtSpecList(){ this.getStanderOne({ statid: 'Article-ArtSpec1' }).then(({data=[]}) => { diff --git a/src/views/productplan/workbench/order.vue b/src/views/productplan/workbench/order.vue index 5de4ec7..cb74f42 100644 --- a/src/views/productplan/workbench/order.vue +++ b/src/views/productplan/workbench/order.vue @@ -428,7 +428,9 @@ export default { this.orderTypeArray = res.data }) // 获取零件数据 - getArticleList().then(res => { + getArticleList({ + status:1 + }).then(res => { this.articleArray = res.data }) // 获取产线数据 @@ -448,7 +450,9 @@ export default { /** 查询角色列表 */ getList() { this.loading = true - getWorkorderList(this.queryParams).then( + getWorkorderList({ + ...this.queryParams, + }).then( response => { this.dataList = response.data.records this.total = response.data.count