From a2bce22a3a4df5f4662c373e57c07fa4268aeee1 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期五, 13 六月 2025 09:02:52 +0800
Subject: [PATCH] 1.修改工单打印模板

---
 src/views/workOrder/workOrderList.vue |   39 +++++++++++++++++++++++++++++----------
 1 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/src/views/workOrder/workOrderList.vue b/src/views/workOrder/workOrderList.vue
index 4481ce8..ec1c5a3 100644
--- a/src/views/workOrder/workOrderList.vue
+++ b/src/views/workOrder/workOrderList.vue
@@ -1512,8 +1512,8 @@
             :data="tableDataPrint[0]"
             border
             class="tableDataPrint"
-            :header-cell-style="{ background: '#c0c0c0',textAlign:'center',color:'#000',borderColor:'#000',fontSize:'18px'}"
-            :cell-style="{textAlign: 'center',color:'#000',borderColor:'#000',fontSize:'18px'}"
+            :header-cell-style="{ background: '#c0c0c0',textAlign:'center',color:'#000',borderColor:'#000',fontSize:'18px',padding:'2px 0'}"
+            :cell-style="{textAlign: 'center',color:'#000',borderColor:'#000',fontSize:'18px',padding:'5px 0'}"
             style="width: 100%;margin-top: 20px;text-align: center;border-color: #000"
           >
             <el-table-column
@@ -1531,7 +1531,6 @@
               align="center"
             >
               <template slot-scope="{row}">
-
                 <div :id="'qrCode'+row.seq" :ref="'qrCodeDiv'+row.seq" :key="'qrCodeDiv'+row.seq" class="tableColumn" />
               </template>
             </el-table-column>
@@ -1641,8 +1640,8 @@
             :data="tableDataPrint[1]"
             border
             class="tableDataPrint"
-            :header-cell-style="{ background: '#c0c0c0',textAlign:'center',color:'#000',borderColor:'#000',fontSize:'18px'}"
-            :cell-style="{textAlign: 'center',color:'#000',borderColor:'#000',fontSize:'18px'}"
+            :header-cell-style="{ background: '#c0c0c0',textAlign:'center',color:'#000',borderColor:'#000',fontSize:'18px',padding:'2px 0'}"
+            :cell-style="{textAlign: 'center',color:'#000',borderColor:'#000',fontSize:'18px',padding:'5px 0'}"
             style="width: 100%;margin-top: 20px;text-align: center;border-color: #000"
           >
             <el-table-column
@@ -3532,6 +3531,9 @@
 
       this.dialogForm.mesqtyinit = row.plan_qty
 
+      this.dialogForm.paystartdate = row.plan_startdate
+      this.dialogForm.payenddate = row.plan_enddate
+
       const data = {
         sourceid: this.dialogForm.sourceorderid,
         sourcewo: this.dialogForm.sourceorder,
@@ -3754,6 +3756,10 @@
             return this.$message.info('姝ゅ伐鍗曠殑鏈�澶т慨鏀规暟鍊间负锛�' + this.dialogForm.mesmaxqty)
           }
 
+          if (this.mesSetting.route && !this.dialogForm.routecode) {
+            return this.$message.error('璇烽�夋嫨宸ヨ壓璺嚎锛�')
+          }
+
           const workListSub = []
           this.stepTableData.forEach((i, j) => {
             workListSub.push(
@@ -3781,6 +3787,8 @@
             wkshopcode: this.dialogForm.wkshopcode,
             woqty: this.dialogForm.mesqty, // 宸ュ崟鏁伴噺
             deliverydate: this.dialogForm.deliverydate, // 浜や粯鏃堕棿
+            paystartdate: this.dialogForm.paystartdate,
+            payenddate: this.dialogForm.payenddate,
             data_sources: this.dialogForm.data_sources, // 鏁版嵁鏉ユ簮
             isstep: workListSub.length > 0 ? 'Y' : 'N', //
             difference: this.dialogForm.mesqty - this.dialogForm.mesqtyinit, // 鏁版嵁宸��
@@ -3941,8 +3949,8 @@
       if (size === 'big') {
         new QRCode(this.$refs['qrCodeDiv0' + seq], {
           text: text,
-          width: size === 'big' ? 90 : 60,
-          height: size === 'big' ? 90 : 60,
+          width: size === 'big' ? 90 : 45,
+          height: size === 'big' ? 90 : 45,
           // colorDark: '#333333', // 浜岀淮鐮侀鑹�
           colorDark: '#000', // 浜岀淮鐮侀鑹�
           colorLight: '#ffffff', // 浜岀淮鐮佽儗鏅壊
@@ -3951,8 +3959,8 @@
       } else {
         new QRCode(this.$refs['qrCodeDiv' + seq], {
           text: text,
-          width: size === 'big' ? 90 : 60,
-          height: size === 'big' ? 90 : 60,
+          width: size === 'big' ? 90 : 45,
+          height: size === 'big' ? 90 : 45,
           // colorDark: '#333333', // 浜岀淮鐮侀鑹�
           colorDark: '#000', // 浜岀淮鐮侀鑹�
           colorLight: '#ffffff', // 浜岀淮鐮佽儗鏅壊
@@ -4544,7 +4552,18 @@
 }
 
 .formContent {
-  width: 300px;
+  //width: 330px;
+  width: calc(50% - 10px);
+  display:flex;
+
+  ::v-deep .el-form-item__label {
+    float: left;
+  }
+
+  ::v-deep .el-form-item__content {
+    //float: left;
+    width: 240px;
+  }
 }
 
 </style>

--
Gitblit v1.9.3