You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
642 B
19 lines
642 B
10 months ago
|
import {orderTakeDeliveryApi, refundRevokeApi} from "~/server/orderApi";
|
||
|
import {linkNavigateTo} from "~/utils/util";
|
||
|
|
||
|
export default function useOrderRefund() {
|
||
|
//撤销售后
|
||
|
const onRevokeRefund = (refundOrderNo: string) => {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
feedback.confirm('确定要撤销本次退款申请吗?').then(async () => {
|
||
|
await refundRevokeApi(refundOrderNo).then(async () => {
|
||
|
await feedback.msgSuccess('撤销成功')
|
||
|
return resolve()
|
||
|
})
|
||
|
})
|
||
|
})
|
||
|
}
|
||
|
return{
|
||
|
onRevokeRefund
|
||
|
}
|
||
|
}
|