WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Cc_LookingForBill.html
@@ -16,18 +16,18 @@
            <div class="layui-card-body" style="padding: 5px; height:800px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>找货单</span>
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>下架找货单</span>
                    </div>
                    <div class="layui-form-item" style="padding:15px;margin:0px">
                        <div class="layui-row">
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:90px;padding-left:0px;">源单号</label>
                                <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" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:90px;padding-left:0px;">实物条码</label>
                                <label class="layui-form-label" style="width:60px;padding-left:0px;">实物条码</label>
                            </div>
                            <div class="layui-col-xs8">
                                <input type="text" name="HBarCode" id="HBarCode" autocomplete="off" class="layui-input">
@@ -155,6 +155,13 @@
                , form = layui.form
                , element = layui.element;
            //判断是否登录 æœªç™»å½•则跳到登录页
            if (sessionStorage.login != "login") {
                layer.confirm("登录失效,请重新登录!", {
                    icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['重新登录']
                }, function () { window.location.href = "../../user/login.html"; });
            }
            //初始基本信息赋值
            $("#HWHID").val(sessionStorage["HWHID"]);
            $("#HWHName").val(sessionStorage["HWHName"]);
@@ -173,7 +180,7 @@
            $.ajax({
                url: GetWEBURL() + "/Web/GetMAXNum",
                type: "GET",
                data: { "HBillType": '1252' },
                data: { "HBillType": '1253' },
                success: function (d) {
                    //console.log(d.data);
                    $("#HInterID").val(d.data[0].HInterID);
@@ -191,14 +198,14 @@
                , cols: [[
                    { type: 'numbers', title: '序号' }
                    , { field: 'HIsStatus', title: '是否扫码' }
                    , { field: 'HSourceInterID', title: '源单ID', hide: true }
                    , { field: 'HSourceBillNo', title: '源单号', width: 110 }
                    , { field: 'HMTONo', title: '批号', width: 180 }
                    , { field: 'HStatus', title: '在库状态' }
                    , { field: 'HWhID', title: '仓库ID', hide: true }
                    , { field: 'HWhName', title: '仓库' }
                    , { field: 'HSPID', title: '仓位ID', hide: true }
                    , { field: 'HSPName', title: '仓位' }
                    , { field: 'HStatus', title: '在库状态', width: 165 }
                    , { field: 'HWhID', title: '仓库ID', hide: true }
                    , { field: 'HWhName', title: '仓库' }
                    , { field: 'HSourceInterID', title: '源单ID', hide: true }
                    , { field: 'HSourceBillNo', title: '源单号', width: 110 }
                    , { field: 'HGroupID', title: '班组ID', hide: true }
                    , { field: 'HGroup', title: '班组' }
                    , { field: 'HSourceID', title: '生产资源ID', hide: true }
@@ -210,11 +217,11 @@
                    , { field: 'HMaterModel', title: '规格型号' }
                    , { field: '即时库存', title: '即时库存' }
                    , { field: 'HBarCode', title: '条码编号', hide: true }
                    , { field: 'HInterID', title: '单据ID' }
                    , { field: 'HInterID', title: '单据ID', hide: true }
                    , { field: 'HBillNo', title: '单据号' }
                    , { field: 'HMakerID', title: '制单人ID' }
                    , { field: 'HMakerID', title: '制单人ID', hide: true }
                    , { field: 'HMaker', title: '制单人' }
                    , { field: 'HBillType', title: 'HBillType' }
                    , { field: 'HBillType', title: 'HBillType', hide: true }
                ]]
                , text: {
                    none: '暂无相关数据,请先扫描源单号!' //默认:无数据。注:该属性为 layui 2.2.5 å¼€å§‹æ–°å¢ž
@@ -312,10 +319,14 @@
                                layer.close(index);
                                $('#HBarCode').val("");
                                layer.msg("该实物已扫码,请勿重复扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            } else if (sSubStr[i].HStatus != null && sSubStr[i].HStatus != "" && sSubStr[i].HStatus != "在库") {
                                layer.close(index);
                                layer.msg("该实物在裁切中,不允许扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            } else {
                            }
                            //else if (sSubStr[i].HStatus != null && sSubStr[i].HStatus != "" && sSubStr[i].HStatus != "在库")
                            //{
                            //    layer.close(index);
                            //    layer.msg("该实物在" + sSubStr[i].HSource+"裁切中,不允许扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            //}
                            else
                            {
                                sSubStr[i].HIsStatus = "是";
                                sSubStr[i].HSourceID = $("#HSourceID").val();
                                sSubStr[i].HSource = $("#HSource").val();
@@ -445,15 +456,15 @@
                        async: true,
                        data: { "oMain": sSubStr },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) {
                                layer.confirm(data.Message, {
                                    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"
                                    }//关闭
                        success: function (result) {
                            if (result.count == 1) {
                                layer.confirm(result.Message, {
                                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 {