From cb2418fcf1ce7410dc0962aabe752bfa9cccd42e Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 20 Dec 2023 14:05:21 +0800 Subject: [PATCH] =?UTF-8?q?material&route=E4=B8=ADmaterial=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=8A=A0=E8=A7=84=E6=A0=BC=E5=9E=8B=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/materials_form.vue | 6 +++++- src/views/mtm/route.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/mtm/materials_form.vue b/src/views/mtm/materials_form.vue index c6c66cfb..23cdad45 100644 --- a/src/views/mtm/materials_form.vue +++ b/src/views/mtm/materials_form.vue @@ -39,7 +39,7 @@ - + @@ -160,6 +160,10 @@ export default { query.page = 0; query.is_hidden = false; this.$API.mtm.material.list.req(query).then(res => { + that.materialOptions = []; + res.forEach(item=>{ + item.label = item.name+'—'+item.specification+'/'+item.model; + }) that.materialOptions = res; }) }, diff --git a/src/views/mtm/route.vue b/src/views/mtm/route.vue index fef4d467..7fb2f3b4 100644 --- a/src/views/mtm/route.vue +++ b/src/views/mtm/route.vue @@ -181,7 +181,7 @@ export default { getProducts() { this.$API.mtm.material.list.req({ page: 0, need_route: true }).then(res => { res.forEach(m => { - m.label = m.name + m.label = m.name+'—'+m.specification+'/'+m.model; }) this.productOptions = res })