yuanliao.wxml 2.6 KB
<!--pages/qiyeyongdian/detail/detail.wxml-->
<!-- 货物信息 -->
<view class="modal-mask" bindtap="hideModal" wx:if="{{showModal}}"></view>
<view wx:if="{{showModal}}">
  <view class="modal-content">
    <!-- 选项卡 -->
    <view class="modal_year">
      <view class="modal_single {{modalNum == index ?'modal_choice':''}}" wx:for="{{modalTitle}}" wx:key="">{{item}}</view>
    </view>
    <!-- 月份 -->
    <scroll-view scroll-y style="height: 400px;">
    <view class="modal_month">
      <view class="month_single {{changeColor == index?'change':''}}" wx:for="{{monthList}}" wx:key="" data-id="{{index}}" catchtap="choice">{{item}}</view>
    </view>
    </scroll-view>
    <view class='btns'>
      <view class="cacle" bindtap="hideModal">取消</view>
      <view class="cacle sure" bindtap="hideModal">确定</view>
    </view>
  </view>
</view>
<!-- 选项卡 -->
<view class="tab">
  <view wx:for="{{tabList}}" wx:key="" class="tab_single {{tabNum == index?'tab_border':''}}" bindtap='changeTab' data-id="{{index}}">{{item}}</view>
</view>
<!-- 月份 -->
<view class="search_month">
  <view class="rowimg">
    <image src='/img/row.png' class="left"></image>
  </view>
  <view class="date_time">
    <!-- 出库 -->
    <view wx:if="{{tabNum == 0}}">2019.06</view>
    <!-- 流水 -->
    <view wx:if="{{tabNum == 1}}" bindtap='toShowModal'>{{time}}</view>
    <view class="rowimg">
      <image src='/img/row.png' class="down"></image>
    </view>
  </view>
  <view class="rowimg">
    <image src='/img/row.png'></image>
  </view>
</view>
<!-- 出库 -->
<view wx:if="{{tabNum == 0}}">
  <view class="cp_title">
    成品入库信息
  </view>
  <view class="total">
    重量总计(吨)
    <text>1000</text>
  </view>
  <!-- 折线图 -->
  <view class="charts_line">
    <view class="chart">
      <ec-canvas id="mychart" canvas-id="mychart-line" ec="{{ ec }}"></ec-canvas>
    </view>
    <view class="total_power">
      <view>2019年6月</view>
    </view>
  </view>
</view>
<!-- 流水 -->
<view wx:if="{{tabNum == 1}}">
  <view class="second_total">重量总计(吨):1000</view>
  <!-- 数据 -->
  <view class="table">
    <view class="table_title">
      <view wx:for="{{tableTitle}}" wx:key="">{{item}}</view>
    </view>
    <view class="table_tr" wx:for="{{trList}}" wx:key="">
      <view class="tr_time">{{item.date}}</view>
      <view class="tr_pos">{{item.position}}</view>
      <view class="tr_name">{{item.name}}</view>
      <view class="tr_time">{{item.num}}</view>
      <view class="tr_btn" bindtap='toDetail'>{{item.btn}}</view>
    </view>
  </view>
</view>