bill.vue
4.78 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
<template>
<div>
<el-dialog
v-if="showBill" v-model="showBill" append-to-body
title=""
width="1000px"
>
<h1 class="B" style="text-align: center; margin-top: 0;">
个人会员缴费通知单</h1>
<el-row justify="space-between">
<el-form-item label="编号:"><span class="B">{{ form.wfCode }}</span> </el-form-item>
<!-- <el-form-item label="缴费日期:">{{ parseTime(form.settleTime, '{y}-{m}-{d}') }}</el-form-item> -->
<div>
<el-button link type="primary" @click="DownloadFN">下载</el-button>
</div>
</el-row>
<!-- <br> -->
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class=" bg " colspan="3">缴费单位</td>
<td colspan="2">{{ form.payDeptName }}</td>
<td class=" bg" colspan="3">资金用途</td>
<td colspan="2">{{ form.feeUseWhy }}</td>
</tr>
<tr>
<td style="width: 10%;" class="bg" rowspan="3">缴 <br> 款<br>人</td>
<td style="width: 20%;" colspan="2" class="bg">开户行</td>
<td style="width: 20%;" colspan="2">{{ form.bankName }}</td>
<td style="width: 10%;" class="bg" rowspan="3">收<br>款<br>人</td>
<td style="width: 20%;" colspan="2" class="bg">开户行</td>
<td style="width: 20%;" colspan="2">{{ form.accountBank }}</td>
</tr>
<tr>
<td class="bg" colspan="2">账号</td>
<td colspan="2">{{ form.bankAccount }}</td>
<td class="bg" colspan="2">账号</td>
<td colspan="2">{{ form.accountNum }}</td>
</tr>
<tr>
<td colspan="2" class="bg">名称</td>
<td colspan="2">{{ form.bankAccountName }}</td>
<td colspan="2" class="bg">名称</td>
<td colspan="2">{{ form.accountName }}</td>
</tr>
<tr>
<td class="bg">金额</td>
<td colspan="3" class="bg">人民币</td>
<td colspan="3">{{ form.chinesePrice }}</td>
<td colspan="3">{{ form.allPrice }}</td>
</tr>
<tr>
<td class="bg" colspan="10">缴费明细</td>
</tr>
<tr>
<td class="bg">序号</td>
<td colspan="2" class="bg"> 团体会员</td>
<td class="bg">所属一级协会</td>
<td colspan="2" class="bg">缴费人员</td>
<td class="bg">缴费年限</td>
<td class="bg">单价(元)</td>
<td class="bg">费用总计(元)</td>
<td class="bg">操作</td>
</tr>
<tr v-for="(item,index) in form.personPaymentByMemberList" :key="item.id">
<td>{{ index+1 }}</td>
<td colspan="2">{{ item.memberName }}</td>
<td colspan="2">{{ item.firstDeptName }}</td>
<td>{{ item.personCount }}</td>
<td>{{ item.yearCount }}</td>
<td>{{ item.unitPrice }}</td>
<td>{{ item.allPrice }}</td>
<td><el-button link type="primary" @click="hadingView(item)">查看</el-button></td>
</tr>
</table>
<br>
<el-row justify="space-between">
<el-form-item label="经办人:"><span class="B">{{ form.createBy }}</span> </el-form-item>
<el-form-item label="经办时间:"> <span class="B">{{ parseTime(form.createTime, '{y}-{m}-{d}') }}</span> </el-form-item>
</el-row>
</el-dialog>
<feeBillView ref="feeBillViewRef" />
<examime ref="examimeRef" />
</div>
</template>
<script setup >
import { ref, getCurrentInstance } from 'vue'
import feeBillView from '@/views/member/feeBill/feeBillView.vue'
import examime from '@/views/member/feeBill/examine.vue'
import { useRouter } from 'vue-router'
import { feelDetail } from '@/api/member/feeBill.js'
const { proxy } = getCurrentInstance()
const showBill = ref(false)
const form = ref([])
const docId = ref()
const router = useRouter()
function open(num) {
showBill.value = true
docId.value = num
getList()
}
async function getList() {
const res = await feelDetail({ docId: docId.value })
form.value = res.data
console.log(res)
}
// 缴费单
async function DownloadFN() {
// proxy.download(
// `/person/paymentDoc/downJiaoFei/${[docId.value]}`, {}, ``
// )
const routerData = router.resolve({
path: '/download',
query: {
arr: [docId.value],
type: 'batchMemberFeeBill'
}
})
window.open(routerData.href, '_blank')
}
function hadingView(row) {
// proxy.$refs['feeBillViewRef'].open(form.value, row.memId)
proxy.$refs['examimeRef'].open(form.value, row.memId)
}
defineExpose({
open
})
</script>
<style scope>
td{
text-align: center;
padding: 10px;
}
.you{
width: 140px;
}
.box{
width: 1000px;
margin: 0 auto;
}
.ye{
width: 100px;
}
.B{
font-weight: 600;
}
.bg{
background-color: #f5f7f9;
}
</style>