From 8aa847ee917bd5cb8929d2ae616a6185dc642ecb Mon Sep 17 00:00:00 2001
From: black-goat-me <226547893@qq.com>
Date: 星期四, 13 四月 2023 10:39:46 +0800
Subject: [PATCH] 1

---
 WebTM/views/验收入库/外购入库/Kf_POStockInBill_FastList.html |  496 +++++++++++++++++++++++++++---------------------------
 1 files changed, 248 insertions(+), 248 deletions(-)

diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_FastList.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_FastList.html"
index e1a680d..884845c 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_FastList.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_FastList.html"
@@ -111,62 +111,62 @@
     <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
     <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
     <script>
-    layui.config({
-        base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
-    }).extend({
-        index: 'lib/index' //涓诲叆鍙fā鍧�
-    }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
-        var $ = layui.$
-        , admin = layui.admin
-        , layer = layui.layer
-        , table = layui.table
-        , form = layui.form
-        , element = layui.element;
-        var sBillType = '1201'
-        //娓呯┖鐣岄潰  new
-
-        //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new
-
-        //鍔犺浇婧愬崟绫诲瀷
-
-        //璇诲彇鍗曟嵁鍒楄〃
-
-        //閫�鍑�
-        form.on('submit(cmdCancel)', function () {
-            layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
-                parent.location.href = "../../../views/index.html";
-            });
-            //parent.location.href = "../../../views/index.html"
-            //window.close();//鍏抽棴褰撳墠椤�
-        })
-        //缂栬緫
-        form.on('submit(cmdModify)', function () {
-            var checkStatus = table.checkStatus('dj-table')
-                     , data = checkStatus.data;
-            //ajaxLabelData = data;
-            //layer.alert(rows);
-            layer.open({
-                type: 2
-                , area: ['100%', '100%']
-                , title: '澶栬喘鍏ュ簱鍗�'
-                , shade: 0.6 //閬僵閫忔槑搴�
-                , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
-                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                , content: ['../../楠屾敹鍏ュ簱/澶栬喘鍏ュ簱/Kf_POStockInBill_Fast.html?linterid=' + data[0].HInterID, 'yes']
-                , resize: false
-                , cancel: function () {
-                    $(".layui-btn").removeClass("layui-btn-disabled");
-                }
-            })
-        });
-        //鍒锋柊
-        form.on('submit(cmdRefresh)', function () {//
+        layui.config({
+            base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+        }).extend({
+            index: 'lib/index' //涓诲叆鍙fā鍧�
+        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
+            var $ = layui.$
+                , admin = layui.admin
+                , layer = layui.layer
+                , table = layui.table
+                , form = layui.form
+                , element = layui.element;
             var sBillType = '1201'
-            table.render({
-                elem: '#dj-table'
-                    ,url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
-                    ,toolbar: '#toolbarDemo'
-                    , where: { HBillType: sBillType,sWhere:''}
+            //娓呯┖鐣岄潰  new
+
+            //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new
+
+            //鍔犺浇婧愬崟绫诲瀷
+
+            //璇诲彇鍗曟嵁鍒楄〃
+
+            //閫�鍑�
+            form.on('submit(cmdCancel)', function () {
+                layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
+                    parent.location.href = "../../../views/index.html";
+                });
+                //parent.location.href = "../../../views/index.html"
+                //window.close();//鍏抽棴褰撳墠椤�
+            })
+            //缂栬緫
+            form.on('submit(cmdModify)', function () {
+                var checkStatus = table.checkStatus('dj-table')
+                    , data = checkStatus.data;
+                //ajaxLabelData = data;
+                //layer.alert(rows);
+                layer.open({
+                    type: 2
+                    , area: ['100%', '100%']
+                    , title: '澶栬喘鍏ュ簱鍗�'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../楠屾敹鍏ュ簱/澶栬喘鍏ュ簱/Kf_POStockInBill_Fast.html?linterid=' + data[0].HInterID, 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        $(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
+            //鍒锋柊
+            form.on('submit(cmdRefresh)', function () {//
+                var sBillType = '1201'
+                table.render({
+                    elem: '#dj-table'
+                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
+                    , toolbar: '#toolbarDemo'
+                    , where: { HBillType: sBillType, sWhere: '' }
                     , cols: [[
                         { type: 'radio' }
                         , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 120 }
@@ -178,11 +178,181 @@
                         , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 120 }
                         , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
                     ]]
-                      , height: 500
-                      , done: function () {
-                          layer.closeAll("loading");
-                      }
+                    , 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"] }
+                    , page: true  // 寮�鍚垎椤�
+                    , limits: [20, 40, 80, 100]
+                    , limit: 20
+                    , cols: [[
+                        { type: 'radio' }
+                        , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 120 }
+                        , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 150 }
+                        , { field: 'HMaker', title: '鍒跺崟浜�', width: 120 }
+                        , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 150 }
+                        , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
+                        , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+                        , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
+                        , { field: 'HQty', title: '鏁伴噺', width: 100 }
+                        , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
+                        , { field: 'HOrgID', title: '缁勭粐', width: 120 }
+                    ]]
+                    , height: 500
+                    , done: function () {
+                        layer.closeAll("loading");
+                    }
+                })
             });
+            //鎾ら攢鍔熻兘
+            form.on('submit(cmdRescind)', function () {
+                var checkStatus = table.checkStatus('yd-table');
+                var checkStatus2 = table.checkStatus('sy-table');
+                var data = "";
+                if (checkStatus.data.length != 0) {
+                    data = checkStatus.data;
+                } else if (checkStatus2.data.length != 0) {
+                    data = checkStatus2.data;
+                } else {
+                    return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
+                }
+                var sInterID = data[0].HInterID
+                var sBillNo = data[0].HBillNo
+                var sBillType = '1201'
+                $.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(result.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;
+                if (checkStatus.data.length === 1) {
+                    var sInterID = data[0].HInterID
+                    //閫昏緫鍒犻櫎鏂规硶
+                    layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
+                        $.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, { 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
+                                    });
+                                }
+                            });
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
+                }
+
+            });
+            //鏌ヨ
+            form.on('submit(cmdQuery)', function () {
+                var HBillNo = $("#HBillNo").val();
+                var HSourceBillNo = $("#HSourceBillNo").val();
+                var index = layer.load();//閬僵
+                //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
+                $.ajax({
+                    url: GetWEBURL() + '/Web/QueryBillUpdateLoad_Json',
+                    type: "GET",
+                    data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            option.data = data1.data;
+                            table.render(option);
+                            layer.close(index);
+                        } else {
+                            layer.close(index);
+                            layer.alert(data1.code + data1.Message, { icon: 5 });
+                        }
+                    }, error: function () {
+                        layer.close(index);
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    }
+                });
+            });
+
+
+            //缂撳瓨鍒楄〃
+            table.render({
+                elem: '#dj-table'
+                , url: GetWEBURL() + '/Web/chanpinruk'
+                , toolbar: '#toolbarDemo'
+                , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
+                , cols: [[
+                    { type: 'radio' }
+                    , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 120 }
+                    , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 150 }
+                    , { field: 'HMaker', title: '鍒跺崟浜�', width: 120 }
+                    , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 150 }
+                    , { field: 'HQty', title: '鏁伴噺', width: 100 }
+                    , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
+                    , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 120 }
+                    , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
+                ]]
+                , height: 500
+                , done: function () {
+                    layer.closeAll("loading");
+                }
+            })
+            //宸蹭笂浼犲垪琛�
             table.render({
                 elem: '#yd-table'
                 , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
@@ -209,158 +379,10 @@
                     layer.closeAll("loading");
                 }
             })
