From 109930aa0e50907fc47799b41aa19232c6ca4953 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 02 八月 2022 09:09:14 +0800
Subject: [PATCH] 工序流转卡 编辑 打印 维护

---
 WebTM/views/生产管理/齐套分析/JIT_CompleteDetailList.html  |    1 +
 WebTM/views/车间管理/工序流转卡/Sc_ProcessExchangeBill.html |   37 ++++++++++++++++++++++---------------
 2 files changed, 23 insertions(+), 15 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\351\275\220\345\245\227\345\210\206\346\236\220/JIT_CompleteDetailList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\351\275\220\345\245\227\345\210\206\346\236\220/JIT_CompleteDetailList.html"
index c82f50a..a455206 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\351\275\220\345\245\227\345\210\206\346\236\220/JIT_CompleteDetailList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\351\275\220\345\245\227\345\210\206\346\236\220/JIT_CompleteDetailList.html"
@@ -213,6 +213,7 @@
                     { type: 'checkbox', fixed: 'left' }
                     , { field: 'HinterId', title: 'HinterId', hide: true }
                     , { field: '鐢熶骇璁㈠崟鍙�', title: '鐢熶骇璁㈠崟鍙�' }
+                    , { field: '鏃ヨ鍒掑伐鍗曞彿', title: '鏃ヨ鍒掑伐鍗曞彿' }
                     , { field: '鏃ヨ鍒掕鍗曞瓙鍐呯爜', title: '鏃ヨ鍒掕鍗曞瓙鍐呯爜', hide: true }
                     , { field: '鏃ヨ鍒掕鍗曚富鍐呯爜', title: '鏃ヨ鍒掕鍗曚富鍐呯爜', hide: true }
                     , { field: '涓荤敓浜ц鍗曞瓙鍐呯爜', title: '涓荤敓浜ц鍗曞瓙鍐呯爜', hide: true }
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\346\265\201\350\275\254\345\215\241/Sc_ProcessExchangeBill.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\346\265\201\350\275\254\345\215\241/Sc_ProcessExchangeBill.html"
index ae98e0d..40b274f 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\346\265\201\350\275\254\345\215\241/Sc_ProcessExchangeBill.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\346\265\201\350\275\254\345\215\241/Sc_ProcessExchangeBill.html"
@@ -1103,8 +1103,7 @@
             //鎵撳嵃
             form.on('submit(btn_print)', function () {//浜у搧
 
-                var hinterid = "";
-                var sWhere = " and HPRDORGID=" + sessionStorage["OrganizationID"] + " ";
+                var sWhere = " and HPRDORGID=" + sessionStorage["OrganizationID"] + " and 鍗曟嵁鍙�='" + $("#HBillNo").val() + "' ";
                 var ajaxLoad = layer.load();
                 $.ajax({
                     url: GetWEBURL() + '/LEMS/MES_Sc_ProcessExchangeBillQuery_Json',
@@ -1112,28 +1111,36 @@
                     data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                     success: function (data1) {
                         if (data1.count == 1) {
-                            hinterid = data1.data[0]["hmainid"];
+                            var hinterid = "";
+                            if (data1.data.length != 0) {
+                                hinterid = data1.data[0]["hmainid"];
+                            }
                             layer.close(ajaxLoad);
+
+                            if (hinterid != "") {
+                                layer.open({
+                                    type: 2
+                                    , area: ['50%', '50%']
+                                    , title: '鎵撳嵃妯$増閫夋嫨'
+                                    , shade: 0.6 //閬僵閫忔槑搴�
+                                    , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                                    , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + hinterid + '&MyMsg=' + hinterid + '&Type=HProcessExchange', 'yes']
+                                    , resize: false
+                                })
+                            } else {
+                                layer.msg("璇峰厛淇濆瓨,鍦ㄨ繘琛屾墦鍗�!");
+                            }
+
                         } else {
                             layer.close(ajaxLoad);
-                            layer.alert(data1.Message, { icon: 5 });
                         }
                     }, error: function () {
                         layer.close(ajaxLoad);
                         layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
                     }
                 });
-
-                layer.open({
-                    type: 2
-                    , area: ['50%', '50%']
-                    , title: '鎵撳嵃妯$増閫夋嫨'
-                    , shade: 0.6 //閬僵閫忔槑搴�
-                    , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + hinterid + '&MyMsg=' + hinterid + '&Type=HProcessExchange', 'yes']
-                    , resize: false
-                })
+               
             });
 
             //閫夋嫨瀛愪欢寮圭獥PartInformation.html

--
Gitblit v1.9.1