更新订单详情退菜
This commit is contained in:
@@ -60,6 +60,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
function onTuiCai(goods, index) {
|
function onTuiCai(goods, index) {
|
||||||
|
console.log(goods);
|
||||||
tuicai.show = true
|
tuicai.show = true
|
||||||
tuicai.selGoods = goods
|
tuicai.selGoods = goods
|
||||||
}
|
}
|
||||||
@@ -94,8 +95,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function tuicaiConfirm() {
|
async function tuicaiConfirm() {
|
||||||
|
console.log(tuicai.selGoods);
|
||||||
const res = await Api.$returnCart({
|
const res = await Api.$returnCart({
|
||||||
cartId: tuicai.selGoods.cartId,
|
cartId:tuicai.selGoods.hasOwnProperty('cartId')? tuicai.selGoods.cartId:tuicai.selGoods.id,
|
||||||
tableId: orderDetail.info.tableId,
|
tableId: orderDetail.info.tableId,
|
||||||
})
|
})
|
||||||
tuicai.selGoods.status = 'return'
|
tuicai.selGoods.status = 'return'
|
||||||
@@ -136,6 +138,9 @@
|
|||||||
const options = reactive({})
|
const options = reactive({})
|
||||||
async function init() {
|
async function init() {
|
||||||
const res = await orderApi.tbOrderInfoDetail(options.id)
|
const res = await orderApi.tbOrderInfoDetail(options.id)
|
||||||
|
if(res.detailList.length){
|
||||||
|
uni.setStorageSync('useType',res.detailList[0].useType)
|
||||||
|
}
|
||||||
const masterId = res.masterId
|
const masterId = res.masterId
|
||||||
options.masterId = res.masterId
|
options.masterId = res.masterId
|
||||||
if (res.status == 'unpaid') {
|
if (res.status == 'unpaid') {
|
||||||
|
|||||||
Reference in New Issue
Block a user