Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
e4622463
提交
e4622463
编写于
7月 03, 2021
作者:
minghao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 物流单号修改
上级
dfcb4639
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
52 行增加
和
12 行删除
+52
-12
index.js
src/utils/shop/index.js
+10
-0
order-manage.vue
src/views/goods/order-manage.vue
+42
-12
未找到文件。
src/utils/shop/index.js
浏览文件 @
e4622463
...
@@ -57,6 +57,16 @@ export const updateExpress = (params) => {
...
@@ -57,6 +57,16 @@ export const updateExpress = (params) => {
})
})
};
};
export
const
updateExpress
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`store/orders/admin/
${
params
.
id
}
/updateExpressNo`
),
method
:
'post'
,
data
:
params
,
description
:
'更新物流单号'
,
})
};
export
const
queryShopAuth
=
(
params
)
=>
{
export
const
queryShopAuth
=
(
params
)
=>
{
return
fetch
({
return
fetch
({
...
...
src/views/goods/order-manage.vue
浏览文件 @
e4622463
...
@@ -299,19 +299,19 @@
...
@@ -299,19 +299,19 @@
@
close=
"showOrderNoFlag = false"
@
close=
"showOrderNoFlag = false"
width=
"385px"
width=
"385px"
>
>
<el-form
ref=
"
tuiForm"
:rules=
"rules"
:model=
"tui
Form"
label-width=
"120px"
>
<el-form
ref=
"
expressForm"
:rules=
"rules"
:model=
"express
Form"
label-width=
"120px"
>
<el-form-item
label=
"快递公司"
prop=
"name"
>
<el-form-item
label=
"快递公司"
prop=
"name"
>
<el-input
v-model=
"
tuiForm.mone
y"
></el-input>
<el-input
v-model=
"
expressForm.compan
y"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"快递单号"
prop=
"name"
>
<el-form-item
label=
"快递单号"
prop=
"name"
>
<el-input
v-model=
"
tuiForm.money
"
></el-input>
<el-input
v-model=
"
expressForm.no
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"name"
>
<el-form-item
label=
"备注"
prop=
"name"
>
<el-input
v-model=
"
tuiForm.money
"
></el-input>
<el-input
v-model=
"
expressForm.extendMessage
"
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"confirm
Tui
"
>
完成
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"confirm
ExpressNo
"
>
完成
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
SendSetDialog
from
"@/components/shop/send-set-dialog"
;
import
SendSetDialog
from
"@/components/shop/send-set-dialog"
;
import
{
getOrdersExportUrl
}
from
"@/utils/yqrange/yqrangeApi"
;
import
{
getOrdersExportUrl
}
from
"@/utils/yqrange/yqrangeApi"
;
import
{
queryOrderList
,
updateExpress
,
refundApply
,
brokerListAll
,
brokerOwnerListAll
}
from
"@/utils/shop"
;
import
{
queryOrderList
,
updateExpress
,
refundApply
,
brokerListAll
,
brokerOwnerListAll
,
updateExpressNo
}
from
"@/utils/shop"
;
import
{
toDecimal2
}
from
'@/utils'
;
import
{
toDecimal2
}
from
'@/utils'
;
export
default
{
export
default
{
...
@@ -383,6 +383,20 @@
...
@@ -383,6 +383,20 @@
type
:
0
,
type
:
0
,
money
:
''
money
:
''
},
},
expressForm
:
{
order
:
null
,
company
:
''
,
no
:
''
,
extendMessage
:
''
},
rulesExpress
:
{
company
:
[
{
required
:
true
,
message
:
'请输入快递公司'
,
trigger
:
"blur"
},
],
no
:
[
{
required
:
true
,
message
:
'请输入快递单号'
,
trigger
:
"blur"
},
]
},
tuiTypes
:
[
tuiTypes
:
[
{
{
label
:
'仅退款,无需退货'
,
label
:
'仅退款,无需退货'
,
...
@@ -542,6 +556,7 @@
...
@@ -542,6 +556,7 @@
viewLogistics
(
row
)
{
viewLogistics
(
row
)
{
this
.
viewLogisticsDialog
=
true
;
this
.
viewLogisticsDialog
=
true
;
this
.
logisticeInfo
=
`
${
row
.
expressName
}
${
row
.
expressNo
}
`
;
this
.
logisticeInfo
=
`
${
row
.
expressName
}
${
row
.
expressNo
}
`
;
this
.
expressForm
.
order
=
row
;
},
},
cancelView
()
{
cancelView
()
{
this
.
viewLogisticsDialog
=
false
;
this
.
viewLogisticsDialog
=
false
;
...
@@ -628,6 +643,27 @@
...
@@ -628,6 +643,27 @@
}
}
});
});
},
},
// 修改物流单号
updateOrderNo
(){
this
.
viewLogisticsDialog
=
false
;
this
.
showOrderNoFlag
=
true
;
},
confirmExpressNo
()
{
updateExpressNo
({
orderId
:
this
.
expressForm
.
order
.
id
,
expressName
:
this
.
expressForm
.
company
,
expressNo
:
this
.
expressForm
.
no
,
remark
:
this
.
expressForm
.
extendMessage
}).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
$message
.
success
(
'操作成功'
);
this
.
showOrderNoFlag
=
false
;
this
.
searchList
();
}
else
{
this
.
$message
.
success
(
`操作失败:
${
res
.
message
}
,请重试`
);
}
});
},
exportOrder
()
{
exportOrder
()
{
const
{
goodsName
,
orderNo
,
receiver
,
orderDate
,
storeId
,
brokerId
,
ownerId
,
prescriberName
,
orderBeginTime
,
orderEndTime
}
=
this
.
searchForm
;
const
{
goodsName
,
orderNo
,
receiver
,
orderDate
,
storeId
,
brokerId
,
ownerId
,
prescriberName
,
orderBeginTime
,
orderEndTime
}
=
this
.
searchForm
;
...
@@ -664,12 +700,6 @@
...
@@ -664,12 +700,6 @@
this
.
ownerId
=
data
;
this
.
ownerId
=
data
;
this
.
brokerListAll
();
this
.
brokerListAll
();
},
},
// 修改物流单号
updateOrderNo
(){
this
.
viewLogisticsDialog
=
false
;
this
.
showOrderNoFlag
=
true
;
}
},
},
filters
:
{
filters
:
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录