oak-pay-business 2.2.1 → 2.2.3

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 (169) hide show
  1. package/es/aspects/AspectDict.d.ts +3 -3
  2. package/es/aspects/index.d.ts +2 -1
  3. package/es/checkers/accountOper.js +4 -3
  4. package/es/checkers/offlineAccount.js +4 -1
  5. package/es/checkers/order.js +39 -0
  6. package/es/checkers/refund.js +1 -0
  7. package/es/components/AbstractComponents.d.ts +15 -10
  8. package/es/components/account/detail/web.pc.module.less +68 -68
  9. package/es/components/offlineAccount/upsert/web.pc.js +1 -1
  10. package/es/components/order/pay/index.js +1 -1
  11. package/es/components/order/pay/info.js +6 -6
  12. package/es/components/order/pay/info.module.less +24 -24
  13. package/es/components/order/pay/web.mobile.module.less +35 -35
  14. package/es/components/order/pay/web.pc.module.less +35 -35
  15. package/es/components/payConfig/upsert/offline/web.pc.module.less +4 -4
  16. package/es/components/payConfig/upsert/web.pc.module.less +10 -10
  17. package/es/components/sysAccount/survey/locales/zh-CN.json +3 -1
  18. package/es/components/sysAccount/survey/web.pc.js +69 -32
  19. package/es/components/sysAccount/survey/web.pc.module.less +3 -2
  20. package/es/components/sysAccount/transferList/index.d.ts +3 -0
  21. package/es/components/sysAccount/transferList/index.js +52 -0
  22. package/es/components/sysAccount/transferList/index.json +1 -0
  23. package/es/components/sysAccount/transferList/locales/zh-CN.json +6 -0
  24. package/es/components/sysAccount/transferList/web.pc.d.ts +12 -0
  25. package/es/components/sysAccount/transferList/web.pc.js +45 -0
  26. package/es/components/sysAccountMove/create/index.d.ts +7 -0
  27. package/es/components/sysAccountMove/create/index.js +145 -0
  28. package/es/components/sysAccountMove/create/index.json +1 -0
  29. package/es/components/sysAccountMove/create/locales/zh-CN.json +6 -0
  30. package/es/components/sysAccountMove/create/web.pc.d.ts +26 -0
  31. package/es/components/sysAccountMove/create/web.pc.js +68 -0
  32. package/es/components/sysAccountOper/list/index.d.ts +5 -0
  33. package/es/components/sysAccountOper/list/index.js +127 -0
  34. package/es/components/sysAccountOper/list/index.json +1 -0
  35. package/es/components/sysAccountOper/list/locales/zh-CN.json +5 -0
  36. package/es/components/sysAccountOper/list/web.module.less +42 -0
  37. package/es/components/sysAccountOper/list/web.pc.d.ts +25 -0
  38. package/es/components/sysAccountOper/list/web.pc.js +36 -0
  39. package/es/components/withdrawAccount/list/index.less +8 -0
  40. package/es/components/withdrawAccount/list/index.xml +6 -1
  41. package/es/components/withdrawTransfer/list/locales/zh-CN.json +1 -1
  42. package/es/components/wpAccount/upsert/web.pc.js +1 -1
  43. package/es/configuration/attrUpdateMatrix.js +2 -2
  44. package/es/data/actionAuth.js +7 -2
  45. package/es/data/i18n.js +53 -3
  46. package/es/data/path.js +2 -2
  47. package/es/entities/AccountOper.d.ts +1 -1
  48. package/es/entities/AccountOper.js +3 -1
  49. package/es/entities/OfflineAccount.d.ts +1 -1
  50. package/es/entities/OfflineAccount.js +8 -2
  51. package/es/entities/Order.d.ts +2 -1
  52. package/es/entities/Order.js +1 -0
  53. package/es/entities/SysAccountMove.d.ts +13 -0
  54. package/es/entities/SysAccountMove.js +18 -0
  55. package/es/entities/SysAccountOper.d.ts +4 -1
  56. package/es/entities/SysAccountOper.js +1 -0
  57. package/es/entities/WpAccount.d.ts +1 -1
  58. package/es/entities/WpAccount.js +8 -2
  59. package/es/locales/error/zh-CN.json +9 -0
  60. package/es/locales/offlineAccount/zh-CN.json +2 -1
  61. package/es/oak-app-domain/AccountOper/Schema.d.ts +1 -1
  62. package/es/oak-app-domain/AccountOper/Storage.js +1 -1
  63. package/es/oak-app-domain/AccountOper/Style.js +1 -0
  64. package/es/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
  65. package/es/oak-app-domain/EntityDict.d.ts +2 -0
  66. package/es/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
  67. package/es/oak-app-domain/OfflineAccount/Action.js +1 -1
  68. package/es/oak-app-domain/OfflineAccount/Style.js +4 -1
  69. package/es/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
  70. package/es/oak-app-domain/Order/Schema.d.ts +8 -2
  71. package/es/oak-app-domain/Order/Storage.js +3 -1
  72. package/es/oak-app-domain/Order/locales/zh_CN.json +1 -1
  73. package/es/oak-app-domain/Path/Schema.d.ts +6 -0
  74. package/es/oak-app-domain/Path/Storage.js +6 -0
  75. package/es/oak-app-domain/Path/locales/zh_CN.json +1 -1
  76. package/es/oak-app-domain/Storage.js +2 -0
  77. package/es/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
  78. package/es/oak-app-domain/SysAccountMove/Schema.js +1 -0
  79. package/es/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
  80. package/es/oak-app-domain/SysAccountMove/Storage.js +31 -0
  81. package/es/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
  82. package/es/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
  83. package/es/oak-app-domain/SysAccountOper/Storage.js +4 -0
  84. package/es/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
  85. package/es/oak-app-domain/System/Schema.d.ts +12 -0
  86. package/es/oak-app-domain/User/Schema.d.ts +12 -0
  87. package/es/oak-app-domain/WpAccount/Action.d.ts +1 -1
  88. package/es/oak-app-domain/WpAccount/Action.js +1 -1
  89. package/es/oak-app-domain/WpAccount/Style.js +4 -1
  90. package/es/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
  91. package/es/oak-app-domain/_SubQuery.d.ts +12 -0
  92. package/es/triggers/pay.js +149 -46
  93. package/es/triggers/refund.js +3 -0
  94. package/es/triggers/withdraw.d.ts +1 -1
  95. package/es/types/RuntimeCxt.d.ts +1 -1
  96. package/es/types/sysAccountOper.d.ts +1 -0
  97. package/es/types/sysAccountOper.js +1 -0
  98. package/es/utils/payClazz/Account.js +3 -2
  99. package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
  100. package/es/utils/wpProductFrontend.js +1 -1
  101. package/lib/aspects/AspectDict.d.ts +3 -3
  102. package/lib/aspects/index.d.ts +2 -1
  103. package/lib/aspects/withdraw.d.ts +8 -8
  104. package/lib/checkers/accountOper.js +4 -3
  105. package/lib/checkers/offlineAccount.js +4 -1
  106. package/lib/checkers/order.js +39 -0
  107. package/lib/checkers/refund.js +1 -0
  108. package/lib/configuration/attrUpdateMatrix.js +2 -2
  109. package/lib/data/actionAuth.js +7 -2
  110. package/lib/data/i18n.js +53 -3
  111. package/lib/data/path.js +2 -2
  112. package/lib/entities/AccountOper.d.ts +1 -1
  113. package/lib/entities/AccountOper.js +3 -1
  114. package/lib/entities/OfflineAccount.d.ts +1 -1
  115. package/lib/entities/OfflineAccount.js +8 -2
  116. package/lib/entities/Order.d.ts +2 -1
  117. package/lib/entities/Order.js +1 -0
  118. package/lib/entities/SysAccountMove.d.ts +13 -0
  119. package/lib/entities/SysAccountMove.js +21 -0
  120. package/lib/entities/SysAccountOper.d.ts +4 -1
  121. package/lib/entities/SysAccountOper.js +1 -0
  122. package/lib/entities/WpAccount.d.ts +1 -1
  123. package/lib/entities/WpAccount.js +8 -2
  124. package/lib/locales/error/zh-CN.json +9 -0
  125. package/lib/locales/offlineAccount/zh-CN.json +2 -1
  126. package/lib/oak-app-domain/AccountOper/Schema.d.ts +1 -1
  127. package/lib/oak-app-domain/AccountOper/Storage.js +1 -1
  128. package/lib/oak-app-domain/AccountOper/Style.js +1 -0
  129. package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
  130. package/lib/oak-app-domain/EntityDict.d.ts +2 -0
  131. package/lib/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
  132. package/lib/oak-app-domain/OfflineAccount/Action.js +1 -1
  133. package/lib/oak-app-domain/OfflineAccount/Style.js +4 -1
  134. package/lib/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
  135. package/lib/oak-app-domain/Order/Schema.d.ts +8 -2
  136. package/lib/oak-app-domain/Order/Storage.js +3 -1
  137. package/lib/oak-app-domain/Order/locales/zh_CN.json +1 -1
  138. package/lib/oak-app-domain/Path/Schema.d.ts +6 -0
  139. package/lib/oak-app-domain/Storage.js +18 -16
  140. package/lib/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
  141. package/lib/oak-app-domain/SysAccountMove/Schema.js +2 -0
  142. package/lib/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
  143. package/lib/oak-app-domain/SysAccountMove/Storage.js +34 -0
  144. package/lib/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
  145. package/lib/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
  146. package/lib/oak-app-domain/SysAccountOper/Storage.js +4 -0
  147. package/lib/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
  148. package/lib/oak-app-domain/System/Schema.d.ts +12 -0
  149. package/lib/oak-app-domain/System/Storage.js +1 -2
  150. package/lib/oak-app-domain/User/Schema.d.ts +12 -0
  151. package/lib/oak-app-domain/WpAccount/Action.d.ts +1 -1
  152. package/lib/oak-app-domain/WpAccount/Action.js +1 -1
  153. package/lib/oak-app-domain/WpAccount/Style.js +4 -1
  154. package/lib/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
  155. package/lib/oak-app-domain/_SubQuery.d.ts +12 -0
  156. package/lib/triggers/pay.js +149 -46
  157. package/lib/triggers/refund.js +3 -0
  158. package/lib/types/RuntimeCxt.d.ts +1 -1
  159. package/lib/types/sysAccountOper.d.ts +1 -0
  160. package/lib/types/sysAccountOper.js +2 -0
  161. package/lib/utils/payClazz/Account.js +3 -2
  162. package/lib/utils/wpProductFrontend.js +1 -1
  163. package/package.json +171 -200
  164. package/src/entities/AccountOper.ts +4 -2
  165. package/src/entities/OfflineAccount.ts +12 -5
  166. package/src/entities/Order.ts +3 -1
  167. package/src/entities/SysAccountMove.ts +39 -0
  168. package/src/entities/SysAccountOper.ts +5 -1
  169. package/src/entities/WpAccount.ts +11 -4
