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/docType/docType.js | 46 ++++++++++++++++++++++++++++++++++------------ 1 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/static/js/docType/docType.js b/src/main/webapp/static/js/docType/docType.js index 39e1cc0..0aabe1b 100644 --- a/src/main/webapp/static/js/docType/docType.js +++ b/src/main/webapp/static/js/docType/docType.js @@ -1,4 +1,5 @@ var pageCurr; +var tableData; layui.config({ base: baseUrl + "/static/layui/lay/modules/" }).use(['table','laydate', 'form', 'admin'], function(){ @@ -22,16 +23,18 @@ height: 'full-120', cols: [[ {type: 'checkbox'} - ,{field: 'docId', align: 'center',title: '绫诲瀷缂栧彿'} - ,{field: 'docName', align: 'center',title: '绫诲瀷鍚嶇О'} - ,{field: 'status$', align: 'center',title: '鐘舵��'} - ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳'} - ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'} - ,{field: 'updateBy$', align: 'center',title: '淇敼浜哄憳'} - ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿'} - ,{field: 'memo', align: 'center',title: '澶囨敞'} + ,{field: 'docId', align: 'center',title: '袧芯屑械褉 褌懈锌邪'} + ,{field: 'docName', align: 'center',title: '袧邪蟹胁邪薪懈械 褌懈锌邪'} + ,{field: 'pakin', align: 'center',title: '袩芯褋褌褍锌谢械薪懈械 薪邪 褋泻谢邪写', templet: '#pakinTpl', width: 190, unresize: true} + ,{field: 'pakout', align: 'center',title: '袙褘胁芯蟹 褋芯 褋泻谢邪写邪', templet: '#pakoutTpl', width: 190, unresize: true} + ,{field: 'status$', align: 'center',title: '小褌邪褌褍褋'} + // ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳'} + // ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'} + ,{field: 'updateBy$', align: 'center',title: '袪械写邪泻褌懈褉芯胁邪谢'} + ,{field: 'updateTime$', align: 'center',title: '袙褉械屑褟 褉械写邪泻褌懈褉芯胁邪薪懈褟'} + ,{field: 'memo', align: 'center',title: '袩褉懈屑械褔邪薪懈械', hide: true} - ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120} + ,{fixed: 'right', title:'袨锌械褉邪褑懈褟', align: 'center', toolbar: '#operate', width:180} ]], request: { pageName: 'curr', @@ -52,6 +55,7 @@ if (res.code === 403) { top.location.href = baseUrl+"/"; } + tableData = table.cache.docType; pageCurr=curr; limit(); } @@ -71,6 +75,24 @@ }); }); + form.on('switch(pakinSwitch)', function (obj) { + let index = obj.othis.parents('tr').attr("data-index"); + let data = tableData[index]; + data[this.name] = obj.elem.checked?1:0; + http.post(baseUrl+"/docType/update/auth", {docId: data.docId, pakin: data[this.name]}, function (res) { + layer.msg(res.msg, {icon: 1}); + }) + }) + + form.on('switch(pakoutSwitch)', function (obj) { + let index = obj.othis.parents('tr').attr("data-index"); + let data = tableData[index]; + data[this.name] = obj.elem.checked?1:0; + http.post(baseUrl+"/docType/update/auth", {docId: data.docId, pakout: data[this.name]}, function (res) { + layer.msg(res.msg, {icon: 1}); + }) + }) + // 鐩戝惉澶村伐鍏锋爮浜嬩欢 table.on('toolbar(docType)', function (obj) { var checkStatus = table.checkStatus(obj.config.id).data; @@ -88,7 +110,7 @@ })); break; case 'exportData': - admin.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){ + admin.confirm('袩芯写褌胁械褉写懈褌褜 褝泻褋锌芯褉褌 胁 Excel?', {shadeClose: true}, function(){ var titles=[]; var fields=[]; obj.config.cols[0].map(function (col) { @@ -146,7 +168,7 @@ admin.open({ type: 1, area: '600px', - title: (mData ? '淇敼' : '娣诲姞') + '璁㈠崟鐘舵��', + title: (mData ? '袠蟹屑械薪懈褌褜' : '袛芯斜邪胁懈褌褜') + '小褌邪褌褍褋 蟹邪泻邪蟹邪', content: $('#editDialog').html(), success: function (layero, dIndex) { layDateRender(mData); @@ -181,7 +203,7 @@ /* 鍒犻櫎 */ function del(ids) { - layer.confirm('纭畾瑕佸垹闄ら�変腑鏁版嵁鍚楋紵', { + layer.confirm('袙褘 褍胁械褉械薪褘, 褔褌芯 褏芯褌懈褌械 褍写邪谢懈褌褜 褝褌褍 蟹邪锌懈褋褜锛�', { skin: 'layui-layer-admin', shade: .1 }, function (i) { -- Gitblit v1.9.1