@etsoo/appscript 1.2.22 → 1.2.26

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.
Files changed (41) hide show
  1. package/__tests__/app/CoreApp.ts +15 -0
  2. package/lib/cjs/app/CoreApp.d.ts +15 -2
  3. package/lib/cjs/app/CoreApp.js +10 -0
  4. package/lib/cjs/business/BusinessUtils.d.ts +21 -2
  5. package/lib/cjs/business/BusinessUtils.js +32 -6
  6. package/lib/cjs/business/EntityStatus.d.ts +12 -0
  7. package/lib/cjs/business/EntityStatus.js +12 -0
  8. package/lib/cjs/business/ProductUnit.d.ts +47 -45
  9. package/lib/cjs/business/ProductUnit.js +36 -48
  10. package/lib/cjs/business/RepeatOption.d.ts +56 -0
  11. package/lib/cjs/business/RepeatOption.js +60 -0
  12. package/lib/cjs/i18n/en-US.json +22 -0
  13. package/lib/cjs/i18n/zh-CN.json +23 -0
  14. package/lib/cjs/i18n/zh-HK.json +22 -0
  15. package/lib/cjs/index.d.ts +1 -0
  16. package/lib/cjs/index.js +1 -0
  17. package/lib/mjs/app/CoreApp.d.ts +15 -2
  18. package/lib/mjs/app/CoreApp.js +10 -0
  19. package/lib/mjs/business/BusinessUtils.d.ts +21 -2
  20. package/lib/mjs/business/BusinessUtils.js +32 -6
  21. package/lib/mjs/business/EntityStatus.d.ts +12 -0
  22. package/lib/mjs/business/EntityStatus.js +12 -0
  23. package/lib/mjs/business/ProductUnit.d.ts +47 -45
  24. package/lib/mjs/business/ProductUnit.js +35 -47
  25. package/lib/mjs/business/RepeatOption.d.ts +56 -0
  26. package/lib/mjs/business/RepeatOption.js +57 -0
  27. package/lib/mjs/i18n/en-US.json +22 -0
  28. package/lib/mjs/i18n/zh-CN.json +23 -0
  29. package/lib/mjs/i18n/zh-HK.json +22 -0
  30. package/lib/mjs/index.d.ts +1 -0
  31. package/lib/mjs/index.js +1 -0
  32. package/package.json +6 -6
  33. package/src/app/CoreApp.ts +20 -2
  34. package/src/business/BusinessUtils.ts +66 -7
  35. package/src/business/EntityStatus.ts +15 -0
  36. package/src/business/ProductUnit.ts +35 -51
  37. package/src/business/RepeatOption.ts +65 -0
  38. package/src/i18n/en-US.json +22 -0
  39. package/src/i18n/zh-CN.json +23 -0
  40. package/src/i18n/zh-HK.json +22 -0
  41. package/src/index.ts +1 -0
@@ -12,6 +12,7 @@
12
12
  "creation": "Creation",
13
13
  "currency": "Currency",
14
14
  "delete": "Delete",
15
+ "deleteConfirm": "Are you sure you want to permanently delete this {0}?",
15
16
  "description": "Description",
16
17
  "done": "Done",
17
18
  "edit": "Edit",
@@ -43,6 +44,7 @@
43
44
  "pageNotFound": "Page Not Found",
44
45
  "prompt": "Input",
45
46
  "pullToRefresh": "Pull down to refresh",
47
+ "record": "Record",
46
48
  "refresh": "Refresh",
47
49
  "refreshing": "Refreshing",
48
50
  "releaseToRefresh": "Release to refresh",
@@ -63,8 +65,12 @@
63
65
  "showIt": "Show it",
64
66
  "signout": "Sign out",
65
67
  "smartERP": "SmartERP",
68
+ "sortTip": "Drag and drop items to sort",
66
69
  "status": "Status",
70
+ "statusApproved": "Approved",
67
71
  "statusArchived": "Archived",
