提交 37efc899 authored 作者: huaxinzhu's avatar huaxinzhu

售后 接口

上级 04922129
......@@ -91,3 +91,29 @@ export function getASOrderDetail(query) {
})
}
// 售后 同意类操作
export function agreeRefundData(data) {
return request({
url: '/system/retreat/refundAgree',
method: 'post',
data: data
})
}
// 售后 拒绝类 操作
export function refuseRefundData(data) {
return request({
url: '/system/retreat/refundReject',
method: 'post',
data: data
})
}
// 退货退款 地址
export function getASAdressData(query) {
return request({
url: '/local/AfterSalesAddress/list',
method: 'get',
params: query
})
}
......@@ -268,7 +268,7 @@
/** 获取 seller_id*/
this.sellerId = this.$store.state.user.sellerid;
// 获取 订单 状态对应数量
this.getOrderTab()
//this.getOrderTab()
// 订单列表 搜索
this.getListOrder()
//
......@@ -360,19 +360,19 @@
},
/** 获取 订单 状态对应数量 */
getOrderTab() {
getOrderTabData().then(res => {
//console.log("获取订单状态和对应订单数量",res);
if (res.code === 1 && res.data.length > 0) {
// 1 表示 代发货;2 表示 已发货
for (let i = 0; i < res.data.length; i++) {
if (res.data[i].Status === 1) {
this.total1 = res.data[i].Count > 999 ? '999+' : res.data[i].Count;
} else if (res.data[i].Status === 2) {
this.total2 = res.data[i].Count > 999 ? '999+' : res.data[i].Count;
}
}
}
});
// getOrderTabData().then(res => {
// //console.log("获取订单状态和对应订单数量",res);
// if (res.code === 1 && res.data.length > 0) {
// // 1 表示 代发货;2 表示 已发货
// for (let i = 0; i < res.data.length; i++) {
// if (res.data[i].Status === 1) {
// this.total1 = res.data[i].Count > 999 ? '999+' : res.data[i].Count;
// } else if (res.data[i].Status === 2) {
// this.total2 = res.data[i].Count > 999 ? '999+' : res.data[i].Count;
// }
// }
// }
// });
},
// 获取订单列表
getListOrder() {
......@@ -402,6 +402,12 @@
this.total = res.data.count || 0
this.tableDataList = res.data.data
if(this.goodsStatus == 1) {
this.taotal1 = res.data.count;
}else if(this.goodsStatus == 2) {
this.taotal2 = res.data.count;
}
}
})
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论