From 188ad6fc153f592c2e8c6f31b54e4be87623965e Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期六, 25 十二月 2021 15:16:47 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI

---
 WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_FastList.html |  206 ++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 138 insertions(+), 68 deletions(-)

diff --git "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_FastList.html" "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_FastList.html"
index 4392c60..4208f7a 100644
--- "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_FastList.html"
+++ "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_FastList.html"
@@ -67,6 +67,9 @@
                                     <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">鍒锋柊</button>
                                 </div>
                                 <div class="layui-col-xs2">
+                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRescind">鎾ら攢</button>
+                                </div>
+                                <div class="layui-col-xs2">
                                     <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button>
                                 </div>
                                 <div class="layui-col-xs2">
@@ -145,7 +148,7 @@
                 , shade: 0.6 //閬僵閫忔槑搴�
                 , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
                 , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                , content: ['../../浠撳簱璋冩嫧/浠撳簱璋冩嫧/Kf_MoveStockBill_Fast.html?linterid=' + data[0].HInterID, 'yes']
+                , content: ['../../浠撳瓨绠$悊/浠撳簱璋冩嫧/Kf_MoveStockBill_Fast.html?linterid=' + data[0].HInterID, 'yes']
                 // , content: ['../../views/WarM/KF_POInStockBill.html?linterid=' + JSON.stringify(data), 'yes']
                 // , content: ['../../views/WarM/KF_POInStockBill.html?linterid=' + rows, 'yes']
                 , resize: false
@@ -156,88 +159,130 @@
         });
 
         form.on('submit(cmdRefresh)', function () {//鍒锋柊
-            var sBillType = '1207'
             table.render({
                 elem: '#dj-table'
-                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
-                    ,toolbar: '#toolbarDemo'
-                    , where: { HBillType: sBillType,sWhere:''}
+                , url: GetWEBURL() + '/Web/chanpinruk'
+                , toolbar: '#toolbarDemo'
+                , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
+                , cols: [[
+                    { type: 'radio' }
+                    , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
+                    , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
+                    , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
+                    , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
+                    , { field: 'HQty', title: '鏁伴噺', width: 100 }
+                    , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
+                    , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 }
+                    , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
+                ]]
+                , height: 500
+                , done: function () {
+                    layer.closeAll("loading");
+                }
+            }),
+                table.render({
+                    elem: '#yd-table'
+                    , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
+                    , toolbar: '#toolbarDemo'
+                    , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
                     , cols: [[
-                          { type: 'radio' }
+                        { type: 'radio' }
                         , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
                         , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
                         , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
                         , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
+                        , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 100 }
+                        , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 100 }
+                        , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 100 }
                         , { field: 'HQty', title: '鏁伴噺', width: 100 }
                         , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
-                        , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 }
-                        , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
+                        , { field: 'HOrgID', title: '缁勭粐', width: 100 }
                     ]]
