From 8a36bbee40f5e1069b15a98b1e64ac9719ee8a46 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期二, 23 四月 2024 17:17:13 +0800
Subject: [PATCH] 1.销售出库单 增加 反写源单 销售订单和发货通知单   超出 关联数量  关闭源单 2.应收单 增加  反写源单 销售出库单 和 销售订单  超出关联数量  关闭源单 3.动态获取源单增加参数 Num 0蓝单   1红单  2全部 4.销售流程的测试并完善功能; 销售订单-》发货通知单-》销售出库单-》应收单 (注意: 源单类型的下拉框 需要 根据数据库 表动态加载, 关联数量 要准确 , 审核 且 未关闭 未行关闭的行 才能下推 ,关联数量超额后,要 反写 关闭 源单 )

---
 WebTM/views/生产管理/异常反馈单/OA_ErrMsgBackSignBillMain.html |   45 +++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 43 insertions(+), 2 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/OA_ErrMsgBackSignBillMain.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/OA_ErrMsgBackSignBillMain.html"
index 4a3af4e..123713a 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/OA_ErrMsgBackSignBillMain.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/OA_ErrMsgBackSignBillMain.html"
@@ -405,6 +405,8 @@
                 , form = layui.form
                 , laydate = layui.laydate
                 , element = layui.element;
+
+            window.HDeptType = 0;
             //#endregion
 
             //鑾峰彇鍙傛暟
@@ -795,6 +797,8 @@
 
             //鍙戦�侀儴闂�
             form.on('submit(HDeptList)', function () {
+                HDeptType = 1;
+
                 //椤甸潰灞�-鑷畾涔�
                 layer.open({
                     type: 2,
@@ -833,6 +837,8 @@
 
             //鎺ユ敹閮ㄩ棬
             form.on('submit(HReceiveList)', function () {
+                HDeptType = 2;
+
                 //椤甸潰灞�-鑷畾涔�
                 layer.open({
                     type: 2,
@@ -880,7 +886,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes'],
+                    content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
 
@@ -1132,7 +1138,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes'],
+                    content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HEmp', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
 
@@ -1207,6 +1213,41 @@
 
             return [year, month, day].join('-');
         }
+
+        function GetHDeptNameValue(obj) {  //閮ㄩ棬
+            if (HDeptType == 1) {
+                $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+                $("#HDeptID").val(obj[0].HItemID);
+            } else if (HDeptType == 2) {
+                $("#HReceiveName").val(obj[0].閮ㄩ棬鍚嶇О);
+                $("#HReceiveID").val(obj[0].HItemID);
+            }
+        }
+
+        function GetErrMsgBackTypeValue(obj) {  //寮傚父鍙嶉
+            $("#HErrMsgBackTypeName").val(obj[0].寮傚父鍙嶉绫诲瀷鍚嶇О);
+            $("#HErrMsgBackTypeID").val(obj[0].HItemID);
+        }
+
+        function GetHEmpValue(obj) { //绛惧埌浜�
+            $("#HSignEmpName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HSignEmpID").val(obj[0].HItemID);
+        }
+
+        function GetHSecManagerValue(obj) {  //鍙戦�佷汉
+            $("#HSendMan").val(obj[0].鑱屽憳鍚嶇О);
+        }
+
+        function GetEquipFileValue(obj) {  //璁惧妗f
+            $("#HEquipName").val(obj[0].璁惧鍚嶇О);
+            $("#HEquipID").val(obj[0].hmainid);
+        }
+
+        function GetMouldFileValue(obj) {  //鍣ㄥ叿妗f
+            $("#HMouldName").val(obj[0].妯″叿鍚嶇О);
+            $("#HMouldID").val(obj[0].hmainid);
+        }
+
     </script>
 </body>
 </html>

--
Gitblit v1.9.1