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/kanbanManager/cj.vue |  160 +++++++++++++++++++++++++++++------------------------
 1 files changed, 87 insertions(+), 73 deletions(-)

diff --git a/src/views/kanbanManager/cj.vue b/src/views/kanbanManager/cj.vue
index 523396f..1f148ee 100644
--- a/src/views/kanbanManager/cj.vue
+++ b/src/views/kanbanManager/cj.vue
@@ -6,11 +6,12 @@
 
       <div class="kb_header">
         <div class="kb_headTime" style="top: 35px;left:  20px">
-          <span>娴欐睙浼樺厠宸ヨ锤鑲′唤鏈夐檺鍏徃</span>
+          <span>姘稿悍甯傛ˉ涓嬪鏂欏巶</span>
         </div>
 
         <div class="kb_headTime kb_header_text" style="top: 35px;left:  800px">
-          <span>{{ title }}鏁板瓧鍖栫湅鏉�</span>
+          <!--          <span>{{ title }}鏁板瓧鍖栫湅鏉�</span>-->
+          <span>鍙戞场鎸ゅ嚭鏁板瓧鍖栫湅鏉�</span>
         </div>
 
         <div class="kb_headTime" style="top: 35px;right:  25px">
@@ -29,7 +30,7 @@
             </div>
             <div
               class="lineContent horn"
-              style="height: 450px;display: flex;flex-direction: column;justify-content: space-between"
+              style="height: 870px;display: flex;flex-direction: column;justify-content: space-between"
             >
               <el-table
                 ref="tableDataLeftCenterRef"
@@ -38,82 +39,88 @@
                 style="width: 100%;"
                 :header-cell-style="headerCellStyle"
                 :cell-style="cellStyle"
-                height="500"
+                height="920"
               >
 
                 <el-table-column
                   prop="wo_code"
                   label="宸ュ崟鍙�"
-                  width="220"
+                  width="270"
                 />
+                <!--                <el-table-column-->
+                <!--                  prop="saleOrderCode"-->
+                <!--                  label="鐢熶骇鍗曞彿"-->
+                <!--                  width="160"-->
+                <!--                />-->
                 <el-table-column
-                  prop="saleOrderCode"
-                  label="鐢熶骇鍗曞彿"
-                  width="160"
+                  prop="wkshp_name"
+                  label="鐢熶骇杞﹂棿"
+                  width="210"
                 />
+                <!--                600-->
                 <el-table-column
                   prop="partcode"
                   label="浜у搧缂栫爜"
-                  width="160"
+                  width="210"
                 />
                 <el-table-column
                   prop="partname"
                   label="浜у搧鍚嶇О"
-                  width="160"
+                  width="210"
                 />
-<!--                <el-table-column-->
-<!--                  prop="partspec"-->
-<!--                  label="浜у搧瑙勬牸"-->
-<!--                  width="160"-->
-<!--                >-->
-<!--                  <template slot-scope="{row}">-->
-<!--                    {{ row.partspec ? row.partspec : '/' }}-->
-<!--                  </template>-->
-<!--                </el-table-column>-->
+                <!--                <el-table-column-->
+                <!--                  prop="partspec"-->
+                <!--                  label="浜у搧瑙勬牸"-->
+                <!--                  width="160"-->
+                <!--                >-->
+                <!--                  <template slot-scope="{row}">-->
+                <!--                    {{ row.partspec ? row.partspec : '/' }}-->
+                <!--                  </template>-->
+                <!--                </el-table-column>-->
                 <el-table-column
                   prop="plan_qty"
                   label="浠诲姟鏁伴噺"
-                  width="120"
+                  width="170"
                 />
                 <el-table-column
                   prop="good_qty"
                   label="鍚堟牸鏁伴噺"
-                  width="120"
+                  width="170"
                 />
-                <el-table-column
-                  prop="ng_qty"
-                  label="涓嶈壇鏁伴噺"
-                  width="120"
-                />
-                <el-table-column
-                  prop="laborbad_qty"
-                  label="宸ュ簾鏁伴噺"
-                  width="120"
-                />
-                <el-table-column
-                  prop="materielbad_qty"
-                  label="鏂欏簾鏁伴噺"
-                  width="120"
-                />
-                <el-table-column
-                  prop="seq"
-                  label="宸ュ簭椤哄簭"
-                  width="120"
-                />
-                <el-table-column
-                  prop="step_code"
-                  label="宸ュ簭缂栫爜"
-                  width="120"
-                />
+                <!--                <el-table-column-->
+                <!--                  prop="ng_qty"-->
+                <!--                  label="涓嶈壇鏁伴噺"-->
+                <!--                  width="120"-->
+                <!--                />-->
+                <!--                <el-table-column-->
+                <!--                  prop="laborbad_qty"-->
+                <!--                  label="宸ュ簾鏁伴噺"-->
+                <!--                  width="120"-->
+                <!--                />-->
+                <!--                <el-table-column-->
+                <!--                  prop="materielbad_qty"-->
+                <!--                  label="鏂欏簾鏁伴噺"-->
+                <!--                  width="120"-->
+                <!--                />-->
+                <!--                <el-table-column-->
+                <!--                  prop="seq"-->
+                <!--                  label="宸ュ簭椤哄簭"-->
+                <!--                  width="120"-->
+                <!--                />-->
+                <!--                <el-table-column-->
+                <!--                  prop="step_code"-->
+                <!--                  label="宸ュ簭缂栫爜"-->
+                <!--                  width="120"-->
+                <!--                />-->
                 <el-table-column
                   prop="step_name"
                   label="宸ュ簭鍚嶇О"
