ch
2022-12-27 78f07b997b726ade5153f3468f0555c38fbd2bc8
把所有扫码模块刷新表体信息时  批次号字段隐藏
1个文件已添加
11个文件已修改
589 ■■■■■ 已修改文件
WebTM/WebTM.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/home/console.html 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/home/console_Mobile.html 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_Fast.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/质量管理/来料检验单/Kf_QCStockInCheckBill_Fast.html 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/质量管理/来料检验单/Kf_SCStockInCheckBill_Fast.html 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/工序出站汇报单/Cj_StationOutBill.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/其他出库/Kf_OtherOutBill_Fast.html 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/收料入库/Kf_ReciveBill_Fast_AR.html 444 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/产品入库/Kf_ProductInBill_Fast.html 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBill_Fast.html 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBill_FastList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj
@@ -1094,6 +1094,7 @@
    <Content Include="views\领料发货\分步式调出单\Fb_StepFoldOutBillList.html" />
    <Content Include="views\领料发货\委外出库\Kf_EntrustOutBillList.html" />
    <Content Include="views\领料发货\收料入库\Kf_ReciveBill_Check.html" />
    <Content Include="views\领料发货\收料入库\Kf_ReciveBill_Fast_AR.html" />
    <Content Include="views\领料发货\收料入库\Kf_ReciveBill_Fast.html" />
    <Content Include="views\领料发货\生产补料\Kf_MateReplenishOutBill_Check_New.html" />
    <Content Include="views\领料发货\生产补料\Kf_MateReplenishOutBill_CheckList_New.html" />
WebTM/views/home/console.html
@@ -111,6 +111,12 @@
                                                    <cite>来料检验单</cite>
                                                </a>
                                            </li>
                                            <li class="layui-col-xs3">
                                                <a href="../领料发货/收料入库/Kf_ReciveBill_Fast_AR.html" target="main_self_frame">
                                                    <i class="layui-icon layui-icon-find-fill"></i>
                                                    <cite>到货确认(安瑞)</cite>
                                                </a>
                                            </li>
                                            <!--<li class="layui-col-xs3">
        <a lay-href="set/user/info.html">
            <i class="layui-icon layui-icon-set"></i>
WebTM/views/home/console_Mobile.html
@@ -160,6 +160,12 @@
                                      <cite>生产检验单</cite>
                                  </a>
                              </li>
                              <li class="layui-col-xs3">
                                  <a href="../领料发货/收料入库/Kf_ReciveBill_Fast_AR.html" target="main_self_frame">
                                      <i class="layui-icon layui-icon-find-fill"></i>
                                      <cite>到货确认(安瑞)</cite>
                                  </a>
                              </li>
                          </ul>
                      </div>
                  </div>
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_MoveStockBill_Fast.html
@@ -495,7 +495,7 @@
                        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                        , { field: 'HBatchNo', title: '批次', width: 150 }
                        //, { field: 'HBatchNo', title: '批次', width: 150 }
                        , { field: 'HMaterID', title: '物料内码', width: 150, hide: true }
                        , { field: 'HAuxPropID', title: '', width: 150, hide: true }
                        , { field: 'HMTONo', title: '计划跟踪号', width: 150, hide: true }
@@ -863,7 +863,7 @@
                                        , { field: 'HSourceInterID', title: '源单主内码', width: 100 }
                                        , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                                        , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                                        , { field: 'HBatchNo', title: '批次', width: 100 }
                                        //, { field: 'HBatchNo', title: '批次', width: 100 }
                                        , { field: 'HAuxPropID', title: '辅助属性', width: 100 }
                                        , { field: 'HMTONo', title: '计划跟踪号', width: 100 }
                                        , { field: 'HMaterID', title: '物料ID', width: 100 }
