From 8e943b7104561c3b14cf223016698709c5ade4b5 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期二, 03 二月 2026 15:37:26 +0800
Subject: [PATCH] #pda料箱组托和换码

---
 src/main/webapp/views/pda/stockOut.html |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/src/main/webapp/views/pda/stockOut.html b/src/main/webapp/views/pda/stockOut.html
index 0882979..a1bb41d 100644
--- a/src/main/webapp/views/pda/stockOut.html
+++ b/src/main/webapp/views/pda/stockOut.html
@@ -3,7 +3,7 @@
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, target-densitydpi=high-dpi, initial-scale=1.0, user-scalable=no"/>
-    <title>鍑哄簱</title>
+    <title>Outbound</title>
     <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="../../static/css/pda.css" media="all">
     <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
@@ -11,6 +11,7 @@
     <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
     <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
     <script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>
+    <script type="text/javascript" src="../../static/i18n/i18n.js"></script>
     <style>
         .layui-input-block {
             margin-left: 60px;
@@ -24,23 +25,23 @@
 <!-- 澶撮儴 -->
 <header class="layui-form">
     <div class="layui-input-inline">
-        <label class="layui-form-label">搴撲綅</label>
+        <label class="layui-form-label" data-i18n="pda_location">搴撲綅</label>
         <div class="layui-input-block">
             <input class="layui-input" type="number" id="locNo" onkeyup="findByLocNo(this)" autocomplete="off">
         </div>
 
     </div>
     <div class="layui-input-inline">
-        <label class="layui-form-label">鐗╂枡</label>
+        <label class="layui-form-label" data-i18n="pda_material">鐗╂枡</label>
         <div class="layui-input-block">
             <input class="layui-input" type="text" id="matNo" onkeyup="findByMatNo(this)" autocomplete="off">
         </div>
     </div>
     <div class="layui-input-inline">
-        <label class="layui-form-label">鍑哄簱鍙�</label>
+        <label class="layui-form-label" data-i18n="pda_outbound_station">鍑哄簱鍙�</label>
         <div class="layui-input-inline" style="margin-left: 5px;width: 120px">
             <select id="staNoSelect">
-                <option value="">璇烽�夋嫨</option>
+                <option value="" data-i18n="pda_please_select">璇烽�夋嫨</option>
             </select>
         </div>
     </div>
@@ -52,8 +53,8 @@
 <!-- 灏鹃儴 -->
 <footer>
     <div class="layui-btn-container">
-        <button id="reset" type="button" class="layui-btn layui-btn-primary" onclick="reset()">閲嶇疆</button>
-        <button id="pakOut" type="button" class="layui-btn layui-btn-normal" onclick="pakOut()" style="margin-left: 20px">鍑哄簱</button>
+        <button id="reset" type="button" class="layui-btn layui-btn-primary" onclick="reset()" data-i18n="pda_reset">閲嶇疆</button>
+        <button id="pakOut" type="button" class="layui-btn layui-btn-normal" onclick="pakOut()" style="margin-left: 20px" data-i18n="pda_outbound">鍑哄簱</button>
         <span id="tips"></span>
     </div>
 </footer>
@@ -77,7 +78,7 @@
     }
 
     /**
-     * 鏍规嵁鐗╂枡鍙锋煡鎵惧簱瀛樻槑缁�
+     * 鏍规嵁鍟嗗搧缂栧彿鏌ユ壘搴撳瓨鏄庣粏
      */
     function findByMatNo(el){
         if (isEmpty(el.value)) {
@@ -129,10 +130,10 @@
             cellMinWidth: 50,
             cols: [[
                 {type: 'checkbox', fixed: 'left', width:30},
-                {field: 'count', align: 'center', title: '鏁伴噺', event: 'detail', style:'color: blue', width:50},
-                {field: 'matnr', align: 'center', title: '缂栫爜', event: 'detail'},
-                {field: 'maktx', align: 'center', title: '鍚嶇О', event: 'detail'},
-                {field: 'locNo', align: 'center', title: '搴撲綅', event: 'detail'}
+                {field: 'count', align: 'center', title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_quantity') : '鏁伴噺', event: 'detail', style:'color: blue', width:50},
+                {field: 'matnr', align: 'center', title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_code') : '缂栫爜', event: 'detail'},
+                {field: 'maktx', align: 'center', title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_name') : '鍚嶇О', event: 'detail'},
+                {field: 'locNo', align: 'center', title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_location') : '搴撲綅', event: 'detail'}
             ]],
             done: function (res, curr, count) {
             }
@@ -146,7 +147,7 @@
                 case 'detail':
                     layer.open({
                         type: 2,
-                        title: '搴撳瓨鏄庣粏',
+                        title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_stock_detail') : '搴撳瓨鏄庣粏',
                         shade: [0.3,'#000'],
                         area: ['90%', '70%'],
                         content: 'locDetlIframe.html',
@@ -196,12 +197,12 @@
     function pakOut() {
         var tableData = layui.table.checkStatus('tableIdx').data;
         if (tableData.length === 0) {
-            tips("璇烽�夋嫨鐗╂枡", true);
+            tips("please_select_material", true);
             return;
         }
         var site = $('#staNoSelect').val();
         if (null === site || undefined === site || site === "") {
-            tips("璇烽�夋嫨鍑哄簱鍙�", true);
+            tips("please_select_outbound_station", true);
             return;
         }
         $.ajax({
@@ -282,7 +283,7 @@
 </script>
 <script type="text/template" id="takeSiteSelectTemplate">
     {{#each data}}
-    <option value="{{this}}">{{this}}</option>
+    <option value="{{siteId}}">{{desc}}</option>
     {{/each}}
 </script>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1