123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <t-tabs defaultValue="待接单" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
- <t-tab-panel label="{{(language['待接单']||'待接单')+statistics.toacceptCount}}" value="待接单" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
- <t-tab-panel label="{{(language['待开始']||'待开始')+statistics.tostartCount}}" value="待开始" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
- <t-tab-panel label="{{(language['进行中']||'进行中')+statistics.startingCount}}" value="进行中" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
- <t-tab-panel label="{{(language['暂停']||'暂停')+statistics.tostopCount}}" value="暂停" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
- <t-tab-panel label="{{(language['已完成']||'已完成')+statistics.completeCount}}" value="已完成" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
- </t-tabs>
- <t-pull-down-refresh style="padding-bottom:60px" value="{{baseRefresh.value}}" loadingProps="{{loadingProps}}" loadingTexts="{{loadingTexts}}" bind:refresh="onPullDownRefresh" bind:scrolltolower="onReachBottom">
- <view style="padding:10px">
- <view>
- <card class="card" wx:for="{{list}}" data-item="{{item}}" bindtap="toDetail" wx:key="index">
- <view style="width: 40px;" slot="left">
- <view class="type">{{language[item.type]||item.type}}</view>
- </view>
- <view style="flex:1" slot="content">
- <view>
- {{item.province}}{{item.city}}{{item.county}}{{item.address}}
- </view>
- <view class="colorInfo small">
- {{language['指派日期']||'指派日期'}}:{{item.createdate}}
- </view>
- <view wx:if="{{item.status === '待接单'}}" class="colorInfo small">
- {{language[item.status]||item.status}}
- </view>
- <view wx:if="{{item.status !== '待接单' && item.status !== '已完成'}}" class="colorInfo small">
- {{item.status=='待开始'?(language['待开始']||'待开始'):(language['当前工序:']||'当前工序:')+(item.curcontent||item.templatename)}}
- </view>
- <view wx:if="{{item.status == '已完成'}}" class="colorInfo small">
- {{language['已完成']||'已完成'}}
- </view>
- </view>
- <view class="flex-align-center" slot="right">
- <t-tag class="margin-16 leader" wx:for="{{item.isleader}}" size="small" variant="light-outline" theme="primary">{{language['我负责']||'我负责'}}</t-tag>
- <view class="colorInfo small" style="color:{{sColors[item.status]}};">
- {{language[item.status]||item.status}}
- </view>
- </view>
- </card>
- <t-empty wx:if="{{list.length === 0}}" icon="root-list" t-class="empty-cls" t-class-image="t-empty__image" description="{{language['暂无工单']||'暂无工单'}}" />
- </view>
- </view>
- </t-pull-down-refresh>
|