1 |
- <view><view class="form"><u--form class="vue-ref" vue-id="051a2d52-1" labelPosition="left" model="{{model1}}" data-ref="form1" bind:__l="__l" vue-slots="{{['default']}}"><view>抬头类型</view><view class="btn"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{[model1.userInfo.type==2?'btn-item-active':'btn-item']}}" bindtap="__e">企业</view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="{{[model1.userInfo.type==1?'btn-item-active':'btn-item']}}" bindtap="__e">个人</view></view><u-form-item class="vue-ref" vue-id="{{('051a2d52-2')+','+('051a2d52-1')}}" label="发票抬头" prop="userInfo.name" borderBottom="{{true}}" labelWidth="160rpx" data-ref="item1" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('051a2d52-3')+','+('051a2d52-2')}}" disabledColor="#ffffff" placeholder="{{model1.userInfo.type==2?'请输入公司名称':'请输入个人姓名'}}" border="none" placeholderStyle="color: #555555" value="{{model1.userInfo.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['model1.userInfo']]]]]}}" bind:__l="__l"></u--input></u-form-item><block wx:if="{{model1.userInfo.type==2}}"><view><u-form-item class="vue-ref" vue-id="{{('051a2d52-4')+','+('051a2d52-1')}}" label="纳税税号" prop="userInfo.tax_no" borderBottom="{{true}}" labelWidth="160rpx" data-ref="item1" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('051a2d52-5')+','+('051a2d52-4')}}" disabledColor="#ffffff" placeholder="请输入税号" border="none" placeholderStyle="color: #555555" value="{{model1.userInfo.tax_no}}" data-event-opts="{{[['^input',[['__set_model',['$0','tax_no','$event',[]],['model1.userInfo']]]]]}}" bind:__l="__l"></u--input></u-form-item><u-form-item class="vue-ref" vue-id="{{('051a2d52-6')+','+('051a2d52-1')}}" label="注册地址" prop="userInfo.address" borderBottom="{{true}}" labelWidth="160rpx" data-ref="item1" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('051a2d52-7')+','+('051a2d52-6')}}" disabledColor="#ffffff" placeholder="请输入注册地址" border="none" placeholderStyle="color: #555555" value="{{model1.userInfo.address}}" data-event-opts="{{[['^input',[['__set_model',['$0','address','$event',[]],['model1.userInfo']]]]]}}" bind:__l="__l"></u--input></u-form-item><u-form-item class="vue-ref" vue-id="{{('051a2d52-8')+','+('051a2d52-1')}}" label="电话" prop="userInfo.phone" borderBottom="{{true}}" labelWidth="160rpx" data-ref="item1" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('051a2d52-9')+','+('051a2d52-8')}}" disabledColor="#ffffff" placeholder="请输入电话" border="none" placeholderStyle="color: #555555" value="{{model1.userInfo.phone}}" data-event-opts="{{[['^input',[['__set_model',['$0','phone','$event',[]],['model1.userInfo']]]]]}}" bind:__l="__l"></u--input></u-form-item><u-form-item class="vue-ref" vue-id="{{('051a2d52-10')+','+('051a2d52-1')}}" label="开户银行" prop="userInfo.bank_name" borderBottom="{{true}}" labelWidth="160rpx" data-ref="item1" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('051a2d52-11')+','+('051a2d52-10')}}" disabledColor="#ffffff" placeholder="请输入开户银行" border="none" placeholderStyle="color: #555555" value="{{model1.userInfo.bank_name}}" data-event-opts="{{[['^input',[['__set_model',['$0','bank_name','$event',[]],['model1.userInfo']]]]]}}" bind:__l="__l"></u--input></u-form-item><u-form-item class="vue-ref" vue-id="{{('051a2d52-12')+','+('051a2d52-1')}}" label="银行账号" prop="userInfo.bank_no" borderBottom="{{true}}" labelWidth="160rpx" data-ref="item1" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('051a2d52-13')+','+('051a2d52-12')}}" disabledColor="#ffffff" placeholder="请输入银行账号" border="none" placeholderStyle="color: #555555" value="{{model1.userInfo.bank_no}}" data-event-opts="{{[['^input',[['__set_model',['$0','bank_no','$event',[]],['model1.userInfo']]]]]}}" bind:__l="__l"></u--input></u-form-item></view></block><view style="margin:30rpx 0;">备注信息(选填)</view><u--textarea bind:input="__e" vue-id="{{('051a2d52-14')+','+('051a2d52-1')}}" placeholder="输入备注信息" placeholderStyle="color: #555555" height="120" border="none" value="{{model1.userInfo.memo}}" data-event-opts="{{[['^input',[['__set_model',['$0','memo','$event',[]],['model1.userInfo']]]]]}}" bind:__l="__l"></u--textarea></u--form></view><view class="tips"><u-icon vue-id="051a2d52-15" name="error-circle" color="##999999 " size="28" bind:__l="__l"></u-icon><view style="margin-left:18rpx;">如果购买方为企业,有税号XXX</view></view><view style="margin-bottom:164rpx;"></view><block wx:if="{{state==0}}"><view data-event-opts="{{[['tap',[['editsubmit',['$event']]]]]}}" class="navbar" bindtap="__e">保存</view></block><block wx:if="{{state==1}}"><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="navbar" bindtap="__e">添加抬头</view></block></view>
|