riku
2023-11-29 9b09d13712c0c005891450a3bf4b6d848ec0ff37
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!--pages/mLedger/ledgerhome/ledgerhome.wxml-->
<view class="page">
  <view class="banner-bg"></view>
  <view class="page__hd">
    <!-- <view class="fyui-panel"> -->
    <view class="head_right" bindtap="changeMonth">
      <text class="head_tag"
        >{{showThisMonth ? thisMonth + '本月' : lastMonth + '上月'}}汇总</text
      >
      <mp-icon
        style="margin-left: 4px"
        icon="transfer2"
        color="white"
        size="{{20}}"
      ></mp-icon>
    </view>
    <view class="card">
      <block wx:if="{{showThisMonth}}">
        <view class="head_row">
          <view class="head_row_item">
            <view class="head_tag">完成度</view>
            <view class="head_1 head_1_big"
              >{{thisMonthInfo.percent}}<text class="head_row_item_tag"
                >%</text
              ></view
            >
          </view>
          <view class="head_row_item">
            <view class="head_tag">必填项</view>
            <view class="head_1"
              >{{thisMonthInfo.finishedMust}}<text class="head_row_item_tag"
                >/{{thisMonthInfo.totalMust}}</text
              ></view
            >
          </view>
          <view class="head_row_item">
            <view class="head_tag">选填项</view>
            <view class="head_1"
              >{{thisMonthInfo.finishedSelect}}<text class="head_row_item_tag"
                >/{{thisMonthInfo.totalSelect}}</text
              ></view
            >
          </view>
        </view>
        <view class="head_row">
          <view class="head_tag">本期台账提交日:{{deadline}}</view>
          <block wx:if="{{thisMonthInfo.percent < 1}}">
            <view wx:if="{{leftday > 0}}" class="head_tag"
              >剩余<text>{{leftday}}</text>天</view
            >
            <view wx:else class="head_tag"
              >逾期 <text>{{thisMonthInfo.overtime}}</text>天</view
            >
          </block>
        </view>
        <view class="head_tag">{{thisMonthInfo.suggestion}}</view>
      </block>
      <block wx:else>
        <view class="head_row">
          <view class="head_row_item">
            <view class="head_tag">完成度</view>
            <view class="head_1"
              >{{lastMonthInfo.percent}}<text class="head_row_item_tag"
                >%</text
              ></view
            >
          </view>
          <view class="head_row_item">
            <view class="head_tag">必填项</view>
            <view class="head_1"
              >{{lastMonthInfo.finishedMust}}<text class="head_row_item_tag"
                >/{{lastMonthInfo.totalMust}}</text
              ></view
            >
          </view>
          <view class="head_row_item">
            <view class="head_tag">选填项</view>
            <view class="head_1"
              >{{lastMonthInfo.finishedSelect}}<text class="head_row_item_tag"
                >/{{lastMonthInfo.totalSelect}}</text
              ></view
            >
          </view>
        </view>
        <view class="head_row">
          <view class="head_tag">提交情况:{{lastMonthInfo.status}}</view>
        </view>
        <view class="head_tag">建议:{{lastMonthInfo.suggestion}}</view>
      </block>
    </view>
    <view class="head_right">
      <text class="head_btn" bindtap="gotoHistory">历史记录 ></text>
    </view>
  </view>
  <!-- </view> -->
  <view class="page__bd">
    <view class="swiper-tab">
      <scroll-view
        class="swiper-tab_view"
        scroll-into-view="item{{currentTab}}"
        scroll-x="true"
        show-scrollbar="true"
        scroll-with-animation="true"
      >
        <block wx:for="{{tabList}}" wx:key="i">
          <view
            id="item{{index}}"
            class="swiper-tab-list {{currentTab==index ? 'on' : ''}}"
            data-current="{{index}}"
            bindtap="swichNav"
          >
            {{item.name}}
            <text wx:if="{{item.tag > 0}}" class="swiper-tab-list__tag"
              >{{item.tag}}</text
            >
          </view>
        </block>
      </scroll-view>
    </view>
    <swiper
      current="{{currentTab}}"
      class="swiper-box"
      duration="300"
      bindchange="bindChange"
      style="height: {{pageheight}};"
    >
      <block
        wx:for="{{pageList}}"
        wx:for-item="page"
        wx:key="n"
        wx:for-index="i1"
      >
        <swiper-item>
          <view class="ledger-group page{{i1}}">
            <view
              wx:for="{{page}}"
              wx:for-item="ledger"
              wx:key="t"
              class="ledger-item"
              wx:for-index="i2"
              data-index="{{i1}},{{i2}}"
              bindtap="gotoLedgerDetail"
              style="opacity: {{ledger.opacity}};"
            >
              <image
                class="ledger-tag"
                src="{{ledger.tag}}"
                mode="aspectFit"
              ></image>
              <image class="ledger-icon" src="{{ledger.iconUrl}}"></image>
              <view style="padding: 0 10px;">{{ledger.ledgerName}}</view>
            </view>
          </view>
        </swiper-item>
      </block>
    </swiper>
  </view>
</view>