From d907a822a940c7ec0fb7de0ca845472bda52229b Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期二, 03 二月 2026 14:33:12 +0800
Subject: [PATCH] #pda料箱组托和换码
---
src/main/webapp/static/js/common.js | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index 5075c64..a9262ca 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -92,7 +92,7 @@
} else if (res.code === 403){
top.location.href = baseUrl+"/";
} else {
- layer.msg(res.msg)
+ layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2})
}
}
});
@@ -123,7 +123,7 @@
} else if (res.code === 403){
top.location.href = baseUrl+"/";
} else {
- layer.msg(res.msg);
+ layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2});
}
},
error: function (res, type) {
@@ -154,7 +154,7 @@
} else if (res.code === 403){
top.location.href = baseUrl+"/";
} else {
- layer.msg(res.msg);
+ layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2});
}
},
error: function (res, type) {
@@ -192,7 +192,7 @@
,{field: 'model', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('浠g爜') : '浠g爜', hide: true}
,{field: 'color', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('棰滆壊') : '棰滆壊', hide: true}
,{field: 'brand', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍝佺墝') : '鍝佺墝', hide: true}
- ,{field: 'unit', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚綅') : '鍗曚綅', hide: false}
+ ,{field: 'unit', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚綅') : '鍗曚綅', hide: true}
,{field: 'price', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚环') : '鍗曚环', hide: true}
,{field: 'sku', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('sku') : 'sku', hide: true}
,{field: 'units', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚綅閲�') : '鍗曚綅閲�', hide: true}
@@ -234,25 +234,27 @@
,{field: 'zpallet', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鎵樼洏鏉$爜') : '鎵樼洏鏉$爜', hide: false}
,{field: 'specs', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('瑙勬牸') : '瑙勬牸', hide: false}
- ,{field: 'model', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('浠g爜') : '浠g爜', hide: true}
- ,{field: 'color', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('棰滆壊') : '棰滆壊', hide: true}
+ ,{field: 'model', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('浠g爜') : '浠g爜', hide: false}
+ ,{field: 'color', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('棰滆壊') : '棰滆壊', hide: false}
,{field: 'brand', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍝佺墝') : '鍝佺墝', hide: true}
- ,{field: 'unit', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚綅') : '鍗曚綅', hide: false}
+ ,{field: 'unit', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚綅') : '鍗曚綅', hide: true}
,{field: 'price', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚环') : '鍗曚环', hide: true}
- ,{field: 'sku', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('sku') : 'sku', hide: true}
- ,{field: 'units', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚綅閲�') : '鍗曚綅閲�', hide: true}
- ,{field: 'barcode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鏉$爜') : '鏉$爜', hide: true}
+ ,{field: 'sku', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('sku') : 'sku', hide: false}
+ ,{field: 'units', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曚綅閲�') : '鍗曚綅閲�', hide: false}
+ ,{field: 'barcode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鏉$爜') : '鏉$爜', hide: false}
,{field: 'origin', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('浜у湴') : '浜у湴', hide: true}
- ,{field: 'manu', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍘傚') : '鍘傚', hide: true}
+ ,{field: 'manu', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍘傚') : '鍘傚', hide: false}
,{field: 'manuDate', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鐢熶骇鏃ユ湡') : '鐢熶骇鏃ユ湡', hide: true}
- ,{field: 'itemNum', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍝侀」鏁�') : '鍝侀」鏁�', hide: true}
+ ,{field: 'itemNum', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍝侀」鏁�') : '鍝侀」鏁�', hide: false}
,{field: 'safeQty', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('瀹夊叏搴撳瓨閲�') : '瀹夊叏搴撳瓨閲�', hide: true}
,{field: 'weight', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曠鍑�閲�') : '鍗曠鍑�閲�', hide: true}
,{field: 'length', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曠姣涢噸') : '鍗曠姣涢噸', hide: true}
- ,{field: 'volume', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曠浣撶Н') : '鍗曠浣撶Н', hide: true}
- ,{field: 'threeCode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('绠卞瓙灏哄') : '绠卞瓙灏哄', hide: true}
- ,{field: 'supp', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('渚涘簲鍟�') : '渚涘簲鍟�', hide: true}
- ,{field: 'suppCode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('渚涘簲鍟嗙紪鐮�') : '渚涘簲鍟嗙紪鐮�', hide: true}
+ ,{field: 'volume', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗曠浣撶Н') : '鍗曠浣撶Н', hide: false}
+ ,{field: 'threeCode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('绠卞瓙灏哄') : '绠卞瓙灏哄', hide: false}
+ ,{field: 'supp', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('渚涘簲鍟�') : '渚涘簲鍟�', hide: false}
+ ,{field: 'suppCode', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('渚涘簲鍟嗙紪鐮�') : '渚涘簲鍟嗙紪鐮�', hide: false}
+ ,{field: 'memo', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鍗栧鏍囩') : '鍗栧鏍囩', hide: false}
+ ,{field: 'mixNumber', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('缁勫悎鏍囩') : '缁勫悎鏍囩', hide: true}
,{field: 'beBatch$', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('鏄惁鎵规') : '鏄惁鎵规', hide: true}
,{field: 'deadTime', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('淇濊川鏈�') : '淇濊川鏈�', hide: true}
,{field: 'deadWarn', align: 'center',title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('棰勮澶╂暟') : '棰勮澶╂暟', hide: true}
--
Gitblit v1.9.1