index.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <t-tabs defaultValue="待接单" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
  2. <t-tab-panel label="{{(language['待接单']||'待接单')+statistics.toacceptCount}}" value="待接单" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  3. <t-tab-panel label="{{(language['待开始']||'待开始')+statistics.tostartCount}}" value="待开始" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  4. <t-tab-panel label="{{(language['进行中']||'进行中')+statistics.startingCount}}" value="进行中" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  5. <t-tab-panel label="{{(language['暂停']||'暂停')+statistics.tostopCount}}" value="暂停" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  6. <t-tab-panel label="{{(language['已完成']||'已完成')+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="{{loadingTexts}}" bind:refresh="onPullDownRefresh" bind:scrolltolower="onReachBottom">
  9. <view style="padding:10px">
  10. <view>
  11. <card class="card" wx:for="{{list}}" data-item="{{item}}" bindtap="toDetail" wx:key="index">
  12. <view style="width: 40px;" slot="left">
  13. <view class="type">{{language[item.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. {{language['指派日期']||'指派日期'}}:{{item.createdate}}
  21. </view>
  22. <view wx:if="{{item.status === '待接单'}}" class="colorInfo small">
  23. {{language[item.status]||item.status}}
  24. </view>
  25. <view wx:if="{{item.status !== '待接单' && item.status !== '已完成'}}" class="colorInfo small">
  26. {{item.status=='待开始'?(language['待开始']||'待开始'):(language['当前工序:']||'当前工序:')+(item.curcontent||item.templatename)}}
  27. </view>
  28. <view wx:if="{{item.status == '已完成'}}" class="colorInfo small">
  29. {{language['已完成']||'已完成'}}
  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">{{language['我负责']||'我负责'}}</t-tag>
  34. <view class="colorInfo small" style="color:{{sColors[item.status]}};">
  35. {{language[item.status]||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="{{language['暂无工单']||'暂无工单'}}" />
  40. </view>
  41. </view>
  42. </t-pull-down-refresh>