You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
14 KiB

<view><view><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view class="bottom-border mab15"><view class="left-border"><text class="mgl10">{{"关联人"+(index+1)}}</text></view></view><uni-forms style="padding-bottom:0;" vue-id="{{'6c6d7bc0-1-'+index}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item style="padding-bottom:0;" vue-id="{{('6c6d7bc0-2-'+index)+','+('6c6d7bc0-1-'+index)}}" required="{{true}}" name="type" label="关联人类型" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-checkbox bind:input="__e" vue-id="{{('6c6d7bc0-3-'+index)+','+('6c6d7bc0-2-'+index)}}" localdata="{{linkTypeList}}" value="{{item.type}}" data-event-opts="{{[['^input',[['__set_model',['$0','type','$event',[]],[[['list','',index]]]]]]]}}" bind:__l="__l"></uni-data-checkbox></uni-forms-item></uni-forms><block wx:if="{{item.type==0}}"><uni-forms class="from-position vue-ref-in-for" vue-id="{{'6c6d7bc0-4-'+index}}" value="{{item}}" validate-trigger="bind" err-show-type="toast" data-ref="manItem" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('6c6d7bc0-5-'+index)+','+('6c6d7bc0-4-'+index)}}" name="relatedName" required="{{true}}" label="关联人名称" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6c6d7bc0-6-'+index)+','+('6c6d7bc0-5-'+index)}}" disabled="{{handle}}" type="text" inputBorder="{{true}}" placeholder="请输入关联人名称" value="{{item.relatedName}}" data-event-opts="{{[['^input',[['__set_model',['$0','relatedName','$event',[]],[[['list','',index]]]]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('6c6d7bc0-7-'+index)+','+('6c6d7bc0-4-'+index)}}" name="phone" required="{{true}}" label="联系电话" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6c6d7bc0-8-'+index)+','+('6c6d7bc0-7-'+index)}}" disabled="{{handle}}" type="number" maxlength="11" inputBorder="{{true}}" placeholder="请输入联系电话" value="{{item.phone}}" data-event-opts="{{[['^input',[['__set_model',['$0','phone','$event',[]],[[['list','',index]]]]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('6c6d7bc0-9-'+index)+','+('6c6d7bc0-4-'+index)}}" name="maritalStatus" required="{{true}}" label="婚姻状况" bind:__l="__l" vue-slots="{{['default']}}"><picker class="{{[handle=='watch'||handle=='audit'?'disabled':'']}}" disabled="{{handle}}" value="{{item.maritalStatusVal}}" range="{{maritalList}}" range-key="name" data-event-opts="{{[['change',[['relatedMaritalChange',['$event','$0'],[[['list','',index]]]]]]]}}" bindchange="__e"><view class="picker-view flex-between" style="{{(handle?'background-color:#eee;':'')}}"><text>{{item.maritalStatusVal!==""?maritalList[item.maritalStatusVal].name:'请选择'}}</text><text class="cuIcon-unfold lg text-gray"></text></view></picker></uni-forms-item><uni-forms-item vue-id="{{('6c6d7bc0-10-'+index)+','+('6c6d7bc0-4-'+index)}}" name="idCard" required="{{true}}" label="身份证号码" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6c6d7bc0-11-'+index)+','+('6c6d7bc0-10-'+index)}}" disabled="{{handle}}" type="idcard" inputBorder="{{true}}" placeholder="请输入身份证号码" value="{{item.idCard}}" data-event-opts="{{[['^input',[['__set_model',['$0','idCard','$event',[]],[[['list','',index]]]]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('6c6d7bc0-12-'+index)+','+('6c6d7bc0-4-'+index)}}" name="age" required="{{true}}" label="年龄" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('6c6d7bc0-13-'+index)+','+('6c6d7bc0-12-'+index)}}" disabled="{{handle}}" type="number" maxlength="2" inputBorder="{{true}}" placeholder="请输入年龄" value="{{item.age}}" data-event-opts="{{[['^input',[['__set_model',['$0','age','$event',[]],[[['list','',index]]]]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('6c6d7bc0-14-'+index)+','+('6c6d7bc0-4-'+index)}}" name="gen