feat: 代客下单优惠券更新,挂账更新

This commit is contained in:
2025-03-06 11:27:01 +08:00
parent ed9a3335c8
commit dda4db24e0
22 changed files with 1219 additions and 300 deletions

52
src/api/order/credit.ts Normal file
View File

@@ -0,0 +1,52 @@
import request from "@/utils/request";
import { Order_BaseUrl } from "@/api/config";
const baseURL = Order_BaseUrl + "/admin/order/credit/buyer";
const Api = {
getList(params: any) {
return request<any, any>({
url: `${baseURL}/page`,
method: "get",
params
});
},
get(params: any) {
return request<any, any>({
url: `${baseURL}`,
method: "get",
params
});
},
add(data: any) {
return request<any, any>({
url: `${baseURL}`,
method: "post",
data
});
},
edit(data: any) {
return request<any, any>({
url: `${baseURL}`,
method: "put",
data
});
},
delete(id: string | number) {
return request<any, any>({
url: `${baseURL}/` + id,
method: "delete",
});
},
// 还款
repayment(data: any) {
return request<any, any>({
url: `${baseURL}/repayment`,
method: "post",
data
});
},
};
export default Api;