@@ -1443,7 +1443,7 @@
            , { field: 'HMaterModel', title: '规格型号', width: 150 }
            , { field: 'HAuxPropName', title: '辅助属性', width: 150 }
            , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
            , { field: 'HBatchNo', title: '批次', width: 150, hide: true }
            //, { field: 'HBatchNo', title: '批次', width: 150, hide: true }
            , { field: 'HPieceQty', title: '条码数量', width: 150, hide: true }
            , { field: 'HMaterID', title: 'HMaterID', width: 150, hide: true }
            , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true }
WebTM/views/ÖÊÁ¿¹ÜÀí/À´ÁϼìÑéµ¥/Kf_QCStockInCheckBill_Fast.html
@@ -37,15 +37,15 @@
                            <div class="layui-tab-item layui-show">
                                <div class="layui-form-item">
                                    <!--<div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">单据类型</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <select name="HBillType" id="HBillType">
                                                <option value="1103">收料通知单</option>
                                            </select>
                                        </div>
                                    </div>-->
        <div class="layui-col-xs3">
            <label class="layui-form-label" style="width:60px;padding-left:0px;">单据类型</label>
        </div>
        <div class="layui-col-xs8">
            <select name="HBillType" id="HBillType">
                <option value="1103">收料通知单</option>
            </select>
        </div>
    </div>-->
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">物料条码</label>
@@ -77,11 +77,17 @@
                                            </div>
                                            <div class="layui-col-xs6">
                                                <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                            </div>
                                            <div class="layui-col-xs3">
                                                <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" disabled="disabled" autocomplete="off" class="layui-input mobile">
                                            </div>
                                        </div>
                                    </div>
                                    <!--<input id="upload" type="file" accept="image/*"  @change="changePic" />-->
                                    <input id="takepicture" type="file" accept="image/*">
                                    <div>
                                        <img id="blah" src="#" alt="显示您上传的商品图片" />
                                    </div>
                                </div>
                            </div>
@@ -327,6 +333,7 @@
                    <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">提交</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">退出</button>
                       <!-- <button id="capture">拍照</button>-->
                    </div>
                    <div id="" style="display:none;">
                        <audio id="cs" hidden controls>
@@ -349,7 +356,6 @@
    </script>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
@@ -367,6 +373,19 @@
                , form = layui.form
                , element = layui.element;
            //清空界面  new
            function readURL(input) {
                if (input.files && input.files[0]) {
                    var reader = new FileReader();
                    reader.onload = function (e) {
                        $('#blah').attr('src', e.target.result);
                    }
                    reader.readAsDataURL(input.files[0]);
                }
            }
            $("#takepicture").change(function () {
                readURL(this);
            });
            //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、金蝶用户) new
