tapd相关修改更新
This commit is contained in:
@@ -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')
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user