From f198ab6bd7912e7866bbc7460f5c515e6ace325e Mon Sep 17 00:00:00 2001 From: yangzifeng <2547435354@qq.com> Date: Thu, 5 Feb 2026 10:09:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B0=E5=A2=9E=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E9=80=89=E6=8B=A9=E5=BA=93=E4=BD=8D=E6=97=B6=E5=8D=A1?= =?UTF-8?q?=E6=AD=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wisdom/bill/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/wisdom/bill/index.vue b/src/views/wisdom/bill/index.vue index 4df83a7..f04b33c 100644 --- a/src/views/wisdom/bill/index.vue +++ b/src/views/wisdom/bill/index.vue @@ -356,7 +356,7 @@ @@ -947,10 +947,11 @@ function addLineFun() { // 选择库位修改库位数组 const changePcode = (e) => { - let index = kwOptions.value.findIndex((item) => item.pcode == e); - kwOptions.value.splice(index, 1); - kwOptions.value.unshift({ pcode: e }); - console.log(e, index); + if (e) { + let index = kwOptions.value.findIndex((item) => item.pcode == e); + kwOptions.value.splice(index, 1); + kwOptions.value.unshift({ pcode: e }); + } } //添加数量