acdr-ui/dist/dev/mp-weixin/modules/mall/sheep/api/trade/afterSale.js

63 lines
1.4 KiB
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
2024-10-01 09:15:35 +08:00
const modules_mall_sheep_request_index = require("../../request/index.js");
2024-09-19 07:20:14 +08:00
const AfterSaleApi = {
// 获得售后分页
getAfterSalePage: (params) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: `/trade/after-sale/page`,
method: "GET",
params,
custom: {
showLoading: false
}
});
},
// 创建售后
createAfterSale: (data) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: `/trade/after-sale/create`,
method: "POST",
data
});
},
// 获得售后
getAfterSale: (id) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: `/trade/after-sale/get`,
method: "GET",
params: {
id
}
});
},
// 取消售后
cancelAfterSale: (id) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: `/trade/after-sale/cancel`,
method: "DELETE",
params: {
id
}
});
},
// 获得售后日志列表
getAfterSaleLogList: (afterSaleId) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: `/trade/after-sale-log/list`,
method: "GET",
params: {
afterSaleId
}
});
},
// 退回货物
deliveryAfterSale: (data) => {
2024-10-01 09:15:35 +08:00
return modules_mall_sheep_request_index.request({
2024-09-19 07:20:14 +08:00
url: `/trade/after-sale/delivery`,
method: "PUT",
data
});
}
};
exports.AfterSaleApi = AfterSaleApi;