自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-09 117c4ce502b1412449dc462d79a665abbdc1ff08
#
1个文件已修改
13 ■■■■■ 已修改文件
src/main/webapp/static/js/staDesc/staDesc.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/staDesc/staDesc.js
@@ -23,7 +23,7 @@
            ,{field: 'typeNo$', align: 'center',title: '入出库类型'}
            // ,{field: 'typeDesc', align: 'center',title: '作业类型'}
            ,{field: 'stnNo$', align: 'center',title: '起始站点'}
            ,{field: 'stnDesc', align: 'center',title: '站点名称'}
            ,{field: 'stnDesc', align: 'center',title: '站点名称', edit:'text'}
            ,{field: 'crnNo$', align: 'center',title: '堆垛机号'}
            ,{field: 'crnStn$', align: 'center',title: '目标站点'}
            ,{field: 'memo', align: 'center',title: '备注'}
@@ -68,21 +68,21 @@
    // 页面修改
    table.on('edit(staDesc)', function (obj) {
        $('body').keydown(function () {
            if (event.keyCode === 13) {
                layer.confirm('保存修改?', function(){
                    $.ajax({
                        url: baseUrl+"/staDesc/update/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: top.reObject({
                            typeId: obj.data.typeId,
                            stnDesc: obj.value
                    stnDesc: obj.value,
                    memo: obj.data.memo
                        }),
                        method: 'POST',
                        async: false,
                        success: function (res) {
                    layer.closeAll();
                            if (res.code === 200){
                                console.log(res);
                        tableReload(false);
                            } else if (res.code === 403){
                                top.location.href = baseUrl+"/";
                            }else {
@@ -90,9 +90,6 @@
                            }
                        }
                    })
                    console.log(obj);
                });
            }
        });
    });