monthFeeDetail.vue 2.55 KB
<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>