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
cb4c1a29
Commit
cb4c1a29
authored
Mar 26, 2025
by
knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户端-集运订单页面
parent
432b0abf
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
648 additions
and
27 deletions
+648
-27
order.js
src/api/my/order.js
+5
-0
pages.json
src/pages.json
+6
-0
create.vue
src/pages/cons/create.vue
+2
-3
index.vue
src/pages/cons/index.vue
+40
-23
index.vue
src/pages/cons_order/index.vue
+344
-0
cons_order.css
src/static/css/cons_order.css
+249
-0
cons.js
src/static/lang/zh/cons.js
+2
-1
No files found.
src/api/my/order.js
0 → 100644
View file @
cb4c1a29
import
request
from
'
@/utils/request
'
export
function
getOrderConsPage
(
param
)
{
return
request
.
get
(
'
/app-api/my/order/cons/page
'
,
param
);
}
src/pages.json
View file @
cb4c1a29
...
...
@@ -367,6 +367,12 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/cons_order/index"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}
],
"globalStyle"
:
{
...
...
src/pages/cons/create.vue
View file @
cb4c1a29
...
...
@@ -510,8 +510,6 @@ export default {
},
submitForm
()
{
console
.
log
({...
this
.
form
})
if
(
this
.
form
.
id
>
0
){
// 更新包裹
updateCons
({...
this
.
form
}).
then
(
res
=>
{
...
...
@@ -541,8 +539,9 @@ export default {
if
(
!
res
.
confirm
)
{
// 用户点击取消则返回首页
uni
.
navigateTo
({
url
:
'
../
index
/index
'
url
:
'
../
cons
/index
'
})
return
;
}
// 用户点击确定,停留在当前页面并清空数据
uni
.
navigateTo
({
...
...
src/pages/cons/index.vue
View file @
cb4c1a29
...
...
@@ -3,7 +3,7 @@
<!-- 标题栏 -->
<view
class=
"header-toper"
>
<view
class=
"header-toper-title"
>
<image
src=
"../../static/img/back.png"
mode=
""
@
click=
"
goBack
"
></image>
<image
src=
"../../static/img/back.png"
mode=
""
@
click=
"
navigateTo('../index/index')
"
></image>
<text>
{{
$lang
.
lang
.
cons
.
myConsPackage
}}
</text>
<image
src=
"../../static/img/add_white.png"
@
click=
"navigateTo('/pages/cons/create')"
></image>
</view>
...
...
@@ -11,15 +11,14 @@
<!-- 内容主体 -->
<view
class=
"container"
>
<!-- 操作按钮 -->
<view
class=
"item-label"
>
<view
class=
"opt-btn-group"
>
<u-button
type=
"warning"
@
tap=
"navigateTo('../cons/address')"
class=
"opt-btn"
:text=
"$lang.lang.cons.address"
></u-button>
<u-button
type=
"error"
@
tap=
"navigateTo('
address
')"
class=
"opt-btn"
<u-button
type=
"error"
@
tap=
"navigateTo('
../cons_order/index
')"
class=
"opt-btn"
:text=
"$lang.lang.cons.turnOnWaitConfirm"
></u-button>
<u-button
type=
"primary"
@
tap=
"navigateTo('
address
')"
class=
"opt-btn"
<u-button
type=
"primary"
@
tap=
"navigateTo('
../cons_order/index
')"
class=
"opt-btn"
:text=
"$lang.lang.cons.consOrder"
></u-button>
</view>
</view>
...
...
@@ -109,7 +108,7 @@
</view>
<!-- 列表内容栏 -->
<view
class=
"item-label"
v-for=
"item in data"
>
<view
class=
"item-label"
v-for=
"item in data"
@
tap=
"navigateTo('../cons/detail?id=' + item.id)"
>
<view
class=
"cons-list"
>
<!-- 第一行 -->
<u-row
class=
"cons-list-row"
>
...
...
@@ -119,7 +118,7 @@
<span
style=
"font-weight: bold;color: red;width: 50px;margin-left: 20upx;"
v-if=
"consStatus[item.status]"
>
{{
consStatus
[
item
.
status
].
label
}}
</span>
<image
src=
"../../static/img/copy.png"
@
click
=
"copyToClipboard('sf1232323333333333333333445'
)"
<image
src=
"../../static/img/copy.png"
@
click
.stop=
"copyToClipboard(item.expressNo
)"
style=
"width: 35upx;height: 35upx;margin-left: 10upx"
></image>
</span>
</u-col>
...
...
@@ -127,7 +126,7 @@
<div>
<!-- 编辑按钮 -->
<image
src=
"../../static/img/edit.png"
style=
"width: 40upx;height: 40upx;"
@
tap=
"navigateTo('/pages/cons/create?id=' + item.id)"
></image>
@
tap
.stop
=
"navigateTo('/pages/cons/create?id=' + item.id)"
></image>
<image
src=
"../../static/img/delete_pail.png"
style=
"width: 40upx;height: 40upx;"
></image>
</div>
</u-col>
...
...
@@ -193,7 +192,7 @@
</u-col>
<u-col
span=
"3"
>
<u-button
v-if=
"item.consMedia.length > 0"
type=
"primary"
size=
"mini"
@
click=
"imageToggle('dialog',item.consMedia)"
style=
"width: 60upx"
@
click
.stop
=
"imageToggle('dialog',item.consMedia)"
style=
"width: 60upx"
text=
"签收图片"
></u-button>
</u-col>
<u-col
span=
"4"
>
...
...
@@ -260,13 +259,14 @@ export default {
// 列表数据
data
:
[],
total
:
0
,
// 字典配置值
config
:
[],
// 包裹状态键值对结构
consStatus
:
[],
transportType
:
[],
// 包裹状态分段器列表
consStatusSubsectionList
:
[],
// 包裹状态列表
// 包裹状态
多选框
列表
consStatusList
:
[],
// 近期月份选择内容
timeOptions
:
[
...
...
@@ -291,12 +291,17 @@ export default {
contentrefresh
:
'
加载中
'
,
contentnomore
:
'
没有更多数据了
'
},
// 进入页面默认选择已签收状态的数据
//
分段器选择值,
进入页面默认选择已签收状态的数据
curNow
:
1
,
}
},
onLoad
()
{
onLoad
(
option
)
{
if
(
option
.
orderNo
!==
undefined
){
// 如果从其它页面带入搜索条件则不限定状态的搜索条件
this
.
queryParams
.
orderNo
=
option
.
orderNo
this
.
queryParams
.
status
=
null
;
}
// 初始化页面数据
this
.
initData
();
},
...
...
@@ -336,7 +341,10 @@ export default {
// 数据处理
this
.
processConfigData
(
'
consStatus
'
)
this
.
processConfigData
(
'
transportType
'
)
if
(
this
.
queryParams
.
orderNo
!==
''
){
// 初始化完数据后如果有订单编号搜索条件则选中全部
this
.
curNow
=
this
.
consStatusSubsectionList
.
length
-
1
;
}
}
catch
(
error
)
{
console
.
error
(
'
初始化数据失败:
'
,
error
);
}
...
...
@@ -375,9 +383,12 @@ export default {
}
},
/**
* 搜索按钮
*/
handleSearch
()
{
this
.
queryParams
.
page
=
1
;
this
.
queryParams
.
total
=
0
;
this
.
total
=
0
;
this
.
data
=
[];
this
.
getData
();
},
...
...
@@ -396,11 +407,13 @@ export default {
this
.
consStatusSubsectionList
.
push
({
name
:
item
.
label
})
// 组装包裹状态多选框内容
this
.
consStatusList
.
push
({
text
:
item
.
label
,
value
:
item
.
value
,
})
});
// 在分段器最后添加一个全部选项
this
.
consStatusSubsectionList
.
push
({
name
:
'
全部
'
})
...
...
@@ -423,7 +436,7 @@ export default {
},
/**
*
组装填单数据
字符串
*
把填单数据转为
字符串
*/
handleConsProduct
(
consItem
)
{
const
items
=
consItem
??
[];
...
...
@@ -438,7 +451,7 @@ export default {
},
/**
* 设置搜索日期
*
根据选择近期日期
设置搜索日期
*/
setDate
(
e
)
{
const
startDate
=
new
Date
();
...
...
@@ -461,7 +474,6 @@ export default {
*/
handleInspectionData
(
item
)
{
let
inspection
=
{};
inspection
=
item
.
reduce
((
acc
,
item
)
=>
{
acc
.
inspectionNum
+=
item
.
inspectionNum
||
0
;
acc
.
inspectionVolume
+=
item
.
inspectionVolume
||
0
;
...
...
@@ -472,7 +484,6 @@ export default {
inspectionVolume
:
0
,
inspectionWeight
:
0
,
});
return
inspection
.
inspectionNum
+
'
箱
'
+
inspection
.
inspectionVolume
+
'
m³
'
+
inspection
.
inspectionWeight
+
'
kg
'
},
...
...
@@ -486,12 +497,17 @@ export default {
this
.
getData
();
},
/**
* 开始时间赋值
*/
selectStartDate
(
e
)
{
this
.
queryParams
.
beginCreateTime
=
e
.
detail
.
value
// 如果手动选择了日期则清空近期时间按钮
this
.
queryParams
.
pastMonthsDate
=
''
;
},
/**
* 结束时间赋值
*/
selectEndDate
(
e
)
{
this
.
queryParams
.
endCreateTime
=
e
.
detail
.
value
// 如果手动选择了日期则清空近期时间按钮
...
...
@@ -549,10 +565,12 @@ export default {
})
},
/**
* 包裹状态多选框自定义逻辑
*/
handleCheckStatus
(
e
){
// 此处逻辑:如果在checkbox框中只选择一个状态去查询则使用分段器的状态值去查询且选中分段器
// 此处逻辑:如果在checkbox框中只选择一个状态去查询则使用分段器的状态值去查询且选中分段器
对应的值
// 如果选择两个以上则用statusList字段查询且分段器选中全部
// 如果取消选择要
if
(
e
.
detail
.
data
.
length
===
1
){
// 如果只选择了一个状态搜索则不使用statusList列表查询,直接使用status字段查询
this
.
queryParams
.
status
=
e
.
detail
.
value
[
0
]
...
...
@@ -569,19 +587,18 @@ export default {
/**
* 分段器的选择事件
* @param index
*/
sectionChange
(
index
)
{
this
.
curNow
=
index
;
// 设置状态
this
.
queryParams
.
status
=
index
;
// 由于组件的index值只能从0开始,所以当获取出来的状态列表数量大于index的时候表示手动添加的值
// 如果状态值不是从0开始的连续值,这段代码需要重新修改
// 如果
包裹
状态值不是从0开始的连续值,这段代码需要重新修改
if
(
index
>
this
.
config
[
'
consStatus
'
].
length
-
1
){
// 状态为全部是手动添加的值,设置搜索状态为null表示查询所有数据
this
.
queryParams
.
status
=
null
;
}
// 触发
搜索
请求数据
// 触发
查询
请求数据
this
.
handleSearch
();
}
}
...
...
src/pages/cons_order/index.vue
0 → 100644
View file @
cb4c1a29
This diff is collapsed.
Click to expand it.
src/static/css/cons_order.css
0 → 100644
View file @
cb4c1a29
.container
{
margin-top
:
100
upx
;
padding
:
20
rpx
;
}
/* 通用-区块内容包裹框 */
.item-label
{
background
:
var
(
--c0
);
border-radius
:
12
upx
;
margin-bottom
:
20
upx
;
}
/* 搜索框 */
.order-tabs-v2
{
display
:
flex
;
width
:
100%
;
margin-left
:
20
upx
;
}
.order-tabs-v2s
{
display
:
flex
;
flex
:
1
;
padding-top
:
10
upx
;
height
:
100
upx
;
}
/*搜索图标*/
.search-ico
{
width
:
40
upx
;
height
:
40
upx
;
margin
:
30
upx
20
upx
;
}
.order-tabs-v2s
input
{
width
:
52%
;
font-size
:
var
(
--f24
);
padding
:
20
upx
;
margin-top
:
15
upx
;
line-height
:
1.5
;
}
.order-tabs-search
{
margin-left
:
60
upx
;
}
.order-tabs-search
text
{
position
:
absolute
;
color
:
var
(
--c427
);
border
:
1px
solid
var
(
--c427
);
padding
:
8
upx
36
upx
;
border-radius
:
30
upx
;
margin-top
:
15
upx
;
text-align
:
center
;
}
/* 搜索框-end */
.date-section
{
width
:
86%
;
display
:
flex
;
align-items
:
center
;
margin
:
0
auto
;
background-color
:
#fff
;
border-radius
:
6px
;
padding
:
2%
;
margin-bottom
:
12
upx
;
}
.section-title
{
color
:
var
(
--c-1
);
font-size
:
var
(
--f28
);
font-weight
:
700
;
}
.date-item
{
flex
:
1
;
display
:
flex
;
flex-direction
:
column
;
margin-left
:
12px
;
/*padding: 20upx;*/
}
.separator
{
margin
:
0
0
rpx
0
30
rpx
;
}
.date-picker
{
border
:
1
rpx
solid
#eee
;
padding
:
10
rpx
;
border-radius
:
8
rpx
;
/*margin-top: 10rpx;*/
}
.date-section
.input
{
font-weight
:
500
;
font-size
:
var
(
--f24
);
border
:
1px
solid
var
(
--cdf
);
padding
:
12
upx
10
upx
;
border-radius
:
12
upx
;
margin-top
:
10
upx
;
}
.date-section
.input
::placeholder
{
color
:
red
!important
;
font-size
:
var
(
--f24
)
!important
;
}
.status-picker
{
border
:
1px
solid
var
(
--cdf
);
padding
:
12
upx
8px
;
font-size
:
26
upx
;
border-radius
:
4px
;
font-weight
:
normal
;
margin-left
:
12px
;
}
.status-item
{
position
:
relative
;
width
:
50%
;
}
.rgt
{
width
:
32
upx
;
height
:
36
upx
;
margin-left
:
10
upx
;
margin-top
:
4
upx
;
}
.status-item
.rgt
{
top
:
16
upx
;
position
:
absolute
;
right
:
6px
;
margin
:
0
;
}
/* 订单列表 */
.order-list
{
margin
:
0
auto
;
}
.order-list-item
{
background
:
url(@/static/img/list.png)
no-repeat
;
background-size
:
100%
100%
;
padding
:
30
upx
;
border-radius
:
12
upx
;
position
:
relative
;
margin-bottom
:
20
upx
;
}
.order-list-item-top
{
display
:
flex
;
align-items
:
center
;
}
.order-list-item-top
.fa
{
width
:
64
upx
;
height
:
64
upx
;
margin-right
:
16
upx
;
}
.order-item-order-no
{
width
:
84%
;
}
.fa-v
{
}
.fa-v
.order-no
{
padding
:
0
upx
0
10
upx
;
border-bottom
:
1px
solid
var
(
--cdf
);
display
:
flex
;
justify-content
:
space-between
;
}
.fa-v
.order-no
text
{
font-size
:
28
rpx
;
}
.order-no-copy-btn
{
margin-left
:
10
upx
;
color
:
#2A6cd9
}
.order-list-info
{
display
:
flex
;
width
:
100%
;
align-items
:
center
;
justify-content
:
space-between
;
}
.order-item-marks
{
padding
:
20
upx
10
upx
12
upx
10
upx
;
font-size
:
var
(
--f32
);
color
:
var
(
--c3
);
font-weight
:
700
;
width
:
50%
;
}
.order-list-item-info
.times
{
padding
:
0
;
width
:
50%
;
font-size
:
var
(
--f26
);
color
:
var
(
--c9
);
margin-top
:
12
upx
;
}
.order-list-item-info
.times
image
{
width
:
42
upx
;
height
:
42
upx
;
margin-right
:
10
upx
;
}
.sums
{
flex
:
1
;
display
:
flex
;
margin-top
:
20
upx
;
}
.sums
text
:first-child
{
margin-right
:
8
upx
;
}
.look-sum-button
{
margin-left
:
10
upx
;
color
:
var
(
--c036
)
}
.order-btn-list
{
width
:
46%
;
display
:
flex
;
flex-wrap
:
wrap
;
margin-top
:
30
upx
;
}
.order-btn
{
display
:
flex
;
align-items
:
center
;
font-size
:
24
upx
;
flex-wrap
:
wrap
;
justify-content
:
flex-end
;
width
:
100%
;
/*padding-bottom: 50upx;*/
}
.order-btn
view
{
color
:
var
(
--c427
);
border
:
1px
solid
var
(
--c427
);
padding
:
8
upx
28
upx
;
border-radius
:
20
upx
;
}
/* 订单列表-end */
src/static/lang/zh/cons.js
View file @
cb4c1a29
...
...
@@ -5,7 +5,8 @@ export default {
"
address
"
:
"
专属地址
"
,
"
turnOnWaitConfirm
"
:
"
转运待确认
"
,
"
consOrder
"
:
"
集运订单
"
,
"
searchNotice
"
:
"
支持包裹快递单号/提单/订单号查询/商品名称
"
,
"
searchNotice
"
:
"
支持包裹快递单号/提单/订单号/商品名称查询
"
,
"
searchNotice2
"
:
"
支持包裹快递单号/提单/订单号/商品名称/唛头查询
"
,
"
closePopup
"
:
"
关闭弹窗
"
,
"
create
"
:
"
包裹预报
"
,
"
backNotice
"
:
"
是否退出添加包裹页面?
"
,
...
...
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