代码更新
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
import * as $fun from './util.js'
|
||||
import infoBox from '@/commons/utils/infoBox.js'
|
||||
import { hasPermission } from '@/commons/utils/hasPermission.js'
|
||||
import { getShopTable, shopTableBind } from '@/api/table.js'
|
||||
import { getShopTable, shopTableBind, shopTableClear } from '@/api/table.js'
|
||||
import { getShopArea } from '@/api/area.js'
|
||||
|
||||
const statusList = objToArrary($status)
|
||||
@@ -224,10 +224,8 @@
|
||||
content: '确定要清台:' + item.name + '?',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
$table.update({
|
||||
...item,
|
||||
status: "idle",
|
||||
qrcode: item.tableId,
|
||||
shopTableClear({
|
||||
id: item.id,
|
||||
}).then(res => {
|
||||
infoBox.showToast('清台成功')
|
||||
pageData.query.page = 1
|
||||
@@ -262,12 +260,11 @@
|
||||
*/
|
||||
function toPay(item) {
|
||||
go.to('PAGES_ORDER_PAY', {
|
||||
tableId: item.tableId,
|
||||
tableId: item.id,
|
||||
tableName: item.name,
|
||||
masterId: item.masterId,
|
||||
orderId: item.orderId,
|
||||
discount: 1,
|
||||
userId:item.userId
|
||||
userId: item.userId
|
||||
})
|
||||
}
|
||||
|
||||
@@ -291,7 +288,10 @@
|
||||
"tableCode": params.code,
|
||||
"id": item.id,
|
||||
}).then(res => {
|
||||
getTable()
|
||||
infoBox.showToast('桌台绑定成功')
|
||||
setTimeout(()=>{
|
||||
getTable()
|
||||
},1500)
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user