<wxs src="../utils.wxs" module="_" />
|
<t-enter-stat-card title="{{title}}" note="{{note}}" bind:noteClick="noteClick">
|
<view slot="content">
|
<view wx:if="{{loading}}" class="enterprise-info__loading">
|
<t-loading theme="dots" size="50rpx" />
|
</view>
|
<t-empty-page
|
wx:elif="{{!value.stat}}"
|
description="企业当前未上传台账"
|
></t-empty-page>
|
<view wx:else class="enterprise-info__wrap" bind:tap="handCellClick">
|
<view class="enterprise-info__top">
|
<view slot="image" class="enterprise-info__img {{_.percentTextColor(value.stat.percent)}}">
|
<view class="enterprise-info__img__score">
|
<text>{{value.stat.percent}}</text>
|
<view class="enterprise-info__img__unit__bg {{_.percentBgColor(value.stat.percent)}}"> </view>
|
<view class="enterprise-info__img__unit"> % </view>
|
</view>
|
</view>
|
<view class="enterprise-info__main">
|
<view class="enterprise-info__title"> {{describe}} </view>
|
<view class="enterprise-info__img__text">
|
<t-tag
|
max-width="{{130}}"
|
shape="square"
|
size="small"
|
theme="default"
|
variant="light-outline"
|
>{{value.stat.finished + '/' + value.stat.total}}</t-tag
|
>
|
<t-divider
|
t-class="t-class-divider"
|
content="{{title + '详情'}}"
|
align="right"
|
/>
|
</view>
|
</view>
|
</view>
|
<view class="enterprise-info__bottom">
|
<t-collapse>
|
<t-collapse-panel
|
wx:for="{{value.detail}}"
|
wx:for-index="index"
|
wx:key="index"
|
header="{{(_.isFinished(item.status) ? '✓ ' : '✗ ') + item.name}}"
|
header-right-content="{{_.count(item.children)}}"
|
value="{{index}}"
|
t-class-header="t-class-collapse-panel-header"
|
expandIcon
|
style="--td-cell-title-color: {{_.isFinished(item.status) ? 'var(--td-text-color-primary)' : 'var(--td-error-color-active)'}}"
|
>
|
<view slot="content">
|
<view
|
class="enterprise-info__ledger-wrap enterprise-info__ledger-wrap__header"
|
>
|
<view class="enterprise-info__ledger-item__left">
|
台账(*为必填项)
|
</view>
|
<view class="enterprise-info__ledger-item__right"> 上传 </view>
|
<view class="enterprise-info__ledger-item__right"> 时限 </view>
|
</view>
|
<block
|
wx:for="{{item.children}}"
|
wx:for-index="index2"
|
wx:key="index2"
|
wx:for-item="child"
|
>
|
<view
|
class="enterprise-info__ledger-wrap {{(child.upload || !child.needUpdate) ? 'enterprise-info__ledger-wrap__disable' : ''}}"
|
>
|
<view class="enterprise-info__ledger-item__left">
|
<text
|
style="color: {{child.needUpdate ? ' var(--td-error-color);' : 'transparent;'}}"
|
>*</text
|
>
|
{{child.name}}
|
</view>
|
<view class="enterprise-info__ledger-item__right">
|
{{child.upload ? '✓' : '✗'}}
|
</view>
|
<view class="enterprise-info__ledger-item__right">
|
{{child.onTime ? '准时' : (child.upload ? '超时' : '-')}}
|
</view>
|
</view>
|
<t-divider />
|
</block>
|
</view>
|
</t-collapse-panel>
|
</t-collapse>
|
<view class="enterprise-info__tag"> </view>
|
</view>
|
</view>
|
</view>
|
</t-enter-stat-card>
|