view.vue
4.48 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<template>
<div>
<el-dialog
v-model="show" class="dialog" title="查看详情" :close-on-click-modal="true" width="80%"
draggable
@close="close"
>
<h1 class="center">{{ form.finalDocName }}</h1>
<div class="flex">
<div v-if="form.payTime">提交日期:<span>{{ form.payTime }}</span> </div>
<div>提交单位:<span>{{ form.payDeptName }}</span> </div>
</div>
<br>
<el-row class="vipData">
<div>团体会员合计:
<span>{{ form.deptCount }}个</span></div>
<div>年限合计:
<span>{{ form.yearCount }}年</span>
</div>
<div>费用合计:
<span>{{ form.allPrice }}元</span>
</div>
</el-row>
<br>
<div>
<el-table :data="list" max-height="300" border>
<el-table-column type="index" width="55" align="center" label="序号" />
<el-table-column label="缴费单名称" align="center" prop="certName" min-width="150" />
<el-table-column label="缴费单位" align="center" min-width="120" prop="memberName" />
<el-table-column label="提交时间" align="center" prop="commitTime">
<template #default="scope">
<span>{{ parseTime(scope.row.commitTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="原有效期" align="center" prop="validityTime">
<template #default="scope">
<span>{{ parseTime(scope.row.validityTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="单价" align="center" prop="unitPrice">
<template #default="scope">
<div>
{{ (scope.row.unitPrice*1).toFixed(2) }}
</div>
</template>
</el-table-column>
<el-table-column label="缴费年限" align="center" prop="renewYear" />
<el-table-column label="总价" align="center" prop="unitPrice">
<template #default="scope">
<div>
{{ (scope.row.allFee*1).toFixed(2) }}
</div>
</template>
</el-table-column>
<el-table-column label="缴费编号" align="center" prop="wfCode" />
</el-table>
</div>
<br>
</el-dialog>
</div>
</template>
<script setup>
import { reactive } from '@vue/runtime-core'
import { toRefs, getCurrentInstance } from 'vue'
// import { queryByList } from '@/api/member/feeBill'
import { certifiedDoc } from '@/api/groupMember/settlement.js'
const { proxy } = getCurrentInstance()
const emit = defineEmits(['approval'])
const data = reactive({
show: false,
form: {},
list: [],
queryParams: {},
arr: [],
auditList: [],
getAuditList: []
})
const { show, form, list, queryParams } = toRefs(data)
const exam = null
function open(row) {
queryParams.value.payId = row
show.value = true
initData()
}
// 查询
async function initData() {
const res = await certifiedDoc(queryParams.value.payId)
list.value = res.data.certList
// arr.value = JSON.parse(JSON.stringify(list.value))
form.value = res.data
console.log(list.value)
}
// // 查询
// async function selectFN() {
// const arr1 = JSON.parse(JSON.stringify(list.value))
// queryParams.value.list = JSON.stringify(arr1)
// const res = await queryByList(queryParams.value)
// list.value = res.data
// }
// // 重置
// function rest() {
// list.value = arr.value
// queryParams.value = {}
// }
// function auditFn() {
// const fromData = JSON.parse(JSON.stringify(form.value))
// fromData.content = JSON.stringify(fromData.content)
// proxy.$refs['DoAudit'].open(JSON.stringify([fromData]))
// }
function close() {
emit('approval', exam)
show.value = false
}
defineExpose({
open,
close: () => {
show.value = true
}
})
</script>
<style lang="scss" scoped>
.center{
text-align: center;
margin-top: 0;
}
.flex{
display: flex;
justify-content: space-between;
font-size: 16px;
}
.x-flex{
display: flex;
font-size: 16px;
.b-box{
display: flex;
border:1px solid #f8f8f9;
div{
padding: 10px;
// justify-content: center;
width: 200px;
}
}
}
.el-button {
margin-bottom: 18px;
}
.col{
display: flex;
border: 1px solid #f8f8f9;
div{
// text-align: center;jus
justify-content: center;
width: 50%;
padding: 10px;
text-align: center;
}
div:first-child{
background-color:#f8f8f9 ;
}
}
</style>