修改打印机页面,增加叫号管理页面、霸王餐、店铺优惠券

This commit is contained in:
2025-02-22 18:13:19 +08:00
parent 5238df86e5
commit 5a877b550b
32 changed files with 2972 additions and 394 deletions

60
src/api/account/bwc.ts Normal file
View File

@@ -0,0 +1,60 @@
import request from "@/utils/request";
import { Account_BaseUrl } from "@/api/config";
const baseURL = Account_BaseUrl + "/admin/freeDing";
const API = {
getList() {
return request<any>({
url: `${baseURL}`,
method: "get",
});
},
edit(data: editRequest) {
return request({
url: `${baseURL}`,
method: "put",
data: data,
});
},
}
export default API;
/**
* 修改信息
*
* FreeDineConfigEditDTO
*/
export interface editRequest {
/**
* 是否启用
*/
enable?: boolean | null;
/**
* 主键id
*/
id: number | null;
/**
* 充值说明
*/
rechargeDesc?: null | string;
/**
* 满多少可用
*/
rechargeThreshold?: number | null;
/**
* 充值倍数
*/
rechargeTimes?: number | null;
/**
* 使用类型 dine-in店内 takeout 自取 post快递takeaway外卖
*/
useType?: string[] | null;
/**
* 与优惠券同享
*/
withCoupon?: boolean | null;
/**
* 积分同享
*/
withPoints?: boolean | null;
[property: string]: any;
}