78 lines
5.3 KiB
Plaintext
78 lines
5.3 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="{{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 class="divider-h-white"></view>
|
|
<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>
|
|
</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>
|
|
<mp-toptips msg="{{msgHint}}" type="{{msgType}}" show="{{msgShow}}" :delay="2000"></mp-toptips>
|
|
<wxs src="../../../utils/comm.wxs" module="tools"></wxs> |