From eb69ee4eaa60b689d7d59317bd6f0319d5a15ffd Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 20 四月 2023 10:12:53 +0800
Subject: [PATCH] 1.递交

---
 src/views/kb/cjsc.vue |  125 ++++++++++++++++++++++++++++-------------
 1 files changed, 86 insertions(+), 39 deletions(-)

diff --git a/src/views/kb/cjsc.vue b/src/views/kb/cjsc.vue
index b9022a6..b0720e9 100644
--- a/src/views/kb/cjsc.vue
+++ b/src/views/kb/cjsc.vue
@@ -3,9 +3,9 @@
     <div class="kb_dashboard">
 
       <!--    鏄熺┖鑳屾櫙-->
-      <div ref="starsRef" class="stars">
-        <div v-for="(item, index) in starsCount" :key="index" class="star" />
-      </div>
+      <!--      <div ref="starsRef" class="stars">-->
+      <!--        <div v-for="(item, index) in starsCount" :key="index" class="star" />-->
+      <!--      </div>-->
 
       <div class="kb_header">
         <div class="flex_c_c kb_header_text">
@@ -28,7 +28,7 @@
               <el-table
                 ref="tableDataLeftTopRef"
                 :data="tableDataLeftTop"
-                class="tableData"
+                class="tableData  tableDataCell"
                 style="width: 100%;"
                 :header-cell-style="headerCellStyle"
                 :cell-style="cellStyle"
@@ -37,18 +37,27 @@
                 <el-table-column
                   prop="saleOrderCode"
                   label="閿�鍞崟鍙�"
-                  width="165"
-                />
-
+                  width="130"
+                >
+                  <template slot-scope="{row}">
+                    <div v-if="row.saleOrderCode" style="text-align: left" class="ellipsis">{{ row.saleOrderCode }}</div>
+                    <div v-else>/</div>
+                  </template>
+                </el-table-column>
                 <el-table-column
                   prop="partname"
-                  width="120"
+                  width="170"
                   label="浜у搧鍚嶇О"
-                />
+                >
+                  <template slot-scope="{row}">
+                    <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
+                    <div v-else>/</div>
+                  </template>
+                </el-table-column>
                 <el-table-column
                   prop="good_qty"
                   label="鏁伴噺"
-                  width="80"
+                  width="70"
                 />
               </el-table>
             </div>
@@ -62,7 +71,7 @@
               <el-table
                 ref="tableDataLeftBottomRef"
                 :data="tableDataLeftBottom"
-                class="tableData"
+                class="tableData tableDataCell"
                 style="width: 100%;"
                 :header-cell-style="headerCellStyle"
                 :cell-style="cellStyle"
@@ -71,18 +80,28 @@
                 <el-table-column
                   prop="saleOrderCode"
                   label="閿�鍞崟鍙�"
-                  width="165"
-                />
+                  width="130"
+                >
+                  <template slot-scope="{row}">
+                    <div v-if="row.saleOrderCode" style="text-align: left" class="ellipsis">{{ row.saleOrderCode }}</div>
+                    <div v-else>/</div>
+                  </template>
+                </el-table-column>
 
                 <el-table-column
                   prop="partname"
-                  width="120"
+                  width="170"
                   label="浜у搧鍚嶇О"
-                />
+                >
+                  <template slot-scope="{row}">
+                    <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
+                    <div v-else>/</div>
+                  </template>
+                </el-table-column>
                 <el-table-column
                   prop="good_qty"
                   label="鏁伴噺"
-                  width="80"
+                  width="70"
                 />
               </el-table>
             </div>
@@ -98,7 +117,7 @@
             <el-table
               ref="tableDataLeftCenterRef"
               :data="tableDataCenterTop"
-              class="tableData"
+              class="tableData tableDataCell"
               style="width: 100%;"
               :header-cell-style="headerCellStyleCenter"
               :cell-style="cellStyleCenter"
@@ -107,7 +126,7 @@
               <el-table-column
                 type="RowNum"
                 label="搴忓彿"
-                width="60"
+                width="50"
               >
                 <template slot-scope="{row}">
                   <div
@@ -130,7 +149,7 @@
               </el-table-column>
               <el-table-column
                 prop="eqp_name"
-                width="100"
+                width="90"
                 label="浜х嚎鍚嶇О"
               >
                 <template slot-scope="{row}">
@@ -142,11 +161,12 @@
               </el-table-column>
               <el-table-column
                 prop="partname"
-                width="140"
+                width="170"
                 label="浜у搧鍚嶇О"
               >
                 <template slot-scope="{row}">
                   <div
+                    class="ellipsis"
                     :style="{color:row.eqp_name==='瑁呴厤涓�绾�'?'#FFFF77':row.eqp_name==='瑁呴厤浜岀嚎'?'#FF8888':row.eqp_name==='瑁呴厤涓夌嚎'?'#D28EFF':'#66FFFF'}"
                   > {{ row.partname }}
                   </div>
@@ -155,7 +175,7 @@
               <el-table-column
                 prop="plan_qty"
                 label="鐢熶骇鏁伴噺"
