|
@@ -7,6 +7,7 @@
|
|
|
<p class="page-top-title-edit-p" @click="submitForm(1)" v-if="!lookInfoType&&projectData.checkStatus != 1">保存草稿</p>
|
|
|
<p class="page-top-title-edit-p" @click="submitForm(2)" v-if="!lookInfoType&&projectData.checkStatus != 1">继续检查</p>
|
|
|
<p class="page-top-title-add-p" @click="submitForm(3)" v-if="!lookInfoType&&projectData.checkStatus != 1">提交查看</p>
|
|
|
+ <p class="page-top-title-add-p" @click="submitForm(3)" v-if="!lookInfoType&&projectData.checkStatus == 1 && projectData.checkSetProgress < 100">编辑</p>
|
|
|
<p class="page-top-title-out-p" @click="backPage">返回</p>
|
|
|
<p class="page-top-title-add-p" @click="submitForm(4)" v-if="!lookInfoType&&(initiateData.orderType == 3||initiateData.orderType == 5)">提交</p>
|
|
|
</div>
|
|
@@ -168,7 +169,8 @@
|
|
|
style="width:700px;"></el-input>
|
|
|
</el-form-item>
|
|
|
<div style="display: flex;">
|
|
|
- <el-form-item label="检查结果" prop="checkFlag" v-if="!lookInfoType&&projectData.checkStatus != 1">
|
|
|
+ <!--未检查-->
|
|
|
+ <el-form-item label="检查结果" prop="checkFlag" v-if="!lookInfoType&& projectData.checkSetProgress < 100">
|
|
|
<div class="check-button-box">
|
|
|
<div :class="addForm.checkFlag == 0?'check-button-border':''" @click="checkButton(0)">
|
|
|
<p>不符合</p>
|
|
@@ -180,12 +182,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
+ <!--查看-已检查-->
|
|
|
<el-form-item label="检查结果" prop="checkFlag" v-if="lookInfoType&&projectData.checkStatus == 1">
|
|
|
<div class="check-button-border-box">
|
|
|
<p>{{projectData.checkFlag == 0?'不符合':'符合'}}</p>
|
|
|
<img src="@/assets/ZDimages/safetyCheck/icom_xjjc_jcjc@1x.png">
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
+ <!--查看-未检查-->
|
|
|
<el-form-item label="检查结果" prop="checkFlag" v-if="lookInfoType&&projectData.checkStatus != 1">
|
|
|
<div class="check-button-border-box" style="border:1px solid #999!important;color:#666!important;">
|
|
|
<p>待检查</p>
|
|
@@ -198,7 +202,7 @@
|
|
|
隐患信息
|
|
|
<span :class="itemShowType_3?'el-icon-arrow-down':'el-icon-arrow-up'" @click="itemShowButton(3)"></span>
|
|
|
</p>
|
|
|
- <div v-if="addForm.checkFlag == 0 && initiateData.orderType == 1 && itemShowType_3" style="margin-top:20px;">
|
|
|
+ <div v-if="addForm.checkFlag == 0 && initiateData.orderType == 1 && projectData.checkSetProgress < 100 && itemShowType_3" style="margin-top:20px;">
|
|
|
<el-form-item label="隐患描述" prop="hazardDescribe">
|
|
|
<el-input placeholder="请输入隐患描述" maxLength='200' type="textarea" style="width:704px;"
|
|
|
resize="none" v-model="addForm.hazardDescribe" show-word-limit :rows="3"></el-input>
|
|
@@ -230,7 +234,7 @@
|
|
|
</div>
|
|
|
</el-form>
|
|
|
<!--历史记录-->
|
|
|
- <history-records-component ref="historyRecordsComponent" v-if="projectData.checkStatus == 1 && historyRecordsComponentPropsType"
|
|
|
+ <history-records-component ref="historyRecordsComponent" v-if="projectData.checkStatus == 1 && initiateData.orderType != 1 && historyRecordsComponentPropsType"
|
|
|
:historyRecordsComponentPropsData="historyRecordsComponentPropsData"></history-records-component>
|
|
|
<!--整改-->
|
|
|
<rectification-component ref="rectificationComponent" v-if="initiateData.orderType == 3"></rectification-component>
|
|
@@ -391,6 +395,11 @@
|
|
|
if (this.projectData.checkStatus == 1) {
|
|
|
//已提交
|
|
|
this.securityCheckDangerGetDangerId();
|
|
|
+ if(this.projectData.checkSetProgress < 100){
|
|
|
+ this.$set(this.addForm, 'uploadDtoList', response.data.photoList?response.data.photoList:[])
|
|
|
+ this.$set(this.addForm, 'checkFlag', response.data.checkFlag?response.data.checkFlag:0)
|
|
|
+ this.$set(this.addForm, 'hazardDescribe', response.data.hazardDescribe?response.data.hazardDescribe:'')
|
|
|
+ }
|
|
|
} else if (this.projectData.checkStatus == 0&&this.initiateData.checkDraftVo) {
|
|
|
//草稿
|
|
|
this.securityDraftFindBySetOptionId(this.initiateData.setOptionId);
|