2025-06-19 17:33:18 +08:00

407 lines
20 KiB
Plaintext
Raw Permalink 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.

<wxs module="test" src="./costEstimationDetail.wxs"></wxs>
<view>
<view class="container">
<view class="box {{showBox.base ? '' : 'pdb_20'}}" wx:if="{{type == 'check'}}">
<view class="row flex-between">
<view class="left flex-align">
<view class="bg"></view>
<view>基本信息</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.base}}" data-fieldName="base" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.base}}" data-fieldName="base" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.base}}">
<view class="info-item" wx:for="{{showList.baseInfo}}" wx:for-item="item" wx:for-index="index">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{item.label}}</view>
</view>
<view class="right">
<view>{{(dataInfo[item.prop] !== '' && dataInfo[item.prop] !== null) ? dataInfo[item.prop] : '/'}}
{{ (dataInfo[item.prop] !== '' && dataInfo[item.prop] !== null) && item.append ? item.append : ''}}
</view>
</view>
</view>
</view>
</view>
</view>
<view class="box pdb_20" wx:if="{{type == 'check'}}">
<view class="row flex-between">
<view class="left flex-align">
<view class="bg"></view>
<view>车型信息</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.vehicle}}" data-fieldName="vehicle" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.vehicle}}" data-fieldName="vehicle" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.vehicle}}">
<view class="vehicleCostList" wx:for="{{dataInfo.vehicleCostList}}" wx:for-item="item" wx:for-index="index">
<view>
<view class="info-item border-bottom" wx:for="{{showList.vehicleInfo}}" wx:for-item="el" wx:for-index="index">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{el.label}}</view>
</view>
<view class="right">
<view>{{(item[el.prop] !== '' && item[el.prop] !== null) ? item[el.prop] : '/'}}
{{ (item[el.prop] !== '' && item[el.prop] !== '') && el.append ? el.append : ''}}
</view>
</view>
</view>
</view>
</view>
<view style="margin-top: 8px;">
<view class="title">租赁费用(万元/月/台)</view>
<view class="info-item" style="border-bottom: 2rpx solid #E6EAF2;" wx:for="{{showList.yearList}}" wx:for-item="el" wx:for-index="index">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{el.label}}</view>
</view>
<view class="right">
<view>{{(item[el.prop] !== '' && item[el.prop] !== null) ? item[el.prop] : '/'}}{{ (item[el.prop] !== '' && item[el.prop] !== null) && el.append ? el.append : ''}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{type == 'add'}}" class="top">
<view class="top-bg">
<image class="first" src="../../../images/bg_page_blue.png" mode="" />
<image class="second" src="../../../images/top-bg.png" mode="" />
</view>
<view class="content">
<view class="content-top">
<view class="label">净利润(万元)</view>
<view class="val">{{dataInfo.calculateObject.result[0].netProfit}}</view>
</view>
<view class="content-middle">
<view class="item">
<view class="val-container">
<view class="val {{test.numberLength(dataInfo.calculateObject.result[0].carCostRecovery)}}">{{dataInfo.calculateObject.result[0].carCostRecovery}}</view>
</view>
<view class="label">购车成本回收期(年)</view>
</view>
<view class="item">
<view class="val-container">
<view class="val {{test.numberLength(dataInfo.calculateObject.result[0].financingCost)}}">{{dataInfo.calculateObject.result[0].financingCost}}</view>
</view>
<view class="label">融资成本(万元)</view>
</view>
<view class="item">
<view class="val-container">
<view class="val {{test.numberLength(dataInfo.calculateObject.result[0].internalRate)}}">{{dataInfo.calculateObject.result[0].internalRate !== null ? dataInfo.calculateObject.result[0].internalRate : '/'}}</view>
</view>
<view class="label">内部收益率(%</view>
</view>
<view class="item">
<view class="val-container">
<view class="val {{test.numberLength(dataInfo.calculateObject.result[0].vatAndAdditional)}}">{{dataInfo.calculateObject.result[0].vatAndAdditional}}</view>
</view>
<view class="label">实缴增值税及附加(万元)</view>
</view>
<view class="item">
<view class="val-container">
<view class="val {{test.numberLength(dataInfo.calculateObject.result[0].incomeTax)}}">{{dataInfo.calculateObject.result[0].incomeTax}}</view>
</view>
<view class="label">所得税(万元)</view>
</view>
<view class="item">
<view class="val-container">
<view class="val {{test.numberLength(dataInfo.calculateObject.result[0].salvageValue)}}">{{dataInfo.calculateObject.result[0].salvageValue}}</view>
</view>
<view class="label">残值(万元)</view>
</view>
</view>
</view>
</view>
<view class="box {{showBox.result ? '' : 'pdb_20'}}" wx:if="{{type == 'check'}}">
<view class="row flex-between">
<view class="left flex-align">
<view class="bg"></view>
<view>测算结果</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.result}}" data-fieldName="result" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.result}}" data-fieldName="result" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.result}}">
<view class="info-item" wx:for="{{showList.result}}" wx:for-item="item" wx:for-index="index">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{item.label}}</view>
</view>
<view class="right">
<view>{{(dataInfo.calculateObject.result[0][item.prop] !== '' && dataInfo.calculateObject.result[0][item.prop] !== null) ? dataInfo.calculateObject.result[0][item.prop] : '/'}}
{{ (dataInfo.calculateObject.result[0][item.prop] !== '' || dataInfo.calculateObject.result[0][item.prop] !== null) && item.append ? item.append : ''}}
</view>
</view>
</view>
</view>
</view>
</view>
<view class="box {{showBox.rentalIncome ? '' : 'pdb_20'}}">
<view class="row flex-between">
<view class="left flex-align">
<view class="bg"></view>
<view>租金收入</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.rentalIncome}}" data-fieldName="rentalIncome" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.rentalIncome}}" data-fieldName="rentalIncome" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.rentalIncome}}">
<view wx:for="{{dataInfo.calculateObject.rentalIncome}}" wx:for-item="el" wx:for-index="idx">
<view class="info-item border-bottom" wx:for="{{showList.yearList}}" wx:for-item="item" wx:for-index="index">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{item.label}}</view>
</view>
<view class="right">
<view>{{(el[item.prop] !== '' && el[item.prop] !== null) ? el[item.prop] : '/'}}
{{ (el[item.prop] !== '' || el[item.prop] !== null) && item.append ? item.append : ''}}
</view>
</view>
</view>
</view>
<view class="info-item">
<view class="flex-between">
<view class="left flex-align">
<view class="label" style="font-weight: bold;">合计</view>
</view>
<view class="right flex-end ">
<view class="total">{{(el.total !== '' && el.total !== null) ? el.total : '/'}}</view>
<view>万元</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="box pdb_20">
<view class="row flex-between">
<view class="left flex-align">
<view class="bg"></view>
<view>管理、运维、保险费用</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.manageCostList}}" data-fieldName="manageCostList" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.manageCostList}}" data-fieldName="manageCostList" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.manageCostList}}">
<view class="vehicleCostList" wx:for="{{dataInfo.calculateObject.manageCostList}}" wx:for-item="item" wx:for-index="index">
<view>
<view class="row flex-between title2">
<view class="left flex-align">
<view>{{item.itemName}}</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.showBoxChild.manageCostList[index]}}" data-type="showBoxChild" data-fieldName="manageCostList" data-index="{{index}}" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.showBoxChild.manageCostList[index]}}" data-type="showBoxChild" data-fieldName="manageCostList" data-index="{{index}}" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.showBoxChild.manageCostList[index]}}">
<view class="info-item" style="border-bottom: 2rpx solid #E6EAF2;" wx:for="{{showList.yearList}}" wx:for-item="el" wx:for-index="index">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{el.label}}</view>
</view>
<view class="right">
<view>{{(item[el.prop] !== '' && item[el.prop] !== null) ? item[el.prop] : '/'}}{{ (item[el.prop] !== '' && item[el.prop] !== null) && el.append ? el.append : ''}}</view>
</view>
</view>
</view>
</view>
<view class="total-item">
<view class="flex-between">
<view class="left flex-align">
<view class="label" style="font-weight: bold;">合计</view>
</view>
<view class="right flex-end ">
<view class="total">{{(item.total !== '' && item.total !== null) ? item.total : '/'}}</view>
<view>万元</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="box pdb_20">
<view class="row flex-between">
<view class="left flex-align">
<view class="bg"></view>
<view>收入与税金表</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.incomeAndTax}}" data-fieldName="incomeAndTax" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.incomeAndTax}}" data-fieldName="incomeAndTax" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.incomeAndTax}}">
<view class="vehicleCostList" wx:for="{{dataInfo.calculateObject.incomeAndTax}}" wx:for-item="item" wx:for-index="index">
<view>
<view class="row flex-between title2">
<view class="left flex-align">
<view>{{item.itemName}}</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.showBoxChild.incomeAndTax[index]}}" data-type="showBoxChild" data-fieldName="incomeAndTax" data-index="{{index}}" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.showBoxChild.incomeAndTax[index]}}" data-type="showBoxChild" data-fieldName="incomeAndTax" data-index="{{index}}" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.showBoxChild.incomeAndTax[index]}}">
<view class="info-item" style="border-bottom: 2rpx solid #E6EAF2;" wx:for="{{showList.yearList}}" wx:for-item="el" wx:for-index="index">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{el.label}}</view>
</view>
<view class="right">
<view>{{(item[el.prop] !== '' && item[el.prop] !== null) ? item[el.prop] : '/'}}{{ (item[el.prop] !== '' && item[el.prop] !== null) && el.append ? el.append : ''}}</view>
</view>
</view>
</view>
</view>
<view class="total-item">
<view class="flex-between">
<view class="left flex-align">
<view class="label" style="font-weight: bold;">合计</view>
</view>
<view class="right flex-end ">
<view class="total">{{(item.total !== '' && item.total !== null) ? item.total : '/'}}</view>
<view>万元</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="box pdb_20">
<view class="row flex-between">
<view class="left flex-align">
<view class="bg"></view>
<view>成本与利润表</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.costAndProfitList}}" data-fieldName="costAndProfitList" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.costAndProfitList}}" data-fieldName="costAndProfitList" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.costAndProfitList}}">
<view class="vehicleCostList" wx:for="{{dataInfo.calculateObject.costAndProfitList}}" wx:for-item="item" wx:for-index="index">
<view>
<view class="row flex-between title2">
<view class="left flex-align">
<view>{{item.itemName}}</view>
</view>
<view class="right">
<view class="btn" wx:if="{{showBox.showBoxChild.costAndProfitList[index]}}" data-type="showBoxChild" data-fieldName="costAndProfitList" data-index="{{index}}" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.showBoxChild.costAndProfitList[index]}}" data-type="showBoxChild" data-fieldName="costAndProfitList" data-index="{{index}}" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.showBoxChild.costAndProfitList[index]}}">
<view class="info-item" style="border-bottom: 2rpx solid #E6EAF2;" wx:for="{{showList.yearList}}" wx:for-item="el" wx:for-index="index">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{el.label}}</view>
</view>
<view class="right">
<view>{{(item[el.prop] !== '' && item[el.prop] !== null) ? item[el.prop] : '/'}}{{ (item[el.prop] !== '' && item[el.prop] !== null) && el.append ? el.append : ''}}</view>
</view>
</view>
</view>
</view>
<view class="total-item">
<view class="flex-between">
<view class="left flex-align">
<view class="label" style="font-weight: bold;">合计</view>
</view>
<view class="right flex-end ">
<view class="total">{{(item.total !== '' && item.total !== null) ? item.total : '/'}}</view>
<view>万元</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="operateBtn">
<view catchtap="delete" class="cancelBtn" wx:if="{{type == 'check'}}">删除</view>
<view class="button-list" wx:if="{{type == 'add'}}">
<view class="cancelBtn" style="width: 49%;" catchtap="goback">上一步</view>
<view class="submitBtn" style="width: 49%;" catchtap="submit">提交</view>
</view>
</view>
<van-dialog id="van-dialog" />
</view>