index.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <t-tabs defaultValue="待接单" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
  2. <t-tab-panel label="待接单{{statistics.toacceptCount}}" value="待接单" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  3. <t-tab-panel label="待开始{{statistics.tostartCount}}" value="待开始" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  4. <t-tab-panel label="进行中{{statistics.startingCount}}" value="进行中" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  5. <t-tab-panel label="暂停{{statistics.tostopCount}}" value="暂停" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  6. <t-tab-panel label="已完成{{statistics.completeCount}}" value="已完成" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  7. </t-tabs>
  8. <t-pull-down-refresh style="padding-bottom:60px" value="{{baseRefresh.value}}" loadingProps="{{loadingProps}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onPullDownRefresh" bind:scrolltolower="onReachBottom">
  9. <view style="padding:10px">
  10. <view>
  11. <card class="card" wx:for="{{list}}" url="{{'/Eservice/workOrderDetail/index?id=' + item.sa_workorderid}}" wx:key="index">
  12. <view style="width: 40px;" slot="left">
  13. <view class="type">{{item.type}}</view>
  14. </view>
  15. <view style="flex:1" slot="content">
  16. <view>
  17. {{item.province}}{{item.city}}{{item.county}}{{item.address}}
  18. </view>
  19. <view class="colorInfo small">
  20. 指派日期:{{item.createdate}}
  21. </view>
  22. <view wx:if="{{item.status === '待接单'}}" class="colorInfo small">
  23. {{item.status}}
  24. </view>
  25. <view wx:if="{{item.status !== '待接单' && item.status !== '已完成'}}" class="colorInfo small">
  26. {{item.status=='待开始'?'待开始':'当前工序:'+item.curcontent}}
  27. </view>
  28. <view wx:if="{{item.status == '已完成'}}" class="colorInfo small">
  29. 已完成
  30. </view>
  31. </view>
  32. <view class="flex-align-center" slot="right">
  33. <t-tag class="margin-16 leader" wx:for="{{item.isleader}}" size="small" variant="light-outline" theme="primary">我负责</t-tag>
  34. <view class="colorInfo small">
  35. {{item.status}}
  36. </view>
  37. </view>
  38. </card>
  39. <t-empty wx:if="{{list.length === 0}}" icon="root-list" t-class="empty-cls" t-class-image="t-empty__image" description="暂无工单" />
  40. </view>
  41. </view>
  42. </t-pull-down-refresh>