提交 ad17dc8a 编写于 作者: yi.li's avatar yi.li

订单详情页接口联调

上级 7b07c3ea
...@@ -24,3 +24,13 @@ export const queryStore = (params) => { ...@@ -24,3 +24,13 @@ export const queryStore = (params) => {
description: '查询店铺信息', description: '查询店铺信息',
}) })
}; };
export const queryOrderDetail = (orderId) => {
return fetch({
headers,
url: getBaseUrl(`trade/order/admin/query/${orderId}`),
method: 'get',
// params: params,
description: '查询订单详情',
})
};
\ No newline at end of file
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
<i class="el-icon-truck" style="font-size: 18px"></i> <i class="el-icon-truck" style="font-size: 18px"></i>
<span class="send-status">已发货</span> <span class="send-status">已发货</span>
</p> </p>
<p>收货地址:上海市浦东新区花木路世纪大厦22楼,张三,13273896478</p> <p>收货地址:{{orderDetailData.receiverAddr}}</p>
<p>物流公司:申通快递</p> <p>物流公司:{{orderDetailData.expressName}}</p>
<p>快递单号:14792837492875</p> <p>快递单号:{{orderDetailData.expressNo}}</p>
<p>备注:是是是背部我of我那飞机我饿发窘</p> <p>备注:{{orderDetailData.remark}}</p>
</div> </div>
</el-card> </el-card>
<el-card class="right-card"> <el-card class="right-card">
...@@ -30,25 +30,25 @@ ...@@ -30,25 +30,25 @@
<span>订单信息</span> <span>订单信息</span>
</div> </div>
<div> <div>
<p>订单编号:12579284048</p> <p>订单编号:{{orderDetailData.orderNo}}</p>
<p>下单时间:2020-03-20 13:36:28</p> <p>下单时间:{{orderDetailData.createdTime}}</p>
<p>支付方式:微信支付</p> <p>支付方式:微信支付</p>
<p>支付时间:2020-03-20 13:36:28</p> <p>支付时间:{{orderDetailData.paymentTime}}</p>
<p>发货时间:2020-03-20 13:36:28</p> <p>发货时间:{{orderDetailData.sendTime}}</p>
<p>成交时间:2020-03-20 13:36:28</p> <p>成交时间:{{orderDetailData.finishTime}}</p>
</div> </div>
</el-card> </el-card>
</div> </div>
<el-table :data="tableData" border class="item-table" style="width: 100%;margin-top: 30px;"> <el-table :data="tableData" border class="item-table" style="width: 100%;margin-top: 30px;">
<el-table-column prop="name" label="商品名称" min-width="100" align="center"></el-table-column> <el-table-column prop="goodsName" label="商品名称" min-width="100" align="center"></el-table-column>
<el-table-column prop="guige" label="规格" min-width="100" align="center"> <el-table-column prop="size" label="规格" min-width="100" align="center">
<!--<template slot-scope="scope">--> <!--<template slot-scope="scope">-->
<!--<span>{{ scope.row.type | dynamicFlagStatus }}</span>--> <!--<span>{{ scope.row.type | dynamicFlagStatus }}</span>-->
<!--</template>--> <!--</template>-->
</el-table-column> </el-table-column>
<el-table-column prop="num" label="数量" min-width="100" align="center"> <el-table-column prop="goodsQuantity" label="数量" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>×{{ scope.row.num }}</span> <span>×{{ scope.row.goodsQuantity }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="price" label="单价" min-width="100" align="center"> <el-table-column prop="price" label="单价" min-width="100" align="center">
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
<script> <script>
// import { openLoading, closeLoading } from "../../utils/utils"; // import { openLoading, closeLoading } from "../../utils/utils";
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import { queryOrderDetail } from '@/utils/shop';
export default { export default {
components: { components: {
BreadCrumb BreadCrumb
...@@ -84,23 +85,42 @@ ...@@ -84,23 +85,42 @@
curmbSecond: '订单管理', curmbSecond: '订单管理',
jumPathThird: '/order-manage', jumPathThird: '/order-manage',
curmbThird: '订单详情', curmbThird: '订单详情',
orderId: 1,
orderStatus: 1, orderStatus: 1,
tableData: [ orderDetailData: {
{ amount: '',//订单实付总金额
name: '阿司匹林', createdTime: '',//下单时间
guige: '50mg*20粒*盒', expressId: '',//物流id
num: '2', expressName: '',//物流公司名称
price: '27', receiverAddr: '',//收货地址
status: 1, expressNo: '',//快递单号
} expressStatus: '',//物流状态
], finishTime: '',//成交时间
orderNo: '',//订单编号
orderStatus: '',//订单状态:1待支付,2支付中,3支付失败,4订单超时,5支付成功,6交易完成,7交易关闭
paymentTime: '',//支付时间
totalCouponFee: '',//优惠券金额
totalPrice: '',//订单总金额
remark: '',//备注
sendTime: '',//发货时间
},
tableData: [],
} }
}, },
created() { created() {
this.init();
}, },
methods: { methods: {
init() {
queryOrderDetail(this.orderId).then(res => {
console.log('获取订单详情',res);
if (res.code == '000000') {
const { goodsInfoDtoList } = res.data;
this.orderDetailData = {...res.data};
this.tableData = goodsInfoDtoList;
}
})
}
}, },
} }
</script> </script>
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<script> <script>
import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import { getRangeList,updateRangeStatus} from "../../utils/yqrange/yqrangeApi"; // import { getRangeList,updateRangeStatus} from "../../utils/yqrange/yqrangeApi";
export default { export default {
components: { components: {
BreadCrumb BreadCrumb
...@@ -125,8 +125,8 @@ ...@@ -125,8 +125,8 @@
} }
}, },
created() { created() {
this.initPrivilege(); // this.initPrivilege();
this.searchList(); // this.searchList();
}, },
methods: { methods: {
initPrivilege(){ initPrivilege(){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册