From 218cec7b640bbdc73b2831735d293e12ba344656 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期四, 29 一月 2026 15:41:16 +0800
Subject: [PATCH] 设备、模具保养任务   今日改为近七日  增加对应的下推任务 模具、设备维修任务  增加下推按钮  三个待派工(故障单的负责人)、待维修(故障单的维修人)、待验收(故障单发现人)

---
 pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue |   63 ++++++++++++++++++++++++++-----
 1 files changed, 53 insertions(+), 10 deletions(-)

diff --git a/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue b/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue
index d7feb1b..5a747c3 100644
--- a/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue
+++ b/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue
@@ -269,17 +269,25 @@
         },
         async onLoad(e) {
             console.log(e, this.userInfo)
-            this.OperationType = e.OperationType
-            if (e.HInterID) {
-                this.HInterID_Temp = e.HInterID
-                this.RoadBillMain(e.HInterID)
-                this.barCodeFocus = true
-            } else {
-                this.getNewData()
-                this.HSourceBillNoFocus = true
-                this.refreshBarCodeState()
+            this.OperationType = e.OperationType || 1
+            if(operationType == 1) {
+                if (e.HInterID) {
+                    this.HInterID_Temp = e.HInterID
+                    this.RoadBillMain(e.HInterID)
+                    this.barCodeFocus = true
+                } else {
+                    this.getNewData()
+                    this.HSourceBillNoFocus = true
+                    this.refreshBarCodeState()
+                }
+                
+            }else if(operationType == 5) {
+                // 鍗曟嵁涓嬫帹
+                let {HSourceBillType, HInterID, HBillNo} = e
+                this.getMaxNum()
+                this.getSourceBillInfo(HSourceBillType, HInterID, HBillNo)
             }
-
+           
             this.InitConkType()
             this.InitConkReason()
             this.InitDept()
@@ -719,6 +727,41 @@
                         }
                     }
                 });
+            },
+            async getSourceBillInfo(HSourceBillType, HInterID, HBillNo) {
+                // 涓嬫帹鍗曟嵁绫诲瀷涓鸿澶囨晠闅滅櫥璁板崟
+                if(HSourceBillType == 3815) {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: "/Sc_MouldConkBookBill/Sb_MouldConkBookBillListCheckDetai",
+                        data: {
+                            HID: HInterID
+                        }
+                    })
+                    
+                    let {data,code, count, Message} = res.data
+                    console.log('data: ',data);
+                    if(code == 1) {
+                        console.log('data: ',data.h_v_Sc_MouldConkBookBillList_Edit);
+                        let data1 = data.h_v_Sc_MouldConkBookBillList_Edit[0]
+                        this.hform.HMainSourceBillType = HSourceBillType
+                        this.HMainSourceBillType = '鍣ㄥ叿鏁呴殰鐧昏鍗�'
+                        this.hform.HMainSourceBillNo = data1.鍗曟嵁鍙�
+                        this.hform.HMainSourceInterID = data1.hmainid
+                        this.hform.HMainSourceEntryID = data1.hsubid
+                        this.hform.HMouldID = data1.HMouldID
+                        this.hform.HManagerName = data1.璐熻矗浜�
+                        this.hform.HManagerID = data1.HManagerID
+                        this.hform.HMouldName = data1.浜у搧妯″叿
+                        this.hform.HMouldModel = data1.浜у搧妯″叿鍨嬪彿
+                        this.hform.HMouldSpec = data1.浜у搧妯″叿瑙勬牸
+                    }
+                    else {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: `鑾峰彇婧愬崟澶辫触: ${Message}`
+                        })
+                    }
+                }
             }
         }
     }

--
Gitblit v1.9.1