<view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<cu-custom bgColor="bg-color" isBack="{{true}}" title="冷链列表">
  <!-- <view slot="content">冷链列表</view> -->
</cu-custom>
<view class="worker_search">
  <view class="worker_search_con">
    <input type="text" placeholder="请输入产品名称、生产企业名称" value="{{keyword}}" bindinput="setKeyword"></input>
    <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  </view>
</view>
<view class="query_list">
  <view class="querLabel">
    <text>冷链状态</text>
    <view>
      <view class="label" bindtap="allStatus">{{text}}<image src="/img/down.png"></image>
      </view>
      <view class="status" style="{{isStatus ? 'display: block;':'display: none;'}}">
        <text wx:for="{{status}}" wx:for-item="item" bindtap="setStatus" data-type="{{item.type}}">
          {{item.statu}}
        </text>
      </view>
    </view>
  </view>
  <view>
    <scroll-view scroll-y enable-back-to-top>
      <view>
        <block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="id">
          <view class="query_item {{ item.isTouchMove ? 'touch-move-active' : '' }}" bindtouchstart="touchStart" bindtouchmove="touchMove" data-index="{{ index }}"  bindtap="goChainInfo" data-id="{{item.id}}">
            <view class="info">
              <view>
                <view class="query_item_txt"><text class="query_item_label">编号:</text> <text>{{item.code || "N/A"}}</text></view>
                <view class="query_item_txt"><text class="query_item_label">冷链名称:</text> <text>{{item.name || "N/A"}}</text></view>
                <view class="query_item_txt">
                  <text class="query_item_label">产品名称: </text>
                  <text>{{item.productName || "N/A"}}</text>
                </view>
                <view class="query_item_txt">
                  <text class="query_item_label">包装类型:</text>
                  <text wx:if="{{item.packageType == 10}}">支</text>
                  <text wx:if="{{item.packageType == 20}}">包</text>
                  <text wx:if="{{item.packageType == 30}}">箱</text>
                  <text wx:if="{{item.packageType == 40}}">托盘</text>
                  <text wx:if="{{item.packageType == 50}}">其他</text>
                </view>
                <view class="query_item_txt">
                  <text class="query_item_label">状态: </text>
                  <text class="{{item.status == 00 ? 'query_zc': item.status == 10 ? 'query_jb': 'query_wx'}}" wx:if="{{item.transportStatus == 00}}">已入库</text>
                  <text class="{{item.status == 00 ? 'query_zc': item.status == 10 ? 'query_jb': 'query_wx'}}" wx:if="{{item.transportStatus == 10}}">已出库</text>
                  <text class="{{item.status == 00 ? 'query_zc': item.status == 10 ? 'query_jb': 'query_wx'}}" wx:if="{{item.transportStatus == 20}}">已结束</text>
                </view>
                <view class="query_item_txt"><text class="query_item_label">开始时间: </text> <text>{{item.createTime || "N/A"}}</text>
                </view>
              </view>
              <!-- <navigator url="/pages/query/details?id={{item.id}}" class="query_btn" wx:if="{{item.id}}">查看详情
              </navigator> -->
            </view>
            <view class="scrollText">
              <view class="edit" bindtap="editList" data-index="{{ index }}" data-item="{{item}}"> 修改 </view>
              <view class="del" bindtap="delList" data-id="{{ item.id }}"> 删除 </view>
            </view>
          </view>
        </block>
      </view>
    </scroll-view>
  </view>
</view>
<view class="addLabel" bindtap="addLabel">
  <text>添加</text>
</view>