增加更多菜单里的结账跳转

This commit is contained in:
2024-10-16 14:23:09 +08:00
parent c07bd8c729
commit 6bef28f958

View File

@@ -94,6 +94,7 @@
onPullDownRefresh
} from '@dcloudio/uni-app';
import color from '@/commons/color';
import go from '@/commons/utils/go.js';
import myMask from '@/components/my-components/my-mask'
import addTable from './components/add-table'
import myActionSheet from '@/components/my-components/my-action-sheet';
@@ -119,7 +120,16 @@
actionSheet.selTable = table
refMoreSheet.value.open()
}
function toPay(item) {
go.to('PAGES_ORDER_PAY', {
tableId: item.tableId,
tableName: item.name,
masterId: item.masterId,
orderId: item.orderId,
discount: 1,
userId:item.userId
})
}
async function actionSheetClick(index) {
console.log(index);
const item = actionSheet.selTable
@@ -129,7 +139,7 @@
if (!item.orderId) {
return infoBox.showToast('该桌台暂无要结账的订单!')
}
return
return toPay(item)
}
if (index == 1) {
//清台