@@ -1,9 +1,9 @@
1
- import { BRC } from '../types/RuntimeCxt';
1
+ import { BackendRuntimeContext } from '../context/BackendRuntimeContext';
2
2
  import { EntityDict } from '../oak-app-domain';
3
- export type AspectDict = {
3
+ export type AspectDict<ED extends EntityDict> = {
4
4
  getWithdrawCreateData: (params: {
5
5
  accountId: string;
6
6
  price: number;
7
7
  withdrawAccountId?: string;
8
- }, context: BRC) => Promise<EntityDict['withdraw']['CreateSingle']['data']>;
8
+ }, context: BackendRuntimeContext<ED>) => Promise<EntityDict['withdraw']['CreateSingle']['data']>;
9
9
  };
@@ -1,4 +1,5 @@
1
+ import { EntityDict } from '../oak-app-domain';
1
2
  import { AspectDict } from './AspectDict';
2
- declare const aspectDict: AspectDict;
3
+ declare const aspectDict: AspectDict<EntityDict>;
3
4
  export default aspectDict;
4
5
  export { AspectDict, };
@@ -54,14 +54,15 @@ const checkers = [
54
54
  case 'refund':
55
55
  case 'withdraw': {
56
56
  if (totalPlus >= 0 || availPlus >= 0 || totalPlus !== availPlus) {
57
- throw new OakInputIllegalException('accountOper', ['availPlus'], 'accountOper为withdraw时,其totalPlus和availPlus必须为不相等的负数');
57
+ throw new OakInputIllegalException('accountOper', ['availPlus'], `accountOper为${type}时,其totalPlus和availPlus必须为不相等的负数`);
58
58
  }
59
59
  break;
60
60
  }
61
61
  case 'refundFailure':
62
- case 'withdrawBack': {
62
+ case 'withdrawBack':
63
+ case 'consumeBack': {
63
64
  if (totalPlus <= 0 || availPlus <= 0 || totalPlus !== availPlus) {
64
- throw new OakInputIllegalException('accountOper', ['availPlus'], 'accountOper为withdraw时,其totalPlus和availPlus必须为不相等的正数');
65
+ throw new OakInputIllegalException('accountOper', ['availPlus'], `accountOper为${type}时,其totalPlus和availPlus必须为不相等的正数`);
65
66
  }
66
67
  break;
67
68
  }
@@ -27,13 +27,16 @@ function checkAttributes(data) {
27
27
  }
28
28
  }
29
29
  }
