@etsoo/appscript 1.2.25 → 1.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/lib/cjs/address/AddressRegion.js +2 -2
- package/lib/cjs/app/CoreApp.d.ts +2 -2
- package/lib/cjs/business/BusinessUtils.d.ts +8 -10
- package/lib/cjs/business/BusinessUtils.js +16 -15
- package/lib/cjs/business/EntityStatus.d.ts +12 -0
- package/lib/cjs/business/EntityStatus.js +12 -0
- package/lib/cjs/i18n/en-US.json +26 -0
- package/lib/cjs/i18n/zh-CN.json +26 -0
- package/lib/cjs/i18n/zh-HK.json +26 -0
- package/lib/mjs/address/AddressRegion.js +2 -2
- package/lib/mjs/app/CoreApp.d.ts +2 -2
- package/lib/mjs/business/BusinessUtils.d.ts +8 -10
- package/lib/mjs/business/BusinessUtils.js +16 -15
- package/lib/mjs/business/EntityStatus.d.ts +12 -0
- package/lib/mjs/business/EntityStatus.js +12 -0
- package/lib/mjs/i18n/en-US.json +26 -0
- package/lib/mjs/i18n/zh-CN.json +26 -0
- package/lib/mjs/i18n/zh-HK.json +26 -0
- package/package.json +9 -9
- package/src/address/AddressRegion.ts +2 -2
- package/src/app/CoreApp.ts +2 -2
- package/src/business/BusinessUtils.ts +15 -17
- package/src/business/EntityStatus.ts +15 -0
- package/src/i18n/en-US.json +26 -0
- package/src/i18n/zh-CN.json +26 -0
- package/src/i18n/zh-HK.json +26 -0
package/README.md
CHANGED
|
@@ -64,9 +64,12 @@ $ yarn add @etsoo/appscript
|
|
|
64
64
|
- BusinessTax - Business tax
|
|
65
65
|
|
|
66
66
|
#### BusinessUtils.ts ####
|
|
67
|
-
-
|
|
67
|
+
- getCurrencies - Get currency collection
|
|
68
|
+
- getEntityStatusLabel - Get entity status's label
|
|
69
|
+
- getEntityStatus - Get entity status collection
|
|
68
70
|
- getUnitLabel - Get product unit's label
|
|
69
71
|
- getUnits - Get all product units
|
|
72
|
+
- getRepeatOptions - Get all repeat options
|
|
70
73
|
|
|
71
74
|
#### ProductUnit.ts ####
|
|
72
75
|
- ProductUnit - Product units enum
|
|
@@ -55,7 +55,7 @@ AddressRegion.US = new AddressRegion('US', 'USA', '840', AddressContinent_1.Addr
|
|
|
55
55
|
* CA - Canada
|
|
56
56
|
* 加拿大
|
|
57
57
|
*/
|
|
58
|
-
AddressRegion.CA = new AddressRegion('CA', 'CAN', '124', AddressContinent_1.AddressContinent.NA, '011', '1', '
|
|
58
|
+
AddressRegion.CA = new AddressRegion('CA', 'CAN', '124', AddressContinent_1.AddressContinent.NA, '011', '1', 'CAD', ['en-CA', 'fr-CA']);
|
|
59
59
|
/**
|
|
60
60
|
* AU - Australia
|
|
61
61
|
* 澳大利亚
|
|
@@ -75,7 +75,7 @@ AddressRegion.GB = new AddressRegion('GB', 'GBR', '826', AddressContinent_1.Addr
|
|
|
75
75
|
* IE - Ireland
|
|
76
76
|
* 爱尔兰
|
|
77
77
|
*/
|
|
78
|
-
AddressRegion.IE = new AddressRegion('IE', 'IRL', '372', AddressContinent_1.AddressContinent.EU, '00', '353', '
|
|
78
|
+
AddressRegion.IE = new AddressRegion('IE', 'IRL', '372', AddressContinent_1.AddressContinent.EU, '00', '353', 'EUR', ['en-IE']);
|
|
79
79
|
/**
|
|
80
80
|
* DE - Germany
|
|
81
81
|
* 德国
|
package/lib/cjs/app/CoreApp.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ export interface ICoreApp<S extends IAppSettings, N, C extends NotificationCallP
|
|
|
239
239
|
*/
|
|
240
240
|
getEntityStatusLabel<D extends {
|
|
241
241
|
entityStatus?: number;
|
|
242
|
-
}>(data
|
|
242
|
+
}>(data?: D): string;
|
|
243
243
|
/**
|
|
244
244
|
* Get all regions
|
|
245
245
|
* @returns Regions
|
|
@@ -641,7 +641,7 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
|
|
|
641
641
|
*/
|
|
642
642
|
getEntityStatusLabel<D extends {
|
|
643
643
|
entityStatus?: number;
|
|
644
|
-
}>(data
|
|
644
|
+
}>(data?: D): string;
|
|
645
645
|
/**
|
|
646
646
|
* Get refresh token from response headers
|
|
647
647
|
* @param rawResponse Raw response from API call
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DataTypes } from '@etsoo/shared';
|
|
2
1
|
import { IdLabelDto } from '../dto/IdLabelDto';
|
|
3
2
|
import { ICultureGet } from '../state/Culture';
|
|
4
3
|
import { EntityStatus } from './EntityStatus';
|
|
@@ -8,23 +7,22 @@ import { ProductUnit } from './ProductUnit';
|
|
|
8
7
|
*/
|
|
9
8
|
export declare namespace BusinessUtils {
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param
|
|
13
|
-
* @param
|
|
14
|
-
* @returns
|
|
10
|
+
* Get currency collection
|
|
11
|
+
* @param currencyNames Names like CNY, USD
|
|
12
|
+
* @param func Label delegate
|
|
13
|
+
* @returns Collection
|
|
15
14
|
*/
|
|
16
|
-
function
|
|
15
|
+
function getCurrencies(currencyNames: string[], func: ICultureGet): IdLabelDto<string>[];
|
|
17
16
|
/**
|
|
18
|
-
* Get
|
|
19
|
-
* Please define the label
|
|
17
|
+
* Get entity status's label
|
|
18
|
+
* Please define the label with key 'statusNormal' for Normal status
|
|
20
19
|
* @param unit Unit
|
|
21
20
|
* @param func Label delegate
|
|
22
21
|
* @returns Label
|
|
23
22
|
*/
|
|
24
23
|
function getEntityStatusLabel(status: EntityStatus, func: ICultureGet): string;
|
|
25
24
|
/**
|
|
26
|
-
* Get
|
|
27
|
-
* Please define the label in culture with key 'unitPC' for ProductUnit.PC like that
|
|
25
|
+
* Get entity status collection
|
|
28
26
|
* @param unit Unit
|
|
29
27
|
* @param func Label delegate
|
|
30
28
|
* @returns Label
|
|
@@ -11,22 +11,24 @@ const ProductUnit_1 = require("./ProductUnit");
|
|
|
11
11
|
var BusinessUtils;
|
|
12
12
|
(function (BusinessUtils) {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @returns
|
|
14
|
+
* Get currency collection
|
|
15
|
+
* @param currencyNames Names like CNY, USD
|
|
16
|
+
* @param func Label delegate
|
|
17
|
+
* @returns Collection
|
|
18
18
|
*/
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
function getCurrencies(currencyNames, func) {
|
|
20
|
+
return currencyNames.map((name) => {
|
|
21
|
+
var _a;
|
|
22
|
+
return ({
|
|
23
|
+
id: name,
|
|
24
|
+
label: (_a = func(`currency${name}`)) !== null && _a !== void 0 ? _a : name
|
|
25
|
+
});
|
|
26
|
+
});
|
|
25
27
|
}
|
|
26
|
-
BusinessUtils.
|
|
28
|
+
BusinessUtils.getCurrencies = getCurrencies;
|
|
27
29
|
/**
|
|
28
|
-
* Get
|
|
29
|
-
* Please define the label
|
|
30
|
+
* Get entity status's label
|
|
31
|
+
* Please define the label with key 'statusNormal' for Normal status
|
|
30
32
|
* @param unit Unit
|
|
31
33
|
* @param func Label delegate
|
|
32
34
|
* @returns Label
|
|
@@ -38,8 +40,7 @@ var BusinessUtils;
|
|
|
38
40
|
}
|
|
39
41
|
BusinessUtils.getEntityStatusLabel = getEntityStatusLabel;
|
|
40
42
|
/**
|
|
41
|
-
* Get
|
|
42
|
-
* Please define the label in culture with key 'unitPC' for ProductUnit.PC like that
|
|
43
|
+
* Get entity status collection
|
|
43
44
|
* @param unit Unit
|
|
44
45
|
* @param func Label delegate
|
|
45
46
|
* @returns Label
|
|
@@ -12,10 +12,22 @@ export declare enum EntityStatus {
|
|
|
12
12
|
* Flaged
|
|
13
13
|
*/
|
|
14
14
|
Flaged = 9,
|
|
15
|
+
/**
|
|
16
|
+
* Approved
|
|
17
|
+
*/
|
|
18
|
+
Approved = 100,
|
|
19
|
+
/**
|
|
20
|
+
* Audited
|
|
21
|
+
*/
|
|
22
|
+
Audited = 111,
|
|
15
23
|
/**
|
|
16
24
|
* Inactivated
|
|
17
25
|
*/
|
|
18
26
|
Inactivated = 200,
|
|
27
|
+
/**
|
|
28
|
+
* Completed
|
|
29
|
+
*/
|
|
30
|
+
Completed = 250,
|
|
19
31
|
/**
|
|
20
32
|
* Archived
|
|
21
33
|
*/
|
|
@@ -16,10 +16,22 @@ var EntityStatus;
|
|
|
16
16
|
* Flaged
|
|
17
17
|
*/
|
|
18
18
|
EntityStatus[EntityStatus["Flaged"] = 9] = "Flaged";
|
|
19
|
+
/**
|
|
20
|
+
* Approved
|
|
21
|
+
*/
|
|
22
|
+
EntityStatus[EntityStatus["Approved"] = 100] = "Approved";
|
|
23
|
+
/**
|
|
24
|
+
* Audited
|
|
25
|
+
*/
|
|
26
|
+
EntityStatus[EntityStatus["Audited"] = 111] = "Audited";
|
|
19
27
|
/**
|
|
20
28
|
* Inactivated
|
|
21
29
|
*/
|
|
22
30
|
EntityStatus[EntityStatus["Inactivated"] = 200] = "Inactivated";
|
|
31
|
+
/**
|
|
32
|
+
* Completed
|
|
33
|
+
*/
|
|
34
|
+
EntityStatus[EntityStatus["Completed"] = 250] = "Completed";
|
|
23
35
|
/**
|
|
24
36
|
* Archived
|
|
25
37
|
*/
|
package/lib/cjs/i18n/en-US.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "Accountant",
|
|
2
3
|
"actions": "Actions",
|
|
3
4
|
"add": "Add",
|
|
5
|
+
"authorizer": "Authorizer",
|
|
6
|
+
"applicant": "Applicant",
|
|
7
|
+
"approve": "Approve it",
|
|
4
8
|
"back": "Back",
|
|
5
9
|
"cancel": "Cancel",
|
|
6
10
|
"clear": "Clear",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "Copy",
|
|
12
16
|
"creation": "Creation",
|
|
13
17
|
"currency": "Currency",
|
|
18
|
+
"currencyAUD": "Australia Dollar $",
|
|
19
|
+
"currencyCAD": "Canada Dollar $",
|
|
20
|
+
"currencyCNY": "Renminbi(RMB) ¥",
|
|
21
|
+
"currencyEUR": "Euro €",
|
|
22
|
+
"currencyGBP": "British Pound £",
|
|
23
|
+
"currencyHKD": "Hong Kong Dollar $",
|
|
24
|
+
"currencyJPY": "Japan Yen ¥",
|
|
25
|
+
"currencyNZD": "New Zealand Dollar $",
|
|
26
|
+
"currencySGD": "Singapore Dollar $",
|
|
27
|
+
"currencyUSD": "U.S. Dollar $",
|
|
14
28
|
"delete": "Delete",
|
|
15
29
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
16
30
|
"description": "Description",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "SmartERP",
|
|
68
82
|
"sortTip": "Drag and drop items to sort",
|
|
69
83
|
"status": "Status",
|
|
84
|
+
"statusApproved": "Approved",
|
|
70
85
|
"statusArchived": "Archived",
|
|
86
|
+
"statusAudited": "Audited",
|
|
87
|
+
"statusCompleted": "Completed",
|
|
71
88
|
"statusDeleted": "Deleted",
|
|
72
89
|
"statusFlaged": "Flaged",
|
|
73
90
|
"statusNormal": "Normla",
|
|
74
91
|
"statusInactivated": "Inactivated",
|
|
75
92
|
"submit": "Submit",
|
|
76
93
|
"success": "Success",
|
|
94
|
+
"taxId": "Tax ID number",
|
|
95
|
+
"taxIdHelp": "Used for real-name authentication and invoicing",
|
|
96
|
+
"taxCABN": "Business number",
|
|
97
|
+
"taxCNUSCC": "Unified social credit code",
|
|
98
|
+
"taxHKBRN": "Business registration number",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "Employer identification number",
|
|
77
101
|
"timeDifferenceInvalid": "The time difference between the device and the server is {0}, which exceeds the limit of {1} seconds. Please adjust the device time. If it is abnormal, please inform the administrator",
|
|
78
102
|
"tokenExpiry": "Your session is about to expire. Click the Cancel button to continue",
|
|
79
103
|
"yes": "Yes",
|
|
@@ -94,6 +118,8 @@
|
|
|
94
118
|
"unitGRAM": "g",
|
|
95
119
|
"unitJIN": "½Kg",
|
|
96
120
|
"unitKILOGRAM": "Kg",
|
|
121
|
+
"user": "User",
|
|
122
|
+
"view": "View",
|
|
97
123
|
"warning": "Warning",
|
|
98
124
|
"welcome": "{0}, welcome!"
|
|
99
125
|
}
|
package/lib/cjs/i18n/zh-CN.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "会计",
|
|
2
3
|
"actions": "操作",
|
|
3
4
|
"add": "添加",
|
|
5
|
+
"authorizer": "授权人",
|
|
6
|
+
"applicant": "申请人",
|
|
7
|
+
"approve": "批准",
|
|
4
8
|
"back": "后退",
|
|
5
9
|
"cancel": "取消",
|
|
6
10
|
"clear": "清除",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "复制",
|
|
12
16
|
"creation": "登记时间",
|
|
13
17
|
"currency": "币种",
|
|
18
|
+
"currencyAUD": "澳元$",
|
|
19
|
+
"currencyCAD": "加元$",
|
|
20
|
+
"currencyCNY": "人民币¥",
|
|
21
|
+
"currencyEUR": "欧元€",
|
|
22
|
+
"currencyGBP": "英镑£",
|
|
23
|
+
"currencyHKD": "港币$",
|
|
24
|
+
"currencyJPY": "日元¥",
|
|
25
|
+
"currencyNZD": "纽币$",
|
|
26
|
+
"currencySGD": "新币$",
|
|
27
|
+
"currencyUSD": "美元$",
|
|
14
28
|
"delete": "删除",
|
|
15
29
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
16
30
|
"description": "描述",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "司友云ERP",
|
|
68
82
|
"sortTip": "拖拽项目进行排序",
|
|
69
83
|
"status": "状态",
|
|
84
|
+
"statusApproved": "已批准",
|
|
70
85
|
"statusArchived": "已归档",
|
|
86
|
+
"statusAudited": "已审核",
|
|
87
|
+
"statusCompleted": "已完成",
|
|
71
88
|
"statusDeleted": "已删除",
|
|
72
89
|
"statusFlaged": "已标记",
|
|
73
90
|
"statusNormal": "正常",
|
|
74
91
|
"statusInactivated": "已停用",
|
|
75
92
|
"submit": "提交",
|
|
76
93
|
"success": "成功",
|
|
94
|
+
"taxId": "税号",
|
|
95
|
+
"taxIdHelp": "用于实名认证和开具发票",
|
|
96
|
+
"taxCABN": "营业编号(BN)",
|
|
97
|
+
"taxCNUSCC": "统一信用代码",
|
|
98
|
+
"taxHKBRN": "商业登记号码(BRN)",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "雇主识别号码(EIN)",
|
|
77
101
|
"timeDifferenceInvalid": "设备时间和服务器时间差为{0},超过{1}秒的限制,请调整设备时间,如果异常请告知管理员",
|
|
78
102
|
"tokenExpiry": "您的会话即将过期。点击 取消 按钮继续使用",
|
|
79
103
|
"yes": "是",
|
|
@@ -95,6 +119,8 @@
|
|
|
95
119
|
"unitJIN": "斤",
|
|
96
120
|
"unitKILOGRAM": "公斤",
|
|
97
121
|
"unitTON": "吨",
|
|
122
|
+
"user": "用户",
|
|
123
|
+
"view": "查看",
|
|
98
124
|
"warning": "警告",
|
|
99
125
|
"welcome": "{0}, 欢迎光临!"
|
|
100
126
|
}
|
package/lib/cjs/i18n/zh-HK.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "會計",
|
|
2
3
|
"actions": "操作",
|
|
3
4
|
"add": "添加",
|
|
5
|
+
"authorizer": "授權人",
|
|
6
|
+
"applicant": "申請人",
|
|
7
|
+
"approve": "批准",
|
|
4
8
|
"back": "後退",
|
|
5
9
|
"cancel": "取消",
|
|
6
10
|
"clear": "清除",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "複製",
|
|
12
16
|
"creation": "登記時間",
|
|
13
17
|
"currency": "幣種",
|
|
18
|
+
"currencyAUD": "澳元$",
|
|
19
|
+
"currencyCAD": "加元$",
|
|
20
|
+
"currencyCNY": "人民幣¥",
|
|
21
|
+
"currencyEUR": "歐元€",
|
|
22
|
+
"currencyGBP": "英鎊£",
|
|
23
|
+
"currencyHKD": "港幣$",
|
|
24
|
+
"currencyJPY": "日元¥",
|
|
25
|
+
"currencyNZD": "紐幣$",
|
|
26
|
+
"currencySGD": "新幣$",
|
|
27
|
+
"currencyUSD": "美元$",
|
|
14
28
|
"delete": "刪除",
|
|
15
29
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
|
16
30
|
"description": "描述",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "司友雲ERP",
|
|
68
82
|
"sortTip": "拖拽項目進行排序",
|
|
69
83
|
"status": "狀態",
|
|
84
|
+
"statusApproved": "已批准",
|
|
70
85
|
"statusArchived": "已歸檔",
|
|
86
|
+
"statusAudited": "已審核",
|
|
87
|
+
"statusCompleted": "已完成",
|
|
71
88
|
"statusDeleted": "已刪除",
|
|
72
89
|
"statusFlaged": "已標記",
|
|
73
90
|
"statusNormal": "正常",
|
|
74
91
|
"statusInactivated": "已停用",
|
|
75
92
|
"submit": "提交",
|
|
76
93
|
"success": "成功",
|
|
94
|
+
"taxId": "稅號",
|
|
95
|
+
"taxIdHelp": "用於實名認證和開具發票",
|
|
96
|
+
"taxCABN": "營業編號(BN)",
|
|
97
|
+
"taxCNUSCC": "統一信用代碼",
|
|
98
|
+
"taxHKBRN": "商業登記號碼(BRN)",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "雇主識別號碼(EIN)",
|
|
77
101
|
"timeDifferenceInvalid": "設備時間和服務器時間差為{0},超過{1}秒的限制,請調整設備時間,如果異常請告知管理員",
|
|
78
102
|
"tokenExpiry": "您的會話即將過期。點擊 取消 按鈕繼續使用",
|
|
79
103
|
"yes": "是",
|
|
@@ -94,6 +118,8 @@
|
|
|
94
118
|
"unitGRAM": "克",
|
|
95
119
|
"unitJIN": "斤",
|
|
96
120
|
"unitKILOGRAM": "公斤",
|
|
121
|
+
"user": "用戶",
|
|
122
|
+
"view": "查看",
|
|
97
123
|
"warning": "警告",
|
|
98
124
|
"welcome": "{0}, 歡迎光臨!"
|
|
99
125
|
}
|
|
@@ -51,7 +51,7 @@ AddressRegion.US = new AddressRegion('US', 'USA', '840', AddressContinent.NA, '0
|
|
|
51
51
|
* CA - Canada
|
|
52
52
|
* 加拿大
|
|
53
53
|
*/
|
|
54
|
-
AddressRegion.CA = new AddressRegion('CA', 'CAN', '124', AddressContinent.NA, '011', '1', '
|
|
54
|
+
AddressRegion.CA = new AddressRegion('CA', 'CAN', '124', AddressContinent.NA, '011', '1', 'CAD', ['en-CA', 'fr-CA']);
|
|
55
55
|
/**
|
|
56
56
|
* AU - Australia
|
|
57
57
|
* 澳大利亚
|
|
@@ -71,7 +71,7 @@ AddressRegion.GB = new AddressRegion('GB', 'GBR', '826', AddressContinent.EU, '0
|
|
|
71
71
|
* IE - Ireland
|
|
72
72
|
* 爱尔兰
|
|
73
73
|
*/
|
|
74
|
-
AddressRegion.IE = new AddressRegion('IE', 'IRL', '372', AddressContinent.EU, '00', '353', '
|
|
74
|
+
AddressRegion.IE = new AddressRegion('IE', 'IRL', '372', AddressContinent.EU, '00', '353', 'EUR', ['en-IE']);
|
|
75
75
|
/**
|
|
76
76
|
* DE - Germany
|
|
77
77
|
* 德国
|
package/lib/mjs/app/CoreApp.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ export interface ICoreApp<S extends IAppSettings, N, C extends NotificationCallP
|
|
|
239
239
|
*/
|
|
240
240
|
getEntityStatusLabel<D extends {
|
|
241
241
|
entityStatus?: number;
|
|
242
|
-
}>(data
|
|
242
|
+
}>(data?: D): string;
|
|
243
243
|
/**
|
|
244
244
|
* Get all regions
|
|
245
245
|
* @returns Regions
|
|
@@ -641,7 +641,7 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
|
|
|
641
641
|
*/
|
|
642
642
|
getEntityStatusLabel<D extends {
|
|
643
643
|
entityStatus?: number;
|
|
644
|
-
}>(data
|
|
644
|
+
}>(data?: D): string;
|
|
645
645
|
/**
|
|
646
646
|
* Get refresh token from response headers
|
|
647
647
|
* @param rawResponse Raw response from API call
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DataTypes } from '@etsoo/shared';
|
|
2
1
|
import { IdLabelDto } from '../dto/IdLabelDto';
|
|
3
2
|
import { ICultureGet } from '../state/Culture';
|
|
4
3
|
import { EntityStatus } from './EntityStatus';
|
|
@@ -8,23 +7,22 @@ import { ProductUnit } from './ProductUnit';
|
|
|
8
7
|
*/
|
|
9
8
|
export declare namespace BusinessUtils {
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param
|
|
13
|
-
* @param
|
|
14
|
-
* @returns
|
|
10
|
+
* Get currency collection
|
|
11
|
+
* @param currencyNames Names like CNY, USD
|
|
12
|
+
* @param func Label delegate
|
|
13
|
+
* @returns Collection
|
|
15
14
|
*/
|
|
16
|
-
function
|
|
15
|
+
function getCurrencies(currencyNames: string[], func: ICultureGet): IdLabelDto<string>[];
|
|
17
16
|
/**
|
|
18
|
-
* Get
|
|
19
|
-
* Please define the label
|
|
17
|
+
* Get entity status's label
|
|
18
|
+
* Please define the label with key 'statusNormal' for Normal status
|
|
20
19
|
* @param unit Unit
|
|
21
20
|
* @param func Label delegate
|
|
22
21
|
* @returns Label
|
|
23
22
|
*/
|
|
24
23
|
function getEntityStatusLabel(status: EntityStatus, func: ICultureGet): string;
|
|
25
24
|
/**
|
|
26
|
-
* Get
|
|
27
|
-
* Please define the label in culture with key 'unitPC' for ProductUnit.PC like that
|
|
25
|
+
* Get entity status collection
|
|
28
26
|
* @param unit Unit
|
|
29
27
|
* @param func Label delegate
|
|
30
28
|
* @returns Label
|
|
@@ -8,22 +8,24 @@ import { ProductUnit } from './ProductUnit';
|
|
|
8
8
|
export var BusinessUtils;
|
|
9
9
|
(function (BusinessUtils) {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param
|
|
13
|
-
* @param
|
|
14
|
-
* @returns
|
|
11
|
+
* Get currency collection
|
|
12
|
+
* @param currencyNames Names like CNY, USD
|
|
13
|
+
* @param func Label delegate
|
|
14
|
+
* @returns Collection
|
|
15
15
|
*/
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
function getCurrencies(currencyNames, func) {
|
|
17
|
+
return currencyNames.map((name) => {
|
|
18
|
+
var _a;
|
|
19
|
+
return ({
|
|
20
|
+
id: name,
|
|
21
|
+
label: (_a = func(`currency${name}`)) !== null && _a !== void 0 ? _a : name
|
|
22
|
+
});
|
|
23
|
+
});
|
|
22
24
|
}
|
|
23
|
-
BusinessUtils.
|
|
25
|
+
BusinessUtils.getCurrencies = getCurrencies;
|
|
24
26
|
/**
|
|
25
|
-
* Get
|
|
26
|
-
* Please define the label
|
|
27
|
+
* Get entity status's label
|
|
28
|
+
* Please define the label with key 'statusNormal' for Normal status
|
|
27
29
|
* @param unit Unit
|
|
28
30
|
* @param func Label delegate
|
|
29
31
|
* @returns Label
|
|
@@ -35,8 +37,7 @@ export var BusinessUtils;
|
|
|
35
37
|
}
|
|
36
38
|
BusinessUtils.getEntityStatusLabel = getEntityStatusLabel;
|
|
37
39
|
/**
|
|
38
|
-
* Get
|
|
39
|
-
* Please define the label in culture with key 'unitPC' for ProductUnit.PC like that
|
|
40
|
+
* Get entity status collection
|
|
40
41
|
* @param unit Unit
|
|
41
42
|
* @param func Label delegate
|
|
42
43
|
* @returns Label
|
|
@@ -12,10 +12,22 @@ export declare enum EntityStatus {
|
|
|
12
12
|
* Flaged
|
|
13
13
|
*/
|
|
14
14
|
Flaged = 9,
|
|
15
|
+
/**
|
|
16
|
+
* Approved
|
|
17
|
+
*/
|
|
18
|
+
Approved = 100,
|
|
19
|
+
/**
|
|
20
|
+
* Audited
|
|
21
|
+
*/
|
|
22
|
+
Audited = 111,
|
|
15
23
|
/**
|
|
16
24
|
* Inactivated
|
|
17
25
|
*/
|
|
18
26
|
Inactivated = 200,
|
|
27
|
+
/**
|
|
28
|
+
* Completed
|
|
29
|
+
*/
|
|
30
|
+
Completed = 250,
|
|
19
31
|
/**
|
|
20
32
|
* Archived
|
|
21
33
|
*/
|
|
@@ -13,10 +13,22 @@ export var EntityStatus;
|
|
|
13
13
|
* Flaged
|
|
14
14
|
*/
|
|
15
15
|
EntityStatus[EntityStatus["Flaged"] = 9] = "Flaged";
|
|
16
|
+
/**
|
|
17
|
+
* Approved
|
|
18
|
+
*/
|
|
19
|
+
EntityStatus[EntityStatus["Approved"] = 100] = "Approved";
|
|
20
|
+
/**
|
|
21
|
+
* Audited
|
|
22
|
+
*/
|
|
23
|
+
EntityStatus[EntityStatus["Audited"] = 111] = "Audited";
|
|
16
24
|
/**
|
|
17
25
|
* Inactivated
|
|
18
26
|
*/
|
|
19
27
|
EntityStatus[EntityStatus["Inactivated"] = 200] = "Inactivated";
|
|
28
|
+
/**
|
|
29
|
+
* Completed
|
|
30
|
+
*/
|
|
31
|
+
EntityStatus[EntityStatus["Completed"] = 250] = "Completed";
|
|
20
32
|
/**
|
|
21
33
|
* Archived
|
|
22
34
|
*/
|
package/lib/mjs/i18n/en-US.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "Accountant",
|
|
2
3
|
"actions": "Actions",
|
|
3
4
|
"add": "Add",
|
|
5
|
+
"authorizer": "Authorizer",
|
|
6
|
+
"applicant": "Applicant",
|
|
7
|
+
"approve": "Approve it",
|
|
4
8
|
"back": "Back",
|
|
5
9
|
"cancel": "Cancel",
|
|
6
10
|
"clear": "Clear",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "Copy",
|
|
12
16
|
"creation": "Creation",
|
|
13
17
|
"currency": "Currency",
|
|
18
|
+
"currencyAUD": "Australia Dollar $",
|
|
19
|
+
"currencyCAD": "Canada Dollar $",
|
|
20
|
+
"currencyCNY": "Renminbi(RMB) ¥",
|
|
21
|
+
"currencyEUR": "Euro €",
|
|
22
|
+
"currencyGBP": "British Pound £",
|
|
23
|
+
"currencyHKD": "Hong Kong Dollar $",
|
|
24
|
+
"currencyJPY": "Japan Yen ¥",
|
|
25
|
+
"currencyNZD": "New Zealand Dollar $",
|
|
26
|
+
"currencySGD": "Singapore Dollar $",
|
|
27
|
+
"currencyUSD": "U.S. Dollar $",
|
|
14
28
|
"delete": "Delete",
|
|
15
29
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
16
30
|
"description": "Description",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "SmartERP",
|
|
68
82
|
"sortTip": "Drag and drop items to sort",
|
|
69
83
|
"status": "Status",
|
|
84
|
+
"statusApproved": "Approved",
|
|
70
85
|
"statusArchived": "Archived",
|
|
86
|
+
"statusAudited": "Audited",
|
|
87
|
+
"statusCompleted": "Completed",
|
|
71
88
|
"statusDeleted": "Deleted",
|
|
72
89
|
"statusFlaged": "Flaged",
|
|
73
90
|
"statusNormal": "Normla",
|
|
74
91
|
"statusInactivated": "Inactivated",
|
|
75
92
|
"submit": "Submit",
|
|
76
93
|
"success": "Success",
|
|
94
|
+
"taxId": "Tax ID number",
|
|
95
|
+
"taxIdHelp": "Used for real-name authentication and invoicing",
|
|
96
|
+
"taxCABN": "Business number",
|
|
97
|
+
"taxCNUSCC": "Unified social credit code",
|
|
98
|
+
"taxHKBRN": "Business registration number",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "Employer identification number",
|
|
77
101
|
"timeDifferenceInvalid": "The time difference between the device and the server is {0}, which exceeds the limit of {1} seconds. Please adjust the device time. If it is abnormal, please inform the administrator",
|
|
78
102
|
"tokenExpiry": "Your session is about to expire. Click the Cancel button to continue",
|
|
79
103
|
"yes": "Yes",
|
|
@@ -94,6 +118,8 @@
|
|
|
94
118
|
"unitGRAM": "g",
|
|
95
119
|
"unitJIN": "½Kg",
|
|
96
120
|
"unitKILOGRAM": "Kg",
|
|
121
|
+
"user": "User",
|
|
122
|
+
"view": "View",
|
|
97
123
|
"warning": "Warning",
|
|
98
124
|
"welcome": "{0}, welcome!"
|
|
99
125
|
}
|
package/lib/mjs/i18n/zh-CN.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "会计",
|
|
2
3
|
"actions": "操作",
|
|
3
4
|
"add": "添加",
|
|
5
|
+
"authorizer": "授权人",
|
|
6
|
+
"applicant": "申请人",
|
|
7
|
+
"approve": "批准",
|
|
4
8
|
"back": "后退",
|
|
5
9
|
"cancel": "取消",
|
|
6
10
|
"clear": "清除",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "复制",
|
|
12
16
|
"creation": "登记时间",
|
|
13
17
|
"currency": "币种",
|
|
18
|
+
"currencyAUD": "澳元$",
|
|
19
|
+
"currencyCAD": "加元$",
|
|
20
|
+
"currencyCNY": "人民币¥",
|
|
21
|
+
"currencyEUR": "欧元€",
|
|
22
|
+
"currencyGBP": "英镑£",
|
|
23
|
+
"currencyHKD": "港币$",
|
|
24
|
+
"currencyJPY": "日元¥",
|
|
25
|
+
"currencyNZD": "纽币$",
|
|
26
|
+
"currencySGD": "新币$",
|
|
27
|
+
"currencyUSD": "美元$",
|
|
14
28
|
"delete": "删除",
|
|
15
29
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
16
30
|
"description": "描述",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "司友云ERP",
|
|
68
82
|
"sortTip": "拖拽项目进行排序",
|
|
69
83
|
"status": "状态",
|
|
84
|
+
"statusApproved": "已批准",
|
|
70
85
|
"statusArchived": "已归档",
|
|
86
|
+
"statusAudited": "已审核",
|
|
87
|
+
"statusCompleted": "已完成",
|
|
71
88
|
"statusDeleted": "已删除",
|
|
72
89
|
"statusFlaged": "已标记",
|
|
73
90
|
"statusNormal": "正常",
|
|
74
91
|
"statusInactivated": "已停用",
|
|
75
92
|
"submit": "提交",
|
|
76
93
|
"success": "成功",
|
|
94
|
+
"taxId": "税号",
|
|
95
|
+
"taxIdHelp": "用于实名认证和开具发票",
|
|
96
|
+
"taxCABN": "营业编号(BN)",
|
|
97
|
+
"taxCNUSCC": "统一信用代码",
|
|
98
|
+
"taxHKBRN": "商业登记号码(BRN)",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "雇主识别号码(EIN)",
|
|
77
101
|
"timeDifferenceInvalid": "设备时间和服务器时间差为{0},超过{1}秒的限制,请调整设备时间,如果异常请告知管理员",
|
|
78
102
|
"tokenExpiry": "您的会话即将过期。点击 取消 按钮继续使用",
|
|
79
103
|
"yes": "是",
|
|
@@ -95,6 +119,8 @@
|
|
|
95
119
|
"unitJIN": "斤",
|
|
96
120
|
"unitKILOGRAM": "公斤",
|
|
97
121
|
"unitTON": "吨",
|
|
122
|
+
"user": "用户",
|
|
123
|
+
"view": "查看",
|
|
98
124
|
"warning": "警告",
|
|
99
125
|
"welcome": "{0}, 欢迎光临!"
|
|
100
126
|
}
|
package/lib/mjs/i18n/zh-HK.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "會計",
|
|
2
3
|
"actions": "操作",
|
|
3
4
|
"add": "添加",
|
|
5
|
+
"authorizer": "授權人",
|
|
6
|
+
"applicant": "申請人",
|
|
7
|
+
"approve": "批准",
|
|
4
8
|
"back": "後退",
|
|
5
9
|
"cancel": "取消",
|
|
6
10
|
"clear": "清除",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "複製",
|
|
12
16
|
"creation": "登記時間",
|
|
13
17
|
"currency": "幣種",
|
|
18
|
+
"currencyAUD": "澳元$",
|
|
19
|
+
"currencyCAD": "加元$",
|
|
20
|
+
"currencyCNY": "人民幣¥",
|
|
21
|
+
"currencyEUR": "歐元€",
|
|
22
|
+
"currencyGBP": "英鎊£",
|
|
23
|
+
"currencyHKD": "港幣$",
|
|
24
|
+
"currencyJPY": "日元¥",
|
|
25
|
+
"currencyNZD": "紐幣$",
|
|
26
|
+
"currencySGD": "新幣$",
|
|
27
|
+
"currencyUSD": "美元$",
|
|
14
28
|
"delete": "刪除",
|
|
15
29
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
|
16
30
|
"description": "描述",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "司友雲ERP",
|
|
68
82
|
"sortTip": "拖拽項目進行排序",
|
|
69
83
|
"status": "狀態",
|
|
84
|
+
"statusApproved": "已批准",
|
|
70
85
|
"statusArchived": "已歸檔",
|
|
86
|
+
"statusAudited": "已審核",
|
|
87
|
+
"statusCompleted": "已完成",
|
|
71
88
|
"statusDeleted": "已刪除",
|
|
72
89
|
"statusFlaged": "已標記",
|
|
73
90
|
"statusNormal": "正常",
|
|
74
91
|
"statusInactivated": "已停用",
|
|
75
92
|
"submit": "提交",
|
|
76
93
|
"success": "成功",
|
|
94
|
+
"taxId": "稅號",
|
|
95
|
+
"taxIdHelp": "用於實名認證和開具發票",
|
|
96
|
+
"taxCABN": "營業編號(BN)",
|
|
97
|
+
"taxCNUSCC": "統一信用代碼",
|
|
98
|
+
"taxHKBRN": "商業登記號碼(BRN)",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "雇主識別號碼(EIN)",
|
|
77
101
|
"timeDifferenceInvalid": "設備時間和服務器時間差為{0},超過{1}秒的限制,請調整設備時間,如果異常請告知管理員",
|
|
78
102
|
"tokenExpiry": "您的會話即將過期。點擊 取消 按鈕繼續使用",
|
|
79
103
|
"yes": "是",
|
|
@@ -94,6 +118,8 @@
|
|
|
94
118
|
"unitGRAM": "克",
|
|
95
119
|
"unitJIN": "斤",
|
|
96
120
|
"unitKILOGRAM": "公斤",
|
|
121
|
+
"user": "用戶",
|
|
122
|
+
"view": "查看",
|
|
97
123
|
"warning": "警告",
|
|
98
124
|
"welcome": "{0}, 歡迎光臨!"
|
|
99
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -54,24 +54,24 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@etsoo/notificationbase": "^1.1.0",
|
|
56
56
|
"@etsoo/restclient": "^1.0.64",
|
|
57
|
-
"@etsoo/shared": "^1.1.
|
|
57
|
+
"@etsoo/shared": "^1.1.9",
|
|
58
58
|
"@types/crypto-js": "^4.1.0",
|
|
59
59
|
"crypto-js": "^4.1.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/cli": "^7.16.8",
|
|
63
|
-
"@babel/core": "^7.16.
|
|
64
|
-
"@babel/plugin-transform-runtime": "^7.16.
|
|
65
|
-
"@babel/preset-env": "^7.16.
|
|
63
|
+
"@babel/core": "^7.16.12",
|
|
64
|
+
"@babel/plugin-transform-runtime": "^7.16.10",
|
|
65
|
+
"@babel/preset-env": "^7.16.11",
|
|
66
66
|
"@babel/runtime-corejs3": "^7.16.8",
|
|
67
67
|
"@types/jest": "^27.4.0",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^5.10.
|
|
69
|
-
"@typescript-eslint/parser": "^5.10.
|
|
70
|
-
"eslint": "^8.
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
|
69
|
+
"@typescript-eslint/parser": "^5.10.1",
|
|
70
|
+
"eslint": "^8.8.0",
|
|
71
71
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
72
72
|
"eslint-plugin-import": "^2.25.4",
|
|
73
73
|
"jest": "^27.4.7",
|
|
74
74
|
"ts-jest": "^27.1.3",
|
|
75
|
-
"typescript": "^4.5.
|
|
75
|
+
"typescript": "^4.5.5"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -149,7 +149,7 @@ export class AddressRegion implements IAddressRegion {
|
|
|
149
149
|
AddressContinent.NA,
|
|
150
150
|
'011',
|
|
151
151
|
'1',
|
|
152
|
-
'
|
|
152
|
+
'CAD',
|
|
153
153
|
['en-CA', 'fr-CA']
|
|
154
154
|
);
|
|
155
155
|
|
|
@@ -209,7 +209,7 @@ export class AddressRegion implements IAddressRegion {
|
|
|
209
209
|
AddressContinent.EU,
|
|
210
210
|
'00',
|
|
211
211
|
'353',
|
|
212
|
-
'
|
|
212
|
+
'EUR',
|
|
213
213
|
['en-IE']
|
|
214
214
|
);
|
|
215
215
|
|
package/src/app/CoreApp.ts
CHANGED
|
@@ -336,7 +336,7 @@ export interface ICoreApp<
|
|
|
336
336
|
* Get entity status label
|
|
337
337
|
* @param data Input data
|
|
338
338
|
*/
|
|
339
|
-
getEntityStatusLabel<D extends { entityStatus?: number }>(data
|
|
339
|
+
getEntityStatusLabel<D extends { entityStatus?: number }>(data?: D): string;
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
342
|
* Get all regions
|
|
@@ -1405,7 +1405,7 @@ export abstract class CoreApp<
|
|
|
1405
1405
|
* Get entity status label
|
|
1406
1406
|
* @param data Input data
|
|
1407
1407
|
*/
|
|
1408
|
-
getEntityStatusLabel<D extends { entityStatus?: number }>(data
|
|
1408
|
+
getEntityStatusLabel<D extends { entityStatus?: number }>(data?: D) {
|
|
1409
1409
|
if (data == null || data.entityStatus == null) return '';
|
|
1410
1410
|
return BusinessUtils.getEntityStatusLabel(
|
|
1411
1411
|
data.entityStatus,
|
|
@@ -10,25 +10,24 @@ import { ProductUnit } from './ProductUnit';
|
|
|
10
10
|
*/
|
|
11
11
|
export namespace BusinessUtils {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @param
|
|
15
|
-
* @param
|
|
16
|
-
* @returns
|
|
13
|
+
* Get currency collection
|
|
14
|
+
* @param currencyNames Names like CNY, USD
|
|
15
|
+
* @param func Label delegate
|
|
16
|
+
* @returns Collection
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return input;
|
|
18
|
+
export function getCurrencies(
|
|
19
|
+
currencyNames: string[],
|
|
20
|
+
func: ICultureGet
|
|
21
|
+
): IdLabelDto<string>[] {
|
|
22
|
+
return currencyNames.map((name) => ({
|
|
23
|
+
id: name,
|
|
24
|
+
label: func(`currency${name}`) ?? name
|
|
25
|
+
}));
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
|
-
* Get
|
|
31
|
-
* Please define the label
|
|
29
|
+
* Get entity status's label
|
|
30
|
+
* Please define the label with key 'statusNormal' for Normal status
|
|
32
31
|
* @param unit Unit
|
|
33
32
|
* @param func Label delegate
|
|
34
33
|
* @returns Label
|
|
@@ -42,8 +41,7 @@ export namespace BusinessUtils {
|
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
|
-
* Get
|
|
46
|
-
* Please define the label in culture with key 'unitPC' for ProductUnit.PC like that
|
|
44
|
+
* Get entity status collection
|
|
47
45
|
* @param unit Unit
|
|
48
46
|
* @param func Label delegate
|
|
49
47
|
* @returns Label
|
|
@@ -14,11 +14,26 @@ export enum EntityStatus {
|
|
|
14
14
|
*/
|
|
15
15
|
Flaged = 9,
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Approved
|
|
19
|
+
*/
|
|
20
|
+
Approved = 100,
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Audited
|
|
24
|
+
*/
|
|
25
|
+
Audited = 111,
|
|
26
|
+
|
|
17
27
|
/**
|
|
18
28
|
* Inactivated
|
|
19
29
|
*/
|
|
20
30
|
Inactivated = 200,
|
|
21
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Completed
|
|
34
|
+
*/
|
|
35
|
+
Completed = 250,
|
|
36
|
+
|
|
22
37
|
/**
|
|
23
38
|
* Archived
|
|
24
39
|
*/
|
package/src/i18n/en-US.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "Accountant",
|
|
2
3
|
"actions": "Actions",
|
|
3
4
|
"add": "Add",
|
|
5
|
+
"authorizer": "Authorizer",
|
|
6
|
+
"applicant": "Applicant",
|
|
7
|
+
"approve": "Approve it",
|
|
4
8
|
"back": "Back",
|
|
5
9
|
"cancel": "Cancel",
|
|
6
10
|
"clear": "Clear",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "Copy",
|
|
12
16
|
"creation": "Creation",
|
|
13
17
|
"currency": "Currency",
|
|
18
|
+
"currencyAUD": "Australia Dollar $",
|
|
19
|
+
"currencyCAD": "Canada Dollar $",
|
|
20
|
+
"currencyCNY": "Renminbi(RMB) ¥",
|
|
21
|
+
"currencyEUR": "Euro €",
|
|
22
|
+
"currencyGBP": "British Pound £",
|
|
23
|
+
"currencyHKD": "Hong Kong Dollar $",
|
|
24
|
+
"currencyJPY": "Japan Yen ¥",
|
|
25
|
+
"currencyNZD": "New Zealand Dollar $",
|
|
26
|
+
"currencySGD": "Singapore Dollar $",
|
|
27
|
+
"currencyUSD": "U.S. Dollar $",
|
|
14
28
|
"delete": "Delete",
|
|
15
29
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
16
30
|
"description": "Description",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "SmartERP",
|
|
68
82
|
"sortTip": "Drag and drop items to sort",
|
|
69
83
|
"status": "Status",
|
|
84
|
+
"statusApproved": "Approved",
|
|
70
85
|
"statusArchived": "Archived",
|
|
86
|
+
"statusAudited": "Audited",
|
|
87
|
+
"statusCompleted": "Completed",
|
|
71
88
|
"statusDeleted": "Deleted",
|
|
72
89
|
"statusFlaged": "Flaged",
|
|
73
90
|
"statusNormal": "Normla",
|
|
74
91
|
"statusInactivated": "Inactivated",
|
|
75
92
|
"submit": "Submit",
|
|
76
93
|
"success": "Success",
|
|
94
|
+
"taxId": "Tax ID number",
|
|
95
|
+
"taxIdHelp": "Used for real-name authentication and invoicing",
|
|
96
|
+
"taxCABN": "Business number",
|
|
97
|
+
"taxCNUSCC": "Unified social credit code",
|
|
98
|
+
"taxHKBRN": "Business registration number",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "Employer identification number",
|
|
77
101
|
"timeDifferenceInvalid": "The time difference between the device and the server is {0}, which exceeds the limit of {1} seconds. Please adjust the device time. If it is abnormal, please inform the administrator",
|
|
78
102
|
"tokenExpiry": "Your session is about to expire. Click the Cancel button to continue",
|
|
79
103
|
"yes": "Yes",
|
|
@@ -94,6 +118,8 @@
|
|
|
94
118
|
"unitGRAM": "g",
|
|
95
119
|
"unitJIN": "½Kg",
|
|
96
120
|
"unitKILOGRAM": "Kg",
|
|
121
|
+
"user": "User",
|
|
122
|
+
"view": "View",
|
|
97
123
|
"warning": "Warning",
|
|
98
124
|
"welcome": "{0}, welcome!"
|
|
99
125
|
}
|
package/src/i18n/zh-CN.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "会计",
|
|
2
3
|
"actions": "操作",
|
|
3
4
|
"add": "添加",
|
|
5
|
+
"authorizer": "授权人",
|
|
6
|
+
"applicant": "申请人",
|
|
7
|
+
"approve": "批准",
|
|
4
8
|
"back": "后退",
|
|
5
9
|
"cancel": "取消",
|
|
6
10
|
"clear": "清除",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "复制",
|
|
12
16
|
"creation": "登记时间",
|
|
13
17
|
"currency": "币种",
|
|
18
|
+
"currencyAUD": "澳元$",
|
|
19
|
+
"currencyCAD": "加元$",
|
|
20
|
+
"currencyCNY": "人民币¥",
|
|
21
|
+
"currencyEUR": "欧元€",
|
|
22
|
+
"currencyGBP": "英镑£",
|
|
23
|
+
"currencyHKD": "港币$",
|
|
24
|
+
"currencyJPY": "日元¥",
|
|
25
|
+
"currencyNZD": "纽币$",
|
|
26
|
+
"currencySGD": "新币$",
|
|
27
|
+
"currencyUSD": "美元$",
|
|
14
28
|
"delete": "删除",
|
|
15
29
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
16
30
|
"description": "描述",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "司友云ERP",
|
|
68
82
|
"sortTip": "拖拽项目进行排序",
|
|
69
83
|
"status": "状态",
|
|
84
|
+
"statusApproved": "已批准",
|
|
70
85
|
"statusArchived": "已归档",
|
|
86
|
+
"statusAudited": "已审核",
|
|
87
|
+
"statusCompleted": "已完成",
|
|
71
88
|
"statusDeleted": "已删除",
|
|
72
89
|
"statusFlaged": "已标记",
|
|
73
90
|
"statusNormal": "正常",
|
|
74
91
|
"statusInactivated": "已停用",
|
|
75
92
|
"submit": "提交",
|
|
76
93
|
"success": "成功",
|
|
94
|
+
"taxId": "税号",
|
|
95
|
+
"taxIdHelp": "用于实名认证和开具发票",
|
|
96
|
+
"taxCABN": "营业编号(BN)",
|
|
97
|
+
"taxCNUSCC": "统一信用代码",
|
|
98
|
+
"taxHKBRN": "商业登记号码(BRN)",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "雇主识别号码(EIN)",
|
|
77
101
|
"timeDifferenceInvalid": "设备时间和服务器时间差为{0},超过{1}秒的限制,请调整设备时间,如果异常请告知管理员",
|
|
78
102
|
"tokenExpiry": "您的会话即将过期。点击 取消 按钮继续使用",
|
|
79
103
|
"yes": "是",
|
|
@@ -95,6 +119,8 @@
|
|
|
95
119
|
"unitJIN": "斤",
|
|
96
120
|
"unitKILOGRAM": "公斤",
|
|
97
121
|
"unitTON": "吨",
|
|
122
|
+
"user": "用户",
|
|
123
|
+
"view": "查看",
|
|
98
124
|
"warning": "警告",
|
|
99
125
|
"welcome": "{0}, 欢迎光临!"
|
|
100
126
|
}
|
package/src/i18n/zh-HK.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"accountant": "會計",
|
|
2
3
|
"actions": "操作",
|
|
3
4
|
"add": "添加",
|
|
5
|
+
"authorizer": "授權人",
|
|
6
|
+
"applicant": "申請人",
|
|
7
|
+
"approve": "批准",
|
|
4
8
|
"back": "後退",
|
|
5
9
|
"cancel": "取消",
|
|
6
10
|
"clear": "清除",
|
|
@@ -11,6 +15,16 @@
|
|
|
11
15
|
"copy": "複製",
|
|
12
16
|
"creation": "登記時間",
|
|
13
17
|
"currency": "幣種",
|
|
18
|
+
"currencyAUD": "澳元$",
|
|
19
|
+
"currencyCAD": "加元$",
|
|
20
|
+
"currencyCNY": "人民幣¥",
|
|
21
|
+
"currencyEUR": "歐元€",
|
|
22
|
+
"currencyGBP": "英鎊£",
|
|
23
|
+
"currencyHKD": "港幣$",
|
|
24
|
+
"currencyJPY": "日元¥",
|
|
25
|
+
"currencyNZD": "紐幣$",
|
|
26
|
+
"currencySGD": "新幣$",
|
|
27
|
+
"currencyUSD": "美元$",
|
|
14
28
|
"delete": "刪除",
|
|
15
29
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
|
16
30
|
"description": "描述",
|
|
@@ -67,13 +81,23 @@
|
|
|
67
81
|
"smartERP": "司友雲ERP",
|
|
68
82
|
"sortTip": "拖拽項目進行排序",
|
|
69
83
|
"status": "狀態",
|
|
84
|
+
"statusApproved": "已批准",
|
|
70
85
|
"statusArchived": "已歸檔",
|
|
86
|
+
"statusAudited": "已審核",
|
|
87
|
+
"statusCompleted": "已完成",
|
|
71
88
|
"statusDeleted": "已刪除",
|
|
72
89
|
"statusFlaged": "已標記",
|
|
73
90
|
"statusNormal": "正常",
|
|
74
91
|
"statusInactivated": "已停用",
|
|
75
92
|
"submit": "提交",
|
|
76
93
|
"success": "成功",
|
|
94
|
+
"taxId": "稅號",
|
|
95
|
+
"taxIdHelp": "用於實名認證和開具發票",
|
|
96
|
+
"taxCABN": "營業編號(BN)",
|
|
97
|
+
"taxCNUSCC": "統一信用代碼",
|
|
98
|
+
"taxHKBRN": "商業登記號碼(BRN)",
|
|
99
|
+
"taxNZIRD": "IRD",
|
|
100
|
+
"taxUSEIN": "雇主識別號碼(EIN)",
|
|
77
101
|
"timeDifferenceInvalid": "設備時間和服務器時間差為{0},超過{1}秒的限制,請調整設備時間,如果異常請告知管理員",
|
|
78
102
|
"tokenExpiry": "您的會話即將過期。點擊 取消 按鈕繼續使用",
|
|
79
103
|
"yes": "是",
|
|
@@ -94,6 +118,8 @@
|
|
|
94
118
|
"unitGRAM": "克",
|
|
95
119
|
"unitJIN": "斤",
|
|
96
120
|
"unitKILOGRAM": "公斤",
|
|
121
|
+
"user": "用戶",
|
|
122
|
+
"view": "查看",
|
|
97
123
|
"warning": "警告",
|
|
98
124
|
"welcome": "{0}, 歡迎光臨!"
|
|
99
125
|
}
|