增加更多菜单里的结账跳转
This commit is contained in:
@@ -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) {
|
||||
//清台
|
||||
|
||||
Reference in New Issue
Block a user