oak-pay-business 2.5.7 → 2.5.9
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/es/components/accountOper/pure/List.pc.d.ts +1 -0
- package/es/components/offlineAccount/config/index.js +1 -0
- package/es/components/offlineAccount/config/web.pc.d.ts +2 -0
- package/es/components/offlineAccount/config/web.pc.js +1 -1
- package/es/components/offlineAccount/upsert/index.d.ts +1 -0
- package/es/components/order/list/index.d.ts +1 -0
- package/es/components/order/pay/index.d.ts +1 -1
- package/es/components/order/pay/info.d.ts +1 -0
- package/es/components/pay/channelPicker2/web.d.ts +1 -0
- package/es/components/pay/channelPicker2/web.pc.d.ts +1 -0
- package/es/components/pay/detail/index.js +1 -0
- package/es/components/pay/detail/web.d.ts +1 -0
- package/es/components/pay/detail/web.pc.d.ts +1 -0
- package/es/components/pay/detail/web.pc.js +1 -1
- package/es/components/pay/list/index.d.ts +1 -0
- package/es/components/pay/list/index.js +1 -0
- package/es/components/pay/list/web.pc.d.ts +1 -0
- package/es/components/payConfig/system/index.d.ts +1 -0
- package/es/components/payConfig/system/index.js +1 -0
- package/es/components/payConfig/system/web.pc.d.ts +1 -0
- package/es/components/refund/list/index.d.ts +1 -0
- package/es/components/refund/list/index.js +1 -0
- package/es/components/refund/list/web.pc.d.ts +1 -0
- package/es/components/sysAccount/transferList/index.d.ts +1 -0
- package/es/components/sysAccount/transferList/web.pc.js +1 -1
- package/es/components/withdraw/create/index.d.ts +1 -1
- package/es/components/withdraw/detail/index.d.ts +1 -0
- package/es/components/withdraw/display/index.d.ts +1 -1
- package/es/components/withdraw/display/web.d.ts +1 -0
- package/es/components/withdraw/display/web.pc.d.ts +1 -0
- package/es/components/withdrawAccount/list/index.js +1 -0
- package/es/components/withdrawAccount/list/web.d.ts +1 -0
- package/es/components/withdrawAccount/list/web.pc.d.ts +1 -0
- package/es/components/withdrawTransfer/list/index.d.ts +1 -0
- package/es/components/withdrawTransfer/list/index.js +1 -0
- package/es/components/withdrawTransfer/list/web.pc.d.ts +1 -0
- package/es/components/wpAccount/config/index.js +1 -0
- package/es/components/wpAccount/config/web.pc.d.ts +2 -0
- package/es/components/wpProduct/config/index.js +1 -0
- package/es/components/wpProduct/config/web.pc.d.ts +2 -0
- package/es/components/wpProduct/config/web.pc.js +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityDict } from "../../../oak-app-domain";
|
|
3
3
|
import { RowWithActions, WebComponentProps } from "oak-frontend-base";
|
|
4
|
+
import { OakException } from 'oak-domain/lib/types';
|
|
4
5
|
export declare function OfflineAccount(props: {
|
|
5
6
|
data: RowWithActions<EntityDict, 'offlineAccount'> & {
|
|
6
7
|
color: string;
|
|
@@ -16,4 +17,5 @@ export default function render(props: WebComponentProps<EntityDict, 'offlineAcco
|
|
|
16
17
|
})[];
|
|
17
18
|
systemId: string;
|
|
18
19
|
canCreate?: boolean;
|
|
20
|
+
oakExecutable: boolean | OakException<EntityDict>;
|
|
19
21
|
}>): React.JSX.Element;
|
|
@@ -90,7 +90,7 @@ export default function render(props) {
|
|
|
90
90
|
</div>)}
|
|
91
91
|
</div>
|
|
92
92
|
<div className={Styles.btnBar}>
|
|
93
|
-
|
|
93
|
+
{canCreate && <Button type="primary" onClick={() => {
|
|
94
94
|
const id = addItem({ systemId });
|
|
95
95
|
setUpsertId(id);
|
|
96
96
|
}}>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "offlineAccount", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "order", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -2,6 +2,6 @@ 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[
|
|
5
|
+
onSetPays: (pays: Partial<EntityDict['pay']['CreateSingle']['data']>[]) => void;
|
|
6
6
|
}>) => React.ReactElement;
|
|
7
7
|
export default _default;
|
|
@@ -156,6 +156,7 @@ export default OakComponent({
|
|
|
156
156
|
offlines,
|
|
157
157
|
notSameApp: data && data.applicationId !== application.id && data.entity !== 'offlineAccount',
|
|
158
158
|
priceStr: data?.price && CentToString(data.price, 2),
|
|
159
|
+
oakExecutable: this.tryExecute(),
|
|
159
160
|
};
|
|
160
161
|
},
|
|
161
162
|
features: [{
|
|
@@ -25,7 +25,7 @@ export function RenderOffline(props) {
|
|
|
25
25
|
</Tag>
|
|
26
26
|
</Form.Item>,
|
|
27
27
|
<Form.Item key="externalId" label={<span className={Styles.bold}>{t('externalId.label')}</span>}>
|
|
28
|
-
|
|
28
|
+
<Input value={externalId || ''} onChange={({ currentTarget }) => {
|
|
29
29
|
const { value } = currentTarget;
|
|
30
30
|
updateExternalId(value);
|
|
31
31
|
}} placeholder={t('externalId.help')} disabled={iState !== 'paying'}/>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "pay", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "system", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "refund", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { Result, Alert } from 'antd';
|
|
|
3
3
|
import ListPro from 'oak-frontend-base/es/components/listPro';
|
|
4
4
|
import { ThousandCont, ToYuan } from 'oak-domain/lib/utils/money';
|
|
5
5
|
export default function Render(props) {
|
|
6
|
-
const { transfers, oakFullpath
|
|
6
|
+
const { transfers, oakFullpath } = props.data;
|
|
7
7
|
const { t } = props.methods;
|
|
8
8
|
if (transfers?.length) {
|
|
9
9
|
return (<ListPro entity="withdrawTransfer" data={transfers} title={<Alert type="info" message={t('tips')}/>} attributes={[
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityDict } from "../../../oak-app-domain";
|
|
2
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, boolean, {
|
|
3
3
|
accountId: string;
|
|
4
|
-
withdrawAccountFilter:
|
|
4
|
+
withdrawAccountFilter: import("../../../oak-app-domain/WithdrawAccount/Schema").Filter | undefined;
|
|
5
5
|
onNewWithdrawAccount: () => void;
|
|
6
6
|
onCreateWithdraw: (id: string) => void;
|
|
7
7
|
onGoToHistory: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
import { EntityDict } from "../../../oak-app-domain";
|
|
2
3
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdraw", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
3
4
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityDict } from '../../../oak-app-domain';
|
|
2
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, boolean, {
|
|
3
|
-
withdraw:
|
|
3
|
+
withdraw: import("../../../oak-app-domain/Withdraw/Schema").Schema;
|
|
4
4
|
create: boolean;
|
|
5
5
|
}>) => React.ReactElement;
|
|
6
6
|
export default _default;
|
|
@@ -16,6 +16,7 @@ export default function render(props: WebComponentProps<EntityDict, 'withdrawAcc
|
|
|
16
16
|
allowCreate?: boolean;
|
|
17
17
|
selectedId?: string;
|
|
18
18
|
onCancel?: () => void;
|
|
19
|
+
oakExecutable: boolean;
|
|
19
20
|
}, {
|
|
20
21
|
setUpsertId: (id: string) => void;
|
|
21
22
|
doUpdate: () => Promise<void>;
|
|
@@ -16,6 +16,7 @@ export default function render(props: WebComponentProps<EntityDict, 'withdrawAcc
|
|
|
16
16
|
allowCreate?: boolean;
|
|
17
17
|
selectedId?: string;
|
|
18
18
|
onCancel?: () => void;
|
|
19
|
+
oakExecutable: boolean;
|
|
19
20
|
}, {
|
|
20
21
|
setUpsertId: (id: string) => void;
|
|
21
22
|
doUpdate: () => Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
import { EntityDict } from '../../../oak-app-domain';
|
|
2
3
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
3
4
|
export default _default;
|
|
@@ -11,6 +11,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
|
|
|
11
11
|
})[];
|
|
12
12
|
updateId: string;
|
|
13
13
|
sysAccountAmount: number;
|
|
14
|
+
oakExecutable: boolean;
|
|
14
15
|
}, {
|
|
15
16
|
setUpdateId: (id: string, action: string) => void;
|
|
16
17
|
}>): React.JSX.Element | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityDict } from "../../../oak-app-domain";
|
|
3
3
|
import { RowWithActions, WebComponentProps } from "oak-frontend-base";
|
|
4
|
+
import { OakException } from 'oak-domain/lib/types';
|
|
4
5
|
export declare function WpAccount(props: {
|
|
5
6
|
data: RowWithActions<EntityDict, 'wpAccount'>;
|
|
6
7
|
systemId: string;
|
|
@@ -12,4 +13,5 @@ export default function render(props: WebComponentProps<EntityDict, 'wpAccount',
|
|
|
12
13
|
accounts?: (RowWithActions<EntityDict, 'wpAccount'> & {})[];
|
|
13
14
|
systemId: string;
|
|
14
15
|
canCreate?: boolean;
|
|
16
|
+
oakExecutable: boolean | OakException<EntityDict>;
|
|
15
17
|
}>): React.JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityDict } from "../../../oak-app-domain";
|
|
3
3
|
import { RowWithActions, WebComponentProps } from "oak-frontend-base";
|
|
4
|
+
import { OakException } from 'oak-domain/lib/types';
|
|
4
5
|
export default function render(props: WebComponentProps<EntityDict, 'wpProduct', true, {
|
|
5
6
|
wpProducts?: (RowWithActions<EntityDict, 'wpProduct'> & {})[];
|
|
6
7
|
systemId: string;
|
|
7
8
|
canCreate?: boolean;
|
|
8
9
|
wpAccountId: string;
|
|
10
|
+
oakExecutable: boolean | OakException<EntityDict>;
|
|
9
11
|
}>): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oak-pay-business",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib/**/*",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"classnames": "^2.3.1",
|
|
32
32
|
"dayjs": "^1.11.5",
|
|
33
|
-
"oak-domain": "^5.1.
|
|
34
|
-
"oak-frontend-base": "^5.3.
|
|
35
|
-
"oak-general-business": "~5.5.
|
|
33
|
+
"oak-domain": "^5.1.14",
|
|
34
|
+
"oak-frontend-base": "^5.3.22",
|
|
35
|
+
"oak-general-business": "~5.5.9",
|
|
36
36
|
"wechat-pay-nodejs": "^0.2.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|