<!-- 固定资产 -->
<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">申请人：</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-zcmc"></i>
							资产名称：
						</div>
						<text class="span24" style="max-width: 490upx;">{{ExpenseBill.ExpenseBill.DEPARTMENT_NAME}}</text>
					</view>
					<view class="uni-flex mt8" style="align-items: center;justify-content: space-between;">
						
						<view class="uni-flex span24 "  style="align-items: center;flex:1;">
							<view class="detail-title">
								<i class="ico ico-ljzj"></i>累计折旧：
							</view>
							
							<text style="color:#ec8538;">￥{{  $util.fmoney(ExpenseBill.FIXEDASSETS_PRICE,2)}}</text>
						</view>
						
						<view class="uni-flex " style="align-items:center;flex:1;" >
							<div class="detail-title">
								<i class="ico ico-khyh"></i>
								资产净值：
							</div>
							<text class="span24">{{ $util.fmoney(ExpenseBill.DEPRECIATION_PRICE)}}</text>
						</view>
					</view>
					<view class="uni-flex mt8" style="align-items: center;justify-content: space-between;">
						<view class="uni-flex " style="align-items:center; flex:1;" >
							<div class="detail-title">
								<i class="ico ico-zcyz"></i>
								资产原值：
							</div>
							<text class="span24">{{ $util.fmoney(ExpenseBill.PROPERTY_PRICE)}}</text>
						</view>
						<view class="uni-flex " style="align-items:center; flex:1;">
							<div class="detail-title">
								<i class="ico ico-gzsl"></i>
								购置数量：
							</div>
							<text class="span24">{{ ExpenseBill.ExpenseBill.BUY_AMOUNT}}</text>
						</view>
						
					</view>
					<view class="uni-flex mt8" style="align-items:center;">
						<div class="detail-title">
							<i class="ico ico-sjx"></i>
							购置日期：
						</div>
						<text class="span24">{{ $util.cutDate(ExpenseBill.ExpenseBill.BUY_DATE) }}</text>
					</view>
					
				</view>
				<view class="detail-middle-box" v-if="ExpenseBill.ExpenseBill.EXPENDBILL_DESC|| ExpenseBill.FileList || ExpenseBill.ImageList">
					
					
					<view class="uni-flex mt8" style="align-items:flex-start;">
						<div class="detail-title">
							<i class="ico ico-bz"></i>
							备注说明：
						</div>
						<text class="span24">{{ ExpenseBill.ExpenseBill.EXPENDBILL_DESC }}</text>
					</view>
					<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>
		
		</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");



	.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: 1upx solid rgb(234, 234, 234);
		box-shadow: 0px 1upx 8upx rgb(234, 234, 234);
		border-radius: 14upx;
		margin-bottom: 20upx;
		margin-left: 30upx;
		margin-right: 30upx;
		padding: 20upx 24upx 20upx 24upx;
	}
	.trip-subsidies + .trip-subsidies {
	
		margin-top: 16upx;
		padding-top: 16upx;
		border-top: 2upx dashed rgb(234, 234, 234);
	}
	
	.trip-subsidies span {
		font-size: 24upx;
	}
</style>
