2023-06-06 11:12:07 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
2023-08-18 11:14:39 +00:00
|
|
|
export function getAfterSale(id) {
|
|
|
|
return request.get("app-api/trade/after-sale/get", {
|
|
|
|
id
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-08-19 08:04:25 +00:00
|
|
|
export function getApplyingAfterSaleCount() {
|
|
|
|
return request.get("app-api/trade/after-sale/get-applying-count");
|
|
|
|
}
|
|
|
|
|
2023-06-06 11:12:07 +00:00
|
|
|
export function getAfterSalePage(data) {
|
|
|
|
return request.get("app-api/trade/after-sale/page", data);
|
|
|
|
}
|
2023-08-17 12:31:56 +00:00
|
|
|
|
2023-08-17 14:33:51 +00:00
|
|
|
export function createAfterSale(data) {
|
|
|
|
return request.post("app-api/trade/after-sale/create", data);
|
|
|
|
}
|
2023-08-18 11:14:39 +00:00
|
|
|
|
|
|
|
export function cancelAfterSale(id) {
|
|
|
|
return request.delete("app-api/trade/after-sale/cancel?id=" + id);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function deliveryAfterSale(data) {
|
|
|
|
return request.put("app-api/trade/after-sale/delivery", data);
|
|
|
|
}
|