tapd相关修改更新

This commit is contained in:
GaoHao
2025-03-19 18:19:34 +08:00
parent 994cf8bf2b
commit f01bc839f7
53 changed files with 1084 additions and 1032 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="item color-fff border-r-12" :class="[computedClass]" @click="toOrderDetail">
<view class="item color-fff border-r-12" :class="[computedClass]">
<view class="my-bg-main" :style="{'background-color':returnStutasColor(data.status)}">
<view class="u-flex u-row-between">
<view class="u-font-32">{{data.name}}</view>
@@ -74,7 +74,7 @@
import {hasPermission} from '@/commons/utils/hasPermission.js'
import { $status } from '@/commons/table-status.js'
import { $table } from '@/http/yskApi/table.js'
import infoBox from '@/commons/utils/infoBox.js'
const emits = defineEmits(['more', 'update', 'bind'])
const props = defineProps({
data: {
@@ -140,46 +140,12 @@
console.log(res)
if(res){
const useType = props.status == 'using' ? props.data.useType : undefined
go.to('PAGES_CREATE_ORDER', {
tableId: props.data.id,
name: props.data.name,
maxCapacity: props.data.maxCapacity,
status: props.data.status,
})
console.log(props.data)
go.to('PAGES_CREATE_ORDER', props.data)
}
})
}
/**
* 查看订单详情
*/
function toOrderDetail() {
if (props.data.status == 'using' && props.data.orderId) {
const {
id,
name,
status,
amount,
areaId,
orderId
} = props.data
if (!orderId) {
return uni.showToast({
icon: 'none',
title: '台桌未返回订单id'
})
}
go.to('PAGES_ORDER_DETAIL', {
id,
name,
status,
amount,
areaId,
id: orderId
})
}
}
/**
* 清台
@@ -196,7 +162,7 @@
status: "idle",
qrcode: item.id,
}).then(res => {
infoBox.showToast('清台成功')
uni.$utils.showToast('清台成功')
emits('update')
})
}