From cb2fc709d4e2aec6bbea3e6f4e8ccc24f3d27756 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期日, 06 十月 2024 17:27:08 +0800
Subject: [PATCH] 工艺路线工价

---
 WebTM/views/领料发货/领料出库/Kf_StockOutRequestBill.html |  176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 170 insertions(+), 6 deletions(-)

diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_StockOutRequestBill.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_StockOutRequestBill.html"
index bc09a53..4c14510 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_StockOutRequestBill.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_StockOutRequestBill.html"
@@ -249,6 +249,8 @@
                             <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>澧炲姞涓�琛�</button>
                             <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>澶嶅埗涓�琛�</button>
                             <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>鍒楄缃�</button>
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Inventory" id="get_Inventory"><i class="layui-icon layui-icon-form"></i>搴撳瓨鏌ヨ</button>
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="get_InOutSum" id="get_InOutSum"><i class="layui-icon layui-icon-form"></i>鍑哄叆搴撹褰曟煡璇�</button>
                         </div>
                     </script>
 
@@ -377,6 +379,12 @@
                             //鍒锋柊澶嶉�夋
                             //checkRefresh();
                         }
+                        break;
+                    //搴撳瓨鏌ヨ
+                    case 'get_Inventory': get_Inventory();
+                        break;
+                    //鍑哄叆搴撹褰曟煡璇�
+                    case 'get_InOutSum': get_InOutSum();
                         break;
                     ////鍒楄缃�
                     //case 'set_HideColumn':
@@ -602,6 +610,56 @@
             }
             //#endregion
 
+            //#region 搴撳瓨鏌ヨ
+            function get_Inventory() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1 && data[0].HMaterID != 0) {
+                    var HMaterID = data[0].HMaterID.toString();
+                    //寮圭獥鏂规硶
+                    layer.open({
+                        type: 2//寮圭獥绫诲瀷
+                        , skin: 'layui-layer-rim' //鍔犱笂杈规
+                        , area: ['90%', '90%']//澶у皬
+                        , title: '搴撳瓨鏌ヨ鍒楄〃'//鏍囬
+                        , shift: 2//寮瑰嚭鍔ㄧ敾
+                        , content: ['../../浠撳瓨绠$悊/鏉$爜鎶ヨ〃/Kf_ICinventoryQueryReport.html?Type=1&HMaterID=' + HMaterID, 'yes']
+                        , btn: ['鍙栨秷']
+                        , btn1: function (index, layero) {
+                            layer.close(index);
+                        }
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾湁鐗╂枡鏁版嵁鏌ヨ锛�');
+                }
+            }
+            //#endregion
+            //#region 鍑哄叆搴撹褰曟煡璇�
+            function get_InOutSum() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1 && data[0].HMaterID != 0) {
+                    var HMaterID = data[0].HMaterID.toString();
+                    layer.open({
+                        type: 2//寮圭獥绫诲瀷
+                        , skin: 'layui-layer-rim' //鍔犱笂杈规
+                        , area: ['90%', '90%']//澶у皬
+                        , title: '鍑哄叆搴撹褰曞垪琛�'//鏍囬
+                        , shift: 2//寮瑰嚭鍔ㄧ敾
+                        , content: ['../../浠撳瓨绠$悊/鏉$爜鎶ヨ〃/Kf_StockInOutSumQueryReport.html?Type=1&HMaterID=' + HMaterID, 'yes']
+                        , btn: ['鍙栨秷']
+                        , btn1: function (index, layero) {
+                            layer.close(index);
+                        }
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾湁鐗╂枡鏁版嵁鏌ヨ锛�');
+                }
+            }
+            //#endregion
+
             //#region 淇濆瓨鏂规硶
             function set_SaveBill(data) {
 
@@ -680,6 +738,14 @@
                                     })
                                     layer.close(index);//鍏抽棴寮圭獥
                                 }
+                                 , end: function () {
+                                    obj.update({
+                                     "HMaterID" :OptionData.HMaterID
+                                        ,"鐗╂枡浠g爜" : OptionData.鐗╂枡浠g爜
+                                       , "鐗╂枡鍚嶇О" :OptionData.鐗╂枡鍚嶇О
+                                        ,"瑙勬牸鍨嬪彿" : OptionData.瑙勬牸鍨嬪彿
+                                })
+                                }
                             })
                         }
                         //璁¢噺鍗曚綅
@@ -709,6 +775,12 @@
                                     })
                                     layer.close(index);//鍏抽棴寮圭獥
                                 }
+                              , end: function () {
+                                obj.update({
+                                    "HUnitID": OptionData.HItemID
+                                    , "璁¢噺鍗曚綅": OptionData.璁¢噺鍗曚綅鍚嶇О
+                                })
+                            }
                             })
                         }
                         //浠撳簱
