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
34b263fb
Commit
34b263fb
authored
Apr 21, 2022
by
rainbowmorel@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加外部流
parent
5cc7b034
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
details.tsx
src/pages/order/receivingNote/deliveryNoteManage/details.tsx
+30
-2
details.tsx
src/pages/order/receivingNote/deliveryNoteQuery/details.tsx
+2
-2
No files found.
src/pages/order/receivingNote/deliveryNoteManage/details.tsx
View file @
34b263fb
...
...
@@ -18,7 +18,7 @@ const service = ReceiveNoteFacotry.getInstance()
const
DeliveryNoteManageDetails
:
React
.
FC
=
()
=>
{
const
anchors
=
DeliveryNoteQuery
const
[
anchors
,
setAnchors
]
=
useState
(
DeliveryNoteQuery
)
const
[
info
,
setInfo
]
=
useState
<
any
>
({})
const
[
tableDataSource
,
setTableDataSource
]
=
useState
([])
...
...
@@ -26,6 +26,8 @@ const DeliveryNoteManageDetails: React.FC = () => {
const
{
id
}
=
(
location
as
any
).
query
const
[
loading
,
setLoading
]
=
useState
(
true
)
const
[
outerHistoryList
,
setOuterHistoryList
]
=
useState
([])
useEffect
(()
=>
{
Promise
.
all
([
...
...
@@ -33,8 +35,24 @@ const DeliveryNoteManageDetails: React.FC = () => {
service
.
getDetailProduct
({
id
,
current
:
1
})
]).
then
((
values
)
=>
{
setInfo
(
values
[
0
])
setOuterHistoryList
(
values
[
0
].
outerHistoryList
)
setTableDataSource
(
values
[
1
].
data
)
setLoading
(
false
)
setAnchors
([
...
anchors
,
{
...
Material
,
...{
name
:
`
${
Material
.
name
}
(
${
values
[
1
].
totalCount
}
)`
}
},
{
...
ExternalRoamRecord
,
...{
name
:
`
${
ExternalRoamRecord
.
name
}
(
${
values
[
0
].
outerHistoryList
.
length
}
)`
}
}
])
})
},
[])
...
...
@@ -127,7 +145,7 @@ const DeliveryNoteManageDetails: React.FC = () => {
<
ListInfoItem
label=
'物流单号'
>
{
info
?.
logisticsNo
??
'-'
}
</
ListInfoItem
>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
Material
.
name
}
id=
{
Material
.
key
}
cols=
{
1
}
>
...
...
@@ -157,6 +175,16 @@ const DeliveryNoteManageDetails: React.FC = () => {
/>
</
ListInfo
>
<
ListInfo
className=
'mt-15'
title=
{
ExternalRoamRecord
.
name
}
id=
{
ExternalRoamRecord
.
key
}
cols=
{
1
}
>
<
Table
columns=
{
[
...
ExternalRoamRecordTableColumn
,
]
}
rowKey=
"id"
dataSource=
{
outerHistoryList
}
/>
</
ListInfo
>
</
AnchorPage
>
</
Spin
>
)
...
...
src/pages/order/receivingNote/deliveryNoteQuery/details.tsx
View file @
34b263fb
...
...
@@ -167,7 +167,7 @@ const DeliveryNoteDetails: React.FC = () => {
/>
</
ListInfo
>
{
/*
<ListInfo className='mt-15' title={ExternalRoamRecord.name} id={ExternalRoamRecord.key} cols={1}>
<
ListInfo
className=
'mt-15'
title=
{
ExternalRoamRecord
.
name
}
id=
{
ExternalRoamRecord
.
key
}
cols=
{
1
}
>
<
Table
columns=
{
[
...
ExternalRoamRecordTableColumn
,
...
...
@@ -175,7 +175,7 @@ const DeliveryNoteDetails: React.FC = () => {
rowKey=
"id"
dataSource=
{
outerHistoryList
}
/>
</ListInfo>
*/
}
</
ListInfo
>
</
AnchorPage
>
)
...
...
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