oak-pay-business 3.4.3 → 3.5.1
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/aspects/ship.d.ts +1 -1
- package/es/checkers/pay.js +1 -1
- package/es/components/AbstractComponents.d.ts +11 -72
- package/es/components/accountOper/pure/List.pc.d.ts +0 -1
- package/es/components/apAccount/config/web.pc.js +1 -0
- package/es/components/apAccount/upsert/web.pc.js +1 -0
- package/es/components/apProduct/config/web.pc.js +4 -1
- package/es/components/apProduct/upsert/web.pc.js +1 -0
- package/es/components/offlineAccount/config/web.pc.js +5 -1
- package/es/components/offlineAccount/upsert/index.d.ts +0 -1
- package/es/components/offlineAccount/upsert/web.pc.js +7 -2
- package/es/components/order/list/index.d.ts +0 -1
- package/es/components/order/pay/index.d.ts +1 -1
- package/es/components/order/pay/info.d.ts +0 -1
- package/es/components/order/pay/web.js +3 -1
- package/es/components/order/pay/web.pc.js +3 -1
- package/es/components/pay/channelPicker2/web.d.ts +0 -1
- package/es/components/pay/channelPicker2/web.pc.d.ts +0 -1
- package/es/components/pay/detail/web.js +1 -0
- package/es/components/pay/detail/web.pc.js +3 -1
- package/es/components/pay/list/index.d.ts +0 -1
- package/es/components/pay/list/web.pc.js +1 -0
- package/es/components/payConfig/system/index.d.ts +0 -1
- package/es/components/payConfig/system/web.pc.js +1 -0
- package/es/components/refund/list/index.d.ts +0 -1
- package/es/components/refund/list/web.pc.js +1 -0
- package/es/components/ship/system/index.d.ts +0 -1
- package/es/components/ship/wechatMpShip/upsert/index.d.ts +0 -1
- package/es/components/ship/wechatMpShip/web.pc.js +2 -2
- package/es/components/sysAccount/survey/web.pc.js +6 -1
- package/es/components/sysAccount/transferList/index.d.ts +0 -1
- package/es/components/withdraw/detail/index.d.ts +0 -1
- package/es/components/withdraw/display/web.d.ts +0 -1
- package/es/components/withdraw/display/web.pc.d.ts +0 -1
- package/es/components/withdraw/list/web.js +1 -1
- package/es/components/withdrawTransfer/list/index.d.ts +0 -1
- package/es/components/wpAccount/config/web.pc.js +4 -1
- package/es/components/wpProduct/config/web.pc.js +4 -1
- package/es/components/wpProduct/upsert/web.pc.js +3 -1
- package/es/oak-app-domain/ActionDefDict.d.ts +2 -2
- package/es/oak-app-domain/ActionDefDict.js +2 -2
- package/es/oak-app-domain/ApplicationPassport/Storage.js +3 -0
- package/es/oak-app-domain/ApplicationPassport/_baseSchema.d.ts +4 -0
- package/es/oak-app-domain/ApplicationPassport/locales/zh_CN.json +2 -1
- package/es/oak-app-domain/Captcha/Storage.js +1 -0
- package/es/oak-app-domain/Captcha/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Deposit/Storage.js +1 -0
- package/es/oak-app-domain/Deposit/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/EntityDict.d.ts +50 -50
- package/es/oak-app-domain/ExtraFile/Storage.js +7 -0
- package/es/oak-app-domain/ExtraFile/_baseSchema.d.ts +18 -2
- package/es/oak-app-domain/ExtraFile/locales/zh_CN.json +3 -1
- package/es/oak-app-domain/Message/Storage.js +1 -0
- package/es/oak-app-domain/Message/_baseSchema.d.ts +4 -1
- package/es/oak-app-domain/Modi/Storage.js +1 -0
- package/es/oak-app-domain/Modi/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Notification/Storage.js +1 -0
- package/es/oak-app-domain/Notification/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/OauthUser/Storage.js +14 -1
- package/es/oak-app-domain/Oper/Storage.js +1 -0
- package/es/oak-app-domain/Oper/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Order/Storage.js +1 -0
- package/es/oak-app-domain/Order/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Passport/Storage.js +1 -1
- package/es/oak-app-domain/Passport/Style.js +3 -1
- package/es/oak-app-domain/Passport/_baseSchema.d.ts +15 -4
- package/es/oak-app-domain/Passport/locales/zh_CN.json +4 -2
- package/es/oak-app-domain/Pay/Storage.js +1 -0
- package/es/oak-app-domain/Pay/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Refund/Storage.js +1 -0
- package/es/oak-app-domain/Refund/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/SettlePlan/Storage.js +1 -0
- package/es/oak-app-domain/SettlePlan/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Settlement/Storage.js +1 -0
- package/es/oak-app-domain/Settlement/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Ship/Storage.js +1 -0
- package/es/oak-app-domain/Ship/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Storage.js +2 -2
- package/es/oak-app-domain/StyleDict.js +2 -2
- package/es/oak-app-domain/System/Storage.js +2 -1
- package/es/oak-app-domain/User/Storage.js +1 -0
- package/es/oak-app-domain/User/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/UserWechatPublicTag/Storage.js +1 -0
- package/es/oak-app-domain/UserWechatPublicTag/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/WechatLogin/Storage.js +3 -0
- package/es/oak-app-domain/WechatLogin/_baseSchema.d.ts +12 -2
- package/es/oak-app-domain/WechatLogin/locales/zh_CN.json +2 -1
- package/es/oak-app-domain/WechatMenu/Storage.js +1 -0
- package/es/oak-app-domain/WechatMenu/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/WechatPublicTag/Storage.js +1 -0
- package/es/oak-app-domain/WechatPublicTag/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/Withdraw/Storage.js +1 -0
- package/es/oak-app-domain/Withdraw/_baseSchema.d.ts +1 -1
- package/es/oak-app-domain/WithdrawTransfer/Storage.js +1 -0
- package/es/oak-app-domain/WithdrawTransfer/_baseSchema.d.ts +1 -1
- package/es/timers/index.d.ts +1 -1
- package/es/triggers/withdraw.d.ts +1 -1
- package/es/utils/pay.d.ts +0 -1
- package/es/utils/payClazz/Account.d.ts +2 -2
- package/es/utils/payClazz/AliPay/AliPay.d.ts +2 -2
- package/es/utils/payClazz/AliPay/AliPay.debug.d.ts +3 -3
- package/es/utils/payClazz/Offline.d.ts +2 -2
- package/es/utils/payClazz/WechatPay/WechatPay.d.ts +2 -2
- package/es/utils/payClazz/WechatPay/WechatPay.debug.d.ts +3 -3
- package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/es/utils/shipClazz/WechatMpShip/WechatMpShip.js +2 -2
- package/es/utils/shipClazz/WechatMpShip/index.d.ts +2 -2
- package/lib/aspects/ship.d.ts +1 -1
- package/lib/checkers/pay.js +1 -1
- package/lib/features/index.js +2 -3
- package/lib/oak-app-domain/ActionDefDict.d.ts +2 -2
- package/lib/oak-app-domain/ApplicationPassport/Storage.js +3 -0
- package/lib/oak-app-domain/ApplicationPassport/_baseSchema.d.ts +4 -0
- package/lib/oak-app-domain/ApplicationPassport/locales/zh_CN.json +2 -1
- package/lib/oak-app-domain/Captcha/Storage.js +1 -0
- package/lib/oak-app-domain/Captcha/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/Deposit/Storage.js +1 -0
- package/lib/oak-app-domain/Deposit/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/EntityDict.d.ts +50 -50
- package/lib/oak-app-domain/ExtraFile/Storage.js +7 -0
- package/lib/oak-app-domain/ExtraFile/_baseSchema.d.ts +18 -2
- package/lib/oak-app-domain/ExtraFile/locales/zh_CN.json +3 -1
- package/lib/oak-app-domain/Message/Storage.js +1 -0
- package/lib/oak-app-domain/Message/_baseSchema.d.ts +4 -1
- package/lib/oak-app-domain/Modi/Storage.js +1 -0
- package/lib/oak-app-domain/Modi/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/Notification/Storage.js +1 -0
- package/lib/oak-app-domain/Notification/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/OauthUser/Storage.js +14 -1
- package/lib/oak-app-domain/Oper/Storage.js +1 -0
- package/lib/oak-app-domain/Oper/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/Order/Storage.js +1 -0
- package/lib/oak-app-domain/Order/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/Passport/Storage.js +1 -1
- package/lib/oak-app-domain/Passport/Style.js +3 -1
- package/lib/oak-app-domain/Passport/_baseSchema.d.ts +15 -4
- package/lib/oak-app-domain/Passport/locales/zh_CN.json +4 -2
- package/lib/oak-app-domain/Pay/Storage.js +1 -0
- package/lib/oak-app-domain/Pay/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/Refund/Storage.js +1 -0
- package/lib/oak-app-domain/Refund/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/SettlePlan/Storage.js +1 -0
- package/lib/oak-app-domain/SettlePlan/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/Settlement/Storage.js +1 -0
- package/lib/oak-app-domain/Settlement/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/Ship/Storage.js +1 -0
- package/lib/oak-app-domain/Ship/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/User/Storage.js +1 -0
- package/lib/oak-app-domain/User/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/UserWechatPublicTag/Storage.js +1 -0
- package/lib/oak-app-domain/UserWechatPublicTag/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/WechatLogin/Storage.js +3 -0
- package/lib/oak-app-domain/WechatLogin/_baseSchema.d.ts +12 -2
- package/lib/oak-app-domain/WechatLogin/locales/zh_CN.json +2 -1
- package/lib/oak-app-domain/WechatMenu/Storage.js +1 -0
- package/lib/oak-app-domain/WechatMenu/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/WechatPublicTag/Storage.js +1 -0
- package/lib/oak-app-domain/WechatPublicTag/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/Withdraw/Storage.js +1 -0
- package/lib/oak-app-domain/Withdraw/_baseSchema.d.ts +1 -1
- package/lib/oak-app-domain/WithdrawTransfer/Storage.js +1 -0
- package/lib/oak-app-domain/WithdrawTransfer/_baseSchema.d.ts +1 -1
- package/lib/timers/index.d.ts +1 -1
- package/lib/triggers/withdraw.d.ts +1 -1
- package/lib/utils/pay.d.ts +0 -1
- package/lib/utils/payClazz/Account.d.ts +2 -2
- package/lib/utils/payClazz/AliPay/AliPay.d.ts +2 -2
- package/lib/utils/payClazz/AliPay/AliPay.debug.d.ts +3 -3
- package/lib/utils/payClazz/Offline.d.ts +2 -2
- package/lib/utils/payClazz/WechatPay/WechatPay.d.ts +2 -2
- package/lib/utils/payClazz/WechatPay/WechatPay.debug.d.ts +3 -3
- package/lib/utils/payClazz/index.js +3 -4
- package/lib/utils/ship.js +7 -7
- package/lib/utils/shipClazz/WechatMpShip/WechatMpShip.js +2 -2
- package/package.json +6 -6
package/es/aspects/ship.d.ts
CHANGED
package/es/checkers/pay.js
CHANGED
|
@@ -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
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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, };
|
|
@@ -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 && (
|
|
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 && (
|
|
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
|
|
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
|
-
}}
|
|
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[
|
|
5
|
+
onSetPays: (pays: Partial<EntityDict["pay"]["CreateOperationData"]>[]) => void;
|
|
6
6
|
accountTips: string;
|
|
7
7
|
autoStartPay: boolean;
|
|
8
8
|
}>) => React.ReactElement;
|
|
@@ -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"
|
|
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"
|
|
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)}/>
|
|
@@ -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
|
|
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;
|
|
@@ -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
|
|
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
|
-
|
|
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;
|
|
@@ -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 && (
|
|
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 && (
|
|
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(
|
|
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
|
-
|
|
76
|
+
settlement: {
|
|
77
77
|
iState: import("oak-domain/lib/types").ActionDef<string, string>;
|
|
78
78
|
};
|
|
79
|
-
|
|
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,
|
|
@@ -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>;
|