@@ -738,6 +810,12 @@
                                     })
                                     layer.close(index);//鍏抽棴寮圭獥
                                 }
+                             , end: function () {
+                                obj.update({
+                                    "HWHID": OptionData.HItemID
+                                    , "浠撳簱": OptionData.浠撳簱鍚嶇О
+                                })
+                            }
                             })
                         }
                         //浠撲綅
@@ -767,6 +845,12 @@
                                     })
                                     layer.close(index);//鍏抽棴寮圭獥
                                 }
+                                  , end: function () {
+                                obj.update({
+                                    "HSPID": OptionData.HItemID
+                                    , "浠撲綅": OptionData.浠撲綅鍚嶇О
+                                })
+                            }
                             })
                         }
                         //搴撳瓨杈呭崟浣�
@@ -796,6 +880,12 @@
                                     })
                                     layer.close(index);//鍏抽棴寮圭獥
                                 }
+                                 , end: function () {
+                                obj.update({
+                                    "HSecUnitID": OptionData.HItemID
+                                    , "搴撳瓨杈呭崟浣�": OptionData.璁¢噺鍗曚綅鍚嶇О
+                                })
+                            }
                             })
                         }
                         //鍩烘湰鍗曚綅
@@ -825,6 +915,12 @@
                                     })
                                     layer.close(index);//鍏抽棴寮圭獥
                                 }
+                                  , end: function () {
+                                obj.update({
+                                    "HBASEUNITID": OptionData.HItemID
+                                    , "鍩烘湰鍗曚綅": OptionData.璁¢噺鍗曚綅鍚嶇О
+                                })
+                            }
                             })
                         }
                         //杈呭崟浣�
@@ -854,6 +950,12 @@
                                     })
                                     layer.close(index);//鍏抽棴寮圭獥
                                 }
+                                 , end: function () {
+                                obj.update({
+                                    "HEXTAUXUNITID": OptionData.HItemID
+                                    , "杈呭崟浣�": OptionData.璁¢噺鍗曚綅鍚嶇О
+                                })
+                            }
                             })
                         }
 
@@ -889,7 +991,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '涓氬姟鍛樺垪琛�'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HEmp', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -912,7 +1014,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '涓荤鍒楄〃'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HManager', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -935,7 +1037,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '寰�鏉ュ崟浣嶅垪琛�'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html', 'yes']
+                    , content: ['../../鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html?Type=HSup', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -981,7 +1083,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '楠屾敹鍒楄〃'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -1004,7 +1106,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '淇濈鍛樺垪琛�'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -1027,7 +1129,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '浠撳簱鍒楄〃'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Warehouse.html', 'yes']
+                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Warehouse.html?Type=HWH', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -1056,6 +1158,68 @@
 
             //浠ヤ笂鏄痩ayui妯″潡
         });
+
+          // 鍩虹璧勬枡杩斿洖鏁版嵁
+        function GetHSupNameValue(obj)  //杩斿洖渚涘簲鍟�
+       {
+            $("#HSupName").val(obj[0].渚涘簲鍟嗗悕绉�);
+            $("#HSupID").val(obj[0].HItemID);
+        } 
+
+        function GetHSecManagerValue(obj)  //杩斿洖楠屾敹鍛�
+        {
+            $("#HSecManagerName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HSecManagerID").val(obj[0].HItemID);
+        }
+
+       function GetHKeeperValue(obj)  //杩斿洖淇濈鍛�
+       {
+            $("#HKeeperName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HKeeperID").val(obj[0].HItemID);
+        }
+
+        function GetHWHValue(obj)  //杩斿洖浠撳簱
+        {
+            $("#HWHName").val(obj[0].浠撳簱鍚嶇О);
+            $("#HWHID").val(obj[0].HItemID);
+        }
+
+        function GetHDeptNameValue(obj)  //杩斿洖閮ㄩ棬
+        {
+            $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+            $("#HDeptID").val(obj[0].HItemID);
+        }
+
+        function GetHEmpValue(obj)  //杩斿洖浠撶鍛�
+        {
+            $("#HEmpName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HEmpID").val(obj[0].HItemID);
+        } 
+
+         function GetHManagerValue(obj)  //杩斿洖璐熻矗浜�
+        {
+            $("#HMangerName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HManagerID").val(obj[0].HItemID);
+        } 
+
+          //鍙屽嚮杩斿洖鐗╂枡
+         function GetGyMaterial(data) {
+             OptionData = data
+         }
+           //鍙屽嚮杩斿洖璁¢噺鍗曚綅
+         function GetGyUnit(data) {
+             OptionData = data
+         }
+
+           //鍙屽嚮杩斿洖浠撳簱
+         function GetGyWarehouse(data) {
+             OptionData = data
+         } 
+
+          //鍙屽嚮杩斿洖浠撲綅
+         function GetGyStockPlace(data) {
+             OptionData = data
+         }
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1