From ee1973b21f6324fbe2ef4c7348567f4f2df23fee Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 20 三月 2023 16:13:37 +0800
Subject: [PATCH] 1.工单工序打印二维码bug问题修复

---
 src/views/kb/cgdd.vue |   69 +++++++++++++++++-----------------
 1 files changed, 35 insertions(+), 34 deletions(-)

diff --git a/src/views/kb/cgdd.vue b/src/views/kb/cgdd.vue
index 69fe599..d27cf49 100644
--- a/src/views/kb/cgdd.vue
+++ b/src/views/kb/cgdd.vue
@@ -49,7 +49,7 @@
                   <el-table-column
                     prop="PurchaseOrder"
                     label="閲囪喘璁㈠崟"
-                    width="207"
+                    width="225"
                   >
                     <template slot-scope="{row}">
                       <div class="ellipsis">{{ row.PurchaseOrder }}</div>
@@ -58,7 +58,7 @@
                   <el-table-column
                     prop="suppername"
                     label="渚涘簲鍟�"
-                    width="163"
+                    width="183"
                   >
                     <template slot-scope="{row}">
                       <div v-if="row.suppername" class="ellipsis">{{ row.suppername }}</div>
@@ -84,7 +84,7 @@
                   <el-table-column
                     prop="partname"
                     label="浜у搧鍚嶇О"
-                    width="175"
+                    width="215"
                   >
                     <template slot-scope="{row}">
                       <div v-if="row.partname" class="ellipsis">{{ row.partname }}</div>
@@ -104,37 +104,37 @@
                   <el-table-column
                     prop="quantity"
                     label="璁㈠崟鏁伴噺"
-                    width="94"
+                    width="114"
                   >
                     <template slot-scope="{row}">
                       <div v-if="row.quantity">{{ parseFloat(row.quantity) }}</div>
                       <div v-else>0</div>
                     </template>
                   </el-table-column>
-                  <el-table-column
-                    prop="checktype"
-                    label="妫�楠岀姸鎬�"
-                    width="94"
-                  >
-                    <template slot-scope="{row}">
-                      <div v-if="row.checktype===null">鏈楠�</div>
-                      <div v-else>宸叉楠�</div>
-                    </template>
-                  </el-table-column>
-                  <el-table-column
-                    prop="checkuser"
-                    label="妫�楠屼汉鍛�"
-                    width="94"
-                  >
-                    <template slot-scope="{row}">
-                      <div v-if="row.checkuser===null">/</div>
-                      <div v-else>{{ row.checkuser }}</div>
-                    </template>
-                  </el-table-column>
+                  <!--                  <el-table-column-->
+                  <!--                    prop="checktype"-->
+                  <!--                    label="妫�楠岀姸鎬�"-->
+                  <!--                    width="104"-->
+                  <!--                  >-->
+                  <!--                    <template slot-scope="{row}">-->
+                  <!--                      <div v-if="row.checktype===null">鏈楠�</div>-->
+                  <!--                      <div v-else>宸叉楠�</div>-->
+                  <!--                    </template>-->
+                  <!--                  </el-table-column>-->
+                  <!--                  <el-table-column-->
+                  <!--                    prop="checkuser"-->
+                  <!--                    label="妫�楠屼汉鍛�"-->
+                  <!--                    width="94"-->
+                  <!--                  >-->
+                  <!--                    <template slot-scope="{row}">-->
+                  <!--                      <div v-if="row.checkuser===null">/</div>-->
+                  <!--                      <div v-else>{{ row.checkuser }}</div>-->
+                  <!--                    </template>-->
+                  <!--                  </el-table-column>-->
                   <el-table-column
                     prop="quantity1"
                     label="宸叉敹鏁伴噺"
-                    width="94"
+                    width="114"
                   >
                     <template slot-scope="{row}">
                       <div v-if="row.quantity1">{{ parseFloat(row.quantity1) }}</div>
@@ -143,7 +143,7 @@
                   </el-table-column>
                   <el-table-column
                     label="鏈敹鏁伴噺"
-                    width="94"
+                    width="114"
                   >
                     <template slot-scope="{row}">
                       <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div>
@@ -153,7 +153,7 @@
                   <el-table-column
                     prop="acceptDate"
                     label="棰勮浜ゆ湡"
-                    width="115"
+                    width="135"
                   >
                     <template slot-scope="{row}">
                       <div v-if="row.acceptDate">{{ row.acceptDate.substring(0, 10) }}</div>
@@ -163,18 +163,18 @@
                   <el-table-column
                     prop="warning"
                     label="寤舵湡澶╂暟"
-                    width="114"
+                    width="144"
                   >
                     <template slot-scope="{row}">
                       <div v-if="parseFloat(row.warning)<0" style="color: red">{{
                         Math.abs(parseFloat(row.warning))
                       }}
                       </div>
-                      <div v-else-if="row.warning===null||row.warning===''||row.warning===0">0</div>
-                      <div v-else-if="parseFloat(row.warning)>3">{{ row.warning }}</div>
-                      <div v-else-if="parseFloat(row.warning)>0&&parseFloat(row.warning)<=3" style="color:yellow;">
-                        {{ row.warning }}
-                      </div>
+                      <div v-else-if="row.warning===null||row.warning===''||row.warning>=0">0</div>
+                      <!--                      <div v-else-if="parseFloat(row.warning)>3">{{ row.warning }}</div>-->
+                      <!--                      <div v-else-if="parseFloat(row.warning)>0&&parseFloat(row.warning)<=3" style="color:yellow;">-->
+                      <!--                        {{ row.warning }}-->
+                      <!--                      </div>-->
                     </template>
                   </el-table-column>
                 </el-table>
@@ -325,7 +325,8 @@
     getPurchaseLeftBottom() {
       PurchaseLeftBottom().then(res => {
         this.tableData = res.data.filter(i => !parseFloat(i.quantity1))// 杩囨护鎺夊凡鏀舵暟閲忓ぇ浜庨浂鐨勫��
-        this.number1 = this.tableData.length
+
+        // this.number1 = this.tableData.length
 
         const divData = this.$refs.tableData.bodyWrapper
         // 鎷垮埌鍏冪礌鍚庯紝瀵瑰厓绱犺繘琛屽畾鏃跺鍔犺窛绂婚《閮ㄨ窛绂伙紝瀹炵幇婊氬姩鏁堟灉(姝ら厤缃负姣�100姣绉诲姩1鍍忕礌)

--
Gitblit v1.9.3