monthFeeDetail.vue
2.55 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
<template>
<view>
<view class="appList">
<view class="appItem" v-for="(item,index) in list" :key="index">
<view class="status" @click="goDetail(item)">
<text v-if="item.record.auditStatus==0" class="text-primary">审核中</text>
<text v-if="item.record.auditStatus==1" class="text-success"> 审核通过</text>
<text v-if="item.record.auditStatus==2" class="text-danger"> 审核拒绝</text>
<text v-if="item.record.auditStatus==3" class="text-warning">已撤回</text>
</view>
<view class="date" @click="goDetail(item)">
<text v-if="item.record?.overDate">{{item.record?.overDate?.slice(0,10)}} 审核</text>
</view>
<view class="text-primary" @click="goDetail(item)">{{item.wfCode}}</view>
<view class="name mt0" @click="goDetail(item)">{{item.finalDocName}}</view>
<view class="flexbox" @click="goDetail(item)">
<view v-if="item.payNoticeSendTime">
下发日期
<view>{{item.payNoticeSendTime?.slice(0,10)}}</view>
</view>
<view>
人数
<view>{{item.personCount}}</view>
</view>
<view>
年限合计
<view>{{item.yearCount}}</view>
</view>
<view>
费用合计
<view>¥{{item.allPrice}}</view>
</view>
</view>
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<text>暂无数据</text>
</view>
<view style="height:200rpx;"></view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {ref} from 'vue'
import { onLoad } from '@dcloudio/uni-app'
const app = getApp()
const list = ref([])
const queryParams = ref({
yjId:''
})
const statistical = ref({})
onLoad((option) => {
if (app.globalData.isLogin) {
queryParams.value.yjId = option.id
init()
} else {
app.firstLoadCallback = () => {
queryParams.value.yjId = option.id
init()
};
}
})
function init(){
uni.showLoading({
title:"加载中"
})
api.getFeeBillList(queryParams.value).then(res=>{
list.value = res.rows
list.value.forEach(item => {
item.payEvidence = JSON.parse(item.payEvidence)
try {
item.record.content = JSON.parse(item.record.content)
} catch (e) {
console.log(e)
}
uni.hideLoading()
})
})
}
function goDetail(item) {
//详情
console.log(item.docId)
let path = `/personalVip/feeBillDetail?docId=${item.docId}`
uni.navigateTo({
url: path
});
}
</script>
<style lang="scss" scoped>
</style>