oak-pay-business 2.2.0 → 2.2.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/withdraw.d.ts +4 -4
- package/es/components/account/detail/web.d.ts +1 -1
- package/es/components/account/detail/web.js +2 -2
- package/es/components/account/detail/web.pc.d.ts +1 -1
- package/es/components/account/detail/web.pc.js +2 -2
- package/es/components/accountOper/list/index.js +118 -6
- package/es/components/accountOper/list/index.json +10 -1
- package/es/components/accountOper/list/index.less +125 -0
- package/es/components/accountOper/list/index.xml +56 -0
- package/es/components/accountOper/list/locales/zh-CN.json +9 -1
- package/es/components/accountOper/list/mobile.module.less +48 -0
- package/es/components/accountOper/list/web.d.ts +12 -1
- package/es/components/accountOper/list/web.js +58 -24
- package/es/components/accountOper/list/web.module.less +27 -0
- package/es/components/accountOper/list/web.pc.d.ts +14 -2
- package/es/components/accountOper/list/web.pc.js +43 -8
- package/es/components/pay/detail/index.js +11 -0
- package/es/components/pay/detail/index.xml +10 -0
- package/es/components/pay/detail/locales/zh-CN.json +5 -1
- package/es/components/pay/detail/web.d.ts +1 -0
- package/es/components/pay/detail/web.js +12 -5
- package/es/components/pay/detail/web.pc.d.ts +1 -0
- package/es/components/pay/detail/web.pc.js +15 -5
- package/es/components/pay/list/web.pc.js +2 -0
- package/es/components/withdraw/create/index.d.ts +1 -0
- package/es/components/withdraw/create/index.js +4 -0
- package/es/components/withdraw/create/index.xml +4 -0
- package/es/components/withdraw/create/locales/zh-CN.json +2 -1
- package/es/components/withdraw/create/web.d.ts +1 -0
- package/es/components/withdraw/create/web.js +6 -2
- package/es/components/withdraw/create/web.pc.d.ts +1 -0
- package/es/components/withdraw/create/web.pc.js +4 -1
- package/es/components/withdraw/display/web.pc.module.less +4 -2
- package/es/configuration/attrUpdateMatrix.js +6 -1
- package/es/data/i18n.js +17 -3
- package/es/entities/Order.d.ts +2 -2
- package/es/locales/common/zh_CN.json +1 -0
- package/es/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/Order/Schema.d.ts +3 -3
- package/es/oak-app-domain/Order/Storage.js +1 -4
- package/lib/aspects/withdraw.d.ts +4 -4
- package/lib/components/pay/detail/index.js +11 -0
- package/lib/configuration/attrUpdateMatrix.js +6 -1
- package/lib/context/BackendRuntimeContext.d.ts +1 -1
- package/lib/data/i18n.js +17 -3
- package/lib/entities/Order.d.ts +2 -2
- package/lib/locales/common/zh_CN.json +1 -0
- package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/Order/Schema.d.ts +3 -3
- package/lib/oak-app-domain/Order/Storage.js +1 -4
- package/lib/utils/application.d.ts +1 -1
- package/package.json +2 -2
- package/src/entities/Order.ts +1 -1
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WebComponentProps } from 'oak-frontend-base';
|
|
3
3
|
import { EntityDict } from '../../../oak-app-domain';
|
|
4
|
-
export default function Render(props: WebComponentProps<EntityDict, 'accountOper',
|
|
4
|
+
export default function Render(props: WebComponentProps<EntityDict, 'accountOper', true, {
|
|
5
5
|
accountOpers?: Array<{
|
|
6
6
|
value: string;
|
|
7
7
|
time: string;
|
|
8
8
|
type: string;
|
|
9
9
|
symbol: string;
|
|
10
10
|
avail: string;
|
|
11
|
+
bgColor: string;
|
|
11
12
|
}>;
|
|
12
|
-
|
|
13
|
+
hasMore: boolean;
|
|
14
|
+
month?: Date;
|
|
15
|
+
monthStr: string;
|
|
16
|
+
type: 'in' | 'out' | 'both';
|
|
17
|
+
chooseMonth: boolean;
|
|
18
|
+
chooseType: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
setMonth: (month?: Date) => void;
|
|
21
|
+
setType: (type: 'in' | 'out' | 'both') => void;
|
|
22
|
+
setChooseMonth: (cm: boolean) => void;
|
|
23
|
+
setChooseType: (ct: boolean) => void;
|
|
24
|
+
}>): React.JSX.Element;
|
|
@@ -1,11 +1,46 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { List, Flex } from 'antd';
|
|
2
|
+
import { Avatar, List, Select, Flex, Button, Card, Result, DatePicker } from 'antd';
|
|
3
|
+
import Styles from './web.module.less';
|
|
4
|
+
import dayJs from 'dayjs';
|
|
3
5
|
export default function Render(props) {
|
|
4
|
-
const { accountOpers } = props.data;
|
|
5
|
-
const { t } = props.methods;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const { accountOpers, hasMore, month, type, chooseMonth, chooseType, monthStr, oakLoading, oakLoadingMore } = props.data;
|
|
7
|
+
const { t, loadMore, setType, setMonth, setChooseMonth, setChooseType, navigateBack } = props.methods;
|
|
8
|
+
return (<>
|
|
9
|
+
<Card title={t('history')} extra={<Flex gap="middle" className={Styles.control}>
|
|
10
|
+
<DatePicker picker="month" onChange={(value) => {
|
|
11
|
+
setMonth(value.toDate());
|
|
12
|
+
}} maxDate={dayJs()}/>
|
|
13
|
+
<Select style={{ width: 120 }} onChange={(value) => {
|
|
14
|
+
setType(value);
|
|
15
|
+
}} value={type} options={[
|
|
16
|
+
{ value: 'both', label: t('type.both') },
|
|
17
|
+
{ value: 'in', label: t('type.in') },
|
|
18
|
+
{ value: 'out', label: t('type.out') },
|
|
19
|
+
]}/>
|
|
20
|
+
</Flex>}>
|
|
21
|
+
{accountOpers?.length ?
|
|
22
|
+
<List className={Styles.list} loading={oakLoading || oakLoadingMore} dataSource={accountOpers} renderItem={(item, idx) => (<List.Item key={idx}>
|
|
23
|
+
<List.Item.Meta avatar={<Avatar style={{ backgroundColor: item.bgColor }}>{item.symbol}</Avatar>} title={<span className={Styles.type}>{item.type}</span>} description={<Flex justify="between" className={Styles.main} gap="large">
|
|
24
|
+
<span>{item.time}</span>
|
|
25
|
+
<span>{t('account:attr.avail')}:{item.avail}</span>
|
|
26
|
+
</Flex>}/>
|
|
27
|
+
<div className={Styles.value} style={{
|
|
28
|
+
color: item.bgColor,
|
|
29
|
+
}}>
|
|
30
|
+
{item.value}
|
|
31
|
+
</div>
|
|
32
|
+
</List.Item>)} loadMore={!oakLoading && !oakLoadingMore && hasMore ? (<div style={{
|
|
33
|
+
textAlign: 'center',
|
|
34
|
+
marginTop: 12,
|
|
35
|
+
height: 32,
|
|
36
|
+
lineHeight: '32px',
|
|
37
|
+
}}>
|
|
38
|
+
<Button onClick={loadMore}>
|
|
39
|
+
{t('common::loadMore')}
|
|
40
|
+
</Button>
|
|
41
|
+
</div>) : null}/> : (<Result status="404" title={t('common::noData')} extra={<Button onClick={() => navigateBack()}>
|
|
42
|
+
{t('common::back')}
|
|
43
|
+
</Button>}/>)}
|
|
44
|
+
</Card>
|
|
45
|
+
</>);
|
|
11
46
|
}
|
|
@@ -264,6 +264,17 @@ export default OakComponent({
|
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
|
+
updateExternalIdMp(input) {
|
|
268
|
+
const { detail } = input;
|
|
269
|
+
this.update({
|
|
270
|
+
externalId: detail.value,
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
clearExternalIdMp() {
|
|
274
|
+
this.update({
|
|
275
|
+
externalId: null,
|
|
276
|
+
});
|
|
277
|
+
}
|
|
267
278
|
},
|
|
268
279
|
lifetimes: {
|
|
269
280
|
ready() {
|
|
@@ -48,6 +48,16 @@
|
|
|
48
48
|
<l-form-item label-width="240rpx" label="{{t('code.label')}}">
|
|
49
49
|
<l-tag bg-color="#d9363e">{{pay.phantom3}}</l-tag>
|
|
50
50
|
</l-form-item>
|
|
51
|
+
<l-form-item label-width="240rpx" label="{{t('externalId.label')}}">
|
|
52
|
+
<l-input
|
|
53
|
+
hide-label="{{true}}"
|
|
54
|
+
clear="{{true}}"
|
|
55
|
+
disabled="{{pay.iState !== 'paying'}}"
|
|
56
|
+
placeholder="{{t('externalId.help')}}"
|
|
57
|
+
bind:lininput="updateExternalIdMp"
|
|
58
|
+
bind:linclear="clearExternalIdMp"
|
|
59
|
+
/>
|
|
60
|
+
</l-form-item>
|
|
51
61
|
<block wx:if="{{offline.type === 'bank'}}">
|
|
52
62
|
<l-form-item label-width="240rpx" label="{{t('offlineAccount::label.channel.bank')}}">
|
|
53
63
|
<view>{{offline.channel}}</view>
|
|
@@ -25,10 +25,14 @@
|
|
|
25
25
|
},
|
|
26
26
|
"code": {
|
|
27
27
|
"label": "转帐凭证号",
|
|
28
|
-
"help": "
|
|
28
|
+
"help": "请在转帐时于留言中附上转帐凭证号,便于人工核对。若转账时忘记附上,则请准确填写转账流水号。"
|
|
29
29
|
},
|
|
30
30
|
"channel": {
|
|
31
31
|
"change": "更换",
|
|
32
32
|
"prefix": "渠道"
|
|
33
|
+
},
|
|
34
|
+
"externalId": {
|
|
35
|
+
"label": "转账流水号",
|
|
36
|
+
"help": "转账成功后有唯一流水号,将之正确填入可减少财务人员核对时的错误概率,给您带来更大便利"
|
|
33
37
|
}
|
|
34
38
|
}
|
|
@@ -10,6 +10,7 @@ export declare function RenderOffline(props: {
|
|
|
10
10
|
offlines: ColoredOffline[];
|
|
11
11
|
offline: ColoredOffline;
|
|
12
12
|
updateOfflineId: (entityId: string) => void;
|
|
13
|
+
updateExternalId: (externalId: string) => void;
|
|
13
14
|
}): React.JSX.Element;
|
|
14
15
|
export default function Render(props: WebComponentProps<EntityDict, 'pay', false, {
|
|
15
16
|
pay?: RowWithActions<EntityDict, 'pay'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { Card, Tag, List, Button, Modal, Form, Selector, Popup } from 'antd-mobile';
|
|
2
|
+
import { Card, Tag, List, Button, Modal, Form, Selector, Input, Popup } from 'antd-mobile';
|
|
3
3
|
import { QRCode, Alert } from 'antd';
|
|
4
4
|
import Styles from './web.mobile.module.less';
|
|
5
5
|
import * as dayJs from 'dayjs';
|
|
@@ -9,8 +9,8 @@ import { CentToString } from 'oak-domain/lib/utils/money';
|
|
|
9
9
|
import { PayCircleOutline, GlobalOutline, InformationCircleOutline, CheckCircleOutline } from 'antd-mobile-icons';
|
|
10
10
|
import { generateNewIdAsync } from 'oak-domain/lib/utils/uuid';
|
|
11
11
|
export function RenderOffline(props) {
|
|
12
|
-
const { pay, t, offline, offlines, updateOfflineId } = props;
|
|
13
|
-
const { meta, iState, phantom3 } = pay;
|
|
12
|
+
const { pay, t, offline, offlines, updateOfflineId, updateExternalId } = props;
|
|
13
|
+
const { meta, iState, phantom3, externalId } = pay;
|
|
14
14
|
const { type, channel, name, qrCode, color } = offline || {};
|
|
15
15
|
const [show, setShow] = useState(false);
|
|
16
16
|
const items2 = [
|
|
@@ -23,6 +23,11 @@ export function RenderOffline(props) {
|
|
|
23
23
|
<Tag color="red">
|
|
24
24
|
<span style={{ fontSize: 'large' }}>{phantom3}</span>
|
|
25
25
|
</Tag>
|
|
26
|
+
</Form.Item>,
|
|
27
|
+
<Form.Item key="externalId" label={<span className={Styles.bold}>{t('externalId.label')}</span>}>
|
|
28
|
+
<Input autoFocus value={externalId || ''} onChange={(value) => {
|
|
29
|
+
updateExternalId(value);
|
|
30
|
+
}} placeholder={t('externalId.help')} disabled={iState !== 'paying'}/>
|
|
26
31
|
</Form.Item>
|
|
27
32
|
];
|
|
28
33
|
if (type === 'bank') {
|
|
@@ -121,7 +126,7 @@ function RenderWechatPay(props) {
|
|
|
121
126
|
return null;
|
|
122
127
|
}
|
|
123
128
|
function RenderPayMeta(props) {
|
|
124
|
-
const { pay, notSameApp, t, offlines, offline, updateOfflineId } = props;
|
|
129
|
+
const { pay, notSameApp, t, offlines, offline, updateOfflineId, updateExternalId } = props;
|
|
125
130
|
const { iState, entity } = pay;
|
|
126
131
|
if (entity !== 'offlineAccount' && notSameApp) {
|
|
127
132
|
return <Alert type='warning' message={t('notSameApp')}/>;
|
|
@@ -131,7 +136,7 @@ function RenderPayMeta(props) {
|
|
|
131
136
|
if (offline && offlines) {
|
|
132
137
|
return (<>
|
|
133
138
|
{iState === 'paying' && <Alert type='info' message={t('code.help')} style={{ marginBottom: 10 }}/>}
|
|
134
|
-
<RenderOffline t={t} pay={pay} offline={offline} offlines={offlines} updateOfflineId={updateOfflineId}/>
|
|
139
|
+
<RenderOffline t={t} pay={pay} offline={offline} offlines={offlines} updateOfflineId={updateOfflineId} updateExternalId={updateExternalId}/>
|
|
135
140
|
</>);
|
|
136
141
|
}
|
|
137
142
|
return null;
|
|
@@ -208,6 +213,8 @@ export default function Render(props) {
|
|
|
208
213
|
}
|
|
209
214
|
}
|
|
210
215
|
]);
|
|
216
|
+
}} updateExternalId={(externalId) => {
|
|
217
|
+
update({ externalId });
|
|
211
218
|
}}/>
|
|
212
219
|
</div>
|
|
213
220
|
<div className={Styles.padding}/>
|
|
@@ -10,6 +10,7 @@ export declare function RenderOffline(props: {
|
|
|
10
10
|
offlines: ColoredOffline[];
|
|
11
11
|
offline: ColoredOffline;
|
|
12
12
|
updateOfflineId: (entityId: string) => void;
|
|
13
|
+
updateExternalId: (externalId: string) => void;
|
|
13
14
|
}): React.JSX.Element | null;
|
|
14
15
|
export default function Render(props: WebComponentProps<EntityDict, 'pay', false, {
|
|
15
16
|
pay?: RowWithActions<EntityDict, 'pay'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { Tag, Card, QRCode, Form, Descriptions, Typography, Alert, Button, Modal, Radio } from 'antd';
|
|
2
|
+
import { Input, Tag, Card, QRCode, Form, Descriptions, Typography, Alert, Button, Modal, Radio } from 'antd';
|
|
3
3
|
import { CheckCircleOutlined } from '@ant-design/icons';
|
|
4
4
|
import { CentToString } from 'oak-domain/lib/utils/money';
|
|
5
5
|
import Styles from './web.pc.module.less';
|
|
@@ -8,8 +8,8 @@ import duration from 'dayjs/plugin/duration';
|
|
|
8
8
|
import { generateNewIdAsync } from 'oak-domain/lib/utils/uuid';
|
|
9
9
|
dayJs.extend(duration);
|
|
10
10
|
export function RenderOffline(props) {
|
|
11
|
-
const { pay, t, offline, offlines, updateOfflineId } = props;
|
|
12
|
-
const { iState, phantom3 } = pay;
|
|
11
|
+
const { pay, t, offline, offlines, updateOfflineId, updateExternalId } = props;
|
|
12
|
+
const { iState, phantom3, externalId } = pay;
|
|
13
13
|
const { type, channel, name, qrCode, color } = offline;
|
|
14
14
|
const [show, setShow] = useState(false);
|
|
15
15
|
const [showQrCode, setShowQrCode] = useState(false);
|
|
@@ -23,6 +23,12 @@ export function RenderOffline(props) {
|
|
|
23
23
|
<Tag color="red">
|
|
24
24
|
<span style={{ fontSize: 'large' }}>{phantom3}</span>
|
|
25
25
|
</Tag>
|
|
26
|
+
</Form.Item>,
|
|
27
|
+
<Form.Item key="externalId" label={<span className={Styles.bold}>{t('externalId.label')}</span>}>
|
|
28
|
+
<Input value={externalId || ''} onChange={({ currentTarget }) => {
|
|
29
|
+
const { value } = currentTarget;
|
|
30
|
+
updateExternalId(value);
|
|
31
|
+
}} placeholder={t('externalId.help')} disabled={iState !== 'paying'}/>
|
|
26
32
|
</Form.Item>
|
|
27
33
|
];
|
|
28
34
|
if (type === 'bank') {
|
|
@@ -123,7 +129,7 @@ function RenderWechatPay(props) {
|
|
|
123
129
|
return null;
|
|
124
130
|
}
|
|
125
131
|
function RenderPayMeta(props) {
|
|
126
|
-
const { pay, notSameApp, t, offlines, offline, updateOfflineId } = props;
|
|
132
|
+
const { pay, notSameApp, t, offlines, offline, updateOfflineId, updateExternalId } = props;
|
|
127
133
|
const { iState, entity } = pay;
|
|
128
134
|
if (entity !== 'offlineAccount' && notSameApp) {
|
|
129
135
|
return <Alert type='warning' message={t('notSameApp')}/>;
|
|
@@ -133,7 +139,7 @@ function RenderPayMeta(props) {
|
|
|
133
139
|
if (offline && offlines) {
|
|
134
140
|
return (<>
|
|
135
141
|
{iState === 'paying' && <Alert type='info' message={t('code.help')} style={{ marginBottom: 10 }}/>}
|
|
136
|
-
<RenderOffline t={t} pay={pay} offline={offline} offlines={offlines} updateOfflineId={updateOfflineId}/>
|
|
142
|
+
<RenderOffline t={t} pay={pay} offline={offline} offlines={offlines} updateOfflineId={updateOfflineId} updateExternalId={updateExternalId}/>
|
|
137
143
|
</>);
|
|
138
144
|
}
|
|
139
145
|
return null;
|
|
@@ -214,6 +220,10 @@ export default function Render(props) {
|
|
|
214
220
|
}
|
|
215
221
|
}
|
|
216
222
|
]);
|
|
223
|
+
}} updateExternalId={(externalId) => {
|
|
224
|
+
update({
|
|
225
|
+
externalId,
|
|
226
|
+
});
|
|
217
227
|
}}/>
|
|
218
228
|
</div>
|
|
219
229
|
<div className={Styles.btn}>
|
|
@@ -146,6 +146,8 @@ export default function Render(props) {
|
|
|
146
146
|
{offlines && <RenderOffline pay={spRow} t={t} offlines={offlines} offline={offlines.find(ele => ele.id === spRow.entityId)} updateOfflineId={(entityId) => updateItem({
|
|
147
147
|
entity: 'offlineAccount',
|
|
148
148
|
entityId
|
|
149
|
+
}, spId)} updateExternalId={(externalId) => updateItem({
|
|
150
|
+
externalId,
|
|
149
151
|
}, spId)}/>}
|
|
150
152
|
<Divider style={{ width: '80%', alignSelf: 'flex-end' }}/>
|
|
151
153
|
<Form labelCol={{ span: 8 }} wrapperCol={{ span: 12 }} layout="horizontal" style={{ width: '100%', marginTop: 12 }}>
|
|
@@ -5,5 +5,6 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
|
|
|
5
5
|
onNewWithdrawAccount: () => void;
|
|
6
6
|
onCreateWithdraw: (id: string) => void;
|
|
7
7
|
onGoToHistory: () => void;
|
|
8
|
+
onGoToWaManage: () => void;
|
|
8
9
|
}>) => React.ReactElement;
|
|
9
10
|
export default _default;
|
|
@@ -10,6 +10,7 @@ export default OakComponent({
|
|
|
10
10
|
onNewWithdrawAccount: () => undefined,
|
|
11
11
|
onCreateWithdraw: (id) => undefined,
|
|
12
12
|
onGoToHistory: () => undefined,
|
|
13
|
+
onGoToWaManage: () => undefined,
|
|
13
14
|
},
|
|
14
15
|
formData({ features }) {
|
|
15
16
|
const { accountId, withdrawAccountFilter } = this.props;
|
|
@@ -220,6 +221,9 @@ export default OakComponent({
|
|
|
220
221
|
onGoToHistoryMp() {
|
|
221
222
|
const { onGoToHistory } = this.props;
|
|
222
223
|
onGoToHistory && onGoToHistory();
|
|
224
|
+
},
|
|
225
|
+
onGoToWaManageMp() {
|
|
226
|
+
this.props.onGoToWaManage();
|
|
223
227
|
}
|
|
224
228
|
},
|
|
225
229
|
});
|
|
@@ -105,6 +105,10 @@
|
|
|
105
105
|
<oak-icon name="coupons" size="18" color="@oak-color-primary" style="margin-right:8rpx;"/>
|
|
106
106
|
<span>{{t('gotoHistory')}}</span>
|
|
107
107
|
</view>
|
|
108
|
+
<view class="gotoHistory" bindtap="onGoToWaManageMp">
|
|
109
|
+
<oak-icon name="enterinto" size="18" color="@oak-color-primary" style="margin-right:8rpx;"/>
|
|
110
|
+
<span>{{t('gotoWaManage')}}</span>
|
|
111
|
+
</view>
|
|
108
112
|
<view class="footer">
|
|
109
113
|
<l-button
|
|
110
114
|
size="long"
|
|
@@ -21,6 +21,7 @@ export default function render(props: WebComponentProps<EntityDict, 'withdraw',
|
|
|
21
21
|
waFilter?: EntityDict['withdrawAccount']['Selection']['filter'];
|
|
22
22
|
userId: string;
|
|
23
23
|
onGoToHistory: () => void;
|
|
24
|
+
onGoToWaManage: () => void;
|
|
24
25
|
}, {
|
|
25
26
|
setValue: (v: string | number | null) => void;
|
|
26
27
|
switchHelp: (type: 'method' | 'loss') => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button, Input, Result } from 'antd-mobile';
|
|
3
|
-
import { DownOutline, UpOutline, ReceiptOutline } from 'antd-mobile-icons';
|
|
3
|
+
import { DownOutline, UpOutline, ReceiptOutline, BankcardOutline } from 'antd-mobile-icons';
|
|
4
4
|
import Styles from './web.module.less';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import WithDrawAccountPicker from '../../withdrawAccount/list';
|
|
7
7
|
import WithdrawDisplay from '../display';
|
|
8
8
|
export default function render(props) {
|
|
9
|
-
const { account, value, refundAmount, manualAmount, avail, availYuan, valueYuan, manualAmountYuan, refundAmountYuan, showMethodHelp, showLossHelp, executale, withdrawCreate, withdrawable, withdrawLossText, chooseWa, waFilter, userId, onGoToHistory } = props.data;
|
|
9
|
+
const { account, value, refundAmount, manualAmount, avail, availYuan, valueYuan, manualAmountYuan, refundAmountYuan, showMethodHelp, showLossHelp, executale, withdrawCreate, withdrawable, withdrawLossText, chooseWa, waFilter, userId, onGoToHistory, onGoToWaManage } = props.data;
|
|
10
10
|
const { t, setValue, switchHelp, createWithdrawData, restartAll, createWithdraw, goBack, pickWithdrawChannel } = props.methods;
|
|
11
11
|
if (!withdrawable) {
|
|
12
12
|
return (<Result status='error' title={t('notSetYet')} description={<Button color="primary" onClick={() => goBack()}>
|
|
@@ -85,6 +85,10 @@ export default function render(props) {
|
|
|
85
85
|
<ReceiptOutline scale={1.4}/>
|
|
86
86
|
{t('gotoHistory')}
|
|
87
87
|
</div>
|
|
88
|
+
<div className={Styles.gotoHistory} onClick={onGoToWaManage}>
|
|
89
|
+
<BankcardOutline scale={1.4}/>
|
|
90
|
+
{t('gotoWaManage')}
|
|
91
|
+
</div>
|
|
88
92
|
<div style={{ flex: 1 }}/>
|
|
89
93
|
<Button className={Styles.btn} block color="primary" disabled={!executale} onClick={() => createWithdrawData()}>
|
|
90
94
|
{t('common::confirm')}
|
|
@@ -21,6 +21,7 @@ export default function render(props: WebComponentProps<EntityDict, 'withdraw',
|
|
|
21
21
|
waFilter?: EntityDict['withdrawAccount']['Selection']['filter'];
|
|
22
22
|
userId: string;
|
|
23
23
|
onGoToHistory: () => void;
|
|
24
|
+
onGoToWaManage: () => void;
|
|
24
25
|
}, {
|
|
25
26
|
setValue: (v: number | null) => void;
|
|
26
27
|
switchHelp: (type: 'method' | 'loss') => void;
|
|
@@ -6,7 +6,7 @@ import classNames from 'classnames';
|
|
|
6
6
|
import WithDrawAccountPicker from '../../withdrawAccount/list';
|
|
7
7
|
import WithdrawDisplay from '../display';
|
|
8
8
|
export default function render(props) {
|
|
9
|
-
const { account, value, refundAmount, manualAmount, avail, availYuan, valueYuan, manualAmountYuan, refundAmountYuan, showMethodHelp, showLossHelp, executale, withdrawCreate, withdrawable, withdrawLossText, chooseWa, waFilter, userId, onGoToHistory } = props.data;
|
|
9
|
+
const { account, value, refundAmount, manualAmount, avail, availYuan, valueYuan, manualAmountYuan, refundAmountYuan, showMethodHelp, showLossHelp, executale, withdrawCreate, withdrawable, withdrawLossText, chooseWa, waFilter, userId, onGoToHistory, onGoToWaManage } = props.data;
|
|
10
10
|
const { t, setValue, switchHelp, createWithdrawData, restartAll, createWithdraw, goBack, pickWithdrawChannel } = props.methods;
|
|
11
11
|
if (!withdrawable) {
|
|
12
12
|
return (<Result status="500" title="500" subTitle={t('notSetYet')} extra={<Button type="primary" onClick={() => goBack()}>
|
|
@@ -70,6 +70,9 @@ export default function render(props) {
|
|
|
70
70
|
<div className={Styles.gotoHistory} onClick={onGoToHistory}>
|
|
71
71
|
{t('gotoHistory')}
|
|
72
72
|
</div>
|
|
73
|
+
<div className={Styles.gotoHistory} onClick={onGoToWaManage}>
|
|
74
|
+
{t('gotoWaManage')}
|
|
75
|
+
</div>
|
|
73
76
|
<div style={{ flex: 1 }}/>
|
|
74
77
|
<Button className={Styles.btn} size="large" type="primary" disabled={!executale} onClick={() => createWithdrawData()}>
|
|
75
78
|
{t('common::confirm')}
|
|
@@ -47,7 +47,9 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.refundItem {
|
|
50
|
-
width: 223px;
|
|
50
|
+
// width: 223px;
|
|
51
|
+
width: 100%;
|
|
52
|
+
box-sizing: border-box;
|
|
51
53
|
margin: 12px;
|
|
52
54
|
padding: 8px;
|
|
53
55
|
font-size: small;
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
margin-right: 4px;
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
|
-
|
|
82
|
+
|
|
81
83
|
.reason {
|
|
82
84
|
color: var(--oak-color-error);
|
|
83
85
|
}
|
|
@@ -67,7 +67,12 @@ const attrUpdateMatrix = {
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
externalId: {
|
|
70
|
-
actions: ['startPaying', 'succeedPaying'],
|
|
70
|
+
actions: ['startPaying', 'succeedPaying', 'update'],
|
|
71
|
+
filter: {
|
|
72
|
+
iState: {
|
|
73
|
+
$in: ['unpaid', 'paying'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
71
76
|
},
|
|
72
77
|
},
|
|
73
78
|
refund: {
|
package/es/data/i18n.js
CHANGED
|
@@ -52,7 +52,15 @@ const i18ns = [
|
|
|
52
52
|
language: "zh-CN",
|
|
53
53
|
module: "oak-pay-business",
|
|
54
54
|
position: "src/components/accountOper/list",
|
|
55
|
-
data: {
|
|
55
|
+
data: {
|
|
56
|
+
"history": "账户历史",
|
|
57
|
+
"chooseMonth": "选择月份",
|
|
58
|
+
"type": {
|
|
59
|
+
"both": "全部",
|
|
60
|
+
"in": "仅收入",
|
|
61
|
+
"out": "仅支出"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
56
64
|
},
|
|
57
65
|
{
|
|
58
66
|
id: "65d19e4723a89c25e3c10a87013af430",
|
|
@@ -198,11 +206,15 @@ const i18ns = [
|
|
|
198
206
|
},
|
|
199
207
|
"code": {
|
|
200
208
|
"label": "转帐凭证号",
|
|
201
|
-
"help": "
|
|
209
|
+
"help": "请在转帐时于留言中附上转帐凭证号,便于人工核对。若转账时忘记附上,则请准确填写转账流水号。"
|
|
202
210
|
},
|
|
203
211
|
"channel": {
|
|
204
212
|
"change": "更换",
|
|
205
213
|
"prefix": "渠道"
|
|
214
|
+
},
|
|
215
|
+
"externalId": {
|
|
216
|
+
"label": "转账流水号",
|
|
217
|
+
"help": "转账成功后有唯一流水号,将之正确填入可减少财务人员核对时的错误概率,给您带来更大便利"
|
|
206
218
|
}
|
|
207
219
|
}
|
|
208
220
|
},
|
|
@@ -449,7 +461,8 @@ const i18ns = [
|
|
|
449
461
|
"overflowManualAmount": "提现额度不能超过人工划款的额度"
|
|
450
462
|
},
|
|
451
463
|
"innerLogic": "自动运算",
|
|
452
|
-
"gotoHistory": "提现历史"
|
|
464
|
+
"gotoHistory": "提现历史",
|
|
465
|
+
"gotoWaManage": "提现账户管理"
|
|
453
466
|
}
|
|
454
467
|
},
|
|
455
468
|
{
|
|
@@ -696,6 +709,7 @@ const i18ns = [
|
|
|
696
709
|
"enter": "请输入",
|
|
697
710
|
"change": "修改",
|
|
698
711
|
"finish": "完成",
|
|
712
|
+
"loadMore": "加载更多",
|
|
699
713
|
"pay": {
|
|
700
714
|
"symbol": "¥",
|
|
701
715
|
"scale": "元"
|
package/es/entities/Order.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { String, Price, Boolean, Datetime } from 'oak-domain/lib/types/DataType';
|
|
1
|
+
import { String, Text, Price, Boolean, Datetime } from 'oak-domain/lib/types/DataType';
|
|
2
2
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
3
3
|
import { EntityDesc, ActionDef } from 'oak-domain/lib/types';
|
|
4
4
|
import { Schema as User } from 'oak-general-business/lib/entities/User';
|
|
@@ -9,7 +9,7 @@ export interface Schema extends EntityShape {
|
|
|
9
9
|
paid: Price;
|
|
10
10
|
refunded: Price;
|
|
11
11
|
title: String<32>;
|
|
12
|
-
desc:
|
|
12
|
+
desc: Text;
|
|
13
13
|
timeoutAt: Datetime;
|
|
14
14
|
creator: User;
|
|
15
15
|
entity: String<32>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "帐号操作", "attr": { "account": "帐号", "type": "类型", "totalPlus": "余额变化", "availPlus": "可用余额变化", "refundablePlus": "可退款余额变化", "total": "操作后余额", "avail": "操作后可用余额", "refundable": "操作后可退款余额", "entity": "关联对象", "entityId": "关联对象Id" }, "v": { "type": { "deposit": "充值", "withdraw": "提现", "consume": "消费", "loan": "抵押", "repay": "偿还", "withdrawBack": "
|
|
1
|
+
{ "name": "帐号操作", "attr": { "account": "帐号", "type": "类型", "totalPlus": "余额变化", "availPlus": "可用余额变化", "refundablePlus": "可退款余额变化", "total": "操作后余额", "avail": "操作后可用余额", "refundable": "操作后可退款余额", "entity": "关联对象", "entityId": "关联对象Id" }, "v": { "type": { "deposit": "充值", "withdraw": "提现", "consume": "消费", "loan": "抵押", "repay": "偿还", "withdrawBack": "提现未遂", "earn": "赚取", "encash": "兑现", "tax": "渠道费", "taxRefund": "渠道费用退还", "cutoffRefundable": "削减可自由退额度", "refund": "退款", "refundFailure": "退款失败" } } }
|
|
@@ -3,7 +3,7 @@ import { Q_DateValue, Q_BooleanValue, Q_NumberValue, Q_StringValue, Q_EnumValue,
|
|
|
3
3
|
import { OneOf } from "oak-domain/lib/types/Polyfill";
|
|
4
4
|
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "oak-domain/lib/types/Entity";
|
|
5
5
|
import { Action, ParticularAction, IState } from "./Action";
|
|
6
|
-
import { Price, String, Datetime, Boolean } from "oak-domain/lib/types/DataType";
|
|
6
|
+
import { Price, String, Text, Datetime, Boolean } from "oak-domain/lib/types/DataType";
|
|
7
7
|
import * as User from "../User/Schema";
|
|
8
8
|
import * as System from "../System/Schema";
|
|
9
9
|
import * as Pay from "../Pay/Schema";
|
|
@@ -13,7 +13,7 @@ export type OpSchema = EntityShape & {
|
|
|
13
13
|
paid: Price;
|
|
14
14
|
refunded: Price;
|
|
15
15
|
title: String<32>;
|
|
16
|
-
desc:
|
|
16
|
+
desc: Text;
|
|
17
17
|
timeoutAt: Datetime;
|
|
18
18
|
creatorId: ForeignKey<"user">;
|
|
19
19
|
entity: String<32>;
|
|
@@ -28,7 +28,7 @@ export type Schema = EntityShape & {
|
|
|
28
28
|
paid: Price;
|
|
29
29
|
refunded: Price;
|
|
30
30
|
title: String<32>;
|
|
31
|
-
desc:
|
|
31
|
+
desc: Text;
|
|
32
32
|
timeoutAt: Datetime;
|
|
33
33
|
creatorId: ForeignKey<"user">;
|
|
34
34
|
entity: String<32>;
|
|
@@ -3,7 +3,7 @@ export declare function getWithdrawCreateData(params: {
|
|
|
3
3
|
accountId: string;
|
|
4
4
|
price: number;
|
|
5
5
|
withdrawAccountId?: string;
|
|
6
|
-
}, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
6
|
+
}, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
7
7
|
id: string;
|
|
8
8
|
} & {
|
|
9
9
|
accountId: string;
|
|
@@ -17,7 +17,7 @@ export declare function getWithdrawCreateData(params: {
|
|
|
17
17
|
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
18
18
|
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
19
19
|
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
20
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
20
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
21
21
|
id: string;
|
|
22
22
|
} & {
|
|
23
23
|
accountId: string;
|
|
@@ -31,7 +31,7 @@ export declare function getWithdrawCreateData(params: {
|
|
|
31
31
|
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
32
32
|
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
33
33
|
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
34
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
34
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
35
35
|
id: string;
|
|
36
36
|
} & {
|
|
37
37
|
account?: undefined;
|
|
@@ -45,7 +45,7 @@ export declare function getWithdrawCreateData(params: {
|
|
|
45
45
|
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
46
46
|
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
47
47
|
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
48
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
48
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
49
49
|
id: string;
|
|
50
50
|
} & {
|
|
51
51
|
account?: undefined;
|
|
@@ -269,6 +269,17 @@ exports.default = OakComponent({
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
|
+
updateExternalIdMp(input) {
|
|
273
|
+
const { detail } = input;
|
|
274
|
+
this.update({
|
|
275
|
+
externalId: detail.value,
|
|
276
|
+
});
|
|
277
|
+
},
|
|
278
|
+
clearExternalIdMp() {
|
|
279
|
+
this.update({
|
|
280
|
+
externalId: null,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
272
283
|
},
|
|
273
284
|
lifetimes: {
|
|
274
285
|
ready() {
|
|
@@ -69,7 +69,12 @@ const attrUpdateMatrix = {
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
externalId: {
|
|
72
|
-
actions: ['startPaying', 'succeedPaying'],
|
|
72
|
+
actions: ['startPaying', 'succeedPaying', 'update'],
|
|
73
|
+
filter: {
|
|
74
|
+
iState: {
|
|
75
|
+
$in: ['unpaid', 'paying'],
|
|
76
|
+
},
|
|
77
|
+
},
|
|
73
78
|
},
|
|
74
79
|
},
|
|
75
80
|
refund: {
|