confirmOrder.vue
1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<template>
<el-dialog v-model="dialogVisible" destroy-on-close title="确认订单" width="900">
<el-row :gutter="8">
<el-col class="textLabel" :span="6">
人数合计:<span class="orange">{{ form.all ?? 0 }}</span>
</el-col>
<el-col class="textLabel" :span="6">
新会员合计:<span class="orange">{{ form.new ?? 0 }}</span>
</el-col>
<el-col class="textLabel" :span="6">
续费会员合计:<span class="orange">{{ form.old ?? old }}</span>
</el-col>
<el-col class="textLabel" :span="6">
总费用:<span class="orange">{{ form.price ?? 0 }}</span>
</el-col>
</el-row>
<div style="height: 70px;" />
<el-row justify="center">
<el-button class="largeBtn" type="" @click="handelClose">取消</el-button>
<el-button class="largeBtn" type="primary" @click="handelPay">去付款</el-button>
</el-row>
<div style="height: 30px;" />
</el-dialog>
</template>
<script setup>
import { getCurrentInstance, ref } from 'vue'
const emit = defineEmits(['handelPayment'])
const dialogVisible = ref(false)
const form = ref({})
const { proxy } = getCurrentInstance()
function open(row) {
form.value = row
dialogVisible.value = true
}
function handelPay() {
emit('handelPayment')
dialogVisible.value = false
}
function handelClose() {
dialogVisible.value = false
}
defineExpose({
open
})
</script>
<style scoped lang="scss">
.textLabel {
font-size: 20px;
color: #000;
.orange {
color: orange;
font-weight: bold;
}
}
</style>