select.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' use-action-slot bind:clear='onClear'>
  2. <view slot='action' class="action" catchtap="openFiltrate">
  3. <text class="iconfont icon-shaixuan" />筛选
  4. </view>
  5. </van-search>
  6. <view class="div" style="height: 20rpx;" />
  7. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  8. <navigator class="setclient-list-item" url="#" wx:for="{{list}}" wx:key="{{idname}}" data-id="{{item[idname]}}" bindtap="changeResult">
  9. <view class="con">
  10. <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
  11. <view class="mian">
  12. <view class="title">
  13. <text class="projecttype" style="background-color: #3874F6;" wx:if="{{item.type}}">{{item.type}}</text>
  14. <text class="tradefield" style="background-color: #5AB73F;" wx:if="{{item.tradefield}}">{{item.tradefield}}</text>
  15. <view class="line-1">
  16. {{item.sonum}}
  17. </view>
  18. </view>
  19. <view class="row" style="margin-top: 16rpx;">
  20. <view class="left">
  21. 业务员:{{item.name||' --'}}
  22. </view>
  23. <view class="right">
  24. 项目:{{item.projectname||' --'}}
  25. </view>
  26. </view>
  27. <view class="row" style="margin-top: 8rpx;">
  28. <view class="left">
  29. 客户:{{item.enterprisename||' --'}}
  30. </view>
  31. <view class="right">
  32. 总金额:{{item.defaultamount||' --'}}
  33. </view>
  34. </view>
  35. <view class="row" style="margin-top: 8rpx;">
  36. <view class="left">
  37. 折后金额:{{item.amount||' --'}}
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </navigator>
  43. <view style="height: 150rpx;" />
  44. <My_empty wx:if="{{!list.length}}" />
  45. </Yl_ListBox>
  46. <view style="height: 130rpx;" />
  47. <block wx:if="{{!radio}}">
  48. <view class="footer">
  49. <view class="count">
  50. 已选:{{result.length}}
  51. </view>
  52. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
  53. </view>
  54. <wxs module="handle">
  55. module.exports = {
  56. isCheck: function (id, list) {
  57. return list.some(function (v) {
  58. return v == id
  59. });
  60. },
  61. }
  62. </wxs>
  63. </block>
  64. <Yl_Filtrate1 show='{{showFiltrate}}' list='{{filtratelist}}' bindhandle="handleFilter" />