Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
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
lanbaoming
jiedao-app-customer-new-master
Commits
ce9f9b43
Commit
ce9f9b43
authored
Mar 26, 2025
by
knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情的包裹Tag
parent
cb4c1a29
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
161 additions
and
0 deletions
+161
-0
cons.js
src/api/order/cons.js
+4
-0
orderConsPackage.vue
src/pages/orderInfo/components/orderConsPackage.vue
+148
-0
orderInfo.vue
src/pages/orderInfo/orderInfo.vue
+8
-0
orderInfo.js
src/static/lang/zh/orderInfo.js
+1
-0
No files found.
src/api/order/cons.js
View file @
ce9f9b43
...
...
@@ -19,3 +19,7 @@ export function getCons(param){
export
function
getConsPage
(
param
){
return
request
.
get
(
'
/app-api/order/cons/page
'
,
param
);
}
export
function
getConsList
(
param
){
return
request
.
get
(
'
/app-api/order/cons/list
'
,
param
);
}
src/pages/orderInfo/components/orderConsPackage.vue
0 → 100644
View file @
ce9f9b43
<
template
>
<view
class=
"container"
>
<!-- 表格容器 -->
<view
class=
"table"
>
<!-- 表头 -->
<view
class=
"table-header"
>
<view
class=
"header-item"
>
快递单号
</view>
<view
class=
"header-item"
>
商品
</view>
<view
class=
"header-item"
>
签收时间
</view>
</view>
<!-- 表格内容 -->
<view
class=
"table-body"
>
<view
class=
"body-row"
v-for=
"(item, index) in list"
:key=
"index"
>
<view
style=
"color: var(--c396)"
class=
"body-item"
@
click=
"navigateTo('../cons/detail?id=' + item.id)"
>
{{
item
.
expressNo
}}
</view>
<view
class=
"body-item"
>
{{
handleConsItem
(
item
.
consItem
)
}}
</view>
<view
class=
"body-item"
>
{{
$request
.
getDate
(
item
.
signedTime
)
}}
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
{
getConsList
}
from
"
@/api/order/cons
"
;
export
default
{
name
:
'
OrderConsPackage
'
,
props
:
{
orderId
:
Number
},
data
()
{
return
{
list
:[],
}
},
created
(){
/**
* 根据orderId获取集运列表
*/
getConsList
({
orderId
:
this
.
orderId
}).
then
(
res
=>
{
if
(
res
.
code
===
0
&&
res
.
data
&&
res
.
data
.
length
>
0
)
{
this
.
list
=
res
.
data
;
}
});
},
methods
:{
/**
* 组装集运商品字符串
*/
handleConsItem
(
items
){
const
productStrings
=
[];
items
.
forEach
(
item
=>
{
const
title
=
item
.
product
?.
titleZh
||
''
;
const
quantity
=
item
.
quantity
||
0
;
productStrings
.
push
(
`
${
title
}
*
${
quantity
}
`
);
});
return
productStrings
.
join
(
'
,
'
);
},
/**
* 页面跳转
*/
navigateTo
(
page
)
{
uni
.
navigateTo
({
// url: '../cons/create'
url
:
page
})
},
},
}
</
script
>
<
style
scoped
>
.container
{
background-color
:
#f8f8f8
;
}
/* 表格样式 */
.table
{
background-color
:
#ffffff
;
border-radius
:
10
rpx
;
overflow
:
hidden
;
box-shadow
:
0
2
rpx
12
rpx
rgba
(
0
,
0
,
0
,
0.1
);
}
/* 表头样式 */
.table-header
{
display
:
flex
;
background-color
:
#f5f7fa
;
padding
:
20
rpx
0
;
}
.header-item
{
flex
:
1
;
text-align
:
center
;
font-weight
:
bold
;
color
:
#606266
;
font-size
:
28
rpx
;
}
/* 表格内容样式 */
.body-row
{
display
:
flex
;
padding
:
24
rpx
0
;
align-items
:
center
;
/* 新增垂直居中 */
border-bottom
:
1
rpx
solid
#ebeef5
;
}
.body-row
:last-child
{
border-bottom
:
none
;
}
.body-item
{
flex
:
1
;
text-align
:
center
;
display
:
flex
;
/* 新增 */
align-items
:
center
;
/* 新增垂直居中 */
justify-content
:
center
;
/* 水平居中 */
color
:
#606266
;
font-size
:
26
rpx
;
padding
:
0
10
rpx
;
}
/* 添加响应式效果 */
@media
(
max-width
:
768px
)
{
.table
{
overflow-x
:
auto
;
}
.table-header
,
.body-row
{
min-width
:
600
rpx
;
}
}
</
style
>
src/pages/orderInfo/orderInfo.vue
View file @
ce9f9b43
...
...
@@ -218,6 +218,9 @@
<view
class=
"order-nav"
>
<view
class=
"order-nav-v"
>
<view
:class=
"activeIndex==3?'act':''"
@
click=
"activeIndex=3"
>
<text>
{{$lang.lang.orderInfo.package}}
</text>
</view>
<view
:class=
"activeIndex==0?'act':''"
@
click=
"activeIndex=0"
>
<text>
{{$lang.lang.orderInfo.goodsInfo}}
</text>
</view>
...
...
@@ -338,6 +341,9 @@
</view>
</view>
</view>
<view
class=
"order-info"
v-if=
"activeIndex === 3"
>
<order-cons-package
:orderId=
"orderData.orderId"
></order-cons-package>
</view>
<uni-popup
ref=
"pdf"
type=
"center"
>
<view
class=
"link-content"
:style=
"{maxHeight:windowsHeight+'px'}"
>
{{billLadingData}}
...
...
@@ -386,9 +392,11 @@
import
Drawee
from
"
@/pages/create_order/components/drawee.vue
"
;
//#ifdef H5
import
FileSaver
from
'
file-saver
'
import
OrderConsPackage
from
"
@/pages/orderInfo/components/orderConsPackage.vue
"
;
//#endif
export
default
{
components
:
{
OrderConsPackage
,
Drawee
,
steper
,
declarationDocuments
},
...
...
src/static/lang/zh/orderInfo.js
View file @
ce9f9b43
...
...
@@ -46,6 +46,7 @@ export default {
"
goodsInfo
"
:
"
货物详情
"
,
"
ordering
"
:
"
订单动态
"
,
"
file
"
:
"
运单资料/提货单
"
,
"
package
"
:
"
包裹
"
,
"
index
"
:
"
序号
"
,
"
prodZh
"
:
"
中文品名
"
,
"
prodEn
"
:
"
英文品名
"
,
...
...
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