diff --git a/pagesOrder/detail/components/extra.vue b/pagesOrder/detail/components/extra.vue index 0be1bfc..145294b 100644 --- a/pagesOrder/detail/components/extra.vue +++ b/pagesOrder/detail/components/extra.vue @@ -2,7 +2,12 @@ 附加费 - 退菜 + + {{data.name||'餐位费'}} @@ -18,6 +23,10 @@ type: Object, default: () => {} }, + orderInfo:{ + type: Object, + default: () => {} + }, table:{ type: Object, default: () => {} @@ -27,9 +36,16 @@ const statusMap={ unpaid:'未支付' } + const emits=defineEmits(['tuicai','tuikuan','printOrder']) function returnStatus(status){ return statusMap[status]||'' } + function tuikuan(){ + emits('tuikuan',props.data) + } + function tuicai(){ + emits('tuicai',props.data) + } + .gap-28 { + gap: 28rpx; + font-size: 24rpx; + } + + .list { + padding: 0 24rpx; + } + + .list .item:first-child { + border: none; + } + + .tag { + padding: 8rpx 16rpx 6rpx 16rpx; + border: 1px solid #E5E5E5; + border-radius: 4rpx; + + &.active { + border-color: #E6F0FF; + color: $my-main-color; + } + } + \ No newline at end of file