index.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <view class="nav">
  2. <picker range='{{querytypes}}' range-key='name' value="{{content.querytype}}" bindchange='querytypeChange'>
  3. <view class="item" hover-class="navigator-hover">
  4. <text class="iconfont icon-daoruxialajiantou" />
  5. {{content.querytype == 0 ? language['按业务员']||'按业务员' : language['按客户']||'按客户'}}
  6. </view>
  7. </picker>
  8. <picker range='{{pointsL}}' value="{{content.point}}" bindchange='pointChange'>
  9. <view class="item" hover-class="navigator-hover">
  10. <text class="iconfont icon-daoruxialajiantou" />
  11. {{language['入账节点']||'入账节点'}}
  12. </view>
  13. </picker>
  14. <view class="item" hover-class="navigator-hover" bind:tap="openFiltrate">
  15. <text class="iconfont icon-shaixuan" />
  16. {{language['筛选']||'筛选'}}
  17. </view>
  18. <view class="item" style="padding: 0 30rpx;" hover-class="navigator-hover" bind:tap="showSearch">
  19. <text class="iconfont icon-a-sousuolansousuo" />
  20. </view>
  21. </view>
  22. <van-transition show="{{ startUsing }}" custom-class="block">
  23. <van-search custom-class='Yl_search' value="{{ content.condition }}" shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' bind:clear='onClear' />
  24. </van-transition>
  25. <view class="showdata">
  26. <view class="item" wx:for="{{showList}}" wx:key="name">
  27. <view class="name">{{language[item.name]||item.name}}</view>
  28. <view class="value line-1">{{item.value}}</view>
  29. </view>
  30. </view>
  31. <view class="table">
  32. <view class="roof" />
  33. <Yl_ListBox id='ListBox' scrollX='{{true}}' bind:getlist='getList'>
  34. <view style="width:{{sumWidth}}rpx;">
  35. <view class="table-head">
  36. <view wx:for="{{table}}" style="width: {{item.width+'rpx'}};" wx:key="title">{{language[item.title]||item.title}}</view>
  37. </view>
  38. <view class="line" wx:for="{{list}}" wx:key="rowindex">
  39. <view wx:for="{{table}}" style="width: {{col.width+'rpx'}};" data-item="{{item}}" hover-class="{{col.fun?'navigator-hover':''}}" bind:tap="{{col.fun||''}}" wx:for-item="col" wx:key="title" class="line-1">
  40. {{item[col.key]||'--'}}
  41. </view>
  42. </view>
  43. </view>
  44. <Yl_Empty wx:if="{{list.length==0}}" />
  45. </Yl_ListBox>
  46. </view>
  47. <Yl_Filtrate show='{{showFiltrate}}' list="{{[]}}" bindhandle="handleFilter">
  48. <organization slot='head' defaultMy id='organization' />
  49. </Yl_Filtrate>