-        });
-        //鎾ら攢鍔熻兘
-        form.on('submit(cmdRescind)', function () {
-            var checkStatus = table.checkStatus('yd-table');
-            var checkStatus2 = table.checkStatus('sy-table');
-            var data = "";
-            if (checkStatus.data.length != 0) {
-                data = checkStatus.data;
-            } else if (checkStatus2.data.length != 0) {
-                data = checkStatus2.data;
-            } else {
-                return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
-            }
-            var sInterID = data[0].HInterID
-            var sBillNo = data[0].HBillNo
-            var sBillType = '1201'
-            $.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(result.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;
-            if (checkStatus.data.length === 1) {
-                var sInterID = data[0].HInterID
-                //閫昏緫鍒犻櫎鏂规硶
-                layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
-                    $.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, { 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
-                                });
-                            }
-                        });
-                })
-            }
-            else {
-                layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
-            }
-           
-        });
-        //鏌ヨ
-        form.on('submit(cmdQuery)', function () {
-            var HBillNo = $("#HBillNo").val();
-            var HSourceBillNo = $("#HSourceBillNo").val();
-            var index = layer.load();//閬僵
-            //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
-            $.ajax({
-                url: GetWEBURL() + '/Web/QueryBillUpdateLoad_Json',
-                type: "GET",
-                data: { "BillType":sBillType,"HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo},
-                success: function (data1) {
-                    if (data1.count == 1) {
-                        option.data = data1.data;
-                        table.render(option);
-                        layer.close(index);
-                    } else {
-                        layer.close(index);
-                        layer.alert(data1.code + data1.Message, { icon: 5 });
-                    }
-                }, error: function () {
-                    layer.close(index);
-                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
-                }
-            });
-        });
-        
-        
-        //缂撳瓨鍒楄〃
-        table.render({
-            elem: '#dj-table'
-            , url: GetWEBURL() + '/Web/chanpinruk'
-            , toolbar: '#toolbarDemo'
-            , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
-            , cols: [[
-                { type: 'radio' }
-                , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 120 }
-                , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 150 }
-                , { field: 'HMaker', title: '鍒跺崟浜�', width: 120 }
-                , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 150 }
-                , { field: 'HQty', title: '鏁伴噺', width: 100 }
-                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
-                , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 120 }
-                , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
-            ]]
-            , height: 500
-            , done: function () {
-                layer.closeAll("loading");
-            }
-        })
-        //宸蹭笂浼犲垪琛�
-        table.render({
-                elem: '#yd-table'
-                , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
+            //宸蹭笂浼犳煡璇�
+            table.render({
+                elem: '#sy-table'
                 , toolbar: '#toolbarDemo'
-                , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
-                , page: true  // 寮�鍚垎椤�
-                , limits: [20, 40, 80, 100]
-                , limit: 20
                 , cols: [[
                     { type: 'radio' }
                     , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 120 }
@@ -375,46 +397,24 @@
                     , { field: 'HOrgID', title: '缁勭粐', width: 120 }
                 ]]
                 , height: 500
-                , done: function () {
-                    layer.closeAll("loading");
-                }
-        })
-        //宸蹭笂浼犳煡璇�
-        table.render({
-            elem: '#sy-table'
-            , toolbar: '#toolbarDemo'
-            , cols: [[
-                { type: 'radio' }
-                , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 120 }
-                , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 150 }
-                , { field: 'HMaker', title: '鍒跺崟浜�', width: 120 }
-                , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 150 }
-                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
-                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
-                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
-                , { field: 'HQty', title: '鏁伴噺', width: 100 }
-                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
-                , { field: 'HOrgID', title: '缁勭粐', width: 120 }
-            ]]
-            , height: 500
-        })
+            })
 
-        //鍒锋柊鏄庣粏椤电
-        table.render({
-            elem: '#mx-table'
-            // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
-            //, toolbar: '#toolbarDemo'
-            // , where: { sMsg: linterid, sMsg2: lentryid }
-         , cols: [[
-           , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
-         ]]
-         , page: true
-         , height: 500
-         , done: function () {
-         }
+            //鍒锋柊鏄庣粏椤电
+            table.render({
+                elem: '#mx-table'
+                // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
+                //, toolbar: '#toolbarDemo'
+                // , where: { sMsg: linterid, sMsg2: lentryid }
+                , cols: [[
+                    , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
+                ]]
+                , page: true
+                , height: 500
+                , done: function () {
+                }
+            });
         });
-    });
-    //娓呯┖琛ㄥご
+        //娓呯┖琛ㄥご
     </script>
 
 </body>

--
Gitblit v1.9.1