From b4227b5145943e067351a2a59ca34826b41d6fb7 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期二, 15 四月 2025 09:46:30 +0800
Subject: [PATCH] 界面翻译为俄语

---
 src/main/webapp/static/js/waitPakin/waitPakin.js |   98 +++++++++++++++++++++++++++++++++---------------
 1 files changed, 67 insertions(+), 31 deletions(-)

diff --git a/src/main/webapp/static/js/waitPakin/waitPakin.js b/src/main/webapp/static/js/waitPakin/waitPakin.js
index 55124a0..4156247 100644
--- a/src/main/webapp/static/js/waitPakin/waitPakin.js
+++ b/src/main/webapp/static/js/waitPakin/waitPakin.js
@@ -1,10 +1,34 @@
 var pageCurr;
-layui.use(['table','laydate', 'form'], function(){
+function getCol() {
+    var cols = [ {type: 'checkbox'} ];
+    cols.push.apply(cols, detlCols);
+    cols.push({field: 'locNo', align: 'center',title: '袧芯屑械褉 褋泻谢邪写褋泻芯谐芯 屑械褋褌邪'}
+        ,{field: 'status', align: 'center',title: '小褌邪褌褍褋 写邪薪薪褘褏', templet:function(row){
+                var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='袧芯褉屑邪谢褜薪芯|袨褕懈斜泻邪' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'";
+                if(row.status === 'Y'){html += " checked ";}
+                html += ">";
+                return html;
+            }, hide: true}
+        ,{field: 'ioStatus', align: 'center',title: '小褌邪褌褍褋 锌芯褋褌褍锌谢械薪懈褟/胁褘褏芯写邪', templet:function(row){
+                var html = "<input value='ioStatus' type='checkbox' lay-skin='switch' lay-text='袙 锌褉芯褑械褋褋械 锌芯褋褌褍锌谢械薪懈褟|袨卸懈写邪械褌 锌芯褋褌褍锌谢械薪懈褟' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'";
+                if(row.ioStatus === 'Y'){html += " checked ";}
+                html += ">";
+                return html;
+            }}
+        ,{field: 'modiUser$', align: 'center',title: '袪械写邪泻褌懈褉芯胁邪谢', hide:true}
+        ,{field: 'modiTime$', align: 'center',title: '袙褉械屑褟 褉械写邪泻褌懈褉芯胁邪薪懈褟', hide:true})
+    return cols;
+}
+
+layui.config({
+    base: baseUrl + "/static/layui/lay/modules/"
+}).use(['table','laydate', 'form', 'tableMerge'], function(){
     var table = layui.table;
     var $ = layui.jquery;
     var layer = layui.layer;
     var layDate = layui.laydate;
     var form = layui.form;
+    var tableMerge = layui.tableMerge;
 
     // 鏁版嵁娓叉煋
     tableIns = table.render({
@@ -17,27 +41,7 @@
         even: true,
         toolbar: '#toolbar',
         cellMinWidth: 50,
-        cols: [[
-            // {type: 'checkbox'}
-//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
-//             ,{field: 'id', align: 'center',title: '缂栧彿', sort: true}
-            {field: 'barcode', align: 'center',title: '鎵樼洏鐮�'}
-            ,{field: 'matnr', align: 'center',title: '鐗╂枡缂栫爜'}
-            ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
-            ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
-            ,{field: 'unit', align: 'center',title: '鍗曚綅'}
-            ,{field: 'status', align: 'center',title: '鐘舵��', templet:function(row){
-                    var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='寰呭叆搴搢宸插惎鍔�' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'";
-                    if(row.status !== 'Y'){html += " checked ";}
-                    html += ">";
-                    return html;
-                }}
-            ,{field: 'memo', align: 'center',title: '澶囨敞',hide: true}
-            ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', hide: true}
-            ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
-
-            // ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150}
-        ]],
+        cols: [getCol()],
         request: {
             pageName: 'curr',
             pageSize: 'limit'
@@ -54,6 +58,7 @@
             statusCode: 200
         },
         done: function(res, curr, count) {
+            // tableMerge.render(this);
             if (res.code === 403) {
                 top.location.href = baseUrl+"/";
             }
@@ -97,10 +102,37 @@
     table.on('toolbar(waitPakin)', function (obj) {
         var checkStatus = table.checkStatus(obj.config.id);
         switch(obj.event) {
+            case 'addWrk':
+                if (checkStatus.data.length === 0){
+                    layer.msg('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹�', {icon: 2});
+                } else {
+                    layer.confirm('纭畾鐢熸垚宸ヤ綔妗d换鍔″悧', function(){
+                        $.ajax({
+                            url: baseUrl+"/create/waitPain/wrkMast/start",
+                            headers: {'token': localStorage.getItem('token')},
+                            data: JSON.stringify(checkStatus.data),
+                            contentType:'application/json;charset=UTF-8',
+                            method: 'POST',
+                            traditional:true,
+                            success: function (res) {
+                                if (res.code === 200){
+                                    layer.closeAll();
+                                    tableReload(false);
+                                    layer.msg(res.msg, {icon: 1})
+                                } else if (res.code === 403){
+                                    top.location.href = baseUrl+"/";
+                                } else {
+                                    layer.msg(res.msg, {icon: 2})
+                                }
+                            }
+                        })
+                    });
+                }
+                break;
             case 'addData':
                 layer.open({
                     type: 2,
-                    title: '鏂板',
+                    title: '袛芯斜邪胁懈褌褜',
                     maxmin: true,
                     area: [top.detailWidth, top.detailHeight],
                     content: 'waitPakin_detail.html',
@@ -114,9 +146,9 @@
             case 'deleteData':
                 var data = checkStatus.data;
                 if (data.length === 0){
-                    layer.msg('璇烽�夋嫨鏁版嵁');
+                    layer.msg('袩芯卸邪谢褍泄褋褌邪, 胁褘斜械褉懈褌械 写邪薪薪褘械');
                 } else {
-                    layer.confirm('纭畾鍒犻櫎'+(data.length===1?'姝�':data.length)+'鏉℃暟鎹悧', function(){
+                    layer.confirm(data.length === 1 ? '袩芯写褌胁械褉写懈褌褜 褍写邪谢械薪懈械?' : '校写邪谢懈褌褜 ' + data.length + ' 蟹邪锌懈褋懈?', function () {
                         $.ajax({
                             url: baseUrl+"/waitPakin/delete/auth",
                             headers: {'token': localStorage.getItem('token')},
@@ -138,7 +170,7 @@
                 }
                 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) {
@@ -186,7 +218,7 @@
             case 'detail':
                 layer.open({
                     type: 2,
-                    title: '璇︽儏',
+                    title: '袛械褌邪谢懈',
                     maxmin: true,
                     area: [top.detailWidth, top.detailHeight],
                     shadeClose: true,
@@ -205,7 +237,7 @@
             case 'edit':
                 layer.open({
                     type: 2,
-                    title: '淇敼',
+                    title: '袠蟹屑械薪懈褌褜',
                     maxmin: true,
                     area: [top.detailWidth, top.detailHeight],
                     content: 'waitPakin_detail.html',
@@ -223,7 +255,7 @@
             case 'modiUser':
                 var param = top.reObject(data).modiUser;
                 if (param === undefined) {
-                    layer.msg("鏃犳暟鎹�");
+                    layer.msg("袧械褌 写邪薪薪褘褏");
                 } else {
                    layer.open({
                        type: 2,
@@ -259,7 +291,7 @@
             case 'appeUser':
                 var param = top.reObject(data).appeUser;
                 if (param === undefined) {
-                    layer.msg("鏃犳暟鎹�");
+                    layer.msg("袧械褌 写邪薪薪褘褏");
                 } else {
                    layer.open({
                        type: 2,
@@ -384,7 +416,11 @@
         elem: '#appeTime\\$',
         type: 'datetime'
     });
-
+    layDate.render({
+        elem: '.layui-laydate-range'
+        ,type: 'datetime'
+        ,range: true
+    });
 
 });
 

--
Gitblit v1.9.1