<page-plugin isAuth="{{authInfo['SF_ERP_SALE_ORDERS_PAY']}}" loading="{{loading}}"
  is-login="{{isLogin}}" bind:handleLogin="handleLogin">
  <t-cell title="销售单号" hover note="{{params.order_no || ''}}" />
  <t-cell title="经销商" hover note="{{record.custom_name || ''}}" />
  <t-cell title="含税合计" hover note="{{record.tot_tax_last_money || ''}}" />
  <t-cell title="优惠金额" hover note="{{record.discount_money || ''}}" />
  <t-cell title="已收金额" hover note="{{record.payed_amount || ''}}" />
  <account-plugin bind:ok="accountOk" bind:default="accountDefault"
    value="{{params.last_account_id}}"></account-plugin>
  <t-input placeholder="正数是收款，负数是付款" value="{{params.amount}}" suffix="元" align="right"
    type="number" bindchange="onPriceInput" t-class-tips="tips">
    <view slot="label" class="custom-label">金额</view>
  </t-input>
  <t-cell title="时间" hover arrow bindtap="showPicker">
    <view slot="note" style="color: #000;">{{params.bill_date || ''}}</view>
  </t-cell>

  <t-textarea bindchange="onCommentInput" placeholder="备注" autosize maxlength="255" bordered
    style="margin-top: 16rpx;">
    <view slot="label" class="textarea-label">备注</view>
  </t-textarea>

  <!-- <t-input label="备注" placeholder="备注" bindchange="onCommentInput" /> -->
  <view style="margin-top: 24rpx;text-align: center;">
    <t-button theme="primary" bind:tap="onPay">确定</t-button>
  </view>


  <!-- 年月日时分 -->
  <t-date-time-picker title="选择日期和时间" visible="{{datetimeVisible}}" mode="second"
    value="{{[params.bill_date]}}" format="YYYY-MM-DD HH:mm:ss" bindchange="onConfirm"
    bindcancel="hidePicker" />
</page-plugin>