@@ -399,6 +418,9 @@
            var params = getUrlVars();
            var linterid = params[params[0]]; //从参数中获取 å•据内码
            var lSourceBillType = params[params[2]];  //从单据获取 æºå•类型
            //加载表头
            function RoadBillMain(linterid) {
@@ -748,6 +770,7 @@
                var HSLEntryID = $("#HSLEntryID").val();     //收料通知单子ID
                var HSLBillNo = $("#HSLBillNo").val();     //收料通知单单号
                var HSLSeQ = $("#HSLSeQ").val();     //收料通知单行号
                var HBatchNo = $("#HBatchNo").val();     //批号
                if (HBadQty == "") {
                    HBadQty = 0;
@@ -763,6 +786,12 @@
                }
                if (HWHNumber == "") {
                    HWHNumber = '';
                }
                if (HBatchNo == "") {
                    HBatchNo = '';
                }
                if (HKeeperID == "") {
                    HKeeperID = 0;
                }
                //var sSourceType = $("#HBillType").val();
@@ -780,7 +809,7 @@
                                , "HBadQty": HBadQty, "HCheckResult": HCheckResult, "HSupNumber": HSupNumber, "HWHNumber": HWHNumber
                                , "HUseResult": HUseResult, "HSeQ": HSeQ, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HSourceBillNo": HSourceBillNo
                                , "user": sessionStorage["HUserName"], "HWHID": HWHID, "HSPID": HSPID, "HSupID": HSupID, "HKeeperID": HKeeperID
                                , "HMaterID": HMaterID, "HSourceBillType": HSourceBillType, "HSLInterID": HSLInterID, "HSLEntryID": HSLEntryID, "HSLBillNo": HSLBillNo, "HSLSeQ": HSLSeQ
                                , "HMaterID": HMaterID, "HSourceBillType": HSourceBillType, "HSLInterID": HSLInterID, "HSLEntryID": HSLEntryID, "HSLBillNo": HSLBillNo, "HSLSeQ": HSLSeQ
                            },
                            dataType: "json",
                            success: function (data) {
@@ -956,7 +985,7 @@
                    $.ajax({
                        url: GetWEBURL() + '/QCStockInCheckBill/DisBillEntryList_Webs_New_Json1',
                        type: "GET",
                        data: { HInterID: linterid, HEntryID: lentryid},
                        data: { HInterID: linterid, HEntryID: lentryid },
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                listOption.data = result.data.list;
@@ -988,6 +1017,7 @@
                                $("#HSLEntryID").val(result.data[0].HSLEntryID);
                                $("#HSLBillNo").val(result.data[0].HSLBillNo);
                                $("#HSLSeQ").val(result.data[0].HSLSeQ);
                                $("#HCheckQty").val(result.data[0].hqty);
                            }
                            else {
                                layer.msg(result.Message);
@@ -1005,9 +1035,9 @@
            //扫条码
            function GetMeesageByBarCode(obj) {  //返回工作中心
                var sBarCode = $('#HBarCode').val()
                //判断条码是否为空  new
                if (sBarCode == '') {
@@ -1044,7 +1074,7 @@
                        layer.closeAll("loading");
                    }
                });
            }
            var listOption = {
                elem: '#wl-table'
WebTM/views/ÖÊÁ¿¹ÜÀí/À´ÁϼìÑéµ¥/Kf_SCStockInCheckBill_Fast.html
@@ -748,7 +748,7 @@
                var HSLEntryID = $("#HSLEntryID").val();     //收料通知单子ID
                var HSLBillNo = $("#HSLBillNo").val();     //收料通知单单号
                var HSLSeQ = $("#HSLSeQ").val();     //收料通知单行号
                var HBatchNo = $("#HBatchNo").val();     //批号
                if (HBadQty == "") {
                    HBadQty = 0;
                }
@@ -764,7 +764,16 @@
                if (HSPNumber == "") {
                    HSPNumber = '';
                }
                if (HWHNumber == "") {
                    HWHNumber = '';
                }
                if (HWHID == "") {
                    HWHID = 0;
                }
                if (HBatchNo == "") {
                    HBatchNo = '';
                }
                //var sSourceType = $("#HBillType").val();
                if (AllowLoadData() != false)//非空验证
                {
@@ -988,6 +997,7 @@
                                $("#HSLEntryID").val(result.data[0].HSLEntryID);
                                $("#HSLBillNo").val(result.data[0].HSLBillNo);
                                $("#HSLSeQ").val(result.data[0].HSLSeQ);
                                $("#HCheckQty").val(result.data[0].hqty);
                            }
                            else {
                                layer.msg(result.Message);
WebTM/views/³µ¼ä¹ÜÀí/¹¤Ðò³öÕ¾»ã±¨µ¥/Cj_StationOutBill.html
@@ -1263,7 +1263,7 @@
            //报废
            form.on('submit(btn-BF)', function (data) {
                var BillNo = $("#HBillNo").val();
                var BillNo = $("#HProcExchBillNo").val();
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/Sc_ProcessMangement/SaveBFBill", //方法所在页面和方法名
WebTM/views/ÁìÁÏ·¢»õ/ÆäËû³ö¿â/Kf_OtherOutBill_Fast.html
@@ -370,7 +370,7 @@
                        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                        , { field: 'HBatchNo', title: '批次', width: 150 }
                        //, { field: 'HBatchNo', title: '批次', width: 150 }
                    ]]
                    , height: 500
                    , done: function () {
@@ -773,7 +773,7 @@
            form.on('submit(QueDin3)', function () {//
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , area: ['100%', '100%']
                    , title: '出库申请单列表'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
@@ -988,7 +988,7 @@
                                            , { field: 'HSourceInterID', title: '源单主内码', width: 100 }
                                            , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                                            , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                                            , { field: 'HBatchNo', title: '批次', width: 100 }
                                            //, { field: 'HBatchNo', title: '批次', width: 100 }
                                            , { field: 'HAuxPropID', title: '辅助属性', width: 100 }
                                            , { field: 'HMTONo', title: '计划跟踪号', width: 100 }
                                            , { field: 'HWHID', title: 'ck', width: 100 }
@@ -1128,7 +1128,7 @@
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HAuxPropName', title: '辅助属性', width: 150 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HBatchNo', title: '批次', width: 150, hide: true }
                    //, { field: 'HBatchNo', title: '批次', width: 150, hide: true }
                    , { field: 'HPieceQty', title: '条码数量', width: 150, hide: true }
                    , { field: 'HMaterID', title: 'HMaterID', width: 150, hide: true }
                    , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true }
@@ -1154,7 +1154,7 @@
                    , { field: 'HSPName', title: '仓位', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HBatchNo', title: '批次', width: 150 }
                    //, { field: 'HBatchNo', title: '批次', width: 150 }
                    , { field: 'HAuxPropName', title: '辅助属性', width: 150 }
                ]]
                , height: 500
WebTM/views/ÁìÁÏ·¢»õ/ÊÕÁÏÈë¿â/Kf_ReciveBill_Fast_AR.html
New file
@@ -0,0 +1,444 @@
<!DOCTYPE html>
<html>
<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">
    <!--引用layui样式文件-->
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <!--引用layui js文件-->
    <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>
    <!--自定义样式-->
    <style>
        .maintitle {
            background-color: #1492ff;
            color: #fff;
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
        }
        .title {
            border-left: 4px solid #1492ff;
            padding-left: 6px;
            margin: 20px 10px 4px;
            font-size: 16px;
            color: #333;
        }
        .buttom_box_little {
            width: 60px;
            height: 36px;
            color: #fff;
            background-color: #1492ff;
            border-radius: 4px;
            border: none;
            margin: 10px;
        }
        .layui-input {
            width: 50%;
        }
        .layui-inline, img {
            display: block;
            vertical-align: middle
        }
        .layui-input, .layui-textarea {
            display: inline-block;
            width: 50%;
            padding-left: 10px;
        }
        .laydate-time-list ol {
            overflow-x: hidden !important;
            overflow-y: auto !important;
        }
        .layui-form-label {
            padding: 9px 5px;
            width: 85px;
        }
        .layui-input-block {
            margin-left: 85px;
            min-height: 36px;
        }
    </style>
</head>
<body>
    <div class="layui-fluid" style="padding: 0;">
        <div class="layui-card" style="padding: 15px;background-color: #efefef;">
            <div class="layui-card-body" style="padding: 1px;">
                <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;">
                    <div class="maintitle">到货确认</div>
                    <div class="layui-form-item" style="padding-top: 10px;">
                        <div class="layui-row">
                            <label class="layui-form-label" style="width: 85px;"><span style="color:red;">*</span>条码</label>
                            <div class="layui-input-block" style="margin-left: 100px;width:46%;">
                                <input type="text" name="HBarCode" id="HBarCode" placeholder="请键入后回车" autocomplete="off" class="layui-input"><!--lay-verify="required"-->
                                <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin" name="QueDin" id="QueDin" style="width: 70px; background-color: #1492ff;color:white">确定</button>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab layui-tab-card" lay-filter="TabTest">
                        <ul class="layui-tab-title">
                            <!--<li class="layui-this">表头信息</li>
    <li>明细信息</li>-->
                            <li lay-id="1" style="padding:1px;" class="layui-this">表头信息</li>
                            <li lay-id="2" style="padding:1px;">明细信息</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <div class="layui-form-item" style="padding-top: 10px;">
                                    <div class="layui-row">
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 75px;">单据号:</label>
                                            <div class="layui-input-block" style="margin-left: 85px;">
                                                <input type="text" class="layui-input" name="HBillNo" id="HBillNo">
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin2">确定</button>
                                                <input type="hidden" class="layui-input" name="HInterID" id="HInterID" style="width:100px">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">供应商:</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="HSupName" id="HSupName" class="layui-input" disabled="disabled">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">部门:</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="HDeptName" id="HDeptName" class="layui-input" disabled="disabled">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <table class="" id="mainTable" lay-filter="mainTable"></table>
                                <script type="text/html" id="xuhao">
                                    {{d.LAY_TABLE_INDEX+1}}
                                </script>
                                <script type="text/html" id="barDemo">
                                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
                                </script>
                            </div>
                        </div>
                    </div>
                    <div class="layer-footer" style="text-align: center;">
                        <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="btn_Check" id="btn_Check">审核</button>
                        <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="btn_Cancel" id="btn_Cancel">退出</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
            var $ = layui.$
                , admin = layui.admin
                , layer = layui.layer
                , table = layui.table
                , form = layui.form
                , laydate = layui.laydate
                , element = layui.element;
            var option = [];
            //初始化表格
            set_InitGrid();
            //获取参数
            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]]; //从参数中获取 å•据内码
            //动态加载源单类型列表 new
            //判断是否新增
            if (linterid == null || linterid == 0) {
                //获取最大单据号 new
                $("#HInterID").val("");
                $("#HBillNo").val("");
                $.ajax({
                    url: GetWEBURL() + "/Web/GetMAXNumPDA",
                    type: "GET",
                    data: { "HBillType": '1103' },
                    success: function (d) {
                        //console.log(d.data);
                        $("#HInterID").val(d.data[0].HInterID);
                        $("#HBillNo").val(d.data[0].HBillNo);
                    }
                });
            }
            else {//如果修改则走下面 new
            }
            //行内事件
            table.on('tool(mainTable)', function (obj) {
                set_GridDelete(obj);   //行内删除
            });
            //进入页面默认光标在条形码上
            $("#HBarCode").focus();
            //条形码回车方法
            $('#HBarCode').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    GetMeesageByBarCode();
                }
            });
            //条形码确认
            form.on('submit(QueDin)', function (data) {
                GetMeesageByBarCode();
            });
            //扫描条形码方法
            function GetMeesageByBarCode() {
                var HBarCode = $('#HBarCode').val();
                if (!HBarCode) {
                    layer.msg("条形码不能为空!")
                    return;
                }
                //var HInterID = $('#HInterID').val();
                //if (!HInterID) {
                //    layer.msg("请先输入收料通知单单据号!")
                //    return;
                //}
                var HInterID = $('#HInterID').val();
                var HBillNo = $('#HBillNo').val();
                var index = layer.load();
                $.ajax({
                    url: GetWEBURL() + "/POStockInBillList/Get_ReciveBillByBarcode_AR",
                    type: "GET",
                    data: { "HBarCode": HBarCode, "HOrgID": sessionStorage["OrganizationID"], HInterID: HInterID, HBillNo: HBillNo },
                    success: function (result) {
                        if (result.code == "1") {
                            element.tabChange('TabTest', '2');  //跳转页签
                            //var sSubStr =;
                            option.data = result.data;
                            table.render(option);
                            //for (var i = 0; i < sSubStr.length; i++) {
                            //    //if (sSubStr[i].HEntryID == result.data[0]["HSourceEntryID"]) {
                            //    //    sSubStr[i].HSQty += parseInt(result.data[0]["HQty"]);
                            //    //    break;
                            //    //}
                            //}
                            layer.close(index);
                        }
                        else {
                            layer.close(index);
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    },
                    error: function (err) {
                        layer.close(index);
                        layer.msg("接口请求失败!" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
                });
                $('#HBarCode').val("");
                $("#HBarCode").focus();
            }
            form.on('submit(btn_Cancel)', function () {
                parent.location.href = "../../../views/index.html"
            })
            //审核
            form.on('submit(btn_Check)', function (data) {//审核
                var sSubStr = table.cache['mainTable'];
                for (var i = 0; i < sSubStr.length; i++) {
                    if (parseInt(sSubStr[i].HSQty) > parseInt(sSubStr[i].HQty)) {
                        layer.msg("明细记录第" + (i + 1) + "行,扫码数量不能超出订单数量!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return;
                    }
                    if (parseInt(sSubStr[i].HSQty) == 0) {
                        layer.msg("明细记录第" + (i + 1) + "行,扫码数量为0", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return;
                    }
                }
                var index = layer.load();
                var HInterID = $('#HInterID').val();
                var HBillNo = $('#HBillNo').val();
                $.ajax({
                    url: GetWEBURL() + "/POStockInBillList/AuditPOInStockBillPost_AR",
                    type: "Post",
                    data: { "msg": JSON.stringify(sSubStr) },
                    success: function (result) {
                        if (result.code == "1") {
                            //layer.msg("审核成功", { icon: 1, btn: ['确认'], time: 1000000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            //layer.close(index);
                            layer.confirm("审核成功" + data.Message + $("#HBillNo").val(), {
                                icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增'],
                                btn2: function () {
                                    //parent.layui.admin.events.closeThisTabs();关闭页签
                                    //window.close();//关闭页面,浏览器有效,PDA无效
                                    parent.location.href = "../../../views/index.html"
                                }//关闭
                            }, function () { window.location.reload(); });//新增
                        }
                        else {
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.close(index);
                        }
                    },
                    error: function (err) {
                        layer.msg("接口请求失败!" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.close(index);
                    }
                });
            });
            //初始化表格
            function set_InitGrid() {
                //表头
                columns = [
                    //{ templet: '#xuhao', title: '序号', sort: true, fixed: 'left' }
                    //, { field: 'HSQty', title: '数量', edit: 'text', totalRow: true }
                    //, { field: 'HQty', title: '订单数量' }
                    //, { field: 'HMaterID', title: 'HMaterID' }
                    //, { field: 'HMaterNum', title: '物料代码' }
                    //, { field: 'HMaterName', title: '物料名称' }
                    //, { field: 'HModel', title: '规格型号' }
                    //, { field: 'HInterID', title: '主内码', sort: true, width: 200 }
                    //, { field: 'HEntryID', title: '子内码', sort: true, width: 200 }
                    //, { field: 'HPieceQty', title: '条码数量', width: 150 }
                    , { field: 'HQty', title: '数量', edit: 'text', totalRow: true }
                    , { field: 'HQtyMust', title: '订单数量' }
                    , { field: 'HMaterID', title: 'HMaterID', sort: true, width: 200 }
                    , { field: 'HNumber', title: '物料代码' }
                    , { field: 'HName', title: '物料名称' }
                    , { field: 'HModel', title: '规格型号' }
                    , { field: 'HSourceBillNo', title: '订单单号', width: 150 }
                    , { field: 'HInterID', title: '主内码', sort: true, width: 200 }
                    , { field: 'HEntryID', title: '子内码', sort: true, width: 200 }
                    , { field: 'HBillNo', title: '收料通知单号', sort: true, width: 200 }
                ];
                option = {
                    id: 'mainTable'
                    , elem: '#mainTable'
                    , page: true
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
                    , done: function (res, curr, count) {
                    }
                };
                //option.data = [{ "数量": 0, "物料代码": 0, "物料名称": "", "规格型号": "" }];
                table.render(option);
            }
            // è¡¨æ ¼è¡Œå†…事件删除
            function set_GridDelete(obj) {
                var data = obj.data;
                var index = layer.load();
                var rowIndex = $(obj.tr).attr("data-index");
                if (obj.event === 'del') {
                    layer.confirm('真的删除行么', function (index) {
                        console.log("索引为:" + rowIndex);
                        if (rowIndex === '0') {
                            layer.msg('首行无法删除!!!');
                        } else {
                            //obj.del();
                            layer.close(index);
                            var oldData = table.cache["mainTable"];
                            oldData.splice(obj.tr.data('index'), 1);
                            table.reload('mainTable', { data: oldData });
                            layer.close(index);
                        }
                    });
                }
            }
            //源单回车方法
            $('#HBillNo').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    GetMeesageBySourceBillNo();
                }
            });
            //源单确认
            form.on('submit(QueDin2)', function (data) {
                GetMeesageBySourceBillNo();
            });
            //扫源单
            function GetMeesageBySourceBillNo(obj) {  //返回工作中心
                var HBarCode = $('#HBillNo').val();//条形码(流转卡号)(数据库中为单据号)
                if (!HBarCode) {
                    layer.msg("单据号不能为空!")
                    return;
                }
                var index = layer.load();
                $.ajax({
                    url: GetWEBURL() + "/POStockInBillList/Get_ReciveBill",
                    type: "GET",
                    data: { "HBillno": HBarCode },
                    success: function (result) {
                        if (result.code == "1") {
                            var data = result.data[0];
                            $("#HSupName").val(data.HSupName);
                            $("#HDeptName").val(data.HDeptName);
                            $("#HBillNo").val(data.HBillNo);
                            $("#HInterID").val(data.HInterID);
                            option.data = result.data;
                            table.render(option);
                            layer.close(index);
                        }
                        else {
                            layer.close(index);
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    },
                    error: function (err) {
                        layer.close(index);
                        layer.msg("接口请求失败!" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
                });
            }
            //以上为layui模块
        });
    </script>
</body>
</html>
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBill_Fast.html
@@ -79,9 +79,9 @@
                                        </div>
                                        <div class="layui-col-xs8">
                                            <select name="HBillType" id="HBillType">
                                                <option value="3714">工序汇报单</option>
                                                <option value="3711">生产汇报单</option>
                                                <option value="3710">生产订单</option>
                                                <option value="3714">工序汇报单</option>
                                            </select>
                                        </div>
                                    </div>
@@ -363,7 +363,7 @@
                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HBatchNo', title: '批次', width: 150 }
                    //, { field: 'HBatchNo', title: '批次', width: 150 }
                    , { field: 'HInterID', title: '单据ID', width: 150, hide: true }
                    , { field: 'HBilltype', title: '单据类型', width: 150, hide: true }
                    , { field: 'Hbarcode', title: '条码编号', width: 150, hide: true }
@@ -455,7 +455,7 @@
                        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                        , { field: 'HBatchNo', title: '批次', width: 150 }
                        //, { field: 'HBatchNo', title: '批次', width: 150 }
                    ]]
                    // , data: [linterid]
                    // , page: true
@@ -511,6 +511,8 @@
                //获取最大单据号 new
                $("#HInterID").val("");
                $("#HBillNo").val("");
                $("#HBillType").val("3714");
                form.render('select');
                $.ajax({
                    url: GetWEBURL() + "/Web/GetMAXNumPDA",
                    type: "GET",
@@ -738,7 +740,7 @@
                                , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                , { field: 'HBatchNo', title: '批次', width: 150 }
                                //, { field: 'HBatchNo', title: '批次', width: 150 }
                                , { field: 'HBarcodeQtys', title: '条码数量', width: 150 }
                            ]]
                            // , data: [linterid]
@@ -923,7 +925,7 @@
                var sMainStr = JSON.stringify(data.field);
                var sSubStr = table.cache['wl-table'];
                //var sSourceType = $("#HBillType").val();
                var sSourceType = "3711";
                var sSourceType = "3714";
                if (AllowLoadData(sSubStr) != false)//非空验证
                {
                    layer.load(3);
@@ -1129,7 +1131,7 @@
                                            , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                            , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                            , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                            , { field: 'HBatchNo', title: '批次', width: 150 }
                                            //, { field: 'HBatchNo', title: '批次', width: 150 }
                                            , { field: 'HBarcodeQtys', title: '条码数量', width: 150 }
                                        ]]
                                        // , data: [linterid]
@@ -1245,7 +1247,7 @@
                                            $("#HDeptName").val(result.data.hDeptNameField);
                                        }
                                        $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                        $("#HBillType").val(result.data.hSourceBillTypeField)
                                        $("#HBillType").val(result.data.hSourceBillTypeField == null ? "3714" : result.data.hSourceBillTypeField);
                                        HSourceFlag = true;
                                        //获取源单类型、源单单号
                                        if (result.data.hSourceBillTypeField == "3711") {
@@ -1378,7 +1380,7 @@
                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HBatchNo', title: '批次', width: 150 }
                    //, { field: 'HBatchNo', title: '批次', width: 150 }
                    , { field: 'HPieceQty', title: '条码数量', width: 150 }
                ]]
                , height: 500