-                      , height: 500
-                      , done: function () {
-                          layer.closeAll("loading");
-                      }
-            });
+                    , height: 500
+                    , done: function () {
+                        layer.closeAll("loading");
+                    }
+                })
+        });
+
+
+        //鎾ら攢鍔熻兘
+        form.on('submit(cmdRescind)', function () {
+            var checkStatus = table.checkStatus('yd-table')
+                , data = checkStatus.data;
+            var sInterID = data[0].HInterID
+            var sBillNo = data[0].HBillNo
+            var sBillType = '1207'
+            $.ajax(
+                {
+                    type: "Get",
+                    url: GetWEBURL() + "/Web/Rescind_Json",
+                    async: true,
+                    data: { "sHInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType },
+                    dataType: "json",
+                    success: function (data) {
+                        if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                // 寰楀埌frame绱㈠紩
+                                var index = layer.getFrameIndex(window.name);
+                                //鍏抽棴褰撳墠frame
+                                layer.close(index);
+                                //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                window.location.reload();
+                            });
+                        }
+                        else {
+                            layer.msg(data.Message, { icon: 2 });
+                        }
+                    },
+                    error: function (err) {
+                        layer.msg('閿欒' + err, {
+                            icon: 5,
+                            time: 20000
+                        }, function () {
+                            //do something
+                        });
+                    }
+                });
         });
 
 
 
         form.on('submit(cmdDelete)', function () {//鍒犻櫎
             var checkStatus = table.checkStatus('dj-table')
-            , data = checkStatus.data;
-            // console.log(data);
-            // var sInterID = $('#HInterID').val()
+                , data = checkStatus.data;
             var sInterID = data[0].HInterID
-            //var sMaterID = data[0].HMaterID   
-            //var sBillType = $('#HBillType').val()
-            //var sAuxPropID = data[0].HAuxPropID
-            ////var sMTONo = data[0].HMTONo
-            //var sMTONo = 0
-            //var sSourceInterID = data[0].HSourceInterID
-            //var sSourceEntryID = data[0].HSourceEntryID
             $.ajax(
-               {
-                   type: "Get",
-                   url: GetWEBURL() + "/Web/Delete_Json",
-                   async: true,
-                   data: { "sHInterID": sInterID },
-                   dataType: "json",
-                   success: function (data) {
-                       if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                           //layer.msg(data.Message, { icon: 1 });
-                           table.render({
-                               elem: '#dj-table'
-                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
-                               , cellMinWidth: 80
-                               , toolbar: '#toolbarDemo'
-                               , where: { HBillType: '1207', sWhere: '' }
-                               , cols: [[
-                                   { type: 'radio' }
-                                , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
-                                , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
-                                , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
-                                , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
-                                , { field: 'HQty', title: '鏁伴噺', width: 100 }
-                                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
-                                , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 }
-                                , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
-                               ]]
-                         , height: 500
-                           })
-                       }
-                       else {
-                           layer.msg(data.Message, { icon: 2 });
-                       }
-                   },
-                   error: function (err) {
-                       layer.msg('閿欒' + err, {
-                           icon: 5,
-                           time: 20000
-                       }, function () {
-                           //do something
-                       });
-                   }
-               });
+                {
+                    type: "Get",
+                    url: GetWEBURL() + "/ProductInBillList/Delete_Json",
+                    async: true,
+                    data: { "sHInterID": sInterID },
+                    dataType: "json",
+                    success: function (data) {
+                        if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�,
+                            layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                // 寰楀埌frame绱㈠紩
+                                var index = layer.getFrameIndex(window.name);
+                                //鍏抽棴褰撳墠frame
+                                layer.close(index);
+                                //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                window.location.reload();
+                            });
+                        }
+                        else {
+                            layer.msg(data.Message, { icon: 2 });
+                        }
+                    },
+                    error: function (err) {
+                        layer.msg('閿欒' + err, {
+                            icon: 5,
+                            time: 20000
+                        }, function () {
+                            //do something
+                        });
+                    }
+                });
         });
         
        
@@ -245,9 +290,9 @@
         var sBillType = '1207'
                 table.render({
                     elem: '#dj-table'
-                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
+                    , url: GetWEBURL() + '/Web/chanpinruk'
                     ,toolbar: '#toolbarDemo'
-                    , where: { HBillType: sBillType,sWhere:''}
+                    , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
                     , cols: [[
                           { type: 'radio' }
                         , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
@@ -263,7 +308,32 @@
                       , done: function () {
                           layer.closeAll("loading");
                       }
-    })
+                })
+
+        //宸蹭笂浼犲垪琛�
+        table.render({
+            elem: '#yd-table'
+            , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
+            , toolbar: '#toolbarDemo'
+            , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
+            , cols: [[
+                { type: 'radio' }
+                , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
+                , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
+                , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
+                , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
+                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 100 }
+                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 100 }
+                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 100 }
+                , { field: 'HQty', title: '鏁伴噺', width: 100 }
+                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
+                , { field: 'HOrgID', title: '缁勭粐', width: 100 }
+            ]]
+            , height: 500
+            , done: function () {
+                layer.closeAll("loading");
+            }
+        })
         //鍒锋柊鏄庣粏椤电
         table.render({
             elem: '#mx-table' 

--
Gitblit v1.9.1