<wxs src='/utils/numberFormat.wxs' module="numberFormat"></wxs>
<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
<loading wx:if="{{loading}}"></loading>
<van-dialog id="van-dialog" />
<van-sticky offset-top="{{ 0 }}">
  <dk-navbar titleFontColor="#000000" navbarTitle="库存查询" bind:clickBack="handleNavBack" operateShow="{{ guideUrl ? true: false}}" operateUrl="{{guideUrl}}"  bind:getNavbarHeight="getNavbarHeight"/>
  <!-- 查询条件 -->
  <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" navBarHeight="{{navBarHeight}}"bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['skuName','skuModel','colorNumber'])}}">
  </dk-dropdown-menu>
</van-sticky>

<view style="height:100%;background: #F8F9FD ;">
  <!--出库商品 列表 走库存-->
  <view style="height:calc({{windowHeight+'px'}} - 05rpx);overflow: scroll;">
    <scroll-view scroll-y='{{true}}' bindscrolltolower='scrollToLower' lower-threshold='100'>
      <view wx:for="{{tableData}}" wx:key="index" data-item="{{item}}" class="main-class" style="width: 75%;margin-left: 166rpx;">
        <view class="main-foot" style="border-radius:15rpx;" data-item="{{item}}" catch:tap="toDetail">
          <view>
            <view class="table-content-row">
              <view style="display:flex;width:100%;">
                <view data-item="{{item}}" style="display:flex;font-size: 15px;">
                  <dk-text style="font-size:30rpx;" fontWeight="nomal" value="{{item.skuModel }}"></dk-text>
                </view>
              </view>
            </view>

            <!-- 商品名称 及以下列 -->
            <view class="table-row" wx:for="{{item.list}}" wx:for-item="item_" wx:for-index="index_">
              <view class="table-content-row">
                <view style="display: flex;">
                  <view class="table-content-row-font">
                    <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" copyValue="{{item.copyValue}}" value="{{item_.title}}"></dk-text>
                  </view>
                  <view class="table-content-class">
                    {{item_.value}}
                  </view>
                </view>
              </view>
            </view>

          </view>
        </view>
      </view>
    </scroll-view>

  </view>
</view>

<van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="{{active == 0 ? 'left-class' : 'right-class'}}">
  <view wx:if="{{active != 1}}" class="{{controlFlags.choosewhFlag?'addsidebar':''}}" style=" height:calc({{windowHeight+'px'}} - {{active == 1 ? '299rpx' :'299rpx' }});overflow: scroll;">
    <van-sidebar-item wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.brandName}}" data-id="{{item.brandId}}" wx:for="{{typeList}}" />
  </view>
</van-sidebar>

<!-- 仓库 -->
<dk-muti-dropdown-item show="{{whFlag}}" content="{{form.whName}}" id='warehouse' typeName='warehouse' bind:commit='mutiSearchAll' bind:muticlose='mutiCloseAll'></dk-muti-dropdown-item>

<view style="position: fixed;bottom: 230rpx;right: 30rpx;">
  <view bind:tap="export" class="btn-add-class">
    <van-icon name="share" color="#FFFFFF" size="60rpx" />
  </view>
</view>