自动化立体仓库 - WCS系统
#
Junjie
2025-03-20 bcd0612507f2ec76fd722d3fb46c286f9c50e6cd
src/main/webapp/static/js/basShuttle/basShuttle.js
@@ -24,7 +24,7 @@
            {type: 'checkbox'}
            ,{field: 'shuttleNo', align: 'center',title: '四向穿梭车号', width: 120}
            ,{field: 'status$', align: 'center',title: '状态'}
            ,{field: 'shuttleStatus', align: 'center',title: '作业态'}
            // ,{field: 'shuttleStatus', align: 'center',title: '作业态'}
            ,{field: 'wrkNo', align: 'center',title: '任务号'}
            ,{field: 'idleLoc', align: 'center',title: '暂存库位'}
            // ,{field: 'autoCharge', align: 'center',title: '自动充电'}
@@ -97,6 +97,9 @@
                   return d.shuttleNo;
               }));
               break;
            case 'oneUpdateCharge':
                showUpdateCharge();
                break;
            case 'exportData':
                admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    var titles=[];
@@ -151,12 +154,45 @@
        }
    });
    function showUpdateCharge() {
        admin.open({
            type: 1,
            area: '600px',
            title: '一键修改电量线',
            content: $('#updateChargeDialog').html(),
            success: function (layero, dIndex) {
                form.on('submit(editSubmit)', function (data) {
                    var loadIndex = layer.load(2);
                    $.ajax({
                        url: baseUrl+"/basShuttle/updateCharge",
                        headers: {'token': localStorage.getItem('token')},
                        data: data.field,
                        method: 'POST',
                        success: function (res) {
                            layer.close(loadIndex);
                            if (res.code === 200){
                                layer.close(dIndex);
                                layer.msg(res.msg, {icon: 1});
                                tableReload();
                            } else if (res.code === 403){
                                top.location.href = baseUrl+"/";
                            }else {
                                layer.msg(res.msg, {icon: 2});
                            }
                        }
                    })
                    return false;
                });
            }
        });
    }
    /* 弹窗 - 新增、修改 */
    function showEditModel(mData) {
        admin.open({
            type: 1,
            area: '600px',
            title: (mData ? '修改' : '添加') + '订单状态',
            title: (mData ? '修改' : '添加') + '小车数据',
            content: $('#editDialog').html(),
            success: function (layero, dIndex) {
                layDateRender(mData);