<!-- 付款报销审批 -->
<template>
	
		<view v-if="ExpenseBill">
			<h3>{{ExpenseBill.PROINST_NAME}}</h3>
				<!-- <h4>{{getName}}</h4> -->
			<div class="detail-top-base">
				<view class="span24">
					<text class="text-title">申请人：</text>
					<text >{{ExpenseBill.STAFF_NAME}}</text>
				</view>
				<text>{{$util.cutDate(ExpenseBill.HIGHWAYPROINST_CREATEDATE)}}</text>
			</div>
		
			
			<view class="detail-top-box">
				<view class="detail-top-bottom">
					
					<view class="uni-flex span24" style="align-items: center;">
						<view class="detail-title">
							<i class="ico ico-ndbz"></i><text class="text-title">报销总额：</text>
							
						</view>
						<text style="color:#ec8538;">￥{{$util.fmoney(ExpenseBill.PAYMENT_LOWER,2)}}</text>
					
					</view>
					<view class="uni-flex span24 mt8" style="align-items: center;">
						<view class="span24 uni-flex" style="flex: 1;align-items: center;" v-if="ExpenseBill.DEPARTMENT_NAME">
							<view class="detail-title">
								<i class="ico ico-bm"></i><text class="text-title">报销部门：</text>
								
							</view>
							<text>{{ExpenseBill.DEPARTMENT_NAME}}</text>
						</view>
						<view class="span24 uni-flex" style="flex: 1;align-items: center;">
							<view class="detail-title">
								<i class="ico ico-rzlx"></i>
								<text class="text-title">付款方式：</text>
								
							</view>
							<text>{{ExpenseBill.PAY_TYPE}}</text>
							
						</view>
					</view>
					<view class="line-block between-circle"></view>
				
					<view class="uni-flex ai-top"  v-if="ExpenseBill.PAYEE_UNIT">
						<div class="detail-title">
							<i class="ico ico-dw"></i>
							收款单位：
						</div>
						<text class="span24">{{ExpenseBill.PAYEE_UNIT}}</text>
					</view>
					<view class="uni-flex mt8 ai-top" v-if="ExpenseBill.BANK_NAME">
						<div class="detail-title">
							<i class="ico ico-skzh"></i>
							开户银行：
						</div>
						<text class="span24">{{ExpenseBill.BANK_NAME}}</text>
					</view>
					<view class="uni-flex mt8 ai-center"  v-if="ExpenseBill.BANK_ACCOUNT">
						<div class="detail-title">
							<i class="ico ico-khyh"></i>
							银行账号：
						</div>
						<text class="span24">{{ExpenseBill.BANK_ACCOUNT}}</text>
					</view>
					<view class="uni-flex mt8 ai-top" v-if="ExpenseBill.PAYMENT_DETAIL">
						<div class="detail-title">
							<i class="ico ico-bz"></i>
							付款内容：
						</div>
						<text class="span24">{{ExpenseBill.PAYMENT_DETAIL}}</text>
					</view>
				
				</view>
				<view class="detail-middle-box">		
					<view class="attachment" v-if="ExpenseBill.ImgList && ExpenseBill.ImgList.length>0">
						<div class="detail-title">
							<i class="ico ico-tp"></i>
							图片
						</div>
						<div class="imgBox">
							<image v-for="(arr,i) in ExpenseBill.ImgList" :key="i" :src="arr.IMAGE_URL" @tap="showImg(i)" mode="aspectFill" />
						</div>
					</view>
					<view class="attachment" v-if="ExpenseBill.FileList && ExpenseBill.FileList.length>0">
						<div class="detail-title">
							<i class="ico ico-fj"></i>
							<text class="text-title">附件</text>
						</div>
						<div class="imgBox">
							<filesUnit v-for="(file,i) in ExpenseBill.FileList" :fileItem="file" :key="i"></filesUnit>
							
						</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");


</style>