-                  width="120"
+                  width="320"
                 />
                 <el-table-column
                   prop="schedule"
                   label="瀹屾垚杩涘害(%)"
-                  width="213"
+                  width="313"
                 />
               </el-table>
             </div>
@@ -121,27 +128,27 @@
 
         </div>
         <!--        涓嬭竟-->
-        <div style="display: flex;justify-content: space-between;margin-top: 15px;">
-          <div style="width: 1000px;">
-            <div class="smallTitle">
-              <svg-icon icon-class="blcs" class="svg_class" />
-              璐ㄩ噺涓嶈壇(杩戜竴鍛�)
-            </div>
-            <div class="lineContent horn" style="height: 380px;display: flex;justify-content: space-between">
-              <div id="cjzl03" class="flex_c_c" style="width: 100%;height:100%" />
+        <!--        <div style="display: flex;justify-content: space-between;margin-top: 15px;">-->
+        <!--          <div style="width: 1000px;">-->
+        <!--            <div class="smallTitle">-->
+        <!--              <svg-icon icon-class="blcs" class="svg_class" />-->
+        <!--              璐ㄩ噺涓嶈壇(杩戜竴鍛�)-->
+        <!--            </div>-->
+        <!--            <div class="lineContent horn" style="height: 380px;display: flex;justify-content: space-between">-->
+        <!--              <div id="cjzl03" class="flex_c_c" style="width: 100%;height:100%" />-->
 
-            </div>
-          </div>
-          <div style="width: 850px;">
-            <div class="smallTitle">
-              <svg-icon icon-class="ckkc" class="svg_class" />
-              涓嶈壇缁熻(杩戜竴鏈�)
-            </div>
-            <div class="lineContent horn" style="height: 380px;display: flex;justify-content: space-between">
-              <div id="cjzl04" class="flex_c_c" style="width: 100%;height:100%" />
-            </div>
-          </div>
-        </div>
+        <!--            </div>-->
+        <!--          </div>-->
+        <!--          <div style="width: 850px;">-->
+        <!--            <div class="smallTitle">-->
+        <!--              <svg-icon icon-class="ckkc" class="svg_class" />-->
+        <!--              涓嶈壇缁熻(杩戜竴鏈�)-->
+        <!--            </div>-->
+        <!--            <div class="lineContent horn" style="height: 380px;display: flex;justify-content: space-between">-->
+        <!--              <div id="cjzl04" class="flex_c_c" style="width: 100%;height:100%" />-->
+        <!--            </div>-->
+        <!--          </div>-->
+        <!--        </div>-->
       </div>
     </div>
   </div>
@@ -182,6 +189,10 @@
 
     }
   },
+  activated() {
+    window.addEventListener('resize', this.getHeight)
+    this.getHeight()
+  },
   created() {
     setInterval(this.getNowTime, 1000)
 
@@ -191,11 +202,13 @@
     }, 1000 * 60 * 120)
   },
   mounted() {
-    this.getAllApi()
+    // this.getAllApi()
+    this.getWorkShopProduceTopData()
   },
   methods: {
     async getWorkShopProduceTopData() {
-      WorkShopProduceTopData({ wkshopcode: this.wkshopcode.join(',') }).then(res => {
+      // WorkShopProduceTopData({ wkshopcode: this.wkshopcode.join(',') }).then(res => {
+      WorkShopProduceTopData({ wkshopcode: '101,102' }).then(res => {
         this.tableDataCenterTop = res.data
 
         const divData = this.$refs.tableDataLeftCenterRef.bodyWrapper
@@ -204,16 +217,17 @@
           divData.scrollTop += 1
           if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) {
             divData.scrollTop = 0
-            WorkShopProduceTopData({ wkshopcode: this.wkshopcode.join(',') }).then(res => {
+            // WorkShopProduceTopData({ wkshopcode: this.wkshopcode.join(',') }).then(res => {
+            WorkShopProduceTopData({ wkshopcode: '101,102' }).then(res => {
               this.tableDataCenterTop = res.data
 
-              if (this.tableDataCenterTop.length > 11) {
+              if (this.tableDataCenterTop.length > 22) {
                 clearInterval(timer)
                 this.getWorkShopProduceTopData()
               }
             })
           }
-        }, this.tableDataCenterTop.length <= 11 ? 1000 * 30 : 200)
+        }, this.tableDataCenterTop.length <= 22 ? 1000 * 30 : 200)
       })
     },
 

--
Gitblit v1.9.3