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 })