feeBillDetail.vue
2.95 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
<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="vipData mtb30">
<view>共 <text class="text-danger"> {{ form.deptCount}} </text> 团队</view>
<view>年限合计 <text class="text-danger"> {{ form.yearCount}} </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="w100">
<view class="name">{{n.certName}}</view>
<view class="date" v-if="n.validityTime">{{n.validityTime?.slice(0,10)}}</view>
<view class="flexbox">
<view>单价
<text>¥{{ (n.unitPrice*1).toFixed(2) }}</text>
</view>
<view>缴费年限
<text>{{n.renewYear}}</text>
</view>
<view>总价
<text class="text-danger">¥{{ (n.allFee*1).toFixed(2) }}</text>
</view>
</view>
</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.getFeeBillById(docId.value).then(res => {
list.value = res.data.certList
// 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>