自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-17 d4db9ab5b5d0b2fccdbced8d37507d82607deb91
src/main/webapp/static/js/pakStore/locMove.js
@@ -19,8 +19,7 @@
        even: true,
        cellMinWidth: 50,
        cols: [[
            {type: 'checkbox'}
            ,{field: 'locNo$', align: 'center',title: '库位号'}
            {field: 'locNo$', align: 'center',title: '库位号'}
            ,{field: 'matnr', align: 'center',title: '物料'}
            ,{field: 'lgnum', align: 'center',title: '仓库号'}
            ,{field: 'tbnum', align: 'center',title: '转储请求编号'}
@@ -70,7 +69,7 @@
function getLoc() {
    let locNo = $("#locNo\\$").val();
    if (locNo === undefined || locNo === null || locNo === "") {
        layer.msg("请选择库位号");
        layer.msg("请填写库位号");
        $('.search-input').css("border-color", "red");
        setTimeout(function () {
            $('.search-input').css("border-color", "#b8b8b8");
@@ -86,6 +85,7 @@
    });
}
// 移库启动
function locMove() {
    var sourceLocNo = $("#sourceLocNo").val();
    var targetLocNo = $("#targetLocNo").val();
@@ -116,7 +116,10 @@
        method: 'POST',
        success: function (res) {
            if (res.code === 200) {
                $("#sourceLocNo").val("");
                $("#targetLocNo").val("");
                layer.closeAll();
                layer.msg(res.msg);
            } else if (res.code === 403) {
                top.location.href = baseUrl + "/";
            } else {
@@ -141,6 +144,7 @@
    // })
}
// 库位状态获取
var tips;
function locStatus(el) {
    let val = el.value;
@@ -161,11 +165,11 @@
                    status = "未找到库位";
                }
                tips = layer.tips(
                    "<span style='color:#333;'>"+status+"</span>",
                    "<span style='color:#333;text-overflow: clip;'>"+status+"</span>",
                    el,
                    {
                        tipsMore: true,
                        area: ['150px'],
                        area: ['160px'],
                        tips: [3,'#fff'],
                        time:0
                        ,maxWidth:500