安全环保检查- 发起/修改 申辩

dev-3.0
Shan Ao 2025-07-15 18:16:55 +08:00
parent 78cc3a5efb
commit 246fe752e4
9 changed files with 444 additions and 425 deletions

View File

@ -5,26 +5,23 @@ export const getUserInfo = (params) => post("/sys/user/info/app", params); //
export const getHotWorkListByState = (params) => post("/app/hotworkapplication/list", params)//获取动火列表
export const getHotWorkGoEdit = (params) => post("/app/hotworkapplication/goEdit", params) //获取动火详情
export const getImgfilesListByKeyAndType = (params) => post("/app/imgfiles/listImgs", params) //获取附件表的信息
export const getDept = (params) => post("/app/sys/listTree", {loading: false, ...params}) //获取监管端的部门信息
export const getCorpDept = (params) => post("/app/corpDepartment/listTreeCorpDept", {loading: false, ...params}) //获取监管端的部门信息
export const getDept = (params) => post("/app/sys/listTree", {loading: false, ...params}) //获取监管端的部门信息//获取监管端的部门信息
export const getDeptUser = (params) => post("/AppUser/listAllManageAndCorp", {loading: false, ...params}) //获取监管端的部门的人员
export const getSafetyenvironmentalList = (params) => post("/app/safetyenvironmental/list", params) //获取安全环保检查列表
export const getSafetyenvironmentalList = (params) => post("/inspection/safety/environmental/query/page", params) //获取安全环保检查列表
export const getSafetyenvironmentalCheckList = (params) => post("/app/safetyenvironmental/checkList/v2", params) //获取安全环保检查列表(隐患指派及验收)
export const getpleadList = (params) => post("/app/safetyenvironmental/pleadList", params) //获取安全环保检查列表
export const getSafetyenvironmentalGoEdit = (params) => post("/app/safetyenvironmental/goEdit", params) //安全环保检查明细信息
export const setSafetyenvironmentalAdd = (params) => post("/app/safetyenvironmental/add1", params) //新增安全环保检查
export const setSafetyenvironmentalAdd_plus = (params) => upload("/app/safetyenvironmental/add", params) //新增安全环保检查
export const setSafetyenvironmentalEdit = (params) => post("/app/safetyenvironmental/edit1", params) //修改安全环保检查
export const setSafetyenvironmentalEdit_plus = (params) => upload("/app/safetyenvironmental/edit", params) //修改安全环保检查
export const setSafetyenvironmentalGoEdit = (params) => post("/app/safetyenvironmental/goEdit", params) //修改安全环保检查
export const getSafetyenvironmentalGoEdit = (params) => post(`/inspection/safety/environmental/query/${params.id}`, params) //安全环保检查明细信息
export const setSafetyenvironmentalAdd = (params) => post("/inspection/safety/environmental/process/save", params) //新增安全环保检查
export const setSafetyenvironmentalAdd_plus = (params) => upload("/inspection/safety/environmental/process/img/save", params) //新增安全环保检查
export const setSafetyenvironmentalEdit = (params) => post("/inspection/safety/environmental/process/revise", params) //修改安全环保检查
export const setSafetyenvironmentalEdit_plus = (params) => upload("/inspection/safety/environmental/process/img/revise", params) //修改安全环保检查//修改安全环保检查
export const getSafetyenvironmentalRedPoint = (params) => post("/app/safetyenvironmental/countCheck", params) //修改安全环保检查
export const setSafetyenvironmentalExplain = (params) => upload("/app/safetyenvironmental/explain", params) //申辩
export const setSafetyenvironmentalExplain = (params) => upload("/inspection/safety/environmental/process/plead", params) //申辩
export const setSafetyenvironmentalFlow = (params) => post("/app/safetyenvironmental/showFlowChart", params) //申辩
export const setImgFilesAdd = (params) => uploads("/app/imgfiles/uploadFile", params) //上传图片
export const setImgFilesListAdd = (params) => uploads("/app/imgfiles/uploadFileList", params) //上传图片
export const setVideoAdd = (params) => upload("/app/imgfiles/add", params) //上传视频
export const setImgFilesAddVideo = (params) => uploads("/app/imgfiles/addVideo", params) //上传视频
export const getHiddenRegion = (params) => post("/app/hiddenRegion/gerRegionList", {loading: false, ...params}) //获取隐患部位
export const getHiddenRegion = (params) => post("/hidden/region/list", {loading: false, ...params}) //获取隐患部位
export const getInspectedDepartment = (params) => post("/app/corpDepartment/listTreeCorpDept", {loading: false, ...params}) //获取被检查部门
export const getInspectionDepartment = (params) => post("/app/corpDepartment/listTreeManageAndCorp", {loading: false, ...params}) //获取检查部门
export const getInspectors = (params) => post("/AppUser/listAllManageAndCorp", {loading: false, ...params}) //获取检查人员

View File

@ -7,20 +7,7 @@
<u-cell-group :border="false">
<u-cell>
<view slot="title" class="title">隐患来源</view>
<view slot="value">
<template v-if="form.source === '1'">
隐患快报
</template>
<template v-else-if="form.source === '2'">
清单排查
</template>
<template v-else-if="form.source === '3'">
清单排查
</template>
<template v-else-if="form.source === '8'">
点检隐患
</template>
</view>
<view slot="value">{{ sourceName }}</view>
</u-cell>
<u-cell>
<view slot="title" class="title">隐患描述</view>
@ -134,18 +121,18 @@
<view slot="title" class="title">隐患级别</view>
<view slot="value">{{ form.hiddenlevelName }}</view>
</u-cell>
<u-cell v-if="majorinforPdf?.[0]">
<u-cell v-if="majorinforPdf">
<view slot="title" class="title">临时处置信息</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(majorinforPdf?.[0])"></u-button>
@click="downloadAppendix(majorinforPdf)"></u-button>
</view>
</u-cell>
<u-cell v-if="supplementPdf?.[0]">
<u-cell v-if="supplementPdf">
<view slot="title" class="title">补充重大隐患信息</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(supplementPdf?.[0])"></u-button>
@click="downloadAppendix(supplementPdf)"></u-button>
</view>
</u-cell>
<u-cell>
@ -167,18 +154,18 @@
<view slot="title" class="title">隐患级别</view>
<view slot="value">{{ form.hiddenlevelName }}</view>
</u-cell>
<u-cell v-if="safetyofficePdf?.[0]">
<u-cell v-if="safetyofficePdf">
<view slot="title" class="title">安委会办公室会议记录</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(safetyofficePdf?.[0])"></u-button>
@click="downloadAppendix(safetyofficePdf)"></u-button>
</view>
</u-cell>
<u-cell v-if="majorapprovedPdf?.[0]">
<u-cell v-if="majorapprovedPdf">
<view slot="title" class="title">整改建议及方案</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(majorapprovedPdf?.[0])"></u-button>
@click="downloadAppendix(majorapprovedPdf)"></u-button>
</view>
</u-cell>
<u-cell>
@ -212,18 +199,18 @@
<view slot="title" class="title">核定时间</view>
<view slot="value">{{ resultslist.approvedTime }}</view>
</u-cell>
<u-cell v-if="reportPdf?.[0]">
<u-cell v-if="reportPdf">
<view slot="title" class="title">隐患调查报告</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(reportPdf?.[0])"></u-button>
@click="downloadAppendix(reportPdf)"></u-button>
</view>
</u-cell>
<u-cell v-if="resolutionPdf?.[0]">
<u-cell v-if="resolutionPdf">
<view slot="title" class="title">安委会或党委会决议记录</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(resolutionPdf?.[0])"></u-button>
@click="downloadAppendix(resolutionPdf)"></u-button>
</view>
</u-cell>
</u-cell-group>
@ -241,18 +228,18 @@
<view slot="title" class="title">整改人</view>
<view slot="value">{{ form.rectificationName }}</view>
</u-cell>
<u-cell v-if="rectificationPdf?.[0]">
<u-cell v-if="rectificationPdf">
<view slot="title" class="title">临时处置措施与隐患整改方案</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(rectificationPdf?.[0])"></u-button>
@click="downloadAppendix(rectificationPdf)"></u-button>
</view>
</u-cell>
<u-cell v-if="processPdf?.[0]">
<u-cell v-if="processPdf">
<view slot="title" class="title">隐患整改过程记录</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(processPdf?.[0])"></u-button>
@click="downloadAppendix(processPdf)"></u-button>
</view>
</u-cell>
</u-cell-group>
@ -313,14 +300,14 @@ export default {
this.form = resData.data;
this.hiddenFindPeople = resData.data?.acceptor;
this.resultslist = resData.data?.major?.[0] || {};
this.majorinforPdf = this.findAPicture(resData.data?.files, 106);
this.majorapprovedPdf = this.findAPicture(resData.data?.files, 107);
this.resolutionPdf = this.findAPicture(resData.data?.files, 109);
this.rectificationPdf = this.findAPicture(resData.data?.files, 110);
this.processPdf = this.findAPicture(resData.data?.files, 111);
this.reportPdf = this.findAPicture(resData.data?.files, 108);
this.supplementPdf = this.findAPicture(resData.data?.files, 112);
this.safetyofficePdf = this.findAPicture(resData.data?.files, 113);
this.majorinforPdf = this.findAPicture(resData.data?.files, 106)?.[0];
this.majorapprovedPdf = this.findAPicture(resData.data?.files, 107)?.[0];
this.resolutionPdf = this.findAPicture(resData.data?.files, 109)?.[0];
this.rectificationPdf = this.findAPicture(resData.data?.files, 110)?.[0];
this.processPdf = this.findAPicture(resData.data?.files, 111)?.[0];
this.reportPdf = this.findAPicture(resData.data?.files, 108)?.[0];
this.supplementPdf = this.findAPicture(resData.data?.files, 112)?.[0];
this.safetyofficePdf = this.findAPicture(resData.data?.files, 113)?.[0];
this.hImgs = this.findAPicture(resData.data?.files, 3);
this.videoUrl = this.findAPicture(resData.data?.files, 102)?.[0];
},
@ -350,6 +337,28 @@ export default {
return result.length > 0 ? result : null;
}
},
computed: {
sourceName: function () {
switch (this.form.source) {
case '1':
return '隐患快报';
case '2':
return '清单排查';
case '3':
return '清单排查';
case '4':
return '安全环保检查(监管端)';
case '5':
return '安全环保检查(企业端)';
case '6':
return '消防检查';
case '8':
return '点检隐患';
default:
return '';
}
}
}
}
</script>

