提交 0613117f 编写于 作者: lyf's avatar lyf

添加物流信息

上级 513d94e8
...@@ -47,6 +47,17 @@ export const queryOrderList = (params) => { ...@@ -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) => { export const updateExpress = (params) => {
return fetch({ return fetch({
headers, headers,
......
...@@ -466,15 +466,36 @@ ...@@ -466,15 +466,36 @@
:visible="viewLogisticsDialog" :visible="viewLogisticsDialog"
@close="cancelView" @close="cancelView"
:show-close="false" :show-close="false"
width="600px" width="700px"
center center
> >
<div class="view-content"> <div class="view-content">
<i class="el-icon-truck" style="font-size: 18px"></i <div>
><span class="send-status">已发货</span> <i class="el-icon-truck" style="font-size: 18px"></i
<span class="view-number">{{ logisticeInfo }}</span> ><span class="send-status">已发货</span>
<el-button type="text" @click="copyTxt">复制单号</el-button> <span class="view-number">{{ logisticeInfo }}</span>
<el-button type="text" @click="updateOrderNo">修改物流单号</el-button> </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> </div>
<input type="text" id="copyInput" class="hidden-input" /> <input type="text" id="copyInput" class="hidden-input" />
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -626,6 +647,7 @@ import { ...@@ -626,6 +647,7 @@ import {
brokerListAll, brokerListAll,
brokerOwnerListAll, brokerOwnerListAll,
updateExpressNo, updateExpressNo,
expressInfo
} from "@/utils/shop"; } from "@/utils/shop";
import { toDecimal2 } from "@/utils"; import { toDecimal2 } from "@/utils";
...@@ -640,7 +662,7 @@ export default { ...@@ -640,7 +662,7 @@ export default {
curmbFirst: "云鹊店铺", curmbFirst: "云鹊店铺",
curmbSecond: "订单管理", curmbSecond: "订单管理",
activeName: "all", activeName: "all",
showStatus:-1,
searchForm: { searchForm: {
showStatus: -1, showStatus: -1,
storeId: 0, storeId: 0,
...@@ -682,6 +704,7 @@ export default { ...@@ -682,6 +704,7 @@ export default {
{ required: true, message: "请选择退款对象", trigger: "blur" }, { required: true, message: "请选择退款对象", trigger: "blur" },
], ],
}, },
expressData:[],
showTuiDialog: false, showTuiDialog: false,
tuiForm: { tuiForm: {
order: null, order: null,
...@@ -877,13 +900,21 @@ export default { ...@@ -877,13 +900,21 @@ export default {
}, },
//查看物流 //查看物流
viewLogistics(row) { viewLogistics(row) {
this.viewLogisticsDialog = true; console.log("row-----",row)
this.logisticeInfo = `${row.expressName} ${row.expressNo}`; expressInfo({ expressNo: row.expressNo }).then((res) => {
this.expressForm.order = row; if (res.code == "000000") {
this.expressForm.company = `${row.expressName}`; this.expressData=res.data.data
this.expressForm.no = `${row.expressNo}`; this.logisticeInfo = `${row.expressName} ${row.expressNo}`;
this.expressForm.extendMessage = `${row.remark}`; 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() { cancelView() {
this.viewLogisticsDialog = false; this.viewLogisticsDialog = false;
}, },
...@@ -965,7 +996,7 @@ export default { ...@@ -965,7 +996,7 @@ export default {
refundApply({ refundApply({
orderId: this.tuiForm.order.id, orderId: this.tuiForm.order.id,
userType: this.userType, userType: this.userType,
refundReason:this.tuiForm.refundReason refundReason: this.tuiForm.refundReason,
}).then((res) => { }).then((res) => {
if (res.code == "000000") { if (res.code == "000000") {
this.$message.success("操作成功"); this.$message.success("操作成功");
...@@ -1081,6 +1112,20 @@ export default { ...@@ -1081,6 +1112,20 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.order-manage-wrapper { .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 { .order-manage-content {
background: #fff; background: #fff;
padding: 10px; padding: 10px;
...@@ -1124,6 +1169,8 @@ export default { ...@@ -1124,6 +1169,8 @@ export default {
} }
.view-content { .view-content {
display: flex;
justify-content: space-between;
.send-status { .send-status {
margin-left: 5px; margin-left: 5px;
} }
...@@ -1142,6 +1189,10 @@ export default { ...@@ -1142,6 +1189,10 @@ export default {
color: #999999; color: #999999;
} }
} }
.steps-logistics {
height: 350px;
overflow-y: scroll;
}
.hidden-input { .hidden-input {
height: 0; height: 0;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册