<view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<cu-custom bgColor="bg-color" isBack="{{false}}" title="工作台" isSystem="{{true}}" bindmyevent="myevent"></cu-custom>
<view class="work_top">
  <view class="work_top_bg">
    <image mode="widthFix" src="/img/work_img1.png"></image>
  </view>
  <view class="work_top_txt">一键连线冷链追溯系统</view>
</view>
<block wx:if="{{isIcon == 'Y'}}">
  <view class="work_card">
    <view class="work_card_tit">常用功能</view>
    <view class="work_list">
      <view class="work_item" style="width:25%;" wx:for="{{systemMenu}}" wx:for-item="menu" wx:for-index="index" data-type="{{menu.menuType}}" data-path="{{menu.path}}" bindtap="{{isIcon == 'Y' ? '':'tapMenu'}}">
        <view class="menuImage" bindtap="{{isIcon == 'Y' ? 'iconJian':''}}" data-index="{{index}}" data-menuId="{{menu.menuId}}">
          <image src="/img/jian.png" class="iconJian" wx:if="{{isIcon == 'Y'}}"></image>
          <image src="{{menu.icon}}" class="icon"></image>
        </view>
        <view>{{menu.menuName}}</view>
      </view>
    </view>
  </view>
</block>
<view class="work_card" wx:for="{{menuList}}" wx:key="orderNum" wx:for-item="item">
  <view class="work_card_tit">{{item.label}}</view>
  <view class="work_list">
    <view class="work_item" wx:for="{{item.children}}" wx:for-item="menu" wx:key="orderNum"
      data-type="{{menu.menuType}}" data-path="{{menu.path}}" bindtap="{{isIcon == 'Y' ? '':'tapMenu'}}">

      <view class="menuImage" bindtap="{{isIcon == 'Y' ? 'iconJia':''}}" data-menu="{{menu}}">
        <image src="/img/jia.png" class="iconJia" wx:if="{{isIcon == 'Y'}}"></image>
        <image class="icon" src="{{menu.icon}}"></image>
      </view>
      <view>{{menu.label}}</view>
    </view>
  </view>
</view>
<!-- 认证提示弹窗 -->
<view class="auth_win" wx:if="{{showAuthWin}}">
  <view class="auth_win_mid">
    <view class="auth_win_txt">您还未认证，暂无权限</view>
    <view class="auth_win_action">
      <view class="auth_win_btn" bindtap="closeAuthWin">取消</view>
      <navigator url="/pages/userAuth/chooseRole" class="auth_win_btn text-color">去认证</navigator>
    </view>
  </view>
</view>
<!-- 查一查  出库入库弹窗 -->
<!-- <view class="{{showChaType ?'cha_win':''}}" bindtap="closeChaWin">
  <view class="cha_win_con {{showChaType ?'cha_btn_con_transform':''}}">
    <view class="cha_win_tit">选择扫描方式</view>
    <view class="cha_win_btn">
      <view class="cha_btn_item" bindtap="isScan" data-item="showChaType">
        <image src="/img/work_icon11.png"></image>
        <view>实时追溯</view>
      </view>
      <navigator url="/pages/nfc/zhuisu2?path={{path}}&type=11&loginRole={{loginRole}}" class="cha_btn_item"
        wx:if="{{loginRole != 'doctor'}}">
        <image src="/img/dev_img4.png"></image>
        <view>全程温控</view>
      </navigator>
      <navigator url="/pages/nfc/zhuisu2?path={{path}}&type=10&loginRole={{loginRole}}" class="cha_btn_item"
        wx:if="{{loginRole != 'doctor'}}">
        <image src="/img/dev_img3.png"></image>
        <view>追溯标签</view>
      </navigator>
    </view>
    <view class="cha_win_close" bindtap="closeChaWin">
      <text>×</text>
    </view>
  </view>
</view> -->
<view class="{{showChaType ?'cha_win':''}}" bindtap="closeChaWin">
  <view class="cha_win_con {{showChaType ?'cha_btn_con_transform':''}}">
    <view class="cha_win_tit">
      <text>选择扫描方式</text>
      <view bindtap="goScanSetting">编辑</view>
    </view>
    <view class="cha_win_btn">
      <block wx:for="{{tableCoin}}" wx:for-index='index' wx:index='index' wx:for-item="item">
        <view class="cha_btn_item" bindtap="addChain" data-type="{{item.type}}" wx:if="{{item.status}}">
            <image src="{{item.img}}"></image>
            <view>{{item.name}}</view>
        </view>
      </block>
    </view>
    <view class="cha_win_close" bindtap="closeChaWin">
      <text>×</text>
    </view>
  </view>
</view>
<!-- 口令 -->
<view class="prem_win" wx:if="{{isPrem}}">
  <view class="prem_win_mid">
    <text class="cuIcon-close lg text-gray prem_win_close" catchtap="closePremWin"></text>
    <view class="prem_win_tit">请输入验证口令</view>
    <view class="prem_win_inps">
      <input type='password' class="{{iptValue.length>=index?'prem_win_inps_vl':''}}" wx:for="{{6}}" wx:key="index"
        disabled value="{{iptValue.length>=index+1?iptValue[index]:''}}"></input>
    </view>
    <input type='number' class="prem_win_inpt" value="{{iptValue}}" focus="{{isFocus}}" bindinput="setValue"></input>
  </view>
