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
linweijiong
jinfa-platform
Commits
1281ab95
Commit
1281ab95
authored
Nov 24, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:有合同流程的新增订单添加合同id字段
parent
f93466ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
index.tsx
src/pages/lxMall/order/index.tsx
+7
-4
No files found.
src/pages/lxMall/order/index.tsx
View file @
1281ab95
...
...
@@ -50,7 +50,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
const
[
contractInfo
,
setContractInfo
]
=
useState
<
any
>
()
const
[
electronicContractId
,
setElectronicContractId
]
=
useState
<
number
>
()
const
[
agreeSingLoading
,
setAgreeSignLoading
]
=
useState
<
boolean
>
(
false
)
const
[
btnDisabled
,
setBtnDisable
]
=
useState
<
boolean
>
(
false
)
const
[
btnDisabled
]
=
useState
<
boolean
>
(
false
)
useEffect
(()
=>
{
if
(
!
userInfo
)
{
...
...
@@ -260,7 +260,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
/**
* 提交订单
*/
const
submitOrder
=
()
=>
{
const
submitOrder
=
(
signatureLogId
?:
number
)
=>
{
let
params
:
any
=
{
orderModel
:
getOrderMode
(),
// 下单模式
needTheInvoice
:
needTheInvoice
?
1
:
0
,
...
...
@@ -321,6 +321,10 @@ const Order: React.FC<OrderPropsType> = (props) => {
params
.
productType
=
(
layoutType
===
LAYOUT_TYPE
.
channel
||
layoutType
===
LAYOUT_TYPE
.
ichannel
)
?
2
:
1
}
if
(
signatureLogId
)
{
params
.
signatureLogId
=
signatureLogId
}
setConfirmLoading
(
true
)
PublicApi
.
postOrderProcurementOrderAdd
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
@@ -386,7 +390,6 @@ const Order: React.FC<OrderPropsType> = (props) => {
const
handleSignModalConfirm
=
()
=>
{
let
param
=
{
contractTemplateId
:
electronicContractId
,
orderId
:
new
Date
().
getTime
(),
contractName
:
contractInfo
.
contractName
,
contractUrl
:
contractInfo
.
contractUrl
,
}
...
...
@@ -414,7 +417,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
if
(
res
.
code
===
1000
)
{
if
(
res
.
data
.
state
===
4
)
{
clearTimeout
(
timer
)
submitOrder
()
submitOrder
(
signatureLogId
)
}
else
{
timer
=
setTimeout
(()
=>
{
if
(
checkoutCount
<
20
)
{
...
...
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