|  |  |  | 
|---|
|  |  |  | cellMinWidth: 50, | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'checkbox'} | 
|---|
|  |  |  | ,{field: 'wrkNo', align: 'center',title: '工作号',sort: true} | 
|---|
|  |  |  | ,{field: 'wrkNo', align: 'center',title: '工作号',sort: true, width: 85} | 
|---|
|  |  |  | ,{field: 'ioTime$', align: 'center',title: '工作时间',sort: true, width: 160} | 
|---|
|  |  |  | ,{field: 'wrkSts$', align: 'center',title: '工作状态'} | 
|---|
|  |  |  | ,{field: 'ioType$', align: 'center',title: '入出库类型'} | 
|---|
|  |  |  | 
|---|
|  |  |  | //         return html; | 
|---|
|  |  |  | //     }} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:200} | 
|---|
|  |  |  | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:230} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | pageName: 'curr', | 
|---|
|  |  |  | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | // 取消 | 
|---|
|  |  |  | case 'cancel': | 
|---|
|  |  |  | layer.confirm('确认取消该笔工作档?', {title: '工作号:'+data.wrkNo, shadeClose: true}, function(){ | 
|---|
|  |  |  | http.post(baseUrl+"/hand/control/wrkMast", {workNo: data.wrkNo, type:2}, function (res) { | 
|---|
|  |  |  | if (data.pdcType === "Y") { | 
|---|
|  |  |  | layer.confirm('当前任务关联ERP销售单,取消将重新生成出库作业,是否继续?', {title: '工作号:'+data.wrkNo, shadeClose: true}, function(){ | 
|---|
|  |  |  | http.post(baseUrl+"/hand/control/wrkMast", {workNo: data.wrkNo, type:2}, function (res) { | 
|---|
|  |  |  | $(".layui-laypage-btn")[0].click(); | 
|---|
|  |  |  | layer.msg(data.wrkNo + res.msg); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | layer.closeAll(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | layer.confirm('确认取消该笔工作档?', {title: '工作号:'+data.wrkNo, shadeClose: true}, function(){ | 
|---|
|  |  |  | http.post(baseUrl+"/hand/control/wrkMast", {workNo: data.wrkNo, type:2}, function (res) { | 
|---|
|  |  |  | $(".layui-laypage-btn")[0].click(); | 
|---|
|  |  |  | layer.msg(data.wrkNo + res.msg); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | layer.closeAll(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | //  拣料入库 | 
|---|
|  |  |  | case 'pick': | 
|---|
|  |  |  | layer.confirm('拣料入库该笔工作档?', {title: '工作号:'+data.wrkNo, shadeClose: true}, function(){ | 
|---|
|  |  |  | http.post(baseUrl+"/hand/control/wrkMast", {workNo: data.wrkNo, type:3}, function (res) { | 
|---|
|  |  |  | $(".layui-laypage-btn")[0].click(); | 
|---|
|  |  |  | layer.msg(data.wrkNo + res.msg); | 
|---|
|  |  |  | }) | 
|---|