WebTM/views/Éú²ú¹ÜÀí/Éú²ú»ã±¨µ¥/Sc_ICMOReportBill_FastNew.html
@@ -17,8 +17,8 @@
</head>
<body>
    <div class="layui-fluid" style="padding:0">
        <div class="layui-card" style="padding: 1px">
            <div class="layui-card-body" style="padding: 5px; height:800px;">
        <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>
@@ -100,14 +100,14 @@
                                            <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" >...</button>
                                        </div>
                                    </div>
                                </div>
                                <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:45px;padding-left:0px;">班组</label>
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">班组</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HGroupName" id="HGroupName" lay-verify="HGroupName" autocomplete="off" class="layui-input" disabled="disabled">
@@ -156,7 +156,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>
@@ -366,7 +366,7 @@
            $("#HInterID").val("");
            $("#HBillNo").val("");
            $.ajax({
                url: GetWEBURL() + "/Web/GetMAXNum",
                url: GetWEBURL() + "/Web/GetMAXNumPDA",
                type: "GET",
                data: { "HBillType": '3711' },
                success: function (d) {
@@ -550,8 +550,11 @@
        form.on('submit(Cancel)', function () {
            sessionStorage["SourceFlag"] = false;
            parent.location.href = "../../../views/index.html"
            //parent.location.href = "../../../views/index.html"
            //window.close();//关闭当前页
            layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                parent.location.href = "../../../views/index_Mobile.html";
            });
        })
        form.on('submit(cmdModify)', function () {//编辑
@@ -813,11 +816,12 @@
                                                    elem: '#wl-table'
                                                , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
                                                  , where: { HBillID: sInterID, HBillType: '3711', sWhere: '' }
                                                  , cellMinWidth : 115
                                                , cellMinWidth: 115
                                                , totalRow: true
                                                  , cols: [[
                                                      { type: 'radio' }
                                                    , { field: 'HQty', title: '数量', sort: true }
                                                    , { field: 'HQtyMust', title: '应收数量', sort: true  }
                                                      , { field: 'HQty', title: '数量', sort: true, totalRow: true}
                                                      , { field: 'HQtyMust', title: '应收数量', sort: true, totalRow: true}
                                                    , { field: 'HMaterNumber', title: '物料代码', sort: true }
                                                    , { field: 'HMaterName', title: '物料名称', sort: true }
                                                    , { field: 'HMaterModel', title: '规格型号', sort: true }
@@ -878,21 +882,23 @@
                            table.render({
                                elem: '#wl-table'
                                , cellMinWidth: 80
                                , totalRow: true
                              //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
                              //, toolbar: '#toolbarDemo'
                              , where: { HBillID: sInterID, HBillType: '3711', sWhere: '' }
                              , cols: [[
                                  { type: 'radio' }
                                , { field: 'HQty', title: '数量', sort: true }
                                , { field: 'HQtyMust', title: '应收数量', sort: true }
                                  , { field: 'HQty', title: '数量', sort: true, totalRow: true}
                                  , { field: 'HQtyMust', title: '应收数量', sort: true, totalRow: true}
                                , { field: 'HMaterNumber', title: '物料代码', sort: true }
                                , { field: 'HMaterName', title: '物料名称', sort: true }
                                , { field: 'HMaterModel', title: '规格型号', sort: true }
                                , { field: 'HSourceInterID', title: '源单主内码', sort: true }
                                , { field: 'HSourceEntryID', title: '源单子内码', sort: true }
                                , { field: 'HSourceBillNo', title: '源单单号', sort: true }
                                , { field: 'HBatchNo', title: '批次'}
                                , { field: 'HBatchNo', title: '批次' }
                                , { field: 'HPieceQty', title: '条码数量', width: 150 }
                              ]]
                                // , data: [linterid]
                                // , page: true
@@ -1005,11 +1011,13 @@
        $("#HWHNAME").val(obj[0].HName);
        //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);
@@ -1031,6 +1039,20 @@
        //    layer.msg("请先扫源单!", { icon: 5 });
        //    return false;
        //}
        //数字正则(包含小数)
        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($("#HDeptName").val()=='')
        {
            layer.msg("部门没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });