Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
陈智峰
jinfa-platform
Commits
563b6190
Commit
563b6190
authored
Jan 12, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: e账户企业认证已签约但没有提交刷新页面显示对应的签约合同号
parent
3cc799a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
index.tsx
...payandSettle/eAccountApprove/components/company/index.tsx
+18
-2
No files found.
src/pages/payandSettle/eAccountApprove/components/company/index.tsx
View file @
563b6190
...
...
@@ -5,7 +5,7 @@ import MellowCard from '@/components/MellowCard';
import
{
BIND_PHONE
,
EDetailContext
,
formItemLayout
,
formItemLayoutCompany
,
prefixSelector
,
prefixSelectorEle
,
tailFormItemLayout
,
tailFormItemLayoutCompany
}
from
'../../constant'
;
import
{
EditOutlined
}
from
'@ant-design/icons'
;
import
UploadImage
from
'@/components/UploadImage'
;
import
{
getPayAllInPayGetBankList
,
postPayAllInPayBindCompanyAccount
,
postPayAllInPayBindPhone
,
postPayAllInPayIdCardCollect
,
postPayAllInPaySendVerificationCode
,
postPayAllInPaySetCompanyInfo
,
postPayAllInPaySignContract
}
from
'@/services/PayV2Api'
;
import
{
getPayAllInPayGetBankList
,
postPayAllInPayBindCompanyAccount
,
postPayAllInPayBindPhone
,
postPayAllInPayIdCardCollect
,
postPayAllInPaySendVerificationCode
,
postPayAllInPaySetCompanyInfo
,
postPayAllInPaySignContract
,
postPayAllInPaySignContractQuery
}
from
'@/services/PayV2Api'
;
import
useCountDown
from
'@/utils/hooks'
;
/** 图片key对应的picType值 */
...
...
@@ -117,9 +117,17 @@ const Company: React.FC<{}> = () => {
}
}
const
contractPreview
=
async
()
=>
{
const
{
code
,
data
}
=
await
postPayAllInPaySignContractQuery
({
jumpPageType
:
1
},
{
ctlType
:
'none'
})
if
(
code
===
1000
)
{
var
signLink
=
document
.
getElementById
(
'signPrewview'
)
signLink
.
setAttribute
(
'href'
,
data
)
signLink
.
click
()
}
}
const
handleSendSMS
=
()
=>
{
formPhone
.
validateFields
([
'phone'
]).
then
(
result
=>
{
console
.
log
(
result
)
// 发送验证码
postPayAllInPaySendVerificationCode
({
...
result
,
verificationCodeType
:
BIND_PHONE
}).
then
(
res
=>
{
res
.
code
===
1000
&&
start
()
...
...
@@ -447,7 +455,13 @@ const Company: React.FC<{}> = () => {
label=
{
intl
.
formatMessage
({
id
:
'payandSettle.eAccountApprove.components.company.mellowCard.2.electric'
})
}
name=
"electric"
>
{
data
?.
contractNo
?
<
Button
type=
"link"
onClick=
{
contractPreview
}
>
{
data
.
contractNo
}
</
Button
>
:
<
Button
onClick=
{
clickSign
}
icon=
{
<
EditOutlined
/>
}
style=
{
{
width
:
'100%'
}
}
>
{
intl
.
formatMessage
({
id
:
'payandSettle.eAccountApprove.components.company.mellowCard.2.electric.button'
})
}
</
Button
>
}
</
Form
.
Item
>
<
Form
.
Item
{
...
tailFormItemLayout
}
>
...
...
@@ -536,7 +550,9 @@ const Company: React.FC<{}> = () => {
</
Form
>
</
MellowCard
>
}
<
a
href=
""
target=
"_bank"
id=
"signLink"
style=
{
{
display
:
'none'
,
visibility
:
"hidden"
}
}
></
a
>
<
a
href=
""
target=
"_blank"
id=
"signPrewview"
style=
{
{
display
:
'none'
,
visibility
:
"hidden"
}
}
></
a
>
</>)
}
...
...
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