<page-plugin isAuth="{{authInfo['SF_ERP_GOODS_VIEW']}}" loading="{{loading}}" is-login="{{isLogin}}"
  bind:handleLogin="handleLogin">
  <!-- <search-popup placeholder="输入销售单号" bind:change="searchChange" bind:ok="searchOk"
    bind:reset="searchReset" value="{{params.order_no}}" data-key="order_no">
    <view slot="content">
      <search-input label="自定义单号" value="{{params.custom_order_no}}" data-key="custom_order_no"
        bind:change="searchChange" />

      <option-cell-plugin title="订单阶段" value="{{params.order_step}}" bind:change="searchChange"
        mode="checkbox" options="{{orderStep}}" data-key="order_step" />

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

  <empty-plugin wx:if="{{list.length == 0}}" />
  <card-plugin wx:for="{{ list }}" wx:key="goods_child_id" showAll>
    <view slot="header">{{ item.sku_code }}</view>
    <view slot="content">
      <card-item-plugin label="助记码" value="{{item.sku_alias}}" />
      <block wx:for="{{item.attr_id_arr}}" wx:key="index" wx:for-item="attr">
        <!-- 取配置的值 -->
        <!-- <card-item-plugin label="{{goodsSubAttr[item].p_attr_name}}"
          value="{{goodsSubAttr[item].attr_name}}" /> -->
        <card-item-plugin label="{{goodsSubAttr[attr].p_attr_name}}"
          value="{{item.attr_name_arr[index]}}" />
      </block>
      <card-item-plugin label="采购价格" value="{{item.purchase_price}}" />
      <card-item-plugin label="零售价格" value="{{item.commodity_price}}" />
      <card-item-plugin label="销售价格" value="{{item.wholesale_price}}" />
      <card-item-plugin label="单位" value="{{item.unit_ch_name}}" />
    </view>
  </card-plugin>
  <pagination-plugin curr_page="{{params.curr_page}}" page_count="{{params.page_count}}"
    total="{{count}}" bind:change="paginationChange" />
</page-plugin>