cashier_app/commons/utils/dict.js

261 lines
3.6 KiB
JavaScript

export default {
orderStatus: [{
label: "待支付",
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"
},
],
orderType: [{
label: "收银",
type: "cash"
},
{
label: "小程序",
type: "miniapp"
},
],
dineMode: [{
label: "堂食",
type: "dine-in"
},
{
label: "外带",
type: "take-out"
},
{
label: "外卖",
type: "take-away"
},
],
payType: [{
label: "主扫",
type: "main_scan"
},
{
label: "被扫",
type: "back_scan"
},
{
label: "微信小程序",
type: "wechat_mini"
},
{
label: "支付宝小程序",
type: "alipay_mini"
},
{
label: "会员支付",
type: "vip_pay"
},
{
label: "现金支付",
type: "cash_pay"
},
{
label: "挂账支付",
type: "credit_pay"
},
],
bizCodes: [{
label: "现金充值",
type: "cashIn"
},
{
label: "微信小程序充值",
type: "wechatIn"
},
{
label: "支付宝小程序充值",
type: "alipayIn"
},
{
label: "充值奖励",
type: "awardIn"
},
{
label: "充值退款",
type: "rechargeRefund"
},
{
label: "订单消费",
type: "orderPay"
},
{
label: "订单退款",
type: "orderRefund"
},
{
label: "管理员充值",
type: "adminIn"
},
{
label: "管理员消费",
type: "adminOut"
},
],
platformType: [{
label: '微信小程序',
type: 'WX'
},
{
label: '支付宝小程序',
type: 'ALI'
},
{
label: '收银机客户端',
type: 'PC'
},
{
label: 'PC管理端',
type: 'WEB'
},
{
label: 'APP管理端',
type: 'APP'
},
{
label: '收款码',
type: 'H5'
},
],
tableStatus: {
unbound: {
label: "未绑定",
type: "#909090"
},
idle: {
label: "空闲",
type: "#3F9EFF"
},
ordering: {
label: "点餐中",
type: "#46AEA4"
},
unsettled: {
label: "未结账",
type: "#DD3F41"
},
paying: {
label: "支付中",
type: "#909090"
},
settled: {
label: "待清台",
type: "#FF9500"
},
closed: {
label: "关台",
type: "#DDDDDD"
},
subscribe: {
label: "预定",
type: "#58B22C"
},
},
invoicingType: [{
label: '全部',
type: ''
},
{
label: '手动入库',
type: 'manual-in'
},
{
label: '手动出库',
type: 'manual-out'
},
{
label: '盘盈入库',
type: 'win-in'
},
{
label: '盘亏出库',
type: 'loss-out'
},
{
label: '订单退款入库',
type: 'other-out'
},
{
label: '订单消费出库',
type: 'order-out'
},
{
label: '损耗出库',
type: 'damage-out'
},
],
invoicingType: [{
label: '全部',
type: ''
},
{
label: '手动入库',
type: 'manual-in'
},
{
label: '手动出库',
type: 'manual-out'
},
{
label: '盘盈入库',
type: 'win-in'
},
{
label: '盘亏出库',
type: 'loss-out'
},
{
label: '订单退款入库',
type: 'other-out'
},
{
label: '订单消费出库',
type: 'order-out'
},
{
label: '损耗出库',
type: 'damage-out'
},
],
refundType: [{
label: '现金退款',
type: 'cash'
},
{
label: '原路退回',
type: 'payBack'
},
],
getDiceName(val, key) {
let item = this[key].find(v => v.type == val)
return item ? item.label : ''
}
}