From 6cc377411a24d8670df93fec5d0ade664e7c5e2f Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期三, 13 三月 2024 10:36:19 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/生产管理/生产计划平台/JIT_DayPlanPlatForm.html |   32 ++++++++++++++++++--------------
 1 files changed, 18 insertions(+), 14 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/JIT_DayPlanPlatForm.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/JIT_DayPlanPlatForm.html"
index 9aff68b..215c28c 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/JIT_DayPlanPlatForm.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\350\256\241\345\210\222\345\271\263\345\217\260/JIT_DayPlanPlatForm.html"
@@ -749,6 +749,7 @@
             columns.push({ field: '鐢熶骇璁㈠崟鍙�', title: '鐢熶骇璁㈠崟鍙�', width: 150, style: 'background-color: #f9f9f9;', sort: true });
             columns.push({ field: '鐢熶骇璁㈠崟鏄庣粏琛屽彿', title: '鐢熶骇璁㈠崟鏄庣粏琛屽彿', width: 150, sort: true });
             columns.push({ field: '鐢熶骇缁勭粐', title: '鐢熶骇缁勭粐', width: 150, sort: true });
+            columns.push({ field: 'HMaterID', title: 'HMaterID', hide: true });
             columns.push({ field: '鐗╂枡浠g爜', title: '鐗╂枡缂栫爜', width: 150, sort: true });
             columns.push({ field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 150, sort: true });
             columns.push({ field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 150, sort: true });
@@ -916,7 +917,7 @@
             columns.push({ field: 'HGroupName', title: 'HGroupName', width: 150, hide:true });
             columns.push({ field: '鐢熶骇璧勬簮浠g爜', title: '鐢熶骇璧勬簮浠g爜', width: 150, hide: true });
             columns.push({ field: 'HSourceID', title: 'HSourceID', hide: true });
-            columns.push({ field: 'HMaterID', title: 'HMaterID', hide: true });
+           
             columns.push({ field: 'HWorkShopID', title: 'HWorkShopID', hide: true });
             columns.push({ field: 'HUnitID', title: 'HUnitID', hide: true });
             columns.push({ field: 'HProdORGID', title: 'HProdORGID', hide: true });
@@ -1572,20 +1573,23 @@
                     data: { "sWhere": sWhere },
                     success: function (data) {
                         if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            var HInterID = data.data[0]["HInterID"];
+                            if (data.data.length == 0) {
+                                return layer.msg("褰撳墠鐗╂枡娌℃湁宸ヨ壓璺嚎!");
+                            } else {
+                                var HInterID = data.data[0]["HInterID"];
 
-                            layer.open({
-                                type: 2
-                                , area: ['100%', '100%']
-                                , title: '宸ヨ壓璺嚎-缂栬緫'
-                                , shift: 0//寮瑰嚭鍔ㄧ敾
-                                , content: '../../璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=3301'
-                                , end: function () {
-                                    //鍒锋柊椤甸潰,
-                                    //location.reload();
-                                }
-                            })
-
+                                layer.open({
+                                    type: 2
+                                    , area: ['100%', '100%']
+                                    , title: '宸ヨ壓璺嚎-缂栬緫'
+                                    , shift: 0//寮瑰嚭鍔ㄧ敾
+                                    , content: '../../璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=3301'
+                                    , end: function () {
+                                        //鍒锋柊椤甸潰,
+                                        //location.reload();
+                                    }
+                                })
+                            }
                         }
                         else {
                             layer.msg(data.Message, { icon: 5 });

--
Gitblit v1.9.1