|  |  |  | 
|---|
|  |  |  | cols: [[{type: 'checkbox'}, {field: 'locNo', align: 'center', title: '库位号', width: 120} | 
|---|
|  |  |  | , {field: 'barcode', align: 'center', title: '托盘码'} | 
|---|
|  |  |  | , {field: 'areaName', align: 'center', title: '库区名称'} | 
|---|
|  |  |  | , {field: 'whsType$', align: 'center', title: '库位类型'} | 
|---|
|  |  |  | // , {field: 'whsType$', align: 'center', title: '库位类型'} | 
|---|
|  |  |  | , {field: 'locSts', align: 'center', title: '库位状态'} | 
|---|
|  |  |  | , {field: 'row1', align: 'center', title: '排'} | 
|---|
|  |  |  | , {field: 'bay1', align: 'center', title: '列'} | 
|---|
|  |  |  | , {field: 'lev1', align: 'center', title: '层'} | 
|---|
|  |  |  | , {field: 'locType', align: 'center', title: '库位类型'} | 
|---|
|  |  |  | // , {field: 'locType', align: 'center', title: '库位类型'} | 
|---|
|  |  |  | , {field: 'sort', align: 'center', title: '优先级'} | 
|---|
|  |  |  | , {field: 'modiUser$', align: 'center', title: '修改人员'} | 
|---|
|  |  |  | , {field: 'modiTime$', align: 'center', title: '修改时间'} | 
|---|
|  |  |  | 
|---|
|  |  |  | case 'addData': | 
|---|
|  |  |  | showEditModel(); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case 'batchModifties': | 
|---|
|  |  |  | if (checkStatus.length === 0) { | 
|---|
|  |  |  | layer.msg('请选择需要修改的数据信息', {icon: 2}); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | batchModifies(); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case 'deleteData': | 
|---|
|  |  |  | if (checkStatus.length === 0) { | 
|---|
|  |  |  | layer.msg('请选择要删除的数据', {icon: 2}); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 监听行工具事件 | 
|---|
|  |  |  | table.on('tool(locCache)', function (obj) { | 
|---|
|  |  |  | var data = obj.data; | 
|---|
|  |  |  | console.log(data) | 
|---|
|  |  |  | switch (obj.event) { | 
|---|
|  |  |  | case 'showDetl': | 
|---|
|  |  |  | locNo = data?.locNo; | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function batchModifies() { | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 1, | 
|---|
|  |  |  | title: '批量修改', | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: ["400px"], | 
|---|
|  |  |  | shadeClose: true, | 
|---|
|  |  |  | content: $('#batchModify'), | 
|---|
|  |  |  | success: function (layero, index) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /* 弹窗 - 新增、修改 */ | 
|---|
|  |  |  | function showEditModel(mData) { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /* 删除 */ | 
|---|
|  |  |  | function del(ids) { | 
|---|
|  |  |  | console.log(ids) | 
|---|
|  |  |  | layer.confirm('确定要删除选中数据吗?', { | 
|---|
|  |  |  | skin: 'layui-layer-admin', shade: .1 | 
|---|
|  |  |  | }, function (i) { | 
|---|