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 }); + } } //添加数量