<!--packageI/invoice/invoiceOperation/invoiceOperation.wxml-->
<view class="invoiceOperation">
      <view class="cell-plane">
        <view class="flex-j-sb flex-a-c">
          <view>普通发票抬头</view>
          <van-radio-group value="{{bearerType}}" class="flex" bind:change="changeRoadio">
            <van-radio name="{{0}}" icon-size="1rem">个人</van-radio>
            <van-radio name="{{1}}" icon-size="1rem">单位</van-radio>
          </van-radio-group>
        </view>
        <block wx:for="{{inputList}}" wx:key="index">
          <view wx:if="{{item.type !== 'divider'}}" class="input-box">
              <van-field  value="{{formData[item.model]}}" label="{{item.label}}" placeholder="{{item.place}}" 
              data-model="{{item.model}}" bindinput="chagenInput"
              />
          </view>
           <van-divider wx:if="{{item.type == 'divider'}}" custom-style="margin: 20rpx 0;"></van-divider>
        </block>

      </view>

      <view class="cell-plane">
        <view class="flex-j-sb flex-a-c">
            <view>设置默认</view>
            <van-switch 
              checked="{{ formData.is_default }}"
              bindchange="changeSwitch" size="36rpx" active-color="#f15353" inactive-color="#d4d4d4"
              active-value="{{1}}" inactive-value="{{0}}"
            />
        </view>
      </view>


      <view class="addInvoice">
        <view class="addInvoice-item" bindtap="saveData">保存</view>
      </view>
  </view>
