增加退款方式和叫号更改

This commit is contained in:
wwz 2025-04-08 18:24:28 +08:00
parent a95315f42a
commit 0c58d1b03c
3 changed files with 28 additions and 23 deletions

View File

@ -1,5 +1,5 @@
// const debug = process.env.NODE_ENV == 'development' ? true : false; // const debug = process.env.NODE_ENV == 'development' ? true : false;
const debug = false const debug = true
// #ifdef H5 // #ifdef H5
const proxyApi = "/api" const proxyApi = "/api"
// #endif // #endif

View File

@ -174,7 +174,7 @@
</view> </view>
</view> </view>
</block> </block>
<view class="total-wrap" v-if="listinfo.status == 'unpaid'"> <view class="total-wrap" v-if="listinfo.status == 'unpaid'">
<view>总计</view> <view>总计</view>
<view class="price"> {{listinfo.totalCost}} </view> <view class="price"> {{listinfo.totalCost}} </view>
@ -183,7 +183,7 @@
<view>实付</view> <view>实付</view>
<view class="price"> {{listinfo.payAmount}} </view> <view class="price"> {{listinfo.payAmount}} </view>
</view> </view>
</view> </view>
</view> </view>
@ -215,6 +215,10 @@
<text class="t">就餐人数</text> <text class="t">就餐人数</text>
<text class="info">{{ listinfo.seatNum || ""}}</text> <text class="info">{{ listinfo.seatNum || ""}}</text>
</view> </view>
<view class="row" v-if="listinfo.refundType">
<text class="t">退款方式</text>
<text class="info">{{ listinfo.refundType == 'cash'?'手动退款':'原路退回'}}</text>
</view>
</view> </view>
<IntegralInput :visible="calcUsablePointsData.showModal" :minValue="calcUsablePointsData.minIntegral" <IntegralInput :visible="calcUsablePointsData.showModal" :minValue="calcUsablePointsData.minIntegral"
:maxValue="calcUsablePointsData.maxIntegral" :instructions="calcUsablePointsData.instructionText" :maxValue="calcUsablePointsData.maxIntegral" :instructions="calcUsablePointsData.instructionText"

View File

@ -182,6 +182,7 @@
if (res.queueInfo) { if (res.queueInfo) {
dataform.queueInfo = res.queueInfo; dataform.queueInfo = res.queueInfo;
} else { } else {
dataform.queueInfo = null
userorderList() userorderList()
} }
dataform.shopInfo = res.shopInfo; dataform.shopInfo = res.shopInfo;
@ -270,28 +271,28 @@
onMounted(async () => { onMounted(async () => {
await proxy.$onLaunched; await proxy.$onLaunched;
// //
// const pages = getCurrentPages(); const pages = getCurrentPages();
// // //
// const currentPage = pages[pages.length - 1]; const currentPage = pages[pages.length - 1];
// // //
// const options = currentPage.options; const options = currentPage.options;
// // #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
// if (options.q) { if (options.q) {
// dataform.shopId = getQueryString(decodeURIComponent(options.q), 'shopId') dataform.shopId = getQueryString(decodeURIComponent(options.q), 'shopId')
// dataform.queueId = getQueryString(decodeURIComponent(options.q), 'queueId') dataform.queueId = getQueryString(decodeURIComponent(options.q), 'queueId')
// } }
// // #endif // #endif
// // #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
// if (getApp().globalData.shopId) { if (getApp().globalData.shopId) {
// dataform.shopId = getApp().globalData.shopId dataform.shopId = getApp().globalData.shopId
// } }
// if (getApp().globalData.queueId) { if (getApp().globalData.queueId) {
// dataform.queueId = getApp().globalData.queueId dataform.queueId = getApp().globalData.queueId
// } }
//// #endif // #endif
uni.cache.set('shopId', dataform.shopId, 30)
await nextTick() await nextTick()
uni.cache.set('shopId', 29, 30)
getQueueUpTablList(); getQueueUpTablList();
}) })
</script> </script>