瀏覽代碼

fix #19407 优化资源

chengc 1 周之前
父節點
當前提交
df55cf191b

文件差異過大導致無法顯示
+ 708 - 858
assets/i18n/en.json


+ 7 - 7
assets/i18n/zh_TW.json

@@ -151,7 +151,7 @@
     "waitHandle": "待處理",
     "approvalComment": "審批意见(選填)",
     "submitTimeText": "提交時間",
-    "submitTime": "submitTime",
+    "submitTime": "提交時間",
     "downloadAttachment": "附件下载",
     "noMoreData": "没有更多了",
     "expandRemaining": "展開剩餘 ${count} 項",
@@ -289,7 +289,7 @@
     "validUntil": "有效期至",
     "selectExpiryDate": "選擇過期日期",
     "relatedContractNo": "關聯合同號",
-    "referenceNo": "referenceNo",
+    "referenceNo": "參考號",
     "relatedControl": "關聯管控",
     "availableBudget": "可用預算餘額",
     "overBudget": "超出預算{amount}",
@@ -464,9 +464,9 @@
     "archiveDate": "歸檔日期",
     "archiver": "歸檔人",
     "financeDept": "财務部",
-    "isInvoiceVerified": "isInvoiceVerified",
-    "isTaxIdMatched": "isTaxIdMatched",
-    "isCategoryCompliant": "isCategoryCompliant",
+    "isInvoiceVerified": "發票已查驗",
+    "isTaxIdMatched": "稅號相符",
+    "isCategoryCompliant": "類別合規",
     "paymentStatus": "付款狀態",
     "confirmPaymentAndArchive": "確認打款并歸檔",
     "confirmPaymentAndArchiveTip": "確認将本笔報销打款并歸檔?操作后不可撤销。",
@@ -531,7 +531,7 @@
     "tripPreview": "行程預覽",
     "tripRoute": "行程路線",
     "mapPreview": "地圖路線預覽",
-    "snMapPickerComingSoon": "snMapPickerComingSoon",
+    "snMapPickerComingSoon": "地圖選點即將開放",
     "mapPickerComingSoon": "地圖選点即将開放",
     "gpsLocating": "GPS定位中…",
     "gpsLocatingWait": "GPS定位中,請稍后",
@@ -817,4 +817,4 @@
     "headerAttachments": "表頭附件",
     "detailLine": "明細行"
   }
-}
+}

+ 1 - 1
lib/features/expense/expense_create_page.dart

@@ -1161,7 +1161,7 @@ class _ExpenseCreatePageState extends ConsumerState<ExpenseCreatePage> {
           if (mounted) {
             LoadingDialog.hide(context);
             TDToast.showSuccess(
-              l10n.get('submittedAwaitingApproval'),
+              l10n.get('submitSuccess'),
               context: context,
             );
             GoRouter.of(context).go('/expense/list');

+ 4 - 2
lib/features/expense/expense_edit_page.dart

@@ -1116,10 +1116,12 @@ class _ExpenseEditPageState extends ConsumerState<ExpenseEditPage> {
           if (mounted) {
             LoadingDialog.hide(context);
             TDToast.showSuccess(
-              l10n.get('submittedAwaitingApproval'),
+              l10n.get('submitSuccess'),
               context: context,
             );
-            GoRouter.of(context).pop(true);
+            WidgetsBinding.instance.addPostFrameCallback((_) {
+              if (mounted) GoRouter.of(context).pop(true);
+            });
           }
         } catch (e) {
           if (mounted) {

+ 1 - 1
lib/features/expense_apply/expense_apply_create_page.dart

@@ -1046,7 +1046,7 @@ class _ExpenseApplyCreatePageState
           if (mounted) {
             LoadingDialog.hide(context);
             TDToast.showSuccess(
-              l10n.get('submittedAwaitingApproval'),
+              l10n.get('submitSuccess'),
               context: context,
             );
             GoRouter.of(context).go('/expense-apply/list');

+ 4 - 2
lib/features/expense_apply/expense_apply_edit_page.dart

@@ -813,10 +813,12 @@ class _ExpenseApplyEditPageState extends ConsumerState<ExpenseApplyEditPage> {
           if (mounted) {
             LoadingDialog.hide(context);
             TDToast.showSuccess(
-              l10n.get('submittedAwaitingApproval'),
+              l10n.get('submitSuccess'),
               context: context,
             );
-            GoRouter.of(context).pop(true);
+            WidgetsBinding.instance.addPostFrameCallback((_) {
+              if (mounted) GoRouter.of(context).pop(true);
+            });
           }
         } catch (e) {
           if (mounted) {

部分文件因文件數量過多而無法顯示