@@ -1398,7 +1400,7 @@
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HBatchNo', title: '批号', width: 150 }
                    //, { field: 'HBatchNo', title: '批号', width: 150 }
                    //, { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                    //, { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBill_Fast.html
@@ -1070,15 +1070,15 @@
                                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                            listOption.data = result.data.list;
                                            table.render(listOption);
                                            $("#HBarCode_B").val(result.data.list2[0].HBarCode);
                                            $("#HMaterName_B").val(result.data.list2[0].HMaterName);
                                            $("#HMaterModel_B").val(result.data.list2[0].HMaterModel);
                                            $("#HBatchNo_B").val(result.data.list2[0].HBatchNo);
                                            $("#HUnitName_B").val(result.data.list2[0].HUnitName);
                                            $("#HQty_B").val(result.data.list2[0].HQty);
                                            $("#HTMQty_B").val(result.data.list2[0].HTMQty);
                                            $("#HWHName_B").val(result.data.list2[0].HWHName);
                                            $("#HSPName_B").val(result.data.list2[0].HSPName);
                                            //$("#HBarCode_B").val(result.data.list2[0].HBarCode);
                                            //$("#HMaterName_B").val(result.data.list2[0].HMaterName);
                                            //$("#HMaterModel_B").val(result.data.list2[0].HMaterModel);
                                            //$("#HBatchNo_B").val(result.data.list2[0].HBatchNo);
                                            //$("#HUnitName_B").val(result.data.list2[0].HUnitName);
                                            //$("#HQty_B").val(result.data.list2[0].HQty);
                                            //$("#HTMQty_B").val(result.data.list2[0].HTMQty);
                                            //$("#HWHName_B").val(result.data.list2[0].HWHName);
                                            //$("#HSPName_B").val(result.data.list2[0].HSPName);
                                            var count = 0;
                                            var count1 = 0;
@@ -1120,7 +1120,7 @@
                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HBatchNo', title: '批次', width: 150 }
                    //, { field: 'HBatchNo', title: '批次', width: 150 }
                    , { field: 'HPieceQty', title: '条码数量', width: 150 }
                ]]
                , height: 500
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBill_FastList.html
@@ -271,7 +271,7 @@
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                    layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
                                    layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
                                        // å¾—到frame索引
                                        var index = layer.getFrameIndex(window.name);
                                        //关闭当前frame