feeBillDetail.vue
2.83 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
<template>
<view>
<view class="wBox">
<view class="tt">{{form.finalDocName}}</view>
<view class="subtt" v-if="form.payTime">提交日期:<text>{{ form.payTime }}</text></view>
<view class="subtt" v-if="form.payDeptName">提交单位:<text>{{ form.payDeptName }}</text></view>
<view class="info">
<view>共 <text class="text-danger"> {{ form.allPersonCount}} </text> 人</view>
<view>缴费合计人数 <text class="text-danger"> {{ form.oldPersonCount}} </text> 人</view>
<view>费用合计 <text class="text-primary"> ¥{{ form.allPrice }} </text> </view>
</view>
<!-- 成员 -->
<view class="userlist">
<view class="item" v-for="n in list">
<view class="photobox">
<view class="colorful">{{n.personName?.slice(0,1)}}</view>
</view>
<view>
<view class="name">{{n.personName}}<text>({{n.memberInfoName}})</text></view>
<view class="date">原有效期至{{n.originValidityDate||'--'}}</view>
</view>
<view class="nian">
总价 ¥{{n.payYear}}
</view>
</view>
</view>
</view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
onMounted,
ref
} from 'vue'
import {
onLoad
} from '@dcloudio/uni-app'
const app = getApp();
const queryParams = ref({
// pageNum: 1,
// pageSize: 10
// mergeFlag: 0,
auditStatus: ''
})
const docId = ref('')
const form = ref([])
const list = ref([])
const deptType = ref()
onLoad((option) => {
if (app.globalData.isLogin) {
docId.value = option.docId
init()
} else {
app.firstLoadCallback = () => {
docId.value = option.docId
init()
};
}
})
function init() {
deptType.value = app.globalData.deptType
api.getFeeBillDetail(docId.value).then(res => {
list.value = res.data.personPaymentList
// arr.value = JSON.parse(JSON.stringify(list.value))
form.value = res.data
})
}
</script>
<style scoped lang="scss">
.wBox {
width: 700rpx;
padding: 30rpx;
margin: 20rpx auto 0;
background: #FFFFFF;
box-shadow: 0rpx 12rpx 116rpx 0rpx rgba(196, 203, 214, 0.1);
border-radius: 15rpx;
.tt {
color: #0A1629;
font-size: 30rpx;
}
.subtt{
color: #666;margin: 20rpx 0 0;
font-size: 28rpx;
}
}
.userlist {
.item {
border-bottom: 1px dashed #e5e5e5;
position: relative;padding: 20rpx 0;
.date {
margin-top: 10rpx;
}
.name {
text {
margin-left: 1em;
color: #4C5359;
font-size: 26rpx;
}
}
.nian {
position: absolute;
right: 0;
font-size: 26rpx;
color: #AD181F;
}
}
}
.info {
display: flex;
margin: 30rpx 0 20rpx;
font-size: 28rpx;
view {
color: #7D8592;
margin-right: 20rpx;
}
}
</style>