View File

@ -7,20 +7,7 @@
<u-cell-group :border="false">
<u-cell>
<view slot="title" class="title">隐患来源</view>
<view slot="value">
<template v-if="form.source === '1'">
隐患快报
</template>
<template v-else-if="form.source === '2'">
清单排查
</template>
<template v-else-if="form.source === '3'">
清单排查
</template>
<template v-else-if="form.source === '8'">
点检隐患
</template>
</view>
<view slot="value">{{ sourceName }}</view>
</u-cell>
<u-cell>
<view slot="title" class="title">隐患描述</view>
@ -129,18 +116,18 @@
<view slot="title" class="title">隐患级别</view>
<view slot="value">{{ form.hiddenlevelName }}</view>
</u-cell>
<u-cell v-if="majorinforPdf?.[0]">
<u-cell v-if="majorinforPdf">
<view slot="title" class="title">临时处置信息</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(majorinforPdf?.[0])"></u-button>
@click="downloadAppendix(majorinforPdf)"></u-button>
</view>
</u-cell>
<u-cell v-if="supplementPdf?.[0]">
<u-cell v-if="supplementPdf">
<view slot="title" class="title">补充重大隐患信息</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(supplementPdf?.[0])"></u-button>
@click="downloadAppendix(supplementPdf)"></u-button>
</view>
</u-cell>
<u-cell>
@ -162,18 +149,18 @@
<view slot="title" class="title">隐患级别</view>
<view slot="value">{{ form.hiddenlevelName }}</view>
</u-cell>
<u-cell v-if="safetyofficePdf?.[0]">
<u-cell v-if="safetyofficePdf">
<view slot="title" class="title">安委会办公室会议记录</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(safetyofficePdf?.[0])"></u-button>
@click="downloadAppendix(safetyofficePdf)"></u-button>
</view>
</u-cell>
<u-cell v-if="majorapprovedPdf?.[0]">
<u-cell v-if="majorapprovedPdf">
<view slot="title" class="title">临时处置信息</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(majorapprovedPdf?.[0])"></u-button>
@click="downloadAppendix(majorapprovedPdf)"></u-button>
</view>
</u-cell>
<u-cell>
@ -207,18 +194,18 @@
<view slot="title" class="title">核定时间</view>
<view slot="value">{{ resultslist.approvedTime }}</view>
</u-cell>
<u-cell v-if="reportPdf?.[0]">
<u-cell v-if="reportPdf">
<view slot="title" class="title">隐患调查报告</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(reportPdf?.[0])"></u-button>
@click="downloadAppendix(reportPdf)"></u-button>
</view>
</u-cell>
<u-cell v-if="resolutionPdf?.[0]">
<u-cell v-if="resolutionPdf">
<view slot="title" class="title">安委会或党委会决议记录</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(resolutionPdf?.[0])"></u-button>
@click="downloadAppendix(resolutionPdf)"></u-button>
</view>
</u-cell>
</u-cell-group>
@ -236,18 +223,18 @@
<view slot="title" class="title">整改人</view>
<view slot="value">{{ form.rectificationName }}</view>
</u-cell>
<u-cell v-if="rectificationPdf?.[0]">
<u-cell v-if="rectificationPdf">
<view slot="title" class="title">隐患调查报告</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(rectificationPdf?.[0])"></u-button>
@click="downloadAppendix(rectificationPdf)"></u-button>
</view>
</u-cell>
<u-cell v-if="processPdf?.[0]">
<u-cell v-if="processPdf">
<view slot="title" class="title">安委会或党委会决议记录</view>
<view slot="value">
<u-button type="primary" text="下载" size="mini"
@click="downloadAppendix(processPdf?.[0])"></u-button>
@click="downloadAppendix(processPdf)"></u-button>
</view>
</u-cell>
</u-cell-group>
@ -288,14 +275,14 @@ export default {
this.form = resData.data;
this.hiddenFindPeople = resData.data?.acceptor;
this.resultslist = resData.data?.major?.[0] || {};
this.majorinforPdf = this.findAPicture(resData.data?.files, 106);
this.majorapprovedPdf = this.findAPicture(resData.data?.files, 107);
this.resolutionPdf = this.findAPicture(resData.data?.files, 109);
this.reportPdf = this.findAPicture(resData.data?.files, 108);
this.rectificationPdf = this.findAPicture(resData.data?.files, 110);
this.processPdf = this.findAPicture(resData.data?.files, 111);
this.supplementPdf = this.findAPicture(resData.data?.files, 112);
this.safetyofficePdf = this.findAPicture(resData.data?.files, 113);
this.majorinforPdf = this.findAPicture(resData.data?.files, 106)?.[0];
this.majorapprovedPdf = this.findAPicture(resData.data?.files, 107)?.[0];
this.resolutionPdf = this.findAPicture(resData.data?.files, 109)?.[0];
this.reportPdf = this.findAPicture(resData.data?.files, 108)?.[0];
this.rectificationPdf = this.findAPicture(resData.data?.files, 110)?.[0];
this.processPdf = this.findAPicture(resData.data?.files, 111)?.[0];
this.supplementPdf = this.findAPicture(resData.data?.files, 112)?.[0];
this.safetyofficePdf = this.findAPicture(resData.data?.files, 113)?.[0];
this.hImgs = this.findAPicture(resData.data?.files, 3);
this.videoUrl = this.findAPicture(resData.data?.files, 102)?.[0];
},
@ -325,6 +312,28 @@ export default {
return result.length > 0 ? result : null;
}
},
computed: {
sourceName: function () {
switch (this.form.source) {
case '1':
return '隐患快报';
case '2':
return '清单排查';
case '3':
return '清单排查';
case '4':
return '安全环保检查(监管端)';
case '5':
return '安全环保检查(企业端)';
case '6':
return '消防检查';
case '8':
return '点检隐患';
default:
return '';
}
}
}
}
</script>

View File

