|
@@ -3,106 +3,139 @@
|
|
|
<view class="examine">
|
|
|
<scroll-view scroll-x @scrolltolower="scrollGet" class="header">
|
|
|
<view class="tabTitle_tow">
|
|
|
- <view class="tabTitle_tow_li" @tap="tabClickTow(index)" :key="index" v-for="(item,index) in tabTextTow">
|
|
|
- <view :class="{on:curTabTow==index}" class="tabTitle_tow_text">{{item}}</view>
|
|
|
+ <view class="tabTitle_tow_li" @tap="tabClickTow(item,index)" :key="index" v-for="(item,index) in tabTextTow">
|
|
|
+ <view :class="{on:curTabTow==index}" class="tabTitle_tow_text">{{item.name}}</view>
|
|
|
<view :class="{on:curTabTow==index}" class="tabTitle_tow_across"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
<scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
|
|
|
<!-- 隐患检查 -->
|
|
|
- <view v-if="pageType==0">
|
|
|
+ <view v-if="curTabIndex=='detail'">
|
|
|
<view class="basics">
|
|
|
<view class="basics_li">
|
|
|
<text>学院:</text>
|
|
|
- <text>环测学院</text>
|
|
|
+ <text>{{infoData.collegeName}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li">
|
|
|
<text>实验室:</text>
|
|
|
- <text>实验室名称-房间号</text>
|
|
|
+ <text>{{infoData.subjectName}}-{{infoData.roomNumber}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li">
|
|
|
<text>楼栋:</text>
|
|
|
- <text>楼栋名称</text>
|
|
|
+ <text>{{infoData.subjectName}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li">
|
|
|
<text>检查类型:</text>
|
|
|
- <text>校级巡查</text>
|
|
|
+ <text>{{infoData.checkType==1?'校园巡查':(infoData.checkType==2?'实验室自查':'')}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li">
|
|
|
<text>检查范围:</text>
|
|
|
- <text>全校</text>
|
|
|
+ <text>{{infoData.checkRange==1?'全校':(infoData.checkRange==2?'学院':'实验室')}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li" style="border:none;">
|
|
|
<text>检查计划:</text>
|
|
|
- <text>2023年3月份校级督导检查</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="attachment">
|
|
|
- <view class="attachment_t">
|
|
|
- <text>材料附件</text>
|
|
|
- <text>点击文件标题查看</text>
|
|
|
- </view>
|
|
|
- <view class="attachment_li">
|
|
|
- <img src="@/images/Version3.3.3/icon_djc_wj.png"/>
|
|
|
- <text>文件标题文件标题</text>
|
|
|
- <img class="attachment_li_del" src="@/images/Version3.3.3/icon_fjgk_sc.png"/>
|
|
|
+ <text>{{infoData.title}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="basics">
|
|
|
<view class="basics_li">
|
|
|
<text>检查结果:</text>
|
|
|
- <text>不符合</text>
|
|
|
+ <text>{{infoData.checkResult==0?'不符合':(infoData.checkResult==1?'符合':'')}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li">
|
|
|
<text>整改期限:</text>
|
|
|
- <text>2023-04-06</text>
|
|
|
+ <text>{{infoData.rectifyDeadline}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li">
|
|
|
<text>整改通知:</text>
|
|
|
- <text style="color: #0183FA;">整改告知书</text>
|
|
|
+ <text style="color: #0183FA;">{{infoData.rectifyNotice == 1?'整改告知书':(infoData.rectifyNotice == 2?'整改通知书':'')}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li">
|
|
|
<text>检查者:</text>
|
|
|
- <text>管理员</text>
|
|
|
+ <text>{{infoData.checkUser}}</text>
|
|
|
</view>
|
|
|
<view class="basics_li" style="border:none;">
|
|
|
<text>检查时间:</text>
|
|
|
- <text>2023-04-06</text>
|
|
|
+ <text>{{infoData.checkTime}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="danger">
|
|
|
<view class="danger_title">不符合项</view>
|
|
|
<view class="grade">
|
|
|
<text>隐患等级:</text>
|
|
|
- <text>一般隐患</text>
|
|
|
+ <text>{{infoData.checkHazardApplyDto.hazardLevel==0?'一般隐患':(infoData.checkHazardApplyDto.hazardLevel==1?'重大隐患':(infoData.checkHazardApplyDto.hazardLevel==2?'管理问题':''))}}</text>
|
|
|
</view>
|
|
|
<view class="project">
|
|
|
<view class="project_t">检查项目:</view>
|
|
|
- <view class="project_b">1检查项目名称—1.1检查项目名称名称名称名称—1.1.1检查项目名称名称名称名称名称名称名称名称</view>
|
|
|
- <view class="project_b2">此检查项在当前实验室累计出现9次隐患</view>
|
|
|
+ <view class="project_b">{{infoData.checkHazardApplyDto.hazardCheckProStr}}</view>
|
|
|
+ <view class="project_b2" v-if="infoData.checkHazardApplyDto.hazardCheckCount>0">此检查项在当前实验室累计出现{{infoData.checkHazardApplyDto.hazardCheckCount}}次隐患</view>
|
|
|
</view>
|
|
|
<view class="project">
|
|
|
<view class="project_t">检查要点:</view>
|
|
|
- <view class="project_b">检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点</view>
|
|
|
+ <view class="project_b">{{infoData.checkHazardApplyDto.hazardCheckPoint}}</view>
|
|
|
</view>
|
|
|
<view class="project">
|
|
|
<view class="project_t">隐患描述:</view>
|
|
|
- <view class="project_b">检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点检查要点</view>
|
|
|
+ <view class="project_b">{{infoDialogData.checkHazardApplyDto.hazardDescribe}}</view>
|
|
|
</view>
|
|
|
<view class="picture">
|
|
|
<view class="picture_t">隐患照片</view>
|
|
|
<view class="picture_b">
|
|
|
- <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
|
|
|
- <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
|
|
|
- <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
|
|
|
- <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
|
|
|
+ <img :src="imgItem.fileUrl" v-for="(imgItem,index) in infoData.checkHazardApplyDto.uploadDtoList" :key="index" @click="lockImg(infoData.checkHazardApplyDto.uploadDtoList)"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view v-for="(item,index) in infoData.checkRectifyApplyList" :key="index" v-if="curTabIndex== index">
|
|
|
+ <!-- 整改结果 -->
|
|
|
+ <view v-if="item.applyFlag == 1" class="abarbeitung_result danger">
|
|
|
+ <view class="grade">
|
|
|
+ <text>整改结果:</text>
|
|
|
+ <text style="color: #0183FA;">{{item.rectifyResult == 1?'已整改':(item.rectifyResult == 0?'暂无法整改':'')}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="project">
|
|
|
+ <view class="project_t">整改措施:</view>
|
|
|
+ <view class="project_b">{{item.rectifyMeasure}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="picture">
|
|
|
+ <view class="picture_t">整改照片:</view>
|
|
|
+ <view class="picture_b">
|
|
|
+ <img :src="imgItem.fileUrl" @click="lockImg(imgItem)" v-for="(imgItem,imgIndex) in item.uploadDtoList" :key="imgIndex">
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="grade">
|
|
|
+ <text>整改人:</text>
|
|
|
+ <text>{{item.createName}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="grade" style="border:none;">
|
|
|
+ <text>整改时间:</text>
|
|
|
+ <text >{{item.createTime}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 复核结果 -->
|
|
|
+ <view v-if="item.applyFlag == 2" class="review_result danger">
|
|
|
+ <view class="audit">
|
|
|
+ <text>审核结果:</text>
|
|
|
+ <img v-if="item.examineResult == 0" src="@/images/Version3.3.3/icon_ywc.png"/>
|
|
|
+ <img v-if="item.examineResult == 1" src="@/images/Version3.3.3/icon_cg.png"/>
|
|
|
+ </view>
|
|
|
+ <view class="project">
|
|
|
+ <view class="project_t">审核意见:</view>
|
|
|
+ <view class="project_b">{{item.examineOpinion}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="grade">
|
|
|
+ <text>审核人:</text>
|
|
|
+ <text>{{item.reviewedName}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="grade" style="border:none;">
|
|
|
+ <text>审核时间:</text>
|
|
|
+ <text >{{item.reviewedTime}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<!-- 待整改 -->
|
|
|
- <view v-if="pageType==1">
|
|
|
+ <view v-if="rectifyStatus==2 && curTabIndex=='add'">
|
|
|
<view class="await">
|
|
|
<view class="result">
|
|
|
<view class="result_l">整改结果</view>
|
|
@@ -114,26 +147,26 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="describe">
|
|
|
- <view class="describe_l">原因描述:</view>
|
|
|
- <textarea class="describe_r" type="text" v-model="form.yhMs" maxlength="50" placeholder="请输入原因描述" placeholder-style="font-size:28rpx;color:#999;"></textarea>
|
|
|
+ <view class="describe_l">{{form.rectifyResult==1?'整改措施:':'原因描述:'}}</view>
|
|
|
+ <textarea class="describe_r" type="text" v-model="form.rectifyMeasure" maxlength="50" placeholder="请输入原因描述" placeholder-style="font-size:28rpx;color:#999;"></textarea>
|
|
|
</view>
|
|
|
<view class="check-for-img-max-box">
|
|
|
<view class="left-title-p">隐患照片(最多上传5张):</view>
|
|
|
<view class="right-img-box">
|
|
|
- <view class="img-box" v-for="(imgUrl,imgIndex) in form.yhImg" :key="imgIndex">
|
|
|
+ <view class="img-box" v-for="(imgUrl,imgIndex) in form.uploadDtoList" :key="imgIndex">
|
|
|
<img class="img-data" :src="configURL+imgUrl">
|
|
|
<img class="position-img" src="@/pages_manage/images/icon_ssp_closure.png" @click="delImg(imgIndex)">
|
|
|
</view>
|
|
|
- <img class="add-button" src="@/pages_manage/images/icon_07.png" @click="selectImage()" v-if="form.yhImg.length<5">
|
|
|
+ <img class="add-button" src="@/pages_manage/images/icon_07.png" @click="selectImage()" v-if="form.uploadDtoList.length<5">
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 待复核 -->
|
|
|
- <view v-if="pageType==2" class="review">
|
|
|
+ <view v-if="rectifyStatus==3 && curTabIndex=='check'" class="review">
|
|
|
<view class="describe">
|
|
|
<view class="describe_l">审核意见:</view>
|
|
|
- <textarea class="describe_r" type="text" v-model="form.opinion" maxlength="50" placeholder="请输入审核意见" placeholder-style="font-size:28rpx;color:#999;"></textarea>
|
|
|
+ <textarea class="describe_r" type="text" v-model="form.examineOpinion" maxlength="50" placeholder="请输入审核意见" placeholder-style="font-size:28rpx;color:#999;"></textarea>
|
|
|
</view>
|
|
|
<view class="quick">
|
|
|
<view class="quick_l">审核意见快捷输入</view>
|
|
@@ -143,7 +176,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 暂无法整改 -->
|
|
|
- <view v-if="pageType==3" class="incapable danger">
|
|
|
+ <view v-if="rectifyStatus==4" class="incapable danger">
|
|
|
<view class="grade">
|
|
|
<text>整改结果:</text>
|
|
|
<text style="color: #0183FA;">暂无法整改</text>
|
|
@@ -170,58 +203,13 @@
|
|
|
<text >2023-04-0114:00</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- 整改结果 -->
|
|
|
- <view v-if="pageType==4" class="abarbeitung_result danger">
|
|
|
- <view class="grade">
|
|
|
- <text>整改结果:</text>
|
|
|
- <text style="color: #0183FA;">已整改</text>
|
|
|
- </view>
|
|
|
- <view class="project">
|
|
|
- <view class="project_t">整改措施:</view>
|
|
|
- <view class="project_b">已更换电池</view>
|
|
|
- </view>
|
|
|
- <view class="picture">
|
|
|
- <view class="picture_t">隐患照片:</view>
|
|
|
- <view class="picture_b">
|
|
|
- <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
|
|
|
- <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
|
|
|
- <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
|
|
|
- <img src="@/images/Version3.3.3/icon_xyxc_syszc.png"/>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="grade">
|
|
|
- <text>整改人:</text>
|
|
|
- <text>褚朝朝</text>
|
|
|
- </view>
|
|
|
- <view class="grade" style="border:none;">
|
|
|
- <text>整改时间:</text>
|
|
|
- <text >2023-04-0114:00</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 复核结果 -->
|
|
|
- <view v-if="pageType==5" class="review_result danger">
|
|
|
- <view class="audit">
|
|
|
- <text>审核结果:</text>
|
|
|
- <img src="@/images/Version3.3.3/icon_cg.png"/>
|
|
|
- </view>
|
|
|
- <view class="project">
|
|
|
- <view class="project_t">审核意见:</view>
|
|
|
- <view class="project_b">整改不合格</view>
|
|
|
- </view>
|
|
|
- <view class="grade">
|
|
|
- <text>整改人:</text>
|
|
|
- <text>褚朝朝</text>
|
|
|
- </view>
|
|
|
- <view class="grade" style="border:none;">
|
|
|
- <text>整改时间:</text>
|
|
|
- <text >2023-04-0114:00</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+
|
|
|
+
|
|
|
</scroll-view>
|
|
|
- <view class="bottom_btn" @click="handleClick('subBtn')" v-if="pageType==1">提交</view>
|
|
|
- <view class="bottom_btn_tow" v-if="pageType==2">
|
|
|
- <text>驳回</text>
|
|
|
- <text>通过</text>
|
|
|
+ <view class="bottom_btn" @click="submitForm('rectify')" v-if="rectifyStatus==2">提交</view>
|
|
|
+ <view class="bottom_btn_tow" v-if="rectifyStatus==3">
|
|
|
+ <text @click="submitForm('pass')">驳回</text>
|
|
|
+ <text @click="submitForm('reject')">通过</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -229,7 +217,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { config } from '@/api/request/config.js'
|
|
|
-import { } from '@/api/index.js'
|
|
|
+import {getHazardById,checkHazardAdd} from '@/api/index.js'
|
|
|
export default {
|
|
|
name: "rectifyList",
|
|
|
components: {
|
|
@@ -237,6 +225,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ id:'',
|
|
|
pageType:0,
|
|
|
configURL:config.base_url,
|
|
|
//列表请求参数
|
|
@@ -244,25 +233,37 @@ export default {
|
|
|
pageNum:1,
|
|
|
pageSize:20,
|
|
|
},
|
|
|
- tabTextTow:['隐患检查','隐患整改','整改复核','暂无法整改','整改结果','复核结果'],
|
|
|
+ tabTextTow:[],
|
|
|
curTabTow:0,
|
|
|
+ curTabIndex:'detail',//随顶部按钮点击变化索引
|
|
|
resultIndex:0,
|
|
|
resultArray:['已整改','暂无法整改'],
|
|
|
form:{
|
|
|
- yhMs:'',
|
|
|
- yhImg:[],
|
|
|
- opinion:'',
|
|
|
+ checkHazardId:'',// 隐患id
|
|
|
+ rectifyType:'',// 整改类型:1是院校巡查,2是自查
|
|
|
+ rectifyResult:'1',//1是已整改,0是暂无法整改
|
|
|
+ rectifyMeasure:'',//整改措施
|
|
|
+ uploadDtoList:[],
|
|
|
+ //复核---------------
|
|
|
+ id:'',
|
|
|
+ examineResult:'',//审核结果1是通过,0是驳回
|
|
|
+ examineOpinion:'',
|
|
|
},
|
|
|
quickIndex:0,
|
|
|
quickArray:[{name:'复核驳回',type:false},{name:'驳回在整改',type:false},{name:'请补充材料',type:false},{name:'请补充描述',type:false},{name:'未解决',type:false}],
|
|
|
-
|
|
|
+ infoData:{},
|
|
|
+ item:{},
|
|
|
+ rectifyStatus:'',//1已完成 2待整改 3待复核 4 暂无法整改
|
|
|
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- if(option.form){
|
|
|
- //this.form=JSON.parse(decodeURIComponent(option.form));
|
|
|
- //console.log(this.form)
|
|
|
+ if(option.item){
|
|
|
+ this.item=JSON.parse(decodeURIComponent(option.item));
|
|
|
+ this.id=this.item.id
|
|
|
+ this.rectifyStatus=this.item.rectifyStatus;
|
|
|
+
|
|
|
+ this.getHazardById()
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -275,11 +276,80 @@ export default {
|
|
|
//整改结果
|
|
|
tabClick(index) {
|
|
|
this.resultIndex = index;
|
|
|
+ if(index==0){
|
|
|
+ this.form.resultArray=1
|
|
|
+ }else if(idnex==1){
|
|
|
+ this.form.resultArray=0
|
|
|
+ }
|
|
|
},
|
|
|
//顶部tab点击
|
|
|
- tabClickTow(index) {
|
|
|
+ tabClickTow(item,index) {
|
|
|
this.curTabTow = index;
|
|
|
this.pageType=index;
|
|
|
+ if(item.type=='detail' || item.type=='add' || item.type=='check'){
|
|
|
+ this.curTabIndex=item.type
|
|
|
+ }else{
|
|
|
+ this.curTabIndex=index-1;
|
|
|
+ }
|
|
|
+ console.log(this.curTabIndex)
|
|
|
+
|
|
|
+ },
|
|
|
+ //详情
|
|
|
+ async getHazardById(){
|
|
|
+ let _this = this;
|
|
|
+ const {data} = await getHazardById({id:this.id});
|
|
|
+ if(data.code == 200){
|
|
|
+ this.infoData=data.data
|
|
|
+ this.form.checkHazardId=data.data.checkHazardApplyDto.id;
|
|
|
+ this.form.rectifyType=data.data.checkType;
|
|
|
+
|
|
|
+ if(data.data.checkRectifyApplyList[0]){
|
|
|
+ this.tabTextTow.push({'type':'detail','name':'隐患检查'})
|
|
|
+ for(let i=0;i<data.data.checkRectifyApplyList.length;i++){
|
|
|
+ if(i == 0){
|
|
|
+ this.tabTextTow.push({'type':'item','name':'隐患整改'})
|
|
|
+ }else if(i == 1){
|
|
|
+ this.tabTextTow.push({'type':'item','name':'整改复核'})
|
|
|
+ }else{
|
|
|
+ let nameLeft = this.frequencyCalculation(i,data.data.checkRectifyApplyList[i].applyFlag);
|
|
|
+ let nameRight = data.data.checkRectifyApplyList[i].applyFlag == 1?'整改':'复核';
|
|
|
+ this.tabTextTow.push({'type':'item','name':nameLeft+nameRight})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.rectifyStatus==3){
|
|
|
+ this.tabTextTow.push({'type':'check','name':'整改复核'})
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(this.rectifyStatus==2){
|
|
|
+ this.tabTextTow=[{'type':'detail','name':'隐患检查'},{'type':'add','name':'隐患整改'}]
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //多次名称匹配
|
|
|
+ frequencyCalculation(length,type){
|
|
|
+ console.log(length)
|
|
|
+ console.log(type)
|
|
|
+ let textList = [
|
|
|
+ {value:'二次',key:'2'},{value:'三次',key:'3'},{value:'四次',key:'4'},{value:'五次',key:'5'}, {value:'六次',key:'6'}, {value:'七次',key:'7'},
|
|
|
+ {value:'八次',key:'8'},{value:'九次',key:'9'},{value:'十次',key:'10'}
|
|
|
+ ]
|
|
|
+ let num = type === 2?Math.ceil(length/2):Math.floor(length/2)
|
|
|
+ if(type == 1){
|
|
|
+ num++
|
|
|
+ }
|
|
|
+ if (num > 10){
|
|
|
+ return '再次'
|
|
|
+ } else{
|
|
|
+ for(let i=0;i<textList.length;i++){
|
|
|
+ if(num == textList[i].key){
|
|
|
+ return textList[i].value
|
|
|
+ console.log(textList[i].value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
//滚动事件
|
|
|
scrollGet(){},
|
|
@@ -289,10 +359,28 @@ export default {
|
|
|
console.log(11)
|
|
|
}
|
|
|
},
|
|
|
+ //查看图片
|
|
|
+ lockImg(list){
|
|
|
+ console.log(list)
|
|
|
+ if(!list[0]){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let urlList=[];
|
|
|
+ for(let i=0;i<list.length;i++){
|
|
|
+ urlList.push(list[i].fileUrl)
|
|
|
+ }
|
|
|
+ wx.previewImage({
|
|
|
+ urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
|
|
|
+ current: '', // 当前显示图片的http链接,默认是第一个
|
|
|
+ success: function(res) {},
|
|
|
+ fail: function(res) {},
|
|
|
+ complete: function(res) {},
|
|
|
+ })
|
|
|
+ },
|
|
|
//快捷选择
|
|
|
quickSelect(index) {
|
|
|
this.quickArray[index].type = !this.quickArray[index].type
|
|
|
- this.form.opinion=this.quickArray[index].name
|
|
|
+ this.form.examineOpinion=this.quickArray[index].name
|
|
|
let _this = this;
|
|
|
if (_this.quickArray[index].type == true) {
|
|
|
_this.quickArray.forEach(function(item2) {
|
|
@@ -303,13 +391,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
- this.form.opinion='';
|
|
|
+ this.form.examineOpinion='';
|
|
|
}
|
|
|
},
|
|
|
// 图片上传
|
|
|
selectImage(item) {
|
|
|
let self = this;
|
|
|
- if(this.form.yhImg.length>4){
|
|
|
+ if(this.form.uploadDtoList.length>4){
|
|
|
uni.showToast({
|
|
|
title: '最多上传5张图片',
|
|
|
icon:"none",
|
|
@@ -345,8 +433,7 @@ export default {
|
|
|
success: (uploadFileRes) => {
|
|
|
let res = JSON.parse(uploadFileRes.data);
|
|
|
if(res.code == 200){
|
|
|
- this.form.yhImg.push(res.data.url);
|
|
|
- console.log(res.data.url)
|
|
|
+ this.form.uploadDtoList.push({'fileUrl':res.data.url,'fileName':res.data.name});
|
|
|
}else{
|
|
|
uni.showToast({
|
|
|
title: res.msg,
|
|
@@ -364,9 +451,40 @@ export default {
|
|
|
},
|
|
|
//删除图片
|
|
|
delImg(minIndex){
|
|
|
- this.form.yhImg.splice(minIndex,1);
|
|
|
+ this.form.uploadDtoList.splice(minIndex,1);
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
+
|
|
|
+ async submitForm(doType){
|
|
|
+ let _this = this;
|
|
|
+ let obj={};
|
|
|
+ if(doType=='rectify'){//整改
|
|
|
+ obj.checkHazardId=this.form.checkHazardId;
|
|
|
+ obj.rectifyType=this.form.rectifyType;
|
|
|
+ obj.rectifyResult=this.form.rectifyResult;
|
|
|
+ obj.rectifyMeasure=this.form.rectifyMeasure;
|
|
|
+ obj.uploadDtoList=this.form.uploadDtoList;
|
|
|
+ }else if(doType=='reject' ){//复核 驳回
|
|
|
+ obj.id=this.form.id;
|
|
|
+ obj.examineResult=0;
|
|
|
+ obj.examineOpinion=this.form.examineOpinion;
|
|
|
+
|
|
|
+ }else if(doType=='pass'){//复核 通过
|
|
|
+ obj.id=this.form.id;
|
|
|
+ obj.examineResult=1;
|
|
|
+ obj.examineOpinion=this.form.examineOpinion;
|
|
|
+ }
|
|
|
+ const {data} = await checkHazardAdd(obj);
|
|
|
+ if(data.code == 200){
|
|
|
+ uni.showToast({
|
|
|
+ title: '提交成功',
|
|
|
+ icon:"none",
|
|
|
+ mask:true,
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -464,6 +582,9 @@ export default {
|
|
|
color: #333333;
|
|
|
line-height: 80rpx;
|
|
|
text-align: right;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
}
|
|
|
}
|
|
|
}
|