quwangxin 2 ani în urmă
părinte
comite
b65bfc0c5d
1 a modificat fișierele cu 6 adăugiri și 3 ștergeri
  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';
             }
           },
           {