bill.vue
4.31 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
<template>
<div class="box">
<el-dialog
v-if="showBill" v-model="showBill" append-to-body
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>
<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 colspan="2" class="bg">账号</td>
<td colspan="2">{{ form.bankAccount }}</td>
<td colspan="2" class="bg">账号</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>金额</td>
<td colspan="3">人民币</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 class="bg" colspan="2">单位</td>
<td class="bg">年月起</td>
<td class="bg" colspan="2">年月止</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.certList" :key="item.id">
<td>{{ index+1 }}</td>
<td colspan="2">{{ item.memberName }}</td>
<td>{{ item.validityTimeStr }}</td>
<td class="ye" colspan="2">{{ item.validityTimeEndStr }}</td>
<td>{{ item.renewYear }}</td>
<td>{{ item.unitPrice }}</td>
<td>{{ item.allFee }}</td>
<!-- <td><el-button link type="primary" @click="hadingView()">查看</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>
<!-- 查看 -->
<viewInfo ref="viewRef" />
</div>
</template>
<script setup >
import { ref, getCurrentInstance } from 'vue'
import { detail } from '@/api/groupMember/settlement'
import viewInfo from '@/views/groupMember/settlement/view.vue'
import { useRouter } from 'vue-router'
const { proxy } = getCurrentInstance()
const router = useRouter()
const showBill = ref(false)
const form = ref([])
const docId = ref()
function open(num) {
showBill.value = true
docId.value = num
console.log(num)
getList()
}
async function getList() {
const res = await detail(docId.value)
form.value = res.data
console.log(res)
}
// 缴费通知单
function downLoadFN() {
// proxy.download(
// `/member/certifiedDoc/downJiaoFei/${[docId.value]}`, {}
// )
const routerData = router.resolve({
path: '/download',
query: {
arr: [docId.value],
type: 'batchGroupMemberFeeBill'
}
})
window.open(routerData.href, '_blank')
}
defineExpose({
open
})
</script>
<style scope>
td{
text-align: center;
padding: 10px;
}
.B{
font-weight: 600;
}
.bg{
background-color:#f8f8f9 ;
}
</style>