index.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <van-search value="{{ params.content.where.condition }}" shape='round' placeholder="请输入搜索关键词" use-action-slot bind:clear='onClear' bind:search="startSearch">
  2. </van-search>
  3. <view class="global-total">总共{{params.content.total}}个</view>
  4. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  5. <navigator url="#" class="project-item global-card" wx:for="{{list}}" data-id="{{item.sa_contractid}}" bind:tap="changeResult" wx:key="sa_contractid">
  6. <view class="label">
  7. <view class="title line-1">{{item.billno}}</view>
  8. <view class="state" style="background-color: {{sColors[item.status]}}">{{item.status}}</view>
  9. </view>
  10. <view class="tag-box">
  11. <view class="systemtag" wx:for="{{item.tag_sys}}" wx:key="item">{{language[item]||item}}</view>
  12. <view class="datatag" wx:for="{{item.tag}}" wx:key="item">{{language[item]||item}}</view>
  13. </view>
  14. <view class="replenish">
  15. <text style="color: #666;">医院:</text>
  16. <text>{{item.hospitalname || ' --'}}</text>
  17. </view>
  18. <view class="replenish">
  19. <text style="color: #666;">经销商:</text>
  20. <text>{{item.agentname || ' --'}}</text>
  21. </view>
  22. <view class="replenish">
  23. <text style="color: #666;">合同类型:</text>
  24. <text>{{item.type || ' --'}}</text>
  25. </view>
  26. <view class="replenish">
  27. <text style="color: #666;">有效期:</text>
  28. <text>{{item.begdate + '-' +item.enddate}}</text>
  29. </view>
  30. <view class="replenish">
  31. <text style="color: #666;">签约日期:</text>
  32. <text>{{item.signdate || ' --'}}</text>
  33. </view>
  34. <view class="replenish">
  35. <text style="color: #666;">负责人:</text>
  36. <text>{{item.leader.length? item.leader[0].name : ' --'}}</text>
  37. </view>
  38. </navigator>
  39. <view wx:if="{{!radio}}" style="height: 70rpx;" />
  40. <My_empty wx:if="{{!list.length}}" />
  41. </Yl_ListBox>
  42. <block wx:if="{{!radio}}">
  43. <view class="footer">
  44. <view class="count">
  45. 已选:{{result.length}}
  46. </view>
  47. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
  48. </view>
  49. <wxs module="handle">
  50. module.exports = {
  51. isCheck: function (id, list) {
  52. return list.some(function (v) {
  53. return v == id
  54. });
  55. },
  56. }
  57. </wxs>
  58. </block>