-                width="100"
+                width="90"
               >
                 <template slot-scope="{row}">
                   <div
@@ -167,7 +187,7 @@
               <el-table-column
                 prop="plan_startdate"
                 label="棰勮寮�濮�"
-                width="130"
+                width="125"
               >
                 <template slot-scope="{row}">
                   <div
@@ -181,7 +201,7 @@
               <el-table-column
                 prop="plan_enddate"
                 label="棰勮瀹屽伐"
-                width="130"
+                width="125"
               >
                 <template slot-scope="{row}">
                   <div
@@ -195,10 +215,11 @@
               <el-table-column
                 prop="stepname"
                 label="宸ュ簭"
-                width="90"
+                width="100"
               >
                 <template slot-scope="{row}">
                   <div
+                    class="ellipsis"
                     :style="{color:row.eqp_name==='瑁呴厤涓�绾�'?'#FFFF77':row.eqp_name==='瑁呴厤浜岀嚎'?'#FF8888':row.eqp_name==='瑁呴厤涓夌嚎'?'#D28EFF':'#66FFFF'}"
                   > {{ row.stepname }}
                   </div>
@@ -226,7 +247,7 @@
               <el-table
                 ref="tableDataRightTopRef"
                 :data="tableDataRightTop"
-                class="tableData"
+                class="tableData tableDataCell"
                 style="width: 100%;"
                 :header-cell-style="headerCellStyle"
                 :cell-style="cellStyle"
@@ -235,18 +256,27 @@
                 <el-table-column
                   prop="saleOrderCode"
                   label="閿�鍞崟鍙�"
-                  width="165"
-                />
-
+                  width="130"
+                >
+                  <template slot-scope="{row}">
+                    <div v-if="row.saleOrderCode" style="text-align: left" class="ellipsis">{{ row.saleOrderCode }}</div>
+                    <div v-else>/</div>
+                  </template>
+                </el-table-column>
                 <el-table-column
                   prop="partname"
-                  width="120"
+                  width="170"
                   label="浜у搧鍚嶇О"
-                />
+                >
+                  <template slot-scope="{row}">
+                    <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
+                    <div v-else>/</div>
+                  </template>
+                </el-table-column>
                 <el-table-column
                   prop="good_qty"
                   label="鏁伴噺"
-                  width="80"
+                  width="70"
                 />
               </el-table>
             </div>
@@ -260,7 +290,7 @@
               <el-table
                 ref="tableDataRightBottomRef"
                 :data="tableDataRightBottom"
-                class="tableData"
+                class="tableData tableDataCell"
                 style="width: 100%;"
                 :header-cell-style="headerCellStyle"
                 :cell-style="cellStyle"
@@ -269,18 +299,27 @@
                 <el-table-column
                   prop="saleOrderCode"
                   label="閿�鍞崟鍙�"
-                  width="165"
-                />
-
+                  width="130"
+                >
+                  <template slot-scope="{row}">
+                    <div v-if="row.saleOrderCode" style="text-align: left" class="ellipsis">{{ row.saleOrderCode }}</div>
+                    <div v-else>/</div>
+                  </template>
+                </el-table-column>
                 <el-table-column
                   prop="partname"
-                  width="120"
+                  width="170"
                   label="浜у搧鍚嶇О"
-                />
+                >
+                  <template slot-scope="{row}">
+                    <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
+                    <div v-else>/</div>
+                  </template>
+                </el-table-column>
                 <el-table-column
                   prop="good_qty"
                   label="鏁伴噺"
-                  width="80"
+                  width="70"
                 />
               </el-table>
             </div>
@@ -338,7 +377,7 @@
     // 涓棿琛ㄦ牸鏁版嵁鍐呭
     this.getCenterTableDataSetInterval()
 
-    this.setStarsRef()
+    // this.setStarsRef()
   },
   methods: {
     setStarsRef() {
@@ -441,6 +480,7 @@
       const scale = 10// 鍒诲害
 
       WkshpLineData({ LineCode: '003' }).then(res => {
+        this.tableDataRightTopTemp = res.data
         this.tableDataRightTop = this.tableDataRightTopTemp.slice(startValue, startValue + scale)
 
         const loop = Math.floor(this.tableDataRightTopTemp.length / scale)// 闇�瑕佸惊鐜殑娆℃暟
@@ -463,6 +503,7 @@
       const scale = 10// 鍒诲害
 
       WkshpLineData({ LineCode: '004' }).then(res => {
+        this.tableDataRightBottomTemp = res.data
         this.tableDataRightBottom = this.tableDataRightBottomTemp.slice(startValue, startValue + scale)
 
         const loop = Math.floor(this.tableDataRightBottomTemp.length / scale)// 闇�瑕佸惊鐜殑娆℃暟
@@ -554,6 +595,12 @@
 $main_color: #09d8f2;
 $color01: #00FFFF;
 
+.tableDataCell {
+  ::v-deep .cell{
+    padding: 0 2px ;
+  }
+}
+
 .tableData {
   background: #000;
 }

--
Gitblit v1.9.3