oak-pay-business 3.4.3 → 3.5.0

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 (173) hide show
  1. package/es/aspects/ship.d.ts +1 -1
  2. package/es/checkers/pay.js +1 -1
  3. package/es/components/AbstractComponents.d.ts +11 -72
  4. package/es/components/accountOper/pure/List.pc.d.ts +0 -1
  5. package/es/components/apAccount/config/web.pc.js +1 -0
  6. package/es/components/apAccount/upsert/web.pc.js +1 -0
  7. package/es/components/apProduct/config/web.pc.js +4 -1
  8. package/es/components/apProduct/upsert/web.pc.js +1 -0
  9. package/es/components/offlineAccount/config/web.pc.js +5 -1
  10. package/es/components/offlineAccount/upsert/index.d.ts +0 -1
  11. package/es/components/offlineAccount/upsert/web.pc.js +7 -2
  12. package/es/components/order/list/index.d.ts +0 -1
  13. package/es/components/order/pay/index.d.ts +1 -1
  14. package/es/components/order/pay/info.d.ts +0 -1
  15. package/es/components/order/pay/web.js +3 -1
  16. package/es/components/order/pay/web.pc.js +3 -1
  17. package/es/components/pay/channelPicker2/web.d.ts +0 -1
  18. package/es/components/pay/channelPicker2/web.pc.d.ts +0 -1
  19. package/es/components/pay/detail/web.js +1 -0
  20. package/es/components/pay/detail/web.pc.js +3 -1
  21. package/es/components/pay/list/index.d.ts +0 -1
  22. package/es/components/pay/list/web.pc.js +1 -0
  23. package/es/components/payConfig/system/index.d.ts +0 -1
  24. package/es/components/payConfig/system/web.pc.js +1 -0
  25. package/es/components/refund/list/index.d.ts +0 -1
  26. package/es/components/refund/list/web.pc.js +1 -0
  27. package/es/components/ship/system/index.d.ts +0 -1
  28. package/es/components/ship/wechatMpShip/upsert/index.d.ts +0 -1
  29. package/es/components/ship/wechatMpShip/web.pc.js +2 -2
  30. package/es/components/sysAccount/survey/web.pc.js +6 -1
  31. package/es/components/sysAccount/transferList/index.d.ts +0 -1
  32. package/es/components/withdraw/detail/index.d.ts +0 -1
  33. package/es/components/withdraw/display/web.d.ts +0 -1
  34. package/es/components/withdraw/display/web.pc.d.ts +0 -1
  35. package/es/components/withdraw/list/web.js +1 -1
  36. package/es/components/withdrawTransfer/list/index.d.ts +0 -1
  37. package/es/components/wpAccount/config/web.pc.js +4 -1
  38. package/es/components/wpProduct/config/web.pc.js +4 -1
  39. package/es/components/wpProduct/upsert/web.pc.js +3 -1
  40. package/es/oak-app-domain/ActionDefDict.d.ts +2 -2
  41. package/es/oak-app-domain/ActionDefDict.js +2 -2
  42. package/es/oak-app-domain/ApplicationPassport/Storage.js +3 -0
  43. package/es/oak-app-domain/ApplicationPassport/_baseSchema.d.ts +4 -0
  44. package/es/oak-app-domain/ApplicationPassport/locales/zh_CN.json +2 -1
  45. package/es/oak-app-domain/Captcha/Storage.js +1 -0
  46. package/es/oak-app-domain/Captcha/_baseSchema.d.ts +1 -1
  47. package/es/oak-app-domain/Deposit/Storage.js +1 -0
  48. package/es/oak-app-domain/Deposit/_baseSchema.d.ts +1 -1
  49. package/es/oak-app-domain/EntityDict.d.ts +50 -50
  50. package/es/oak-app-domain/ExtraFile/Storage.js +7 -0
  51. package/es/oak-app-domain/ExtraFile/_baseSchema.d.ts +23 -2
  52. package/es/oak-app-domain/ExtraFile/locales/zh_CN.json +3 -1
  53. package/es/oak-app-domain/Message/Storage.js +1 -0
  54. package/es/oak-app-domain/Message/_baseSchema.d.ts +4 -1
  55. package/es/oak-app-domain/Modi/Storage.js +1 -0
  56. package/es/oak-app-domain/Modi/_baseSchema.d.ts +1 -1
  57. package/es/oak-app-domain/Notification/Storage.js +1 -0
  58. package/es/oak-app-domain/Notification/_baseSchema.d.ts +1 -1
  59. package/es/oak-app-domain/Oper/Storage.js +1 -0
  60. package/es/oak-app-domain/Oper/_baseSchema.d.ts +1 -1
  61. package/es/oak-app-domain/Order/Storage.js +1 -0
  62. package/es/oak-app-domain/Order/_baseSchema.d.ts +1 -1
  63. package/es/oak-app-domain/Passport/Storage.js +1 -1
  64. package/es/oak-app-domain/Passport/Style.js +3 -1
  65. package/es/oak-app-domain/Passport/_baseSchema.d.ts +15 -4
  66. package/es/oak-app-domain/Passport/locales/zh_CN.json +4 -2
  67. package/es/oak-app-domain/Pay/Storage.js +1 -0
  68. package/es/oak-app-domain/Pay/_baseSchema.d.ts +1 -1
  69. package/es/oak-app-domain/Refund/Storage.js +1 -0
  70. package/es/oak-app-domain/Refund/_baseSchema.d.ts +1 -1
  71. package/es/oak-app-domain/SettlePlan/Storage.js +1 -0
  72. package/es/oak-app-domain/SettlePlan/_baseSchema.d.ts +1 -1
  73. package/es/oak-app-domain/Settlement/Storage.js +1 -0
  74. package/es/oak-app-domain/Settlement/_baseSchema.d.ts +1 -1
  75. package/es/oak-app-domain/Ship/Storage.js +1 -0
  76. package/es/oak-app-domain/Ship/_baseSchema.d.ts +1 -1
  77. package/es/oak-app-domain/Storage.js +2 -2
  78. package/es/oak-app-domain/StyleDict.js +2 -2
  79. package/es/oak-app-domain/System/Storage.js +2 -1
  80. package/es/oak-app-domain/User/Storage.js +1 -0
  81. package/es/oak-app-domain/User/_baseSchema.d.ts +1 -1
  82. package/es/oak-app-domain/UserWechatPublicTag/Storage.js +1 -0
  83. package/es/oak-app-domain/UserWechatPublicTag/_baseSchema.d.ts +1 -1
  84. package/es/oak-app-domain/WechatLogin/Storage.js +3 -0
  85. package/es/oak-app-domain/WechatLogin/_baseSchema.d.ts +12 -2
  86. package/es/oak-app-domain/WechatLogin/locales/zh_CN.json +2 -1
  87. package/es/oak-app-domain/WechatMenu/Storage.js +1 -0
  88. package/es/oak-app-domain/WechatMenu/_baseSchema.d.ts +1 -1
  89. package/es/oak-app-domain/WechatPublicTag/Storage.js +1 -0
  90. package/es/oak-app-domain/WechatPublicTag/_baseSchema.d.ts +1 -1
  91. package/es/oak-app-domain/Withdraw/Storage.js +1 -0
  92. package/es/oak-app-domain/Withdraw/_baseSchema.d.ts +1 -1
  93. package/es/oak-app-domain/WithdrawTransfer/Storage.js +1 -0
  94. package/es/oak-app-domain/WithdrawTransfer/_baseSchema.d.ts +1 -1
  95. package/es/timers/index.d.ts +1 -1
  96. package/es/triggers/withdraw.d.ts +1 -1
  97. package/es/utils/pay.d.ts +0 -1
  98. package/es/utils/payClazz/Account.d.ts +2 -2
  99. package/es/utils/payClazz/AliPay/AliPay.d.ts +2 -2
  100. package/es/utils/payClazz/AliPay/AliPay.debug.d.ts +3 -3
  101. package/es/utils/payClazz/Offline.d.ts +2 -2
  102. package/es/utils/payClazz/WechatPay/WechatPay.d.ts +2 -2
  103. package/es/utils/payClazz/WechatPay/WechatPay.debug.d.ts +3 -3
  104. package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
  105. package/es/utils/shipClazz/WechatMpShip/WechatMpShip.js +2 -2
  106. package/es/utils/shipClazz/WechatMpShip/index.d.ts +2 -2
  107. package/lib/aspects/ship.d.ts +1 -1
  108. package/lib/checkers/pay.js +1 -1
  109. package/lib/features/index.js +2 -3
  110. package/lib/oak-app-domain/ActionDefDict.d.ts +2 -2
  111. package/lib/oak-app-domain/ApplicationPassport/Storage.js +3 -0
  112. package/lib/oak-app-domain/ApplicationPassport/_baseSchema.d.ts +4 -0
  113. package/lib/oak-app-domain/ApplicationPassport/locales/zh_CN.json +2 -1
  114. package/lib/oak-app-domain/Captcha/Storage.js +1 -0
  115. package/lib/oak-app-domain/Captcha/_baseSchema.d.ts +1 -1
  116. package/lib/oak-app-domain/Deposit/Storage.js +1 -0
  117. package/lib/oak-app-domain/Deposit/_baseSchema.d.ts +1 -1
  118. package/lib/oak-app-domain/EntityDict.d.ts +50 -50
  119. package/lib/oak-app-domain/ExtraFile/Storage.js +7 -0
  120. package/lib/oak-app-domain/ExtraFile/_baseSchema.d.ts +23 -2
  121. package/lib/oak-app-domain/ExtraFile/locales/zh_CN.json +3 -1
  122. package/lib/oak-app-domain/Message/Storage.js +1 -0
  123. package/lib/oak-app-domain/Message/_baseSchema.d.ts +4 -1
  124. package/lib/oak-app-domain/Modi/Storage.js +1 -0
  125. package/lib/oak-app-domain/Modi/_baseSchema.d.ts +1 -1
  126. package/lib/oak-app-domain/Notification/Storage.js +1 -0
  127. package/lib/oak-app-domain/Notification/_baseSchema.d.ts +1 -1
  128. package/lib/oak-app-domain/Oper/Storage.js +1 -0
  129. package/lib/oak-app-domain/Oper/_baseSchema.d.ts +1 -1
  130. package/lib/oak-app-domain/Order/Storage.js +1 -0
  131. package/lib/oak-app-domain/Order/_baseSchema.d.ts +1 -1
  132. package/lib/oak-app-domain/Passport/Storage.js +1 -1
  133. package/lib/oak-app-domain/Passport/Style.js +3 -1
  134. package/lib/oak-app-domain/Passport/_baseSchema.d.ts +15 -4
  135. package/lib/oak-app-domain/Passport/locales/zh_CN.json +4 -2
  136. package/lib/oak-app-domain/Pay/Storage.js +1 -0
  137. package/lib/oak-app-domain/Pay/_baseSchema.d.ts +1 -1
  138. package/lib/oak-app-domain/Refund/Storage.js +1 -0
  139. package/lib/oak-app-domain/Refund/_baseSchema.d.ts +1 -1
  140. package/lib/oak-app-domain/SettlePlan/Storage.js +1 -0
  141. package/lib/oak-app-domain/SettlePlan/_baseSchema.d.ts +1 -1
  142. package/lib/oak-app-domain/Settlement/Storage.js +1 -0
  143. package/lib/oak-app-domain/Settlement/_baseSchema.d.ts +1 -1
  144. package/lib/oak-app-domain/Ship/Storage.js +1 -0
  145. package/lib/oak-app-domain/Ship/_baseSchema.d.ts +1 -1
  146. package/lib/oak-app-domain/User/Storage.js +1 -0
  147. package/lib/oak-app-domain/User/_baseSchema.d.ts +1 -1
  148. package/lib/oak-app-domain/UserWechatPublicTag/Storage.js +1 -0
  149. package/lib/oak-app-domain/UserWechatPublicTag/_baseSchema.d.ts +1 -1
  150. package/lib/oak-app-domain/WechatLogin/Storage.js +3 -0
  151. package/lib/oak-app-domain/WechatLogin/_baseSchema.d.ts +12 -2
  152. package/lib/oak-app-domain/WechatLogin/locales/zh_CN.json +2 -1
  153. package/lib/oak-app-domain/WechatMenu/Storage.js +1 -0
  154. package/lib/oak-app-domain/WechatMenu/_baseSchema.d.ts +1 -1
  155. package/lib/oak-app-domain/WechatPublicTag/Storage.js +1 -0
  156. package/lib/oak-app-domain/WechatPublicTag/_baseSchema.d.ts +1 -1
  157. package/lib/oak-app-domain/Withdraw/Storage.js +1 -0
  158. package/lib/oak-app-domain/Withdraw/_baseSchema.d.ts +1 -1
  159. package/lib/oak-app-domain/WithdrawTransfer/Storage.js +1 -0
  160. package/lib/oak-app-domain/WithdrawTransfer/_baseSchema.d.ts +1 -1
  161. package/lib/timers/index.d.ts +1 -1
  162. package/lib/triggers/withdraw.d.ts +1 -1
  163. package/lib/utils/pay.d.ts +0 -1
  164. package/lib/utils/payClazz/Account.d.ts +2 -2
  165. package/lib/utils/payClazz/AliPay/AliPay.d.ts +2 -2
  166. package/lib/utils/payClazz/AliPay/AliPay.debug.d.ts +3 -3
  167. package/lib/utils/payClazz/Offline.d.ts +2 -2
  168. package/lib/utils/payClazz/WechatPay/WechatPay.d.ts +2 -2
  169. package/lib/utils/payClazz/WechatPay/WechatPay.debug.d.ts +3 -3
  170. package/lib/utils/payClazz/index.js +3 -4
  171. package/lib/utils/ship.js +7 -7
  172. package/lib/utils/shipClazz/WechatMpShip/WechatMpShip.js +2 -2
  173. package/package.json +6 -6
