yusijie
2023-04-25 68fcb32bf7599f5387b77e2168c8fd692c0ecbfd
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBill_Fast.html
@@ -12,12 +12,16 @@
        .layui-col-xs4 {
            width: 12.333333%
        }
         .layui-col-xs8 {
            width: 55.666667%;
        }
    </style>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-card" style="padding: 1px">
            <div class="layui-card-body" style="padding: 1px;">
    <div class="layui-fluid" style="padding: 0px">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 0px; 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>
@@ -27,7 +31,7 @@
                            <div class="layui-col-xs3">
                                <label class="layui-form-label" style="width:40px;padding-left:0px;">条码</label>
                            </div>
                            <div class="layui-col-xs5">
                            <div class="layui-col-xs8">
                                <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-col-xs2">
@@ -48,10 +52,10 @@
                    <div class="layui-tab" lay-filter="tab-Kf_OtherInBill">
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <!-- <li lay-id="1">源单信息</li>-->
                            <li lay-id="1">源单信息</li>
                            <li lay-id="2">单据信息</li>
                            <li lay-id="3">物料清单</li>
                            <li lay-id="4">日志</li>
                            <li lay-id="1" style="padding:1px;">源单信息</li>
                            <li lay-id="2" style="padding:1px;">单据信息</li>
                            <li lay-id="3" style="padding:1px;">物料清单</li>
                            <li lay-id="4" style="padding:1px;">日志</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
