<!-- 内部转账 -->
<template>

		<view v-if="ExpenseBill">
			
			<h4>{{ExpenseBill.DEPT_NAME}}</h4>
			<h3>{{ExpenseBill.ACCEPT_NAME}}</h3>
			<div class="detail-top-base">
				<view class="span24">
					<text class="text-title">{{ExpenseBill.ExpenseBill.DEPARTMENT_NAME}}：</text>
					<text >{{ExpenseBill.STAFF_NAME}}</text>
				</view>
				<text>{{$util.cutDate(ExpenseBill.FINANCEPROINST_CREATEDATE)}}</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-bz"></i>
							款项内容：
						</div>
						<text class="span24" style="max-width: 490upx;">{{ExpenseBill.ExpenseBill.FUND_INFO}}</text>
					</view>
		
					<view class="uni-flex span24 mt8"  style="align-items: center;flex:1;">
						<view class="detail-title">
							<i class="ico ico-ndbz"></i>转账金额：
						</view>
						
						<text style="color:#ec8538;">￥{{  $util.fmoney(ExpenseBill.PAYMENT_LOWER,2)}}</text>
					</view>
					<view class="line-block between-circle"></view>
					<div class="">
						<div class="card-title">
							<text style="color:#63A0E5; margin-right:16upx;" >付款单位</text>
							{{ExpenseBill.ExpenseBill.DEPARTMENT_NAME}}
						</div>
						<view >{{ExpenseBill.ExpenseBill.PAY_ACCOUNT}}</view>
						<text class="card-heeader-text">{{ExpenseBill.ExpenseBill.PAY_BANK}}</text>
					</div>
					<view class="line-block"></view>
					<div class=" mt8">
						<div class="card-title">
							<text style="color:#63A0E5; margin-right:16upx;" >收款单位</text>
							{{ExpenseBill.ExpenseBill.PAYEE_DEPARTMENT}}
						</div>
						
						<view >{{ExpenseBill.ExpenseBill.RECIPIENT_ACCOUNT}}</view>
						<text class="card-heeader-text">{{ExpenseBill.ExpenseBill.RECIPIENT_BANK}}</text>
					
					</div>
				</view>
				<view class="detail-middle-box" v-if=" ExpenseBill.FileList || ExpenseBill.ImageList">
					
					<view class="attachment" v-if="ExpenseBill.FileList && ExpenseBill.FileList.length>0">
						<view class="detail-title">
							<i class="ico ico-fj"></i>
							附 件
						</view>
						<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>
		
		
		</view>


</template>

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

<style scoped>
	@import url("/common/css/expensesTop.css");
	.card-title {
		display: flex;
		color: #333;
		font-size: 26upx;
		justify-content: flex-start; 
		align-items: flex-start;
	
	}
	.card-heeader-text {
		background-color: #A6AECA;
		color: #fff;
		padding: 4upx 12upx;
		border-radius: 8upx;
		font-size: 24upx;
	}
</style>