72
+ "statusAudited": "Audited",
73
+ "statusCompleted": "Completed",
68
74
  "statusDeleted": "Deleted",
69
75
  "statusFlaged": "Flaged",
70
76
  "statusNormal": "Normla",
@@ -75,6 +81,22 @@
75
81
  "tokenExpiry": "Your session is about to expire. Click the Cancel button to continue",
76
82
  "yes": "Yes",
77
83
  "unknownError": "Unknown Error",
84
+ "unitJoin": "per {0}",
85
+ "unitPC": "PC",
86
+ "unitSET": "SET",
87
+ "unitHOUR": "Hour",
88
+ "unitDAY": "Day",
89
+ "unitYEAR": "Year",
90
+ "unitWEEK": "Week",
91
+ "unitFORTNIGHT": "Fortnight",
92
+ "unitFOURWEEK": "4-week",
93
+ "unitMONTH": "Month",
94
+ "unitBIMONTH": "2-month",
95
+ "unitQUATER": "Quater",
96
+ "unitHALFYEAR": "6-month",
97
+ "unitGRAM": "g",
98
+ "unitJIN": "½Kg",
99
+ "unitKILOGRAM": "Kg",
78
100
  "warning": "Warning",
79
101
  "welcome": "{0}, welcome!"
80
102
  }
@@ -12,6 +12,7 @@
12
12
  "creation": "登记时间",
13
13
  "currency": "币种",
14
14
  "delete": "删除",
15
+ "deleteConfirm": "确定要永久删除此{0}吗?",
15
16
  "description": "描述",
16
17
  "done": "完成",
17
18
  "edit": "修改",
@@ -43,6 +44,7 @@
43
44
  "pageNotFound": "找不到页面",
44
45
  "prompt": "输入",
45
46
  "pullToRefresh": "下拉刷新",
47
+ "record": "记录",
46
48
  "refresh": "刷新",
47
49
  "refreshing": "正在刷新",
48
50
  "releaseToRefresh": "释放刷新",
@@ -63,8 +65,12 @@
63
65
  "showIt": "显示",
64
66
  "signout": "退出",
65
67
  "smartERP": "司友云ERP",
68
+ "sortTip": "拖拽项目进行排序",
66
69
  "status": "状态",
70
+ "statusApproved": "已批准",
67
71
  "statusArchived": "已归档",
72
+ "statusAudited": "已审核",
73
+ "statusCompleted": "已完成",
68
74
  "statusDeleted": "已删除",
69
75
  "statusFlaged": "已标记",
70
76
  "statusNormal": "正常",
@@ -75,6 +81,23 @@
75
81
  "tokenExpiry": "您的会话即将过期。点击 取消 按钮继续使用",
76
82
  "yes": "是",
77
83
  "unknownError": "未知错误",
84
+ "unitJoin": "每{0}",
85
+ "unitPC": "件",
86
+ "unitSET": "套",
87
+ "unitHOUR": "小时",
88
+ "unitDAY": "天",
89
+ "unitYEAR": "年",
90
+ "unitWEEK": "周",
91
+ "unitFORTNIGHT": "两周",
92
+ "unitFOURWEEK": "四周",
93
+ "unitMONTH": "月",
94
+ "unitBIMONTH": "两月",
95
+ "unitQUATER": "季度",
96
+ "unitHALFYEAR": "半年",
97
+ "unitGRAM": "克",
98
+ "unitJIN": "斤",
99
+ "unitKILOGRAM": "公斤",
100
+ "unitTON": "吨",
78
101
  "warning": "警告",
79
102
  "welcome": "{0}, 欢迎光临!"
80
103
  }
@@ -12,6 +12,7 @@
12
12
  "creation": "登記時間",
13
13
  "currency": "幣種",
14
14
  "delete": "刪除",
15
+ "deleteConfirm": "確定要永久刪除此{0}嗎?",
15
16
  "description": "描述",
16
17
  "done": "完成",
17
18
  "edit": "修改",
