<page-plugin isAuth="1" loading="{{loading}}" is-login="{{isLogin}}" bind:handleLogin="handleLogin">
  <t-input placeholder="名称" focus value="{{params.crm_name}}" data-key="crm_name"
    bind:change="onChange" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="label" class="required">名称 </view>
  </t-input>
  <t-input placeholder="手机号码" value="{{params.crm_phone}}" data-key="crm_phone"
    bind:change="onChange" align="right" type="number" maxlength="11"
    style="padding-left: 0;padding-right: 0;">
    <view slot="label">手机号码</view>
  </t-input>
  <t-input placeholder="地址" value="{{params.crm_address}}" data-key="crm_address"
    bind:change="onChange" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="label">地址</view>
  </t-input>
  <t-input placeholder="开户行" value="{{params.bank_name}}" data-key="bank_name"
    bind:change="onChange" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="label">开户行</view>
  </t-input>
  <t-input placeholder="账号" value="{{params.bank_nums}}" data-key="bank_nums" bind:change="onChange"
    align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="label">账号</view>
  </t-input>
  <t-input placeholder="纳税人识别号" value="{{params.tax_code}}" data-key="tax_code"
    bind:change="onChange" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="label">纳税人识别号</view>
  </t-input>
  <t-input placeholder="税率(%)" value="{{params.tax_rate}}" data-key="tax_rate"
    bind:change="onChange" align="right" style="padding-left: 0;padding-right: 0;">
    <view slot="label">税率(%)</view>
  </t-input>
  <t-textarea placeholder="备注" autosize maxlength="255" bordered style="margin-top: 16rpx;"
    value="{{params.comments}}" data-key="comments" bind:change="onChange">
    <view slot="label" class="textarea-label">备注</view>
  </t-textarea>
  <view style="margin-top: 32rpx;display: flex;justify-content: center;">
    <t-button theme="primary" bind:tap="onSave">保存</t-button>
  </view>
</page-plugin>