对接订单列表接口
This commit is contained in:
@@ -1,25 +1,120 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useGlobal = defineStore({
|
||||
id: "global",
|
||||
export const useGlobal = defineStore("global", {
|
||||
state: () => ({
|
||||
// 是否监听叫号
|
||||
isCallNumber: true,
|
||||
orderMemberInfo: {},
|
||||
tableInfo: {},
|
||||
orderStatus: [
|
||||
{
|
||||
type: "unpaid",
|
||||
label: "待支付",
|
||||
},
|
||||
{
|
||||
type: "in-production",
|
||||
label: "制作中",
|
||||
},
|
||||
{
|
||||
type: "wait-out",
|
||||
label: "待取餐",
|
||||
},
|
||||
{
|
||||
type: "done",
|
||||
label: "订单完成",
|
||||
},
|
||||
{
|
||||
type: "refunding",
|
||||
label: "申请退单",
|
||||
},
|
||||
{
|
||||
type: "refund",
|
||||
label: "退单",
|
||||
},
|
||||
{
|
||||
type: "part-refund",
|
||||
label: "部分退单",
|
||||
},
|
||||
{
|
||||
type: "cancelled",
|
||||
label: "取消订单",
|
||||
},
|
||||
],
|
||||
orderType: [
|
||||
{
|
||||
type: "cash",
|
||||
label: "收银",
|
||||
},
|
||||
{
|
||||
type: "miniapp",
|
||||
label: "小程序",
|
||||
},
|
||||
],
|
||||
platformType: [
|
||||
{
|
||||
type: "WX",
|
||||
label: "微信小程序",
|
||||
},
|
||||
{
|
||||
type: "ALI",
|
||||
label: "支付宝小程序",
|
||||
},
|
||||
{
|
||||
type: "PC",
|
||||
label: "收银机客户端",
|
||||
},
|
||||
{
|
||||
type: "APC",
|
||||
label: "PC管理端",
|
||||
},
|
||||
{
|
||||
type: "APP",
|
||||
label: "APP管理端",
|
||||
},
|
||||
],
|
||||
dineMode: [
|
||||
{
|
||||
type: "dine-in",
|
||||
label: "堂食",
|
||||
},
|
||||
{
|
||||
type: "take-out",
|
||||
label: "外带",
|
||||
},
|
||||
{
|
||||
type: "take-away",
|
||||
label: "外卖",
|
||||
},
|
||||
],
|
||||
payType: [
|
||||
{
|
||||
type: "main-scan",
|
||||
label: "主扫",
|
||||
},
|
||||
{
|
||||
type: "back-scan",
|
||||
label: "被扫",
|
||||
},
|
||||
{
|
||||
type: "wechat-mini",
|
||||
label: "微信小程序",
|
||||
},
|
||||
{
|
||||
type: "alipay-mini",
|
||||
label: "支付宝小程序",
|
||||
},
|
||||
{
|
||||
type: "vip-pay",
|
||||
label: "会员支付",
|
||||
},
|
||||
{
|
||||
type: "cash-pay",
|
||||
label: "现金支付",
|
||||
},
|
||||
],
|
||||
}),
|
||||
actions: {
|
||||
// 更新状态
|
||||
updateData(state) {
|
||||
this.isCallNumber = state;
|
||||
},
|
||||
// 设置订单会员信息
|
||||
setOrderMember(obj) {
|
||||
this.orderMemberInfo = obj;
|
||||
},
|
||||
// 设置订单台桌信息
|
||||
setOrderTable(obj) {
|
||||
this.tableInfo = obj;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user