From af927cc4dce912ff07aff3656c4e6c911747bbee Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期四, 24 十月 2024 12:38:23 +0800
Subject: [PATCH] 关闭其它优化

---
 WebTM/WebTM.csproj.user                            |    2 +-
 WebTM/views/计划管理/工艺路线/Gy_RoutingBill.html          |   13 ++++++++++---
 WebTM/views/计划管理/工艺路线/Gy_RoutingBillCloseList.html |    2 +-
 WebTM/layuiadmin/Scripts/webConfig.js              |    2 +-
 WebTM/views/计划管理/工艺路线/Gy_RoutingBillList.html      |    4 ++--
 5 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index ee77abe..67044c2 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -3,7 +3,7 @@
   <PropertyGroup>
     <NameOfLastUsedPublishProfile>C:\Users\86130\Desktop\鏅轰簯杩堟�漒MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
     <ProjectView>ProjectFiles</ProjectView>
-    <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
+    <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
     <UseIISExpress>true</UseIISExpress>
     <Use64BitIISExpress />
     <IISExpressSSLPort />
diff --git a/WebTM/layuiadmin/Scripts/webConfig.js b/WebTM/layuiadmin/Scripts/webConfig.js
index 42e7a5f..9b027c4 100644
--- a/WebTM/layuiadmin/Scripts/webConfig.js
+++ b/WebTM/layuiadmin/Scripts/webConfig.js
@@ -8,7 +8,7 @@
     //var WEBURL = "http://localhost:8082/API/";    //鏉滆春鏈湴閰嶇疆
     /*var WEBURL = "http://localhost/API/";*/    //娼樻禉娓告湰鍦伴厤缃�  
     var WEBURL = "http://localhost:8082/API/";    //寮犵憺骞挎湰鍦伴厤缃�
-    //var WEBURL = "http://localhost:81/API/"    //缈佹稕娑涙湰鍦伴厤缃�
+    var WEBURL = "http://localhost:81/API/"    //缈佹稕娑涙湰鍦伴厤缃�
     //var WEBURL = "http://47.96.97.237/API/";          //鏅轰簯鏈嶅姟鍣�
     /*var WEBURL = "http://localhost:8082/LuBaoAPI/"; */  //浣欐�濇澃鏈湴閰嶇疆
     //var WEBURL = "http://localhost:8088/ARAPI/";      //浣欐�濇澃鏈湴閰嶇疆(瀹夌憺)
diff --git "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html" "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html"
index bc1b77e..5fee806 100644
--- "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html"
+++ "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html"
@@ -318,7 +318,7 @@
                                         <div class="layui-inline">
                                             <label class="layui-form-label" style="width: 85px;">鍏抽棴浜�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
-                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="hcloser" id="hcloser" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
@@ -338,7 +338,7 @@
                                         <div class="layui-inline">
                                             <label class="layui-form-label" style="width: 85px;">鍏抽棴鏃ユ湡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
-                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="hclosedate" id="hclosedate" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
@@ -824,7 +824,12 @@
             });
             //绂佺敤鍏跺畠
             form.on('submit(set_closeOtherRoute)', function (data) {
-                set_closeOtherRoute(data);
+                if ($("#hcloser").val != '') {
+                    layer.alert("鍗曟嵁宸茶鍏抽棴鏃犳硶鍏抽棴鍏跺畠!", { icon: 5 });
+                } else {
+                    set_closeOtherRoute(data);
+                }
+                
             });
 
             //瀹℃牳
@@ -2268,6 +2273,8 @@
                             , "hupdatedate": d.data[0].淇敼鏃ユ湡 == null ? "" : Format(new Date(d.data[0].淇敼鏃ユ湡), "yyyy-MM-dd")
                             , "hdeleteman": d.data[0].浣滃簾浜�
                             , "hdeletedate": d.data[0].浣滃簾鏃ユ湡 == null ? "" : Format(new Date(d.data[0].浣滃簾鏃ユ湡), "yyyy-MM-dd")
+                            , "hcloser": d.data[0].鍏抽棴浜�
+                            , "hclosedate": d.data[0].鍏抽棴鏃ユ湡 == null ? "" : Format(new Date(d.data[0].鍏抽棴鏃ユ湡), "yyyy-MM-dd")
                         });
 
                         //瀛愯〃  璧嬪��
diff --git "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBillCloseList.html" "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBillCloseList.html"
index f1c667b..dc149e7 100644
--- "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBillCloseList.html"
+++ "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBillCloseList.html"
@@ -700,7 +700,7 @@
                     //浠庡埆鐨勯〉闈㈡墦寮�浼犲叆Hmaterid鍊硷紝璁剧疆鐗╂枡杩囨护
                     sWhere += " and HMaterID = " + HMaterID;
                     //浠庡埆鐨勯〉闈㈡墦寮�璁剧疆鍏抽棴
-                    sWhere += " and hmainid!=" + HInterID + " and 宸ヨ壓鍚嶇О = ''" + HName.toString() + "''";
+                    sWhere += " and hmainid!=" + HInterID + " and 宸ヨ壓鍚嶇О = ''" + HName.toString() + "''" + "and 瀹℃牳浜�!=''''";
                 } else {
                     //涓嶆槸浠庡埆鐨勯〉闈㈡墦寮�
                     var HMaterID2 = $("#HMaterID").val();
diff --git "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBillList.html" "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBillList.html"
index 77e4337..6b7f46d 100644
--- "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBillList.html"
+++ "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBillList.html"
@@ -1238,7 +1238,7 @@
             function set_closeOtherRoute() {
                 var checkStatus = table.checkStatus('mainTable')
                     , data = checkStatus.data;
-                if (checkStatus.data.length === 1) {
+                if (checkStatus.data.length === 1 && checkStatus.data[0]["瀹℃牳浜�"]=="") {
                     var hmainid = data[0].hmainid.toString();
                     var HName = data[0]["宸ヨ壓鍚嶇О"].toString();
                     var HMaterID = data[0]["HMaterID"].toString();
@@ -1287,7 +1287,7 @@
                         }
                     })
                 } else {
-                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹煡鐪嬶紒');
+                    layer.msg('璇烽�夋嫨涓�琛屾湭琚叧闂殑鏁版嵁鏌ョ湅锛�');
                 }
             }
             //#endregion

--
Gitblit v1.9.1