From e73dfda065667fcef6d60efe4128ae6c8b65d938 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期四, 28 七月 2022 10:07:00 +0800
Subject: [PATCH] 工序流转卡 完善 工艺路线导入 完善

---
 WebTM/views/计划管理/工艺路线/Gy_RoutingBillimport.html        |   21 ++++++++++++---------
 WebTM/views/车间管理/工序流转卡/Sc_ProcessExchangeBillList.html |    7 +++----
 WebTM/views/车间管理/工序流转卡/Sc_ProcessExchangeBill.html     |    3 ++-
 3 files changed, 17 insertions(+), 14 deletions(-)

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_RoutingBillimport.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_RoutingBillimport.html"
index 52447f1..c8bb5bd 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_RoutingBillimport.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_RoutingBillimport.html"
@@ -57,8 +57,8 @@
                                     <label class="layui-form-label" style="width: 85px;">鏄惁杞伐搴�</label>
                                     <div class="layui-input-block" style="margin-left: 120px; width: 85px;">
                                         <select name=" HTProcessFlag" id="HTProcessFlag">
-                                            <option value="0">鍚�</option>
                                             <option value="1">鏄�</option>
+                                            <option value="0">鍚�</option>
                                         </select>
                                     </div>
                                 </div>
@@ -155,6 +155,7 @@
 
         //瀵煎叆  淇濆瓨鏁版嵁
         form.on('submit(btnSave)', function (data) {
+          
             if (table.cache["mainTable"] != null) {
                 set_AddNew(data);
             }
@@ -259,16 +260,16 @@
         //瀵煎叆(淇濆瓨)
         function set_AddNew(data) {
 
-            var num = [];
-            for (var i = 0; i < table.cache["mainTable"].length; i++) {
-                if (table.cache["mainTable"][i] != "") {
-                    table.cache["mainTable"][i].LAY_TABLE_INDEX = i;
-                    num.push(table.cache["mainTable"][i])
-                }
-            }
+            //var num = [];
+            //for (var i = 0; i < table.cache["mainTable"].length; i++) {
+            //    if (table.cache["mainTable"][i] != "") {
+            //        table.cache["mainTable"][i].LAY_TABLE_INDEX = i;
+            //        num.push(table.cache["mainTable"][i])
+            //    }
+            //}
             data.field.HOrgID = sessionStorage["OrganizationID"];//缁勭粐
             var sMainStr = JSON.stringify(data.field);
-            var sSubStr = JSON.stringify(num);
+            var sSubStr = '1';//JSON.stringify(num)
             var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"];
             var index = layer.load();
 
@@ -282,6 +283,8 @@
                     if (data.count == 1) {
                         layer.close(index);
                         layer.msg(data.Message);
+                        option.data = null;
+                        table.render(option);
                     }
                     else {
                         layer.close(index);
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 5e258ee..9c2e203 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"
@@ -753,8 +753,9 @@
                     , toolbar: '#toolbarDemo'
                     , page: false
                     , cellMinWidth: 120
-                    , height: 500
+                    , height: 400
                     , cols: [columns]
+                    , limit: Number.MAX_VALUE//榛樿鏄剧ず鍏ㄩ儴
                     , done: function (res, curr, count) {
                         option.data = res.data;
                         //鍘绘帀涓嬫媺妗嗗け鐒︿簨浠跺惁鍒欏湪涓嬫媺妗嗛噷杈撳叆鍊�
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_ProcessExchangeBillList.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_ProcessExchangeBillList.html"
index 0b1ad99..6b3900a 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_ProcessExchangeBillList.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_ProcessExchangeBillList.html"
@@ -352,11 +352,10 @@
                 option2 = {
                     elem: '#mainTable2'
                     //, toolbar: '#toolbarDemo'
-                    , page: true
-                    , height: 300
+                    , page: false
+                    , height: 500
                     , cellMinWidth: 90
-                    , limit: 50
-                    , limits: [50, 500, 5000, 20000]
+                    , limit: Number.MAX_VALUE//榛樿鏄剧ず鍏ㄩ儴
                     , cols: [[
 
                         { field: 'hsubid', title: 'hsubid', hide: true}

--
Gitblit v1.9.1