@@ -43,6 +44,7 @@
43
44
  "pageNotFound": "找不到頁面",
44
45
  "prompt": "輸入",
45
46
  "pullToRefresh": "下拉刷新",
47
+ "record": "記錄",
46
48
  "refresh": "刷新",
47
49
  "refreshing": "正在刷新",
48
50
  "releaseToRefresh": "釋放刷新",
@@ -63,8 +65,12 @@
63
65
  "showIt": "顯示",
64
66
  "signout": "退出",
65
67
  "smartERP": "司友雲ERP",
68
+ "sortTip": "拖拽項目進行排序",
66
69
  "status": "狀態",
70
+ "statusApproved": "已批准",
67
71
  "statusArchived": "已歸檔",
72
+ "statusAudited": "已審核",
73
+ "statusCompleted": "已完成",
68
74
  "statusDeleted": "已刪除",
69
75
  "statusFlaged": "已標記",
70
76
  "statusNormal": "正常",
@@ -75,6 +81,22 @@
75
81
  "tokenExpiry": "您的會話即將過期。點擊 取消 按鈕繼續使用",
76
82
  "yes": "是",
77
83
  "unknownError": "未知錯誤",
84
+ "unitJoin": "每{0}",
85
+ "unitPC": "件",
86
+ "unitSET": "套",
87
+ "unitHOUR": "小時",
88
+ "unitDAY": "天",
89
+ "unitYEAR": "年",
90
+ "unitWEEK": "週",
91
+ "unitFORTNIGHT": "兩週",
92
+ "unitFOURWEEK": "四周",
93
+ "unitMONTH": "月",
94
+ "unitBIMONTH": "兩月",
95
+ "unitQUATER": "季度",
96
+ "unitHALFYEAR": "半年",
97
+ "unitGRAM": "克",
98
+ "unitJIN": "斤",
99
+ "unitKILOGRAM": "公斤",
78
100
  "warning": "警告",
79
101
  "welcome": "{0}, 歡迎光臨!"
80
102
  }
@@ -12,6 +12,7 @@ export * from './business/BusinessTax';
12
12
  export * from './business/BusinessUtils';
13
13
  export * from './business/EntityStatus';
14
14
  export * from './business/ProductUnit';
15
+ export * from './business/RepeatOption';
15
16
  export * from './def/ListItem';
16
17
  export * from './dto/IdDto';
17
18
  export * from './dto/IdLabelDto';
package/lib/mjs/index.js CHANGED
@@ -16,6 +16,7 @@ export * from './business/BusinessTax';
16
16
  export * from './business/BusinessUtils';
17
17
  export * from './business/EntityStatus';
18
18
  export * from './business/ProductUnit';
19
+ export * from './business/RepeatOption';
19
20
  // def
20
21
  export * from './def/ListItem';
21
22
  // dto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.2.22",
3
+ "version": "1.2.26",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@etsoo/notificationbase": "^1.1.0",
56
56
  "@etsoo/restclient": "^1.0.64",
57
- "@etsoo/shared": "^1.1.3",
57
+ "@etsoo/shared": "^1.1.5",
58
58
  "@types/crypto-js": "^4.1.0",
59
59
  "crypto-js": "^4.1.1"
60
60
  },
@@ -65,13 +65,13 @@
65
65
  "@babel/preset-env": "^7.16.8",
66
66
  "@babel/runtime-corejs3": "^7.16.8",
67
67
  "@types/jest": "^27.4.0",
68
- "@typescript-eslint/eslint-plugin": "^5.9.1",
69
- "@typescript-eslint/parser": "^5.9.1",
70
- "eslint": "^8.6.0",
68
+ "@typescript-eslint/eslint-plugin": "^5.10.0",
69
+ "@typescript-eslint/parser": "^5.10.0",
70
+ "eslint": "^8.7.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
- "ts-jest": "^27.1.2",
74
+ "ts-jest": "^27.1.3",
75
75
  "typescript": "^4.5.4"
76
76
  }
77
77
  }
