自动化立体仓库 - WMS系统
pang.jiabao
15 小时以前 10a60f0142e1bdd2630365d14217ef1246bf13f7
发货时间只能选择当前时间之后
3个文件已修改
69 ■■■■■ 已修改文件
src/main/webapp/views/pla/sellout.html 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pla2/sellout.html 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pla3/sellout.html 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pla/sellout.html
@@ -246,7 +246,16 @@
                layer.msg("发货重量不能为0");
                return;
            }
            if(!$('#pakoutTime').val()){
                layer.msg("请选择发货时间");
                return;
            }
            if (isOver15Seconds($('#pakoutTime').val())) {
                // console.log('发货时间超时,请重新选择');
                layer.msg("发货时间超时,请重新选择");
                return;
            }
            for (var i in checkData){
                checkData[i].orderNo = $('#orderNoV').val();
                checkData[i].customer = $('#customer').val();
@@ -256,11 +265,6 @@
                checkData[i].allocate = $('#allocate').val();
                checkData[i].memo = $('#memo').val();
                checkData[i].pakoutTime = $('#pakoutTime').val();
            }
            if(!$('#pakoutTime').val()){
                layer.msg("请选择发货时间");
                return;
            }
            $.ajax({
@@ -286,7 +290,10 @@
                }
            })
        });
        function isOver15Seconds(timeStr) {
            var t = new Date(timeStr.replace(/-/g, '/')).getTime();
            return t + 15 * 1000 <= Date.now();
        }
        form.on('submit(detailEditSubmit)', function () {
            detailData = table.cache.detailTable;
src/main/webapp/views/pla2/sellout.html
@@ -236,8 +236,19 @@
        // 数据提交动作
        form.on('submit(save)', function () {
            if($('#maktxV').val() != checkData[0].brand){
                layer.msg("选中的库存牌号与订单牌号不一致,请重新选择订单");
            // if($('#maktxV').val() != checkData[0].brand){
            //     layer.msg("选中的库存牌号与订单牌号不一致,请重新选择订单");
            //     return;
            // }
            if(!$('#pakoutTime').val()){
                layer.msg("请选择发货时间");
                return;
            }
            if (isOver15Seconds($('#pakoutTime').val())) {
                // console.log('发货时间超时,请重新选择');
                layer.msg("发货时间超时,请重新选择");
                return;
            }
@@ -250,11 +261,6 @@
                checkData[i].allocate = $('#allocate').val();
                checkData[i].memo = $('#memo').val();
                checkData[i].pakoutTime = $('#pakoutTime').val();
            }
            if(!$('#pakoutTime').val()){
                layer.msg("请选择发货时间");
                return;
            }
            $.ajax({
@@ -280,7 +286,10 @@
                }
            })
        });
        function isOver15Seconds(timeStr) {
            var t = new Date(timeStr.replace(/-/g, '/')).getTime();
            return t + 15 * 1000 <= Date.now();
        }
        form.on('submit(detailEditSubmit)', function () {
            detailData = table.cache.detailTable;
src/main/webapp/views/pla3/sellout.html
@@ -236,8 +236,19 @@
        // 数据提交动作
        form.on('submit(save)', function () {
            if($('#maktxV').val() != checkData[0].brand){
                layer.msg("选中的库存牌号与订单牌号不一致,请重新选择订单");
            // if($('#maktxV').val() != checkData[0].brand){
            //     layer.msg("选中的库存牌号与订单牌号不一致,请重新选择订单");
            //     return;
            // }
            if(!$('#pakoutTime').val()){
                layer.msg("请选择发货时间");
                return;
            }
            if (isOver15Seconds($('#pakoutTime').val())) {
                // console.log('发货时间超时,请重新选择');
                layer.msg("发货时间超时,请重新选择");
                return;
            }
@@ -250,11 +261,6 @@
                checkData[i].allocate = $('#allocate').val();
                checkData[i].memo = $('#memo').val();
                checkData[i].pakoutTime = $('#pakoutTime').val();
            }
            if(!$('#pakoutTime').val()){
                layer.msg("请选择发货时间");
                return;
            }
            $.ajax({
@@ -280,7 +286,10 @@
                }
            })
        });
        function isOver15Seconds(timeStr) {
            var t = new Date(timeStr.replace(/-/g, '/')).getTime();
            return t + 15 * 1000 <= Date.now();
        }
        form.on('submit(detailEditSubmit)', function () {
            detailData = table.cache.detailTable;