chengpin.wxml 4.7 KB
<!--pages/qiyeyongdian/detail/detail.wxml-->
<!-- 货物信息 -->
<view class="modal-mask" bindtap="hideModal"  wx:if="{{datechu}}"></view>
<view wx:if="{{datechu}}">
  <view class="modal-content">
  <!-- 时间 地磅 货物 选项卡 -->

    <view class="modal_year">
      <view class="modal_single {{modalNum == index ?'modal_choice':''}}" wx:for="{{modalTitle}}" wx:key="" bindtap='selectbang' data-index="{{index}}">{{item}}</view>
    </view>

    <!-- 选择时间 -->
    <view class="timewrap" wx:if="{{modalNum==0}}">

      <view class="timewrap">
    

        <!-- 开始时间和结束时间 -->

        <view class="timetwo">
          <view class="timebetin" bindtap="xuanshijan" data-time="1">

            <view class="timetop {{timesel==1?'seltimeactive':''}}">开始时间</view>
            <view class="timebottom {{timesel==1?'selnameactive':''}}">{{startdate}}</view>
          </view>
          <view class="timebetin" bindtap="xuanshijan" data-time="2">

            <view class="timetop {{timesel==2?'seltimeactive':''}}">结束时间</view>
            <view class="timebottom {{timesel==2?'selnameactive':''}}">{{enddate}}</view>
          </view>
        </view>

        <view class="timebox" wx:if="{{currentdate}}">
          <view class="timeboxitem {{sel==index?'timeboxactive':''}}" wx:for="{{timearr}}" wx:key="">
            <view class="itemcontent">{{item.year}}</view>
            <view class="itemcontent">{{item.month}}</view>
            <view class="itemcontent">{{item.day}}</view>
          </view>


        </view>
        <view class="qudingdate" wx:else bindtap='qudingxuandate'>确定</view>


        <view wx:if="{{currentdate}}">

          <date-picker id="date-picker" value="{{datePickerValue}}" isShow="{{datePickerIsShow}}" bindsureclick="datePickerOnSureClick" bindcancelclick="datePickerOnCancelClick" />

        </view>


      </view>


    </view>

    <!-- 选择地磅 选择货物 -->
    <view class="dibang" wx:else>
      <!-- 选择地磅 -->
      <scroll-view scroll-y style="height: 400px;" wx:if="{{modalNum==1}}">
        <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>

      <!--选择货物 -->

      <scroll-view scroll-y style="height: 400px;" wx:if="{{modalNum==2}}">
        <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="quxiaobang">取消</view>
        <view class="cacle sure" bindtap="quedibang">确定</view>
      </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}}">
      <picker mode="date" value="{{date}}" start="" end="" bindchange="bindstateDateChange" fields="month">
        <view class="picker">
          {{statedate}}
        </view>
      </picker>
    </view>
    <!-- 流水 -->
    <view wx:if="{{tabNum == 1}}" bindtap='datexianshi'>{{watertime}}</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>{{showdate}}</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="" bindtap="detail">
      <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">{{item.btn}}</view>
    </view>
  </view>
</view>