Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
0613117f
提交
0613117f
编写于
7月 27, 2021
作者:
lyf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加物流信息
上级
513d94e8
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
76 行增加
和
14 行删除
+76
-14
index.js
src/utils/shop/index.js
+11
-0
order-manage.vue
src/views/goods/order-manage.vue
+65
-14
未找到文件。
src/utils/shop/index.js
浏览文件 @
0613117f
...
...
@@ -47,6 +47,17 @@ export const queryOrderList = (params) => {
})
};
export
const
expressInfo
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`campaign/distribution/logistics/expressInfo`
),
method
:
'get'
,
params
:
params
,
description
:
'查询订单列表'
,
})
};
export
const
updateExpress
=
(
params
)
=>
{
return
fetch
({
headers
,
...
...
src/views/goods/order-manage.vue
浏览文件 @
0613117f
...
...
@@ -466,15 +466,36 @@
:visible=
"viewLogisticsDialog"
@
close=
"cancelView"
:show-close=
"false"
width=
"
6
00px"
width=
"
7
00px"
center
>
<div
class=
"view-content"
>
<i
class=
"el-icon-truck"
style=
"font-size: 18px"
></i
><span
class=
"send-status"
>
已发货
</span>
<span
class=
"view-number"
>
{{ logisticeInfo }}
</span>
<el-button
type=
"text"
@
click=
"copyTxt"
>
复制单号
</el-button>
<el-button
type=
"text"
@
click=
"updateOrderNo"
>
修改物流单号
</el-button>
<div>
<i
class=
"el-icon-truck"
style=
"font-size: 18px"
></i
><span
class=
"send-status"
>
已发货
</span>
<span
class=
"view-number"
>
{{ logisticeInfo }}
</span>
</div>
<div>
<el-button
type=
"text"
@
click=
"copyTxt"
>
复制单号
</el-button>
<el-button
type=
"text"
@
click=
"updateOrderNo"
v-if=
"showStatus == 2"
>
修改物流单号
</el-button
>
</div>
</div>
<div
class=
"steps-logistics"
>
<el-steps
direction=
"vertical"
:active=
"-1"
>
<el-step
v-for=
"(item,index) in expressData"
:title=
"item.time"
:description=
"item.context"
:key=
"index"
>
<div
slot=
"icon"
>
<div
class=
"dot"
></div>
</div>
</el-step>
</el-steps>
</div>
<input
type=
"text"
id=
"copyInput"
class=
"hidden-input"
/>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -626,6 +647,7 @@ import {
brokerListAll
,
brokerOwnerListAll
,
updateExpressNo
,
expressInfo
}
from
"@/utils/shop"
;
import
{
toDecimal2
}
from
"@/utils"
;
...
...
@@ -640,7 +662,7 @@ export default {
curmbFirst
:
"云鹊店铺"
,
curmbSecond
:
"订单管理"
,
activeName
:
"all"
,
showStatus
:
-
1
,
searchForm
:
{
showStatus
:
-
1
,
storeId
:
0
,
...
...
@@ -682,6 +704,7 @@ export default {
{
required
:
true
,
message
:
"请选择退款对象"
,
trigger
:
"blur"
},
],
},
expressData
:[],
showTuiDialog
:
false
,
tuiForm
:
{
order
:
null
,
...
...
@@ -877,13 +900,21 @@ export default {
},
//查看物流
viewLogistics
(
row
)
{
this
.
viewLogisticsDialog
=
true
;
this
.
logisticeInfo
=
`
${
row
.
expressName
}
${
row
.
expressNo
}
`
;
this
.
expressForm
.
order
=
row
;
this
.
expressForm
.
company
=
`
${
row
.
expressName
}
`
;
this
.
expressForm
.
no
=
`
${
row
.
expressNo
}
`
;
this
.
expressForm
.
extendMessage
=
`
${
row
.
remark
}
`
;
console
.
log
(
"row-----"
,
row
)
expressInfo
({
expressNo
:
row
.
expressNo
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
expressData
=
res
.
data
.
data
this
.
logisticeInfo
=
`
${
row
.
expressName
}
${
row
.
expressNo
}
`
;
this
.
expressForm
.
order
=
row
;
this
.
expressForm
.
company
=
`
${
row
.
expressName
}
`
;
this
.
expressForm
.
no
=
`
${
row
.
expressNo
}
`
;
this
.
expressForm
.
extendMessage
=
`
${
row
.
remark
}
`
;
this
.
showStatus
=
row
.
showStatus
;
this
.
viewLogisticsDialog
=
true
;
}
});
},
cancelView
()
{
this
.
viewLogisticsDialog
=
false
;
},
...
...
@@ -965,7 +996,7 @@ export default {
refundApply
({
orderId
:
this
.
tuiForm
.
order
.
id
,
userType
:
this
.
userType
,
refundReason
:
this
.
tuiForm
.
refundReason
refundReason
:
this
.
tuiForm
.
refundReason
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
$message
.
success
(
"操作成功"
);
...
...
@@ -1081,6 +1112,20 @@ export default {
</
script
>
<
style
lang=
"scss"
>
.order-manage-wrapper
{
.el-step__icon
{
border
:
none
;
background
:
transparent
;
}
.el-step__title
{
font-size
:
14px
;
}
.dot
{
border-radius
:
50%
;
height
:
8px
;
width
:
8px
;
border
:
1px
solid
#999999
;
background-color
:
#b8b8b8
;
}
.order-manage-content
{
background
:
#fff
;
padding
:
10px
;
...
...
@@ -1124,6 +1169,8 @@ export default {
}
.view-content
{
display
:
flex
;
justify-content
:
space-between
;
.send-status
{
margin-left
:
5px
;
}
...
...
@@ -1142,6 +1189,10 @@ export default {
color
:
#999999
;
}
}
.steps-logistics
{
height
:
350px
;
overflow-y
:
scroll
;
}
.hidden-input
{
height
:
0
;
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录