diff --git a/commons/utils/dict.js b/commons/utils/dict.js
index c0c2995..1a02dc7 100644
--- a/commons/utils/dict.js
+++ b/commons/utils/dict.js
@@ -1,87 +1,260 @@
-
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" },
+ 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" },
+ 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' },
+ 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: {
- idle: { label: "空闲", type: "#3F9EFF" },
- using: { label: "使用中", type: "#fa5555" },
- subscribe: { label: "预定", type: "rgb(34, 191, 100)" },
- closed: { label: "关台", type: "rgb(221,221,221)" },
- opening: { label: "开台中", type: "#E6A23C" },
- cleaning: { label: "待清台", type: "#FAAD14" },
- paying: { label: "结算中", type: "#E6A23C" },
- unbind: { label: "未绑定", type: "rgb(221,221,221)" }
+ 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'
+ },
],
- 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' },
+ refundType: [{
+ label: '现金退款',
+ type: 'cash'
+ },
+ {
+ label: '原路退回',
+ type: 'payBack'
+ },
],
- getDiceName(val,key){
+ getDiceName(val, key) {
let item = this[key].find(v => v.type == val)
return item ? item.label : ''
}
diff --git a/pageTable/index/components/table-item.vue b/pageTable/index/components/table-item.vue
index b43b414..4b07b46 100644
--- a/pageTable/index/components/table-item.vue
+++ b/pageTable/index/components/table-item.vue
@@ -1,194 +1,184 @@
-
+
- {{data.name}}
+ {{ data.name }}
- {{areaMap[data.areaId]||'' }}
-
- {{returnStutasText(data.status)}}
+ {{ areaMap[data.areaId] || '' }}
+
+ {{ returnStutasText(data.status) }}
-
-
-
- {{returnStutasText(data.status)}}~
-
+
+ {{ returnStutasText(data.status) }}~
-
-
+
+
- 已点{{data.productNum||0}}件
+
+ 已点
+ {{ data.productNum || 0 }}件
+
+
+ 金额
+ {{ data.totalAmount || 0 }} 元
+
+
+ 待结
+ {{ data.totalAmount || 0 }} 元
- 金额{{data.totalAmount||0}}
- 元
- 待结{{data.totalAmount||0}}
- 元
-
+
开台时间
- {{data.useTime}}
+ {{ data.useTime }}
-
-
- 绑定码牌
-
+
+ 绑定码牌
-
-
- 选择
-
+
+ 选择
-
-
- 清台
-
+
+ 清台
-
- 选择
-
+ 选择
-
-
\ No newline at end of file
+
+ .my-bg-main {
+ padding: 24rpx 28rpx;
+
+ .tag {
+ background-color: rgba(255, 255, 255, 0.7);
+ font-size: 24rpx;
+ color: $my-main-color;
+ border-radius: 8rpx;
+ padding: 2rpx 10rpx;
+ }
+ }
+
+ &.using {
+ .tag {
+ color: rgb(250, 85, 85);
+ }
+ }
+}
+
diff --git a/pageTable/index/index.vue b/pageTable/index/index.vue
index ccc01a7..dda36f5 100644
--- a/pageTable/index/index.vue
+++ b/pageTable/index/index.vue
@@ -1,28 +1,29 @@
-
-
+
-
-
+
- {{pageData.statusName }}
+ {{ pageData.statusName }}
-
+ @confirm="searchConfirm"
+ >
-
+
@@ -30,423 +31,427 @@
-
-
+
+
- {{item.name}}
- 0/12
+ 全部
+
+
+
+
+
+ {{ item.name }}
+
-
-
+
+
-
+
-
+
-
-
+
+
-
-
+
- 桌号:{{actionSheet.title}}
+ 桌号:{{ actionSheet.title }}
-
+
\ No newline at end of file
+.list {
+ // margin-top: 52px;
+}
+
diff --git a/pageTable/index/tableStatus.js b/pageTable/index/tableStatus.js
new file mode 100644
index 0000000..0908a19
--- /dev/null
+++ b/pageTable/index/tableStatus.js
@@ -0,0 +1,41 @@
+export default [{
+ label: "未绑定",
+ type: "unbound",
+ color: "#909090",
+ },
+ {
+ label: "空闲",
+ type: "idle",
+ color: "#3F9EFF",
+ },
+ {
+ label: "点餐中",
+ type: "ordering",
+ color: "#46AEA4",
+ },
+ {
+ label: "未结账",
+ type: "unsettled",
+ color: "#DD3F41",
+ },
+ {
+ label: "支付中",
+ type: "paying",
+ color: "#909090",
+ },
+ {
+ label: "待清台",
+ type: "settled ",
+ color: "#FF9500",
+ },
+ {
+ label: "关台",
+ type: "closed",
+ color: "#DDDDDD",
+ },
+ {
+ label: "预定",
+ type: "subscribe",
+ color: "#58B22C",
+ },
+];
\ No newline at end of file
diff --git a/pagesCreateOrder/confirm-order/confirm-order.vue b/pagesCreateOrder/confirm-order/confirm-order.vue
index 36553c9..85d8bb9 100644
--- a/pagesCreateOrder/confirm-order/confirm-order.vue
+++ b/pagesCreateOrder/confirm-order/confirm-order.vue
@@ -1,1073 +1,1066 @@
-
+
桌位号
- {{pageData.table.name||''}}
+ {{ pageData.table.name || '' }}
选择用户
-
- 选择用户
-
+
+ 选择用户
+
-
+
- {{pageData.user.nickName}}
+ {{ pageData.user.nickName }}
- 余额:{{pageData.user.amount}}
+
+ 余额:
+ {{ pageData.user.amount }}
+
+
+ 积分:
+ {{ pageData.user.accountPoints }}
- 积分:{{pageData.user.accountPoints}}
就餐类型
-
+
-
-
-
+
+
-
-
+
-
+
- {{pageData.user.nickName}}
- {{pageData.user.isVip?'会员':'' }}
+ {{ pageData.user.nickName }}
+ {{ pageData.user.isVip ? '会员' : '' }}
余额
- {{pageData.user.amount}}
+ {{ pageData.user.amount }}
积分
- {{pageData.user.accountPoints}}
+ {{ pageData.user.accountPoints }}
订单数量
- {{pageData.user.orderNumber||0}}
+ {{ pageData.user.orderNumber || 0 }}
-
+
用餐人数(人)
-
-
- {{userNumbers.defaultCateIndex*1+1+'人'}}
+
+
+ {{ userNumbers.defaultCateIndex * 1 + 1 + '人' }}
-
-
-
+
订单备注
-
+
-
共
- {{goods.list.length}}
+ {{ goods.list.length }}
份菜品
-
-
+
+
-
- 临时菜
-
+ 临时菜
-
-
-
+
+
-
-
-
+
+
-
+
+ size="small"
+ text="打包"
+ inverted
+ type="success"
+ />
-
+
+ size="small"
+ text="打印"
+ inverted
+ type="success"
+ />
- {{item.name}}
+ {{ item.name }}
- {{item.specInfo||' '}}
+ {{ item.specInfo || ' ' }}
-
+
- ¥{{$utils.toFixed(item.lowPrice*item.number,item) }}
-
+ ¥{{ $utils.toFixed(item.lowPrice * item.number, item) }}
+
¥0
-
- ¥{{$utils.toFixed(item.lowPrice*item.number,item) }}
-
- ¥{{$utils.toFixed(item.discount_sale_amount*item.number,item) }}
+
+ ¥{{ $utils.toFixed(item.lowPrice * item.number, item) }}
+
+ ¥{{ $utils.toFixed(item.discount_sale_amount * item.number, item) }}
-
- ¥{{$utils.toFixed(item.lowPrice*item.number,item) }}
-
- ¥{{$utils.toFixed(item.lowMemberPrice*item.number,item) }}
+
+ ¥{{ $utils.toFixed(item.lowPrice * item.number, item) }}
+
+ ¥{{ $utils.toFixed(item.lowMemberPrice * item.number, item) }}
¥
- {{$utils.toFixed(item.lowPrice*item.number,item) }}
+ {{ $utils.toFixed(item.lowPrice * item.number, item) }}
-
- ×{{item.number}}
+ ×{{ item.number }}
- {{item.remark}}
+ {{ item.remark }}
-
-
-
-
+
+
+
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
桌位费
- ¥{{$seatFee.totalAmount.toFixed(2)||'0.00'}}
+ ¥{{ $seatFee.totalAmount.toFixed(2) || '0.00' }}
-
-
+
+
打包费
- ¥{{$packFee||'0.00'}}
+ ¥{{ $packFee || '0.00' }}
-
-
-
+
优惠金额
- ¥{{$utils.toFixed(youhui) }}
+ ¥{{ $utils.toFixed(youhui) }}
-
+
实收金额
- ¥{{allPrice }}
+ ¥{{ allPrice }}
-
-
-
+
-
-
-
+
- {{(pageData.shopInfo.registerType=='before'||pageData.eatTypes.active=='take-out')?'结算': '下单'}}
+ {{ pageData.shopInfo.registerType == 'before' || pageData.eatTypes.active == 'take-out' ? '结算' : '下单' }}
-
-
+
-
-
\ No newline at end of file
+.hover-class {
+ background-color: #e5e5e5;
+}
+