From 07e07d7666cfb2d822c60db7b67d93e0610072a8 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期四, 10 四月 2025 08:53:18 +0800
Subject: [PATCH] 开发专用界面翻译为俄语
---
src/main/webapp/static/js/basDevp/basDevp.js | 93 ++++++++++++++++++++++++++++++----------------
1 files changed, 61 insertions(+), 32 deletions(-)
diff --git a/src/main/webapp/static/js/basDevp/basDevp.js b/src/main/webapp/static/js/basDevp/basDevp.js
index 4bacea1..ddb516b 100644
--- a/src/main/webapp/static/js/basDevp/basDevp.js
+++ b/src/main/webapp/static/js/basDevp/basDevp.js
@@ -13,46 +13,47 @@
url: baseUrl+'/basDevp/list/auth',
page: true,
limit: 16,
+ limits: [16, 30, 50, 100, 200, 500],
even: true,
toolbar: '#toolbar',
cellMinWidth: 50,
cols: [[
{type: 'checkbox', fixed: 'left'}
// ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
- ,{field: 'devNo', align: 'center',sort:true,title: '缂栧彿'}
+ ,{field: 'devNo', align: 'center',sort:true,title: '袧芯屑械褉'}
// ,{field: 'decDesc', align: 'center',title: '璁惧鎻忚堪'}
- // ,{field: 'devMk', align: 'center',title: '澶囨敞'}
- ,{field: 'inEnable', align: 'center',title: '鍙叆', templet:function(row){
+ // ,{field: 'devMk', align: 'center',title: '袩褉懈屑械褔邪薪懈械'}
+ ,{field: 'inEnable', align: 'center',title: '袛芯褋褌褍锌薪芯 写谢褟 锌芯褋锌褍锌谢械薪懈褟', templet:function(row){
var html = "<input value='inEnable' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
if(row.inEnable === 'Y'){html += " checked ";}
html += ">";
return html;
}}
- ,{field: 'outEnable', align: 'center',title: '鍙嚭', templet:function(row){
+ ,{field: 'outEnable', align: 'center',title: '袛芯褋褌褍锌薪芯 写谢褟 胁褘谐褉褍蟹泻懈', templet:function(row){
var html = "<input value='outEnable' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
if(row.outEnable === 'Y'){html += " checked ";}
html += ">";
return html;
}}
- ,{field: 'autoing', align: 'center',title: '鑷姩', templet:function(row){
+ ,{field: 'autoing', align: 'center',title: '袗胁褌芯屑邪褌懈褔械褋泻懈', templet:function(row){
var html = "<input value='autoing' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
if(row.autoing === 'Y'){html += " checked ";}
html += ">";
return html;
}}
- ,{field: 'loading', align: 'center',title: '鏈夌墿', templet:function(row){
+ ,{field: 'loading', align: 'center',title: '袝褋褌褜 褌芯胁邪褉', templet:function(row){
var html = "<input value='loading' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
if(row.loading === 'Y'){html += " checked ";}
html += ">";
return html;
}}
- ,{field: 'canining', align: 'center',title: '鑳藉叆', templet:function(row){
+ ,{field: 'canining', align: 'center',title: '袦芯卸薪芯 胁芯泄褌懈', templet:function(row){
var html = "<input value='canining' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
if(row.canining === 'Y'){html += " checked ";}
html += ">";
return html;
}}
- ,{field: 'canouting', align: 'center',title: '鑳藉嚭', templet:function(row){
+ ,{field: 'canouting', align: 'center',title: '袦芯卸薪芯 胁褘泄褌懈', templet:function(row){
var html = "<input value='canouting' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
if(row.canouting === 'Y'){html += " checked ";}
html += ">";
@@ -62,39 +63,39 @@
// ,{field: 'rearing', align: 'center',title: ''}
// ,{field: 'uping', align: 'center',title: ''}
// ,{field: 'downing', align: 'center',title: ''}
- ,{field: 'inreq1', align: 'center',title: '闇�姹�1', templet:function(row){
+ ,{field: 'inreq1', align: 'center',title: '孝褉械斜芯胁邪薪懈械 1', templet:function(row){
var html = "<input value='inreq1' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
if(row.inreq1 === 'Y'){html += " checked ";}
html += ">";
return html;
}}
- ,{field: 'inreq2', align: 'center',title: '闇�姹�2', templet:function(row){
+ ,{field: 'inreq2', align: 'center',title: '孝褉械斜芯胁邪薪懈械 2', templet:function(row){
var html = "<input value='inreq2' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
if(row.inreq2 === 'Y'){html += " checked ";}
html += ">";
return html;
}}
- ,{field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
+ ,{field: 'wrkNo', align: 'center',title: '袧芯屑械褉 蟹邪写邪薪懈褟', edit:true, style:'color: blue;font-weight: bold'}
// ,{field: 'wrkNo1', align: 'center',title: ''}
- ,{field: 'ctnType', align: 'center',title: '瀹瑰櫒绫诲瀷'}
- ,{field: 'barcode', align: 'center',title: '鏉″舰鐮�'}
- // ,{field: 'inQty', align: 'center',title: ''}
+ ,{field: 'locType1$', align: 'center',title: '楂樹綆绫诲瀷'}
+ ,{field: 'barcode', align: 'center',title: '楔褌褉懈褏-泻芯写 锌芯写写芯薪邪'}
+ ,{field: 'inQty', align: 'center',title: '袙褉械屑械薪薪芯械 褏褉邪薪械薪懈械 薪邪 褋泻谢邪写械'}
// ,{field: 'row1', align: 'center',title: ''}
// ,{field: 'ioTime$', align: 'center',title: ''}
// ,{field: 'area', align: 'center',title: ''}
// ,{field: 'inOk', align: 'center',title: ''}
// ,{field: 'outOk', align: 'center',title: ''}
- // ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',event: 'modiUser', style: 'text-decoration: underline;cursor:pointer'}
- // ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
+ ,{field: 'modiUser$', align: 'center',title: '袪械写邪泻褌懈褉芯胁邪谢',event: 'modiUser', hide:true}
+ ,{field: 'modiTime$', align: 'center',title: '袙褉械屑褟 褉械写邪泻褌懈褉芯胁邪薪懈褟', hide:true}
// ,{field: 'appeUser$', align: 'center',title: '鍒涘缓鑰�',event: 'appeUser', style: 'text-decoration: underline;cursor:pointer'}
// ,{field: 'appeTime$', align: 'center',title: '娣诲姞鏃堕棿'}
// ,{field: 'stdQty', align: 'center',title: ''}
// ,{field: 'minWt', align: 'center',title: ''}
// ,{field: 'maxWt', align: 'center',title: ''}
- ,{field: 'grossWt', align: 'center',title: '閲嶉噺'}
+ ,{field: 'grossWt', align: 'center',title: '袙械褋'}
// ,{field: 'cartPos', align: 'center',title: ''}
- ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150}
+ ,{fixed: 'right', title:'袨锌械褉邪褑懈褟', align: 'center', toolbar: '#operate', width:150}
]],
request: {
pageName: 'curr',
@@ -113,7 +114,7 @@
},
done: function(res, curr, count) {
if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}
pageCurr=curr;
limit();
@@ -126,6 +127,34 @@
}
});
}
+ });
+
+ // 椤甸潰淇敼
+ table.on('edit(basDevp)', function (obj) {
+ if (isNaN(obj.value)) {
+ layer.msg("璇疯緭鍏ユ暟瀛�");
+ tableReload();
+ return;
+ }
+ $.ajax({
+ url: baseUrl+"/basDevp/update/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: top.reObject({
+ devNo: obj.data.devNo,
+ wrkNo: obj.value
+ }),
+ method: 'POST',
+ success: function (res) {
+ if (res.code === 200){
+ $(".layui-laypage-btn")[0].click();
+ layer.msg(res.msg);
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(res.msg)
+ }
+ }
+ })
});
// 鐩戝惉鎺掑簭浜嬩欢
@@ -143,7 +172,7 @@
},
done: function (res, curr, count) {
if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}
pageCurr=curr;
limit();
@@ -158,7 +187,7 @@
case 'addData':
layer.open({
type: 2,
- title: '鏂板',
+ title: '袛芯斜邪胁懈褌褜',
maxmin: true,
area: [top.detailWidth, top.detailHeight],
shadeClose: false,
@@ -182,7 +211,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({
@@ -196,7 +225,7 @@
layer.closeAll();
tableReload(false);
} else if (res.code === 403){
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
} else {
layer.msg(res.msg)
}
@@ -206,7 +235,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) {
@@ -235,7 +264,7 @@
if (res.code === 200) {
table.exportFile(titles,res.data,'xls');
} else if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
} else {
layer.msg(res.msg)
}
@@ -254,7 +283,7 @@
case 'detail':
layer.open({
type: 2,
- title: '璇︽儏',
+ title: '袛械褌邪谢懈',
maxmin: true,
area: [top.detailWidth, top.detailHeight],
shadeClose: false,
@@ -274,7 +303,7 @@
case 'edit':
layer.open({
type: 2,
- title: '淇敼',
+ title: '袠蟹屑械薪懈褌褜',
maxmin: true,
area: [top.detailWidth, top.detailHeight],
shadeClose: false,
@@ -293,7 +322,7 @@
case 'modiUser':
var param = top.reObject(data).modiUser;
if (param === undefined) {
- layer.msg("鏃犳暟鎹�");
+ layer.msg("袧械褌 写邪薪薪褘褏");
} else {
layer.open({
type: 2,
@@ -330,7 +359,7 @@
case 'appeUser':
var param = top.reObject(data).appeUser;
if (param === undefined) {
- layer.msg("鏃犳暟鎹�");
+ layer.msg("袧械褌 写邪薪薪褘褏");
} else {
layer.open({
type: 2,
@@ -421,7 +450,7 @@
maxWt: $('#maxWt').val(),
grossWt: $('#grossWt').val(),
cartPos: $('#cartPos').val(),
-
+ locType1:$('#locType1').val()
};
$.ajax({
url: baseUrl+"/basDevp/"+name+"/auth",
@@ -436,7 +465,7 @@
$(this).val("");
});
} else if (res.code === 403){
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}else {
layer.msg(res.msg)
}
@@ -502,7 +531,7 @@
},
done: function (res, curr, count) {
if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}
pageCurr=curr;
if (res.data.length === 0 && count !== 0) {
--
Gitblit v1.9.1