addListDetail.wxml
16.9 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<!-- 保障方案弹窗 -->
<view class='mask_box' wx:if='{{popup_state}}'>
<view class='popup_box'>
<view class='main_container'>
<view class='popup_item'>
<view class='popup_list' wx:for='{{projectlist}}' wx:key=''>
<view bindtap='popupState' data-index='{{index}}'>
<view class="iconfont icon-fangkuang {{item.choose_status?'icon-xuanzhongkuang':''}}"></view>
</view>
<view class='popup_info_box'>
<view class='popup_content'>
<view class='popup_title'>{{item.name}}</view>
<view class='popup_input'>
<input type='number' placeholder='请输入' value='{{item.num}}' bindinput='popupNum' data-index='{{index}}' data-id='{{item.id}}'></input>
<!-- <text>{{item.title}}</text> -->
</view>
</view>
<view class='popup_label_box'>
<view class="popup_label_item {{sitem.current === sub_index ? 'popup_label_active' :''}}" wx:for='{{item.title}}' wx:for-index='sub_index' data-sindex='{{sub_index}}' wx:for-item='sitem' data-index='{{index}}' wx:key='' bindtap='getUnit'>
{{sitem.name}}</view>
</view>
</view>
</view>
</view>
<view class='popup_btn' bindtap='confirmCase'>确认</view>
</view>
</view>
</view>
<!-- 表单部分 -->
<!-- <block wx:else> -->
<form bindsubmit='listVerify' bindreset="formReset">
<view class='content_item'>
<view class='item_list'>
<view class='list_title'>保单号</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='list_num' value='{{listdetail.in_num}}' bindinput='itemNum'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请输入' name='policy_num' value='{{nullNum}}' bindinput='policyNum'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>所属公司</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='company' value='{{listdetail.firm}}'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请输入' name='company' value='{{nullNum}}'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>投保人</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<picker class='picker' range='{{insure}}' value='{{insureindex}}' bindchange='insureSelect'>
<input type='text' placeholder='请选择' name='policy_holder' value='{{insure[insureindex]}}'></input>
</picker>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<picker class='picker' range='{{insure}}' value='{{insureindex}}' bindchange='insureSelect'>
<input type='text' placeholder='请选择' name='policy_holder' value='{{insure[insureindex]}}' disabled='true'></input>
</picker>
<!-- <input type='text' placeholder='请填写' name='policy_holder' value='{{nullNum}}'></input> -->
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>被保险人</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<picker class='picker' range='{{recognizee}}' value='{{recognizeeindex}}' bindchange='recognizeeSelect'>
<text>{{recognizee[recognizeeindex]}}</text>
</picker>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<picker class='picker' range='{{recognizee}}' value='{{recognizeeindex}}' bindchange='recognizeeSelect'>
<input placeholder='请选择' value='{{recognizee[recognizeeindex]}}' disabled='true'></input>
</picker>
</view>
<!-- </block> -->
</view>
<view>
<view class='item_list' wx:for='{{beneficiary_list}}' wx:key='' wx:for-index='its'>
<view class='list_title'>受益人</view>
<view class='list_input_box'>
<view class='list_input'>
<picker class='picker' range='{{item.name}}' range-key='' value='{{beneficiaryindex}}' wx:for-index='index' bindchange='beneficiarySelect' data-mindex='{{its}}'>
<input type='text' placeholder='请选择' name='beneficiary' value='{{item.beneficiary_name}}' disabled='true'></input>
</picker>
</view>
<view class='list_input'>
<input class='income_input' type='text' placeholder='受益比例%' name='beneficiary' value='{{item.unit}}' bindinput='addUnit'></input>
</view>
</view>
<view class='iconfont icon-guanbi shouyi' bindtap='deletebenefict' wx:if="{{its>0}}" data-index='{{its}}'></view>
</view>
<view class='iconfont icon-wuuiconxiangjifangda add_person' wx:if="{{beneficiary_list.length<beneficiary_list[0].name.length}}" data-mindex='{{its}}' data-sindex='{{index}}' bindtap='addPersons'>
<text>添加受益人</text>
</view>
</view>
</view>
<view class='content_item'>
<view class='item_list'>
<view class='list_title'>
<text class='symbol_icon'>*</text>
<text>主险名称</text>
</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='text' placeholder='请填写' name='main_risks' value='{{listdetail.main_risks}}'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请填写' name='main_risks' value='{{nullNum}}'></input>
</view>
<!-- </block> -->
</view>
<view class='protec_item_box'>
<view>
<view class='protec_item' wx:for='{{main_array}}' wx:key=''>
<view>{{item.name}}</view>
<view class='protec_num'>{{item.num}}<block wx:for='{{item.title}}' wx:for-item='danwei' wx:key=''><text wx:if="{{danwei.label_state}}">{{danwei.name}}</text></block></view>
</view>
</view>
<view class='protec_bottom_box'>
<view class='add_risk_btn protec_btn' bindtap='ensureProject' data-type='zhuxian' data-xulie='0'>
<text class='iconfont icon-shezhi'></text>
<text>管理保障项目</text>
</view>
</view>
</view>
</view>
<view class='content_item'>
<view class='item_list'>
<view class='list_title'>
<text class='symbol_icon'>*</text>
<text>保费</text>
</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请填写' name='beneficiary' value='{{listdetail.favoree}}'></input>
</view>
<view class='list_input'>
<input class='income_input' type='text' placeholder='请填写' name='beneficiary' value='元/年' disabled='true'></input>
</view>
</view>
</view>
<view class='item_list'>
<view class='list_title'>合同生效日</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<picker class='picker' mode="date" bindchange='compactTime' value='{{compact_time}}'>
<view>{{compact_time}}</view>
<input placeholder='请选择' value='{{compact_time}}' disabled='true'></input>
</picker>
<text class='iconfont icon-riqi'></text>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<picker class='picker' mode="date" bindchange='compactTime' value='{{compact_time}}'>
<input placeholder='请选择' value='{{compact_time}}' disabled='true'></input>
</picker>
<text class='iconfont icon-riqi'></text>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>保障期</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='beneficiary' value='{{listdetail.favoree}}'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{unit==1?'list_label_active':''}}" bindtap='selectUnit' data-unit='1'>年</view>
<view class="list_label_item {{unit==2?'list_label_active':''}}" bindtap='selectUnit' data-unit='2'>岁 </view>
<view class="list_label_item {{unit==3?'list_label_active':''}}" bindtap='selectUnit' data-unit='3'>终身</view>
</view>
</view>
</view>
<view class='item_list'>
<view class='list_title'>缴费时长</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='beneficiary' value='{{listdetail.favoree}}'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{unit2==4?'list_label_active':''}}" bindtap='selectUnit2' data-unit='4'>年</view>
<view class="list_label_item {{unit2==5?'list_label_active':''}}" bindtap='selectUnit2' data-unit='5'>岁 </view>
<view class="list_label_item {{unit2==6?'list_label_active':''}}" bindtap='selectUnit2' data-unit='6'>终身</view>
</view>
</view>
</view>
<view class='item_list'>
<view class='list_title'>缴费方式</view>
<view class='list_label_box'>
<view class="list_label_item {{unit3==7?'list_label_active':''}}" bindtap='selectUnit3' data-unit='7'>年交</view>
<view class="list_label_item {{unit3==8?'list_label_active':''}}" bindtap='selectUnit3' data-unit='8'>趸交(一次付清)</view>
<view class="list_label_item {{unit3==9?'list_label_active':''}}" bindtap='selectUnit3' data-unit='9'>年交</view>
</view>
</view>
<view class='item_list'>
<view class='list_title'>续费银行</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='text' placeholder='请填写' name='Renew_bank' value='{{listdetail.bank}}'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请填写' name='Renew_bank' value='{{nullNum}}'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>续费账号</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='number' placeholder='输入后四位' name='renew_num' value='{{listdetail.bank_num}}'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请填写' name='renew_num' value='{{nullNum}}'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>缴费期满日</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<picker class='picker' mode="date" bindchange='impletionTime' value='{{impletion_time}}'>
<view>{{impletion_time}}</view>
</picker>
<text class='iconfont icon-riqi'></text>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<picker class='picker' mode="date" bindchange='impletionTime' value='{{impletion_time}}'>
<input placeholder='请选择' value='{{impletion_time}}' disabled='true'></input>
</picker>
<text class='iconfont icon-riqi'></text>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>主险保障期</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='number' placeholder='请填写' name='Guarantee_period' value='{{listdetail.warranty}}'></input>
<!-- <text class='iconfont icon-riqi'></text>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<picker class='picker' range='{{period_time}}' value='{{period_index}}' bindchange='periodTime'>
<input placeholder='请选择' value='{{period_time[period_index]}}' disabled='true'></input>
</picker>
<!-- <text class='iconfont icon-riqi'></text> -->
</view>
<!-- </block> -->
</view>
</view>
<view class='content_item'>
<!-- wx:for='{{addlist}}' wx:key='' -->
<view class='risk_box'>
<view class='risk_item' wx:for='{{risk_list}}' wx:key=''>
<view class='iconfont icon-guanbi symool_box' bindtap='deleteRisk' wx:if="{{index>0}}" data-index='{{index}}'></view>
<view class='item_list'>
<view class='list_title project'>附加险名称</view>
<view class='list_input'>
<input type='text' placeholder='请填写' bindinput='additional_risk' value='{{item.name}}'></input>
</view>
</view>
<view class='protec_item_box'>
<view>
<view class='protec_item' wx:for='{{item.projectlist}}' wx:for-item='project' wx:key=''>
<view>{{project.name}}</view>
<view class='protec_num'>{{project.num}}<block wx:for='{{project.title}}' wx:for-item='danwei' wx:key=''><text wx:if="{{danwei.label_state}}">{{danwei.name}}</text></block></view>
</view>
<!-- <view class='protec_item'>
<view>轻症重大疾病</view>
<view class='protec_num'>50万</view>
</view>
<view class='protec_item'>
<view>轻症重大疾病</view>
<view class='protec_num'>50万</view>
</view> -->
</view>
<view class='protec_bottom_box'>
<view class='add_risk_btn protec_btn' bindtap='ensureProject' data-type='fujiaxian' data-xulie='{{index}}'>
<text class='iconfont icon-shezhi'></text>
<text>管理保障项目</text>
</view>
</view>
</view>
<view class='item_list'>
<view class='list_title'>保障期</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='beneficiary' value='{{listdetail.favoree}}'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{item.time==10?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='10'>年</view>
<view class="list_label_item {{item.time==11?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='11'>岁 </view>
<view class="list_label_item {{item.time==12?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='12'>终身</view>
</view>
</view>
</view>
</view>
<view class='add_risk_box'>
<!-- <view class='add_risk_btn' bindtap='deleteRisk' data-index='{{index}}'>
<text class='iconfont icon-shanchu'></text>
<text>删除</text>
</view> -->
<view class='add_risk_btn' bindtap='addRisk'>
<text class='iconfont icon-tianjia'></text>
<text>继续添加附加险</text>
</view>
</view>
</view>
</view>
<view class='popup_item' wx:if='{{show}}'>
<!-- <block wx:if='{{inforid}}'>
<view class='popup_list' wx:for='{{projectlist}}' wx:key='' wx:if='{{item.status}}'>
<view class='popup_content popup_content2'>
<view class=''>{{item.name}}</view>
<view class='popup_input'>
<view class='input_content'>{{item.num}}{{item.title}}</view>
</view>
</view>
</view>
</block>
<block wx:else> -->
<view class='popup_list' wx:for='{{projectlist}}' wx:key='' wx:if='{{item.status}}'>
<view class='popup_content popup_content2'>
<view class=''>{{item.name}}</view>
<view class='popup_input'>
<view class='input_content'>{{item.num}}{{item.title}}</view>
</view>
</view>
</view>
<!-- </block> -->
</view>
<view class='box'>
<!-- 上传图片 -->
<view class='upload_box'>
<block wx:for='{{imgs}}' wx:key=''>
<view class='popup_img'>
<view class='iconfont icon-guanbi' catchtap='deleteImg' data-index='{{index}}'></view>
<image src='{{item}}' bindtap='viewImg' data-index='{{index}}'></image>
</view>
</block>
<view class='popup_img' bindtap='uploadImage' wx:if='{{imgs.length<6}}'>
<view class='iconfont icon-add'></view>
<view>请上传清晰的保单照片</view>
</view>
</view>
</view>
<!-- 继续添加保单按钮 -->
<button class='add_btn' data-type='continue1' formType='submit'>继续添加保单</button>
<!--底部按钮 -->
<view class='null_box'></view>
<view class='bottom_box'>
<button class='bottom_btn save_btn'>暂存</button>
<button class='bottom_btn' data-type='complete' formType='submit'>完成</button>
</view>
</form>
<!-- </block> -->