From 96e23b3fb69d617a8f07aa5ff28af22ec78a6afa Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期五, 05 十一月 2021 13:33:22 +0800
Subject: [PATCH] nothing

---
 WebTM/views/验收入库/外购入库/Kf_POStockInBill_Fast.html   |    6 -
 WebTM/views/领料发货/销售出库/Kf_SellOutBackBill_Fast.html |    1 
 WebTM/views/index_Mobile.html                      |    4 
 WebTM/views/领料发货/收料入库/Kf_ReciveBill_Fast.html      |  297 +++++++++++++++++++++++++++++++++++++++++++++++++
 WebTM/WebTM.csproj                                 |    1 
 5 files changed, 301 insertions(+), 8 deletions(-)

diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index 7ccd06f..e182681 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -789,6 +789,7 @@
     <Content Include="views\杞﹂棿绠$悊\宸ュ簭杩涚珯鎺ユ敹鍗昞Sc_StationInBill_Mul_PDA.html" />
     <Content Include="views\杞﹂棿绠$悊\宸ュ簭杩涚珯鎺ユ敹鍗昞Sc_StationInBill_Mul.html" />
     <Content Include="views\閲囪喘绠$悊\閲囪喘璁㈠崟\Cg_POOrderBillList.html" />
+    <Content Include="views\棰嗘枡鍙戣揣\鏀舵枡鍏ュ簱\Kf_ReciveBill_Fast.html" />
     <Content Include="views\楠屾敹鍏ュ簱\浜у搧鍏ュ簱\Kf_ProductInBillList.html" />
     <Content Include="views\楠屾敹鍏ュ簱\鍏朵粬鍏ュ簱\Kf_OtherInBillList.html" />
     <Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Kf_ProductInBillList.html" />
diff --git a/WebTM/views/index_Mobile.html b/WebTM/views/index_Mobile.html
index 80cb672..5edbc4f 100644
--- a/WebTM/views/index_Mobile.html
+++ b/WebTM/views/index_Mobile.html
@@ -354,9 +354,9 @@
                           </a>
                       </dd>
                       <dd>
-                          <a href="" target="main_self_frame" style="color: aqua;">
+                          <a href="棰嗘枡鍙戣揣/鏀舵枡鍏ュ簱/Kf_ReciveBill_Fast.html" target="main_self_frame" style="color: aqua;">
                               <img src="../layuiadmin/myicon/鍗曟嵁褰曞埗.svg" alt="鍗曟嵁褰曞埗" style="width:25px;height:25px;margin-right: 5px;" />
-                              鍒拌揣鐐规暟n
+                              鍒拌揣鐐规暟
                           </a>
                       </dd>
                       <dd>
diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\346\224\266\346\226\231\345\205\245\345\272\223/Kf_ReciveBill_Fast.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\346\224\266\346\226\231\345\205\245\345\272\223/Kf_ReciveBill_Fast.html"
new file mode 100644
index 0000000..0cbe137
--- /dev/null
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\346\224\266\346\226\231\345\205\245\345\272\223/Kf_ReciveBill_Fast.html"
@@ -0,0 +1,297 @@
+锘�<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>鍒拌揣鐐规暟</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+</head>
+
+<body>
+    <div class="layui-fluid">
+        <div class="layui-card" style="padding: 1px">
+            <div class="layui-card-body" style="padding: 1px;">
+                <form class="layui-form" action="" lay-filter="component-form-group">
+                    <div class="layui-tab" lay-filter="tab-SellOutBackBill">
+                        <ul class="layui-tab-title" lay-filter="tab-all">
+                            <li lay-id="1">鍗曟嵁淇℃伅</li>
+                            <li lay-id="2">鏄庣粏淇℃伅</li>
+                        </ul>
+                        <div class="layui-tab-content">
+                            <div class="layui-tab-item layui-show">
+                                <div class="layui-form-item">
+                                    <div class="layui-row">
+                                        <div class="layui-col-xs4">
+                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">婧愬崟鍙�</label>
+                                        </div>
+                                        <div class="layui-col-xs8">
+                                            <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" autocomplete="off" class="layui-input">
+                                            <input type="hidden" name="hmainid" id="hmainid" lay-verify="hmainid" autocomplete="off" class="layui-input">
+
+                                        </div>
+                                    </div>
+                                </div>
+                                <div class="layui-form-item">
+                                    <div class="layui-row">
+                                        <div class="layui-col-xs4">
+                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">渚涘簲鍟�</label>
+                                        </div>
+                                        <div class="layui-col-xs8">
+                                            <input type="text" name="HSupplierName" id="HSupplierName" lay-verify="HSupplierName" readonly autocomplete="off" class="layui-input">
+                                        </div>
+                                    </div>
+                                </div>
+
+                                <div class="layui-form-item">
+                                    <div class="layui-row">
+                                        <div class="layui-col-xs4">
+                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">閮ㄩ棬</label>
+                                        </div>
+                                        <div class="layui-col-xs8">
+                                            <input type="text" name="HDepartmentNmae" id="HDepartmentNmae" lay-verify="HDepartmentNmae" readonly autocomplete="off" class="layui-input">
+                                        </div>
+                                    </div>
+                                </div>
+                            </div>
+                            <div class="layui-tab-item">
+                                <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
+                            </div>
+                        </div>
+                        <div class="layui-form-item" style="margin-bottom: 20px;">
+                            <div class="layui-row">
+                                <div class="layui-col-xs3">
+                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">纭</button>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </form>
+            </div>
+        </div>
+    </div>
+    <script src="../../../layuiadmin/layui/layui.js"></script>
+    <script src="../../../layuiadmin/Scripts/json2.js"></script>
+    <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;
+
+            //琛ㄥご鍒濆鍖栬祴鍊硷紙鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇 榛樿浠撳簱銆侀儴闂ㄣ�侀獙鏀躲�佷繚绠°�侀噾铦剁敤鎴凤級 new
+            $("#HWHID").val(sessionStorage["HWHID"]);
+            $("#HWHNAME").val(sessionStorage["HWHName"]);
+            $("#HStockPlaceID").val(sessionStorage["HSPID"]);
+            $("#HStockPlaceName").val(sessionStorage["HSPName"]);
+            //$("#HSupID").val(sessionStorage["HSupID"]);
+            //$("#HSupName").val(sessionStorage["HSupName"]);
+            $("#HDeptID").val(sessionStorage["HDeptID"]);
+            $("#HDeptName").val(sessionStorage["HDept"]);
+            $("#HSecManagerID").val(sessionStorage["HSecManagerID"]);
+            $("#HSecManager").val(sessionStorage["HSecManager"]);
+            $("#HKeeperID").val(sessionStorage["HKeeperID"]);
+            $("#HKeeper").val(sessionStorage["HKeeper"]);
+            $("#HMaker").val(sessionStorage["HUserName"]);
+            $("#HMaker").hide();
+            $("#HMakerID").hide();
+            $("#HBillerID").val(sessionStorage["HBillerID"]);
+            $("#HBillerID").hide();
+
+            //鑾峰彇鍙傛暟
+            function getUrlVars() {
+                var vars = [], hash;
+                var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+                for (var i = 0; i < hashes.length; i++) {
+                    hash = hashes[i].split('=');
+                    vars.push(hash[0]);
+                    vars[hash[0]] = hash[1];
+                }
+                return vars;
+            }
+            var params = getUrlVars();
+            var linterid = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+            var lSourceBillType = params[params[2]];  //浠庡崟鎹幏鍙� 婧愬崟绫诲瀷
+            //function RoadBillMain(linterid)//鍔犺浇琛ㄥご
+            //{
+            //    $.ajax({
+            //        url: GetWEBURL() + "/Web/GetPonderationBill",
+            //        type: "GET",
+            //        data: { "HInterID": linterid },
+            //        success: function (d) {
+            //            // console.log(d.data);
+            //            $("#HInterID").val(d.data[0].HInterID);
+            //            $("#HBillNo").val(d.data[0].HBillNo);
+            //            $("#HBillType").val(d.data[0].HSourceBillType);
+            //            $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
+            //            //$("#HWHID").val(d.data[0].HWhID);
+            //            //$("#HKeeperID").val(d.data[0].HKeeperID);
+            //            //$("#HSecManagerID").val(d.data[0].HSecManagerID);
+            //            //$("#HDeptID").val(d.data[0].HDeptID);
+            //            //$("#HBarCode").val(d.data[0].HBarCode);
+            //            //$("#HQty").val(d.data[0].HQty);
+            //            RoadSup();
+            //        }
+            //    })
+            //}
+            //function RoadSup()//鏍规嵁婧愬崟绫诲瀷鍙婃簮鍗曞彿 鍔犺浇瀹㈡埛
+            //{
+            //    //var sInterID = $("#HInterID").val()
+            //    var HSourceBillNo = $('#HSourceBillNo').val()
+            //    var sInterID = $("#HInterID").val()
+            //    var sBillNo = $("#HBillNo").val()
+            //    var HSourceBillType = $("#HBillType").val()
+            //    //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁    new
+            //    if (HSourceBillNo == "" || sInterID <= 0) {
+            //        layer.msg($('#HSourceBillNo').val(), { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+            //        return;
+            //    }
+            //    else {
+            //        $.ajax({
+            //            url: GetWEBURL() + "/SellOutBack/get_GetXs_SeOutStockBackBillList",
+            //            type: "GET",
+            //            data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
+            //            success: function (result) {
+            //                if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+            //                    $("#HSupID").val(result.data[0].HSupID);
+            //                    $("#HSupName").val(result.data[0].HSupName);
+            //                    $("#HDeptID").val(result.data[0].HDeptID);
+            //                    $("#HDeptName").val(result.data[0].HDeptName);
+            //                    sessionStorage["SourceFlag"] = true;
+            //                    element.tabChange('tab-SellOutBackBill', '2');
+            //                    layer.load(3);
+            //                }
+            //                else {
+            //                    layer.msg(result.Message, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+            //                }
+            //                layer.closeAll("loading");
+            //            }
+            //        });
+            //    }
+            //}
+            function RoadBillSub(HBillno)//鍔犺浇鏁版嵁
+            {
+                $.ajax({
+                    url: GetWEBURL() + "/POStockInBillList/get_InfoByBillNo",
+                    type: "GET",
+                    data: { "HBillno": HBillno },
+                    success: function (result) {
+                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            var data = result.data[0];
+                            form.val("component-form-group", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
+                                "HSupplierName": data.渚涘簲鍟�
+                                , "HDepartmentNmae": data.閮ㄩ棬
+                                , "hmainid": data.hmainid
+                            });
+                        }
+                        else {
+                            layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+                        }
+
+                        table.render({
+                            elem: '#wl-table'
+                            , url: GetWEBURL() + '/POStockInBillList/get_InfoByBillNo'
+                            , toolbar: '#toolbarDemo'
+                            , where: { "HBillno": HBillno }
+                            , cols: [[
+                                { type: 'radio' }
+                                , { field: '鏁伴噺', title: '鏁伴噺', width: 150 }
+                                , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 150 }
+                                , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 150 }
+                                , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 150 }
+                                , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', width: 150 }
+                                , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', width: 150 }
+                                , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 150 }
+                                , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷', width: 150 }
+                            ]]
+                            , height: 500
+                            , done: function () {
+                                layer.closeAll("loading");
+                            }
+                        });
+
+                    },
+                    error: function () {
+                        layer.alert("鍙戠敓閿欒!", { icon: 5 });
+                    }
+                });
+                var a = 1;
+
+            }
+            //鍒ゆ柇鏄惁鏂板
+            /*RoadBillSub("");*/
+            //鍗曞彿鍥炶溅
+            $('#HSourceBillNo').on('keydown', function (event) {
+                //鎵潯鐮�
+                if (event.keyCode == 13) {
+                    if ($("#HSourceBillNo").val() == '') {
+                        layer.msg("鍗曟嵁鍙蜂负绌猴紝涓嶈兘鎵弿锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        return false;
+                    }
+                    RoadBillSub($("#HSourceBillNo").val());
+                }
+            }
+            )
+
+            //鎻愪氦
+            form.on('submit(Saver)', function (data) {//鎻愪氦
+                var hmainid = $("#hmainid").val();
+                if ($("#hmainid").val() == '') {
+                    layer.msg("鍏堟壂鎻忓崟鎹紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    return false;
+                }
+                $.ajax(
+                    {
+                        type: "POST",
+                        url: GetWEBURL() + "/POStockInBill/confirm",
+                        async: true,
+                        data: { "hmainid": hmainid },
+                        dataType: "json",
+                        success: function (data) {
+                            if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+                                sessionStorage["SourceFlag"] = false;
+                                layer.confirm("鏀舵枡" + data.Message + $("#HBillNo").val(), {
+                                    icon: 1,
+                                    skin: 'layui-layer-lan',
+                                    closeBtn: 0,
+                                    btn: ['纭'],
+                                    btn2: function () {
+                                        //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
+                                        //window.close();//鍏抽棴椤甸潰锛屾祻瑙堝櫒鏈夋晥锛孭DA鏃犳晥
+                                        //window.location.reload();//鏂板
+                                        parent.location.href = "../../../views/index.html"
+                                    }//鍏抽棴
+                                }
+                                    , function () { parent.location.href = "../../../views/index.html"; }//鏂板
+                                );
+                            }
+                            else {
+                                //layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
+                                layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            }
+                            layer.closeAll("loading");
+                            layui.form.render();
+                        },
+                        error: function (err) {
+                            //layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
+                            layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        }
+                    });
+                return false;
+
+            });
+        });
+    </script>
+
+</body>
+</html>
diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBackBill_Fast.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBackBill_Fast.html"
index f8a53dd..4aafca2 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBackBill_Fast.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBackBill_Fast.html"
@@ -399,6 +399,7 @@
                         $("#HBillNo").val(d.data[0].HBillNo);
                     }
                 });
+                RoadBillSub("0");
             }
             else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
                 RoadBillMain(linterid);
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_Fast.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_Fast.html"
index 0673052..1dafbb5 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_Fast.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_Fast.html"
@@ -401,12 +401,6 @@
 
         //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new
 
-
-
-
-
-
-
         //鍒ゆ柇鏄惁鏂板
         if (linterid == null || linterid == 0) {
             //鑾峰彇鏈�澶у崟鎹彿 new

--
Gitblit v1.9.1