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
bde37f35
Commit
bde37f35
authored
Sep 30, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test-preview' into dev
parents
c5e52d6b
d44553ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
21 deletions
+24
-21
MenuSlider.tsx
src/layouts/components/MenuSlider.tsx
+2
-1
index.tsx
.../transaction/purchaseOrder/orderDetail/constant/index.tsx
+4
-3
index.tsx
...aleOrder/orderPreview/components/orderMergeInfo/index.tsx
+18
-17
No files found.
src/layouts/components/MenuSlider.tsx
View file @
bde37f35
...
...
@@ -8,6 +8,7 @@ import OuterSider from './OuterSide'
import
{
GlobalConfig
}
from
'@/global/config'
import
styles
from
'../styles/MenuSlider.less'
import
{
getRouters
}
from
'@/utils/auth'
;
import
{
isDev
}
from
'@/constants'
;
const
{
Sider
}
=
Layout
const
{
SubMenu
}
=
Menu
;
...
...
@@ -35,7 +36,7 @@ const MenuSlider: React.FC<MenuSliderProps> = (props) => {
if
(
!!
menuArray
&&
menuArray
.
length
>
0
)
{
return
menuArray
.
map
((
item
:
any
)
=>
{
// 不存在路由表内或者 需要隐藏
if
(
item
.
hideInMenu
||
!
getRouters
().
includes
(
item
.
path
))
{
if
(
item
.
hideInMenu
||
(
!
getRouters
().
includes
(
item
.
path
)
&&
!
isDev
))
{
return
null
}
...
...
src/pages/transaction/purchaseOrder/orderDetail/constant/index.tsx
View file @
bde37f35
...
...
@@ -56,14 +56,15 @@ export const orderCombination = {
}
export
const
orderTypeLabel
=
[
''
,
'现货采购'
,
'现货采购'
,
'询价采购'
,
'需求采购'
,
'现货采购'
,
'集采'
,
'积分兑换'
,
'渠道直采'
,
'渠道直采'
,
'渠道现货'
,
'渠道现货'
,
'渠道积分兑换'
]
// 支付方式
...
...
src/pages/transaction/saleOrder/orderPreview/components/orderMergeInfo/index.tsx
View file @
bde37f35
...
...
@@ -13,7 +13,7 @@ export interface OrderMergeInfoProps { }
const
payInfo
=
[
{
title
:
'交付日期'
,
name
:
'deliveryTime'
,
render
:
(
text
)
=>
formatTimeString
(
text
)
},
{
title
:
'交付地址'
,
name
:
'deliveryAddres
Id
'
,
render
:
(
_
,
record
)
=>
title
:
'交付地址'
,
name
:
'deliveryAddres
sInfo
'
,
render
:
(
_
,
record
)
=>
<
div
>
<
Row
>
<
Col
>
{
record
.
receiverName
}
</
Col
>
...
...
@@ -60,25 +60,26 @@ const RenderCard = ({ infoList, dataSource }) => infoList.map(v => dataSource[v.
const
OrderMergeInfo
:
React
.
FC
<
OrderMergeInfoProps
>
=
(
props
)
=>
{
const
orderDetailCtx
=
useContext
(
OrderDetailContext
)
const
address
=
useMemo
(
async
()
=>
{
const
{
data
}
=
await
PublicApi
.
getLogisticsSelectListReceiverAddress
()
return
data
},
[])
//
const address = useMemo(async () => {
//
const { data } = await PublicApi.getLogisticsSelectListReceiverAddress()
//
return data
//
}, [])
const
{
data
,
ctl
}
=
orderDetailCtx
useEffect
(()
=>
{
if
(
data
.
deliveryAddresId
&&
!
data
.
receiverName
)
{
asyncSetAddress
()
}
},
[
data
,
address
])
//
useEffect(() => {
//
if (data.deliveryAddresId && !data.receiverName) {
//
asyncSetAddress()
//
}
//
}, [data, address])
const
asyncSetAddress
=
async
()
=>
{
const
res
=
await
address
ctl
.
setData
({
...
data
,
...(
res
.
find
(
v
=>
v
.
id
===
data
.
deliveryAddresId
)
||
{})
})
}
// const asyncSetAddress = async () => {
// const res = await address
// debugger
// ctl.setData({
// ...data,
// ...(res.find(v => v.id === data.deliveryAddresId) || {})
// })
// }
return
(
<
Row
style=
{
{
marginTop
:
24
}
}
gutter=
{
24
}
>
...
...
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