select.wxml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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" wx:if="{{siteid == 'HY'}}" style="margin-top: 16rpx;">
  28. <view class="left">
  29. {{language['公称通径']||'公称通径'}}:{{language[item.caliber]||item.caliber||' --'}}
  30. </view>
  31. <view class="right">
  32. {{language['公称压力']||'公称压力'}}:{{item.nominalpressure||' --'}}
  33. </view>
  34. </view> -->
  35. <view class="row" style="margin-top: 16rpx;">
  36. <view class="left">
  37. {{language['项目名称']||'项目名称'}}:{{item.projectname||' --'}}
  38. </view>
  39. <view class="right">
  40. {{language['客户']||'客户'}}:{{item.enterprisename||' --'}}
  41. </view>
  42. </view>
  43. <view class="row" style="margin-top: 8rpx;">
  44. <view class="left">
  45. {{language['总金额']||'总金额'}}:{{item.defaultamount||' --'}}
  46. </view>
  47. <view class="right">
  48. {{language['折后金额']||'折后金额'}}:{{item.amount||' --'}}
  49. </view>
  50. </view>
  51. <view class="row" style="margin-top: 8rpx;">
  52. {{language['备注']||'备注'}}:{{item.remarks||' --'}}
  53. </view>
  54. </view>
  55. </view>
  56. </navigator>
  57. <view style="height: 150rpx;" />
  58. <My_empty wx:if="{{!list.length}}" text='{{aitText}}' />
  59. </Yl_ListBox>
  60. <view style="height: 130rpx;" />
  61. <block wx:if="{{!radio}}">
  62. <view class="footer">
  63. <view class="count">
  64. {{language['已选']||'已选'}}:{{result.length}}
  65. </view>
  66. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">{{language['确定']||'确定'}}</van-button>
  67. </view>
  68. <wxs module="handle">
  69. module.exports = {
  70. isCheck: function (id, list) {
  71. return list.some(function (v) {
  72. return v == id
  73. });
  74. },
  75. }
  76. </wxs>
  77. </block>
  78. <Yl_Filtrate1 show='{{showFiltrate}}' list='{{filtratelist}}' bindhandle="handleFilter" />