增加更多菜单里的结账跳转
This commit is contained in:
@@ -94,6 +94,7 @@
|
|||||||
onPullDownRefresh
|
onPullDownRefresh
|
||||||
} from '@dcloudio/uni-app';
|
} from '@dcloudio/uni-app';
|
||||||
import color from '@/commons/color';
|
import color from '@/commons/color';
|
||||||
|
import go from '@/commons/utils/go.js';
|
||||||
import myMask from '@/components/my-components/my-mask'
|
import myMask from '@/components/my-components/my-mask'
|
||||||
import addTable from './components/add-table'
|
import addTable from './components/add-table'
|
||||||
import myActionSheet from '@/components/my-components/my-action-sheet';
|
import myActionSheet from '@/components/my-components/my-action-sheet';
|
||||||
@@ -119,7 +120,16 @@
|
|||||||
actionSheet.selTable = table
|
actionSheet.selTable = table
|
||||||
refMoreSheet.value.open()
|
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) {
|
async function actionSheetClick(index) {
|
||||||
console.log(index);
|
console.log(index);
|
||||||
const item = actionSheet.selTable
|
const item = actionSheet.selTable
|
||||||
@@ -129,7 +139,7 @@
|
|||||||
if (!item.orderId) {
|
if (!item.orderId) {
|
||||||
return infoBox.showToast('该桌台暂无要结账的订单!')
|
return infoBox.showToast('该桌台暂无要结账的订单!')
|
||||||
}
|
}
|
||||||
return
|
return toPay(item)
|
||||||
}
|
}
|
||||||
if (index == 1) {
|
if (index == 1) {
|
||||||
//清台
|
//清台
|
||||||
|
|||||||
Reference in New Issue
Block a user