SecondStep.wxml
11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<!-- <scroll-view scroll-y style="height:100vh;"> -->
<view class="testFormCon">
<view class="selectBox insuranceCompany" data-attrtype="business" data-attrname="company" data-typename="companytype" catchtap="handlePopupShow">
<view class="label">保险公司</view>
<view class="right">
<view class="Company" wx:if="{{ orderInfo.business.company }}">{{orderInfo.business.company}}</view>
<view class="Company placeHolder" wx:else>请选择</view>
<image class="arrow" src="/components/images/arrow-x.png" />
</view>
</view>
<van-collapse value="{{ activeNames }}" bind:change="onChange">
<view class="collapse">
<van-collapse-item name="1">
<view slot="title">
<view class="collapseBoxTitle">
<view class="sprite-icon mr10" :class="[activeNames.includes('1') ? 'icon-close' : 'icon-addIcon']" />
<view class="label">商业险信息</view>
</view>
</view>
<view class="box">
<view class="title">基础车损险</view>
<van-field class="inputBox" border="{{ false }}" disabled="{{ disable }}" data-hold-keyboard value="{{ orderInfo.business.base }}" data-attrName="base" data-type="number" type="digit" placeholder="请输入保费" data-attrType="business" bindinput="handleInput">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
<view class="title">第三方责任险</view>
<view class="selectItem" data-attrType="business" data-attrName="three" data-typename="threetype" catchtap="handlePopupShow">
{{orderInfo.business.three}}
<image class="arrow" src="/components/images/arrow-x.png" mode="widthFix" binderror="" bindload="" />
</view>
<van-field class="inputBox" border="{{ false }}" disabled="{{ disable }}" placeholder="请输入保费" data-hold-keyboard value="{{ orderInfo.business.threePremium }}" type="digit" data-type="number" data-attrType="business" data-attrName="threePremium" bindinput="handleInput">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
<view class="title">车上人员责任险(司机)</view>
<view class="selectItem" data-attrType="business" data-attrName="driver" data-typename="drivertype" catchtap="handlePopupShow">
{{orderInfo.business.driver}}
<image class="arrow" src="/components/images/arrow-x.png" mode="widthFix" binderror="" bindload="" />
</view>
<van-field class="inputBox" border="{{ false }}" data-hold-keyboard disabled="{{ disable }}" placeholder="请输入保费" data-type="number" value="{{ orderInfo.business.carInsidePremium }}" data-attrType="business" data-attrName="carInsidePremium" type="digit" bindinput="handleInput">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
<view class="title">车上人员责任险(乘客)</view>
<view class="selectItem" data-attrType="business" data-attrName="passenger" data-typename="passengertype" catchtap="handlePopupShow">
{{orderInfo.business.passenger}}
<image class="arrow" src="/components/images/arrow-x.png" mode="widthFix" binderror="" bindload="" />
</view>
<van-field class="inputBox" border="{{ false }}" data-hold-keyboard disabled="{{ disable }}" placeholder="请输入保费" data-type="number" value="{{ orderInfo.business.passengerPremium }}" data-attrType="business" data-attrName="passengerPremium" type="digit" bindinput="handleInput">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
</view>
</van-collapse-item>
</view>
<view class="collapse">
<!-- <view class="box"> -->
<van-collapse-item name="4">
<view slot="title">
<view class="collapseBoxTitle otherCollapse">
<view class="label">其他商业险</view>
<!-- data-handletype="add" data-handletype="add"-->
<view class="add" data-handletype="add" catch:tap="handlePopInputShow">
<image class="addIcon" src="/packageEquity/images/addIcon.png" mode="widthFix" binderror="" bindload="" />
<view class="text">添加</view>
</view>
</view>
</view>
<view class="otherInsuranceList" wx:for="{{ orderInfo.otherInsuranceList }}" wx:key="index">
<view class="title">
{{item.typeName}}
<image data-index="{{ index }}" catch:tap="handlePopInputShow" class="editIcon" data-handletype="edit" src="/packageEquity/images/editIcon.png" mode="widthFix" />
</view>
<van-field class="inputBox" border="{{ false }}" data-hold-keyboard readonly="{{ true }}" value="{{ item.compensation }}" data-attrType="otherInsuranceList" data-attrName="compensation" data-index="{{ index }}" bindinput="handleInput" />
<van-field class="inputBox" border="{{ false }}" data-hold-keyboard readonly="{{ true }}" disabled="{{ true }}" value="{{ item.payPrice }}" data-attrType="otherInsuranceList" data-attrName="payPrice" data-index="{{ index }}" bindinput="handleInput">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
</view>
</van-collapse-item>
<!-- </view> -->
</view>
<view class="collapse">
<view class="box">
<van-collapse-item name="2">
<view slot="title">
<view class="collapseBoxTitle">
<view class="label">交强险和车船税</view>
</view>
</view>
<view class="title">机动车交通事故责任强制保险</view>
<van-field class="inputBox" border="{{ false }}" data-hold-keyboard disabled="{{ disable }}" placeholder="请输入" value="{{ orderInfo.mutualStrength.compensation }}" data-attrType="mutualStrength" data-attrName="compensation" bindinput="handleInput" />
<van-field class="inputBox" border="{{ false }}" disabled="{{ disable }}" placeholder="请输入保费" data-type="number" value="{{ orderInfo.mutualStrength.payPrice }}" data-attrType="mutualStrength" data-attrName="payPrice" type="digit" bindinput="handleInput">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
<view class="title">车船税</view>
<view bind:tap="chooseYear" class="selectItem">
{{orderInfo.vehiclesAndVessels.compensation||''}}
<image class="arrow" src="/components/images/arrow-x.png" mode="widthFix" binderror="" bindload="" />
</view>
<van-field class="inputBox" border="{{ false }}" data-hold-keyboard disabled="{{ disable }}" placeholder="请输入保费" data-type="number" value="{{ orderInfo.vehiclesAndVessels.payPrice }}" data-attrType="vehiclesAndVessels" data-attrName="payPrice" type="digit" bindinput="handleInput">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
</van-collapse-item>
</view>
</view>
<view class="collapse">
<van-collapse-item name="3">
<view slot="title">
<view class="collapseBoxTitle">
<view class="label">增值车损险</view>
</view>
</view>
<!-- bind:change="onChange" -->
<!-- <van-checkbox value="{{ insuranceCheck }}" wx:if="{{!orderInfo.modifyEquityQuotation}}" shape="square" bind:change="onChangeInsurance">
请勾选增值车损险服务
</van-checkbox> -->
<block wx:for="{{ quotationGoodsList }}" wx:key="index" name="{{ item.id }}" wx:for-item="item">
<view class="goodsCheckItem">
<view class="check">
<van-checkbox disabled="{{ orderInfo.modifyEquityQuotation }}" value="{{ orderInfo.valueAddedVehicleLoss.appreciation ==item.id }}" data-id="{{ item.id }}" bind:change="onChangeInsurance"></van-checkbox>
</view>
<view class="goodsInfo">
<view class="incrementInfo">
<!-- <view class="img" mode="widthFix" /> -->
<image class="img" src="{{ item.titlePictureUrl }}" />
<view class="info">
<view class="infoTitle">{{item.goodsName}}</view>
<view wx:if="{{item.quotationGoodsServiceItemsRelationDTOList.length}}">
<text>包含</text>
<block wx:for-index="itemIndex" wx:for-item="i" wx:key="itemIndex" wx:for="{{ item.quotationGoodsServiceItemsRelationDTOList }}">
<text>{{i.serviceName}}{{i.quotationGoodsServiceItemsRelationDTOList.length-1==itemIndex?'':'、'}}</text>
</block>
</view>
</view>
</view>
<block wx:if="{{ orderInfo.valueAddedVehicleLoss.appreciation ==item.id }}">
<view class="title">增值权益价格</view>
<!-- -webkit-text-fill-color:rgb(130 127 127 / 83%); -->
<van-field class="inputBox disabled" border="{{ false }}" value="{{ testQuotedPriceUpdate }}" data-attrType="modifyEquityQuotation" data-attrName="quotedPriceUpdate" maxlength="10" readonly disabled label-class="field_test" custom-style="background-color: #F4F5F7;" data-type="number">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
</block>
</view>
</view>
</block>
<view class="equityPirce" wx:if="{{ orderInfo.modifyEquityQuotation }}">
<view class="title">增值权益价格</view>
<van-field class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.modifyEquityQuotation.quotedPriceUpdate }}" data-attrType="modifyEquityQuotation" data-attrName="quotedPriceUpdate" maxlength="10" data-type="number" type="digit" bindinput="handleInput">
<view slot="left-icon">
<view class="unit_text">¥</view>
</view>
</van-field>
<view class="errorMessage" wx:if="{{ showError }}">金额小于最低限制</view>
</view>
</van-collapse-item>
</view>
<!-- <view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle remark">
<view class="sprite-icon mr10" />
<view class="label">其他信息</view>
</view>
</view>
<view class="box">
<view class="title">备注</view>
<van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput">
</van-field>
</view>
</van-collapse-item>
</view> -->
</van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
<!-- customInput="{{customInput}}" -->
<popup-select show="{{ popupShow }}" popObj="{{ popObj }}" typeName="{{ popObj.typename }}" bindconfirm="cancelInsuranceCheck" />
<popup-input show="{{ popupInputShow }}" testdata="{{ false }}" popinputobj="{{ popinputobj }}" bindconfirm="cancelInsuranceCheck" />
</view>
<!-- </scroll-view> -->
<van-popup show="{{ showYear }}" position="bottom" custom-style="height: 40%;" bind:close="onClose">
<van-picker columns="{{ columns }}" default-index="{{ currentIndex }}" bind:change="onChange" show-toolbar adjust-position="{{ false }}" always-embed="{{ true }}" title="选择年份" bind:cancel="onCancel" bind:confirm="onConfirm" />
</van-popup>