From f855f65d25cd3676e50dbb7a1fed57743c1eda93 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Jan 2024 10:13:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mioitem=20batch=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=97=B6=E5=8F=AF=E6=98=BE=E7=A4=BA=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem_form.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index a6792736..83323223 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -11,9 +11,15 @@ - - + + {{ item.batch }} + {{ item.count }} @@ -125,19 +131,13 @@ export default { }, //获取车间物料批次号 getWBatchs() { // - let wbatchs = [] if (this.belongDeptId != null && this.belongDeptId != undefined && this.belongDeptId != '') { this.$API.wpm.wmaterial.list.req({ "belong_dept": this.belongDeptId, "material": this.form.material, "page": 0 }).then(res => { - res.forEach(item => { - if (!wbatchs.includes(item.batch)) { - wbatchs.push(item.batch); - } - }); - this.wbatchOptions = wbatchs + this.wbatchOptions = res }) } },