From 29e550f442959100ce67ecddaaf15c5bf3598528 Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期四, 09 十二月 2021 17:34:24 +0800
Subject: [PATCH] 返工单

---
 WebTM/views/IpadStepIndex.html |   45 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 44 insertions(+), 1 deletions(-)

diff --git a/WebTM/views/IpadStepIndex.html b/WebTM/views/IpadStepIndex.html
index 6758333..2c9bb27 100644
--- a/WebTM/views/IpadStepIndex.html
+++ b/WebTM/views/IpadStepIndex.html
@@ -733,6 +733,46 @@
             });
         }
 
+        //杩斿伐鐢宠鍗曟寜閽偣鍑讳簨浠�
+        function OpenReturn(event, obj) {
+            if (wktag == 0) {
+                layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 });
+                return false;
+            }
+            if (WorkStaus(HSourceID1, workcode, HSourceInterID, "杩斿伐")) {
+                layer.alert("鍗曟嵁鐘舵�佷笉婊¤冻杩斿伐鏉′欢!", { icon: 5 });
+                return false;
+            }
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '鏂板杩斿伐鍗�',
+                closeBtn: 1,
+                shift: 2,
+                area: ['100%', '100%'],
+                maxmin: true,
+                content: '鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/杩斿伐/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=',
+                end: function () {
+
+                },
+                success: function (dom, index) {
+                    var data = [];
+                    data.push({
+                        "HBillType": HBillType,
+                        "HSourceInterID": HSourceInterID,
+                        "HSourceEntryID": HSourceEntryID,
+                        "HSourceBillNo": HSourceBillNo,
+                        "HSourceBillType": HSourceBillType
+                    });
+
+                    //閫氳繃绱㈠紩鑾峰彇鍒板綋鍓峣frame寮瑰嚭灞�
+                    var iframe = window['layui-layer-iframe' + index];
+                    //璋冪敤iframe寮瑰嚭灞傚唴鐨勬柟娉�
+                    iframe.edit(data);
+                },
+            });
+        }
+
         //涓婃枡闃查敊鍗�
         function OpenMaterToSource() {
             if (wktag == 0) {
@@ -903,6 +943,9 @@
                 case "鎶ユ鐢宠":
 
                     break;
+                case "杩斿伐":
+                    sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('0','2')";   //鏄惁鏈変笉涓哄紑宸ャ�佸仠宸ユ寕璧风姸鎬�
+                    break;
                 default:
             }
 
@@ -1024,7 +1067,7 @@
                             </div>
                         </div>
                         <div class="layui-row layui-col-space10">
-                            <div class="layui-col-sm12 layui-col-md3" onclick="">
+                            <div class="layui-col-sm12 layui-col-md3" onclick="OpenReturn(event,this)">
                                 <div class="cnt bottomright">
                                     <span class="layui-icon layui-icon-return imgicon"></span>
                                     <span class="imgtitle">杩斿伐鐢宠</span>

--
Gitblit v1.9.1