Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
5d1ae101
Commit
5d1ae101
authored
Jan 29, 2024
by
武广
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/settlement' into 'master'
feat: 添加结算模式 See merge request
!105
parents
a722eb43
c5beb99b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
101 deletions
+61
-101
data.js
src/pages/SettlementSheet/data.js
+2
-1
data.js
src/pages/businessManage/info/data.js
+50
-48
index.jsx
src/pages/businessManage/info/index.jsx
+9
-52
No files found.
src/pages/SettlementSheet/data.js
View file @
5d1ae101
...
@@ -4,7 +4,8 @@ import { Button } from 'antd';
...
@@ -4,7 +4,8 @@ import { Button } from 'antd';
export
const
dateStateEnum
=
{
export
const
dateStateEnum
=
{
1
:
{
text
:
'
一周
'
,
maxlength
:
8
},
1
:
{
text
:
'
一周
'
,
maxlength
:
8
},
2
:
{
text
:
'
半个月
'
,
maxlength
:
4
},
2
:
{
text
:
'
半个月
'
,
maxlength
:
4
},
3
:
{
text
:
'
一个月
'
,
maxlength
:
2
},
3
:
{
text
:
'
一个月
'
,
maxlength
:
2
},
4
:
{
text
:
'
日结
'
,
maxlength
:
10
},
};
};
export
const
orderStateNum
=
{
export
const
orderStateNum
=
{
...
...
src/pages/businessManage/info/data.js
View file @
5d1ae101
...
@@ -48,54 +48,56 @@ export async function getInfo() {
...
@@ -48,54 +48,56 @@ export async function getInfo() {
const
data
=
await
apiBusinessDetail
();
const
data
=
await
apiBusinessDetail
();
let
settlementType
=
1
;
let
settlementType
=
1
;
const
res
=
data
.
data
;
const
res
=
data
.
data
;
if
(
res
)
{
console
.
log
(
'
res :>>
'
,
res
);
if
(
res
.
facilities
)
{
if
(
!
res
)
{
res
.
customList
=
res
.
facilities
.
customList
||
[];
return
;
res
.
selfList
=
res
.
facilities
.
selfList
||
[];
}
}
if
(
res
.
facilities
)
{
res
.
signDateType
=
res
.
signDateType
?
[
res
.
signDateType
]
:
[];
res
.
customList
=
res
.
facilities
.
customList
||
[];
res
.
accountOpenPermitImage
=
res
.
accountOpenPermitImage
res
.
selfList
=
res
.
facilities
.
selfList
||
[];
?
[{
uid
:
0
,
url
:
res
.
accountOpenPermitImage
}]
}
:
[];
res
.
signDateType
=
res
.
signDateType
?
[
res
.
signDateType
]
:
[];
res
.
businessLicenseImage
=
res
.
businessLicenseImage
res
.
accountOpenPermitImage
=
res
.
accountOpenPermitImage
?
[{
uid
:
0
,
url
:
res
.
businessLicenseImage
}]
?
[{
uid
:
0
,
url
:
res
.
accountOpenPermitImage
}]
:
[];
:
[];
res
.
idCardEmblemImage
=
res
.
idCardEmblemImage
?
[{
uid
:
0
,
url
:
res
.
idCardEmblemImage
}]
:
[];
res
.
businessLicenseImage
=
res
.
businessLicenseImage
res
.
idCardPortraitImage
=
res
.
idCardPortraitImage
?
[{
uid
:
0
,
url
:
res
.
businessLicenseImage
}]
?
[{
uid
:
0
,
url
:
res
.
idCardPortraitImage
}]
:
[];
:
[];
res
.
idCardEmblemImage
=
res
.
idCardEmblemImage
?
[{
uid
:
0
,
url
:
res
.
idCardEmblemImage
}]
:
[];
res
.
primaryImage
=
res
.
primaryImage
?
[{
uid
:
0
,
url
:
res
.
primaryImage
}]
:
[];
res
.
idCardPortraitImage
=
res
.
idCardPortraitImage
res
.
sealImage
=
res
.
sealImage
?
[{
uid
:
0
,
url
:
res
.
sealImage
}]
:
[];
?
[{
uid
:
0
,
url
:
res
.
idCardPortraitImage
}]
res
.
brandCertificate
=
res
.
brandCertificate
?
[{
uid
:
0
,
url
:
res
.
brandCertificate
}]
:
[];
:
[];
// 非同名结算授权文件
res
.
primaryImage
=
res
.
primaryImage
?
[{
uid
:
0
,
url
:
res
.
primaryImage
}]
:
[];
res
.
differentNameAuthorizationImage
=
res
.
differentNameAuthorizationImage
res
.
sealImage
=
res
.
sealImage
?
[{
uid
:
0
,
url
:
res
.
sealImage
}]
:
[];
?
[{
uid
:
0
,
url
:
res
.
brandCertificate
}]
res
.
brandCertificate
=
res
.
brandCertificate
?
[{
uid
:
0
,
url
:
res
.
brandCertificate
}]
:
[];
:
[];
// 非同名结算授权文件
// 户口本本人页
res
.
differentNameAuthorizationImage
=
res
.
differentNameAuthorizationImage
res
.
householdRegisterImage
=
res
.
householdRegisterImage
?
[{
uid
:
0
,
url
:
res
.
brandCertificate
}]
?
[{
uid
:
0
,
url
:
res
.
householdRegisterImage
}]
:
[];
:
[];
// 户口本本人页
// 工商局
res
.
householdRegisterImage
=
res
.
householdRegisterImage
res
.
icbProofImage
=
res
.
icbProofImage
?
[{
uid
:
0
,
url
:
res
.
icbProofImage
}]
:
[];
?
[{
uid
:
0
,
url
:
res
.
householdRegisterImage
}]
if
(
res
.
categoryQualificateImage
&&
res
.
categoryQualificateImage
.
length
)
{
:
[];
res
.
categoryQualificateImage
=
res
.
categoryQualificateImage
.
map
((
item
,
index
)
=>
({
// 工商局
uid
:
index
,
res
.
icbProofImage
=
res
.
icbProofImage
?
[{
uid
:
0
,
url
:
res
.
icbProofImage
}]
:
[];
url
:
item
,
if
(
res
.
categoryQualificateImage
&&
res
.
categoryQualificateImage
.
length
)
{
}));
res
.
categoryQualificateImage
=
res
.
categoryQualificateImage
.
map
((
item
,
index
)
=>
({
}
uid
:
index
,
if
(
res
.
otherImage
&&
res
.
otherImage
.
length
)
{
url
:
item
,
res
.
otherImage
=
res
.
otherImage
.
map
((
item
,
index
)
=>
({
}));
uid
:
index
,
}
url
:
item
,
if
(
res
.
otherImage
&&
res
.
otherImage
.
length
)
{
}));
res
.
otherImage
=
res
.
otherImage
.
map
((
item
,
index
)
=>
({
}
uid
:
index
,
res
.
addr
=
[
res
.
provinceId
,
res
.
cityId
,
res
.
countyId
];
url
:
item
,
if
(
res
.
townId
)
{
}));
res
.
addr
.
push
(
res
.
townId
);
}
}
res
.
addr
=
[
res
.
provinceId
,
res
.
cityId
,
res
.
countyId
];
if
(
settlementType
!==
null
)
{
if
(
res
.
townId
)
{
settlementType
=
+
res
.
settlementType
;
res
.
addr
.
push
(
res
.
townId
);
}
}
if
(
settlementType
!==
null
)
{
settlementType
=
+
res
.
settlementType
;
}
}
// 身份证有效期处理
// 身份证有效期处理
let
checkboxDisabled
=
false
;
let
checkboxDisabled
=
false
;
...
...
src/pages/businessManage/info/index.jsx
View file @
5d1ae101
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
history
}
from
'
umi
'
;
import
moment
from
'
moment
'
;
import
moment
from
'
moment
'
;
import
{
ArrowRightOutlined
,
UploadOutlined
}
from
'
@ant-design/icons
'
;
import
{
ArrowRightOutlined
,
UploadOutlined
}
from
'
@ant-design/icons
'
;
import
{
Form
}
from
'
@ant-design/compatible
'
;
import
{
Form
}
from
'
@ant-design/compatible
'
;
...
@@ -31,7 +30,7 @@ import {
...
@@ -31,7 +30,7 @@ import {
getServiceFacility
,
getServiceFacility
,
businessModel
,
businessModel
,
getInfo
,
getInfo
,
getBankList
,
//
getBankList,
businessTypeDesc
,
businessTypeDesc
,
signDateTypeList
,
signDateTypeList
,
legalPersonList
,
legalPersonList
,
...
@@ -62,7 +61,7 @@ class BusinessInfo extends Component {
...
@@ -62,7 +61,7 @@ class BusinessInfo extends Component {
areaAddr
:
[],
// 四级地址列表
areaAddr
:
[],
// 四级地址列表
categoryList
:
[],
// 主要类目
categoryList
:
[],
// 主要类目
serviceFacilitys
:
[],
// 服务设施
serviceFacilitys
:
[],
// 服务设施
bankList
:
[],
// 开户行
//
bankList: [], // 开户行
settlementType
:
1
,
settlementType
:
1
,
// loading: false,
// loading: false,
visibleLoading
:
false
,
visibleLoading
:
false
,
...
@@ -77,7 +76,7 @@ class BusinessInfo extends Component {
...
@@ -77,7 +76,7 @@ class BusinessInfo extends Component {
await
getInfo
.
call
(
this
);
await
getInfo
.
call
(
this
);
getAreaAddr
.
call
(
this
);
getAreaAddr
.
call
(
this
);
getServiceFacility
.
call
(
this
);
getServiceFacility
.
call
(
this
);
getBankList
.
call
(
this
);
//
getBankList.call(this);
}
}
// 主营类目
// 主营类目
...
@@ -997,23 +996,9 @@ class BusinessInfo extends Component {
...
@@ -997,23 +996,9 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
FormItem
label=
"开户行"
labelCol=
{
{
span
:
8
}
}
>
<
FormItem
label=
"开户行"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
accountBankName
'
,
{
{
getFieldDecorator
(
'
accountBankName
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请
选择
开户行!
'
}],
rules
:
[{
required
:
true
,
message
:
'
请
输入
开户行!
'
}],
initialValue
:
businessInfo
.
accountBankName
,
initialValue
:
businessInfo
.
accountBankName
,
})(
})(<
Input
maxLength=
{
100
}
disabled=
{
disabled
}
/>)
}
<
Select
showSearch
filterOption=
{
(
input
,
option
)
=>
(
option
?.
value
??
''
).
toLowerCase
().
includes
(
input
.
toLowerCase
())
}
disabled=
{
disabled
}
>
{
this
.
state
.
bankList
.
map
(
item
=>
(
<
Option
value=
{
item
.
bankName
}
key=
{
item
.
bankName
}
>
{
item
.
bankName
}
</
Option
>
))
}
</
Select
>,
)
}
</
FormItem
>
</
FormItem
>
</
Col
>
</
Col
>
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
...
@@ -1086,23 +1071,9 @@ class BusinessInfo extends Component {
...
@@ -1086,23 +1071,9 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
FormItem
label=
"开户行"
labelCol=
{
{
span
:
8
}
}
>
<
FormItem
label=
"开户行"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
accountBankName
'
,
{
{
getFieldDecorator
(
'
accountBankName
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请
选择
开户行!
'
}],
rules
:
[{
required
:
true
,
message
:
'
请
输入
开户行!
'
}],
initialValue
:
businessInfo
.
accountBankName
,
initialValue
:
businessInfo
.
accountBankName
,
})(
})(<
Input
maxLength=
{
100
}
disabled=
{
disabled
}
/>)
}
<
Select
showSearch
filterOption=
{
(
input
,
option
)
=>
(
option
?.
value
??
''
).
toLowerCase
().
includes
(
input
.
toLowerCase
())
}
disabled=
{
disabled
}
>
{
this
.
state
.
bankList
.
map
(
item
=>
(
<
Option
value=
{
item
.
bankName
}
key=
{
item
.
bankName
}
>
{
item
.
bankName
}
</
Option
>
))
}
</
Select
>,
)
}
</
FormItem
>
</
FormItem
>
</
Col
>
</
Col
>
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
...
@@ -1152,23 +1123,9 @@ class BusinessInfo extends Component {
...
@@ -1152,23 +1123,9 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
FormItem
label=
"开户行"
labelCol=
{
{
span
:
8
}
}
>
<
FormItem
label=
"开户行"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
accountBankName
'
,
{
{
getFieldDecorator
(
'
accountBankName
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请
选择
开户行!
'
}],
rules
:
[{
required
:
true
,
message
:
'
请
输入
开户行!
'
}],
initialValue
:
businessInfo
.
accountBankName
,
initialValue
:
businessInfo
.
accountBankName
,
})(
})(<
Input
maxLength=
{
100
}
disabled=
{
disabled
}
/>)
}
<
Select
showSearch
filterOption=
{
(
input
,
option
)
=>
(
option
?.
value
??
''
).
toLowerCase
().
includes
(
input
.
toLowerCase
())
}
disabled=
{
disabled
}
>
{
this
.
state
.
bankList
.
map
(
item
=>
(
<
Option
value=
{
item
.
bankName
}
key=
{
item
.
bankName
}
>
{
item
.
bankName
}
</
Option
>
))
}
</
Select
>,
)
}
</
FormItem
>
</
FormItem
>
</
Col
>
</
Col
>
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment