车间上架单:①.添加存入焊接流转卡字段信息,用于计算报表库存时间差。
2个文件已修改
78 ■■■■■ 已修改文件
WebTM/layuiadmin/Scripts/webConfig.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/WMS扫码模块/找货上架单/Kf_MaterialUpperBill_PDA.html 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js
@@ -7,7 +7,7 @@
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨乐本地配置
    // var WEBURL = "http://localhost:8082/API/";    //杜贺本地配置
    var WEBURL = "http://localhost:8082/API/";    //张瑞广本地配置
   /* var WEBURL = "http://localhost:81/API/"    //翁涛涛本地配置*/
    var WEBURL = "http://localhost:81/API/"    //翁涛涛本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨乐本地配置
    //var WEBURL = "http://47.96.97.237/API/";          //智云服务器
   /* var WEBURL = "http://localhost:8082/LuBaoAPI/";  //余思杰本地配置*/
WebTM/views/WMSɨÂëÄ£¿é/ÕÒ»õÉϼܵ¥/Kf_MaterialUpperBill_PDA.html
@@ -99,6 +99,19 @@
                                    <div class="layui-form-item" style="padding: 0px; margin: 0px">
                                        <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-xs9">
                                                <div class="layui-col-xs10">
                                                    <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
                                                </div>
                                                <!--<div class="layui-col-xs2" style="float: right;">
                                                    <button type="button" lay-submit="" lay-filter="HSourceBillNo-BT" class="layui-btn" id="HSourceBillNo-BT" style="width: 45px; margin-left: -5px;padding-left:12px">OK</button>
                                                </div>-->
                                            </div>
                                        </div>
                                        <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-xs9">
@@ -161,6 +174,7 @@
                    <!--隐藏字段-->
                    <input type="hidden" name="HBillType" id="HBillType">
                    <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo" value="">
                    <!--失败提示音-->
                    <div id="" style="display:none;">
                        <audio id="cs" hidden controls>
@@ -328,7 +342,7 @@
                table.render(LowerListOption);
                //光标默认在条码位置上
                var pFocus = $("#HBarCode");
                var pFocus = $("#HSourceBillNo");
                pFocus.select();
                pFocus.focus();     //获取光标
            }
@@ -806,6 +820,13 @@
                }
            });
            //扫描源单条码
            $('#HSourceBillNo').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    GetMeesageBySourceBillNo();
                }
            });
            //扫条码
            function GetMeesageByBarCode(obj) {
                //仓库、仓位文本框为空时,清空对应ID
@@ -944,6 +965,59 @@
                }
            }
            //扫描源单条码
            function GetMeesageBySourceBillNo(obj) {
                var HSourceBillNo = $('#HSourceBillNo').val()
                if (HSourceBillNo == '') {
                    playSound();
                    layer.msg("流转卡号不能为空,请扫描流转卡条码!", {
                        icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                    }, function () {
                        $("#HSourceBillNo").select();
                        $("#HSourceBillNo").focus();
                    });
                    return;
                }
                layer.load(3)
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/KF_ICInventory_WorkShop/SearchHBarCode",
                    async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                    data: { "HBillNo": HBillNo, "user": sessionStorage["HUserName"], "HOrgID": sessionStorage["OrganizationID"]  },
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            playSound_OK();
                            $("#HMainSourceBillNo").val(HBillNo);
                            $("#HSourceBillNo").attr("disabled", "disabled");
                            //$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                            $("#HBarCode").select();
                            $("#HBarCode").focus();     //获取光标
                        }
                        else {
                            playSound();
                            layer.msg(result.Message, {
                                icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () {
                                $("#HSourceBillNo").val("");
                                $("#HSourceBillNo").select();
                                $("#HSourceBillNo").focus();
                            });
                        }
                    },
                    error: function (err) {
                        playSound();
                        $("#HSourceBillNo").val("");
                        $("#HSourceBillNo").select();
                        $("#HSourceBillNo").focus();
                        layer.msg("接口错误" + err);
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
                });
                layer.closeAll("loading");
            }
            //#endregion