From 0723f2c7428d57458df1dca3a619d92b5f23d140 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期五, 28 三月 2025 15:26:00 +0800
Subject: [PATCH] 插回损功能开发

---
 src/views/plan/manufacturingorder/index.vue |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/views/plan/manufacturingorder/index.vue b/src/views/plan/manufacturingorder/index.vue
index e3a8654..4afae3b 100644
--- a/src/views/plan/manufacturingorder/index.vue
+++ b/src/views/plan/manufacturingorder/index.vue
@@ -223,14 +223,17 @@
                         </el-col>
                       </div>
                       <div style="margin-left: 50px;width: 100%;">
-                        <el-row style="margin-top: 10px;">
+                        <el-row>
                           <el-col  style="font-weight: bold;font-size: 14px;"><span>鎵�&nbsp; 娆�&nbsp;鍙�:&nbsp; </span>{{ item.code.moNo2 }}</el-col>
                         </el-row>
-                        <el-row style="margin-top: 9px;font-size: 14px;">
+                        <el-row style="margin-top: 6px;font-size: 14px;">
                           <el-col  style="font-weight: bold;"><span>璁�&nbsp; 鍗�&nbsp;鍙�:&nbsp; </span>{{ item.orderNo }}</el-col>
                         </el-row>
-                        <el-row style="margin-top: 9px;font-size: 14px;">
+                        <el-row style="margin-top: 6px;font-size: 14px;">
                           <el-col  style="font-weight: bold;"><span>瀹㈡埛鍚嶇О:&nbsp; </span>{{ item.cName }}</el-col>
+                        </el-row>
+                        <el-row style="margin-top: 6px;font-size: 14px;">
+                          <el-col  style="font-weight: bold;"><span>闆�&nbsp; 浠�&nbsp;鍙�:&nbsp; </span>{{ item.partNo }}</el-col>
                         </el-row>
                       </div>
                   </div>
@@ -1117,12 +1120,17 @@
         });
     },
     //鍒濆鍖栦簩缁寸爜鏍囩鏁版嵁
-    initQrData(data){
+    initQrData(data) {
       this.qrData = []
       if(data){
-        console.log(data);
+        console.log(data)
+        let str = null
+        if (data.partDescription) {
+            let splitData = data.partDescription.split(' ')
+            str = splitData[splitData.length - 1] // 鑾峰彇鏈�鍚庝竴椤�
+        }
         let index = Number(data.qtyRequired) + Number(data.scrapQty)
-        if(index>0){
+        if (index > 0) {
           for(var i=index;i>= 1;i--){
             let obj = {
               orderNo: data.customerOrderNo,
@@ -1131,10 +1139,12 @@
               code: {
                 moNo: data.moNo,
                 moNo2: null,
+                moNo3: str
               }
             }
             let no = (i+"").padStart(3,'0')
             obj.code.moNo2 = data.moNo + no
+            obj.partNo = data.partNo
             this.qrData.push(obj)
           }
         }

--
Gitblit v1.9.3