ts_aimz/pages/copyright/repair/repair.wxml
2025-05-09 17:11:32 +08:00

157 lines
10 KiB
Plaintext

<view class="page-container">
<view class="condition-box">
<view class="condition-input-box">
<view class="condition-input-container">
<icon class="ml-20" type="search" size="20"></icon>
<input class="condition-input-text" value="{{keywords}}" bindinput="inputKeywords" bindconfirm="doSearchKeyWord" placeholder-style="font-size:28rpx;" type="text" confirm-type="search" placeholder="项目名称" />
<view class="icon-clear size-32 mr-10" wx:if="{{keywords !=''}}" bind:tap="clearSearch"></view>
<view bind:tap="chooseOptions" class="condition-option-btn icon-arrow-solid">筛选</view>
</view>
<view class="add-btn" bind:tap="applyRepair">申请补正</view>
</view>
<view class="condition-content {{isShowOptions ? 'show':'hide'}}" hidden="{{!isShowOptions}}">
<view class="condition-content-container">
<view class="condition-content-box">
<view class="condition-content-box-left">
<view class="left-item" bind:tap="chooseLeft" data-value="state">
<view class="left-item-line {{curOptions=='state'? 'left-sel-line':'left-normal-line'}}"></view>
<view class="left-sel-text">状态</view>
</view>
<view class="left-item" bind:tap="chooseLeft" data-value="kind">
<view class="left-item-line {{curOptions=='kind'? 'left-sel-line':'left-normal-line'}}"></view>
<view class="left-sel-text">种类</view>
</view>
<view class="left-item" bind:tap="chooseLeft" data-value="type">
<view class="left-item-line {{curOptions=='type'? 'left-sel-line':'left-normal-line'}}"></view>
<view class="left-sel-text">类型</view>
</view>
</view>
<scroll-view class="condition-content-box-scroll-right" scroll-y>
<view class="condition-content-box-right">
<block wx:if="{{curOptions=='state'}}">
<block wx:for="{{stateList}}" wx:key="index">
<view class="{{tempSelState==item.value ? 'right-item-sel':'right-item-normal'}} condition-content-right-item" data-value="{{item.value}}" bind:tap="chooseState">{{item.title}}</view>
</block>
</block>
<block wx:elif="{{curOptions=='kind'}}">
<block wx:for="{{kindList}}" wx:key="index">
<view class="{{tempSelKind==item.value ? 'right-item-sel':'right-item-normal'}} condition-content-right-item" data-value="{{item.value}}" bind:tap="chooseKind">{{item.title}}</view>
</block>
</block>
<block wx:else>
<block wx:for="{{typeList}}" wx:key="index">
<view class="{{tempSelType==item.value ? 'right-item-sel':'right-item-normal'}} condition-content-right-item" data-value="{{item.value}}" bind:tap="chooseType">{{item.title}}</view>
</block>
</block>
</view>
</scroll-view>
</view>
<view class="condition-content-btns">
<view class="condition-content-btn clear" bind:tap="clearChooseOption">清除</view>
<view class="condition-content-btn cancel" bind:tap="cancelChooseOption">取消</view>
<view class="condition-content-btn confirm" bind:tap="confirmChooseOption">确定</view>
</view>
</view>
<view class="condition-mask" bind:tap="cancelChooseOption"></view>
</view>
</view>
<view class="content-container">
<container-loading loadingState="{{loadingState}}" style="height: 83vh;" bindrefresh="doRefreshList">
<scroll-view scroll-y="{{true}}" style="height: 83vh;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 wx:if="{{!hasMore}}" class="no-more">
<view class="no-more-dot"></view>
</view>
</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-content mt-10">{{approveReason}}</view>
<view class="approve-title mt-10">补正凭证</view>
<view class="approve-img-box mt-10">
<block wx:for="{{approveImgs}}" wx:key="index">
<view class="approve-img-item single-line" bind:tap="previewImg" data-value="{{item}}">
{{item.value}}
</view>
</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>