소스 검색

兼容后端捻向空异常

lph 1 년 전
부모
커밋
c9f3b9567a
2개의 변경된 파일13개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 1
      zkqy-ui/src/utils/print/printUtils.js
  2. 12 9
      zkqy-ui/src/views/orderMange/codeListManage/printIndex.vue

+ 1 - 1
zkqy-ui/src/utils/print/printUtils.js

@@ -112,7 +112,7 @@ function printCN(printRow) {
     key1: '筒数',
     key2: canisterNum + '    ' + tubeColor,
     key3: '捻向',
-    key4: directionOfTwistLabel
+    key4: directionOfTwistLabel || ' ',
   })
   res.push({
     key1: '班次',

+ 12 - 9
zkqy-ui/src/views/orderMange/codeListManage/printIndex.vue

@@ -890,9 +890,10 @@ export default {
         directionOfTwist,
         productId,
       } = this.currentRow;
-      let directionOfTwistLabel = this.dict.type.direction_of_twist.find(
-        (item) => item.value == directionOfTwist
-      )?.label;
+      let directionOfTwistLabel =
+        this.dict.type.direction_of_twist.find(
+          (item) => item.value == directionOfTwist
+        )?.label || " ";
 
       newData = {
         machineToolNo,
@@ -1291,9 +1292,10 @@ export default {
             directionOfTwist,
             productId,
           } = this.currentRow;
-          let directionOfTwistLabel = this.dict.type.direction_of_twist.find(
-            (item) => item.value == directionOfTwist
-          )?.label;
+          let directionOfTwistLabel =
+            this.dict.type.direction_of_twist.find(
+              (item) => item.value == directionOfTwist
+            )?.label || " ";
           let res = await getQrCode();
           let qrCode = "";
           if (res.code == 200) {
@@ -1618,9 +1620,10 @@ export default {
           directionOfTwist,
           productId,
         } = this.batchTableData[0];
-        let directionOfTwistLabel = this.dict.type.direction_of_twist.find(
-          (item) => item.value == directionOfTwist
-        )?.label;
+        let directionOfTwistLabel =
+          this.dict.type.direction_of_twist.find(
+            (item) => item.value == directionOfTwist
+          )?.label || " ";
         this.tableData.forEach((item) => {
           Object.assign(item, {
             productName, //品种