30
- const { refundCompensateRatio, refundGapDays } = data;
30
+ const { refundCompensateRatio, refundGapDays, withdrawTransferLossRatio } = data;
31
31
  if (typeof refundGapDays !== 'number' || refundGapDays < 0) {
32
32
  throw new OakInputIllegalException('offlineAccount', ['refundGapDays'], 'offlineAccount::error.refundGapDaysNotNegative');
33
33
  }
34
34
  if (typeof refundCompensateRatio !== 'number' || refundCompensateRatio < 0 || refundCompensateRatio > 100) {
35
35
  throw new OakInputIllegalException('offlineAccount', ['refundGapDays'], 'offlineAccount::error.refundCompensateIllegal');
36
36
  }
37
+ if (typeof withdrawTransferLossRatio !== 'number' || withdrawTransferLossRatio < 0) {
38
+ throw new OakInputIllegalException('offlineAccount', ['withdrawTransferLossRatio'], 'offlineAccount::error.withdrawTransferLossRatioNotNegative');
39
+ }
37
40
  }
38
41
  const checkers = [
39
42
  {
@@ -1,5 +1,6 @@
1
1
  import assert from 'assert';
2
2
  import { pipeline } from 'oak-domain/lib/utils/executor';
3
+ import { OakInputIllegalException } from 'oak-domain/lib/types';
3
4
  const checkers = [
4
5
  {
5
6
  type: 'logical',
@@ -20,6 +21,44 @@ const checkers = [
20
21
  }
21
22
  }
22
23
  },
24
+ {
25
+ type: 'logicalData',
26
+ entity: 'order',
27
+ action: 'startPaying',
28
+ checker: (operation, context) => {
29
+ const { data, filter } = operation;
30
+ assert(typeof filter.id === 'string');
31
+ return pipeline(() => context.select('order', {
32
+ data: {
33
+ id: 1,
34
+ price: 1,
35
+ paid: 1,
36
+ refunded: 1,
37
+ iState: 1,
38
+ },
39
+ filter: {
40
+ id: filter.id,
41
+ },
42
+ }, {}), (orders) => {
43
+ const [order] = orders;
44
+ const { price, paid, iState, allowPartialPay } = order;
45
+ assert(['unpaid', 'partiallyRefunded'].includes(iState) && paid === 0);
46
+ const { pay$order: pays } = data;
47
+ if (!(pays instanceof Array) || !pays.length) {
48
+ throw new OakInputIllegalException('order', ['pay$order'], 'error::order.nonePay');
49
+ }
50
+ let amount = 0;
51
+ pays.forEach(({ action, data }) => {
52
+ assert(action === 'create');
53
+ const { price } = data;
54
+ amount += price;
55
+ });
56
+ if (!allowPartialPay && amount !== price) {
57
+ throw new OakInputIllegalException('order', ['pay$order'], 'error::order.payAmountNotEnough');
58
+ }
59
+ });
60
+ }
61
+ },
23
62
  {
24
63
  // 订单结算,将收入分帐到相关的Account中
25
64
  type: 'logicalData',
@@ -15,6 +15,7 @@ const checkers = [
15
15
  },
16
16
  },
17
17
  action: 'create',
18
+ errMsg: 'error::refund.create.hasAnotherRefunding',
18
19
  },
19
20
  {
20
21
  entity: 'refund',
@@ -16,8 +16,8 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
16
16
  attributes: OakAbsAttrDef[];
17
17
  data: RowWithActions<EntityDict, T>[];
18
18
  loading: boolean;
19
- tablePagination?: any;
20
- rowSelection?: any;
19
+ tablePagination?: false | import("antd").TablePaginationConfig | undefined;
20
+ rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
21
21
  hideHeader?: boolean | undefined;
22
22
  disableSerialNumber?: boolean | undefined;
23
23
  size?: "small" | "middle" | "large" | undefined;
@@ -27,7 +27,7 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
27
27
  } & {
28
28
  scrollToFirstRowOnChange?: boolean | undefined;
29
29
  }) | undefined;
