Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-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-operator-master
Commits
496f29ed
Commit
496f29ed
authored
Oct 24, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
2788ea87
bda92871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
42 deletions
+78
-42
success.vue
src/views/ecw/order/success.vue
+78
-42
No files found.
src/views/ecw/order/success.vue
View file @
496f29ed
<
template
>
<
template
>
<div
v-if=
"order"
>
<div
v-if=
"order"
style=
"width: 1120px"
>
<div
class=
"wrapper flex w-1000 pb-20"
style=
"margin:auto"
>
<div
style=
"display: flex;justify-content: space-around;margin-top: 30px;"
>
<div
class=
"icon"
>
<div
class=
"el-icon-check"
style=
"font-size: 100px;color: #67C23A;"
/>
<img
src=
"../../../assets/svg/success.svg"
/>
<div>
</div>
<el-row>
<div
class=
"flex-1"
>
<span
style=
"font-weight: bold;font-size: 18px;"
>
{{
$t
(
'
新建订单成功
'
)
}}
</span>
<div
class=
"title"
>
{{
$t
(
'
新建订单成功
'
)
}}
</div>
</el-row>
<div
class=
"line bold font-lg"
>
{{
$t
(
'
订单号
'
)
}}
:
{{
order
.
orderNo
}}
</div>
<el-row
style=
"margin-top: 10px;"
>
<div
class=
"line"
>
{{
$t
(
'
唛头
'
)
}}
:
{{
order
.
marks
}}
</div>
<span
style=
"font-size: 16px; font-weight: bold; color: #666;"
>
{{
$t
(
'
您的订舱号
'
)
}}
:
{{
order
.
orderNo
}}
</span>
</el-row>
<el-row
style=
"margin-top: 10px;"
>
<span
style=
"font-size: 14px;color: #666;"
>
{{
$t
(
'
唛头
'
)
}}
:
{{
order
.
marks
}}
</span>
</el-row>
<el-row
v-if=
"order.channelId"
style=
"margin-top: 10px;"
>
<span
style=
"font-size: 14px;color: #666;"
>
{{
$t
(
'
出货渠道
'
)
}}
:
{{
order
.
channelName
}}
</span>
</el-row>
<el-row
style=
"margin-top: 10px;"
>
<span
style=
"font-size: 14px;color: #666;"
>
{{
$t
(
'
路线
'
)
}}
:
{{
$l
(
order
.
logisticsInfoDto
,
'
startTitle
'
)
}}
>>
{{
$l
(
order
.
logisticsInfoDto
,
'
destTitle
'
)
}}
</span>
</el-row>
<el-row
style=
"margin-top: 10px;"
>
<span
style=
"font-size: 14px;color: #666;"
>
{{
$t
(
'
单证报关
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
:value=
"order.customsType"
/></span>
</el-row>
<el-row
style=
"margin-top: 10px;"
>
<span
style=
"font-size: 14px;color: #666;"
>
{{
$t
(
'
是否控货
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
:value=
"order.isCargoControl"
/></span>
</el-row>
<div
class=
"flex"
>
<el-row
style=
"margin-top: 10px;"
>
<div
class=
"line flex-1"
>
{{
$t
(
'
运输方式
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"order.transportId"
/></div>
<span
style=
"font-size: 14px;color: #666;"
>
<div
class=
"line flex-1"
v-if=
"order.channelName"
>
{{
$t
(
'
出货渠道
'
)
}}
:
{{
order
.
channelName
}}
</div>
{{
$t
(
'
商品列表
'
)
}}
:
</div>
<span
v-for=
"(item, index) in order.orderItemVOList"
:key=
"index"
>
<div
class=
"flex"
>
{{
$l
(
item
,
'
prodTitle
'
)
}}
<div
class=
"line flex-1"
>
{{
$t
(
'
路线
'
)
}}
:
{{
$l
(
order
.
logisticsInfoDto
,
'
startTitle
'
)
}}
>>
{{
$l
(
order
.
logisticsInfoDto
,
'
destTitle
'
)
}}
</div>
<template
v-if=
"index
<
order
.
orderItemVOList
.
length
-
1
"
>
{{
$t
(
'
、
'
)
}}
</
template
>
<div
class=
"line flex-1"
>
{{
$t
(
'
单证报关
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
:value=
"order.customsType"
/></div>
</span>
</div>
</span>
<div
class=
"line"
>
{{
$t
(
'
控货
'
)
}}
:
<dict-tag
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
:value=
"order.isCargoControl"
/></div>
</el-row>
<el-row
style=
"margin-top: 10px;"
>
<span
style=
"font-size: 14px;color: #666;"
>
{{ $t('总件数') }}:{{ order.costVO.totalNum }}
</span>
</el-row>
<div
class=
"line"
>
{{
$t
(
'
商品列表
'
)
}}
:
<el-row
style=
"margin-top: 30px;"
>
<span
v-for=
"(item, index) in order.orderItemVOList"
:key=
"index"
>
<span
style=
"font-size: 14px;color: #666;"
>
{{ $t('仓库地址') }}:{{ order.logisticsInfoDto.startAddressZh }}
</span>
{{
$l
(
item
,
'
prodTitle
'
)
}}
</el-row>
<template
v-if=
"index
<
order
.
orderItemVOList
.
length
-
1
"
>
{{
$t
(
'
、
'
)
}}
</
template
>
<el-row
style=
"margin-top: 10px;"
>
</span>
<span
style=
"font-size: 14px;color: #666;"
>
{{ $t('仓库电话') }}:{{ order.logisticsInfoDto.startTell }}
</span>
</div>
</el-row>
<div
class=
"line"
>
{{$t('总件数')}}:{{order.costVO.totalNum}}
</div>
<el-row
style=
"margin-top: 10px;"
>
</div>
<span
style=
"font-size: 14px;color: #666;"
>
{{ $t('为保证入仓数据准确性,入仓请带上一份装箱单(品名,件数,毛重,尺寸方数,是否有牌)') }}
</span>
</div>
</el-row>
<div
class=
"w-800"
style=
"margin: auto"
>
<el-row
style=
"margin-top: 20px;"
>
<div
class=
"line mt-20"
>
{{$t('仓库地址')}}:{{$l(order.logisticsInfoDto, 'startAddress')}}
</div>
<span
style=
"text-decoration: underline;font-size: 14px;color: #999;"
>
{{ $t('您的订单已提交,谢谢您选择捷道物流!') }}
</span>
<div
class=
"line"
>
{{$t('仓库电话')}}: {{order.logisticsInfoDto.startTell}}
</div>
</el-row>
<!-- v1.7新增 -->
<div
class=
"line"
>
{{$t('为保证入仓数据准确性,入仓请带上一份装箱单(品名,件数,毛重,尺寸方数,是否有牌)')}}
</div>
<div
class=
"line"
></div>
<div
class=
"line"
>
{{$t('您的订单已提交,谢谢您选择捷道物流!')}}
</div>
</div>
</div>
</div>
<div
class=
"actions mt-50"
>
<div
class=
"actions mt-50"
>
<el-button
type=
"primary"
@
click=
"$redirect('detail?orderId=' + order.orderId)"
>
{{$t('查看订单')}}
</el-button>
<el-button
type=
"primary"
@
click=
"$redirect('detail?orderId=' + order.orderId)"
>
{{$t('查看订单')}}
</el-button>
<el-button
type=
"warning"
@
click=
"showNotice = true"
>
{{$t('入仓须知')}}
</el-button>
<el-button
type=
"warning"
@
click=
"showNotice = true"
>
{{$t('入仓须知')}}
</el-button>
<el-button
type=
"info"
@
click=
"$redirect('create')"
>
{{$t('再来一单')}}
</el-button>
<el-button
type=
"info"
@
click=
"$redirect('create')"
>
{{$t('再来一单')}}
</el-button>
<el-button
class=
"copy-btn"
:data-clipboard-text=
"orderInfoForCopy"
>
{{$t('复制订单信息')}}
</el-button>
</div>
</div>
<el-dialog
:title=
"$t('查看须知')"
:visible.sync=
"showNotice"
width=
"700px"
>
<el-dialog
:title=
"$t('查看须知')"
:visible.sync=
"showNotice"
width=
"700px"
>
...
@@ -56,6 +73,9 @@ import {getOrder} from '@/api/ecw/order'
...
@@ -56,6 +73,9 @@ import {getOrder} from '@/api/ecw/order'
import
FileSaver
from
'
file-saver
'
import
FileSaver
from
'
file-saver
'
import
{
dataURLtoBlob
}
from
'
@/utils/index
'
import
{
dataURLtoBlob
}
from
'
@/utils/index
'
import
NeedKnow
from
'
@/components/NeedKnow
'
import
NeedKnow
from
'
@/components/NeedKnow
'
import
ClipboardJS
from
"
clipboard
"
;
let
clipboard
;
export
default
{
export
default
{
components
:
{
NeedKnow
},
components
:
{
NeedKnow
},
...
@@ -66,16 +86,32 @@ export default {
...
@@ -66,16 +86,32 @@ export default {
// noticeUrl: 'http://v4.groupage.cn/Public/images/notice.png'
// noticeUrl: 'http://v4.groupage.cn/Public/images/notice.png'
}
}
},
},
created
(){
computed
:{
this
.
loadData
()
orderInfoForCopy
(){
return
`订单号:
${
this
.
order
.
orderNo
}
\n唛头:
${
this
.
order
.
marks
}
\n提货点:
${
this
.
order
.
logisticsInfoDto
?.
destTitleZh
}
\
n
送货地址:
$
{
this
.
order
.
logisticsInfoDto
?.
startAddressZh
}
`
}
},
async created(){
await this.loadData()
await this.$nextTick()
clipboard = new ClipboardJS('.copy-btn')
clipboard.on('success', () => {
this.$message.success(this.$t('复制成功'))
})
clipboard.on('error', () => {
this.$message.error(this.$t('复制失败'))
})
},
destroyed() {
clipboard.destroy()
},
},
methods:{
methods:{
loadData
(){
async
loadData(){
getOrder
(
this
.
$route
.
query
.
orderId
)
await
getOrder(this.$route.query.orderId)
.
then
(
res
=>
{
.then(res => {
this
.
order
=
res
.
data
this.order = res.data
})
})
}
}
}
}
}
}
</
script
>
</
script
>
...
...
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