<!-- 借款审批 -->
<template>
	<view v-if="ExpenseBill">
		
		<h3>{{ExpenseBill.ACCEPT_NAME}}</h3>
		<div class="detail-top-base">
			<view class="span24">
				<text class="text-title">{{ExpenseBill.ExpenseBill.PERSON_DEPARTMENT}}：</text>
				<text >{{ExpenseBill.ExpenseBill.STAFF_NAME}}</text>
			</view>
			<text v-if="ExpenseBill.ExpenseBill">{{ $util.cutDate(ExpenseBill.ExpenseBill.OPERATE_DATE) }}</text>
		</div>
		<view class="detail-top-box">
			<view class="detail-top-bottom ">
				<view class="uni-flex " style="align-items:flex-start;" >
					<div class="detail-title">
						<i class="ico ico-ly"></i>
						开支项目：
					</div>
					<text class="span24">{{ExpenseBill.ExpenseBill.PROJECT_NAME}}</text>
				</view>
				
				<view class="uni-flex span24 mt8"  style="align-items: center;">
					<view class="detail-title">
							
						<i class="ico ico-ndbz"></i><text class="text-title">报销金额： </text>
					</view>
					<text style="color:#ec8538;" v-if="ExpenseBill.ExpenseBill">￥{{$util.fmoney(ExpenseBill.ExpenseBill.AMOUNT_LOWER,2)}}</text>
				</view>
				
				<!-- <view class="line-block between-circle"></view> -->
				
				<view class="uni-flex mt8" >
					<div class="detail-title">
						<i class="ico ico-dzfp"></i>
						单据张数：
					</div>
					<text class="span24">{{ExpenseBill.ExpenseBill.BILL_COUNT}}</text>
				</view>
			</view>
		</view>
		<view class="detail-top-box mt24" v-if="ExpenseBill.TransferBill">
			<view class="transfer-bill">转账单</view>
				<view class="detail-top-bottom">
				<view class="uni-flex mt8" >
					<div class="detail-title">
						<i class="ico ico-dw"></i>
						单位名称：
					</div>
					<text class="span24">{{ExpenseBill.TransferBill.UNIT_NAME}}</text>
				</view>
				<view class="uni-flex mt8" >
					<div class="detail-title">
						<i class="ico ico-ndbz"></i>
						转账金额：
					</div>
					<text class="span24">{{ExpenseBill.TransferBill.TRANSFER_AMOUNT}}</text>
				</view>
				<view class="uni-flex mt8 ai-top" >
					<div class="detail-title">
						<i class="ico ico-zcmc"></i>
						开户银行：
					</div>
					<text class="span24">{{ExpenseBill.TransferBill.BANK_NAME}}</text>
				</view>
				<view class="uni-flex mt8" >
					<div class="detail-title">
						<i class="ico ico-skzh"></i>
						开户账户：
					</div>
					<text class="span24">{{ExpenseBill.TransferBill.BANK_ACCOUNT}}</text>
				</view>	
				<view class="uni-flex mt8" >
					<div class="detail-title">
						<i class="ico ico-ly"></i>
						备注：
					</div>
					<text class="span24">{{ExpenseBill.TransferBill.TRANSFERBILL_AH_DESC}}</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");
	.transfer-bill {
		color: #333333;
		font-size: 24rpx;
		background: #F4F5F7;
		height: 64rpx;
		line-height: 64rpx;
		padding-left: 30rpx;
	}
</style>
