| | |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} |
| | | ,{field: 'id', align: 'center',title: 'ID'} |
| | | ,{field: 'uuid', align: 'center',title: '库区编号'} |
| | | ,{field: 'name', align: 'center',title: '库区名称'} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | | ,{field: 'createBy$', align: 'center',title: '添加人员',event: 'createBy', style: 'cursor:pointer'} |
| | | // ,{field: 'createBy$', align: 'center',title: '添加人员',event: 'createBy', style: 'cursor:pointer', hide: true} |
| | | ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | | ,{field: 'updateBy$', align: 'center',title: '修改人员',event: 'updateBy', style: 'cursor:pointer'} |
| | | // ,{field: 'updateBy$', align: 'center',title: '修改人员',event: 'updateBy', style: 'cursor:pointer', hide: true} |
| | | ,{field: 'updateTime$', align: 'center',title: '修改时间'} |
| | | ,{field: 'memo', align: 'center',title: '备注'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | ]], |
| | | request: { |
| | |
| | | }); |
| | | |
| | | function method(name){ |
| | | var index = layer.load(1, { |
| | | shade: [0.5,'#000'] //0.1透明度的背景 |
| | | }); |
| | | var uuid = $('#uuid').val(); |
| | | var areaName = $('#name').val(); |
| | | if (uuid === '' || !uuid) { |
| | | layer.msg('请输入库区编号'); |
| | | return; |
| | | } |
| | | if (areaName === '' || !areaName) { |
| | | layer.msg('请输入库区名称'); |
| | | return; |
| | | } |
| | | |
| | | var data = { |
| | | // id: $('#id').val(), |
| | | id: $('#id').val(), |
| | | uuid: $('#uuid').val(), |
| | | name: $('#name').val(), |
| | |
| | | updateBy: $('#updateBy').val(), |
| | | updateTime: top.strToDate($('#updateTime\\$').val()), |
| | | memo: $('#memo').val(), |
| | | |
| | | areaType: $('#areaType').val() === "" ? null : $('#areaType').val(), |
| | | }; |
| | | var index = layer.load(1, { |
| | | shade: [0.5,'#000'] //0.1透明度的背景 |
| | | }); |
| | | $.ajax({ |
| | | url: baseUrl+"/locArea/"+name+"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |