oak-pay-business 2.2.5 → 2.2.7
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/AbstractComponents.d.ts +22 -10
- package/es/components/AbstractComponents.js +0 -1
- package/es/components/account/detail/index.js +8 -1
- package/es/components/account/detail/index.less +10 -1
- package/es/components/account/detail/index.xml +11 -5
- package/es/components/account/detail/web.pc.module.less +68 -68
- package/es/components/deposit/new/index.d.ts +1 -0
- package/es/components/deposit/new/index.js +1 -0
- package/es/components/deposit/new/index.xml +15 -2
- package/es/components/order/pay/info.js +6 -6
- package/es/components/order/pay/info.module.less +24 -24
- package/es/components/order/pay/web.mobile.module.less +35 -35
- package/es/components/order/pay/web.pc.module.less +35 -35
- package/es/components/payConfig/upsert/offline/web.pc.module.less +4 -4
- package/es/components/payConfig/upsert/web.pc.module.less +10 -10
- package/es/components/wpAccount/upsert/web.pc.js +1 -1
- package/es/entities/Refund.d.ts +2 -1
- package/es/entities/Refund.js +2 -1
- package/es/oak-app-domain/Refund/Schema.d.ts +7 -1
- package/es/oak-app-domain/Refund/Storage.js +3 -0
- package/es/oak-app-domain/Refund/locales/zh_CN.json +1 -1
- package/es/triggers/refund.js +1 -1
- package/es/types/Exception.d.ts +1 -1
- package/es/types/Exception.js +3 -3
- package/es/types/PayClazz.d.ts +8 -2
- package/es/utils/pay.d.ts +1 -0
- package/es/utils/pay.js +52 -0
- package/es/utils/payClazz/Account.d.ts +6 -1
- package/es/utils/payClazz/Account.js +3 -3
- package/es/utils/payClazz/Offline.d.ts +6 -1
- package/es/utils/payClazz/Offline.js +3 -4
- package/es/utils/payClazz/WechatPay/WechatPay.d.ts +10 -5
- package/es/utils/payClazz/WechatPay/WechatPay.debug.d.ts +7 -2
- package/es/utils/payClazz/WechatPay/WechatPay.debug.js +4 -4
- package/es/utils/payClazz/WechatPay/WechatPay.js +98 -14
- package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/lib/entities/Refund.d.ts +2 -1
- package/lib/entities/Refund.js +2 -1
- package/lib/oak-app-domain/Refund/Schema.d.ts +7 -1
- package/lib/oak-app-domain/Refund/Storage.js +3 -0
- package/lib/oak-app-domain/Refund/locales/zh_CN.json +1 -1
- package/lib/triggers/refund.js +1 -1
- package/lib/types/Exception.d.ts +1 -1
- package/lib/types/Exception.js +5 -5
- package/lib/types/PayClazz.d.ts +8 -2
- package/lib/utils/pay.d.ts +1 -0
- package/lib/utils/pay.js +54 -1
- package/lib/utils/payClazz/Account.d.ts +6 -1
- package/lib/utils/payClazz/Account.js +3 -3
- package/lib/utils/payClazz/Offline.d.ts +6 -1
- package/lib/utils/payClazz/Offline.js +3 -4
- package/lib/utils/payClazz/WechatPay/WechatPay.d.ts +10 -5
- package/lib/utils/payClazz/WechatPay/WechatPay.debug.d.ts +7 -2
- package/lib/utils/payClazz/WechatPay/WechatPay.debug.js +4 -4
- package/lib/utils/payClazz/WechatPay/WechatPay.js +97 -13
- package/package.json +4 -4
- package/src/entities/Refund.ts +3 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* 抽象组件在业务层根据EntityDict的重新声明
|
|
3
3
|
* by Xc 20230807
|
|
4
4
|
*/
|
|
5
|
+
import React from 'react';
|
|
5
6
|
import { EntityDict } from '../oak-app-domain';
|
|
6
7
|
import { ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, ListButtonProps, OakAbsAttrUpsertDef } from 'oak-frontend-base';
|
|
7
8
|
declare const FilterPanel: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
@@ -16,14 +17,20 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
|
|
|
16
17
|
attributes: OakAbsAttrDef[];
|
|
17
18
|
data: RowWithActions<EntityDict, T>[];
|
|
18
19
|
loading: boolean;
|
|
19
|
-
tablePagination?:
|
|
20
|
-
rowSelection?:
|
|
20
|
+
tablePagination?: React.ReactNode;
|
|
21
|
+
rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
|
|
21
22
|
hideHeader?: boolean | undefined;
|
|
22
23
|
disableSerialNumber?: boolean | undefined;
|
|
23
|
-
size?: "
|
|
24
|
-
scroll?:
|
|
25
|
-
|
|
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;
|
|
26
32
|
opWidth?: number | undefined;
|
|
33
|
+
ellipsis?: boolean | undefined;
|
|
27
34
|
}>) => React.ReactElement;
|
|
28
35
|
declare const ListPro: <T extends keyof EntityDict>(props: {
|
|
29
36
|
title?: any;
|
|
@@ -39,16 +46,21 @@ declare const ListPro: <T extends keyof EntityDict>(props: {
|
|
|
39
46
|
data: RowWithActions<EntityDict, T>[];
|
|
40
47
|
loading?: boolean | undefined;
|
|
41
48
|
tablePagination?: any;
|
|
42
|
-
rowSelection?:
|
|
49
|
+
rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
|
|
43
50
|
disableSerialNumber?: boolean | undefined;
|
|
44
|
-
size?: "
|
|
45
|
-
scroll?:
|
|
46
|
-
|
|
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;
|
|
47
59
|
opWidth?: number | undefined;
|
|
48
60
|
oakPath?: string | undefined;
|
|
49
61
|
}) => React.ReactElement;
|
|
50
62
|
declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
51
|
-
column?: number | Record<Breakpoint, number> | undefined;
|
|
63
|
+
column?: number | Record<import("antd").Breakpoint, number> | undefined;
|
|
52
64
|
entity: T;
|
|
53
65
|
attributes: OakAbsAttrDef[];
|
|
54
66
|
data: Partial<EntityDict[T]["Schema"]>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* 抽象组件在业务层根据EntityDict的重新声明
|
|
3
3
|
* by Xc 20230807
|
|
4
4
|
*/
|
|
5
|
-
// @ts-nocheck
|
|
6
5
|
import AbsFilterPanel from 'oak-frontend-base/es/components/filterPanel';
|
|
7
6
|
import AbsList from 'oak-frontend-base/es/components/list';
|
|
8
7
|
import AbsListPro from 'oak-frontend-base/es/components/listPro';
|
|
@@ -127,7 +127,13 @@ export default OakComponent({
|
|
|
127
127
|
onGoToUnfinishedPay && onGoToUnfinishedPay(payId);
|
|
128
128
|
},
|
|
129
129
|
setDepositOpen(depositOpen) {
|
|
130
|
-
this.setState({ depositOpen })
|
|
130
|
+
this.setState({ depositOpen }, () => {
|
|
131
|
+
setTimeout(() => {
|
|
132
|
+
this.setState({
|
|
133
|
+
focus: depositOpen
|
|
134
|
+
});
|
|
135
|
+
}, 333);
|
|
136
|
+
});
|
|
131
137
|
},
|
|
132
138
|
setUfOpen(ufOpen) {
|
|
133
139
|
this.setState({ ufOpen });
|
|
@@ -218,6 +224,7 @@ export default OakComponent({
|
|
|
218
224
|
depositing: false,
|
|
219
225
|
setDepPriceMp(price) { this.setDepPrice(price); },
|
|
220
226
|
setDepositChannelMp(depositChannel) { this.setDepositChannel(depositChannel); },
|
|
227
|
+
focus: false,
|
|
221
228
|
},
|
|
222
229
|
lifetimes: {
|
|
223
230
|
ready() {
|
|
@@ -91,7 +91,16 @@
|
|
|
91
91
|
.ad-container {
|
|
92
92
|
padding: 24rpx;
|
|
93
93
|
background-color: white;
|
|
94
|
-
.safe-area-inset-bottom();
|
|
94
|
+
// .safe-area-inset-bottom();
|
|
95
|
+
height: 40vh;
|
|
96
|
+
|
|
97
|
+
.btnBox {
|
|
98
|
+
position: fixed;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
width: 100%;
|
|
102
|
+
.safe-area-inset-bottom();
|
|
103
|
+
}
|
|
95
104
|
}
|
|
96
105
|
|
|
97
106
|
.uf {
|
|
@@ -47,14 +47,19 @@
|
|
|
47
47
|
</view>
|
|
48
48
|
</view>
|
|
49
49
|
<block wx:if="{{depositOpen}}">
|
|
50
|
-
<l-
|
|
50
|
+
<l-popup
|
|
51
|
+
show="{{depositOpen}}"
|
|
52
|
+
content-align="bottom"
|
|
53
|
+
bind:lintap="onDepositModalClose"
|
|
54
|
+
>
|
|
55
|
+
<!-- <l-arc-popup
|
|
51
56
|
show="{{depositOpen}}"
|
|
52
57
|
direction="bottom"
|
|
53
58
|
bind:lintap="onDepositModalClose"
|
|
54
59
|
min-height="200"
|
|
55
|
-
max-height="
|
|
60
|
+
max-height="1000"
|
|
56
61
|
z-index="1000"
|
|
57
|
-
>
|
|
62
|
+
> -->
|
|
58
63
|
<view class="ad-container">
|
|
59
64
|
<deposit-new
|
|
60
65
|
depositMinCent="{{depositMinCent}}"
|
|
@@ -65,8 +70,9 @@
|
|
|
65
70
|
onSetPrice="{{setDepPriceMp}}"
|
|
66
71
|
onSetChannel="{{setDepositChannelMp}}"
|
|
67
72
|
onSetPrice="{{setDepPriceMp}}"
|
|
73
|
+
focus="{{focus}}"
|
|
68
74
|
/>
|
|
69
|
-
<view style="margin-top:
|
|
75
|
+
<view style="margin-top:20rpx">
|
|
70
76
|
<l-button
|
|
71
77
|
type="default"
|
|
72
78
|
size="long"
|
|
@@ -78,7 +84,7 @@
|
|
|
78
84
|
</l-button>
|
|
79
85
|
</view>
|
|
80
86
|
</view>
|
|
81
|
-
</l-
|
|
87
|
+
</l-popup>
|
|
82
88
|
</block>
|
|
83
89
|
<block wx:if="{{ufOpen}}">
|
|
84
90
|
<l-dialog
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
.card {
|
|
2
|
-
width: 100%;
|
|
3
|
-
|
|
4
|
-
.content {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.oper {
|
|
11
|
-
align-self: center;
|
|
12
|
-
width: 70%;
|
|
13
|
-
margin-bottom: 28px;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: stretch;
|
|
17
|
-
|
|
18
|
-
.title {
|
|
19
|
-
margin-bottom: 28px;
|
|
20
|
-
align-self: flex-start;
|
|
21
|
-
color: var(--oak-color-primary3);
|
|
22
|
-
font-size: var(--oak-font-size-title-medium);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.grid {
|
|
29
|
-
min-width: 133px;
|
|
30
|
-
border-radius: 6px;
|
|
31
|
-
padding: 16px;
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
margin: 13px;
|
|
35
|
-
|
|
36
|
-
.label {
|
|
37
|
-
font-size: 16px;
|
|
38
|
-
font-weight: 400;
|
|
39
|
-
color: var(--oak-color-primary);
|
|
40
|
-
margin-bottom: 12px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.value {
|
|
44
|
-
font-size: 24px;
|
|
45
|
-
font-weight: 600;
|
|
46
|
-
color: var(--oak-color-primary);
|
|
47
|
-
line-height: 33.6px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.fortify {
|
|
52
|
-
background-color: var(--oak-color-primary-light);
|
|
53
|
-
|
|
54
|
-
.label {
|
|
55
|
-
font-weight: 900;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.value {
|
|
59
|
-
font-weight: bolder;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.uf {
|
|
64
|
-
margin: 12px;
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
align-items: center;
|
|
68
|
-
padding: 12px;
|
|
1
|
+
.card {
|
|
2
|
+
width: 100%;
|
|
3
|
+
|
|
4
|
+
.content {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
.oper {
|
|
11
|
+
align-self: center;
|
|
12
|
+
width: 70%;
|
|
13
|
+
margin-bottom: 28px;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: stretch;
|
|
17
|
+
|
|
18
|
+
.title {
|
|
19
|
+
margin-bottom: 28px;
|
|
20
|
+
align-self: flex-start;
|
|
21
|
+
color: var(--oak-color-primary3);
|
|
22
|
+
font-size: var(--oak-font-size-title-medium);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.grid {
|
|
29
|
+
min-width: 133px;
|
|
30
|
+
border-radius: 6px;
|
|
31
|
+
padding: 16px;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
margin: 13px;
|
|
35
|
+
|
|
36
|
+
.label {
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
color: var(--oak-color-primary);
|
|
40
|
+
margin-bottom: 12px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.value {
|
|
44
|
+
font-size: 24px;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
color: var(--oak-color-primary);
|
|
47
|
+
line-height: 33.6px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.fortify {
|
|
52
|
+
background-color: var(--oak-color-primary-light);
|
|
53
|
+
|
|
54
|
+
.label {
|
|
55
|
+
font-weight: 900;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.value {
|
|
59
|
+
font-weight: bolder;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.uf {
|
|
64
|
+
margin: 12px;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
align-items: center;
|
|
68
|
+
padding: 12px;
|
|
69
69
|
}
|
|
@@ -8,5 +8,6 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
|
|
|
8
8
|
onSetPrice: (price: null | number) => void;
|
|
9
9
|
onSetChannel: (channel: PayChannel) => void;
|
|
10
10
|
loss: [number, string, any];
|
|
11
|
+
focus: boolean;
|
|
11
12
|
}>) => React.ReactElement;
|
|
12
13
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<block wx:if="{{payChannels && payChannels.length > 0}}">
|
|
2
2
|
<l-form>
|
|
3
3
|
<l-form-item label="{{t('deposit:attr.price')}}" label-placement="column">
|
|
4
|
-
<l-input
|
|
4
|
+
<!-- <l-input
|
|
5
5
|
label="{{t('common::pay.symbol')}}"
|
|
6
6
|
label-width="{{70}}"
|
|
7
7
|
show-row="{{false}}"
|
|
@@ -9,7 +9,20 @@
|
|
|
9
9
|
type="number"
|
|
10
10
|
placeholder="一次最大充值{{depositMax}}元"
|
|
11
11
|
bind:lininput="onDepPriceChangeMp"
|
|
12
|
-
|
|
12
|
+
focus="{{focus}}"
|
|
13
|
+
/> -->
|
|
14
|
+
<view style="display:flex;margin-top:8rpx;">
|
|
15
|
+
<span style="margin-right:8rpx;">{{t('common::pay.symbol')}}</span>
|
|
16
|
+
<input
|
|
17
|
+
cursor-spacing="260"
|
|
18
|
+
value="{{priceStr || ''}}"
|
|
19
|
+
type="digit"
|
|
20
|
+
placeholder="一次最大充值{{depositMax}}元"
|
|
21
|
+
bindinput="onDepPriceChangeMp"
|
|
22
|
+
focus="{{focus}}"
|
|
23
|
+
style="flex:1"
|
|
24
|
+
/>
|
|
25
|
+
</view>
|
|
13
26
|
</l-form-item>
|
|
14
27
|
<block wx:if="{{price > 0}}">
|
|
15
28
|
<l-form-item label="{{t('pay:attr.entity')}}" label-placement="column">
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Styles from './info.module.less';
|
|
2
2
|
export default function Info(props) {
|
|
3
3
|
const { price, t } = props;
|
|
4
|
-
return (<div className={Styles.info}>
|
|
5
|
-
<div className={Styles.should}>{t('price')}</div>
|
|
6
|
-
<div className={Styles.price}>
|
|
7
|
-
<div>{t('common::pay.symbol')}</div>
|
|
8
|
-
<div>{price}</div>
|
|
9
|
-
</div>
|
|
4
|
+
return (<div className={Styles.info}>
|
|
5
|
+
<div className={Styles.should}>{t('price')}</div>
|
|
6
|
+
<div className={Styles.price}>
|
|
7
|
+
<div>{t('common::pay.symbol')}</div>
|
|
8
|
+
<div>{price}</div>
|
|
9
|
+
</div>
|
|
10
10
|
</div>);
|
|
11
11
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
.info {
|
|
3
|
-
margin: 8px;
|
|
4
|
-
height: 140px;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
background-color: var(--oak-color-info);
|
|
10
|
-
|
|
11
|
-
.should {
|
|
12
|
-
font-size: large;
|
|
13
|
-
font-weight: bold;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.price {
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: row;
|
|
19
|
-
padding: 3px;
|
|
20
|
-
font-size: xx-large;
|
|
21
|
-
font-weight: bolder;
|
|
22
|
-
color: var(--oak-color-primary);
|
|
23
|
-
align-items: baseline;
|
|
24
|
-
}
|
|
1
|
+
|
|
2
|
+
.info {
|
|
3
|
+
margin: 8px;
|
|
4
|
+
height: 140px;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
background-color: var(--oak-color-info);
|
|
10
|
+
|
|
11
|
+
.should {
|
|
12
|
+
font-size: large;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.price {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
padding: 3px;
|
|
20
|
+
font-size: xx-large;
|
|
21
|
+
font-weight: bolder;
|
|
22
|
+
color: var(--oak-color-primary);
|
|
23
|
+
align-items: baseline;
|
|
24
|
+
}
|
|
25
25
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: stretch;
|
|
7
|
-
background-color: var(--oak-bg-color-page);
|
|
8
|
-
// min-height: 500px;
|
|
9
|
-
|
|
10
|
-
.ctrl {
|
|
11
|
-
margin: 8px;
|
|
12
|
-
margin-top: 10px;
|
|
13
|
-
flex: 1;
|
|
14
|
-
|
|
15
|
-
.pc1 {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
margin-top: 4px;
|
|
21
|
-
|
|
22
|
-
.content {
|
|
23
|
-
background-color: var(--oak-bg-color-container);
|
|
24
|
-
padding: 4px;
|
|
25
|
-
border-radius: 2px;
|
|
26
|
-
padding: 16px;
|
|
27
|
-
|
|
28
|
-
.tips {
|
|
29
|
-
color: var(--oak-color-warning);
|
|
30
|
-
font-size: small;
|
|
31
|
-
margin-top: 3px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
.container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
background-color: var(--oak-bg-color-page);
|
|
8
|
+
// min-height: 500px;
|
|
9
|
+
|
|
10
|
+
.ctrl {
|
|
11
|
+
margin: 8px;
|
|
12
|
+
margin-top: 10px;
|
|
13
|
+
flex: 1;
|
|
14
|
+
|
|
15
|
+
.pc1 {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin-top: 4px;
|
|
21
|
+
|
|
22
|
+
.content {
|
|
23
|
+
background-color: var(--oak-bg-color-container);
|
|
24
|
+
padding: 4px;
|
|
25
|
+
border-radius: 2px;
|
|
26
|
+
padding: 16px;
|
|
27
|
+
|
|
28
|
+
.tips {
|
|
29
|
+
color: var(--oak-color-warning);
|
|
30
|
+
font-size: small;
|
|
31
|
+
margin-top: 3px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
36
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: stretch;
|
|
7
|
-
background-color: var(--oak-bg-color-page);
|
|
8
|
-
// min-height: 500px;
|
|
9
|
-
|
|
10
|
-
.ctrl {
|
|
11
|
-
margin: 8px;
|
|
12
|
-
margin-top: 10px;
|
|
13
|
-
flex: 1;
|
|
14
|
-
|
|
15
|
-
.pc1 {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
margin-top: 4px;
|
|
21
|
-
|
|
22
|
-
.content {
|
|
23
|
-
background-color: var(--oak-bg-color-container);
|
|
24
|
-
padding: 4px;
|
|
25
|
-
border-radius: 2px;
|
|
26
|
-
padding: 16px;
|
|
27
|
-
|
|
28
|
-
.tips {
|
|
29
|
-
color: var(--oak-color-warning);
|
|
30
|
-
font-size: small;
|
|
31
|
-
margin-left: 10px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
.container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
background-color: var(--oak-bg-color-page);
|
|
8
|
+
// min-height: 500px;
|
|
9
|
+
|
|
10
|
+
.ctrl {
|
|
11
|
+
margin: 8px;
|
|
12
|
+
margin-top: 10px;
|
|
13
|
+
flex: 1;
|
|
14
|
+
|
|
15
|
+
.pc1 {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin-top: 4px;
|
|
21
|
+
|
|
22
|
+
.content {
|
|
23
|
+
background-color: var(--oak-bg-color-container);
|
|
24
|
+
padding: 4px;
|
|
25
|
+
border-radius: 2px;
|
|
26
|
+
padding: 16px;
|
|
27
|
+
|
|
28
|
+
.tips {
|
|
29
|
+
color: var(--oak-color-warning);
|
|
30
|
+
font-size: small;
|
|
31
|
+
margin-left: 10px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
width: 100%;
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
5
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.empty {
|
|
2
|
-
min-height: 600px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.container {
|
|
6
|
-
width: 100%;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
1
|
+
.empty {
|
|
2
|
+
min-height: 600px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
11
|
}
|
|
@@ -6,7 +6,7 @@ export default function render(props) {
|
|
|
6
6
|
const { wpAccount, wechatPay, oakFullpath, systemId } = props.data;
|
|
7
7
|
const { t, update } = props.methods;
|
|
8
8
|
if (wpAccount) {
|
|
9
|
-
return (<Form labelCol={{ span:
|
|
9
|
+
return (<Form labelCol={{ span: 6 }} wrapperCol={{ span: 16 }} layout="horizontal" style={{ minWidth: 860 }}>
|
|
10
10
|
{(!wechatPay || wechatPay.$$createAt$$ === 1) && <WechatPayUpsert oakPath={`${oakFullpath}.wechatPay`} systemId={systemId} key="wpCreate"/>}
|
|
11
11
|
{(wpAccount.wechatPayId && wpAccount?.$$createAt$$ !== 1) && <WechatPayUpsert oakPath={`${oakFullpath}.wechatPay`} systemId={systemId} key="wpUpdate" oakId={wpAccount.wechatPayId}/>}
|
|
12
12
|
<Form.Item label="说明">
|
package/es/entities/Refund.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { String, Text, Price } from 'oak-domain/lib/types/DataType';
|
|
1
|
+
import { String, Text, Price, 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 './User';
|
|
@@ -14,6 +14,7 @@ export interface Schema extends EntityShape {
|
|
|
14
14
|
price: Price;
|
|
15
15
|
creator: User;
|
|
16
16
|
reason?: Text;
|
|
17
|
+
successAt?: Datetime;
|
|
17
18
|
opers: AccountOper[];
|
|
18
19
|
}
|
|
19
20
|
export type IAction = 'succeed' | 'fail';
|
package/es/entities/Refund.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFil
|
|
|
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, Text } from "oak-domain/lib/types/DataType";
|
|
6
|
+
import { Price, String, Text, Datetime } from "oak-domain/lib/types/DataType";
|
|
7
7
|
import * as Withdraw from "../Withdraw/Schema";
|
|
8
8
|
import * as Pay from "../Pay/Schema";
|
|
9
9
|
import * as User from "../User/Schema";
|
|
@@ -18,6 +18,7 @@ export type OpSchema = EntityShape & {
|
|
|
18
18
|
price: Price;
|
|
19
19
|
creatorId: ForeignKey<"user">;
|
|
20
20
|
reason?: Text | null;
|
|
21
|
+
successAt?: Datetime | null;
|
|
21
22
|
iState?: IState | null;
|
|
22
23
|
};
|
|
23
24
|
export type OpAttr = keyof OpSchema;
|
|
@@ -30,6 +31,7 @@ export type Schema = EntityShape & {
|
|
|
30
31
|
price: Price;
|
|
31
32
|
creatorId: ForeignKey<"user">;
|
|
32
33
|
reason?: Text | null;
|
|
34
|
+
successAt?: Datetime | null;
|
|
33
35
|
iState?: IState | null;
|
|
34
36
|
withdraw?: Withdraw.Schema | null;
|
|
35
37
|
pay: Pay.Schema;
|
|
@@ -57,6 +59,7 @@ type AttrFilter = {
|
|
|
57
59
|
creatorId: Q_StringValue;
|
|
58
60
|
creator: User.Filter;
|
|
59
61
|
reason: Q_StringValue;
|
|
62
|
+
successAt: Q_DateValue;
|
|
60
63
|
iState: Q_EnumValue<IState>;
|
|
61
64
|
sysAccountOper$refund: SysAccountOper.Filter & SubQueryPredicateMetadata;
|
|
62
65
|
accountOper$entity: AccountOper.Filter & SubQueryPredicateMetadata;
|
|
@@ -80,6 +83,7 @@ export type Projection = {
|
|
|
80
83
|
creatorId?: number;
|
|
81
84
|
creator?: User.Projection;
|
|
82
85
|
reason?: number;
|
|
86
|
+
successAt?: number;
|
|
83
87
|
iState?: number;
|
|
84
88
|
sysAccountOper$refund?: SysAccountOper.Selection & {
|
|
85
89
|
$entity: "sysAccountOper";
|
|
@@ -134,6 +138,8 @@ export type SortAttr = {
|
|
|
134
138
|
creator: User.SortAttr;
|
|
135
139
|
} | {
|
|
136
140
|
reason: number;
|
|
141
|
+
} | {
|
|
142
|
+
successAt: number;
|
|
137
143
|
} | {
|
|
138
144
|
iState: number;
|
|
139
145
|
} | {
|