@@ -6,7 +6,7 @@ import { BRC } from '../types/RuntimeCxt';
6
6
  */
7
7
  export declare function getMpShipState(params: {
8
8
  shipId: string;
9
- }, context: BRC): Promise<string | null | undefined>;
9
+ }, context: BRC): Promise<string | undefined>;
10
10
  /**
11
11
  * 获取打印面单
12
12
  */
@@ -46,7 +46,7 @@ const checkers = [
46
46
  const { orderId, price } = data;
47
47
  data.refundable = false;
48
48
  if (orderId) {
49
- // 所有已经支付和正在支付的pay之和不能超过订单总和
49
+ // @oak-ignore 所有已经支付和正在支付的pay之和不能超过订单总和
50
50
  const order = context.select('order', {
51
51
  data: {
52
52
  id: 1,
@@ -4,76 +4,15 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { EntityDict } from '../oak-app-domain';
7
- import { ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, ListButtonProps, OakAbsAttrUpsertDef } from 'oak-frontend-base';
8
- declare const FilterPanel: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
9
- entity: T;
10
- columns: ColumnProps<EntityDict, T>[];
11
- }>) => React.ReactElement;
12
- declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
13
- entity: T;
14
- extraActions: OakExtraActionProps[] | ((row: RowWithActions<EntityDict, T>) => OakExtraActionProps[]);
15
- onAction: onActionFnDef;
16
- disabledOp: boolean;
17
- attributes: OakAbsAttrDef[];
18
- data: RowWithActions<EntityDict, T>[];
19
- loading: boolean;
20
- tablePagination?: React.ReactNode;
21
- rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
22
- hideHeader?: boolean | undefined;
23
- disableSerialNumber?: boolean | undefined;
24
- size?: "small" | "middle" | "large" | undefined;
25
- scroll?: ({
26
- x?: string | number | true | undefined;
27
- y?: string | number | undefined;
28
- } & {
29
- scrollToFirstRowOnChange?: boolean | undefined;
30
- }) | undefined;
31
- empty?: React.ReactNode;
32
- opWidth?: number | undefined;
33
- ellipsis?: boolean | undefined;
34
- }>) => React.ReactElement;
35
- declare const ListPro: <T extends keyof EntityDict>(props: {
36
- title?: any;
37
- extraContent?: any;
38
- hideDefaultButtons?: boolean | undefined;
39
- buttonGroup?: ListButtonProps[] | undefined;
40
- onReload?: (() => void) | undefined;
41
- entity: T;
42
- extraActions?: OakExtraActionProps[] | ((row: RowWithActions<EntityDict, T>) => OakExtraActionProps[]) | undefined;
43
- onAction?: onActionFnDef | undefined;
44
- disabledOp?: boolean | undefined;
45
- attributes: OakAbsAttrDef[];
46
- data: RowWithActions<EntityDict, T>[];
47
- loading?: boolean | undefined;
48
- tablePagination?: any;
49
- rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
50
- disableSerialNumber?: boolean | undefined;
51
- size?: "small" | "middle" | "large" | undefined;
52
- scroll?: ({
53
- x?: string | number | true | undefined;
54
- y?: string | number | undefined;
55
- } & {
56
- scrollToFirstRowOnChange?: boolean | undefined;
57
- }) | undefined;
58
- empty?: any;
59
- opWidth?: number | undefined;
60
- oakPath?: string | undefined;
61
- }) => React.ReactElement;
62
- declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
63
- column?: number | Record<import("antd").Breakpoint, number> | undefined;
64
- entity: T;
65
- attributes: OakAbsAttrDef[];
66
- data: Partial<EntityDict[T]["Schema"]>;
67
- title?: string | undefined;
68
- bordered?: boolean | undefined;
69
- layout?: "vertical" | "horizontal" | undefined;
70
- }>) => React.ReactElement;
71
- declare const Upsert: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
72
- helps: Record<string, string>;
73
- entity: T;
74
- attributes: OakAbsAttrUpsertDef<EntityDict, T, string | number>[];
75
- data: EntityDict[T]["Schema"];
76
- layout: "vertical" | "horizontal";
77
- mode: "default" | "card";
78
- }>) => React.ReactElement;
7
+ import { ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef } from 'oak-frontend-base';
8
+ import AbsFilterPanel from 'oak-frontend-base/es/components/filterPanel';
9
+ import AbsList from 'oak-frontend-base/es/components/list';
10
+ import AbsListPro from 'oak-frontend-base/es/components/listPro';
11
+ import AbsDetail from 'oak-frontend-base/es/components/detail';
12
+ import AbsUpsert from 'oak-frontend-base/es/components/upsert';
13
+ declare const FilterPanel: <T extends keyof EntityDict>(...props: Parameters<typeof AbsFilterPanel<EntityDict, T>>) => React.ReactElement;
14
+ declare const List: <T extends keyof EntityDict>(...props: Parameters<typeof AbsList<EntityDict, T>>) => React.ReactElement;
15
+ declare const ListPro: <T extends keyof EntityDict>(...props: Parameters<typeof AbsListPro<EntityDict, T>>) => React.ReactElement;
16
+ declare const Detail: <T extends keyof EntityDict>(...props: Parameters<typeof AbsDetail<EntityDict, T>>) => React.ReactElement;
17
+ declare const Upsert: <T extends keyof EntityDict>(...props: Parameters<typeof AbsUpsert<EntityDict, T>>) => React.ReactElement;
79
18
  export { FilterPanel, List, ListPro, Detail, Upsert, ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EntityDict } from "../../../oak-app-domain";
