duhe
2024-01-22 43e741c8377b555f4e5ed287bee724e71a11540f
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBackBill.html
@@ -13,7 +13,7 @@
<body>
    <div class="layui-fluid" style="padding:0">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 5px; height:800px;">
            <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>
@@ -201,7 +201,7 @@
                                            <label class="layui-form-label" style="width:40px;padding-left:0px;">数量</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
                                            <input type="text" name="HQty" id="HQty" lay-verify="HQty" onkeyup="if(!this.value.match(/^[\+\-]?\d*?\.?\d*?$/)){if(!this.t_value>0){this.value=''}else{this.value=this.t_value;}}else this.t_value=this.value;if(this.value.match(/^(?:[\+\-]?\d+(?:\.\d+)?)?$/))this.o_value=this.value" autocomplete="off" class="layui-input" onfocus="this.select();">
                                        </div>
                                    </div>
                                </div>
@@ -592,7 +592,7 @@
            //parent.location.href = "../../../views/index.html"
            //window.close();//关闭当前页
            layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                window.close();
                parent.location.href = "../../../views/index_Mobile.html";
            });
        })
@@ -694,7 +694,7 @@
                    success: function (data) {
                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            sessionStorage["SourceFlag"] = false;
                            layer.msg(data.Message + $("#HBillNo").val(), { icon: 1 });
                            layer.msg(data.Message, { icon: 1 });
                        }
                        else {
                            layer.msg(data.Message, { icon: 5 });
@@ -860,12 +860,13 @@
                                            table.render({
                                                    elem: '#wl-table' 
                                                  , url: GetWEBURL() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                                                  , toolbar: '#toolbarDemo'
                                                , toolbar: '#toolbarDemo'
                                                , totalRow: true
                                                  , where: { HBillID: sInterID, HBillType: '1239', sWhere: '' }
                                                  , cols: [[
                                                      { type: 'radio' }
                                                     , { field: 'HQty', title: '数量', width: 150 }
                                                    , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                                      , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                                                      , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true }
                                                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                                                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
@@ -923,14 +924,15 @@
                            element.tabChange('tab-POStockInBackBill', '2');
                            table.render({
                                elem: '#wl-table'
                                , totalRow: true
                                //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBackBill/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL() + '/POStockInBackBill/DisBillEntryList_Webs_Json'
                                //, toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '1239', sWhere: '' }
                              , cols: [[
                                  { type: 'radio' }
                                , { field: 'HQty', title: '数量', width: 80 }
                                , { field: 'HQtyMust', title: '应收数量', width: 80 }
                                  , { field: 'HQty', title: '数量', width: 80, totalRow: true}
                                  , { field: 'HQtyMust', title: '应收数量', width: 80, totalRow: true }
                                , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                                , { field: 'HMaterName', title: '物料名称', width: 100 }
                                , { field: 'HMaterModel', title: '规格型号', width: 100 }
@@ -938,6 +940,7 @@
                                , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                                , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                                , { field: 'HBatchNo', title: '批次', width: 100 }
                                , { field: 'HPieceQty', title: '条码数量', width: 150 }
                              ]]
                                // , data: [linterid]
                                // , page: true
@@ -1002,10 +1005,12 @@
        //sessionStorage["HWHID"] = obj[0].HItemID;
        $("#HWHID").val(obj[0].HItemID);
    }
    function GetHSpValue(obj) {  //返回调入仓位
        $("#HStockPlaceName").val(obj[0].HName);
        $("#HStockPlaceID").val(obj[0].HItemID);
    }
        function GetHSpValue(obj) {  //返回调入仓位
            $("#HStockPlaceName").val(obj[0].HName);
            $("#HStockPlaceID").val(obj[0].HItemID);
            $("#HWHNAME").val(obj[0].HWhName);
            $("#HWHID").val(obj[0].HWHID);
        }
    function GetHSupValue(obj) {  //返回供应商
        $("#HSupName").val(obj[0].HName);
        $("#HSupID").val(obj[0].HItemID);
@@ -1041,7 +1046,21 @@
    //        }
    //    })
    //}
    function AllowLoadData(sSubStr,bnt) {  //非空验证
        function AllowLoadData(sSubStr, bnt) {  //非空验证
            //数字正则(包含小数)
            var reg = /^\d+(\.\d+)?$/;
            //if (reg.test($("#HQty").val()) == false || $("#HQty").val() == '') {
            //    layer.msg("数量必须为数量或小数", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            //    return false;
            //}
            //if (reg.test($("#HBarcodeQtys").val()) == false || $("#HBarcodeQtys").val() == '') {
            //    layer.msg("条码数量必须为数量或小数", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            //    return false;
            //}
            //if (reg.test($("#HSumQtys").val()) == false || $("#HSumQtys").val() == '') {
            //    layer.msg("总数量必须为数量或小数", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            //    return false;
            //}
        //if ($("#HSourceBillNo").val() == '') {
        //    layer.msg("请先扫源单!", { icon: 5 });
        //    return false;