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
70dd484e
Commit
70dd484e
authored
Mar 21, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理询价下单再选有物流的询价单下单无法显示地址是问题
parent
01d94bf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
index.tsx
...pages/transaction/purchaseOrder/orderCollectB2b/index.tsx
+3
-2
No files found.
src/pages/transaction/purchaseOrder/orderCollectB2b/index.tsx
View file @
70dd484e
...
...
@@ -6,7 +6,7 @@ import { createFormActions, registerVirtualBox, useFormSpy } from '@formily/antd
import
{
SaveOutlined
,
LinkOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
import
NiceForm
from
'@/components/NiceForm'
import
{
orderAddSchema
}
from
'./schema'
import
{
useModelTypeChange
,
useEditHideField
,
useOrderFormInitEffect
,
useProductTableChangeForPay
,
useOrderDeliverTimeEffect
,
JumpFormValueType
}
from
'./effects'
import
{
useModelTypeChange
,
useEditHideField
,
useOrderFormInitEffect
,
useProductTableChangeForPay
,
useOrderDeliverTimeEffect
,
JumpFormValueType
,
useProductAddress
}
from
'./effects'
import
{
filterProductDataById
,
orderCombination
,
orderTypeLabelMap
,
procurementProcessField
,
procurementRenderField
,
procurmentRenderInit
}
from
'./constant'
import
{
OrderModalType
}
from
'@/constants/order'
import
InquiryModalTable
from
'./components/inquiryModalTable'
...
...
@@ -522,7 +522,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
})
}
})
useOrderFormInitEffect
(
ctx
)
//
useOrderFormInitEffect(ctx)
useModelTypeChange
(
state
=>
{
const
{
value
}
=
state
// 选择某种类型时, 需显示对应的订单类型
...
...
@@ -546,6 +546,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = () => {
$
(
'onFieldValueChange'
,
'quoteNo'
).
subscribe
(
state
=>
{
const
modelType
=
ctx
.
getFieldValue
(
'orderMode'
)
useProductAddress
(
ctx
)
if
(
state
.
value
&&
modelType
===
OrderModalType
[
"CONSOLIDATED_ORDER"
])
{
addSchemaAction
.
setFieldState
(
'products'
,
productState
=>
{
productState
.
props
[
"x-component-props"
]
=
{
...
...
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