From c0e9df213221d16f6ab6c9106ae01ad571cd45fc Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期五, 15 十一月 2024 09:08:02 +0800
Subject: [PATCH] 1.考勤打卡递交

---
 src/views/workOrder/workOrderList.vue |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/views/workOrder/workOrderList.vue b/src/views/workOrder/workOrderList.vue
index 1fe2f04..6c9c8a6 100644
--- a/src/views/workOrder/workOrderList.vue
+++ b/src/views/workOrder/workOrderList.vue
@@ -809,7 +809,6 @@
                 placeholder="璇疯緭鍏ュ伐搴忓崟浠�"
                 oninput="value=value.replace(/[^0-9.]/g,'')"
                 style="width: 100%"
-                @click=""
               />
             </template>
           </el-table-column>
@@ -2576,12 +2575,17 @@
             {
               stepcode: i,
               stepname: this.stepSelectArr.find(j => j.stepcode === i).stepname,
-              stepprice: arrStepcode.includes(i) ? arr.find(j => j.stepcode === i).stepprice : 0
+              // stepprice: arrStepcode.includes(i) ? arr.find(j => j.stepcode === i).stepprice : 0
+              stepprice: arrStepcode.includes(i) ? arr.find(j => j.stepcode === i).stepprice : ''
             }
           )
         })
       }
     }
+  },
+  activated() {
+    window.addEventListener('resize', this.getHeight)
+    this.getHeight()
   },
   created() {
     this.handleRequest()
@@ -2910,7 +2914,7 @@
               {
                 stepcode: i.step_code,
                 stepname: i.stepname,
-                stepprice: i.stepprice
+                stepprice: i.stepprice === 0 ? '' : i.stepprice
               }
             )
           })
@@ -2927,7 +2931,7 @@
                 {
                   stepcode: i.step_code,
                   // stepname: i.stepname,
-                  stepprice: i.stepprice
+                  stepprice: i.stepprice === 0 ? '' : i.stepprice
                 }
               )
             })
@@ -2941,7 +2945,7 @@
               {
                 stepcode: i.step_code,
                 stepname: i.stepname,
-                stepprice: i.stepprice
+                stepprice: i.stepprice === 0 ? '' : i.stepprice
               }
             )
           })
@@ -2966,7 +2970,7 @@
           {
             stepcode: i.step_code,
             stepname: i.step_name,
-            stepprice: i.unprice
+            stepprice: i.unprice === 0 ? '' : i.unprice
           }
         )
       })
@@ -3025,7 +3029,7 @@
             {
               stepcode: i.step_code,
               // stepname: i.stepname,
-              stepprice: i.unprice
+              stepprice: i.unprice === 0 ? '' : i.unprice
             }
           )
         })
@@ -3053,7 +3057,7 @@
             {
               stepcode: i.step_code,
               // stepname: i.stepname,
-              stepprice: i.stepprice
+              stepprice: i.stepprice === 0 ? '' : i.stepprice
             }
           )
         })
@@ -3114,7 +3118,7 @@
               {
                 stepseq: j + 1,
                 stepcode: i.stepcode,
-                stepprice: i.stepprice,
+                stepprice: i.stepprice === '' ? 0 : parseFloat(i.stepprice),
                 isbott: j === 0 ? 'Y' : 'N',
                 isend: j === this.stepTableData.length - 1 ? 'Y' : 'N'
               }

--
Gitblit v1.9.3