riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<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>