<!-- 借款审批 -->
<template>
	<view v-if="ExpenseBill">
		
		<h3>{{ExpenseBill.ACCEPT_NAME}}</h3>
		<div class="detail-top-base">
			<view class="span24">
				<text class="text-title">{{ExpenseBill.DEPT_NAME}}：</text>
				<text >{{ExpenseBill.STAFF_NAME}}</text>
			</view>
			<text v-if="ExpenseBill.ExpenseBill">{{ $util.cutDate(ExpenseBill.ExpenseBill.OPERATE_DATE) }}</text>
		</div>
		<view class="uni-flex deposit-total ai-center" >
			<div class="detail-title" style="color: #333;">
				<i class="ico ico-ndbz"></i>
				退付合计：
			</div>
			<text class="span24" style="color:#ec8538;" v-if="ExpenseBill.ExpenseBill">￥{{$util.fmoney(ExpenseBill.ExpenseBill.TOTALAMOUNT_LOWER,2)}}</text>
		</view>
			
		<view class="detail-top-box mt24" v-for="(item,index) in ExpenseBill.ExpenseDetail" :key="index">
			
			
			<view class="detail-top-bottom" >
				<view  >
					<div class="detail-title strong-text">
						经济事项{{index+1}}：
					</div>
					<div class="span24" >
						{{item.ECONOMIC_MATTERS}}
					</div>
					
				</view>
				
				<view class="uni-flex span24 mt8 ai-center"  >
					<view class="detail-title">
							
						<i class="ico ico-ndbz"></i><text class="text-title">退付金额： </text>
					</view>
					<text style="color:#ec8538;">￥{{$util.fmoney(item.AMOUNT_LOWER,2)}}</text>
				</view>
				
				<!-- <view class="line-block between-circle"></view> -->
				
				<view class="uni-flex mt8 ai-top" >
					<div class="detail-title">
						<i class="ico ico-dw"></i>
						收款单位：
					</div>
					<text class="span24">{{item.PAYEE}}</text>
				</view>
				
				
				<view class="uni-flex mt8 ai-center"  >
					<div class="detail-title">
						<i class="ico ico-skzh"></i>
						收款账号：
					</div>
					<text class="span24">{{item.BANK_ACCOUNT}}</text>
				</view>
				<view class="uni-flex mt8 ai-top" >
					<div class="detail-title">
						<i class="ico ico-khyh"></i>
						开户银行：
					</div>
					<text class="span24">{{item.BANK_NAME}}</text>
				</view>
				<view class="uni-flex mt8" >
					<div class="detail-title">
						<i class="ico ico-dzfp"></i>
						凭 证 号：
					</div>
					<text class="span24">{{item.VOUCHER_NO}}</text>
				</view>
				
				<view class="uni-flex mt8 ai-top" >
					<div class="detail-title">
						<i class="ico ico-ly"></i>
						备注说明：
					</div>
					<text class="span24">{{item.REMARK}}</text>
				</view>
				
				
			</view>
		
		</view>
		<view class="detail-top-box  detail-top-bottom mt24" v-if=" ExpenseBill.FileList || ExpenseBill.ImageList">
			
			<view class="attachment" v-if="ExpenseBill.FileList && ExpenseBill.FileList.length>0">
				<p class="detail-title">
					<i class="ico ico-fj"></i>
					<span>附 件</span>
				</p>
				<div class="imgBox">
					<filesUnit v-for="(file,i) in ExpenseBill.FileList" :fileItem="file" :key="i"></filesUnit>
					
				</div>
			</view>
			<view class="attachment" v-if="ExpenseBill.ImageList && ExpenseBill.ImageList.length>0">
				<div  class="detail-title">
					<i class="ico ico-tp"></i>
					<text>图 片</text>
				</div>
				<div class="imgBox">
					<image v-for="(arr,i) in ExpenseBill.ImageList" :key="i" :src="arr.IMAGE_URL" @tap="showImg(i)" mode="aspectFill" lazy-load/>
				</div>
			</view>
		</view>
	
	</view>
</template>

<script>
	import filesUnit from '@/components/filesComponent/fileUnit.vue'
	export default {
		props:['ExpenseBill','pageName'],
		methods: {
			showImg (index){
				this.$emit('showImg',index)
			}
		},
		components:{
			filesUnit
		}
	}
</script>

<style scoped>
	@import url("/common/css/expensesTop.css");
	.strong-text {
		color: #333;
		font-weight: 600;
	}
	.deposit-total {
		background: linear-gradient(to top, #f0e4d8 0%, #fcfbf8 100%);
		height: 80rpx;
		padding: 0 20rpx;
		border-radius:  8rpx 8rpx ;
	}
</style>
