wy
2022-11-17 d3331d49ea082f1b2930b4e852040fec2153eeea
WebTM/views/ÁìÁÏ·¢»õ/ÊÕÁÏÈë¿â/Kf_ReciveBill_Fast.html
@@ -140,7 +140,7 @@
                    <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" class="layui-btn buttom_box_little" lay-filter="btn_Cancel" id="btn_Cancel">退出</button>
                        <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="btn_Cancel" id="btn_Cancel">退出</button>
                    </div>
                </form>
            </div>
@@ -203,8 +203,8 @@
                        if (result.code == "1") {
                            var sSubStr = table.cache['mainTable'];
                            for (var i = 0; i < sSubStr.length; i++) {
                                if (sSubStr[i].HMaterID == HBarCode.split("#")[0]) {
                                    sSubStr[i].HSQty += parseInt(HBarCode.split("#")[1]);
                                if (sSubStr[i].HEntryID == result.data[0]["HSourceEntryID"]) {
                                    sSubStr[i].HSQty += parseInt(result.data[0]["HQty"]);
                                    table.render(option);
                                    break;
                                }
@@ -224,12 +224,8 @@
                $('#HBarCode').val("");
                $("#HBarCode").focus();
            }
            //退出-关闭页面方法
            $('#btn_Cancel').on('click', function () {
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    window.close();
                });
            form.on('submit(btn_Cancel)', function () {
                parent.location.href = "../../../views/index.html"
            })
            //审核
            form.on('submit(btn_Check)', function (data) {//审核
@@ -237,6 +233,10 @@
                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;
                    }
                }
@@ -269,9 +269,8 @@
            function set_InitGrid() {
                //表头
                columns = [
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left' }
                    , { field: 'HSQty', title: '数量', edit: 'text' }
                    { templet: '#xuhao', title: '序号', sort: true, fixed: 'left' }
                    , { field: 'HSQty', title: '数量', edit: 'text', totalRow: true }
                    , { field: 'HQty', title: '订单数量' }
                    , { field: 'HMaterID', title: 'HMaterID' }
                    , { field: 'HMaterNum', title: '物料代码' }
@@ -279,7 +278,7 @@
                    , { field: 'HModel', title: '规格型号' }
                    , { field: 'HInterID', title: '主内码', sort: true, width: 200 }
                    , { field: 'HEntryID', title: '子内码', sort: true, width: 200 }
                    , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 150 }
                    , { field: 'HPieceQty', title: '条码数量', width: 150 }
                ];
                option = {
                    id: 'mainTable'