<!--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>
|