quwangxin 2 년 전
부모
커밋
b65bfc0c5d
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      src/components/print/OrderPrint.vue

+ 6 - 3
src/components/print/OrderPrint.vue

@@ -383,7 +383,10 @@
             span: 4,
             class: 'border-dashed-right border-dashed-bottom',
             formatter(itm) {
-              return itm.workReportCategoryList[0]?.number;
+              return (
+                itm.workReportCategoryList[0]?.number ||
+                itm.workReportCategoryList[0]?.totalWeight
+              );
             }
           },
           {
@@ -450,7 +453,7 @@
               const obj = (itm.workReportDeviceList || []).find(
                 (i) => i.rootCategoryLevelId == 8
               );
-              return obj?.extraField?.boatNum;
+              return obj?.extraField?.boatNum || '0';
             }
           },
 
@@ -702,7 +705,7 @@
               const obj = (itm.workReportDeviceList || []).find(
                 (i) => i.rootCategoryLevelId == 8
               );
-              return obj?.extraField?.boatNum;
+              return obj?.extraField?.boatNum || '0';
             }
           },
           {