quwangxin 2 năm trước cách đây
mục cha
commit
b65bfc0c5d
1 tập tin đã thay đổi với 6 bổ sung3 xóa
  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';
             }
           },
           {