3
2
  export default function Render(props: {
4
3
  accountOpers: EntityDict['accountOper']['OpSchema'][];
@@ -51,6 +51,7 @@ export default function render(props) {
51
51
  const { accounts, oakFullpath, oakExecutable, canCreate, systemId } = props.data;
52
52
  const { t, addItem, execute, clean } = props.methods;
53
53
  const getNotNullMessage = (entity, attr) => {
54
+ // @oak-ignore
54
55
  return t('notnull', { value: t(`${entity}:attr.${attr}`) });
55
56
  };
56
57
  const errMsg = oakExecutable instanceof OakException && (oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getEntity(), oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
@@ -6,6 +6,7 @@ export default function render(props) {
6
6
  const { apAccount, aliPay, oakFullpath, systemId } = props.data;
7
7
  const { t, update } = props.methods;
8
8
  if (apAccount) {
9
+ // @oak-ignore
9
10
  return (<Form labelCol={{ span: 6 }} wrapperCol={{ span: 16 }} layout="horizontal" style={{ minWidth: 860 }}>
10
11
  {(!aliPay || aliPay.$$createAt$$ === 1) && <AliPayUpsert oakPath={`${oakFullpath}.aliPay`} systemId={systemId} key="apCreate"/>}
11
12
  {(apAccount.aliPayId && apAccount?.$$createAt$$ !== 1) && <AliPayUpsert oakPath={`${oakFullpath}.aliPay`} systemId={systemId} key="apUpdate" oakId={apAccount.aliPayId}/>}
@@ -9,9 +9,12 @@ export default function render(props) {
9
9
  const { apAccountId, apProducts, oakFullpath, oakExecutable, canCreate, systemId } = props.data;
10
10
  const { t, addItem, execute, clean } = props.methods;
11
11
  const getNotNullMessage = (entity, attr) => {
12
+ // @oak-ignore
12
13
  return t('notnull', { value: t(`${entity}:attr.${attr}`) });
13
14
  };
14
- const errMsg = oakExecutable instanceof OakException && (oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getEntity(), oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
15
+ const errMsg = oakExecutable instanceof OakException && (
16
+ // @oak-ignore
17
+ oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getEntity(), oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
15
18
  const [upsertId, setUpsertId] = useState('');
16
19
  const U = (<Modal width={920} destroyOnClose title={`${t('apProduct:name')}${t('common::action.update')}`} open={!!upsertId} onCancel={() => {
17
20
  clean();
@@ -7,6 +7,7 @@ export default function render(props) {
7
7
  return (<Form labelCol={{ span: 8 }} wrapperCol={{ span: 12 }} layout="horizontal" style={{ minWidth: 560 }}>
8
8
  <Form.Item label={t('apProduct:attr.type')}>
9
9
  <Select value={apProduct.type} options={['native', 'mp', 'jsapi', 'h5', 'app', 'person', 'code'].map(ele => ({
10
+ // @oak-ignore
10
11
  label: t(`apProduct:v.type.${ele}`),
11
12
  value: ele,
12
13
  }))} onSelect={(type) => {
@@ -41,11 +41,15 @@ export default function render(props) {
41
41
  const getNotNullMessage = (attr) => {
42
42
  if (['channel', 'name', 'qrCode'].includes(attr)) {
43
43
  const upsertRow = accounts?.find(ele => ele.id === upsertId);
44
+ // @oak-ignore
44
45
  return t('notnull', { value: t(`offlineAccount::label.${attr}.${upsertRow.type}`) });
45
46
  }
47
+ // @oak-ignore
46
48
  return t('notnull', { value: t(`offlineAccount:attr.${attr}`) });
47
49
  };
48
- const errMsg = oakExecutable instanceof OakException && (oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
50
+ const errMsg = oakExecutable instanceof OakException && (
51
+ // @oak-ignore
52
+ oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
49
53
  const U = (<Modal destroyOnClose width={920} title={`${t('offlineAccount:name')}${t('common::action.add')}`} open={!!upsertId} onCancel={() => {
50
54
  clean();
51
55
  setUpsertId('');
@@ -1,3 +1,2 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "offlineAccount", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
2
  export default _default;
@@ -7,17 +7,22 @@ export default function render(props) {
7
7
  return (<Form labelCol={{ span: 8 }} wrapperCol={{ span: 12 }} layout="horizontal" style={{ minWidth: 860, maxHeight: '55vh', overflowY: 'auto' }}>
8
8
  <Form.Item label={t('offlineAccount:attr.type')} required>
9
9
  <Select value={offlineAccount.type} options={['bank', 'alipay', 'wechat', 'shouqianba', 'others'].map(ele => ({
10
+ // @oak-ignore
10
11
  label: t(`offlineAccount:v.type.${ele}`),
11
12
  value: ele,
12
13
  }))} onSelect={(value) => update({ type: value })}/>
13
14
  </Form.Item>
14
- {['bank', 'others'].includes(offlineAccount.type) && <Form.Item label={t(`offlineAccount::label.channel.${offlineAccount.type}`)} required>
15
+ {['bank', 'others'].includes(offlineAccount.type) && <Form.Item
16
+ // @oak-ignore
17
+ label={t(`offlineAccount::label.channel.${offlineAccount.type}`)} required>
15
18
  <Input value={offlineAccount.channel || ''} onChange={({ currentTarget }) => {
16
19
  const { value } = currentTarget;
17
20
  update({
18
21
  channel: value,
19
22
  });
20
- }} placeholder={t(`placeholder.channel.${offlineAccount.type}`)}/>
23
+ }}
24
+ // @oak-ignore
25
+ placeholder={t(`placeholder.channel.${offlineAccount.type}`)}/>
21
26
  </Form.Item>}
22
27
  {!!offlineAccount.type && <Form.Item label={t(`offlineAccount::label.name.${offlineAccount.type}`)} required={['bank'].includes(offlineAccount.type)}>
23
28
  <Input value={offlineAccount.name || ''} onChange={({ currentTarget }) => {
@@ -1,3 +1,2 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "order", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
2
  export default _default;
@@ -2,7 +2,7 @@ import { EntityDict } from "../../../oak-app-domain";
2
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "order", false, {
3
3
  accountId: string;
4
4
  accountAvailMax: number;
5
- onSetPays: (pays: Partial<EntityDict['pay']['CreateOperationData']>[]) => void;
5
+ onSetPays: (pays: Partial<EntityDict["pay"]["CreateOperationData"]>[]) => void;
6
6
  accountTips: string;
7
7
  autoStartPay: boolean;
8
8
  }>) => React.ReactElement;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export default function Info(props: {
3
2
  price: number;
4
3
  t: (k: string) => string;
@@ -46,7 +46,9 @@ export default function Render(props) {
46
46
  return (<ErrorBlock status="default" title={t('paying')}/>);
47
47
  }
48
48
  if (!legal) {
49
- return (<ErrorBlock status="default" title={t('illegalState', { state: t(`order:v.iState.${order.iState}`) })}/>);
49
+ return (<ErrorBlock status="default"
50
+ // @oak-ignore
51
+ title={t('illegalState', { state: t(`order:v.iState.${order.iState}`) })}/>);
50
52
  }
51
53
  return (<div className={Styles.container}>
52
54
  <Info t={t} price={ToYuan(order.price)}/>
@@ -45,7 +45,9 @@ export default function Render(props) {
45
45
  return (<Result status="warning" title={t('paying')}/>);
46
46
  }
47
47
  if (!legal) {
48
- return (<Result status="warning" title={t('illegalState', { state: t(`order:v.iState.${order.iState}`) })}/>);
48
+ return (<Result status="warning"
49
+ // @oak-ignore
50
+ title={t('illegalState', { state: t(`order:v.iState.${order.iState}`) })}/>);
49
51
  }
50
52
  return (<div className={Styles.container}>
51
53
  <Info t={t} price={ToYuan(order.price)}/>
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayChannelOption } from "../../../types/Pay";
3
2
  export default function Render(props: {
4
3
  data: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayChannelOption } from "../../../types/Pay";
3
2
  export default function Render(props: {
4
3
  data: {
@@ -201,6 +201,7 @@ export default function Render(props) {
201
201
  {t('common::back')}
202
202
  </Button>);
203
203
  }
204
+ // @oak-ignore
204
205
  return (<div className={Styles.container}>
205
206
  <Card title={t('title')} extra={<Tag color={iStateColor}>{t(`pay:v.iState.${iState}`)}</Tag>}>
206
207
  <div>
@@ -211,7 +211,9 @@ export default function Render(props) {
211
211
  </Space>}>
212
212
  <div className={Styles.container}>
213
213
  <div className={Styles.detail}>
214
- <Descriptions column={1} bordered items={[
214
+ <Descriptions column={1} bordered
215
+ // @oak-ignore
216
+ items={[
215
217
  {
216
218
  key: '0',
217
219
  label: t('type.label'),
@@ -1,3 +1,2 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "pay", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
2
  export default _default;
@@ -78,6 +78,7 @@ export default function Render(props) {
78
78
  'offlineAccount': 'red',
79
79
  'wpProduct': 'green',
80
80
  };
81
+ // @oak-ignore
81
82
  return (<div>
82
83
  <Tag color={colorDict[entity] || 'gray'}>{t(`payChannel::${row.entity}`)}</Tag>
83
84
  {entity === 'offlineAccount' && (<div className={Styles.entityDetail}>
@@ -1,3 +1,2 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "system", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
2
  export default _default;
@@ -154,6 +154,7 @@ export default function render(props) {
154
154
  ...Object.keys(PayChannelConfigDict).map((ele) => {
155
155
  const C = PayChannelConfigDict[ele];
156
156
  return {
157
+ // @oak-ignore
157
158
  label: (<div className={Styles.systemLabel}>
158
159
  {t(`${ele}:name`)}
159
160
  </div>),
@@ -1,3 +1,2 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "refund", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
2
  export default _default;
@@ -71,6 +71,7 @@ export default function Render(props) {
71
71
  'offlineAccount': 'red',
72
72
  'wpProduct': 'green',
73
73
  };
74
+ // @oak-ignore
74
75
  return (<div>
75
76
  <Tag color={colorDict[entity] || 'gray'}>{t(`payChannel::${entity}`)}</Tag>
76
77
  <div className={Styles.entityDetail}>{row.payChannel}</div>
@@ -1,3 +1,2 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "system", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  import { EntityDict } from "../../../../oak-app-domain";
3
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "wechatMpShip", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
4
3
  export default _default;
@@ -26,10 +26,10 @@ export default function render(props) {
26
26
  <Space style={{
27
27
  marginTop: 22
28
28
  }}>
29
- {ships.map((ele, idx) => (<Card title={ele.application.name} extra={<Button size="small" icon={<EditOutlined />} type="text" onClick={() => {
29
+ {ships.map((ele, idx) => (<Card key={idx} title={ele.application.name} extra={<Button size="small" icon={<EditOutlined />} type="text" onClick={() => {
30
30
  setUpsertId(ele.id);
31
31
  }}/>}>
32
- <Detail key={idx} column={1} bordered entity="wechatMpShip" attributes={[
32
+ <Detail column={1} bordered entity="wechatMpShip" attributes={[
33
33
  "disabled",
34
34
  "sort",
35
35
  ]} data={ele}/>
@@ -130,6 +130,7 @@ export default function render(props) {
130
130
  if (DetailRender) {
131
131
  Modal.info({
132
132
  width: 560,
133
+ // @oak-ignore
133
134
  title: `${t(`${entity}:name`)}${t('common::action.detail')}`,
134
135
  content: (<DetailRender data={data} systemId={systemId} t={t}/>),
135
136
  onOk() { },
@@ -151,8 +152,12 @@ export default function render(props) {
151
152
  setShowHistoryList(false);
152
153
  }} width={800} title={showHistoryAcc.entity === 'offlineAccount' ?
153
154
  (showHistoryAcc.data.type === 'bank' ?
155
+ // @oak-ignore
154
156
  `${t(`${showHistoryAcc.entity}:v.type.${showHistoryAcc.data.type}`)}-${showHistoryAcc.data.channel}-${t('history')}`
155
- : `${t(`${showHistoryAcc.entity}:v.type.${showHistoryAcc.data.type}`)}-${showHistoryAcc.data.name}-${t('history')}`) : `${t(`${showHistoryAcc.entity}:name`)}-${t('history')}`} footer={null}>
157
+ // @oak-ignore
158
+ : `${t(`${showHistoryAcc.entity}:v.type.${showHistoryAcc.data.type}`)}-${showHistoryAcc.data.name}-${t('history')}`
159
+ // @oak-ignore
160
+ ) : `${t(`${showHistoryAcc.entity}:name`)}-${t('history')}`} footer={null}>
156
161
  <div style={{ height: '65vh' }}>
157
162
  <SysAccountOperList entity={showHistoryAcc.entity} entityId={showHistoryAcc.data.id} oakPath="$opb-sysAccount-survery-operList"/>
158
163
  </div>
@@ -1,3 +1,2 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  import { EntityDict } from "../../../oak-app-domain";
3
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdraw", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EntityDict } from '../../../oak-app-domain';
3
2
  export default function render(props: {
4
3
  data: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EntityDict } from '../../../oak-app-domain';
3
2
  export default function render(props: {
4
3
  data: {
@@ -6,7 +6,7 @@ export default function render(props) {
6
6
  const { t, goBack } = props.methods;
7
7
  if (withdraws?.length) {
8
8
  return (<List>
9
- {withdraws.map((ele) => (<List.Item prefix={<HandPayCircleOutline fontSize={38}/>} extra={<Tag color={ele.iStateColor}>{ele.iState}</Tag>} title={ele.lossDescription} description={ele.createAt} onClick={() => gotoDetail(ele.id)}>
9
+ {withdraws.map((ele) => (<List.Item key={ele.id} prefix={<HandPayCircleOutline fontSize={38}/>} extra={<Tag color={ele.iStateColor}>{ele.iState}</Tag>} title={ele.lossDescription} description={ele.createAt} onClick={() => gotoDetail(ele.id)}>
10
10
  <>
11
11
  <span style={{ marginRight: 3 }}>{t('common::pay.symbol')}</span>
12
12
  {ele.price}
@@ -1,4 +1,3 @@
1
- /// <reference types="wechat-miniprogram" />
2
1
  import { EntityDict } from '../../../oak-app-domain';
3
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
4
3
  export default _default;
@@ -50,9 +50,12 @@ export default function render(props) {
50
50
  const { accounts, oakFullpath, oakExecutable, canCreate, systemId } = props.data;
51
51
  const { t, addItem, execute, clean } = props.methods;
52
52
  const getNotNullMessage = (entity, attr) => {
53
+ // @oak-ignore
53
54
  return t('notnull', { value: t(`${entity}:attr.${attr}`) });
54
55
  };
55
- const errMsg = oakExecutable instanceof OakException && (oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getEntity(), oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
56
+ const errMsg = oakExecutable instanceof OakException && (
57
+ // @oak-ignore
58
+ oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getEntity(), oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
56
59
  const [upsertId, setUpsertId] = useState('');
57
60
  const U = (<Modal width={920} destroyOnClose title={`${t('wpAccount:name')}${t('common::action.add')}`} open={!!upsertId} onCancel={() => {
58
61
  clean();
@@ -9,9 +9,12 @@ export default function render(props) {
9
9
  const { wpAccountId, wpProducts, oakFullpath, oakExecutable, canCreate, systemId } = props.data;
10
10
  const { t, addItem, execute, clean } = props.methods;
11
11
  const getNotNullMessage = (entity, attr) => {
12
+ // @oak-ignore
12
13
  return t('notnull', { value: t(`${entity}:attr.${attr}`) });
13
14
  };
14
- const errMsg = oakExecutable instanceof OakException && (oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getEntity(), oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
15
+ const errMsg = oakExecutable instanceof OakException && (
16
+ // @oak-ignore
17
+ oakExecutable instanceof OakAttrNotNullException ? getNotNullMessage(oakExecutable.getEntity(), oakExecutable.getAttributes()[0]) : t(oakExecutable.message));
15
18
  const [upsertId, setUpsertId] = useState('');
16
19
  const U = (<Modal width={920} destroyOnClose title={`${t('wpProduct:name')}${t('common::action.update')}`} open={!!upsertId} onCancel={() => {
17
20
  clean();
@@ -6,7 +6,9 @@ export default function render(props) {
6
6
  if (wpProduct) {
7
7
  return (<Form labelCol={{ span: 8 }} wrapperCol={{ span: 12 }} layout="horizontal" style={{ minWidth: 560 }}>
8
8
  <Form.Item label={t('wpProduct:attr.type')}>
9
- <Select value={wpProduct.type} options={['native', 'mp', 'jsapi', 'h5', 'app'].map(ele => ({
9
+ <Select value={wpProduct.type} options={['native', 'mp', 'jsapi', 'h5', 'app'].map(
10
+ // @oak-ignore
11
+ ele => ({
10
12
  label: t(`wpProduct:v.type.${ele}`),
11
13
  value: ele,
12
14
  }))} onSelect={(type) => {
@@ -73,10 +73,10 @@ export declare const actionDefDict: {
73
73
  refund: {
74
74
  iState: import("oak-domain/lib/types").ActionDef<string, string>;
75
75
  };
76
- settlePlan: {
76
+ settlement: {
77
77
  iState: import("oak-domain/lib/types").ActionDef<string, string>;
78
78
  };
79
- settlement: {
79
+ settlePlan: {
80
80
  iState: import("oak-domain/lib/types").ActionDef<string, string>;
81
81
  };
82
82
  ship: {
@@ -27,8 +27,8 @@ import { actionDefDict as offlineAccount } from "./OfflineAccount/Action";
27
27
  import { actionDefDict as order } from "./Order/Action";
28
28
  import { actionDefDict as pay } from "./Pay/Action";
29
29
  import { actionDefDict as refund } from "./Refund/Action";
30
- import { actionDefDict as settlePlan } from "./SettlePlan/Action";
31
30
  import { actionDefDict as settlement } from "./Settlement/Action";
31
+ import { actionDefDict as settlePlan } from "./SettlePlan/Action";
32
32
  import { actionDefDict as ship } from "./Ship/Action";
33
33
  import { actionDefDict as user } from "./User/Action";
34
34
  import { actionDefDict as withdraw } from "./Withdraw/Action";
@@ -66,8 +66,8 @@ export const actionDefDict = {
66
66
  order,
67
67
  pay,
68
68
  refund,
69
- settlePlan,
70
69
  settlement,
70
+ settlePlan,
71
71
  ship,
72
72
  user,
73
73
  withdraw,
@@ -14,6 +14,9 @@ export const desc = {
14
14
  isDefault: {
15
15
  notNull: true,
16
16
  type: "boolean"
17
+ },
18
+ allowPwd: {
19
+ type: "boolean"
17
20
  }
18
21
  },
19
22
  actionType: "crud",
@@ -7,6 +7,7 @@ export type OpSchema = EntityShape & {
7
7
  applicationId: ForeignKey<"application">;
8
8
  passportId: ForeignKey<"passport">;
9
9
  isDefault: Boolean;
10
+ allowPwd?: Boolean | null;
10
11
  } & {
11
12
  [A in ExpressionKey]?: any;
12
13
  };
@@ -19,6 +20,7 @@ export type OpFilter = {
19
20
  applicationId: Q_StringValue;
20
21
  passportId: Q_StringValue;
21
22
  isDefault: Q_BooleanValue;
23
+ allowPwd: Q_BooleanValue;
22
24
  } & ExprOp<OpAttr | string>;
23
25
  export type OpProjection = {
24
26
  "#id"?: NodeId;
@@ -30,6 +32,7 @@ export type OpProjection = {
30
32
  applicationId?: number;
31
33
  passportId?: number;
32
34
  isDefault?: number;
35
+ allowPwd?: number;
33
36
  } & Partial<ExprOp<OpAttr | string>>;
34
37
  export type OpSortAttr = Partial<{
35
38
  id: number;
@@ -39,6 +42,7 @@ export type OpSortAttr = Partial<{
39
42
  applicationId: number;
40
43
  passportId: number;
41
44
  isDefault: number;
45
+ allowPwd: number;
42
46
  [k: string]: any;
43
47
  } | ExprOp<OpAttr | string>>;
44
48
  export type OpAction = OakMakeAction<GenericAction | string>;
@@ -3,6 +3,7 @@
3
3
  "attr": {
4
4
  "application": "应用",
5
5
  "passport": "登录方式",
6
- "isDefault": "是否默认"
6
+ "isDefault": "是否默认",
7
+ "allowPwd": "是否支持密码登录"
7
8
  }
8
9
  }
@@ -49,6 +49,7 @@ export const desc = {
49
49
  ref: "application"
50
50
  },
51
51
  iState: {
52
+ notNull: true,
52
53
  type: "enum",
53
54
  enumeration: ["unsent", "sending", "sent", "failure"]
54
55
  }
@@ -14,7 +14,7 @@ export type OpSchema = EntityShape & {
14
14
  expiresAt: Datetime;
15
15
  type: "login" | "changePassword" | "confirm";
16
16
  applicationId?: ForeignKey<"application"> | null;
17
- iState?: IState | null;
17
+ iState: IState;
18
18
  } & {
19
19
  [A in ExpressionKey]?: any;
20
20
  };
@@ -24,6 +24,7 @@ export const desc = {
24
24
  ref: "ship"
25
25
  },
26
26
  iState: {
27
+ notNull: true,
27
28
  type: "enum",
28
29
  enumeration: ["depositing", "successful", "failed", "shipped"]
29
30
  }
@@ -9,7 +9,7 @@ export type OpSchema = EntityShape & {
9
9
  accountId: ForeignKey<"account">;
10
10
  creatorId: ForeignKey<"user">;
11
11
  shipId?: ForeignKey<"ship"> | null;
12
- iState?: IState | null;
12
+ iState: IState;
13
13
  } & {
14
14
  [A in ExpressionKey]?: any;
15
15
  };