订单管理更新

This commit is contained in:
2024-10-31 10:26:10 +08:00
parent 9833e137f9
commit 1621a1feed
2 changed files with 4 additions and 3 deletions

View File

@@ -193,10 +193,10 @@
}) })
const seatFeePrice = computed(() => { const seatFeePrice = computed(() => {
if (!props.seatFee.totalAmount) { if (!props.seatFee.priceAmount) {
return 0 return 0
} }
const n = props.seatFee.totalAmount * (props.seatFee.status == 'return' ? 0 : 1) const n = props.seatFee.priceAmount * (props.seatFee.status == 'return' ? 0 : 1)
return n.toFixed(2) return n.toFixed(2)
}) })

View File

@@ -210,6 +210,7 @@
go.to('PAGES_CREATE_ORDER', { go.to('PAGES_CREATE_ORDER', {
tableId: options.tableId || orderDetail.info.tableId, tableId: options.tableId || orderDetail.info.tableId,
name: options.name || orderDetail.info.tableName, name: options.name || orderDetail.info.tableName,
masterId:orderDetail.info.masterId,
type: 'add' type: 'add'
}) })
} }
@@ -286,7 +287,7 @@
name: '客座费', name: '客座费',
number: res.seatCount, number: res.seatCount,
totalNumber: res.seatCount, totalNumber: res.seatCount,
totalAmount: res.seatAmount, priceAmount: res.seatAmount,
status:'' status:''
} }
orderDetail.goodsList = Object.entries(goodsMap).map(([key, value]) => ({ orderDetail.goodsList = Object.entries(goodsMap).map(([key, value]) => ({