소스 검색

码单打印数据修改/部分数据展示修改

lph 1 년 전
부모
커밋
12023bf021
3개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      zkqy-ui/src/layout/components/AppMain.vue
  2. 4 2
      zkqy-ui/src/utils/print/codeListPrint.js
  3. 5 1
      zkqy-ui/src/views/orderMange/codeListManage/index.vue

+ 1 - 1
zkqy-ui/src/layout/components/AppMain.vue

@@ -34,7 +34,7 @@ export default {
   width: 100%;
   position: relative;
   overflow: hidden;
-  background-color:  #EFF2F7;
+  background-color: #ffffff;
 }
 
 .fixed-header + .app-main {

+ 4 - 2
zkqy-ui/src/utils/print/codeListPrint.js

@@ -56,7 +56,8 @@ function codeListPrint(data, domId) {
       theNumber--;
       res += (printFormat == 3 ? '' : preHtml);
       // let qrCodeData = '123456';
-      let temp = id + '@' + uuid + '@' + canisterNum + '@' + suttle + '@' + grossWeight + '@' + lotNum + '@' + productName + '@' + productSpecifications + '@' + productColor + '@' + levels + '@' + qrCode + '@' + boxNum
+      // let temp = id + '@' + uuid + '@' + canisterNum + '@' + suttle + '@' + grossWeight + '@' + lotNum + '@' + productName + '@' + productSpecifications + '@' + productColor + '@' + levels + '@' + qrCode + '@' + boxNum
+      let temp = id + '@' + uuid + '@' + canisterNum + '@' + suttle + '@' + grossWeight + '@' + qrCode
       let resStr = encodeURIComponent(temp)
       if (printFormat == 3) {//打印英文版
         uuidList.push({
@@ -126,6 +127,7 @@ function printCN(uuid, item, res) {
     lotNum, //批次
     levels,//等级
     directionOfTwist,//捻向
+    directionOfTwistLabel,
     qrCodeData,
     boxNum,//箱号
     packaging
@@ -157,7 +159,7 @@ function printCN(uuid, item, res) {
         <td style="width: ${w}px;" colspan="1">筒数</td>
         <td style="width: ${w * 3}px;">${canisterNum}&ensp;&ensp;&ensp;${tubeColor}</td>
         <td style="width: ${w}px;" colspan="1">捻向</td>
-        <td style="width: ${w * 3}px;" colspan="2">${directionOfTwist}</td>
+        <td style="width: ${w * 3}px;" colspan="2">${directionOfTwistLabel}</td>
       </tr>
       <tr style="text-align: center;">
         <td style="width: ${w}px;" colspan="1">班次</td>

+ 5 - 1
zkqy-ui/src/views/orderMange/codeListManage/index.vue

@@ -735,7 +735,7 @@ import codeListPrint from "@/utils/print/codeListPrint";
 
 export default {
   name: "ProductCodeList",
-  dicts: ["packaging_type", "port", "coding_list_format"],
+  dicts: ["packaging_type", "port", "coding_list_format", "direction_of_twist"],
   data() {
     return {
       // 自定义数据 start
@@ -1113,6 +1113,9 @@ export default {
             directionOfTwist,
             productId,
           } = this.currentRow;
+          let directionOfTwistLabel = this.dict.type.direction_of_twist.find(
+            (item) => item.value == directionOfTwist
+          ).label;
           let res = await getQrCode();
           let qrCode = "";
           if (res.code == 200) {
@@ -1142,6 +1145,7 @@ export default {
             productColor,
             lotNum,
             directionOfTwist, //捻向
+            directionOfTwistLabel, //捻向label
             remark,
             productId,
           });