<wxs module="filter" src="../filter.wxs"></wxs>

<view class="big-rim">
  <form bindsubmit='Gettime'>
    <view class="min-rim">
      <view class="rq">日期:</view>

      <picker class='pi' mode="date" value='{{datet}}' start="2019/1/1" bindchange='bindDateChenge'>
      <view class="rq-rim">
       <view class='kssj'><text class="wz"name="datat"value='{{datet}}'bindinput='watchPassWord'>{{datet}}</text></view>
         <!-- 清除输入框中的内容-->
        <view hidden='{{isBind}}' class="qc-rim">
          <button class="empty" catchtap="eliminate">x</button>
        </view>
      </view>
      </picker>

      <view class="zi">至 </view>
      <picker class="pis"mode="date" value='{{dates}}' start="2019/1/1" end="" bindchange='bindDateChenges'>
        <view class="kssj">
        <text class='wz' name="datas" value='{{dates}}'>{{dates}}</text>
        </view>
        <!-- 清除输入框中的内容 -->
        <view class="end-rim" hidden="{{isBinds}}">
          <button class="end" catchtap="eliminates">x</button>
        </view>
      </picker>
    </view>

    <button class="botton" form-type='submit' data-query='{{item}}'>查询明细</button>
  </form>

</view>

<view class="db">
  <view class="xm">项目</view>
  <view class="je">余额</view>
</view>


<view wx:if="{{details.length!=0}}">
  <block wx:for="{{details}}" wx:for-index="idx" wx:for-item="details">
   <view class="data">
        <view class="left">
          <view class='left-test'>
            <view class="ellipsis-1" style="width: 400rpx;">{{details.BillName}}</view>
          <!-- {{details.BillName}} -->
            <view class='time'>{{details.BillDate}}</view>
          </view>
        </view>
        <view class="val" style='color:{{(details.InSum>0 || details.OutSum *(-1)>0 )?"green":""}}'>
           {{(details.InSum) ? (details.InSum>0 ? ('+'+details.InSum) :(details.InSum) ) : (details.OutSum ? (details.OutSum *(-1) >0 ? ('+'+details.OutSum *(-1)) : details.OutSum *(-1) ):0)}}元             
           </view>
      </view>
  </block>

</view>