118 lines
7.7 KiB
Plaintext
118 lines
7.7 KiB
Plaintext
<view class="page-container">
|
|
<view class="search-box">
|
|
<view class="search-input-box">
|
|
<view class="search-container">
|
|
<input class="search-input" value="{{keywords}}" bindinput="inputKeywords" bindconfirm="doSearchKeyWord" type="text" confirm-type="search" placeholder="请输入项目名称" />
|
|
<view wx:if="{{keywords !=''}}" bind:tap="clearSearch" class="icon-clear" style="width: 20px;height: 20px;"></view>
|
|
</view>
|
|
<view class="add-btn" bind:tap="applyRepair">申请补正</view>
|
|
</view>
|
|
<!-- 条件 -->
|
|
<scroll-view scroll-x>
|
|
<view class="options-list-box">
|
|
<block wx:for="{{stateList}}" wx:key="index">
|
|
<view class="{{selectState==item.value ? 'options-tab-select':'options-tab-normal'}} ml-20" data-value="{{item.value}}" bind:tap="chooseState">{{item.title}}</view>
|
|
</block>
|
|
<view class="divider-h-white"></view>
|
|
<block wx:for="{{typeList}}" wx:key="index">
|
|
<view class="{{selectType==item.value ? 'options-tab-select':'options-tab-normal'}} {{index>0 ? 'ml-20' :''}}" data-value="{{item.value}}" bind:tap="chooseType">{{item.title}}</view>
|
|
</block>
|
|
<view class="divider-h-white"></view>
|
|
<block wx:for="{{kindList}}" wx:key="index">
|
|
<view class="{{selectKind==item.value ? 'options-tab-select':'options-tab-normal'}} ml-20" data-value="{{item.value}}" bind:tap="chooseKind">{{item.title}}</view>
|
|
</block>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
<view class="content-container">
|
|
<container-loading loadingState="{{loadingState}}" style="height: 82vh;" bindrefresh="doRefreshList">
|
|
<scroll-view scroll-y="{{true}}" style="height: 82vh;padding-bottom: 40px;" bindrefresherrefresh="doRefreshList" refresher-enabled refresher-triggered="{{listRefreshTrig}}" bindscrolltolower="doLoadMore" lower-threshold='30'>
|
|
<view class="repair-list-box">
|
|
<block wx:for="{{repairList}}" wx:key="index">
|
|
<mp-slideview id="mp-slide-{{index}}" buttons="{{slideBtns}}" icon="{{true}}" data-value="{{item}}" bindshow="show" bindbuttontap="slideButtonTap" class="{{index > 0 ? 'mt-20':''}}">
|
|
<view class="repair-list-item">
|
|
<view class="repair-item-title-box" data-value="{{item}}" bind:tap="showReason">
|
|
<view class="repair-title-box">
|
|
<view class="{{tools.repairStatusColor(item.applyStatus)}} repair-status-content">{{tools.repairStatus(item.applyStatus)}}</view>
|
|
</view>
|
|
<view class="repair-title-apply-time">{{item.gmtCreate}}</view>
|
|
</view>
|
|
<view class="divider-v mt-20"></view>
|
|
<view class="repair-name-box mt-10" data-value="{{item}}" bind:tap="showReason">
|
|
<view class="repair-title-content">{{item.projName}}</view>
|
|
</view>
|
|
<view data-value="{{item}}" bind:tap="showReason" class="repair-reason-desc multiple-2-ellipsis">{{item.correctionReason}}</view>
|
|
<view class="repair-footer-box">
|
|
<view class="repair-attr-box" data-value="{{item}}" bind:tap="showReason">
|
|
<view class="repair-attr-item">{{tools.repairType(item.type)}}</view>
|
|
<view class="repair-attr-item">{{tools.repairKind(item.correctionType)}}</view>
|
|
</view>
|
|
<view wx:if="{{item.applyStatus=='APPROVED'}}" class="options-btn" bind:tap="downloadFile" data-value="{{item}}">下载</view>
|
|
</view>
|
|
</view>
|
|
</mp-slideview>
|
|
</block>
|
|
<mp-loading show="{{isLoadMore}}" type="circle"></mp-loading>
|
|
</view>
|
|
</scroll-view>
|
|
</container-loading>
|
|
</view>
|
|
</view>
|
|
<mp-dialog show="{{showHint}}" buttons="{{buttons}}" bindbuttontap="closeHint">
|
|
<view class="approve-box">
|
|
<view class="approve-title">补正凭证</view>
|
|
<view class="approve-img-box mt-10">
|
|
<block wx:for="{{approveImgs}}" wx:key="index">
|
|
<image data-value="{{item.url}}" bind:tap="previewImg" class="approve-img-item" src="{{item.url}}" mode="scaleToFill"></image>
|
|
</block>
|
|
</view>
|
|
<view wx:if="{{approveTime !=''}}" class="approve-content-box">
|
|
<view class="approve-title mt-10">审核时间</view>
|
|
<view class="approve-content mt-10">{{approveTime}}</view>
|
|
<view class="approve-title mt-10">审核意见</view>
|
|
<view class="approve-content mt-10">{{approveDesc}}</view>
|
|
</view>
|
|
</view>
|
|
</mp-dialog>
|
|
<!-- 下载dialog -->
|
|
<mp-half-screen-dialog show="{{showDownloadDialog}}" bindclose="closeDialog">
|
|
<view slot="title" style="font-size: 16px;font-weight: bold;">资料下载</view>
|
|
<view slot="desc" style="margin-top: 10px;">
|
|
<view class="download-item" wx:if="{{tempDownloadPro.correctionType=='MANUAL' || tempDownloadPro.correctionType=='ALL'}}">
|
|
<view class="download-title">
|
|
<view class="icon-source"></view>
|
|
<view class="download-title-txt">操作手册</view>
|
|
</view>
|
|
<view class="download-btn-box">
|
|
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/manual/">
|
|
<view class="ic-doc" style="width: 20px;height: 20px;"></view>
|
|
<view class="download-btn-txt">Word格式下载</view>
|
|
</view>
|
|
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/manual/pdf/">
|
|
<view class="ic-pdf" style="width: 20px;height: 20px;"></view>
|
|
<view class="download-btn-txt">PDF格式下载</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="download-item" wx:if="{{tempDownloadPro.correctionType=='CODE' || tempDownloadPro.correctionType=='ALL'}}">
|
|
<view class="download-title">
|
|
<view class="icon-tool"></view>
|
|
<view class="download-title-txt">源代码</view>
|
|
</view>
|
|
<view class="download-btn-box">
|
|
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/code/">
|
|
<view class="ic-doc" style="width: 20px;height: 20px;"></view>
|
|
<view class="download-btn-txt">Word格式下载</view>
|
|
</view>
|
|
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/code/pdf/">
|
|
<view class="ic-pdf" style="width: 20px;height: 20px;"></view>
|
|
<view class="download-btn-txt">PDF格式下载</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="hint mt-10">温馨提示:若您想把下载的文件留存到本地,打开预览页面后,在界面右上角操作栏内,选择使用其他软件打开或者保存文件功能就能实现。</view>
|
|
</view>
|
|
</mp-half-screen-dialog>
|
|
<down-progress isShow="{{downloading}}" progress="{{downloadProgress}}"></down-progress>
|
|
<mp-toptips msg="{{msgHint}}" type="{{msgType}}" show="{{msgShow}}" :delay="2000"></mp-toptips>
|
|
<wxs src="../../../utils/comm.wxs" module="tools"></wxs> |