This commit is contained in:
parent
7f996fbc78
commit
c3db002f2d
|
@ -17,7 +17,7 @@ export const orderDetailApi = (data) => {
|
||||||
|
|
||||||
//重新发起支付
|
//重新发起支付
|
||||||
export const rePaymentApi = (data) => {
|
export const rePaymentApi = (data) => {
|
||||||
return request.post('/order/order/Repayment', data);
|
return request.post('/order/order/pay', data);
|
||||||
}
|
}
|
||||||
|
|
||||||
//订单数量统计
|
//订单数量统计
|
||||||
|
|
|
@ -62,13 +62,25 @@
|
||||||
datas: {
|
datas: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {}
|
default: () => {}
|
||||||
|
},
|
||||||
|
status: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const navTo = () => {
|
const navTo = () => {
|
||||||
uni.navigateTo({
|
console.log(status);
|
||||||
url: `/pagesOrder/detail/detail?type=${props.datas.paid}&id=${props.datas.id}`
|
if (status == 4) {
|
||||||
})
|
console.log(props.datas.id);
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/afterSales/afterSalesOrderDetail?id=" + props.datas.id
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pagesOrder/detail/detail?type=${props.datas.paid}&id=${props.datas.id}`
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const emit = defineEmits(['cancleOrder', 'rePay', 'takeOrder', 'purchaseAgain']);
|
const emit = defineEmits(['cancleOrder', 'rePay', 'takeOrder', 'purchaseAgain']);
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
<modal :show="showTake" title="确认收货" content="请确认您已收到货" @close="showTake=false" @change="confirmReceipt" />
|
<modal :show="showTake" title="确认收货" content="请确认您已收到货" @close="showTake=false" @change="confirmReceipt" />
|
||||||
|
|
||||||
<!-- 退款原因 -->
|
<!-- 退款原因 -->
|
||||||
<up-popup :show="refundShow" closeable round="10" @close="close">
|
<up-popup :show="refundShow" closeable round="10" @close="refundShow = false">
|
||||||
<view class="address-popup">
|
<view class="address-popup">
|
||||||
<view class="head-title">选择商品</view>
|
<view class="head-title">选择商品</view>
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@
|
||||||
if (swiperCurrent.value == 1 && orderList.value[1].length == 0) getOrderList(1, '', 0); //代付款
|
if (swiperCurrent.value == 1 && orderList.value[1].length == 0) getOrderList(1, '', 0); //代付款
|
||||||
if (swiperCurrent.value == 2 && orderList.value[2].length == 0) getOrderList(2, 1, 1); //待核销
|
if (swiperCurrent.value == 2 && orderList.value[2].length == 0) getOrderList(2, 1, 1); //待核销
|
||||||
if (swiperCurrent.value == 3 && orderList.value[3].length == 0) getOrderList(3, 2, 1); //已核销
|
if (swiperCurrent.value == 3 && orderList.value[3].length == 0) getOrderList(3, 2, 1); //已核销
|
||||||
if (swiperCurrent.value == 4 && orderList.value[4].length == 0) getOrderList(2, -1, 1); //退款
|
if (swiperCurrent.value == 4 && orderList.value[4].length == 0) getOrderList(4, -1, 1); //退款
|
||||||
}
|
}
|
||||||
|
|
||||||
// 取消订单
|
// 取消订单
|
||||||
|
@ -163,7 +163,7 @@
|
||||||
showCancel.value = false;
|
showCancel.value = false;
|
||||||
cancelOrderApi({
|
cancelOrderApi({
|
||||||
order_id: cancelId,
|
order_id: cancelId,
|
||||||
value: e.value
|
value: e.name
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '取消成功',
|
title: '取消成功',
|
||||||
|
@ -220,7 +220,7 @@
|
||||||
const applyAfterSales = (item) => {
|
const applyAfterSales = (item) => {
|
||||||
refundShow.value = true;
|
refundShow.value = true;
|
||||||
goodsList.value = item.goods_list;
|
goodsList.value = item.goods_list;
|
||||||
orderId.value = item.order_id;
|
orderId.value = item.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 跳转到申请售后
|
// 跳转到申请售后
|
||||||
|
@ -359,7 +359,7 @@
|
||||||
if (swiperCurrent.value == 1) getOrderList(1, '', 0); //代付款
|
if (swiperCurrent.value == 1) getOrderList(1, '', 0); //代付款
|
||||||
if (swiperCurrent.value == 2) getOrderList(2, 1, 1); //待核销
|
if (swiperCurrent.value == 2) getOrderList(2, 1, 1); //待核销
|
||||||
if (swiperCurrent.value == 3) getOrderList(3, 2, 1); //已核销
|
if (swiperCurrent.value == 3) getOrderList(3, 2, 1); //已核销
|
||||||
if (swiperCurrent.value == 4) getOrderList(2, -1, 1); //退款
|
if (swiperCurrent.value == 4) getOrderList(4, -1, 1); //退款
|
||||||
}
|
}
|
||||||
|
|
||||||
// 搜索
|
// 搜索
|
||||||
|
@ -371,7 +371,7 @@
|
||||||
if (swiperCurrent.value == 1) getOrderList(1, '', 0); //代付款
|
if (swiperCurrent.value == 1) getOrderList(1, '', 0); //代付款
|
||||||
if (swiperCurrent.value == 2) getOrderList(2, 1, 1); //待核销
|
if (swiperCurrent.value == 2) getOrderList(2, 1, 1); //待核销
|
||||||
if (swiperCurrent.value == 3) getOrderList(3, 2, 1); //已核销
|
if (swiperCurrent.value == 3) getOrderList(3, 2, 1); //已核销
|
||||||
if (swiperCurrent.value == 4) getOrderList(2, -1, 1); //退款
|
if (swiperCurrent.value == 4) getOrderList(4, -1, 1); //退款
|
||||||
}
|
}
|
||||||
|
|
||||||
let back = 0;
|
let back = 0;
|
||||||
|
@ -391,7 +391,7 @@
|
||||||
getOrderList(1, '', 0); //代付款
|
getOrderList(1, '', 0); //代付款
|
||||||
getOrderList(2, 1, 1); //待核销
|
getOrderList(2, 1, 1); //待核销
|
||||||
getOrderList(3, 2, 1); //已核销
|
getOrderList(3, 2, 1); //已核销
|
||||||
getOrderList(2, -1, 1); //退款
|
getOrderList(4, -1, 1); //退款
|
||||||
}
|
}
|
||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
|
|
Loading…
Reference in New Issue