<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
<view wx:for="{{list}}" data-item="{{item}}" wx:key="index" class="main-class">
  <view class="main-foot" style="position: relative;">
    <!-- 收发存汇总表的 -->
    <view wx:if="{{reportNameKey == 'ivt'}}" class="goods-cell-class goods-item-class" catchtap="toDetail" data-item="{{item}}" data-index="{{index}}">
      <view>
        <van-image radius="15rpx" custom-class="goods-item-image" fit="fill" src="{{item.imagesUrl}}" />
      </view>
      <view style="margin-left: 26rpx;width: 100%; ">
        <!-- 标题 -->
        <view style="display: flex;">
          <dk-title titleTag="{{item.brandName}}" title="{{item.skuModel}}"></dk-title>
        </view>
        <!-- 描述 -->
        <view style="display: flex;padding-top: 10rpx;">
          <dk-text fontSize="24rpx" value="{{item.skuName}}"></dk-text>
        </view>
        <view style="display: flex;padding-top: 10rpx;">
          <dk-text fontSize="24rpx" value="{{item.nonStdCode}}"></dk-text>
        </view>
        <view style="display: flex;justify-content: space-between;align-items: center;margin-top:10rpx;">
          <!-- 仓库-->
          <view>
            <dk-text fontSize="24rpx" value="{{item.skuSpec}}"></dk-text>
          </view>
          <view>
            <dk-text fontSize="24rpx" value="{{item.whName}}"></dk-text>
          </view>
        </view>
        <view style="display: flex;justify-content: space-between;align-items: center;margin-top:5rpx;">
          <!-- 系列 -->
          <view wx:if="{{item.seriesName && item.seriesName !== ''}}">
            <dk-text fontSize="24rpx" value="{{item.seriesName}}"></dk-text>
          </view>
        </view>
      </view>
    </view>
    <!-- 跟踪表用的  -->
    <view wx:if="{{reportNameKey == 'track'}}" class="table-content" catchtap="toDetail" data-item="{{item}}" data-index="{{index}}">
      <!-- 标题行 -->
      <view class="table-content-row">
        <view class="table-content-row-title-two">
          <!-- 标题 -->
          <view class="title-class">
            <dk-text fontSize="15px" value="{{item[title]}}"></dk-text>
          </view>
          <view wx:if="{{item[subTitle]}}" style="text-align: right;">
            <view class="status-detail-class">{{wxmlUtil.format(item[subTitle]) }}
            </view>
          </view>
        </view>
      </view>

      <view class="table-content-row">
        <view class="table-content-row-title-two">
          <!-- 单号 -->
          <view class="title-class">
            <dk-text fontWeight="500" data-item="{{item}}" fontSize="14px" value="{{item[no]}}"></dk-text>
          </view>
          <!-- 状态 -->
          <view style="display: flex;margin-left: 20rpx;">
            <dk-tag wx:if="{{item[statusLeft]}}" fontSize="14px" border="{{'1rpx solid '+  colorLeft}}" height="40rpx" color="transparent" textColor="{{colorLeft}}" radius="8rpx" fontWeight="600" roundFlag="{{true}}" size="medium" value="{{item[statusLeft]}}"></dk-tag>
            <view style="margin-left: 15rpx;">
              <dk-tag wx:if="{{item[statusRight]}}" fontSize="14px" border="{{'1rpx solid '+  colorRight}}" height="40rpx" color="transparent" textColor="{{colorRight}}" radius="8rpx" fontWeight="600" roundFlag="{{true}}" size="medium" value="{{item[statusRight]}}"></dk-tag>
            </view>
          </view>
        </view>
      </view>
    </view>


    <!-- 内容 -->
    <view style="display: flex;flex-wrap: wrap;justify-content: center;" catchtap="toDetail" data-item="{{item}}" data-index="{{index}}">
      <view wx:if="{{!contentCol}}" class="{{contentCardTwoFlg?'card-class_four':'card-class'}}" wx:for="{{content}}" wx:for-item="col" data-item="{{col}}">
        <image src="{{imageUrl + col.image + '.png'}} " class="card-bottom-image" />
        <view style="position: absolute;z-index: 1;width: 98%;">
          <view class="card-label-class" catchtap="showTip" data-item="{{col}}">{{col.label}}
            <van-icon wx:if="{{col.tip}}" custom-style="margin-left: 10rpx;" name="question-o" />
          </view>
          <view>
            <!-- <view style="color:#606EB2;display: flex;margin-top: 10rpx;">
                <view class="card-label-class">{{col.numberKeyLabel}}</view>
                <view style="display: flex;align-items: center;font-size: 15px;font-weight: bold;margin-left: 10rpx;">{{wxmlUtil.setItemValue(item,col.numberKey)}}</view>
              </view> -->
            <view style="display: flex;justify-content: center;">
              <!-- <view class="card-label-class">{{col.amountKeyLabel}}</view> -->
              <dk-cell contentRight="{{false}}" amount="{{col.amountFlag}}" left="0" contentFontSize="15" contentColor="{{col.amountFlag?'#FF7B1A':'#333333'}}" contentFontWeight="bold" content="{{item[col.code]?item[col.code]:0}}"></dk-cell>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>