|
|
@@ -57,7 +57,7 @@
|
|
|
<view class="pickup-info">
|
|
|
<text>取餐号:{{ item.mealNumber }}</text>
|
|
|
<text :class="['status', `status-${item.orderStatus}`]" v-if="currentStatusTab != 2">{{ getStatusText(item.orderStatus) }}</text>
|
|
|
- <text :class="['status', `status-${item.orderStatus}`]" v-if="currentStatusTab == 2">{{ item.orderStatusName }}</text>
|
|
|
+ <text :class="['status', `status-${item.orderStatus}`]" v-if="currentStatusTab == 2">{{ getrefundText(item.refundType )}}</text>
|
|
|
</view>
|
|
|
<view class="order-item">
|
|
|
<u-image width="120rpx" height="120rpx" border-radius="12rpx" :src="item.productImage && `${$config.apiUrl}/${item.productImage.split(',')[0]}`" mode="aspectFill"></u-image>
|
|
|
@@ -133,6 +133,17 @@ export default {
|
|
|
};
|
|
|
return statusMap[status] || '';
|
|
|
},
|
|
|
+ //退款状态
|
|
|
+ getrefundText(refundType){
|
|
|
+ const statusMap = {
|
|
|
+ '0': '未退款',
|
|
|
+ '1': '退款成功',
|
|
|
+ '2': '退款中',
|
|
|
+ '3': '退款失败',
|
|
|
+ '4': '拒绝退款',
|
|
|
+ };
|
|
|
+ return statusMap[refundType] || '';
|
|
|
+ },
|
|
|
onSearch(value) {
|
|
|
this.$refs[`listScroll`].reloadList({
|
|
|
queryName: value,
|