From 1fa4f12a4b218412efeb9f72d4d3ee9e577351b0 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期二, 04 十一月 2025 08:27:24 +0800
Subject: [PATCH] 修改仓储出库方法,添加i18n可配置文件
---
UI-Project/src/views/GlassStorage/rawhistory.vue | 36 ++++++++++++++++++++----------------
1 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/UI-Project/src/views/GlassStorage/rawhistory.vue b/UI-Project/src/views/GlassStorage/rawhistory.vue
index 3d680f6..c2eb24a 100644
--- a/UI-Project/src/views/GlassStorage/rawhistory.vue
+++ b/UI-Project/src/views/GlassStorage/rawhistory.vue
@@ -301,7 +301,7 @@
}
const shortcuts = [
{
- text: '鏈�杩戜竴鍛�',
+ text: t('timeRange.week'),
value: () => {
const backendTime = new Date(getglobalDate)
const oneWeekAgo = new Date(getglobalDate)
@@ -312,7 +312,7 @@
},
},
{
- text: '鏈�杩戜竴涓湀',
+ text: t('timeRange.month'),
value: () => {
const backendTime = new Date(getglobalDate)
const oneWeekAgo = new Date(getglobalDate)
@@ -323,7 +323,7 @@
},
},
{
- text: '鏈�杩戜笁涓湀',
+ text: t('timeRange.threeMonths'),
value: () => {
const backendTime = new Date(getglobalDate)
const oneWeekAgo = new Date(getglobalDate)
@@ -368,27 +368,31 @@
case 4:
return t('sorter.advancerequests');//杩涚墖璇锋眰
case 5:
- return t('sorter.releaserequest');//鍑虹墖璇锋眰
+ return t('sorter.warehouseReturntasks');//鍥炲簱璇锋眰
}
}
function getStatusType2(taskState) {
switch (taskState) {
- case 0:
- return 'info';
- case 2:
- return 'warning';
- case 1:
- return 'success';
+ case 0:
+ return 'info';
+ case 1:
+ return 'warning';
+ case 2:
+ return 'success';
+ case 3:
+ return 'danger';
}
}
function getStatusText2(taskState) {
switch (taskState) {
- case 0:
- return t('film.built');//鏂板缓
- case 2:
- return t('film.fail');//澶辫触
- case 1:
- return t('film.finish');//瀹屾垚
+ case 0:
+ return t('film.built');//鏂板缓
+ case 1:
+ return t('film.execution');//鎵ц涓�
+ case 2:
+ return t('film.finish');//瀹屾垚
+ case 3:
+ return t('film.fail');//澶辫触
}
}
onMounted(() => {
--
Gitblit v1.8.0