From 2e36f3e6ccd951fd85a15eff4fae54f938dbe503 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期六, 12 四月 2025 11:06:48 +0800 Subject: [PATCH] 订单出库界面翻译为俄语 --- src/main/webapp/static/js/wrkMastLog/wrkMastLog.js | 430 ++++++----------------------------------------------- 1 files changed, 54 insertions(+), 376 deletions(-) diff --git a/src/main/webapp/static/js/wrkMastLog/wrkMastLog.js b/src/main/webapp/static/js/wrkMastLog/wrkMastLog.js index 621cce7..802b118 100644 --- a/src/main/webapp/static/js/wrkMastLog/wrkMastLog.js +++ b/src/main/webapp/static/js/wrkMastLog/wrkMastLog.js @@ -1,4 +1,6 @@ var pageCurr; +var wrkNo; +var ioTime; layui.use(['table','laydate', 'form'], function(){ var table = layui.table; var $ = layui.jquery; @@ -12,24 +14,25 @@ headers: {token: localStorage.getItem('token')}, url: baseUrl+'/wrkMastLog/list/auth', page: true, - limit: 10, + limit: 16, + limits: [16, 30, 50, 100, 200, 500], even: true, toolbar: '#toolbar', cellMinWidth: 50, cols: [[ - {type: 'checkbox'} + // {type: 'checkbox'} // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} -// ,{field: 'id', align: 'center',title: '缂栧彿'} - ,{field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�',event: 'wrkNo', sort: true} - ,{field: 'ioTime$', align: 'center',title: '宸ヤ綔鏃堕棿', width:160, sort: true} - ,{field: 'wrkSts$', align: 'center',title: '宸ヤ綔鐘舵��', width:160} - ,{field: 'ioType$', align: 'center',title: '鍏ュ嚭搴撶被鍨�', width:160} - ,{field: 'ioPri', align: 'center',title: '浼樺厛绾�'} - ,{field: 'crnNo$', align: 'center',title: '鍫嗗灈鏈哄彿'} - ,{field: 'sourceStaNo$', align: 'center',title: '婧愮珯',event: 'sourceStaNo', style: 'cursor:pointer'} - ,{field: 'staNo$', align: 'center',title: '鐩爣绔�',event: 'staNo', style: 'cursor:pointer'} - ,{field: 'sourceLocNo$', align: 'center',title: '婧愬簱浣�',event: 'sourceLocNo', style: 'cursor:pointer'} - ,{field: 'locNo$', align: 'center',title: '鐩爣搴撲綅',event: 'locNo', style: 'cursor:pointer'} +// ,{field: 'id', align: 'center',title: '袧芯屑械褉'} + {field: 'wrkNo', align: 'center',title: '袧芯屑械褉 蟹邪写邪薪懈褟',event: 'wrkNo', sort: true} + ,{field: 'ioTime$', align: 'center',title: '袙褉械屑褟 褉邪斜芯褌褘', width:160, sort: true} + ,{field: 'wrkSts$', align: 'center',title: '小褌邪褌褍褋 褉邪斜芯褌褘', width:160} + ,{field: 'ioType$', align: 'center',title: '孝懈锌 锌芯褋褌褍锌谢械薪懈褟/胁褘胁芯蟹邪 褋芯 褋泻谢邪写邪', width:160} + ,{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: 'picking', align: 'center',title: '鎷f枡', 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 ";} @@ -52,19 +55,19 @@ // ,{field: 'crnStrTime$', align: 'center',title: '鍫嗗灈鏈哄惎鍔ㄦ椂闂�'} // ,{field: 'crnEndTime$', align: 'center',title: '鍫嗗灈鏈哄仠姝㈡椂闂�'} // ,{field: 'plcStrTime$', align: 'center',title: '鎷f枡鏃堕棿'} - // ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',event: 'modiUser', style: 'cursor:pointer'} - // ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'} + ,{field: 'modiUser$', align: 'center',title: '袪械写邪泻褌懈褉芯胁邪谢', hide:true} + ,{field: 'modiTime$', align: 'center',title: '袙褉械屑褟 褉械写邪泻褌懈褉芯胁邪薪懈褟', hide:true} // ,{field: 'appeUser$', align: 'center',title: '鍒涘缓鑰�',event: 'appeUser', style: 'cursor:pointer'} // ,{field: 'appeTime$', align: 'center',title: '娣诲姞鏃堕棿'} - ,{field: 'barcode', align: 'center',title: '鏉$爜'} - // ,{field: 'fullPlt', align: 'center',title: '婊℃澘', templet:function(row){ + ,{field: 'barcode', align: 'center',title: '楔褌褉懈褏泻芯写'} + // ,{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:130} + ,{fixed: 'right', title:'袨锌械褉邪褑懈褟', align: 'center', toolbar: '#operate', width: 80} ]], request: { pageName: 'curr', @@ -83,7 +86,7 @@ }, done: function(res, curr, count) { if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } pageCurr=curr; limit(); @@ -113,7 +116,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } pageCurr=curr; limit(); @@ -128,7 +131,7 @@ case 'addData': layer.open({ type: 2, - title: '鏂板', + title: '袛芯斜邪胁懈褌褜', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: false, @@ -151,7 +154,7 @@ case 'deleteData': var data = checkStatus.data; if (data.length === 0){ - layer.msg('璇烽�夋嫨鏁版嵁'); + layer.msg('袩芯卸邪谢褍泄褋褌邪, 胁褘斜械褉懈褌械 写邪薪薪褘械'); } else { layer.confirm('纭畾鍒犻櫎'+(data.length===1?'姝�':data.length)+'鏉℃暟鎹悧', function(){ $.ajax({ @@ -165,7 +168,7 @@ layer.closeAll(); tableReload(false); } else if (res.code === 403){ - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } else { layer.msg(res.msg) } @@ -175,7 +178,7 @@ } break; case 'exportData': - layer.confirm('纭畾瀵煎嚭Excel鍚�', function(){ + layer.confirm('袩芯写褌胁械褉写懈褌褜 褝泻褋锌芯褉褌 胁 Excel?', {shadeClose: true}, function(){ var titles=[]; var fields=[]; obj.config.cols[0].map(function (col) { @@ -204,7 +207,7 @@ if (res.code === 200) { table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } else { layer.msg(res.msg) } @@ -219,11 +222,29 @@ table.on('tool(wrkMastLog)', function(obj){ var data = obj.data; switch (obj.event) { + // 鏄庣粏灞曠ず + case 'detlShow': + wrkNo = data.wrkNo; + ioTime = data.ioTime; + // 琛ㄦ牸涓嬫柟鏄剧ず + // locDetl(data.wrkNo); + // 寮瑰眰鏄剧ず + layer.open({ + type: 2, + title: '宸ヤ綔鏄庣粏鍘嗗彶妗�', + maxmin: true, + area: [top.detailWidth, top.detailHeight], + shadeClose: true, + content: 'wrkDetlLog.html', + success: function(layero, index){ + } + }); + break; // 璇︽儏 case 'detail': layer.open({ type: 2, - title: '璇︽儏', + title: '袛械褌邪谢懈', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: false, @@ -240,353 +261,6 @@ } }); break; - // 缂栬緫 - case 'edit': - layer.open({ - type: 2, - title: '淇敼', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: 'wrkMastLog_detail.html', - success: function(layero, index){ - 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('#id', 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"}); - - } - }); - break; - case 'wrkSts': - var param = top.reObject(data).wrkSts; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '宸ヤ綔鐘舵�佽鎯�', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../basWrkStatus/basWrkStatus_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/basWrkStatus/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - case 'ioType': - var param = top.reObject(data).ioType; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '鍏ュ嚭搴撶被鍨嬭鎯�', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../basWrkIotype/basWrkIotype_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/basWrkIotype/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - case 'crnNo': - var param = top.reObject(data).crnNo; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '鍫嗗灈鏈哄彿璇︽儏', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../basCrnp/basCrnp_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/basCrnp/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - case 'locNo': - var param = top.reObject(data).locNo; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '鐩爣搴撲綅璇︽儏', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../locMast/locMast_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/locMast/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - case 'staNo': - var param = top.reObject(data).staNo; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '鐩爣绔欒鎯�', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../basDevp/basDevp_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/basDevp/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - case 'sourceStaNo': - var param = top.reObject(data).sourceStaNo; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '婧愮珯璇︽儏', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../basDevp/basDevp_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/basDevp/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - case 'sourceLocNo': - var param = top.reObject(data).sourceLocNo; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '婧愬簱浣嶈鎯�', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../locMast/locMast_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/locMast/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - case 'modiUser': - var param = top.reObject(data).modiUser; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '淇敼浜哄憳璇︽儏', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../user/user_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/user/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - case 'appeUser': - var param = top.reObject(data).appeUser; - if (param === undefined) { - layer.msg("鏃犳暟鎹�"); - } else { - layer.open({ - type: 2, - title: '鍒涘缓鑰呰鎯�', - maxmin: true, - area: [top.detailWidth, top.detailHeight], - shadeClose: false, - content: '../user/user_detail.html', - success: function(layero, index){ - $.ajax({ - url: baseUrl+"/user/"+ param +"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - success: function (res) { - if (res.code === 200){ - setFormVal(layer.getChildFrame('#detail', index), res.data, true); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), true); - layer.getChildFrame('#data-detail-submit-save,#data-detail-submit-edit,#prompt', index).hide(); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } else if (res.code === 403){ - parent.location.href = "/"; - }else { - layer.msg(res.msg) - } - } - }) - } - }); - } - break; - } }); @@ -681,7 +355,7 @@ $(this).val(""); }); } else if (res.code === 403){ - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; }else { layer.msg(res.msg) } @@ -762,7 +436,11 @@ elem: '#logErrTime\\$', type: 'datetime' }); - + layDate.render({ + elem: '.layui-laydate-range' + ,type: 'datetime' + ,range: true + }); }); @@ -783,7 +461,7 @@ }, done: function (res, curr, count) { if (res.code === 403) { - top.location.href = baseUrl; + top.location.href = baseUrl+"/"; } pageCurr=curr; if (res.data.length === 0 && count !== 0) { -- Gitblit v1.9.1