</view>
<!-- 出厂检测 -->
<!-- <view>
  <view class="{{device ?'cha_win':''}}" bindtap="closeChaWin">
    <view class="cha_win_con {{device ?'cha_btn_con_transform':''}}">
      <view class="cha_win_tit">选择扫描方式</view>
      <view class="cha_win_btn">
        <view class="cha_btn_item" bindtap="isScan" data-item="device">
          <image src="/img/work_icon11.png"></image>
          <view>实时追溯</view>
        </view>
        <navigator url="/pages/nfc/zhuisu2?path={{path}}&type=11" class="cha_btn_item">
          <image src="/img/dev_img4.png"></image>
          <view>全程温控</view>
        </navigator>
      </view>
      <view class="cha_win_close" bindtap="closeChaWin">
        <text>×</text>
      </view>
    </view>
  </view>
</view> -->
<view class="{{device ?'cha_win':''}}" bindtap="closeChaWin">
  <view class="cha_win_con {{device ?'cha_btn_con_transform':''}}">
    <view class="cha_win_tit">
      <text>选择扫描方式</text>
      <view bindtap="goScanSetting" data-type="chuchang">编辑</view>
    </view>
    <view class="cha_win_btn">
      <block wx:for="{{tableCoin}}" wx:for-index='index' wx:index='index' wx:for-item="item">
        <view class="cha_btn_item" bindtap="addChain" data-type="{{item.type}}" wx:if="{{item.status && item.name != 'X103' && item.name != 'X104' && item.name != 'X105'}}">
            <image src="{{item.img}}"></image>
            <view>{{item.name}}</view>
        </view>
      </block>
    </view>
    <view class="cha_win_close" bindtap="closeChaWin">
      <text>×</text>
    </view>
  </view>
</view>
<!--出库入库地址  -->
<view>
  <modal title="填写地址" hidden="{{modalHidden}}" confirm-text="保存" cancel-text="取消" bindconfirm="modalBindaconfirm"
    bindcancel="modalBindcancel">
    <view class="info_item">
      <view class="info_text">
        <image src="/img/warnAddr.png"></image>
        <!-- 填写产品{{transportStatus == '00' ? '出库':transportStatus == '10' ? '入库' :'未知'}}地址 -->
        <view>
          <block>
            <picker mode="selector" bindchange="setType" value="{{deptType}}" range="{{seleteType}}"
              range-key="transportStatusName">
              <view class="picker">
                <text>{{deptType ?'运输状态选择为：'+seleteType[deptType].transportStatusName :'请选择运输状态'}}</text>
              </view>
            </picker>
          </block>
        </view>
      </view>
      <view class="time">
        <picker mode="region" bindchange="regionChange" value="{{region}}" custom-item="{{customItem}}">
          <view class="picker" wx:if="{{region.length != 0}}">
            {{region[0]}}，{{region[1]}}，{{region[2]}}
          </view>
          <view wx:else>
            请选择地址
          </view>
        </picker>
      </view>
    </view>
    <input type="text" class="modalVal" placeholder="详细地址（如街道、小区、乡镇、村）" value="{{modalVal}}"
      bindinput="setModalVal"></input>
    <!-- <view class="time">
      <block>
        <picker mode="selector" bindchange="setType" value="{{deptType}}" range="{{seleteType}}"
          range-key="transportStatusName">
          <view class="picker">
            <text>{{deptType ?seleteType[deptType].transportStatusName :'请选择运输状态'}}</text>
          </view>
        </picker>
      </block>
    </view> -->
  </modal>
</view>
<view class="zan-dialog {{ showDialog ? 'zan-dialog--show' : '' }}">
  <!-- 如果想点击弹窗外不隐藏，取消bindtap点击事件即可 -->
  <view class="zan-dialog__mask" bindtap="toggleDialog" />
  <view class="zan-dialog__container">
    <view class="cha_win_tit">请选择</view>
    <view class="selectInfo">
      <view bindtap="goDetail">
        <image src="/img/infoDetail.png"></image>
        <view>查看详情</view>
      </view>
      <view bindtap="clearBind">
        <image src="/img/clearBind.png"></image>
        <view>解除绑定</view>
      </view>
    </view>
    <view class="cha_win_close" bindtap="toggleDialog">
      <text>×</text>
    </view>
  </view>
</view>
<view class="zan-dialog {{ showDialogChild ? 'zan-dialog--show' : '' }}">
  <!-- 如果想点击弹窗外不隐藏，取消bindtap点击事件即可 -->
  <view class="zan-dialog__mask" bindtap="downDialog" />
  <view class="zan-dialog__container">
    <view class="cha_win_tit">请选择</view>
    <view class="selectInfo">
      <view bindtap="goScan">
        <!-- <image src="/img/infoDetail.png"></image> -->
        <image src="/img/X202.png"></image>
        <view>扫描</view>
      </view>
      <!-- <view bindtap="inputBind">
        <image src="/img/input.png"></image>
        <view>手动输入编号</view>
      </view>
      <view bindtap="addChain" data-type="NFC" wx:if="{{devicetype == 'X202'}}">
        <image src="/img/x1.png"></image>
        <view>NFC</view>
      </view> -->
    </view>
    <view class="cha_win_close" bindtap="downDialog">
      <text>×</text>
    </view>
  </view>
</view>