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

订单详情storeType取值修改

上级 86834059
...@@ -151,19 +151,19 @@ ...@@ -151,19 +151,19 @@
} }
}, },
created() { created() {
this.orderId = this.$route.query.id; const {id, storeId, storeType} = this.$route.query;
this.storeId = this.$route.query.storeId || 0; this.orderId = id;
this.storeId = storeId;
this.storeType = storeType;
this.jumPathThird = `/order-manage?storeId=${this.storeId}`; this.jumPathThird = `/order-manage?storeId=${this.storeId}`;
this.init(); this.init();
}, },
methods: { methods: {
init() { init() {
queryOrderDetail(this.orderId).then(res => { queryOrderDetail(this.orderId).then(res => {
console.log('获取订单详情',res);
if (res.code == '000000') { if (res.code == '000000') {
const { goodsInfoDtoList } = res.data; const { goodsInfoDtoList } = res.data;
this.orderDetailData = {...res.data}; this.orderDetailData = {...res.data};
this.storeType = res.data.storeType;
this.showStatus = res.data.showStatus; this.showStatus = res.data.showStatus;
this.tableData = goodsInfoDtoList; this.tableData = goodsInfoDtoList;
} }
......
...@@ -425,6 +425,7 @@ ...@@ -425,6 +425,7 @@
query:{ query:{
id: row.id, id: row.id,
storeId: this.searchForm.storeId, storeId: this.searchForm.storeId,
storeType: row.storeType,
} }
}) })
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册