소스 검색

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

xieyong 1 개월 전
부모
커밋
7d93ff17b8
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  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 &&