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
shenshaokai
jinfa-platform
Commits
5ebf02a8
Commit
5ebf02a8
authored
Jan 04, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理订单详情发货信息显示异常,处理询价下单简单流程签署合同异常
parent
4d3ad00c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
4 deletions
+17
-4
index.tsx
src/pages/transaction/components/orderPayTabs/index.tsx
+1
-1
index.tsx
...der/orderCollect/components/simpleElectronModal/index.tsx
+3
-1
index.ts
...s/transaction/purchaseOrder/orderCollect/effects/index.ts
+3
-1
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+0
-1
index.ts
...es/transaction/purchaseOrder/orderCollect/schema/index.ts
+10
-0
No files found.
src/pages/transaction/components/orderPayTabs/index.tsx
View file @
5ebf02a8
...
@@ -104,7 +104,7 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
...
@@ -104,7 +104,7 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
</
Row
>
</
Row
>
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
发货时间:
</
p
></
Col
>
<
Col
span=
{
6
}
><
p
>
发货时间:
</
p
></
Col
>
<
Col
><
p
>
{
moment
(
data
.
deliverTime
).
format
(
'YYYY-MM-DD'
)
}
</
p
></
Col
>
<
Col
><
p
>
{
data
?.
deliverTime
&&
moment
(
data
.
deliverTime
).
format
(
'YYYY-MM-DD'
)
}
</
p
></
Col
>
</
Row
>
</
Row
>
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
物流单号:
</
p
></
Col
>
<
Col
span=
{
6
}
><
p
>
物流单号:
</
p
></
Col
>
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/simpleElectronModal/index.tsx
View file @
5ebf02a8
...
@@ -42,11 +42,13 @@ const SimpleElectronModal:React.FC<SimpleElectronModalProps> = (props) => {
...
@@ -42,11 +42,13 @@ const SimpleElectronModal:React.FC<SimpleElectronModalProps> = (props) => {
const
res
=
await
PublicApi
.
postOrderSignatureOrderSettleSign
(
contracts
,
{
ctlType
:
"none"
})
const
res
=
await
PublicApi
.
postOrderSignatureOrderSettleSign
(
contracts
,
{
ctlType
:
"none"
})
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
timer
=
setInterval
(()
=>
{
timer
=
setInterval
(()
=>
{
console
.
log
(
signatureState
.
current
,
'signatureState'
)
if
(
signatureState
.
current
!==
4
)
{
if
(
signatureState
.
current
!==
4
)
{
PublicApi
.
getOrderSignatureOrderSettleSignDetail
({
signatureLogId
:
res
.
data
.
signatureLogId
+
''
}).
then
(
_res
=>
{
PublicApi
.
getOrderSignatureOrderSettleSignDetail
({
signatureLogId
:
res
.
data
.
signatureLogId
+
''
}).
then
(
_res
=>
{
if
(
_res
.
code
===
1000
)
{
if
(
_res
.
code
===
1000
)
{
signatureState
.
current
=
_res
.
data
.
state
signatureState
.
current
=
_res
.
data
.
state
if
(
_res
.
data
.
state
===
4
)
{
schemaAction
.
setFieldValue
(
"electronicContractUrl"
,
_res
.
data
.
contractUrl
)
}
}
else
{
}
else
{
clearInterval
(
timer
)
clearInterval
(
timer
)
timer
=
null
timer
=
null
...
...
src/pages/transaction/purchaseOrder/orderCollect/effects/index.ts
View file @
5ebf02a8
...
@@ -256,7 +256,8 @@ export const useInvoiceList = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
...
@@ -256,7 +256,8 @@ export const useInvoiceList = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
// 查询工作流获取电子合同
// 查询工作流获取电子合同
export
const
useElectronicContract
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
)
=>
{
export
const
useElectronicContract
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
)
=>
{
let
params
:
any
=
{};
let
params
:
any
=
{};
params
[
'productId'
]
=
ctx
.
getFieldValue
(
'orderProductRequests'
)[
0
][
'id'
]
// 商品数据有commodityId为手动下单 不存在为询价等下单
params
[
'productId'
]
=
ctx
.
getFieldValue
(
'orderProductRequests'
)[
0
][
'commodityId'
]
?
ctx
.
getFieldValue
(
'orderProductRequests'
)[
0
][
'id'
]
:
ctx
.
getFieldValue
(
'orderProductRequests'
)[
0
][
'productId'
]
params
[
'orderModelId'
]
=
ctx
.
getFieldValue
(
'orderModel'
)
params
[
'orderModelId'
]
=
ctx
.
getFieldValue
(
'orderModel'
)
params
[
'memberId'
]
=
ctx
.
getFieldValue
(
'supplyMembersId'
)
params
[
'memberId'
]
=
ctx
.
getFieldValue
(
'supplyMembersId'
)
params
[
'memberRoleId'
]
=
ctx
.
getFieldValue
(
'supplyMembersRoleId'
)
params
[
'memberRoleId'
]
=
ctx
.
getFieldValue
(
'supplyMembersRoleId'
)
...
@@ -276,6 +277,7 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
...
@@ -276,6 +277,7 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
state
.
props
[
"x-component-props"
].
contract
=
{
contractTemplateId
:
data
[
'electronicContractId'
],
...
_data
,
}
state
.
props
[
"x-component-props"
].
contract
=
{
contractTemplateId
:
data
[
'electronicContractId'
],
...
_data
,
}
})
})
ctx
.
setFieldValue
(
"electronicContractName"
,
_data
.
contractName
)
})
})
}
}
})
})
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
5ebf02a8
...
@@ -189,7 +189,6 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
...
@@ -189,7 +189,6 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
let
processEnum
=
addSchemaAction
.
getFieldValue
(
'processEnum'
)
let
processEnum
=
addSchemaAction
.
getFieldValue
(
'processEnum'
)
let
usingElectronicContracts
=
addSchemaAction
.
getFieldValue
(
'usingElectronicContracts'
)
let
usingElectronicContracts
=
addSchemaAction
.
getFieldValue
(
'usingElectronicContracts'
)
let
signatureLogId
=
addSchemaAction
.
getFieldValue
(
"signatureLogId"
)
let
signatureLogId
=
addSchemaAction
.
getFieldValue
(
"signatureLogId"
)
console
.
log
(
processEnum
,
usingElectronicContracts
,
signatureLogId
)
if
(
processEnum
===
24
&&
usingElectronicContracts
&&
!
signatureLogId
)
{
if
(
processEnum
===
24
&&
usingElectronicContracts
&&
!
signatureLogId
)
{
contractRef
.
current
.
setVisible
(
true
)
contractRef
.
current
.
setVisible
(
true
)
return
;
return
;
...
...
src/pages/transaction/purchaseOrder/orderCollect/schema/index.ts
View file @
5ebf02a8
...
@@ -425,6 +425,16 @@ const ortherInfo: ISchema = {
...
@@ -425,6 +425,16 @@ const ortherInfo: ISchema = {
title
:
'合同签署记录id'
,
title
:
'合同签署记录id'
,
visible
:
false
visible
:
false
},
},
electronicContractUrl
:
{
type
:
"string"
,
title
:
'合同URL'
,
visible
:
false
},
electronicContractName
:
{
type
:
"string"
,
title
:
'合同Name'
,
visible
:
false
},
}
}
}
}
}
}
...
...
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