2020-11-12 14:57:34 +08:00

161 lines
5.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="trip-detail" >
<view class="trip-detail-top">
<view class="uni-flex" style="justify-content: space-between;">
<text class="span24">{{$util.cutDate(item.START_DATE,'YYYY-MM-DD')}}</text>
<text class="span24">{{$util.cutDate(item.ARRIVE_DATE,'YYYY-MM-DD')}}</text>
</view>
<view class="trip-detail-traffic">
<view class="trip-addr">{{item.START_PLACE}}</view>
<view class="jt-logo">
<image v-if="item.VEHICLE_TYPE==='出租车'" src="../../static/images/expense/taxi.png" mode="aspectFit" ></image>
<image v-else-if="item.VEHICLE_TYPE==='飞机'" src="../../static/images/expense/fj.png" mode="aspectFit" ></image>
<image v-else-if="item.VEHICLE_TYPE==='高铁'|| item.VEHICLE_TYPE==='动车'" src="../../static/images/expense/gt.png" mode="aspectFit" ></image>
<image v-else-if="item.VEHICLE_TYPE==='火车'" src="../../static/images/expense/hc.png" mode="aspectFit" ></image>
<image v-else-if="item.VEHICLE_TYPE==='轮船'" src="../../static/images/expense/lc.png" mode="aspectFit" ></image>
<image v-else src="../../static/images/expense/qc.png" mode="aspectFit" ></image>
</view>
<view class="trip-addr" style="text-align: right;">{{item.ARRIVE_PLACE}}</view>
</view>
<view class="uni-flex" style="justify-content: space-between;align-items: center;">
<view class="uni-flex" style="align-items: center;">
<div >
<image src="../../static/images/expense/rs.png" mode="aspectFit" style="width: 20upx;height: 24upx;margin-right: 8upx;vertical-align: middle;"></image>
<text class="text63 span24">{{item.SUBSIDY_POPULATION||0}} </text>
</div>
<div style="margin-left: 24upx;">
<image src="../../static/images/expense/pj.png" mode="aspectFit" style="width: 30upx;height: 24upx;margin-right: 8upx;vertical-align: middle;"></image>
<text class="text63 span24">{{item.BILL_COUNT||0}} </text>
</div>
</view>
<view class="trip-price">交通<span>{{$util.fmoney(item.BILL_AMOUNT,2)||'0.00'}}</span></view>
</view>
</view>
<block v-if="cardType==1">
<view class="uni-flex card-bottom" v-if="item.SUBSIDY_DAY || item.URBAN_TRAFFIC_ALLOWANCE || item.SUBSIDY_AMOUNT">
<view style="flex:1;" v-if="item.SUBSIDY_DAY"><text class="text-title">补贴天数</text><text>{{item.SUBSIDY_DAY||'暂无'}}</text></view>
<view style="flex:1;" v-if="item.URBAN_TRAFFIC_ALLOWANCE"><text class="text-title">补贴标准</text><text>{{item.URBAN_TRAFFIC_ALLOWANCE||'暂无'}}</text></view>
<view style="flex:1;text-align: right;" v-if="item.SUBSIDY_AMOUNT"><text class="text-title">补贴金额</text><text>{{item.SUBSIDY_AMOUNT||'暂无'}}</text></view>
</view>
</block>
<block v-else>
<view class=" card-bottom" v-if="item.EXPENSE_ITEM || item.OTHER_COST || item.EXPENSEDETAIL_DESC">
<view class="uni-flex" style="align-items: center;justify-content: space-between;">
<view style="flex:1;" v-if="item.EXPENSE_ITEM"><text class="text-title">制度规定标准</text><text>{{item.EXPENSE_ITEM||'暂无'}}</text></view>
<view style="flex:1;text-align: right;" v-if="item.OTHER_COST"><text class="text-title">实际乘坐标准</text><text>{{item.OTHER_COST||'暂无'}}</text></view>
</view>
<view class="uni-flex" style="align-items: flex-start;" v-if="item.EXPENSEDETAIL_DESC"><text class="text-title">备注</text><text>{{item.EXPENSEDETAIL_DESC||'暂无'}}</text></view>
</view>
</block>
</view>
</template>
<script>
export default {
props: {
item: Object,
cardType: {
default: '1', // 1普通2 超标准
type: String
}
},
}
</script>
<style scoped>
.trip-detail {
border: 2upx 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-detail-top {
width: 100%;
box-sizing: border-box;
}
.text63 {
color: #696969;
font-size: 24upx;
}
.trip-detail-traffic {
display: flex;
justify-content: space-between;
align-items: center;
/* margin-bottom: 8upx; */
}
.trip-detail-traffic>view {
height: 100%;
}
.trip-addr {
font-size: 30upx;
flex: 2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
}
.jt-logo {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGkAAAAICAYAAAD6KtHFAAAAjElEQVRIie3WIQoCQRQG4G/FIggWi9Fm9hpewCu4V7CKeBejBxCr7Aab51AQ29oMslOdCe+L//zhwYPhVV3XCfm0bXvAHo9UZ/C/cUJCjTPmqUIsKb83lrhi1VeIJZVjihO2vw+xpLJU2OGIyTdsmibbRAE8Me7J71jjNkScd3m9EvkCF2ziuyvbCLMPK6EWTFmpDO0AAAAASUVORK5CYII=") no-repeat center 36upx;
background-size: 100%;
width: 50px;
text-align: center;
vertical-align: top;
display: inline-block;
}
.trip-price {
color: #6cc09c;
font-size: 24upx;
display: flex;
align-items: center;
}
.trip-price span {
color: #ec8538;
font-size: 28upx;
margin-left: 10upx;
}
.jt-logo image {
width: 78upx;
height: 50upx;
}
.text-title {
color: #888;
}
.card-bottom {
align-items: center;
border-top: 2upx dashed #eee;
padding-top: 12upx;
margin-top: 8upx;
}
.card-bottom text {
font-size: 24upx;
}
</style>