Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
8e038f49
Commit
8e038f49
authored
Nov 15, 2022
by
李腾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改查看物流
parent
a0f494bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
18 deletions
+68
-18
index.jsx
src/pages/orderManage/pendingDeliveryOrder/index.jsx
+54
-17
index.less
src/pages/orderManage/pendingDeliveryOrder/index.less
+14
-1
No files found.
src/pages/orderManage/pendingDeliveryOrder/index.jsx
View file @
8e038f49
...
...
@@ -64,15 +64,15 @@ const TableList = props => {
const
multiLogisticsModalRef
=
useRef
();
const
actionRef
=
useRef
();
const
ref
=
useRef
(
FormInstance
);
const
handleCom
=
async
(
record
,
skuItem
)
=>
{
const
handleCom
=
async
(
skuInfo
,
expressInfo
)
=>
{
const
tempObj
=
{
expressCompanyCode
:
skuItem
?.
expressCompanyCode
??
''
,
expressCompanyName
:
skuItem
.
expressCompanyName
??
''
,
deliveryNo
:
skuItem
?.
delivery
No
??
''
,
expressCompanyCode
:
expressInfo
?.
expressCompanyCode
??
''
,
expressCompanyName
:
expressInfo
.
expressCompanyName
??
''
,
deliveryNo
:
expressInfo
?.
express
No
??
''
,
detailList
:
[],
key
:
Date
.
now
(),
};
const
data
=
await
getJDLogisticsInfo
(
skuI
tem
.
orderSkuId
);
const
data
=
await
getJDLogisticsInfo
(
skuI
nfo
.
orderSkuId
);
if
(
!
data
)
{
notification
.
info
({
message
:
'
暂无物流信息
'
});
return
;
...
...
@@ -114,14 +114,51 @@ const TableList = props => {
const
renderContent
=
(
record
,
key
)
=>
{
if
(
record
.
mchOrderSkuVoList
)
{
return
record
?.
mchOrderSkuVoList
.
map
((
item
,
index
)
=>
(
<
p
<
div
className=
{
[
'
tableContent
'
,
index
<
record
?.
mchOrderSkuVoList
?.
length
-
1
?
'
border
'
:
null
,
].
join
(
'
'
)
}
// style={{ height: `${(item.expressList?.length || 1) * 60}px` }}
key=
{
item
.
orderSkuId
}
>
{
key
===
'
skuName
'
?
<
PopoverDom
name=
{
item
[
key
]
}
url=
{
item
.
imageUrl
}
/>
:
''
}
{
key
===
'
expressCompanyName
'
?
(
<
div
className=
"expressList"
>
{
item
.
expressList
?.
map
((
info
,
idx
)
=>
(
<
span
className=
{
[
'
subContent
'
,
idx
<
item
.
expressList
?.
length
-
1
?
'
border
'
:
null
,
].
join
(
'
'
)
}
>
{
info
.
expressCompanyName
}
</
span
>
))
}
</
div
>
)
:
(
''
)
}
{
key
===
'
deliveryNo
'
?
(
<
div
className=
"expressList"
>
{
item
.
expressList
?.
map
((
info
,
idx
)
=>
(
<
a
onClick=
{
()
=>
{
handleCom
(
item
,
info
);
}
}
className=
{
[
'
subContent
'
,
idx
<
item
.
expressList
?.
length
-
1
?
'
border
'
:
null
,
].
join
(
'
'
)
}
>
{
info
.
expressNo
}
</
a
>
))
}
</
div
>
)
:
(
''
)
}
{
key
===
'
action
'
&&
props
.
type
===
2
?
(
<
Button
size=
"small"
...
...
@@ -130,12 +167,12 @@ const TableList = props => {
handleCom
(
record
,
item
);
}
}
>
查看物流
查看物流
1
</
Button
>
)
:
(
item
[
key
]
)
}
</
p
>
</
div
>
));
}
return
''
;
...
...
@@ -340,15 +377,15 @@ const TableList = props => {
hideInSearch
:
true
,
render
:
(
_
,
record
)
=>
renderContent
(
record
,
'
deliveryNo
'
),
},
{
title
:
'
物流信息
'
,
dataIndex
:
'
action
'
,
key
:
'
action
'
,
width
:
150
,
hideInSearch
:
true
,
className
:
'
colStyle
'
,
render
:
(
_
,
record
)
=>
renderContent
(
record
,
'
action
'
),
},
//
{
//
title: '物流信息',
//
dataIndex: 'action',
//
key: 'action',
//
width: 150,
//
hideInSearch: true,
//
className: 'colStyle',
//
render: (_, record) => renderContent(record, 'action'),
//
},
{
title
:
'
订单状态
'
,
dataIndex
:
'
orderStatusDesc
'
,
...
...
src/pages/orderManage/pendingDeliveryOrder/index.less
View file @
8e038f49
...
...
@@ -5,12 +5,25 @@
.tableContent {
display: flex;
align-items: center;
height: 60px;
// height: 60px;
min-height: 60px;
padding: 16px;
}
.border {
border-bottom: 1px solid #e8e8e8;
}
.subContent {
flex: 1;
padding: 16px;
}
.expressList {
display: flex;
flex-direction: column;
width: calc(100% + 32px);
margin: -16px;
}
tbody .colStyle {
padding: 0;
}
...
...
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