From 7d890991a650759897480d0cfbf67db52ebdb8e7 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 28 八月 2023 13:53:47 +0800
Subject: [PATCH] 异常反馈单:动态列、完善审核、反审核功能,修复编辑子表2重复添加问题,编辑页面因为源单数据类型无法保存的修复,编辑页面物料信息改为可编辑

---
 WebTM/views/生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html |   49 ++++++++++++++++++++++++++++++-------------------
 1 files changed, 30 insertions(+), 19 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/Sc_Add_MESExecptFeedBackBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/Sc_Add_MESExecptFeedBackBillList.html"
index 24b4277..6e067f8 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/Sc_Add_MESExecptFeedBackBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/Sc_Add_MESExecptFeedBackBillList.html"
@@ -150,8 +150,8 @@
                                                             <label class="layui-form-label">绱ф�ョ▼搴�:</label>
                                                             <div class="layui-input-inline">
                                                                 <select name="HLevel" lay-filter="HLevel" id="HLevel">
-                                                                    <option value="0" selected="selected">鏅��</option>
-                                                                    <option value="1">绱ф��</option>
+                                                                    <option value="鏅��" selected="selected">鏅��</option>
+                                                                    <option value="绱ф��">绱ф��</option>
                                                                 </select>
                                                             </div>
                                                         </div>
@@ -189,8 +189,8 @@
                                                         <label class="layui-form-label">鍙戦�佺被鍨�:</label>
                                                         <div class="layui-input-inline">
                                                             <select name="HSendType" lay-filter="HSendType" id="HSendType">
-                                                                <option value="0" selected="selected">鍏叡</option>
-                                                                <option value="1">涓汉</option>
+                                                                <option value="鍏叡" selected="selected">鍏叡</option>
+                                                                <option value="涓汉">涓汉</option>
                                                             </select>
                                                         </div>
                                                     </div>
@@ -206,14 +206,14 @@
                                                         <label class="layui-form-label">婧愬崟鍗曞彿:</label>
                                                         <div class="layui-input-inline">
                                                             <input class="layui-input" name="HMainSourceBillNo" lay-verify="HMainSourceBillNo" id="HMainSourceBillNo" disabled autocomplete="off">
-                                                            <input id="HMainSourceInterID" name="HMainSourceInterID" type="hidden" />
-                                                            <input id="HMainSourceEntryID" name="HMainSourceEntryID" type="hidden" />
+                                                            <input id="HMainSourceInterID" name="HMainSourceInterID" value="0" type="hidden" />
+                                                            <input id="HMainSourceEntryID" name="HMainSourceEntryID" value="0" type="hidden" />
                                                         </div>
                                                     </div>
-                                                    <div class="layui-inline">
+                                                    <div class="layui-inline" style="display:none;">
                                                         <label class="layui-form-label">鍌績娆℃暟:</label>
                                                         <div class="layui-input-inline">
-                                                            <input class="layui-input" name="HHasten" lay-verify="HHasten" id="HHasten" autocomplete="off">
+                                                            <input class="layui-input" name="HHasten" lay-verify="HHasten" id="HHasten" autocomplete="off" value="0">
                                                         </div>
                                                     </div>
                                                 </div>
@@ -221,13 +221,13 @@
                                                     <div class="layui-inline">
                                                         <label class="layui-form-label">浜у搧鍚嶇О:</label>
                                                         <div class="layui-input-inline">
-                                                            <input class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" autocomplete="off" disabled>
+                                                            <input class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" >
                                                         </div>
                                                     </div>
                                                     <div class="layui-inline">
                                                         <label class="layui-form-label">瑙勬牸鍨嬪彿:</label>
                                                         <div class="layui-input-inline">
-                                                            <input class="layui-input" name="HMaterModel" lay-verify="HMaterModel" id="HMaterModel" autocomplete="off" disabled>
+                                                            <input class="layui-input" name="HMaterModel" lay-verify="HMaterModel" id="HMaterModel" >
                                                         </div>
                                                     </div>
                                                     <div class="layui-inline">
@@ -363,16 +363,21 @@
             var linterid = params[params[1]];//婧愬崟id
             var HEntryID = params[params[2]];//婧愬崟瀛恑d
             var HSBillType = params[params[3]];//婧愬崟绫诲瀷
+            var HBillType = params[params[3]];
+            var HSourceInterID = params[params[4]];
+            var HSourceEntryID = params[params[5]];
+            var HSourceBillNo = params[params[6]];
+            var HSourceBillType = params[params[7]];
         }
 
-        var edit = function (data) {
-            HBillType = data[0].HBillType;
-            HMainSourceInterID = data[0].HSourceInterID;
-            HMainSourceEntryID = data[0].HSourceEntryID;
-            HMainSourceBillNo = data[0].HSourceBillNo;
-            HMainSourceBillType = data[0].HSourceBillType;
+        //var edit = function (data) {
+        //    HBillType = data[0].HBillType;
+        //    HMainSourceInterID = data[0].HSourceInterID;
+        //    HMainSourceEntryID = data[0].HSourceEntryID;
+        //    HMainSourceBillNo = data[0].HSourceBillNo;
+        //    HMainSourceBillType = data[0].HSourceBillType;
 
-        }
+        //}
 
 
         layui.config({
@@ -687,8 +692,14 @@
 
             //閫�鍑�
             form.on('submit(Exit)', function (data) {
-                Pub_Close(1);
-                window.parent.location.reload();
+                if (linterid == undefined) {
+                    //鍏抽棴椤电
+                    Pub_Close(2);
+                }
+                else {
+                    //鍏抽棴椤电
+                    Pub_Close(1);
+                }
             });
 
 

--
Gitblit v1.9.1