select.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
  2. <view class="total">共{{params.content.total}}个</view>
  3. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  4. <navigator class="offer-list" url="#" wx:for="{{list}}" wx:key="billno" data-id="{{item[idname]}}" bindtap="changeResult">
  5. <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
  6. <view class="box">
  7. <view class="title">
  8. <text class="line-1">单号:{{item.billno}}</text>
  9. </view>
  10. <view class="tag-box">
  11. <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
  12. <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{tag}}</van-tag>
  13. </view>
  14. <view class="exp line-1">客户:<text>{{item.enterprisename||" --"}}</text></view>
  15. <view class="exp line-1">审核日期:<text>{{item.checkdate}}</text></view>
  16. <view class="exp line-1">特价:<text>{{item.specialoffer==1?'是':'否'}}</text></view>
  17. <view class="exp line-1">负责人:<text>{{item.leader[0].name||' --'}}</text></view>
  18. </view>
  19. </navigator>
  20. <view style="height: 230rpx;" />
  21. <My_empty wx:if="{{!list.length}}" />
  22. </Yl_ListBox>
  23. <block wx:if="{{!radio}}">
  24. <view style="height: 130rpx;" />
  25. <view class="footer">
  26. <view class="count">
  27. 已选:{{result.length}}
  28. </view>
  29. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
  30. </view>
  31. </block>
  32. <wxs module="handle">
  33. module.exports = {
  34. isCheck: function (id, list) {
  35. return list.some(function (v) {
  36. return v == id
  37. });
  38. },
  39. }
  40. </wxs>