自动化立体仓库 - WMS系统
#
LSH
2022-08-16 bbb442240f6491f0f9bb3a690b61885378e4b336
src/main/webapp/static/js/testMast/testMast.js
@@ -22,14 +22,14 @@
        height: 'full-120',
        cols: [[
            {type: 'checkbox'}
            ,{field: 'id', align: 'center',title: '编号'}
            ,{field: 'channel', align: 'center',title: ''}
            ,{field: 'locNo', align: 'center',title: '库位号'}
            ,{field: 'barcode', align: 'center',title: 'PACK码'}
            ,{field: 'userId', align: 'center',title: '用户码'}
            ,{field: 'status$', align: 'center',title: '״̬'}
            ,{field: 'modiTime$', align: 'center',title: '修改时间'}
            ,{field: 'appeTime$', align: 'center',title: '添加时间'}
            ,{field: 'id', align: 'center',title: '编码'}
            ,{field: 'channel', align: 'center',title: '通道'}
            ,{field: 'locNo', align: 'center',title: '库位号'}
            ,{field: 'barcode', align: 'center',title: 'PACK码'}
            ,{field: 'userId', align: 'center',title: '用户码'}
            ,{field: 'status$', align: 'center',title: '状态'}
            ,{field: 'modiTime$', align: 'center',title: '修改时间'}
            ,{field: 'appeTime$', align: 'center',title: '添加时间'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120}
        ]],
@@ -80,7 +80,7 @@
                break;
            case 'deleteData':
               if (checkStatus.length === 0) {
                   layer.msg('璇烽?夋嫨瑕佸垹闄ょ殑鏁版嵁', {icon: 2});
                   layer.msg('请选择要删除的数据', {icon: 2});
                   return;
               }
               del(checkStatus.map(function (d) {
@@ -88,7 +88,7 @@
               }));
               break;
            case 'exportData':
                admin.confirm('纭畾瀵煎嚭Excel鍚?', {shadeClose: true}, function(){
                admin.confirm('确定导出Excel表吗?', {shadeClose: true}, function(){
                    var titles=[];
                    var fields=[];
                    obj.config.cols[0].map(function (col) {
@@ -128,7 +128,7 @@
        }
    });
    // 鐩戝惉琛屽伐鍏蜂簨浠?
    // 监听行工具事件
    table.on('tool(testMast)', function(obj){
        var data = obj.data;
        switch (obj.event) {
@@ -141,12 +141,12 @@
        }
    });
    /* 寮圭獥 - 鏂板銆佷慨鏀? */
    /* 弹窗 - 新增、修改 */
    function showEditModel(mData) {
        admin.open({
            type: 1,
            area: '600px',
            title: (mData ? '淇敼' : '娣诲姞') + '璁㈠崟鐘舵??',
            title: (mData ? '修改' : '添加') + '订单状态',
            content: $('#editDialog').html(),
            success: function (layero, dIndex) {
                layDateRender(mData);
@@ -181,7 +181,7 @@
    /* 删除 */
    function del(ids) {
        layer.confirm('纭畾瑕佸垹闄ら?変腑鏁版嵁鍚楋紵', {
        layer.confirm('确定要删除选中的数据吗?', {
            skin: 'layui-layer-admin',
            shade: .1
        }, function (i) {
@@ -220,7 +220,7 @@
        tableReload(false);
    });
    // 鏃堕棿閫夋嫨鍣?
    // 时间选择
    function layDateRender(data) {
        setTimeout(function () {
            layDate.render({