优化台桌下单问题
This commit is contained in:
parent
773a2cf2c9
commit
8935b9d2f2
|
|
@ -2,10 +2,10 @@
|
||||||
ENV = development
|
ENV = development
|
||||||
|
|
||||||
# 正式ws
|
# 正式ws
|
||||||
# VITE_API_WSS = 'wss://cashier.sxczgkj.cn/client'
|
VITE_API_WSS = 'wss://cashier.sxczgkj.cn/client'
|
||||||
|
|
||||||
#测试ws
|
#测试ws
|
||||||
VITE_API_WSS = 'wss://wxcashiertest.sxczgkj.cn/client'
|
# VITE_API_WSS = 'wss://wxcashiertest.sxczgkj.cn/client'
|
||||||
|
|
||||||
# 阿伟本地ws
|
# 阿伟本地ws
|
||||||
# VITE_API_WSS = 'ws://192.168.2.17:9998/client'
|
# VITE_API_WSS = 'ws://192.168.2.17:9998/client'
|
||||||
|
|
@ -29,7 +29,7 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
||||||
# VITE_API_URL = 'http://192.168.1.34:10589/cashier-client'
|
# VITE_API_URL = 'http://192.168.1.34:10589/cashier-client'
|
||||||
|
|
||||||
# 测试
|
# 测试
|
||||||
VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
# VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
||||||
|
|
||||||
# 预发布
|
# 预发布
|
||||||
# VITE_API_URL = 'https://pre-cashierclient.sxczgkj.cn/cashier-client'
|
# VITE_API_URL = 'https://pre-cashierclient.sxczgkj.cn/cashier-client'
|
||||||
|
|
@ -37,4 +37,4 @@ VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
||||||
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
||||||
|
|
||||||
# 正式
|
# 正式
|
||||||
# VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client'
|
VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client'
|
||||||
|
|
@ -20,9 +20,10 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api'
|
||||||
# VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
# VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client'
|
||||||
|
|
||||||
# 预发布
|
# 预发布
|
||||||
VITE_API_URL = 'https://pre-cashierclient.sxczgkj.cn/cashier-client'
|
# VITE_API_URL = 'https://pre-cashierclient.sxczgkj.cn/cashier-client'
|
||||||
|
|
||||||
|
# 张松本地
|
||||||
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
# VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client'
|
||||||
|
|
||||||
# 正式
|
# 正式
|
||||||
# VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client'
|
VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client'
|
||||||
15849
dist-electron/main.js
15849
dist-electron/main.js
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "vite-electron",
|
"name": "vite-electron",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.4.23",
|
"version": "1.4.25",
|
||||||
"main": "dist-electron/main.js",
|
"main": "dist-electron/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "chcp 65001 && vite",
|
"dev": "chcp 65001 && vite",
|
||||||
|
|
|
||||||
|
|
@ -38,3 +38,16 @@ export function clearTable(data) {
|
||||||
data,
|
data,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 选择用餐人数
|
||||||
|
* @param {*} params
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export function orderChoseCount(data) {
|
||||||
|
return request({
|
||||||
|
method: "put",
|
||||||
|
url: "/order/choseCount",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,7 @@ import { clearNoNum, formatDecimal } from '@/utils'
|
||||||
import scanModal from '@/components/payCard/scanModal.vue'
|
import scanModal from '@/components/payCard/scanModal.vue'
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import { useGlobal } from '@/store/global.js'
|
import { useGlobal } from '@/store/global.js'
|
||||||
|
import { staffPermission } from '@/api/user.js'
|
||||||
|
|
||||||
const global = useGlobal()
|
const global = useGlobal()
|
||||||
|
|
||||||
|
|
@ -148,26 +149,33 @@ function scanCodeSuccess() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 切换支付类型
|
// 切换支付类型
|
||||||
function payTypeChange(index, item) {
|
async function payTypeChange(index, item) {
|
||||||
if (item.disabled) return
|
try {
|
||||||
payActive.value = index
|
await staffPermission('yun_xu_shou_kuan')
|
||||||
payType.value = item.payType
|
if (item.disabled) return
|
||||||
if (item.payType == 'scanCode') {
|
payActive.value = index
|
||||||
scanModalRef.value.show()
|
payType.value = item.payType
|
||||||
}
|
if (item.payType == 'scanCode') {
|
||||||
if (item.payType == 'vipPay') {
|
scanModalRef.value.show()
|
||||||
showDialog.value = true
|
}
|
||||||
getMemberList()
|
if (item.payType == 'vipPay') {
|
||||||
}
|
showDialog.value = true
|
||||||
if (payList.value[payActive.value].payType == 'deposit' && !global.orderMemberInfo.id) {
|
getMemberList()
|
||||||
scanModalRef.value.show()
|
}
|
||||||
|
if (payList.value[payActive.value].payType == 'deposit' && !global.orderMemberInfo.id) {
|
||||||
|
scanModalRef.value.show()
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 结算支付
|
// 结算支付
|
||||||
async function confirmOrder() {
|
async function confirmOrder() {
|
||||||
if (payLoading.value) return
|
|
||||||
try {
|
try {
|
||||||
|
await staffPermission('yun_xu_shou_kuan')
|
||||||
|
|
||||||
|
if (payLoading.value) return
|
||||||
if (payList.value[payActive.value].payType == 'scanCode') {
|
if (payList.value[payActive.value].payType == 'scanCode') {
|
||||||
scanModalRef.value.show()
|
scanModalRef.value.show()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,8 @@ import skuModal from '@/components/skuModal.vue'
|
||||||
import { useShop } from '@/store/shop.js'
|
import { useShop } from '@/store/shop.js'
|
||||||
|
|
||||||
const shopStore = useShop()
|
const shopStore = useShop()
|
||||||
|
console.log('---------')
|
||||||
|
console.log(shopStore)
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
item: {
|
item: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<div class="number" @click="takeFoodCodeRef.show()">
|
<div class="number" @click="takeFoodCodeRef.show()">
|
||||||
<el-text class="t">{{ masterId }}</el-text>
|
<el-text class="t">{{ masterId }}</el-text>
|
||||||
</div>
|
</div>
|
||||||
<div class="select_user" @click="fastCashierRef.show()"
|
<div class="select_user" @click="quickCashHandle"
|
||||||
v-if="!global.orderMemberInfo.telephone && !global.tableInfo.id">
|
v-if="!global.orderMemberInfo.telephone && !global.tableInfo.id">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<el-icon class="icon">
|
<el-icon class="icon">
|
||||||
|
|
@ -32,7 +32,10 @@
|
||||||
<div class="t" v-if="global.orderMemberInfo.telephone">
|
<div class="t" v-if="global.orderMemberInfo.telephone">
|
||||||
会员:{{ global.orderMemberInfo.telephone }}
|
会员:{{ global.orderMemberInfo.telephone }}
|
||||||
</div>
|
</div>
|
||||||
<div class="t" v-if="global.tableInfo.id">台桌:{{ global.tableInfo.name }}</div>
|
<div class="t" v-if="global.tableInfo.id">
|
||||||
|
台桌:{{ global.tableInfo.name }}
|
||||||
|
<span v-if="global.tableInfo.num">/{{ global.tableInfo.num }}人</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-icon class="arrow">
|
<el-icon class="arrow">
|
||||||
|
|
@ -107,7 +110,8 @@
|
||||||
<el-button icon="Edit" @click="remarkRef.show()"></el-button>
|
<el-button icon="Edit" @click="remarkRef.show()"></el-button>
|
||||||
<div class="button">
|
<div class="button">
|
||||||
<div class="btn" v-if="shopStore.info.registerType == 'restaurant'">
|
<div class="btn" v-if="shopStore.info.registerType == 'restaurant'">
|
||||||
<el-button type="primary" style="width: 100%;" :disabled="!cartList.length" @click="createOrderHandle(0)">
|
<el-button type="primary" style="width: 100%;" :disabled="!cartList.length" v-loading="createOrderLoading"
|
||||||
|
@click="createOrderHandle(0)">
|
||||||
<template v-if="!createOrderLoading">
|
<template v-if="!createOrderLoading">
|
||||||
仅下单</template>
|
仅下单</template>
|
||||||
<template v-else>下单中...</template>
|
<template v-else>下单中...</template>
|
||||||
|
|
@ -182,6 +186,8 @@ import {
|
||||||
createOrder,
|
createOrder,
|
||||||
} from "@/api/product";
|
} from "@/api/product";
|
||||||
|
|
||||||
|
import { orderChoseCount } from '@/api/table.js'
|
||||||
|
|
||||||
import { queryShopInfo, staffPermission } from '@/api/user.js'
|
import { queryShopInfo, staffPermission } from '@/api/user.js'
|
||||||
|
|
||||||
// 商品列表
|
// 商品列表
|
||||||
|
|
@ -224,6 +230,16 @@ const masterId = ref("");
|
||||||
// 挂单量
|
// 挂单量
|
||||||
const pendingCartNum = ref(0);
|
const pendingCartNum = ref(0);
|
||||||
|
|
||||||
|
// 快捷收银
|
||||||
|
async function quickCashHandle() {
|
||||||
|
try {
|
||||||
|
await staffPermission('yun_xu_shou_kuan')
|
||||||
|
fastCashierRef.value.show()
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 生成订单
|
// 生成订单
|
||||||
async function createOrderHandle(t = 0) {
|
async function createOrderHandle(t = 0) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -245,6 +261,7 @@ async function createOrderHandle(t = 0) {
|
||||||
|
|
||||||
if (shopStore.info.registerType == 'restaurant' && t == 0) {
|
if (shopStore.info.registerType == 'restaurant' && t == 0) {
|
||||||
ElMessage.success('下单成功')
|
ElMessage.success('下单成功')
|
||||||
|
queryCartAjax()
|
||||||
} else {
|
} else {
|
||||||
settleAccountRef.value.show();
|
settleAccountRef.value.show();
|
||||||
}
|
}
|
||||||
|
|
@ -335,6 +352,7 @@ async function delCartHandle(params) {
|
||||||
cartLoading.value = false;
|
cartLoading.value = false;
|
||||||
cartListActive.value = 0;
|
cartListActive.value = 0;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
cartLoading.value = false;
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -418,8 +436,7 @@ async function queryCartAjax() {
|
||||||
masterId: masterId.value,
|
masterId: masterId.value,
|
||||||
shopId: store.userInfo.shopId,
|
shopId: store.userInfo.shopId,
|
||||||
tableId: global.tableInfo.qrcode || '',
|
tableId: global.tableInfo.qrcode || '',
|
||||||
vipUserId: global.orderMemberInfo.id || '',
|
vipUserId: global.orderMemberInfo.id || ''
|
||||||
num: ''
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!res.list.length) {
|
if (!res.list.length) {
|
||||||
|
|
@ -465,8 +482,23 @@ async function queryCartAjax() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 增加点餐人数
|
||||||
|
async function addTableNum() {
|
||||||
|
try {
|
||||||
|
const res = await orderChoseCount({
|
||||||
|
masterId: masterId.value,
|
||||||
|
shopId: store.userInfo.shopId,
|
||||||
|
tableId: global.tableInfo.qrcode,
|
||||||
|
num: global.tableInfo.num
|
||||||
|
})
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 获取取餐码
|
// 获取取餐码
|
||||||
async function createCodeAjax(type = "0") {
|
async function createCodeAjax(type = "0") {
|
||||||
|
console.log(1111)
|
||||||
try {
|
try {
|
||||||
// if (!process.env.VITE_DEV_SERVER_URL) {
|
// if (!process.env.VITE_DEV_SERVER_URL) {
|
||||||
// masterId.value = '#20'
|
// masterId.value = '#20'
|
||||||
|
|
@ -486,7 +518,11 @@ async function createCodeAjax(type = "0") {
|
||||||
});
|
});
|
||||||
masterId.value = res.code;
|
masterId.value = res.code;
|
||||||
}
|
}
|
||||||
queryCartAjax();
|
|
||||||
|
if (global.tableInfo.num) {
|
||||||
|
await addTableNum()
|
||||||
|
}
|
||||||
|
await queryCartAjax();
|
||||||
|
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
// 结算订单 清楚商品所有红点
|
// 结算订单 清楚商品所有红点
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="demo_tabs_div">
|
<div class="demo_tabs_div">
|
||||||
<el-input v-model="tableData.phone" placeholder="请输入手机号" @input="inputChange" clearable @focus="
|
<el-input v-model="tableData.phone" placeholder="请输入手机号" @input="inputChange" clearable @focus="
|
||||||
global.updateData(false)" @blur="global.updateData(true)" />
|
global.updateData(false)" @blur="global.updateData(true)" />
|
||||||
<el-button style="margin-left: 10px;" type="primary" @click="memberaddshow = true">添加</el-button>
|
<el-button style="margin-left: 10px;" type="primary" @click="addMemberHandle">添加</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="tableData.list" style="width: 100%;margin-top: 10px;height:80%;"
|
<el-table :data="tableData.list" style="width: 100%;margin-top: 10px;height:80%;"
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
<div class="orderbox_right_button" v-if="props.membershow == '0'">
|
<div class="orderbox_right_button" v-if="props.membershow == '0'">
|
||||||
<!-- <el-button style="width: 100%;" @click="toHome">创建订单</el-button> -->
|
<!-- <el-button style="width: 100%;" @click="toHome">创建订单</el-button> -->
|
||||||
<!-- <el-button style="width: 60%;" type="primary" @click="recharge = true">账户充值</el-button> -->
|
<!-- <el-button style="width: 60%;" type="primary" @click="recharge = true">账户充值</el-button> -->
|
||||||
<el-button style="width: 100%;" type="primary" @click="userChargeRef.show()">账户充值</el-button>
|
<el-button style="width: 100%;" type="primary" @click="menberAddNnum">账户充值</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="orderbox_right_button" v-if="props.membershow == '1'">
|
<div class="orderbox_right_button" v-if="props.membershow == '1'">
|
||||||
<router-link to="/" style="width: 35%;">
|
<router-link to="/" style="width: 35%;">
|
||||||
|
|
@ -176,6 +176,7 @@ import payCard from '@/components/payCard/payCard.vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import useStorage from '@/utils/useStorage'
|
import useStorage from '@/utils/useStorage'
|
||||||
import userCharge from './components/userCharge.vue'
|
import userCharge from './components/userCharge.vue'
|
||||||
|
import { staffPermission } from '@/api/user.js'
|
||||||
|
|
||||||
import { useGlobal } from '@/store/global.js'
|
import { useGlobal } from '@/store/global.js'
|
||||||
const global = useGlobal()
|
const global = useGlobal()
|
||||||
|
|
@ -238,6 +239,26 @@ const payCarddialogVisible = ref(false)
|
||||||
|
|
||||||
const orderId = ref('')
|
const orderId = ref('')
|
||||||
|
|
||||||
|
// 添加会员
|
||||||
|
async function addMemberHandle() {
|
||||||
|
try {
|
||||||
|
await staffPermission('yun_xu_guan_li_hui_yuan_xin_xi')
|
||||||
|
memberaddshow.value = true
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 账户充值
|
||||||
|
async function menberAddNnum() {
|
||||||
|
try {
|
||||||
|
await staffPermission('yun_xu_xiu_gai_hui_yuan_yu_e')
|
||||||
|
userChargeRef.value.show()
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 退款成功
|
// 退款成功
|
||||||
function refundSuccess() {
|
function refundSuccess() {
|
||||||
asyncqueryMembermember()
|
asyncqueryMembermember()
|
||||||
|
|
|
||||||
|
|
@ -60,12 +60,12 @@
|
||||||
<div class="people_num_wrap" v-show="showPeopleNum">
|
<div class="people_num_wrap" v-show="showPeopleNum">
|
||||||
<div class="title">应选择就餐人数</div>
|
<div class="title">应选择就餐人数</div>
|
||||||
<div class="num_btns">
|
<div class="num_btns">
|
||||||
<div class="item" :class="{ active: peopleNum == item }" v-for="item in 8"
|
<div class="item" :class="{ active: peopleNum == item }"
|
||||||
@click="peopleNum = item">{{ item }}人</div>
|
v-for="item in props.tableInfo.maxCapacity" @click="peopleNum = item">{{ item }}人</div>
|
||||||
<div class="item" :class="{ active: peopleNum == 'custom' }">
|
<!-- <div class="item" :class="{ active: peopleNum == 'custom' }">
|
||||||
<input class="ipt" @focus="inputFocus" placeholder="自定义" v-model="peopleNumInputValue"
|
<input class="ipt" @focus="inputFocus" placeholder="自定义" v-model="peopleNumInputValue"
|
||||||
@change="" />
|
@change="" />
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<el-button type="primary" style="width: 100%;"
|
<el-button type="primary" style="width: 100%;"
|
||||||
|
|
@ -92,6 +92,9 @@ import { formatDecimal } from '@/utils/index.js'
|
||||||
import settleAccount from "@/views/home/components/settleAccount.vue";
|
import settleAccount from "@/views/home/components/settleAccount.vue";
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { clearTable } from '@/api/table.js'
|
import { clearTable } from '@/api/table.js'
|
||||||
|
import { useShop } from '@/store/shop.js'
|
||||||
|
|
||||||
|
const shopStore = useShop()
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const global = useGlobal()
|
const global = useGlobal()
|
||||||
|
|
@ -143,7 +146,11 @@ function showPayHandle() {
|
||||||
|
|
||||||
// 显示就就餐人数
|
// 显示就就餐人数
|
||||||
function showPeopleNumHandle() {
|
function showPeopleNumHandle() {
|
||||||
showPeopleNum.value = true
|
if (shopStore.info.isTableFee == 1) {
|
||||||
|
orderDownHandle()
|
||||||
|
} else {
|
||||||
|
showPeopleNum.value = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 清理桌台
|
// 清理桌台
|
||||||
|
|
@ -202,17 +209,16 @@ function isPositiveInteger(num) {
|
||||||
|
|
||||||
// 选择人数后确认下单
|
// 选择人数后确认下单
|
||||||
function orderDownHandle() {
|
function orderDownHandle() {
|
||||||
if (peopleNum.value == 'custom') {
|
// if (peopleNum.value == 'custom') {
|
||||||
if (!isPositiveInteger(parseFloat(peopleNumInputValue.value))) {
|
// if (!isPositiveInteger(parseFloat(peopleNumInputValue.value))) {
|
||||||
ElMessage.error('请输入有效的就餐人数')
|
// ElMessage.error('请输入有效的就餐人数')
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 直接点单
|
// 直接点单
|
||||||
global.setOrderTable({
|
global.setOrderTable({
|
||||||
...props.tableInfo,
|
...props.tableInfo,
|
||||||
num: peopleNum.value == 'custom' ? peopleNumInputValue.value : peopleNum.value
|
num: peopleNum.value
|
||||||
})
|
})
|
||||||
router.push({
|
router.push({
|
||||||
name: 'home',
|
name: 'home',
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<div style="margin-left: 4px;">返回</div>
|
<div style="margin-left: 4px;">返回</div>
|
||||||
</div>
|
</div>
|
||||||
<router-link to='/workrecord' class="box_top_right">
|
<div class="box_top_right" @click="checkRecord">
|
||||||
交班记录
|
交班记录
|
||||||
</router-link>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box_content">
|
<div class="box_content">
|
||||||
<div class="box_content_left">
|
<div class="box_content_left">
|
||||||
|
|
@ -146,6 +146,8 @@ import { useUser } from "@/store/user.js";
|
||||||
import { useSocket } from "@/store/socket.js";
|
import { useSocket } from "@/store/socket.js";
|
||||||
import { formatDecimal } from '@/utils/index.js'
|
import { formatDecimal } from '@/utils/index.js'
|
||||||
import { usePrint } from "@/store/print.js";
|
import { usePrint } from "@/store/print.js";
|
||||||
|
import { staffPermission } from '@/api/user.js'
|
||||||
|
|
||||||
const printStore = usePrint();
|
const printStore = usePrint();
|
||||||
|
|
||||||
const socket = useSocket();
|
const socket = useSocket();
|
||||||
|
|
@ -161,10 +163,21 @@ const loading = ref(false);
|
||||||
|
|
||||||
const isPrint = ref(true)
|
const isPrint = ref(true)
|
||||||
|
|
||||||
|
// 查看交班记录
|
||||||
|
async function checkRecord() {
|
||||||
|
try {
|
||||||
|
const res = await staffPermission('yun_xu_cha_kan_suo_you_jiao_ban_ji_lu')
|
||||||
|
router.push('/workrecord')
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 开始交班
|
// 开始交班
|
||||||
const exit = async () => {
|
const exit = async () => {
|
||||||
try {
|
try {
|
||||||
|
await staffPermission('yun_xu_jiao_ban')
|
||||||
|
|
||||||
let data = {}
|
let data = {}
|
||||||
// 获取交班打印小票数据
|
// 获取交班打印小票数据
|
||||||
data = await handoverData({
|
data = await handoverData({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue