<page-plugin isAuth="{{authInfo['SF_ERP_DEPART_VIEW']}}" loading="{{loading}}"
  is-login="{{isLogin}}" bind:handleLogin="handleLogin">
  <!-- <search-popup placeholder="输入单据编号" bind:change="searchChange" bind:ok="searchOk"
    bind:reset="searchReset" value="{{params.bill_no}}" data-key="bill_no">
    <view slot="content">
      <search-input label="销售单号" value="{{params.rel_bill_no}}" data-key="rel_bill_no"
        bind:change="searchChange" />
      <search-input label="收入账户" value="{{params.account_name}}" data-key="account_name"
        bind:change="searchChange" />
      <search-input label="往来单位" value="{{params.crm_name}}" data-key="crm_name"
        bind:change="searchChange" />

      <option-cell-plugin title="单据状态" value="{{params.state || ''}}" bind:change="searchChange"
        mode="radio" options="{{states}}" data-key="state" />

      <date-picker-plugin title="单据开始日期" value="{{params.bill_dateL}}" data-key="bill_dateL"
        bind:confirm="searchChange" />
      <date-picker-plugin title="单据结束日期" value="{{params.bill_dateU}}" data-key="bill_dateU"
        bind:confirm="searchChange" />
    </view>
  </search-popup> -->

  <empty-plugin wx:if="{{list.length == 0}}" />
  <t-cell-group theme="card" custom-style="margin: 0">
    <t-cell wx:for="{{ list }}" wx:key="department_id" title="{{item.name}}">
      <t-button slot="right-icon" wx:if="{{authInfo['SF_ERP_DEPART_DEL']}}" size="extra-small"
        theme="danger" bind:tap="onOrderDel" data-index="{{index}}">删除</t-button>
    </t-cell>
  </t-cell-group>
  <!-- <pagination-plugin curr_page="{{params.curr_page}}" page_count="{{params.page_count}}"
    total="{{count}}" bind:change="paginationChange" /> -->
</page-plugin>