From bfdb74718bf9a5442fd349207b9684c3f4cd6aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Mon, 23 Dec 2024 17:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/components/header.vue | 25 ++-- src/config/rem.js | 3 +- src/i18n/i18n.js | 46 +++++++ src/i18n/langs/en.js | 23 ++++ src/i18n/langs/es.js | 23 ++++ src/i18n/langs/zh.js | 23 ++++ src/main.js | 4 + src/pages/modules/index2.vue | 212 ++++++++++++++++++++------------- src/pages/modules/style.stylus | 70 +++++------ src/router/index.js | 2 +- src/vuex/modules/com.js | 4 +- yarn.lock | 5 + 13 files changed, 306 insertions(+), 135 deletions(-) create mode 100644 src/i18n/i18n.js create mode 100644 src/i18n/langs/en.js create mode 100644 src/i18n/langs/es.js create mode 100644 src/i18n/langs/zh.js diff --git a/package.json b/package.json index 1e77821..7650e0c 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "stylus": "^0.54.5", "stylus-loader": "^3.0.2", "vue": "^2.5.2", + "vue-i18n": "8.2.1", "vue-particles": "^1.0.9", "vue-router": "^3.0.1", "vue-seamless-scroll": "^1.1.16", diff --git a/src/components/header.vue b/src/components/header.vue index 2975c30..eb4ac1d 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -2,7 +2,7 @@
{{ title2 }}
料箱库监控
+{{$t('page.lxkjk')}}
+货位使用
+{{$t('page.hwsy')}}
+{{ lx_used.percent }}
总货位数
-{{ lx_used.total }}个
+{{$t('page.lxtotal')}}
+ +{{ lx_used.total }}{{$t('page.unit')}}
已用货位
-{{ lx_used.used }}个
+{{$t('page.lxused')}}
+ +{{ lx_used.used }}{{$t('page.unit')}}
空余货位
-{{ lx_used.free }}个
+{{$t('page.lxfree')}}
+ +{{ lx_used.free }}{{$t('page.unit')}}
今日出入库
+{{$t('page.jrcrk')}}
+总数量:{{ lx_task[0].total }}
+{{$t('page.total')}}:{{ lx_task[0].total }}
+{{$t('page.box')}}:{{ lx_task[0].box }}{{$t('page.unit1')}}
+{{$t('page.time')}}:{{ lx_task[0].time }}
+总数量:{{ lx_task[1].total }}
+{{$t('page.total')}}:{{ lx_task[1].total }}
+{{$t('page.box')}}:{{ lx_task[1].box }}{{$t('page.unit1')}}
+{{$t('page.time')}}:{{ lx_task[1].time }}
+实时库存分析
+{{ $t('page.sskcfx') }}
+出入库趋势
+{{$t('page.crkqs')}}
+托盘库监控
+{{$t('page.tpkjk')}}
+货位使用
+{{$t('page.hwsy')}}
+{{ tp_used.percent }}
总货位数
-{{ tp_used.total }}个
+{{$t('page.lxtotal')}}
+ +{{ tp_used.total }}{{$t('page.unit')}}
已用货位
-{{ tp_used.used }}个
+{{$t('page.lxused')}}
+ +{{ tp_used.used }}{{$t('page.unit')}}
空余货位
-{{ tp_used.free }}个
+{{$t('page.lxfree')}}
+ +{{ tp_used.free }}{{$t('page.unit')}}
今日出入库
+{{$t('page.jrcrk')}}
+总数量:{{ tp_task[0].total }}
+{{$t('page.total')}}:{{ tp_task[0].total }}
+{{$t('page.box')}}:{{ tp_task[0].box }}{{$t('page.unit1')}}
+{{$t('page.time')}}:{{ tp_task[0].time }}
+总数量:{{ tp_task[1].total }}
+{{$t('page.total')}}:{{ tp_task[1].total }}
+{{$t('page.box')}}:{{ tp_task[1].box }}{{$t('page.unit1')}}
+{{$t('page.time')}}:{{ tp_task[1].time }}
+实时库存分析
+{{ $t('page.sskcfx') }}
+出入库趋势
+{{$t('page.crkqs')}}
+