|  |  |  | 
|---|
|  |  |  | var layDate = layui.laydate; | 
|---|
|  |  |  | var form = layui.form; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | layDate.render({ | 
|---|
|  |  |  | elem: '.layui-laydate-range' | 
|---|
|  |  |  | ,type: 'datetime' | 
|---|
|  |  |  | ,range: true | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 数据渲染 | 
|---|
|  |  |  | tableIns = table.render({ | 
|---|
|  |  |  | elem: '#stoQue', | 
|---|
|  |  |  | headers: {token: localStorage.getItem('token')}, | 
|---|
|  |  |  | url: baseUrl+'/locMast/list/auth', | 
|---|
|  |  |  | page: true, | 
|---|
|  |  |  | limit: 10, | 
|---|
|  |  |  | limit: 20, | 
|---|
|  |  |  | limits: [20, 30, 50, 100, 200, 500], | 
|---|
|  |  |  | even: true, | 
|---|
|  |  |  | toolbar: '#toolbar', | 
|---|
|  |  |  | cellMinWidth: 50, | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'checkbox'} | 
|---|
|  |  |  | ,{field: 'locNo', align: 'center',title: '库位号'} | 
|---|
|  |  |  | ,{field: 'locType$', align: 'center',title: '库位状态', width: 180, style: 'color: #8E2323'} | 
|---|
|  |  |  | ,{field: 'whsType$', align: 'center',title: '库位类型'} | 
|---|
|  |  |  | ,{field: 'locSts$', align: 'center',title: '库位状态', width: 180, style: 'color: #8E2323'} | 
|---|
|  |  |  | // ,{field: 'whsType$', align: 'center',title: '库位类型'} | 
|---|
|  |  |  | ,{field: 'crnNo', align: 'center',title: '堆垛机号'} | 
|---|
|  |  |  | ,{field: 'qrCodeValue', align: 'center',title: '二维码值', sort:true} | 
|---|
|  |  |  | ,{field: 'row1', align: 'center',title: '排'} | 
|---|
|  |  |  | ,{field: 'bay1', align: 'center',title: '列'} | 
|---|
|  |  |  | ,{field: 'lev1', align: 'center',title: '层'} | 
|---|
|  |  |  | 
|---|
|  |  |  | // 查看明细 | 
|---|
|  |  |  | case 'locDetl': | 
|---|
|  |  |  | // locDetl(data.locNo); | 
|---|
|  |  |  | if (data.locType.trim() === '' | 
|---|
|  |  |  | || data.locType.trim() === 'S' | 
|---|
|  |  |  | || data.locType.trim() === 'D' | 
|---|
|  |  |  | || data.locType.trim() === 'O')  { | 
|---|
|  |  |  | if (data.locSts.trim() === '' | 
|---|
|  |  |  | || data.locSts.trim() === 'S' | 
|---|
|  |  |  | || data.locSts.trim() === 'D' | 
|---|
|  |  |  | || data.locSts.trim() === 'O')  { | 
|---|
|  |  |  | layer.msg("此库位的状态不存在物料"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'werks', align: 'center',title: '工厂'} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '数量'} | 
|---|
|  |  |  | ,{field: 'altme', align: 'center',title: '单位'} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: '托盘条码'} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: '货架条码'} | 
|---|
|  |  |  | ,{field: 'bname', align: 'center',title: '用户ID'} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|