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

221 lines
12 KiB
Plaintext

<view>
<view class="container">
<view class="box {{showBox.base ? '' : '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.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">
<view class="flex-between">
<view class="left flex-align">
<view class="require">*</view>
<view>项目</view>
</view>
<view class="right">
<input placeholder-style="color:#949CB5" data-fieldName="projectId" bindinput="inputChange" value="{{params.projectId}}" type="text" placeholder="请输入" style="width:100%;" />
</view>
</view>
<view class="tips" wx:if="{{requireObj.projectId}}">{{requireObj.projectId}}</view>
</view>
<view class="info-item">
<view class="flex-between">
<view class="left flex-align">
<view class="require">*</view>
<view>租赁年限</view>
</view>
<view class="right flex-align selectItem" data-fieldName="yearLimitShow" catch:tap="pickerChange">
<view wx:if="{{dictTextList.yearLimit_dictText}}">{{dictTextList.yearLimit_dictText}}</view>
<view class="placeholder" wx:else>请选择</view>
<view class="arrow"></view>
</view>
</view>
</view>
<van-popup show="{{showList.yearLimitShow}}" position="bottom" bind:close="hidePicker">
<van-picker data-fieldname="yearLimit" data-dicttext="yearLimit_dictText" show-toolbar columns="{{yearLimitList}}" bind:confirm="pickerConfirm" bind:cancel="hidePicker"></van-picker>
</van-popup>
<view class="info-item">
<view class="flex-between">
<view class="left flex-align">
<view class="require">*</view>
<view>融资比例</view>
</view>
<view class="right flex-align">
<input placeholder-style="color:#949CB5" data-fieldName="financingRatio" data-type="rate" bindblur="numberChange" value="{{params.financingRatio}}" type="digit" placeholder="请输入" style="width:100%;" />
<view class="append">%</view>
</view>
</view>
<view class="tips" wx:if="{{requireObj.financingRatio}}">{{requireObj.financingRatio}}</view>
</view>
<view class="info-item">
<view class="flex-between">
<view class="left flex-align">
<view class="require">*</view>
<view>融资利率</view>
</view>
<view class="right flex-align">
<input placeholder-style="color:#949CB5" data-fieldName="financingRate" data-type="rate" bindblur="numberChange" value="{{params.financingRate}}" type="digit" placeholder="请输入" style="width:100%;" />
<view class="append">%</view>
</view>
</view>
<view class="tips" wx:if="{{requireObj.financingRate}}">{{requireObj.financingRate}}</view>
</view>
<view class="info-item">
<view class="flex-between">
<view class="left flex-align">
<view class="require">*</view>
<view>管理分担费用</view>
</view>
<view class="right flex-align">
<input placeholder-style="color:#949CB5" data-fieldName="overheadSharing" data-type="rate" bindblur="numberChange" value="{{params.overheadSharing}}" type="digit" placeholder="请输入" style="width:100%;" />
<view class="append">%</view>
</view>
</view>
<view class="tips" wx:if="{{requireObj.overheadSharing}}">{{requireObj.overheadSharing}}</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 flex-align">
<view class="add-btn" catch:tap="addCostList">
<image src="../../../images/btn_add.png" mode="" />
<view>新增</view>
</view>
<view class="btn" wx:if="{{showBox.vehicleList}}" data-fieldName="vehicleList" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!showBox.vehicleList}}" data-fieldName="vehicleList" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view wx:if="{{showBox.vehicleList}}">
<view class="vehicleCostList" wx:for="{{params.vehicleCostList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class="row flex-between title2">
<view class="left flex-align">
<view class="delete" data-index="index" catch:tap="deleteCostList">删除</view>
</view>
<view class="right flex-align">
<view class="btn" wx:if="{{vehicleCostListShow[index]}}" data-fieldName="vehicleCostList" data-index="{{index}}" catch:tap="showBoxInf">
<image src="../../../images/icon_up.png" mode="" />
<view class="val">收起</view>
</view>
<view class="btn" wx:if="{{!vehicleCostListShow[index]}}" data-fieldName="vehicleCostList" data-index="{{index}}" catch:tap="showBoxInf">
<image src="../../../images/icon_down.png" mode="" />
<view class="val">展开</view>
</view>
</view>
</view>
<view class="info-item">
<view class="flex-between">
<view class="left flex-align">
<view class="require">*</view>
<view>车型</view>
</view>
<view class="right flex-align selectItem" data-fieldName="costListShow" data-index="{{index}}" catch:tap="pickerChange">
<view wx:if="{{item.vehicleType_dictText}}">{{item.vehicleType_dictText}}</view>
<view class="placeholder" wx:else>请选择</view>
<view class="arrow"></view>
</view>
</view>
<view class="tips" wx:if="{{validateObj.vehicleCostList[index].vehicleType}}">{{validateObj.vehicleCostList[index].vehicleType}}</view>
</view>
<view class="content" wx:if="{{vehicleCostListShow[index]}}">
<view class="vehicleInfo">
<view class="info-item" wx:for="{{vehicleTypeInfo}}" wx:for-item="el" wx:for-index="idx" wx:key="idx">
<view class="flex-between">
<view class="left flex-align">
<view>{{el.label}}</view>
</view>
<view class="right flex-align">
<input placeholder-style="color:#949CB5" data-fieldName="{{el.prop}}" data-type="money" data-index="{{index}}" data-require='noRequire' bindblur="numberChange" value="{{item[el.prop]}}" type="digit" placeholder="请输入" style="width:100%;" />
<view class="append" style="width:40px;">万元</view>
</view>
</view>
<view class="tips" wx:if="{{validateObj.vehicleCostList[index][el.prop]}}">{{validateObj.vehicleCostList[index][el.prop]}}</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="{{yearList}}" wx:for-item="el" wx:for-index="idx" wx:key="idx" wx:if="{{el.value <= params.yearLimit }}">
<view class="flex-between">
<view class="left flex-align">
<view class="label">{{el.label}}</view>
</view>
<view class="right flex-align">
<input placeholder-style="color:#949CB5" data-fieldName="{{el.prop}}" data-type="money" data-index="{{index}}" data-require='noRequire' bindblur="numberChange" value="{{item[el.prop]}}" type="digit" placeholder="请输入" style="width:100%;" />
<view class="append" style="width:40px;">万元</view>
</view>
</view>
<view class="tips" wx:if="{{validateObj.vehicleCostList[index][el.prop]}}">{{validateObj.vehicleCostList[index][el.prop]}}</view>
</view>
</view>
</view>
<view class="other">
<view class="info-item">
<view class="flex-between">
<view class="left flex-align">
<view>数量</view>
</view>
<view class="right flex-end">
<view class="icon" style="margin-right: 8px;" catch:tap="plusAndsubtract" data-type="subtract" data-index="{{index}}">
<image src="../../../images/num_subtract.png" mode="" />
</view>
<input placeholder-style="color:#949CB5" data-fieldName="quantity" data-type="quantity" data-index="{{index}}" data-require='noRequire' bindblur="numberChange" value="{{item.quantity}}" type="number" placeholder="请输入" style="width:40%;text-align: center;" />
<view class="icon" style="margin-left: 8px;" catch:tap="plusAndsubtract" data-type="plus" data-index="{{index}}">
<image src="../../../images/num_add.png" mode="" />
</view>
</view>
</view>
<view class="tips" wx:if="{{validateObj.vehicleCostList[index].quantity}}">{{validateObj.vehicleCostList[index].quantity}}</view>
</view>
<view class="info-item">
<view class="flex-between">
<view class="left flex-align">
<view>残值(台)</view>
</view>
<view class="right flex-align">
<input placeholder-style="color:#949CB5" data-fieldName="salvageValue" data-type="money" data-index="{{index}}" data-require='noRequire' bindblur="numberChange" value="{{item.salvageValue}}" type="digit" placeholder="请输入" style="width:100%;" />
<view class="append" style="width:40px;">万元</view>
</view>
</view>
<view class="tips" wx:if="{{validateObj.vehicleCostList[index].salvageValue}}">{{validateObj.vehicleCostList[index].salvageValue}}</view>
</view>
</view>
</view>
</view>
<van-popup show="{{showList.costListShow}}" position="bottom" bind:close="hidePicker">
<view class="searchBox">
<van-search value="{{ costListVal }}" placeholder="请输入车型" bind:search="filterCostList" />
</view>
<van-picker data-fieldname="vehicleType" data-dicttext="vehicleType_dictText" show-toolbar columns="{{filterCostList}}" bind:confirm="pickerConfirm" bind:cancel="hidePicker"></van-picker>
</van-popup>
</view>
</view>
</view>
<view class="operateBtn">
<view catchtap="formSubmit" class="submitBtn" wx:if="{{params.vehicleCostList.length !== 0}}">测算</view>
<view class="submitBtn" style="background: #C2D6FE;" wx:else>测算</view>
</view>
<van-dialog id="van-dialog" />
</view>