30
- locale?: any;
30
+ locale?: import("antd/es/table/interface").TableLocale | undefined;
31
31
  opWidth?: number | undefined;
32
32
  }>) => React.ReactElement;
33
33
  declare const ListPro: <T extends keyof EntityDict>(props: {
@@ -43,29 +43,34 @@ declare const ListPro: <T extends keyof EntityDict>(props: {
43
43
  attributes: OakAbsAttrDef[];
44
44
  data: RowWithActions<EntityDict, T>[];
45
45
  loading?: boolean | undefined;
46
- tablePagination?: any;
47
- rowSelection?: any;
46
+ tablePagination?: false | import("antd").TablePaginationConfig | undefined;
47
+ rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
48
48
  disableSerialNumber?: boolean | undefined;
49
49
  size?: "small" | "middle" | "large" | undefined;
50
- scroll?: any;
51
- locale?: any;
50
+ scroll?: ({
51
+ x?: string | number | true | undefined;
52
+ y?: string | number | undefined;
53
+ } & {
54
+ scrollToFirstRowOnChange?: boolean | undefined;
55
+ }) | undefined;
56
+ locale?: import("antd/es/table/interface").TableLocale | undefined;
52
57
  opWidth?: number | undefined;
53
58
  }) => React.ReactElement;
54
59
  declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
55
- column?: number | Record<Breakpoint, number> | undefined;
60
+ column?: number | Record<import("antd").Breakpoint, number> | undefined;
56
61
  entity: T;
57
62
  attributes: OakAbsAttrDef[];
58
63
  data: Partial<EntityDict[T]["Schema"]>;
59
64
  title?: string | undefined;
60
65
  bordered?: boolean | undefined;
61
- layout?: "horizontal" | "vertical" | undefined;
66
+ layout?: "vertical" | "horizontal" | undefined;
62
67
  }>) => React.ReactElement;
