<!-- 差旅费报销 -->
<template>
	
	<view v-if="ExpenseBill">
		
		<h3>{{ExpenseBill.PROINST_NAME}}</h3>
		<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 ai-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 ai-center" >
					<view class="detail-title">
						
						<i class="ico ico-bm"></i><text class="text-title">报销部门：</text> 
					</view>
					<text>{{ExpenseBill.DEPARTMENT_NAME}}</text>
				</view>
	
				<view class="detail-flex mt8 ai-center" >
					<div class="detail-title">
						<i class="ico ico-ccry"></i>出差人员:
					</div>
					<text>
						{{ExpenseBill.BUSINESS_PERSON}}
					</text>
				</view>
				<view class="detail-flex mt8" >
					<view class="detail-title">
						<i class="ico ico-ccsy"></i>出差事由:
					</view>
					<text >
						{{ExpenseBill.BUSINESS_REASON}}
					</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 {mapGetters} from 'vuex'
	import filesUnit from '@/components/filesComponent/fileUnit.vue'
	
	export default {
		props: ['ExpenseBill'],
		
		components: {
			
			filesUnit
		},
		
		methods: {
			// 图片预览
			showImg(index) {
				this.$emit('showImg',index)
			}
		
		}
	}
</script>

<style scoped>
	@import url("/common/css/expensesTop.css");
	.ico-big::before {
		width: 40upx;
		height: 40upx;
		margin-right: 0;
		vertical-align: top;
	}
	
	.ico-rs1::before{
		vertical-align: unset;
	}
	
	.ico-big2::before {
		width: 60upx;
		height: 60upx;
	}

	.uni-list-cell:after {
		height: 0;
	}

	.base-info {
		margin-top: 30upx;
	}

	.trip-detail {
		border: 1px solid rgb(234, 234, 234);
		box-shadow: 0px 1px 8px rgb(234, 234, 234);
		border-radius: 7px;
		margin-bottom: 20upx;
		margin-left: 30upx;
		margin-right: 30upx;
		padding: 20upx 24upx 20upx 24upx;
	}
	.trip-subsidies {
		display: flex;
		justify-content: space-between;
		margin-top: 16upx;
		/* margin-bottom: 20upx; */
		border-top: 1upx dashed rgb(234, 234, 234);
	}
	
	.trip-subsidies span {
		font-size: 24upx;
	}
</style>
