|  |  |  | 
|---|
|  |  |  | cellMinWidth: 50, | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'checkbox'} | 
|---|
|  |  |  | ,{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: '入出库类型'} | 
|---|
|  |  |  | ,{field: 'ioPri', align: 'center',title: '优先级'} | 
|---|
|  |  |  | ,{field: 'crnNo$', align: 'center',title: '堆垛机'} | 
|---|
|  |  |  | ,{field: 'sourceStaNo$', align: 'center',title: '源站'} | 
|---|
|  |  |  | ,{field: 'staNo$', align: 'center',title: '目标站'} | 
|---|
|  |  |  | ,{field: 'sourceLocNo$', align: 'center',title: '源库位'} | 
|---|
|  |  |  | ,{field: 'locNo$', align: 'center',title: '目标库位'} | 
|---|
|  |  |  | ,{field: 'barcode', align: 'center',title: '条码'} | 
|---|
|  |  |  | ,{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: 'Тип поступления/вывоза со склада'} | 
|---|
|  |  |  | ,{field: 'ioPri', align: 'center',title: 'Приоритет'} | 
|---|
|  |  |  | ,{field: 'crnNo$', align: 'center',title: 'Номер штабелера'} | 
|---|
|  |  |  | ,{field: 'sourceStaNo$', align: 'center',title: 'Исходная станция'} | 
|---|
|  |  |  | ,{field: 'staNo$', align: 'center',title: 'Целевая станция'} | 
|---|
|  |  |  | ,{field: 'sourceLocNo$', align: 'center',title: 'Исходный склад'} | 
|---|
|  |  |  | ,{field: 'locNo$', align: 'center',title: 'Целевой склад'} | 
|---|
|  |  |  | ,{field: 'barcode', align: 'center',title: 'Штрихкод'} | 
|---|
|  |  |  | // ,{field: 'preHave', align: 'center',title: '先入品', hide: true} | 
|---|
|  |  |  | // ,{field: 'takeNone', align: 'center',title: '空操作', hide: true} | 
|---|
|  |  |  | // ,{field: 'picking', align: 'center',title: '拣料', templet:function(row){ | 
|---|
|  |  |  | //         var html = "<input value='picking' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | //         if(row.picking === 'Y'){html += " checked ";} | 
|---|
|  |  |  | 
|---|
|  |  |  | // ,{field: 'crnStrTime$', align: 'center',title: '堆垛机启动时间'} | 
|---|
|  |  |  | // ,{field: 'crnEndTime$', align: 'center',title: '堆垛机停止时间'} | 
|---|
|  |  |  | // ,{field: 'refIotime$', align: 'center',title: '拣料时间'} | 
|---|
|  |  |  | ,{field: 'modiUser$', align: 'center',title: '修改人员', hide:true} | 
|---|
|  |  |  | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide:true, width: 160} | 
|---|
|  |  |  | // ,{field: 'memo', align: 'center',title: '备注'} | 
|---|
|  |  |  | ,{field: 'modiUser$', align: 'center',title: 'Редактировал', hide:true} | 
|---|
|  |  |  | ,{field: 'modiTime$', align: 'center',title: 'Время редактирования', hide:true, width: 160} | 
|---|
|  |  |  | // ,{field: 'memo', align: 'center',title: 'Примечание'} | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // ,{field: 'fullPlt', align: 'center',title: '满板', templet:function(row){ | 
|---|
|  |  |  | // ,{field: 'fullPlt', align: 'center',title: 'Полные поддоны', templet:function(row){ | 
|---|
|  |  |  | //         var html = "<input value='fullPlt' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | //         if(row.fullPlt === 'Y'){html += " checked ";} | 
|---|
|  |  |  | //         html += ">"; | 
|---|
|  |  |  | //         return html; | 
|---|
|  |  |  | //     }} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:160} | 
|---|
|  |  |  | ,{fixed: 'right', title:'Операция', align: 'center', toolbar: '#operate', width:330} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | pageName: 'curr', | 
|---|
|  |  |  | 
|---|
|  |  |  | case 'addData': | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 2, | 
|---|
|  |  |  | title: '新增', | 
|---|
|  |  |  | title: 'Добавить', | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: [top.detailWidth, top.detailHeight], | 
|---|
|  |  |  | shadeClose: false, | 
|---|
|  |  |  | 
|---|
|  |  |  | case 'deleteData': | 
|---|
|  |  |  | var data = checkStatus.data; | 
|---|
|  |  |  | if (data.length === 0){ | 
|---|
|  |  |  | layer.msg('请选择数据'); | 
|---|
|  |  |  | layer.msg('Пожалуйста, выберите данные'); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | layer.confirm('确定删除'+(data.length===1?'此':data.length)+'条数据吗', function(){ | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case 'exportData': | 
|---|
|  |  |  | layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){ | 
|---|
|  |  |  | layer.confirm('Подтвердить экспорт в Excel?', {shadeClose: true}, function(){ | 
|---|
|  |  |  | var titles=[]; | 
|---|
|  |  |  | var fields=[]; | 
|---|
|  |  |  | obj.config.cols[0].map(function (col) { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 监听行工具事件 | 
|---|
|  |  |  | table.on('tool(wrkMast)', function(obj){ | 
|---|
|  |  |  | var data = obj.data; | 
|---|
|  |  |  | let data = obj.data; | 
|---|
|  |  |  | switch (obj.event) { | 
|---|
|  |  |  | // 明细展示 todo | 
|---|
|  |  |  | // 明细展示 | 
|---|
|  |  |  | case 'detlShow': | 
|---|
|  |  |  | wrkNo = data.wrkNo; | 
|---|
|  |  |  | // 表格下方显示 | 
|---|
|  |  |  | 
|---|
|  |  |  | // 弹层显示 | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 2, | 
|---|
|  |  |  | title: '工作档明细', | 
|---|
|  |  |  | title: 'Детали', | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: [top.detailWidth, top.detailHeight], | 
|---|
|  |  |  | shadeClose: true, | 
|---|
|  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | layer.closeAll(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | // 详情 | 
|---|
|  |  |  | case 'detail': | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 2, | 
|---|
|  |  |  | title: '详情', | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: [top.detailWidth, top.detailHeight], | 
|---|
|  |  |  | shadeClose: false, | 
|---|
|  |  |  | content: 'wrkMast_detail.html', | 
|---|
|  |  |  | success: function(layero, index){ | 
|---|
|  |  |  | setFormVal(layer.getChildFrame('#detail', index), data, true); | 
|---|
|  |  |  | top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); | 
|---|
|  |  |  | layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); | 
|---|
|  |  |  | layero.find('iframe')[0].contentWindow.layui.form.render('select'); | 
|---|
|  |  |  | layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); | 
|---|
|  |  |  | layer.getChildFrame('##dealDownLine', index).hide(); | 
|---|
|  |  |  | layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //  先入品 | 
|---|
|  |  |  | case 'preHave': | 
|---|
|  |  |  | layer.confirm('任务发生先入品异常。如需重新入库,请确保货物已放至堆垛机出库站!', {title: '工作号:'+data.wrkNo, shadeClose: true}, function(){ | 
|---|
|  |  |  | http.post(baseUrl+"/deal/preHave/start", {wrkNo: data.wrkNo}, function (res) { | 
|---|
|  |  |  | $(".layui-laypage-btn")[0].click(); | 
|---|
|  |  |  | layer.msg(data.wrkNo + res.msg, {icon: 1}); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | layer.closeAll(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | // 编辑 | 
|---|
|  |  |  | case 'edit': | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 2, | 
|---|
|  |  |  | title: '修改', | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: [top.detailWidth, top.detailHeight], | 
|---|
|  |  |  | shadeClose: false, | 
|---|
|  |  |  | content: 'wrkMast_detail.html', | 
|---|
|  |  |  | success: function(layero, index){ | 
|---|
|  |  |  | layer.getChildFrame('#crnStrTime\\$,#crnEndTime\\$,#refIotime\\$,#ioTime\\$', index).parent().parent().hide(); | 
|---|
|  |  |  | layer.getChildFrame('#data-detail-submit-save', index).hide(); | 
|---|
|  |  |  | setFormVal(layer.getChildFrame('#detail', index), data, false); | 
|---|
|  |  |  | top.convertDisabled(layer.getChildFrame('#data-detail :input', index), false); | 
|---|
|  |  |  | top.convertDisabled(layer.getChildFrame('#wrkNo', index), true); | 
|---|
|  |  |  | layero.find('iframe')[0].contentWindow.layui.form.render('select'); | 
|---|
|  |  |  | layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); | 
|---|
|  |  |  | layer.getChildFrame('##dealDownLine', index).hide(); | 
|---|
|  |  |  | layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //  空操作 | 
|---|
|  |  |  | case 'takeNone': | 
|---|
|  |  |  | layer.confirm('任务发送空操作异常!是否。。。。。。。。?', {title: '工作号:'+data.wrkNo, shadeClose: true}, function(){ | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | cellMinWidth: 50, | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'checkbox'} | 
|---|
|  |  |  | ,{field: 'wrkNo', align: 'center',title: '工作号'} | 
|---|
|  |  |  | ,{field: 'ioTime$', align: 'center',title: '工作时间'} | 
|---|
|  |  |  | ,{field: 'wrkNo', align: 'center',title: 'Номер задания'} | 
|---|
|  |  |  | ,{field: 'ioTime$', align: 'center',title: 'Время работы'} | 
|---|
|  |  |  | ,{field: 'matnr', align: 'center',title: '物料'} | 
|---|
|  |  |  | ,{field: 'lgnum', align: 'center',title: '仓库号'} | 
|---|
|  |  |  | ,{field: 'tbnum', align: 'center',title: '转储请求编号'} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'zmatid', align: 'center',title: '物料标签ID'} | 
|---|
|  |  |  | ,{field: 'maktx', align: 'center',title: '物料描述'} | 
|---|
|  |  |  | ,{field: 'werks', align: 'center',title: '工厂'} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '数量'} | 
|---|
|  |  |  | ,{field: 'altme', align: 'center',title: '单位'} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: '托盘条码'} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: 'Количество'} | 
|---|
|  |  |  | ,{field: 'altme', align: 'center',title: 'Цена за единицу'} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: 'Штрих-код поддона'} | 
|---|
|  |  |  | ,{field: 'bname', align: 'center',title: '用户ID'} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注'} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: 'Примечание'} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:50} | 
|---|
|  |  |  | ,{fixed: 'right', title:'Операция', align: 'center', toolbar: '#operate', width:50} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | pageName: 'curr', | 
|---|