63
68
  declare const Upsert: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
64
69
  helps: Record<string, string>;
65
70
  entity: T;
66
71
  attributes: OakAbsAttrUpsertDef<EntityDict, T, string | number>[];
67
72
  data: EntityDict[T]["Schema"];
68
- layout: "horizontal" | "vertical";
73
+ layout: "vertical" | "horizontal";
69
74
  mode: "default" | "card";
70
75
  }>) => React.ReactElement;
71
76
  export { FilterPanel, List, ListPro, Detail, Upsert, ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, };
@@ -1,69 +1,69 @@
1
- .card {
2
- width: 100%;
3
-
4
- .content {
5
- display: flex;
6
- flex-direction: column;
7
- align-items: stretch;
8
-
9
-
10
- .oper {
11
- align-self: center;
12
- width: 70%;
13
- margin-bottom: 28px;
14
- display: flex;
15
- flex-direction: column;
16
- align-items: stretch;
17
-
18
- .title {
19
- margin-bottom: 28px;
20
- align-self: flex-start;
21
- color: var(--oak-color-primary3);
22
- font-size: var(--oak-font-size-title-medium);
23
- }
24
- }
25
- }
26
- }
27
-
28
- .grid {
29
- min-width: 133px;
30
- border-radius: 6px;
31
- padding: 16px;
32
- display: flex;
33
- flex-direction: column;
34
- margin: 13px;
35
-
36
- .label {
37
- font-size: 16px;
38
- font-weight: 400;
39
- color: var(--oak-color-primary);
40
- margin-bottom: 12px;
41
- }
42
-
43
- .value {
44
- font-size: 24px;
45
- font-weight: 600;
46
- color: var(--oak-color-primary);
47
- line-height: 33.6px;
48
- }
49
- }
50
-
51
- .fortify {
52
- background-color: var(--oak-color-primary-light);
53
-
54
- .label {
55
- font-weight: 900;
56
- }
57
-
58
- .value {
59
- font-weight: bolder;
60
- }
61
- }
62
-
63
- .uf {
64
- margin: 12px;
65
- display: flex;
66
- flex-direction: column;
67
- align-items: center;
68
- padding: 12px;
1
+ .card {
2
+ width: 100%;
3
+
4
+ .content {
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: stretch;
8
+
9
+
10
+ .oper {
11
+ align-self: center;
12
+ width: 70%;
13
+ margin-bottom: 28px;
14
+ display: flex;
15
+ flex-direction: column;
16
+ align-items: stretch;
17
+
18
+ .title {
19
+ margin-bottom: 28px;
20
+ align-self: flex-start;
21
+ color: var(--oak-color-primary3);
22
+ font-size: var(--oak-font-size-title-medium);
23
+ }
24
+ }
25
+ }
26
+ }
27
+
28
+ .grid {
29
+ min-width: 133px;
30
+ border-radius: 6px;
31
+ padding: 16px;
32
+ display: flex;
33
+ flex-direction: column;
34
+ margin: 13px;
35
+
36
+ .label {
37
+ font-size: 16px;
38
+ font-weight: 400;
39
+ color: var(--oak-color-primary);
40
+ margin-bottom: 12px;
41
+ }
42
+
43
+ .value {
44
+ font-size: 24px;
45
+ font-weight: 600;
46
+ color: var(--oak-color-primary);
47
+ line-height: 33.6px;
48
+ }
49
+ }
50
+
51
+ .fortify {
52
+ background-color: var(--oak-color-primary-light);
53
+
54
+ .label {
55
+ font-weight: 900;
56
+ }
57
+
58
+ .value {
59
+ font-weight: bolder;
60
+ }
61
+ }
62
+
63
+ .uf {
64
+ margin: 12px;
65
+ display: flex;
66
+ flex-direction: column;
67
+ align-items: center;
68
+ padding: 12px;
69
69
  }
@@ -74,7 +74,7 @@ export default function render(props) {
74
74
  update({ allowWithdrawTransfer });
75
75
  }}/>