@ -12,7 +12,7 @@
</template>
<script>
import {getSafetyenvironmentalRedPoint} from "../../../api";
import {getSafetyenvironmentalRedPoint} from "@/api";
export default {
data() {

View File

@ -5,7 +5,7 @@
<u-cell>
<view slot="title" class="title required">检查题目</view>
<view slot="value">
<u-radio-group v-model="form.INSPECTION_SUBJECT" placement="row" :disabled="disabled">
<u-radio-group v-model="form.inspectionSubject" placement="row" :disabled="disabled">
<u-radio label="安全" name="安全"></u-radio>
<u-radio label="环保" name="环保" class="ml-10"></u-radio>
<u-radio label="综合" name="综合" class="ml-10"></u-radio>
@ -16,17 +16,17 @@
<view slot="title" class="title required">被检查单位</view>
<view slot="value">
<text @click="showTree('tkitree')">
{{ disabled ? form.INSPECTED_CORPINFO_ID_NAME : form.INSPECTED_DEPARTMENT_NAME || '请选择' }}
{{ disabled ? form.inspectedCorpName : form.inspectedDepartmentName || '请选择' }}
</text>
<tki-tree ref="tkitree" :range="inspectedDepartmentTreeList" rangeKey="name" selectParent
@confirm="confirmTree($event,'inspectedSiteuserColumns')"/>
</view>
</u-cell>
<u-cell v-show="form.INSPECTED_DEPARTMENT_NAME">
<u-cell v-show="form.inspectedDepartmentName">
<view slot="title" class="title required">被检查单位现场负责人</view>
<view slot="value">
<text @click="disabled ? null : inspectedSiteuserShow = true">{{
form.INSPECTED_SITEUSER_NAME || '请选择'
form.inspectedUserName || '请选择'
}}
</text>
<u-picker :show="inspectedSiteuserShow" :columns="inspectedSiteuserColumns" keyName="NAME"
@ -37,14 +37,14 @@
<u-cell>
<view slot="title" class="title required">检查场所</view>
<view slot="value">
<u--input v-model="form.INSPECTION_PLACE" border="none" placeholder="请输入检查场所" inputAlign="right"
<u--input v-model="form.inspectionPlace" border="none" placeholder="请输入检查场所" inputAlign="right"
:disabled="disabled"></u--input>
</view>
</u-cell>
<u-cell>
<view slot="title" class="title required">检查类型</view>
<view slot="value">
<text @click="showTree('tkitree1')">{{ form.INSPECTION_TYPE_NAME || '' }}</text>
<text @click="showTree('tkitree1')">{{ form.inspectionTypeName || '' }}</text>
<tki-tree ref="tkitree1" :range="inspectionTypeTreeList" rangeKey="name" selectParent children-name="nodes"
@confirm="confirmTree($event,'inspectionTypeTreeList')"/>
</view>
@ -53,10 +53,10 @@
<view slot="title" class="title required">检查开始时间</view>
<view slot="value">
<text @click="disabled ? null : inspectionTimeStartShow = true">{{
form.INSPECTION_TIME_START || '请选择'
form.inspectionTimeStart || '请选择'
}}
</text>
<u-datetime-picker :show="inspectionTimeStartShow" :value="form.INSPECTION_TIME_START"
<u-datetime-picker :show="inspectionTimeStartShow" :value="form.inspectionTimeStart"
@cancel="inspectionTimeStartShow = false"
@confirm="inspectionTimeStartConfirm"></u-datetime-picker>
</view>
@ -65,10 +65,10 @@
<view slot="title" class="title required">检查结束时间</view>
<view slot="value">
<text @click="disabled ? null : inspectionTimeEndShow = true">{{
form.INSPECTION_TIME_END || '请选择'
form.inspectionTimeEnd || '请选择'
}}
</text>
<u-datetime-picker :show="inspectionTimeEndShow" :value="form.INSPECTION_TIME_END"
<u-datetime-picker :show="inspectionTimeEndShow" :value="form.inspectionTimeEnd"
@cancel="inspectionTimeEndShow = false"
@confirm="inspectionTimeEndConfirm"></u-datetime-picker>
</view>
@ -76,7 +76,7 @@
<u-cell v-if="disabled">
<view slot="title" class="title required">记录填写时间</view>
<view slot="value">
<text>{{ form.CREATTIME }}</text>
<text>{{ form.creattime }}</text>
</view>
</u-cell>
<u-cell>
@ -88,8 +88,8 @@
</u-cell>
<u-cell>
<view slot="label">
<view class="pr mt-10 textarea-box" v-for="(item,index) in form.situationList" :key="item.id">
<u--textarea v-model="item.SITUATION" placeholder="请输入检查情况" :disabled="disabled"></u--textarea>
<view class="pr mt-10 textarea-box" v-for="(item,index) in form.situations" :key="item.id">
<u--textarea v-model="item.situation" placeholder="请输入检查情况" :disabled="disabled"></u--textarea>
<u-badge value="X" type="error" :offset="[-9,-10]" absolute
@click.native="removeSituation(item,index)" v-if="!disabled"></u-badge>
</view>
@ -105,30 +105,30 @@
<view class="title-none">
<u-cell>
<view slot="value" style="width: 100%">
<view class="pr mt-10" v-for="(item,index) in form.inspectorList" :key="item.id">
<view class="pr mt-10" v-for="(item,index) in form.inspectionUsers" :key="item.id">
<u-cell-group :border="false" class="border">
<view class="title-show">
<u-cell>
<view slot="title">{{ index + 1 }}.检查人员单位</view>
<view slot="value">
<text @click="showTree('tkitreeInspector' + index,'arr')">
{{ item.INSPECTION_DEPARTMENT_NAME || '请选择' }}
{{ item.inspectionDepartmentName || '请选择' }}
</text>
<tki-tree :ref="'tkitreeInspector' + index" :range="inspectedDepartmentTreeList"
rangeKey="name"
selectParent @confirm="confirmTree($event,'inspectorList',index)"/>
selectParent @confirm="confirmTree($event,'inspectionUsers',index)"/>
</view>
</u-cell>
</view>
<view class="title-show">
<u-cell :border="false" v-show="item.INSPECTION_DEPARTMENT_NAME">
<u-cell :border="false" v-show="item.inspectionDepartmentName">
<view slot="title">{{ index + 1 }}.检查人员</view>
<view slot="value">
<text @click="inspectionUserShowPicker(index)">{{
item.INSPECTION_USER_NAME || '请选择'
item.inspectionUserName || '请选择'
}}
</text>
<u-picker :show="item.inspectionUserShow" :columns="[inspectorList[0][index]]" keyName="NAME"
<u-picker :show="item.inspectionUserShow" :columns="[inspectionUsers[0][index]]" keyName="NAME"
@cancel="item.inspectionUserShow = false"
@confirm="inspectionUserConfirmPicker($event,index)"></u-picker>
</view>
@ -158,10 +158,10 @@
<uni-th align="center">隐患描述</uni-th>
<uni-th align="center">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in form.hiddenList" :key="item.HIDDEN_ID == null ? index : item.HIDDEN_ID">
<uni-tr v-for="(item,index) in form.hiddenList" :key="item.hiddenId == null ? index : item.hiddenId">
<uni-td>{{ index + 1 }}</uni-td>
<uni-td>{{ item.HIDDENPART_NAME ? item.HIDDENPART_NAME : item.HIDDENPART }}</uni-td>
<uni-td>{{ item.HIDDENDESCR }}</uni-td>
<uni-td>{{ item.hiddenPartStr ? item.hiddenPartStr : item.hiddenPart }}</uni-td>
<uni-td>{{ item.hiddendescr }}</uni-td>
<uni-td>
<view class="flex-between">
<u-icon name="eye-fill" @tap="showHidden(item, index)"></u-icon>
@ -176,37 +176,38 @@
</view>
</u-cell>
</view>
<template v-for="item in form.inspectorVerifyList" v-if="!type||!(type==='add' || type==='edit')">
<u-cell v-show="item.INSPECTION_USER_OPINION">
<template v-for="item in form.inspectionUsers" v-if="!type||!(type==='add' || type==='edit')">
<u-cell v-show="item.inspectionUserOpinion">
<template #title>
<view class="title">检查人意见</view>
</template>
<template #label>
<view class="mt-10 textarea-box">
<u--textarea v-model="item.INSPECTION_USER_OPINION" disabled
<u--textarea v-model="item.inspectionUserOpinion" disabled
placeholder="请输入检查人意见"></u--textarea>
</view>
</template>
</u-cell>
<u-cell v-show="item.INSPECTION_USER_SIGN_IMG">
<u-cell v-show="item.inspectionUserSignImg">
<view slot="title" class="title">签字</view>
<view slot="label" class="mt-10">
<u--image :showLoading="true" :src="$store.state.filePath + item.INSPECTION_USER_SIGN_IMG"
<u--image :showLoading="true" :src="$store.state.filePath + item.inspectionUserSignImg"
width="100%" height="80px" mode="scaleToFill"
@click="previewImage($store.state.filePath + item.INSPECTION_USER_SIGN_IMG)"></u--image>
@click="previewImage($store.state.filePath + item.inspectionUserSignImg)">
</u--image>
</view>
</u-cell>
</template>
<template v-if="!type||!(type==='add' || type==='edit')">
<u-cell v-show="form.INSPECTED_SITEUSER_SIGN_IMG">
<u-cell v-show="form.inspectedSiteuserSignImg">
<view slot="title" class="title">被检查人意见</view>
</u-cell>
<u-cell v-show="form.INSPECTED_SITEUSER_SIGN_IMG">
<u-cell v-show="form.inspectedSiteuserSignImg">
<view slot="title" class="title">签字</view>
<view slot="label" class="mt-10">
<u--image :showLoading="true" :src="$store.state.filePath + form.INSPECTED_SITEUSER_SIGN_IMG"
<u--image :showLoading="true" :src="$store.state.filePath + form.inspectedSiteuserSignImg"
width="100%" height="80px" mode="scaleToFill"
@click="previewImage($store.state.filePath + form.INSPECTED_SITEUSER_SIGN_IMG)"></u--image>
@click="previewImage($store.state.filePath + form.inspectedSiteuserSignImg)"></u--image>
</view>
</u-cell>
</template>
@ -214,10 +215,10 @@
<u-cell>
<view slot="title" class="title">检查人意见</view>
<view slot="label" class="mt-10 textarea-box">
<u--textarea v-model="form.INSPECTION_USER_OPINION" placeholder="请输入检查人意见"></u--textarea>
<u--textarea v-model="form.inspectionUserOpinion" placeholder="请输入检查人意见"></u--textarea>
</view>
</u-cell>
<u-cell v-if="form.INSPECTION_USER_OPINION">
<u-cell v-if="form.inspectionUserOpinion">
<view slot="title" class="title flex-between">
签字
<view>
@ -228,12 +229,12 @@
<sign v-if="signShow" :signShow.sync="signShow" @confirm="signConfirm"></sign>
</view>
</u-cell>
<u-cell v-if="form.INSPECTION_USER_SIGN_IMG">
<view slot="value" class="mt-10 flex-1" v-show="form.INSPECTION_USER_SIGN_IMG">
<u--image v-show="form.INSPECTION_USER_SIGN_IMG" :showLoading="true" :src="form.INSPECTION_USER_SIGN_IMG"
<u-cell v-if="form.inspectionUserSignImg">
<view slot="value" class="mt-10 flex-1" v-show="form.inspectionUserSignImg">
<u--image v-show="form.inspectionUserSignImg" :showLoading="true" :src="form.inspectionUserSignImg"
width="100%" height="80px" mode="scaleToFill"
@click="previewImage(form.INSPECTION_USER_SIGN_IMG)"></u--image>
@click="previewImage(form.inspectionUserSignImg)">
</u--image>
</view>
</u-cell>
</template>
@ -291,7 +292,7 @@
<u-cell>
<view slot="title" class="title required">隐患描述</view>
<view slot="label" class="mt-10 textarea-box">
<u--textarea v-model="hiddenForm.HIDDENDESCR" placeholder="请输入隐患描述"
<u--textarea v-model="hiddenForm.hiddendescr" placeholder="请输入隐患描述"
:disabled="popupDisabled"></u--textarea>
</view>
</u-cell>
@ -299,7 +300,7 @@
<view slot="title" class="title">隐患部位</view>
<view slot="value">
<text @click="showTree('tkitree2')">
{{ hiddenForm.HIDDENPART_NAME ? hiddenForm.HIDDENPART_NAME : hiddenForm.HIDDENPART || '请选择' }}
{{ hiddenForm.hiddenPartStr ? hiddenForm.hiddenPartStr : hiddenForm.hiddenPart || '请选择' }}
</text>
<tki-tree ref="tkitree2" :range="hiddenRegionTreeList" rangeKey="name" selectParent children-name="nodes"
@confirm="confirmTree($event,'hiddenRegionTreeList')"/>
@ -308,7 +309,7 @@
<u-cell>
<view slot="title" class="title required">隐患级别</view>
<view slot="value">
<text @click="showTree('tkitree3')">{{ hiddenForm.HIDDENLEVEL_NAME || '' }}</text>
<text @click="showTree('tkitree3')">{{ hiddenForm.hiddenlevelName || '' }}</text>
<tki-tree ref="tkitree3" :range="hiddenLevelTreeList" rangeKey="name" selectParent children-name="nodes"
@confirm="confirmTree($event,'hiddenLevelTreeList')"/>
</view>
@ -316,7 +317,7 @@
<u-cell>
<view slot="title" class="title required">隐患类型</view>
<view slot="value">
<text @click="showTree('tkitree4')">{{ hiddenForm.HIDDENTYPE_NAME || '' }}</text>
<text @click="showTree('tkitree4')">{{ hiddenForm.hiddenTypeName || '' }}</text>
<tki-tree ref="tkitree4" :range="hiddenTypeTreeList" rangeKey="name" children-name="nodes"
@confirm="confirmTree($event,'hiddenTypeTreeList')"/>
</view>
@ -324,7 +325,7 @@
<u-cell>
<view slot="title" class="title required">是否是相关方</view>
<view slot="value">
<u-radio-group v-model="hiddenForm.ISRELEVANT" placement="row" :disabled="disabled">
<u-radio-group v-model="hiddenForm.isrelevant" placement="row" :disabled="disabled">
<u-radio label="是" name="1" class="ml-10"></u-radio>
<u-radio label="否" name="2" class="ml-10"></u-radio>
</u-radio-group>
@ -334,10 +335,10 @@
<view slot="title" class="title required">隐患发现时间</view>
<view slot="value">
<text @click="popupDisabled ? null : discoveryTimeShow = true">{{
hiddenForm.DISCOVERYTIME || '请选择'
hiddenForm.discoverytime || '请选择'
}}
</text>
<u-datetime-picker :show="discoveryTimeShow" :value="hiddenForm.DISCOVERYTIME" :minDate="Number(1970)"
<u-datetime-picker :show="discoveryTimeShow" :value="hiddenForm.discoverytime" :minDate="Number(1970)"
@cancel="discoveryTimeShow = false"
@confirm="discoveryTimeConfirm"></u-datetime-picker>
</view>
@ -350,15 +351,15 @@
v-if="!popupDisabled"></u-button>
</view>
</view>
<view slot="label" class="mt-10" v-if="hiddenForm.LONGITUDE && hiddenForm.LATITUDE">
<view>经度:{{ hiddenForm.LONGITUDE }}</view>
<view>纬度:{{ hiddenForm.LATITUDE }}</view>
<view slot="label" class="mt-10" v-if="hiddenForm.longitude && hiddenForm.latitude">
<view>经度:{{ hiddenForm.longitude }}</view>
<view>纬度:{{ hiddenForm.latitude }}</view>
</view>
</u-cell>
<u-cell>
<view slot="title" class="title">隐患位置描述</view>
<view slot="label" class="mt-10 textarea-box">
<u--textarea v-model="hiddenForm.POSITIONDESC" placeholder="请输入隐患位置描述"
<u--textarea v-model="hiddenForm.positiondesc" placeholder="请输入隐患位置描述"
:disabled="popupDisabled"></u--textarea>
</view>
</u-cell>
@ -391,7 +392,6 @@
<script>
import {
getDeptUser,
getHiddenLevel,
getHiddenRegion,
getHiddenType,
getInspectedDepartment,
@ -403,46 +403,45 @@ import {
setSafetyenvironmentalAdd, setSafetyenvironmentalAdd_plus,
setSafetyenvironmentalEdit, setSafetyenvironmentalEdit_plus,
setVideoAdd
} from "../../../api";
} from "@/api";
export default {
data() {
return {
form: {
INSPECTION_SUBJECT: '',
INSPECTED_DEPARTMENT_NAME: '',
INSPECTED_CORPINFO_ID_NAME: '',
INSPECTED_DEPARTMENT_ID: '',
INSPECTED_SITEUSER_NAME: '',
INSPECTED_SITEUSER_ID: '',
INSPECTION_PLACE: '',
INSPECTION_TYPE_NAME: '',
INSPECTION_TYPE_OTHER: '',
INSPECTION_TIME_START: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
INSPECTION_TIME_END: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
situationList: [{id: Math.random(), INSPECTION_SITUATION_ID: '', SITUATION: ''}],
inspectorList: [{
inspectionSubject: '',
inspectedDepartmentName: '',
inspectedCorpName: '',
inspectedDepartmentId: '',
inspectedUserName: '',
inspectedSiteuserId: '',
inspectionPlace: '',
inspectionTypeName: '',
inspectionTimeStart: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
inspectionTimeEnd: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
situations: [{id: Math.random(), inspectionSituationId: '', situation: ''}],
inspectionUsers: [{
id: Math.random(),
inspectionUserShow: false,
INSPECTION_INSPECTOR_ID: '',
INSPECTION_DEPARTMENT_ID: '',
INSPECTION_DEPARTMENT_NAME: '',
INSPECTION_USER_ID: '',
INSPECTION_USER_NAME: ''
inspectionInspectorId: '',
inspectionDepartmentId: '',
inspectionDepartmentName: '',
inspectionUserId: '',
inspectionUserName: ''
}],
hiddenList: [],
CREATTIME: '',
INSPECTION_USER_OPINION: '',
INSPECTION_USER_SIGN_IMG: ''
creattime: '',
inspectionUserOpinion: '',
inspectionUserSignImg: ''
},
rules: {
'INSPECTION_SUBJECT': {required: true, message: '请选择检查题目'},
'INSPECTED_DEPARTMENT_NAME': {required: true, message: '请选择被检查单位'},
'INSPECTED_SITEUSER_NAME': {required: true, message: '请选择被检查单位现场负责人'},
'INSPECTION_PLACE': {required: true, message: '请输入检查场所'},
'INSPECTION_TYPE_NAME': {required: true, message: '请选择检查类型'},
'INSPECTION_TIME_START': {required: true, message: '请选择检查开始时间'},
'INSPECTION_TIME_END': {required: true, message: '请选择检查结束时间'},
'inspectionSubject': {required: true, message: '请选择检查题目'},
'inspectedDepartmentName': {required: true, message: '请选择被检查单位'},
'inspectedUserName': {required: true, message: '请选择被检查单位现场负责人'},
'inspectionPlace': {required: true, message: '请输入检查场所'},
'inspectionTypeName': {required: true, message: '请选择检查类型'},
'inspectionTimeStart': {required: true, message: '请选择检查开始时间'},
'inspectionTimeEnd': {required: true, message: '请选择检查结束时间'},
},
inspectedDepartmentTreeList: [],
inspectionDepartmentTreeList: [],
@ -453,8 +452,8 @@ export default {
inspectedSiteuserColumns: [
[]
],
inspectorList: [[]],
INSPECTION_ID: '',
inspectionUsers: [[]],
inspectionId: '',
vector: '',
disabled: false,
delSituations: [],
@ -463,32 +462,32 @@ export default {
popupDisabled: false,
hiddenForm: {
id: Math.random(),
ISRELEVANT: '2',//
isrelevant: '2',//
hiddenImgs: [],
hiddenVideos: [],
HIDDENDESCR: '',
HIDDENPART_NAME: '',
HIDDENPART: '',
HIDDENLEVEL_NAME: '',
HIDDENLEVEL: '',
HIDDENTYPE_NAME: '',
HIDDENTYPE: '',
DISCOVERYTIME: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
LONGITUDE: '',
LATITUDE: '',
hiddendescr: '',
hiddenPartStr: '',
hiddenPart: '',
hiddenlevelName: '',
hiddenlevel: '',
hiddenTypeName: '',
hiddenType: '',
discoverytime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
longitude: '',
latitude: '',
CREATOR_NAME: '',
CREATOR: '',
POSITIONDESC: '',
SOURCE: '4',
CORPINFO_ID: '',
positiondesc: '',
source: '4',
corpinfoId: '',
HIDDENFINDDEPT: ''
},
hiddenFormRules: {
'hiddenImgs': {required: true, message: '请上传隐患照片'},
'HIDDENDESCR': {required: true, message: '请输入隐患描述'},
'HIDDENLEVEL_NAME': {required: true, message: '请选择隐患级别'},
'HIDDENTYPE_NAME': {required: true, message: '请选择隐患类型'},
'DISCOVERYTIME': {required: true, message: '请选择隐患发现时间'},
'hiddendescr': {required: true, message: '请输入隐患描述'},
'hiddenlevelName': {required: true, message: '请选择隐患级别'},
'hiddenTypeName': {required: true, message: '请选择隐患类型'},
'discoverytime': {required: true, message: '请选择隐患发现时间'},
'CREATOR_NAME': {required: true, message: '请选择隐患发现人'},
},
hiddenRegionTreeList: [],
@ -504,16 +503,15 @@ export default {
creatorShow: false,
modalShow: false,
videoUrl: '',
signShow: false,
type: ''
}
},
async onLoad(event) {
this.INSPECTION_ID = event.INSPECTION_ID
this.inspectionId = event.inspectionId
this.vector = event.vector
this.disabled = !(event.type === 'add' || event.type === 'edit');
if (this.INSPECTION_ID) {
if (this.inspectionId) {
await this.fnGetSafetyenvironmentalGoEdit()
}
this.type = event.type
@ -522,7 +520,6 @@ export default {
await this.fnGetInspectionDepartment()
await this.fnGetHiddenRegion()
await this.fnGetHiddenType()
// this.fnGetHiddenLevel()
await this.fnGetInspectionType()
}
},
@ -542,19 +539,15 @@ export default {
},
async fnGetHiddenRegion(id) {
if (!id) {
id = {parentId: '0', DEPARTMENT_ID: this.form.INSPECTED_DEPARTMENT_ID}
id = {parentId: '0', DEPARTMENT_ID: this.form.inspectedDepartmentId}
}
let resData = await getHiddenRegion(id);
this.hiddenRegionTreeList = JSON.parse(resData.zTreeNodes);
let { data } = await getHiddenRegion(id);
this.hiddenRegionTreeList = data;
},
async fnGetHiddenType() {
let resData = await getHiddenType();
this.hiddenTypeTreeList = JSON.parse(resData.zTreeNodes);
},
async fnGetHiddenLevel() {
let resData = await getHiddenLevel();
this.hiddenLevelTreeList = JSON.parse(resData.zTreeNodes);
},
async fnGetInspectionType() {
let resData = await getInspectionType();
this.inspectionTypeTreeList = JSON.parse(resData.zTreeNodes);
@ -568,17 +561,14 @@ export default {
return resData.userList;
},
async fnGetSafetyenvironmentalGoEdit() {
let resData = await getSafetyenvironmentalGoEdit({INSPECTION_ID: this.INSPECTION_ID})
for (let i = 0; i < resData.pd.hiddenList.length; i++) {
for (let j = 0; j < resData.pd.hiddenList[i].hiddenImgs.length; j++) {
resData.pd.hiddenList[i].hiddenImgs[j].url = this.$store.state.filePath + resData.pd.hiddenList[i].hiddenImgs[j].FILEPATH
}
for (let j = 0; j < resData.pd.hiddenList[i].hiddenVideos.length; j++) {
resData.pd.hiddenList[i].hiddenVideos[j].url = this.$store.state.filePath + resData.pd.hiddenList[i].hiddenVideos[j].FILEPATH
}
}
console.log(resData.pd.inspectorVerifyList)
this.form = resData.pd
const { data } = await getSafetyenvironmentalGoEdit({ id: this.inspectionId });
this.form.situations = data.situations.map((item) => {
return {
situation: item,
id: Math.random(),
};
});
this.form = data;
},
showTree(ref, type) {
if (this.popupDisabled) return;
@ -588,56 +578,56 @@ export default {
},
confirmTree(e, list, index) {
if (list === 'inspectedSiteuserColumns') {
this.form.INSPECTED_DEPARTMENT_ID = e[0].id
this.form.INSPECTED_DEPARTMENT_NAME = e[0].name
this.form.INSPECTED_SITEUSER_NAME = ''
this.form.INSPECTED_SITEUSER_ID = ''
this.form.inspectedDepartmentId = e[0].id
this.form.inspectedDepartmentName = e[0].name
this.form.inspectedUserName = ''
this.form.inspectedSiteuserId = ''
this.fnGetHiddenRegion({parentId: '0', DEPARTMENT_ID: e[0].id})
this.fnGetDeptUser(e[0].id).then(res => {
this.$set(this.inspectedSiteuserColumns, 0, res)
})
}
if (list === 'inspectionTypeTreeList') {
this.form.INSPECTION_TYPE = e[0].id
this.form.INSPECTION_TYPE_NAME = e[0].name
this.form.inspectionType = e[0].id
this.form.inspectionTypeName = e[0].name
}
if (list === 'inspectorList') {
this.form.inspectorList[index].INSPECTION_DEPARTMENT_ID = e[0].id
this.form.inspectorList[index].INSPECTION_DEPARTMENT_NAME = e[0].name
this.form.inspectorList[index].INSPECTION_USER_NAME = ''
this.form.inspectorList[index].INSPECTION_USER_ID = ''
if (list === 'inspectionUsers') {
this.form.inspectionUsers[index].inspectionDepartmentId = e[0].id
this.form.inspectionUsers[index].inspectionDepartmentName = e[0].name
this.form.inspectionUsers[index].inspectionUserName = ''
this.form.inspectionUsers[index].inspectionUserId = ''
this.fnGetInspectors(e[0].id).then(res => {
this.$set(this.inspectorList[0], index, res)
this.$set(this.inspectionUsers[0], index, res)
})
}
if (list === 'hiddenRegionTreeList') {
this.hiddenForm.HIDDENPART = e[0].id
this.hiddenForm.HIDDENPART_NAME = e[0].name
this.hiddenForm.hiddenPart = e[0].id
this.hiddenForm.hiddenPartStr = e[0].name
}
if (list === 'hiddenLevelTreeList') {
this.hiddenForm.HIDDENLEVEL = e[0].id
this.hiddenForm.HIDDENLEVEL_NAME = e[0].name
this.hiddenForm.hiddenlevelName = e[0].name
}
if (list === 'hiddenTypeTreeList') {
this.hiddenForm.HIDDENTYPE = e[0].id
this.hiddenForm.HIDDENTYPE_NAME = e[0].name
this.hiddenForm.hiddenTypeName = e[0].name
}
},
inspectedSiteuserConfirmPicker(e) {
this.form.INSPECTED_SITEUSER_NAME = e.value[0].NAME
this.form.INSPECTED_SITEUSER_ID = e.value[0].USER_ID
this.form.inspectedUserName = e.value[0].NAME
this.form.inspectedSiteuserId = e.value[0].USER_ID
this.inspectedSiteuserShow = false;
},
inspectionTimeStartConfirm(e) {
this.form.INSPECTION_TIME_START = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
this.form.inspectionTimeStart = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
this.inspectionTimeStartShow = false;
},
inspectionTimeEndConfirm(e) {
this.form.INSPECTION_TIME_END = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
this.form.inspectionTimeEnd = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
this.inspectionTimeEndShow = false;
},
addSituation() {
this.form.situationList.push({id: Math.random(), INSPECTION_SITUATION_ID: '', SITUATION: ''})
this.form.situations.push({id: Math.random(), inspectionSituationId: '', situation: ''})
},
removeSituation(item, index) {
uni.showModal({
@ -647,28 +637,26 @@ export default {
content: '确定删除检查情况吗?',
success: (res) => {
if (res.cancel) {
this.form.situationList.splice(index, 1)
if (item.INSPECTION_SITUATION_ID) {
this.delSituations.push(item.INSPECTION_SITUATION_ID)
this.form.situations.splice(index, 1)
if (item.inspectionSituationId) {
this.delSituations.push(item.inspectionSituationId)
}
}
}
});
},
addInspector() {
this.form.inspectorList.push(
this.form.inspectionUsers.push(
{
id: Math.random(),
inspectionUserShow: false,
INSPECTION_INSPECTOR_ID: '',
INSPECTION_DEPARTMENT_ID: '',
INSPECTION_DEPARTMENT_NAME: '',
INSPECTION_USER_ID: '',
INSPECTION_USER_INDEX: '',
INSPECTION_USER_NAME: ''
inspectionInspectorId: '',
inspectionDepartmentId: '',
inspectionDepartmentName: '',
inspectionUserId: '',
inspectionUserName: ''
}
)
console.info(this.form.inspectorList)
},
removeInspector(item, index) {
uni.showModal({
@ -678,9 +666,9 @@ export default {
content: '确定移除检查人员吗?',
success: (res) => {
if (res.cancel) {
this.form.inspectorList.splice(index, 1);
if (item.INSPECTION_INSPECTOR_ID) {
this.delInspectors.push(item.INSPECTION_INSPECTOR_ID)
this.form.inspectionUsers.splice(index, 1);
if (item.inspectionInspectorId) {
this.delInspectors.push(item.inspectionInspectorId)
}
}
}
@ -688,13 +676,12 @@ export default {
},
inspectionUserShowPicker(index) {
if (this.disabled) return;
this.form.inspectorList[index].inspectionUserShow = true
this.form.inspectionUsers[index].inspectionUserShow = true
},
inspectionUserConfirmPicker(e, index) {
this.form.inspectorList[index].INSPECTION_USER_ID = e.value[0].USER_ID
this.form.inspectorList[index].INSPECTION_USER_NAME = e.value[0].NAME
this.form.inspectorList[index].inspectionUserShow = false
this.form.inspectorList[index].USER_SIDE = e.value[0].USER_SIDE
this.form.inspectionUsers[index].inspectionUserId = e.value[0].USER_ID
this.form.inspectionUsers[index].inspectionUserName = e.value[0].NAME
this.form.inspectionUsers[index].inspectionUserShow = false
},
async fnSubmit() {
for (const key in this.rules) {
@ -706,8 +693,8 @@ export default {
return;
}
}
for (let i = 0; i < this.form.situationList.length; i++) {
if (!this.form.situationList[i].SITUATION) {
for (let i = 0; i < this.form.situations.length; i++) {
if (!this.form.situations[i].situation) {
uni.showToast({
title: `请填写第${i + 1}项检查情况`,
icon: 'none'
@ -715,8 +702,8 @@ export default {
return
}
}
for (let i = 0; i < this.form.inspectorList.length; i++) {
if (!this.form.inspectorList[i].INSPECTION_USER_NAME) {
for (let i = 0; i < this.form.inspectionUsers.length; i++) {
if (!this.form.inspectionUsers[i].inspectionUserName) {
uni.showToast({
title: `请选择第${i + 1}项检查人员`,
icon: 'none'
@ -724,8 +711,8 @@ export default {
return
}
}
if (this.form.INSPECTION_USER_OPINION) {
if (!this.form.INSPECTION_USER_SIGN_IMG) {
if (this.form.inspectionUserOpinion) {
if (!this.form.inspectionUserSignImg) {
uni.showToast({
title: `您还未签字`,
icon: 'none'
@ -734,10 +721,10 @@ export default {
}
}
let vector = 0
for (let x in this.form.inspectorList) {
for (let x in this.form.inspectionUsers) {
vector = 0
for (let y in this.form.inspectorList) {
if (this.form.inspectorList[y].INSPECTION_USER_ID === this.form.inspectorList[x].INSPECTION_USER_ID) vector++
for (let y in this.form.inspectionUsers) {
if (this.form.inspectionUsers[y].inspectionUserId === this.form.inspectionUsers[x].inspectionUserId) vector++
}
if (vector > 1) {
uni.showToast({
@ -747,73 +734,89 @@ export default {
return
}
}
let index = this.form.inspectorList.findIndex(item => {
return item.INSPECTION_USER_ID === this.userInfo.USER_ID
let index = this.form.inspectionUsers.findIndex(item => {
return item.inspectionUserId === this.userInfo.USER_ID
})
if (index < 0) {
this.form.inspectorList.push(
this.form.inspectionUsers.push(
{
INSPECTION_INSPECTOR_ID: '', //
INSPECTION_DEPARTMENT_ID: this.userInfo.DEPARTMENT_ID, //ID
INSPECTION_DEPARTMENT_NAME: this.userInfo.DEPARTMENT_NAME,
INSPECTION_USER_ID: this.userInfo.USER_ID, //ID
INSPECTION_USER_INDEX: '',
INSPECTION_USER_NAME: this.userInfo.NAME
inspectionInspectorId: '', //
inspectionDepartmentId: this.userInfo.DEPARTMENT_ID, //ID
inspectionDepartmentName: this.userInfo.DEPARTMENT_NAME,
inspectionUserId: this.userInfo.USER_ID, //ID
inspectionUserName: this.userInfo.NAME
}
)
}
let resData
if (this.form.INSPECTION_USER_SIGN_IMG) {
let hiddenIds;
if (this.form.inspectionUserSignImg) {
let params = {
filePath: this.form.INSPECTION_USER_SIGN_IMG,
name: 'FFILE',
filePath: this.form.inspectionUserSignImg,
name: 'file',
formData: {
...this.form,
INSPECTION_ORIGINATOR_ID: this.userInfo.USER_ID,
INSPECTION_STATUS: '1',
delInspectors: this.delInspectors.join(','),
delSituations: this.delSituations.join(','),
delHiddens: this.delHiddens.join(','),
delHiddenFiles: this.delHiddenFiles.join(','),
INSPECTORJSON: JSON.stringify(this.form.inspectorList),
SITUATIONJSON: JSON.stringify(this.form.situationList),
HIDDENJSON: JSON.stringify(this.form.hiddenList),
inspectionId: this.inspectionId,
inspectionSubject: this.form.inspectionSubject,
inspectedDepartmentId: this.form.inspectedDepartmentId,
inspectedSiteuserId: this.form.inspectedSiteuserId,
inspectionPlace: this.form.inspectionPlace,
inspectionUserOpinion: this.form.inspectionUserOpinion,
inspectionType: this.form.inspectionType,
inspectionTimeStart: this.form.inspectionTimeStart,
inspectionTimeEnd: this.form.inspectionTimeEnd,
inspectionUsers: this.form.inspectionUsers,
situation: this.form.situations.map((item) => item.situation),
hiddenList: this.form.hiddenList.map((item) => ({
...item,
hiddenImgs: null,
hiddenVideos: null,
})),
inspectionStatus: '1',
deleteHiddenIds: this.delHiddens,
}
}
resData = this.INSPECTION_ID ? await setSafetyenvironmentalEdit_plus(params) : await setSafetyenvironmentalAdd_plus(params)
const { data } = this.inspectionId ? await setSafetyenvironmentalEdit_plus(params) : await setSafetyenvironmentalAdd_plus(params);
hiddenIds = data;
} else {
let params = {
...this.form,
INSPECTION_ORIGINATOR_ID: this.userInfo.USER_ID,
INSPECTION_STATUS: '1',
delInspectors: this.delInspectors.join(','),
delSituations: this.delSituations.join(','),
delHiddens: this.delHiddens.join(','),
delHiddenFiles: this.delHiddenFiles.join(','),
INSPECTORJSON: JSON.stringify(this.form.inspectorList),
SITUATIONJSON: JSON.stringify(this.form.situationList),
HIDDENJSON: JSON.stringify(this.form.hiddenList),
inspectionId: this.inspectionId,
inspectionSubject: this.form.inspectionSubject,
inspectedDepartmentId: this.form.inspectedDepartmentId,
inspectedSiteuserId: this.form.inspectedSiteuserId,
inspectionPlace: this.form.inspectionPlace,
inspectionUserOpinion: this.form.inspectionUserOpinion,
inspectionType: this.form.inspectionType,
inspectionTimeStart: this.form.inspectionTimeStart,
inspectionTimeEnd: this.form.inspectionTimeEnd,
inspectionUsers: this.form.inspectionUsers,
situation: this.form.situations.map((item) => item.situation),
hiddenList: this.form.hiddenList.map((item) => ({
...item,
hiddenImgs: null,
hiddenVideos: null,
})),
inspectionStatus: '1',
deleteHiddenIds: this.delHiddens,
}
resData = this.INSPECTION_ID ? await setSafetyenvironmentalEdit(params) : await setSafetyenvironmentalAdd(params)
const { data } = this.inspectionId ? await setSafetyenvironmentalEdit(params) : await setSafetyenvironmentalAdd(params);
hiddenIds = data;
}
let PromiseArr = []
for (let i = 0; i < resData.pd.hiddenList.length; i++) {
for (let i = 0; i < hiddenIds.length; i++) {
for (let j = 0; j < this.form.hiddenList[i].hiddenImgs.length; j++) {
let imgFiles = []
imgFiles.push({
uri: this.form.hiddenList[i].hiddenImgs[j].url,
FFILE: this.form.hiddenList[i].hiddenImgs[j].url,
})
PromiseArr.push(this.fnSetImgFilesAdd(imgFiles, resData.pd.hiddenList[i].HIDDEN_ID))
PromiseArr.push(this.fnSetImgFilesAdd(imgFiles, hiddenIds[i]))
}
for (let j = 0; j < this.form.hiddenList[i].hiddenVideos.length; j++) {
PromiseArr.push(this.fnSetVideoAdd(this.form.hiddenList[i].hiddenVideos[j].url, resData.pd.hiddenList[i].HIDDEN_ID))
PromiseArr.push(this.fnSetVideoAdd(this.form.hiddenList[i].hiddenVideos[j].url, hiddenIds[i]))
}
}
Promise.all(PromiseArr).then(() => {
uni.showToast({
title: this.INSPECTION_ID ? '修改成功' : '添加成功',
title: this.inspectionId ? '修改成功' : '添加成功',
})
if (this.vector !== 'list') {
uni.$u.route({
@ -868,13 +871,13 @@ export default {
addHidden() {
this.clearHiddenForm()
this.creatorList = [[{NAME: this.userInfo.NAME, USER_ID: this.userInfo.USER_ID}]]
this.form.inspectorList.forEach(item => {
let index = this.creatorList[0].findIndex(items => items.USER_ID === item.INSPECTION_USER_ID)
this.form.inspectionUsers.forEach(item => {
let index = this.creatorList[0].findIndex(items => items.USER_ID === item.inspectionUserId)
if (index < 0) {
this.creatorList[0].push({
USER_ID: item.INSPECTION_USER_ID,
NAME: item.INSPECTION_USER_NAME,
DEPARTMENT_ID: item.INSPECTION_DEPARTMENT_ID
USER_ID: item.inspectionUserId,
NAME: item.inspectionUserName,
DEPARTMENT_ID: item.inspectionDepartmentId
})
}
})
@ -884,11 +887,11 @@ export default {
showHidden(item) {
this.clearHiddenForm()
this.creatorList = [[]]
this.form.inspectorList.forEach(item => {
this.form.inspectionUsers.forEach(item => {
this.creatorList[0].push({
USER_ID: item.INSPECTION_USER_ID,
NAME: item.INSPECTION_USER_NAME,
DEPARTMENT_ID: item.INSPECTION_DEPARTMENT_ID
USER_ID: item.inspectionUserId,
NAME: item.inspectionUserName,
DEPARTMENT_ID: item.inspectionDepartmentId
})
})
this.hiddenForm = item
@ -898,23 +901,23 @@ export default {
clearHiddenForm() {
this.hiddenForm = {
id: Math.random(),
ISRELEVANT: '2',//
isrelevant: '2',//
hiddenImgs: [],
hiddenVideos: [],
HIDDENDESCR: '',
HIDDENPART_NAME: '',
HIDDENPART: '',
HIDDENLEVEL_NAME: '',
HIDDENLEVEL: '',
HIDDENTYPE_NAME: '',
HIDDENTYPE: '',
DISCOVERYTIME: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
LONGITUDE: '',
LATITUDE: '',
hiddendescr: '',
hiddenPartStr: '',
hiddenPart: '',
hiddenlevelName: '',
hiddenlevel: '',
hiddenTypeName: '',
hiddenType: '',
discoverytime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
longitude: '',
latitude: '',
CREATOR_NAME: '',
CREATOR: '',
POSITIONDESC: '',
SOURCE: '4'
positiondesc: '',
source: '4'
}
},
removeHidden(item, index) {
@ -926,8 +929,8 @@ export default {
success: (res) => {
if (res.cancel) {
this.form.hiddenList.splice(index, 1);
if (item.HIDDEN_ID) {
this.delHiddens.push(item.HIDDEN_ID)
if (item.hiddenId) {
this.delHiddens.push(item.hiddenId)
}
}
}
@ -949,7 +952,7 @@ export default {
this.hiddenForm.hiddenVideos = this.hiddenForm.hiddenVideos.filter(item => item.url !== event.file.url)
},
discoveryTimeConfirm(e) {
this.hiddenForm.DISCOVERYTIME = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
this.hiddenForm.discoverytime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
this.discoveryTimeShow = false;
},
showMapModal() {
@ -958,8 +961,8 @@ export default {
url: '/pages/map/map',
events: {
acceptDataFromOpenedPage: function (e) {
_this.hiddenForm.LONGITUDE = e.data.longitue;
_this.hiddenForm.LATITUDE = e.data.latitude;
_this.hiddenForm.longitude = e.data.longitue;
_this.hiddenForm.latitude = e.data.latitude;
}
},
success: function (res) {
@ -1003,7 +1006,7 @@ export default {
this.videoUrl = videoUrl;
},
signConfirm({path}) {
this.form.INSPECTION_USER_SIGN_IMG = path
this.form.inspectionUserSignImg = path
},
},
}

View File

@ -6,7 +6,7 @@
prefixIcon="search"
placeholder="请输入关键字"
border="surround"
v-model="keyword"
v-model="companyName"
clearable
shape="circle"
></u--input>
@ -20,47 +20,47 @@
<u-list-item v-for="(item, index) in list" :key="index">
<view>
<view class="flex-between main-title">
<text>被检查单位{{ item.INSPECTED_CORPINFO_ID_NAME }}</text>
<text>被检查单位{{ item.inspectedCorpName }}</text>
</view>
<view class="flex-between mt-10 subtitle">
<text>检查发起人{{ item.INSPECTION_ORIGINATOR_NAME }}</text>
<text>检查类型{{ item.INSPECTION_TYPE_NAME }}</text>
<text>检查发起人{{ item.inspectionOriginatorUserName }}</text>
<text>检查类型{{ item.inspectionTypeName }}</text>
</view>
<view class="flex-between mt-10 subtitle">
<text>检查时间 {{ item.INSPECTION_TIME_START }} {{ item.INSPECTION_TIME_END }} </text>
<text>检查时间 {{ item.inspectionTimeStart }} {{ item.inspectionTimeEnd }} </text>
</view>
<view class="flex-between mt-10 subtitle">
<text>
状态
<template v-if="item.INSPECTION_STATUS == '0'"></template>
<template v-else-if="item.INSPECTION_STATUS == '1'">检查人核实中</template>
<template v-else-if="item.INSPECTION_STATUS == '2'">待被检查人确认</template>
<template v-else-if="item.INSPECTION_STATUS == '3'">待指派</template>
<template v-else-if="item.INSPECTION_STATUS == '4'">指派中</template>
<template v-else-if="item.INSPECTION_STATUS == '5'">指派完成</template>
<template v-else-if="item.INSPECTION_STATUS == '6'">检查待验收</template>
<template v-else-if="item.INSPECTION_STATUS == '7'">检查已验收</template>
<template v-else-if="item.INSPECTION_STATUS == '8'">已归档</template>
<template v-else-if="item.INSPECTION_STATUS == '-1'">检查人核实打回</template>
<template v-else-if="item.INSPECTION_STATUS == '-2'">被检查人申辩</template>
<template v-if="item.inspectionStatus === '0'"></template>
<template v-else-if="item.inspectionStatus === '1'">检查人核实中</template>
<template v-else-if="item.inspectionStatus === '2'">待被检查人确认</template>
<template v-else-if="item.inspectionStatus === '3'">待指派</template>
<template v-else-if="item.inspectionStatus === '4'">指派中</template>
<template v-else-if="item.inspectionStatus === '5'">指派完成</template>
<template v-else-if="item.inspectionStatus === '6'">检查待验收</template>
<template v-else-if="item.inspectionStatus === '7'">检查已验收</template>
<template v-else-if="item.inspectionStatus === '8'">已归档</template>
<template v-else-if="item.inspectionStatus === '-1'">检查人核实打回</template>
<template v-else-if="item.inspectionStatus === '-2'">被检查人申辩</template>
</text>
</view>
<view class="mt-10 see_btn">
<view class="wrap">
<u-button type="primary" text="查看" size="mini"
@click="fnNavigatorDetail(item.INSPECTION_ID, 'view')"></u-button>
@click="fnNavigatorDetail(item.inspectionId, 'view')"></u-button>
</view>
<view class="wrap ml-10">
<u-button type="primary" text="流程图" size="mini"
@click="showFlowChart(item.INSPECTION_ID)"></u-button>
@click="showFlowChart(item.inspectionId)"></u-button>
</view>
<view class="wrap ml-10" v-if="item.INSPECTION_STATUS === '-1'">
<view class="wrap ml-10" v-if="item.inspectionStatus === '-1'">
<u-button type="primary" text="编辑" size="mini"
@click="fnNavigatorDetail(item.INSPECTION_ID,'edit')"></u-button>
@click="fnNavigatorDetail(item.inspectionId,'edit')"></u-button>
</view>
<view class="wrap ml-10" v-if="item.INSPECTION_STATUS === '-2'">
<view class="wrap ml-10" v-if="item.inspectionStatus === '-2'">
<u-button type="primary" text="申辩处理" size="mini"
@click="fnNavigatorPlead(item.INSPECTION_ID)"></u-button>
@click="fnNavigatorPlead(item)"></u-button>
</view>
</view>
</view>
@ -72,7 +72,7 @@
</template>
<script>
import {getSafetyenvironmentalList} from "../../../api";
import {getSafetyenvironmentalList} from "@/api";
import FabButton from '@/components/fab_button/index.vue'
export default {
@ -97,10 +97,10 @@ export default {
{id: '-2', name: '被检查人申辩'}
]
],
keyword: '',
INSPECTION_STATUS: '',
pageSize: 10,
currentPage: 1,
companyName: '',
inspectionStatus: '',
limit: 10,
curPage: 1,
totalPage: 0,
list: [],
}
@ -115,22 +115,19 @@ export default {
},
methods: {
async getData() {
console.info(this.userInfo)
let resData = await getSafetyenvironmentalList({
loginUserId: this.userInfo.USER_ID,
supDeparIds: this.userInfo.supDeparIds,
roleLevel: this.userInfo.roleLevel,
KEYWORDS: this.keyword,
INSPECTION_STATUS: this.INSPECTION_STATUS,
showCount: this.pageSize,
currentPage: this.currentPage,
let { page } = await getSafetyenvironmentalList({
companyName: this.companyName,
inspectionStatus: this.inspectionStatus,
limit: this.limit,
curPage: this.curPage,
pageType: 'jg-list-app',
});
this.list = [...this.list, ...resData.varList];
this.totalPage = resData.page.totalPage;
this.list = [...this.list, ...page.list];
this.totalPage = page.totalPage;
},
resetList() {
this.pageSize = 10
this.currentPage = 1
this.limit = 10
this.curPage = 1
this.list = []
this.getData()
},
@ -138,30 +135,36 @@ export default {
this.show = true;
},
confirmPicker(e) {
this.INSPECTION_STATUS = e.value[0].id
this.inspectionStatus = e.value[0].id
this.show = false;
this.resetList()
},
fnNavigatorDetail(INSPECTION_ID, type) {
fnNavigatorDetail(inspectionId, type) {
uni.$u.route({
url: '/pages/safety-environmental-inspection/initiate/detail',
params: {
INSPECTION_ID,
inspectionId,
type
}
})
},
fnNavigatorPlead(INSPECTION_ID) {
fnNavigatorPlead(info) {
uni.$u.route({
url: '/pages/safety-environmental-inspection/initiate/plead',
params: {
INSPECTION_ID,
inspectionId: info.inspectionId,
inspectedSiteuserSignTime: info.inspectedSiteuserSignTime,
inspectedExplain: info.inspectedExplain,
inspectedExplainFilename: info.inspectedExplainFilename,
inspectedExplainFilepath: info.inspectedExplainFilepath,
inspectionSource: info.inspectionSource,
inspectedSiteuserSignImg: info.inspectedSiteuserSignImg
}
})
},
scrolltolower() {
this.currentPage++;
if (this.totalPage >= this.currentPage) this.getData();
this.curPage++;
if (this.totalPage >= this.curPage) this.getData();
},
showFlowChart(id) {
uni.navigateTo({

View File

@ -5,23 +5,23 @@
<u-cell>
<view slot="title" class="title">申辩人</view>
<view slot="label" class="mt-10">
<u--image :showLoading="true" :src="$store.state.filePath + form.INSPECTED_SITEUSER_SIGN_IMG"
<u--image :showLoading="true" :src="$store.state.filePath + form.inspectedSiteuserSignImg"
width="100%" height="80px" mode="scaleToFill"
@click="previewImage($store.state.filePath + form.INSPECTED_SITEUSER_SIGN_IMG)"></u--image>
@click="previewImage($store.state.filePath + form.inspectedSiteuserSignImg)"></u--image>
</view>
</u-cell>
<u-cell>
<view slot="title" class="title">申辩时间</view>
<view slot="value">{{ form.INSPECTED_SITEUSER_SIGN_TIME }}</view>
<view slot="value">{{ form.inspectedSiteuserSignTime }}</view>
</u-cell>
<u-cell>
<view slot="title" class="title">申辩说明</view>
<view slot="value">{{ form.INSPECTED_EXPLAIN }}</view>
<view slot="value">{{ form.inspectedExplain }}</view>
</u-cell>
<u-cell v-if="form.INSPECTED_EXPLAIN_FILENAME">
<u-cell v-if="form.inspectedExplainFilename">
<view slot="title" class="title">申辩附件</view>
<view slot="label" class="mt-10 flex-between">
<text class="u-line-1">{{ form.INSPECTED_EXPLAIN_FILENAME }}</text>
<text class="u-line-1">{{ form.inspectedExplainFilename }}</text>
<view class="ml-10">
<u-button type="primary" text="下载" size="mini" @click="downloadAppendix"></u-button>
</view>
@ -30,13 +30,13 @@
<u-cell>
<view slot="title" class="title required">申辩是否成立</view>
<view slot="value">
<u-radio-group v-model="form.INSPECTION_STATUS" placement="row">
<u-radio-group v-model="form.inspectionStatus" placement="row">
<u-radio label="是" name="-2"></u-radio>
<u-radio label="否" name="3" class="ml-10"></u-radio>
</u-radio-group>
</view>
</u-cell>
<template v-if="form.INSPECTION_STATUS === '-2'">
<template v-if="form.inspectionStatus === '-2'">
<u-cell>
<view slot="title" class="title flex-between">
确认人签字
@ -49,20 +49,20 @@
<view slot="label" class="mt-10">
</view>
</u-cell>
<u-cell v-if="form.SIGN_IMG">
<view slot="label" class="mt-10 flex-1" v-show="form.SIGN_IMG">
<u--image v-show="form.SIGN_IMG" :showLoading="true" :src="form.SIGN_IMG"
<u-cell v-if="form.inspectedSiteUserSignImg">
<view slot="label" class="mt-10 flex-1" v-show="form.inspectedSiteUserSignImg">
<u--image v-show="form.inspectedSiteUserSignImg" :showLoading="true" :src="form.inspectedSiteUserSignImg"
width="100%" height="80px" mode="scaleToFill"
@click="previewImage(form.SIGN_IMG)"></u--image>
@click="previewImage(form.inspectedSiteUserSignImg)"></u--image>
</view>
</u-cell>
</template>
<template v-if="form.INSPECTION_STATUS === '3'">
<template v-if="form.inspectionStatus === '3'">
<u-cell>
<view slot="title" class="title required">不成立理由</view>
<view slot="label" class="mt-10">
<u--textarea v-model="form.INSPECTED_EXPLAIN_REFUSE" placeholder="请输入不成立理由"></u--textarea>
<u--textarea v-model="form.inspectedExplainRefuse" placeholder="请输入不成立理由"></u--textarea>
</view>
</u-cell>
<u-cell>
@ -78,9 +78,9 @@
</view>
</u-cell>
<view>
<u--image v-show="form.SIGN_IMG" :showLoading="true" :src="form.SIGN_IMG"
<u--image v-show="form.inspectedSiteUserSignImg" :showLoading="true" :src="form.inspectedSiteUserSignImg"
width="100%" height="80px" mode="scaleToFill"
@click="previewImage(form.SIGN_IMG)"></u--image>
@click="previewImage(form.inspectedSiteUserSignImg)"></u--image>
</view>
</template>
<u-cell :border="false">
@ -95,7 +95,7 @@
<script>
import sign from "../../../components/sign/sign";
import {setSafetyenvironmentalGoEdit, setSafetyenvironmentalExplain} from "../../../api";
import { setSafetyenvironmentalExplain } from "@/api";
export default {
components: {
@ -103,14 +103,19 @@ export default {
},
data() {
return {
INSPECTION_ID: '',
inspectionId: '',
form: {},
signShow: false
}
},
onLoad(event) {
this.INSPECTION_ID = event.INSPECTION_ID
this.getData()
this.inspectionId = event.inspectionId;
this.form.inspectedSiteuserSignTime = event.inspectedSiteuserSignTime;
this.form.inspectedExplain = event.inspectedExplain;
this.form.inspectedExplainFilename = event.inspectedExplainFilename;
this.form.inspectedExplainFilepath = event.inspectedExplainFilepath;
this.form.inspectionSource = event.inspectionSource;
this.form.inspectedSiteuserSignImg = event.inspectedSiteuserSignImg;
},
computed: {
userInfo() {
@ -118,13 +123,6 @@ export default {
}
},
methods: {
async getData() {
let params = {
INSPECTION_ID: this.INSPECTION_ID,
}
let resData = await setSafetyenvironmentalGoEdit(params)
this.form = resData.pd
},
previewImage(current) {
uni.previewImage({
urls: [current],
@ -133,7 +131,7 @@ export default {
},
downloadAppendix() {
uni.downloadFile({
url: this.$store.state.filePath + this.form.INSPECTED_EXPLAIN_FILEPATH,
url: this.$store.state.filePath + this.form.inspectedExplainFilepath,
success: (res) => {
uni.openDocument({
filePath: res.tempFilePath,
@ -142,25 +140,25 @@ export default {
});
},
signConfirm({path}) {
this.form.SIGN_IMG = path
this.form.inspectedSiteUserSignImg = path
},
async fnSubmit() {
if (!this.form.INSPECTION_STATUS) {
if (!this.form.inspectionStatus) {
uni.showToast({
title: '请选择申辩是否成立',
icon: "none"
})
return;
}
if (this.form.INSPECTION_STATUS === '3') {
if (!this.form.INSPECTED_EXPLAIN_REFUSE) {
if (this.form.inspectionStatus === '3') {
if (!this.form.inspectedExplainRefuse) {
uni.showToast({
title: '请填写不成立理由',
icon: "none"
})
return;
}
if (!this.form.SIGN_IMG) {
if (!this.form.inspectedSiteUserSignImg) {
uni.showToast({
title: '请签字',
icon: "none"
@ -170,7 +168,7 @@ export default {
this.form.loginUserId = this.userInfo.USER_ID;
this.form.loginUserName = this.userInfo.USERNAME;
await setSafetyenvironmentalExplain({
filePath: this.form.SIGN_IMG,
filePath: this.form.inspectedSiteUserSignImg,
name: 'FFILE',
formData: this.form
})
@ -180,7 +178,7 @@ export default {
uni.$u.route({
type: 'navigateBack'
})
} else if (this.form.INSPECTION_STATUS === '-2') {
} else if (this.form.inspectionStatus === '-2') {
uni.$u.route({
url: '/pages/safety-environmental-inspection/initiate/detail',
params: {

View File

@ -9,7 +9,7 @@
</template>
<script>
import {getHotWorkGoEdit, setSafetyenvironmentalFlow} from "../../../api";
import { setSafetyenvironmentalFlow } from "@/api";
export default {
data() {

View File

@ -30,17 +30,17 @@
<view class="flex-between mt-10 subtitle">
<text>
状态
<template v-if="item.INSPECTION_STATUS == '0'"></template>
<template v-else-if="item.INSPECTION_STATUS == '1'">检查人核实中</template>
<template v-else-if="item.INSPECTION_STATUS == '2'">待被检查人确认</template>
<template v-else-if="item.INSPECTION_STATUS == '3'">待指派</template>
<template v-else-if="item.INSPECTION_STATUS == '4'">指派中</template>
<template v-else-if="item.INSPECTION_STATUS == '5'">指派完成</template>
<template v-else-if="item.INSPECTION_STATUS == '6'">检查待验收</template>
<template v-else-if="item.INSPECTION_STATUS == '7'">检查已验收</template>
<template v-else-if="item.INSPECTION_STATUS == '8'">已归档</template>
<template v-else-if="item.INSPECTION_STATUS == '-1'">检查人核实打回</template>
<template v-else-if="item.INSPECTION_STATUS == '-2'">被检查人申辩</template>
<template v-if="item.INSPECTION_STATUS === '0'"></template>
<template v-else-if="item.INSPECTION_STATUS === '1'">检查人核实中</template>
<template v-else-if="item.INSPECTION_STATUS === '2'">待被检查人确认</template>
<template v-else-if="item.INSPECTION_STATUS === '3'">待指派</template>
<template v-else-if="item.INSPECTION_STATUS === '4'">指派中</template>
<template v-else-if="item.INSPECTION_STATUS === '5'">指派完成</template>
<template v-else-if="item.INSPECTION_STATUS === '6'">检查待验收</template>
<template v-else-if="item.INSPECTION_STATUS === '7'">检查已验收</template>
<template v-else-if="item.INSPECTION_STATUS === '8'">已归档</template>
<template v-else-if="item.INSPECTION_STATUS === '-1'">检查人核实打回</template>
<template v-else-if="item.INSPECTION_STATUS === '-2'">被检查人申辩</template>
</text>
</view>
<view class="flex-end mt-10">
@ -49,7 +49,7 @@
@click="fnNavigatorDetail(item.INSPECTION_ID,item.INSPECTION_USER_ID,item.INSPECTION_INSPECTOR_ID,'view')"></u-button>
</view>
<view class="see_btn ml-10"
v-if="!validStr(item.INSPECTION_USER_SIGN_TIME) && (item.INSPECTION_STATUS == '0' || item.INSPECTION_STATUS == '1')">
v-if="!validStr(item.INSPECTION_USER_SIGN_TIME) && (item.INSPECTION_STATUS === '0' || item.INSPECTION_STATUS === '1')">
<u-button type="primary" text="核实" size="mini"
@click="fnNavigatorDetail(item.INSPECTION_ID,item.INSPECTION_USER_ID,item.INSPECTION_INSPECTOR_ID,'verify')"></u-button>
</view>
@ -63,7 +63,7 @@
</template>
<script>
import {getSafetyenvironmentalinspectorList} from "../../../api";
import {getSafetyenvironmentalinspectorList} from "@/api";
export default {
data() {
@ -86,7 +86,7 @@ export default {
},
methods: {
validStr(str) {
if (str != null && str != '' && typeof (str) != 'undefined' && str != 'undefined' && str != 0 && str != 'null') {
if (str != null && str !== '' && typeof (str) != 'undefined' && str !== 'undefined' && str !== 0 && str !== 'null') {
return true
}
return false