Kaynağa Gözat

feat: 过滤批次号列表以移除无效项并添加调试日志

xieyong 1 ay önce
ebeveyn
işleme
7d93ff17b8
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/views/firstCheck/index.vue

+ 2 - 1
src/views/firstCheck/index.vue

@@ -325,7 +325,8 @@ export default {
       const product = this.productList.find(
         (p) => p.productCode === productCode
       );
-      this.batchNoList = product?.batchNos || [];
+      this.batchNoList = (product?.batchNos || []).filter(Boolean);
+      console.log(this.batchNoList);
       // 已选批次号若不在新批次号列表中则清空
       if (
         this.searchForm.batchNo &&