@@ -392,7 +396,9 @@
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    //, toolbar: '#toolbarDemo'
                    , page: true
                    , limit: 100
                    , where: { HBillID: linterid, HBillType: '1203', sWhere: '' }
                    , cols: [[
                        { type: 'radio' }
@@ -508,7 +514,9 @@
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    //, toolbar: '#toolbarDemo'
                    , page: true
                    , limit: 100
                    , where: { HBillID: linterid, HBillType: '1203', sWhere: '' }
                    , cols: [[
                        { type: 'radio' }
@@ -536,7 +544,9 @@
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    //, toolbar: '#toolbarDemo'
                    , page: true
                    , limit: 100
                    , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' }
                    , cols: [[
                        { type: 'radio' }
@@ -787,7 +797,9 @@
                        table.render({
                            elem: '#wl-table'
                            , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                            , toolbar: '#toolbarDemo'
                            //, toolbar: '#toolbarDemo'
                            , page: true
                            , limit: 100
                            , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' }
                            , cols: [[
                                { type: 'radio' }
@@ -836,7 +848,7 @@
                //                table.render({
                //                    elem: '#wl-table'
                //                    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                //                    , toolbar: '#toolbarDemo'
                //                    //, toolbar: '#toolbarDemo'
                //                    , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' }
                //                    , cols: [[
                //                        { type: 'radio' }
@@ -1007,6 +1019,39 @@
                }
            });
            //扫仓库
            $('#HWHNAME').on('keydown', function (event) {
                var HBarCode = $('#HWHNAME').val()
                if (event.keyCode == 13) {
                    if (!HBarCode) {
                        layer.msg('无仓库条码信息!');
                        return;
                    }
                    //判断文本框是否有数据    new
                    $.ajax({
                        url: GetWEBURL() + "/LookingFor/getWHName_Json",
                        type: "GET",
                        data: { "HBarCode": HBarCode },
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                //$("#HStockPlaceName").val(result.data[0].HName);
                                //$("#HStockPlaceID").val(result.data[0].HItemID);
                                $("#HWHID").val(result.data[0].HItemID);
                                $("#HWHNAME").val(result.data[0].HName);
                                element.tabChange('tab-POStockInBill', '2');
                            }
                            else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                            layer.closeAll("loading");
                        }
                    });
                    // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
                }
            });
            //条形码回车方法
            $('#HBarCode').on('keydown', function (event) {
                if (event.keyCode == 13) {
@@ -1033,12 +1078,13 @@
            table.render({
                elem: '#mx-table'
                // , url: 'http://localhost:8083/OtherInStockBill/GetHBarCodeShowBillSub'
                //, toolbar: '#toolbarDemo'
                ////, toolbar: '#toolbarDemo'
                // , where: { sMsg: linterid, sMsg2: lentryid }
                , cols: [[
                    , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
                ]]
                , page: true
                , limit: 100
                , height: 500
                , done: function () {
                }
@@ -1079,36 +1125,39 @@
                    data: { "sBarCode": sBarCode, "HInterID": sInterID, "HBillType": HBillType, "HBillNo": sBillNo, "HMaker": sessionStorage["HUserName"], "HWhID": sHWHID, "HSPID": sHSPID, "HQty": sQty, "HRedBlueFlag": false, "SourceFlag": HSourceFlag, "HSourceBillNo": sSourceBillNo, "HSourceBillType": sHBillType, "HStockOrgID": sessionStorage["OrganizationID"], "HScanStyle": "", "HCustom1": "", "HCustom2": "" },
                    success: function (result) {
                        if (result.count == 1) {
                            if (result.data.HBarType == '仓库条码') {
                                $("#HWHNAME").val(result.data.HWhName);
                                $("#HWHID").val(result.data.HWhID);
                            if (result.data.hBarTypeField == '仓库条码') {
                                $("#HWHNAME").val(result.data.hWhNameField);
                                $("#HWHID").val(result.data.hWhIDField);
                                $("#HStockPlaceName").val("");
                                $("#HNote").val(";一键扫码仓库条码");
                                element.tabChange('tab-Kf_OtherInBill', '2');  //跳转页签
                                return;
                            }
                            else if (result.data.HBarType == '仓位条码') {
                                $("#HStockPlaceName").val(result.data.HSPName);
                                $("#HStockPlaceID").val(result.data.HSPID);
                                $("#HWHNAME").val(result.data.HWhName);
                                $("#HWHID").val(result.data.HWhID);
                            else if (result.data.hBarTypeField == '仓位条码') {
                                $("#HStockPlaceName").val(result.data.hSPNameField);
                                $("#HStockPlaceID").val(result.data.hSPIDField);
                                $("#HWHNAME").val(result.data.hWhNameField);
                                $("#HWHID").val(result.data.hWhIDField);
                                $("#HNote").val(";一键扫码仓位条码");
                                element.tabChange('tab-Kf_OtherInBill', '2');//跳转页签
                                return;
                            }
                            else if (result.data.HBarType == '部门条码') {
                                $("#HDeptName").val(result.data.HDeptName);
                                $("#HDeptID").val(result.data.HDeptID);
                            else if (result.data.hBarTypeField == '部门条码') {
                                $("#HDeptName").val(result.data.hDeptNameField);
                                $("#HDeptID").val(result.data.hDeptIDField);
                                $("#HNote").val(";一键扫码部门条码");
                                element.tabChange('tab-Kf_OtherInBill', '2');//跳转页签
                                return;
                            }
                            else if (result.data.HBarType == '源单条码') {
                                $("#HSupName").val(result.data.HSupName);
                                $("#HSupID").val(result.data.HSupID);
                                $("#HDeptName").val(result.data.HDeptName);
                                $("#HDeptID").val(result.data.HDeptID);
                                $("#HSourceBillNo").val(result.data.HSourceBillNo);
                            else if (result.data.hBarTypeField == '源单条码') {
                                $("#HSupName").val(result.data.hSupNameField);
                                $("#HSupID").val(result.data.hSupIDField);
                                $("#HDeptName").val(result.data.hDeptNameField);
                                $("#HDeptID").val(result.data.hDeptIDField);
                                $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                HSourceFlag = true;
                                //获取源单类型、源单单号
                                if (result.data.HSourceBillType == "1241") {
                                if (result.data.hSourceBillType == "1241") {
                                    $("#HBillType").val("1241");
                                }
@@ -1174,7 +1223,7 @@
                            //table.render({
                            //    elem: '#wl-table'
                            //    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                            //    , toolbar: '#toolbarDemo'
                            //    //, toolbar: '#toolbarDemo'
                            //    , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' }
                            //    , cellMinWidth: 90
                            //    , cols: [[
@@ -1224,6 +1273,8 @@
                                    layer.closeAll("loading");
                                }
                            });
                            //清空数量
                            $("#HQty").val("");
                        }
                        else {
                            // $("#verifycode").click();
@@ -1248,7 +1299,7 @@
            var listOption = {
                elem: '#wl-table'
                , toolbar: '#toolbarDemo'
                //, toolbar: '#toolbarDemo'
                , cellMinWidth: 90
                ,limit:3000
                , totalRow: true
@@ -1273,7 +1324,7 @@
            }
            var listOption1 = {
                elem: '#mx-table'
                , toolbar: '#toolbarDemo'
                //, toolbar: '#toolbarDemo'
                , cellMinWidth: 90
                , cols: [[
                    { type: 'radio' }
@@ -1328,7 +1379,7 @@
                            //    elem: '#wl-table'
                            //    //, url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json'
                            //    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                            //    , toolbar: '#toolbarDemo'
                            //    //, toolbar: '#toolbarDemo'
                            //    , where: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl  }
                            //    , cols: [[
                            //        { type: 'radio' }