riku
2026-03-05 9465dc404f7e7cd56100e4859ee0946a3fef7b09
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
<!--pages/mLedger/ledgerupload/ledgerupload.wxml-->
<view class="page">
  <view class="page__hd">
    <view> {{ledger.ledgerName}} </view>
  </view>
  <view class="page__bd">
    <view wx:if="{{ledger.description}}" class="ledger-des">
      <view class="ledger-tips">
        <mp-icon icon="info" color="" size="{{16}}"></mp-icon>
        <text>{{ledger.ledgerTypeId == -1 ? '操作提示' : '台账提示'}}</text>
      </view>
      <text>{{ledger.description}}</text>
    </view>
    <view
      wx:if="{{!ledger.upLoad || reUpload}}"
      class="weui-upload-view"
      style="margin-top: 16px"
    >
      <mp-upload
        title="上传文件(必填)"
        tips="文件最大不能超过5MB"
        allowFiles="{{true}}"
        titleClass="upload-title-class"
        max-count="6"
        files="{{imgFiles}}"
        binduploadImg="uploadFile"
        binddelete="delImg"
        bindfail="uploadFileFail"
      ></mp-upload>
      <textarea
        disabled="{{remarkDisable}}"
        value="{{remark}}"
        class="text-area"
        auto-height="{{false}}"
        name="des"
        placeholder="添加备注(选填)"
        bindinput="onRemarkChange"
      ></textarea>
    </view>
    <block wx:else>
      <view style="font-size: 14px; margin-top: 16px">台账文件</view>
      <file-grid files="{{imgFiles}}"></file-grid>
      <view style="font-size: 14px; margin-top: 16px">备注</view>
      <textarea
        disabled="{{true}}"
        class="text-area text-area-read"
        placeholder="无备注"
        value="{{remark}}"
      ></textarea>
      <view style="font-size: 12px; margin-top: 16px;color: rgb(160, 160, 160);">上传时间: {{time}}</view>
    </block>
  </view>
  <view class="page__ft">
    <view wx:if="{{!ledger.upLoad || reUpload}}" class="fix-bottom">
      <view
        wx:if="{{type == 0 && ledger.copy && !reUpload}}"
        class="submit submit-3 left"
        bindtap="onCopyLedger"
      >
        <t-loading
          wx:if="{{latestLedgerLoading}}"
          theme="spinner"
          size="20rpx"
          class="wrapper"
        />
        <text>延用</text>
        <!-- <view class="small-tag-text">
          <text wx:if="{{lastLedger}}">上次记录:{{lastLedger._updateTimeStr}}</text>
          <text wx:else>无上传记录</text>
        </view> -->
      </view>
      <view
        wx:if="{{ledger.notRelated}}"
        class="submit submit-2 left"
        bindtap="onSubmitNoLedger"
        >不涉及</view
      >
      <view class="submit right" bindtap="onSubmit">提交</view>
    </view>
    <view wx:else class="fix-bottom">
      <view class="submit right" bindtap="reUpload">重新上传</view>
    </view>
  </view>
 
  <c-dialog show="{{showDialog}}" yes="确认" bindconfirm="submitLedger">
    <view wx:if="{{uploadMode == 0}}">确认是否提交?</view>
    <view wx:elif="{{uploadMode == 1}}">确认不涉及?</view>
    <view wx:else="{{uploadMode == 2}}">
      <view>上次记录:{{lastLedger._updateTimeStr}}</view>
      <view>确认延用?</view>
    </view>
  </c-dialog>
</view>