76
76
  </Form.Item>
77
- <Form.Item label={t('offlineAccount:attr.withdrawTransferLossRatio')} help={t('placeholder.withdrawTransferLossRatio')}>
77
+ <Form.Item label={t('offlineAccount:attr.withdrawTransferLossRatio')} help={t('placeholder.withdrawTransferLossRatio')} required>
78
78
  <InputNumber value={offlineAccount.withdrawTransferLossRatio} max={5} min={0.01} addonAfter={"%"} step={0.01} precision={2} onChange={(value) => {
79
79
  const withdrawTransferLossRatio = value;
80
80
  update({ withdrawTransferLossRatio });
@@ -83,7 +83,7 @@ export default OakComponent({
83
83
  accountPriceYuan: undefined,
84
84
  rest,
85
85
  restYuan: ToYuan(rest),
86
- });
86
+ }, () => this.tryCreatePays());
87
87
  }
88
88
  },
89
89
  setAccountPrice(price) {
@@ -1,11 +1,11 @@
1
1
  import Styles from './info.module.less';
2
2
  export default function Info(props) {
3
3
  const { price, t } = props;
4
- return (<div className={Styles.info}>
5
- <div className={Styles.should}>{t('price')}</div>
6
- <div className={Styles.price}>
7
- <div>{t('common::pay.symbol')}</div>
8
- <div>{price}</div>
9
- </div>
4
+ return (<div className={Styles.info}>
5
+ <div className={Styles.should}>{t('price')}</div>
6
+ <div className={Styles.price}>
7
+ <div>{t('common::pay.symbol')}</div>
8
+ <div>{price}</div>
9
+ </div>
10
10
  </div>);
11
11
  }
@@ -1,25 +1,25 @@
1
-
2
- .info {
3
- margin: 8px;
4
- height: 140px;
5
- display: flex;
6
- flex-direction: column;
7
- align-items: center;
8
- justify-content: center;
9
- background-color: var(--oak-color-info);
10
-
11
- .should {
12
- font-size: large;
13
- font-weight: bold;
14
- }
15
-
16
- .price {
17
- display: flex;
18
- flex-direction: row;
19
- padding: 3px;
20
- font-size: xx-large;
21
- font-weight: bolder;
22
- color: var(--oak-color-primary);
23
- align-items: baseline;
24
- }
1
+
2
+ .info {
3
+ margin: 8px;
4
+ height: 140px;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ justify-content: center;
9
+ background-color: var(--oak-color-info);
10
+
11
+ .should {
12
+ font-size: large;
13
+ font-weight: bold;
14
+ }
15
+
16
+ .price {
17
+ display: flex;
18
+ flex-direction: row;
19
+ padding: 3px;
20
+ font-size: xx-large;
21
+ font-weight: bolder;
22
+ color: var(--oak-color-primary);
23
+ align-items: baseline;
24
+ }
25
25
  }
@@ -1,36 +1,36 @@
1
- .container {
2
- width: 100%;
3
- height: 100%;
4
- display: flex;
5
- flex-direction: column;
6
- align-items: stretch;
7
- background-color: var(--oak-bg-color-page);
8
- // min-height: 500px;
9
-
10
- .ctrl {
11
- margin: 8px;
12
- margin-top: 10px;
13
- flex: 1;
14
-
15
- .pc1 {
16
- width: 100%;
17
- height: 100%;
18
- display: flex;
19
- flex-direction: column;
20
- margin-top: 4px;
21
-
22
- .content {
23
- background-color: var(--oak-bg-color-container);
24
- padding: 4px;
25
- border-radius: 2px;
26
- padding: 16px;
27
-
28
- .tips {
29
- color: var(--oak-color-warning);
30
- font-size: small;
31
- margin-top: 3px;
32
- }
33
- }
34
- }
35
- }
1
+ .container {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: stretch;
7
+ background-color: var(--oak-bg-color-page);
8
+ // min-height: 500px;
9
+
10
+ .ctrl {
11
+ margin: 8px;
12
+ margin-top: 10px;
13
+ flex: 1;
14
+
15
+ .pc1 {
16
+ width: 100%;
17
+ height: 100%;
18
+ display: flex;
19
+ flex-direction: column;
20
+ margin-top: 4px;
21
+
22
+ .content {
23
+ background-color: var(--oak-bg-color-container);
24
+ padding: 4px;
25
+ border-radius: 2px;
26
+ padding: 16px;
27
+
28
+ .tips {
29
+ color: var(--oak-color-warning);
30
+ font-size: small;
31
+ margin-top: 3px;
32
+ }
33
+ }
34
+ }
35
+ }
36
36
  }
@@ -1,36 +1,36 @@
1
- .container {
2
- width: 100%;
3
- height: 100%;
4
- display: flex;
5
- flex-direction: column;
6
- align-items: stretch;
7
- background-color: var(--oak-bg-color-page);
8
- // min-height: 500px;
9
-
10
- .ctrl {
11
- margin: 8px;
12
- margin-top: 10px;
13
- flex: 1;
14
-
15
- .pc1 {
16
- width: 100%;
17
- height: 100%;
18
- display: flex;
19
- flex-direction: column;
20
- margin-top: 4px;
21
-
22
- .content {
23
- background-color: var(--oak-bg-color-container);
24
- padding: 4px;
25
- border-radius: 2px;
26
- padding: 16px;
27
-
28
- .tips {
29
- color: var(--oak-color-warning);
30
- font-size: small;
31
- margin-left: 10px;
32
- }
33
- }
34
- }
35
- }
1
+ .container {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: stretch;
7
+ background-color: var(--oak-bg-color-page);
8
+ // min-height: 500px;
9
+
10
+ .ctrl {
11
+ margin: 8px;
12
+ margin-top: 10px;
13
+ flex: 1;
14
+
15
+ .pc1 {
16
+ width: 100%;
17
+ height: 100%;
18
+ display: flex;
19
+ flex-direction: column;
20
+ margin-top: 4px;
21
+
22
+ .content {
23
+ background-color: var(--oak-bg-color-container);
24
+ padding: 4px;
25
+ border-radius: 2px;
26
+ padding: 16px;
27
+
28
+ .tips {
29
+ color: var(--oak-color-warning);
30
+ font-size: small;
31
+ margin-left: 10px;
32
+ }
33
+ }
34
+ }
35
+ }
36
36
  }
@@ -1,5 +1,5 @@
1
- .container {
2
- display: flex;
3
- flex-direction: column;
4
- width: 100%;
1
+ .container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
5
  }
@@ -1,11 +1,11 @@
1
- .empty {
2
- min-height: 600px;
3
- }
4
-
5
- .container {
6
- width: 100%;
7
- display: flex;
8
- flex-direction: column;
9
- align-items: center;
10
- justify-content: center;
1
+ .empty {
2
+ min-height: 600px;
3
+ }
4
+
5
+ .container {
6
+ width: 100%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ justify-content: center;
11
11
  }
@@ -24,5 +24,7 @@
24
24
  "orderPriceSum": "订单总额",
25
25
  "orderManage": "订单管理",
26
26
  "orderList": "订单列表",
27
- "tips1": "总账户余额+退款总额+转账总额+订单总额应该等于系统账户总余额"
27
+ "tips1": "总账户余额+退款总额+转账总额+订单总额应该等于系统账户总余额",
28
+ "move": "移动资金",
29
+ "history": "账单"
28
30
  }