@@ -30,6 +30,7 @@ import {
30
30
  import { AddressRegion } from '../address/AddressRegion';
31
31
  import { AddressUtils } from '../address/AddressUtils';
32
32
  import { BusinessUtils } from '../business/BusinessUtils';
33
+ import { ProductUnit } from '../business/ProductUnit';
33
34
  import { IdLabelDto } from '../dto/IdLabelDto';
34
35
  import { InitCallDto } from '../dto/InitCallDto';
35
36
  import { ActionResultError } from '../result/ActionResultError';
@@ -335,7 +336,7 @@ export interface ICoreApp<
335
336
  * Get entity status label
336
337
  * @param data Input data
337
338
  */
338
- getEntityStatusLabel<D extends { entityStatus?: number }>(data: D): string;
339
+ getEntityStatusLabel<D extends { entityStatus?: number }>(data?: D): string;
339
340
 
340
341
  /**
341
342
  * Get all regions
@@ -356,6 +357,13 @@ export interface ICoreApp<
356
357
  */
357
358
  getTimeZone(): string | undefined;
358
359
 
360
+ /**
361
+ * Get product unit and repeat option label
362
+ * @param unit Product unit or repeat option
363
+ * @param isJoined Add the join label like 'per Kg' for Kg
364
+ */
365
+ getUnitLabel(unit?: ProductUnit, isJoined?: boolean): string;
366
+
359
367
  /**
360
368
  * Hash message, SHA3 or HmacSHA512, 512 as Base64
361
369
  * https://cryptojs.gitbook.io/docs/
@@ -1397,7 +1405,7 @@ export abstract class CoreApp<
1397
1405
  * Get entity status label
1398
1406
  * @param data Input data
1399
1407
  */
1400
- getEntityStatusLabel<D extends { entityStatus?: number }>(data: D) {
1408
+ getEntityStatusLabel<D extends { entityStatus?: number }>(data?: D) {
1401
1409
  if (data == null || data.entityStatus == null) return '';
1402
1410
  return BusinessUtils.getEntityStatusLabel(
1403
1411
  data.entityStatus,
@@ -1427,6 +1435,16 @@ export abstract class CoreApp<
1427
1435
  return this.settings.timeZone ?? this.ipData?.timezone;
1428
1436
  }
1429
1437
 
1438
+ /**
1439
+ * Get product unit and repeat option label
1440
+ * @param unit Product unit or repeat option
1441
+ * @param isJoined Add the join label like 'per Kg' for Kg
1442
+ */
1443
+ getUnitLabel(unit?: ProductUnit, isJoined?: boolean): string {
1444
+ if (unit == null) return '';
1445
+ return BusinessUtils.getUnitLabel(unit, this.labelDelegate, isJoined);
1446
+ }
1447
+
1430
1448
  /**
1431
1449
  * Hash message, SHA3 or HmacSHA512, 512 as Base64
1432
1450
  * https://cryptojs.gitbook.io/docs/
@@ -1,4 +1,5 @@
1
1
  import { DataTypes } from '@etsoo/shared';
2
+ import { RepeatOption } from '..';
2
3
  import { IdLabelDto } from '../dto/IdLabelDto';
3
4
  import { ICultureGet } from '../state/Culture';
4
5
  import { EntityStatus } from './EntityStatus';
@@ -27,7 +28,7 @@ export namespace BusinessUtils {
27
28
 
28
29
  /**
29
30
  * Get product unit's label
30
- * Please define the label in culture with key 'unitPC' for ProductUnit.PC like that
31
+ * Please define the label in culture with key 'statusNormal' for Normal status
31
32
  * @param unit Unit
32
33
  * @param func Label delegate
33
34
  * @returns Label
@@ -62,11 +63,21 @@ export namespace BusinessUtils {
62
63
  * Please define the label in culture with key 'unitPC' for ProductUnit.PC like that
63
64
  * @param unit Unit
64
65
  * @param func Label delegate
66
+ * @param isJoined Add the join label like 'per Kg' for Kg
65
67
  * @returns Label
66
68
  */
67
- export function getUnitLabel(unit: ProductUnit, func: ICultureGet) {
69
+ export function getUnitLabel(
70
+ unit: ProductUnit,
71
+ func: ICultureGet,
72
+ isJoined?: boolean
73
+ ) {
68
74
  const key = ProductUnit[unit];
69
- return func('unit' + key) ?? key;
75
+ const label = func('unit' + key) ?? key;
76
+ if (isJoined) {
77
+ const jLabel = func('unitJoin');
78
+ if (jLabel) return jLabel.format(label);
79
+ }
80
+ return label;
70
81
  }
71
82
 
72
83
  /**
@@ -74,13 +85,61 @@ export namespace BusinessUtils {
74
85
  * @param func Label delegate
75
86
  * @returns Units
76
87
  */
77
- export function getUnits(func: ICultureGet): IdLabelDto[] {
78
- return DataTypes.getEnumKeys(ProductUnit).map((key) => {
79
- const id = DataTypes.getEnumByKey(ProductUnit, key)!;
88
+ export function getUnits(func: ICultureGet): IdLabelDto[];
89
+
90
+ /**
91
+ *
92
+ * Get all product units
93
+ * @param func Label delegate
94
+ * @param options Define the order and limit the items
95
+ * @param isJoined Add the join label like 'per Kg' for Kg
96
+ * @returns Units
97
+ */
98
+ export function getUnits(
99
+ func: ICultureGet,
100
+ options?: string[],
101
+ isJoined?: boolean
102
+ ): IdLabelDto[];
103
+
104
+ /**
105
+ *
106
+ * Get all product units
107
+ * @param func Label delegate
108
+ * @param options Define the order and limit the items
109
+ * @param isJoined Add the join label like 'per Kg' for Kg
110
+ * @returns Units
111
+ */
112
+ export function getUnits(
113
+ func: ICultureGet,
114
+ options?: string[],
115
+ isJoined?: boolean
116
+ ): IdLabelDto[] {
117
+ options ??= DataTypes.getEnumKeys(ProductUnit);
118
+ return options.map((key) => {
119
+ const id = DataTypes.getEnumByKey(ProductUnit, key)! as number;
80
120
  return {
81
121
  id,
82
- label: getUnitLabel(id, func)
122
+ label: getUnitLabel(id, func, isJoined).formatInitial(true)
83
123
  };
84
124
  });
85
125
  }
126
+
127
+ /**
128
+ *
129
+ * Get all repeat options
130
+ * @param func Label delegate
131
+ * @param options Define the order and limit the items
132
+ * @param isJoined Add the join label like 'per Kg' for Kg
133
+ * @returns Units
134
+ */
135
+ export function getRepeatOptions(
136
+ func: ICultureGet,
137
+ options?: string[],
138
+ isJoined: boolean = true
139
+ ): IdLabelDto[] {
140
+ options ??= DataTypes.getEnumKeys(RepeatOption);
141
+ isJoined ??= true;
142
+
143
+ return getUnits(func, options, isJoined);
144
+ }
86
145
  }
@@ -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
  */
@@ -1,77 +1,61 @@
1
+ import { RepeatOption } from './RepeatOption';
2
+
1
3
  /**
2
- * Product units enum
3
- * See com.etsoo.CoreFramework.Business.ProductUnit
4
+ * Product base units
5
+ * 1 - 9
4
6
  */
5
- export enum ProductUnit {
7
+ export enum ProductBaseUnit {
6
8
  /**
7
9
  * Picese
8
10
  * 件
9
11
  */
10
- PC = 0,
12
+ PC = 1,
11
13
 
12
14
  /**
13
15
  * Set
14
16
  * 套
15
17
  */
16
- SET = 1,
17
-
18
- /**
19
- * Year
20
- * 年
21
- */
22
- YEAR = 10,
23
-
24
- /**
25
- * Quater
26
- * 季
27
- */
28
- QUATER = 11,
29
-
30
- /**
31
- * Month
32
- * 月
33
- */
34
- MONTH = 12,
35
-
36
- /**
37
- * Fortnight
38
- * 两周
39
- */
40
- FORNIGHT = 13,
41
-
42
- /**
43
- * Week
44
- * 周
45
- */
46
- WEEK = 14,
47
-
48
- /**
49
- * Day
50
- * 天
51
- */
52
- DAY = 15,
18
+ SET = 2
19
+ }
53
20
 
21
+ /**
22
+ * Product weight units
23
+ * Range 40 - 49
24
+ */
25
+ export enum ProductWeightUnit {
54
26
  /**
55
- * Hour
56
- * 小时
27
+ * Gram
28
+ *
57
29
  */
58
- HOUR = 16,
30
+ GRAM = 40,
59
31
 
60
32
  /**
61
- * Ton
62
- *
33
+ * Half Kg
34
+ *
63
35
  */
64
- TON = 31,
36
+ JIN = 41,
65
37
 
66
38
  /**
67
39
  * Kilogram
68
40
  * 千克
69
41
  */
70
- KILOGRAM = 32,
42
+ KILOGRAM = 42,
71
43
 
72
44
  /**
73
- * Gram
74
- *
45
+ * Ton
46
+ *
75
47
  */
76
- GRAM = 33
48
+ TON = 49
77
49
  }
50
+
51
+ /**
52
+ * Product units enum
53
+ * Repeat options take range 10 - 39
54
+ * See com.etsoo.CoreFramework.Business.ProductUnit
55
+ */
56
+ export const ProductUnit = {
57
+ ...ProductBaseUnit,
58
+ ...RepeatOption,
59
+ ...ProductWeightUnit
60
+ };
61
+ export type ProductUnit = ProductBaseUnit | RepeatOption | ProductWeightUnit;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Repeat options
3
+ * Part of ProductUnit, range 10 - 39
4
+ */
5
+ export enum RepeatOption {
6
+ /**
7
+ * Hour
8
+ * 小时
9
+ */
10
+ HOUR = 10,
11
+
12
+ /**
13
+ * Day
14
+ * 天
15
+ */
16
+ DAY = 11,
17
+
18
+ /**
19
+ * Year
20
+ * 年
21
+ */
22
+ YEAR = 12,
23
+
24
+ /**
25
+ * Week
26
+ * 周
27
+ */
28
+ WEEK = 21,
29
+
30
+ /**
31
+ * Two weeks
32
+ * 两周
33
+ */
34
+ FORTNIGHT = 22,
35
+
36
+ /**
37
+ * Four weeks
38
+ * 四周
39
+ */
40
+ FOURWEEK = 24,
41
+
42
+ /**
43
+ * Month
44
+ * 月
45
+ */
46
+ MONTH = 31,
47
+
48
+ /**
49
+ * Two months
50
+ * 两月
51
+ */
52
+ BIMONTH = 32,
53
+
54
+ /**
55
+ * Quater(3 months)
56
+ * 季(三个月)
57
+ */
58
+ QUATER = 33,
59
+
60
+ /**
61
+ * Half a year
62
+ * 半年
63
+ */
64
+ HALFYEAR = 36
65
+ }
@@ -12,6 +12,7 @@
12
12
  "creation": "Creation",
13
13
  "currency": "Currency",
14
14
  "delete": "Delete",
15
+ "deleteConfirm": "Are you sure you want to permanently delete this {0}?",
15
16
  "description": "Description",
16
17
  "done": "Done",
17
18
  "edit": "Edit",
@@ -43,6 +44,7 @@
43
44
  "pageNotFound": "Page Not Found",
44
45
  "prompt": "Input",
45
46
  "pullToRefresh": "Pull down to refresh",
47
+ "record": "Record",
46
48
  "refresh": "Refresh",
47
49
  "refreshing": "Refreshing",
48
50
  "releaseToRefresh": "Release to refresh",
@@ -63,8 +65,12 @@
63
65
  "showIt": "Show it",
64
66
  "signout": "Sign out",
65
67
  "smartERP": "SmartERP",
68
+ "sortTip": "Drag and drop items to sort",
66
69
  "status": "Status",
70
+ "statusApproved": "Approved",
67
71
  "statusArchived": "Archived",
72
+ "statusAudited": "Audited",
73
+ "statusCompleted": "Completed",
68
74
  "statusDeleted": "Deleted",
69
75
  "statusFlaged": "Flaged",
70
76
  "statusNormal": "Normla",
@@ -75,6 +81,22 @@
75
81
  "tokenExpiry": "Your session is about to expire. Click the Cancel button to continue",
76
82
  "yes": "Yes",
77
83
  "unknownError": "Unknown Error",
84
+ "unitJoin": "per {0}",
85
+ "unitPC": "PC",
86
+ "unitSET": "SET",
87
+ "unitHOUR": "Hour",
88
+ "unitDAY": "Day",
89
+ "unitYEAR": "Year",
90
+ "unitWEEK": "Week",
91
+ "unitFORTNIGHT": "Fortnight",
92
+ "unitFOURWEEK": "4-week",
93
+ "unitMONTH": "Month",
94
+ "unitBIMONTH": "2-month",
95
+ "unitQUATER": "Quater",
96
+ "unitHALFYEAR": "6-month",
97
+ "unitGRAM": "g",
98
+ "unitJIN": "½Kg",
99
+ "unitKILOGRAM": "Kg",
78
100
  "warning": "Warning",
79
101
  "welcome": "{0}, welcome!"
80
102
  }
@@ -12,6 +12,7 @@
12
12
  "creation": "登记时间",
13
13
  "currency": "币种",
14
14
  "delete": "删除",
15
+ "deleteConfirm": "确定要永久删除此{0}吗?",
15
16
  "description": "描述",
16
17
  "done": "完成",
17
18
  "edit": "修改",
@@ -43,6 +44,7 @@
43
44
  "pageNotFound": "找不到页面",
44
45
  "prompt": "输入",
45
46
  "pullToRefresh": "下拉刷新",
47
+ "record": "记录",
46
48
  "refresh": "刷新",
47
49
  "refreshing": "正在刷新",
48
50
  "releaseToRefresh": "释放刷新",
@@ -63,8 +65,12 @@
63
65
  "showIt": "显示",
64
66
  "signout": "退出",
65
67
  "smartERP": "司友云ERP",
68
+ "sortTip": "拖拽项目进行排序",
66
69
  "status": "状态",
70
+ "statusApproved": "已批准",
67
71
  "statusArchived": "已归档",
72
+ "statusAudited": "已审核",
73
+ "statusCompleted": "已完成",
68
74
  "statusDeleted": "已删除",
69
75
  "statusFlaged": "已标记",
70
76
  "statusNormal": "正常",
@@ -75,6 +81,23 @@
75
81
  "tokenExpiry": "您的会话即将过期。点击 取消 按钮继续使用",
76
82
  "yes": "是",
77
83
  "unknownError": "未知错误",
84
+ "unitJoin": "每{0}",
85
+ "unitPC": "件",
86
+ "unitSET": "套",
87
+ "unitHOUR": "小时",
88
+ "unitDAY": "天",
89
+ "unitYEAR": "年",
90
+ "unitWEEK": "周",
91
+ "unitFORTNIGHT": "两周",
92
+ "unitFOURWEEK": "四周",
93
+ "unitMONTH": "月",
94
+ "unitBIMONTH": "两月",
95
+ "unitQUATER": "季度",
96
+ "unitHALFYEAR": "半年",
97
+ "unitGRAM": "克",
98
+ "unitJIN": "斤",
99
+ "unitKILOGRAM": "公斤",
100
+ "unitTON": "吨",
78
101
  "warning": "警告",
79
102
  "welcome": "{0}, 欢迎光临!"
80
103
  }