select.wxml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' use-action-slot bind:clear='onClear'>
  2. <view slot='action' class="action" catchtap="openFiltrate">
  3. <text class="iconfont icon-shaixuan" />{{language['筛选']||'筛选'}}
  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}}">{{language[item.type]||item.type}}</text>
  14. <text class="tradefield" style="background-color: #5AB73F;" wx:if="{{item.tradefield}}">{{language[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. {{language['部门']||'部门'}}:{{language[item.depname]||item.depname||' --'}}
  22. </view>
  23. <view class="right">
  24. {{language['业务员']||'业务员'}}:{{item.name||' --'}}
  25. </view>
  26. </view>
  27. <view class="row" style="margin-top: 16rpx;">
  28. <view class="left">
  29. {{language['项目名称']||'项目名称'}}:{{item.projectname||' --'}}
  30. </view>
  31. <view class="right">
  32. {{language['客户']||'客户'}}:{{item.enterprisename||' --'}}
  33. </view>
  34. </view>
  35. <view class="row" style="margin-top: 8rpx;">
  36. <view class="left">
  37. {{language['总金额']||'总金额'}}:{{item.defaultamount||' --'}}
  38. </view>
  39. <view class="right">
  40. {{language['折后金额']||'折后金额'}}:{{item.amount||' --'}}
  41. </view>
  42. </view>
  43. <view class="row" style="margin-top: 8rpx;">
  44. {{language['备注']||'备注'}}:{{item.remarks||' --'}}
  45. </view>
  46. </view>
  47. </view>
  48. </navigator>
  49. <view style="height: 150rpx;" />
  50. <My_empty wx:if="{{!list.length}}" text='{{aitText}}' />
  51. </Yl_ListBox>
  52. <view style="height: 130rpx;" />
  53. <block wx:if="{{!radio}}">
  54. <view class="footer">
  55. <view class="count">
  56. {{language['已选']||'已选'}}:{{result.length}}
  57. </view>
  58. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">{{language['确定']||'确定'}}</van-button>
  59. </view>
  60. <wxs module="handle">
  61. module.exports = {
  62. isCheck: function (id, list) {
  63. return list.some(function (v) {
  64. return v == id
  65. });
  66. },
  67. }
  68. </wxs>
  69. </block>
  70. <Yl_Filtrate1 show='{{showFiltrate}}' list='{{filtratelist}}' bindhandle="handleFilter" />