安全环保检查- 发起/修改 申辩
parent
78cc3a5efb
commit
246fe752e4
21
api/index.js
21
api/index.js
|
|
@ -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 getHotWorkListByState = (params) => post("/app/hotworkapplication/list", params)//获取动火列表
|
||||||
export const getHotWorkGoEdit = (params) => post("/app/hotworkapplication/goEdit", params) //获取动火详情
|
export const getHotWorkGoEdit = (params) => post("/app/hotworkapplication/goEdit", params) //获取动火详情
|
||||||
export const getImgfilesListByKeyAndType = (params) => post("/app/imgfiles/listImgs", params) //获取附件表的信息
|
export const getImgfilesListByKeyAndType = (params) => post("/app/imgfiles/listImgs", params) //获取附件表的信息
|
||||||
export const getDept = (params) => post("/app/sys/listTree", {loading: false, ...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 getDeptUser = (params) => post("/AppUser/listAllManageAndCorp", {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 getSafetyenvironmentalCheckList = (params) => post("/app/safetyenvironmental/checkList/v2", params) //获取安全环保检查列表(隐患指派及验收)
|
||||||
export const getpleadList = (params) => post("/app/safetyenvironmental/pleadList", params) //获取安全环保检查列表
|
export const getpleadList = (params) => post("/app/safetyenvironmental/pleadList", params) //获取安全环保检查列表
|
||||||
export const getSafetyenvironmentalGoEdit = (params) => post("/app/safetyenvironmental/goEdit", params) //安全环保检查明细信息
|
export const getSafetyenvironmentalGoEdit = (params) => post(`/inspection/safety/environmental/query/${params.id}`, params) //安全环保检查明细信息
|
||||||
export const setSafetyenvironmentalAdd = (params) => post("/app/safetyenvironmental/add1", params) //新增安全环保检查
|
export const setSafetyenvironmentalAdd = (params) => post("/inspection/safety/environmental/process/save", params) //新增安全环保检查
|
||||||
export const setSafetyenvironmentalAdd_plus = (params) => upload("/app/safetyenvironmental/add", params) //新增安全环保检查
|
export const setSafetyenvironmentalAdd_plus = (params) => upload("/inspection/safety/environmental/process/img/save", params) //新增安全环保检查
|
||||||
export const setSafetyenvironmentalEdit = (params) => post("/app/safetyenvironmental/edit1", params) //修改安全环保检查
|
export const setSafetyenvironmentalEdit = (params) => post("/inspection/safety/environmental/process/revise", params) //修改安全环保检查
|
||||||
export const setSafetyenvironmentalEdit_plus = (params) => upload("/app/safetyenvironmental/edit", params) //修改安全环保检查
|
export const setSafetyenvironmentalEdit_plus = (params) => upload("/inspection/safety/environmental/process/img/revise", params) //修改安全环保检查//修改安全环保检查
|
||||||
export const setSafetyenvironmentalGoEdit = (params) => post("/app/safetyenvironmental/goEdit", params) //修改安全环保检查
|
|
||||||
export const getSafetyenvironmentalRedPoint = (params) => post("/app/safetyenvironmental/countCheck", 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 setSafetyenvironmentalFlow = (params) => post("/app/safetyenvironmental/showFlowChart", params) //申辩
|
||||||
export const setImgFilesAdd = (params) => uploads("/app/imgfiles/uploadFile", params) //上传图片
|
export const setImgFilesAdd = (params) => uploads("/app/imgfiles/uploadFile", params) //上传图片
|
||||||
export const setImgFilesListAdd = (params) => uploads("/app/imgfiles/uploadFileList", params) //上传图片
|
export const setImgFilesListAdd = (params) => uploads("/app/imgfiles/uploadFileList", params) //上传图片
|
||||||
export const setVideoAdd = (params) => upload("/app/imgfiles/add", params) //上传视频
|
export const setVideoAdd = (params) => upload("/app/imgfiles/add", params) //上传视频
|
||||||
export const setImgFilesAddVideo = (params) => uploads("/app/imgfiles/addVideo", params) //上传视频
|
export const getHiddenRegion = (params) => post("/hidden/region/list", {loading: false, ...params}) //获取隐患部位
|
||||||
export const getHiddenRegion = (params) => post("/app/hiddenRegion/gerRegionList", {loading: false, ...params}) //获取隐患部位
|
|
||||||
export const getInspectedDepartment = (params) => post("/app/corpDepartment/listTreeCorpDept", {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 getInspectionDepartment = (params) => post("/app/corpDepartment/listTreeManageAndCorp", {loading: false, ...params}) //获取检查部门
|
||||||
export const getInspectors = (params) => post("/AppUser/listAllManageAndCorp", {loading: false, ...params}) //获取检查人员
|
export const getInspectors = (params) => post("/AppUser/listAllManageAndCorp", {loading: false, ...params}) //获取检查人员
|
||||||
|
|
|
||||||
|
|
@ -7,20 +7,7 @@
|
||||||
<u-cell-group :border="false">
|
<u-cell-group :border="false">
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">隐患来源</view>
|
<view slot="title" class="title">隐患来源</view>
|
||||||
<view slot="value">
|
<view slot="value">{{ sourceName }}</view>
|
||||||
<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>
|
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">隐患描述</view>
|
<view slot="title" class="title">隐患描述</view>
|
||||||
|
|
@ -134,18 +121,18 @@
|
||||||
<view slot="title" class="title">隐患级别</view>
|
<view slot="title" class="title">隐患级别</view>
|
||||||
<view slot="value">{{ form.hiddenlevelName }}</view>
|
<view slot="value">{{ form.hiddenlevelName }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="majorinforPdf?.[0]">
|
<u-cell v-if="majorinforPdf">
|
||||||
<view slot="title" class="title">临时处置信息</view>
|
<view slot="title" class="title">临时处置信息</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(majorinforPdf?.[0])"></u-button>
|
@click="downloadAppendix(majorinforPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="supplementPdf?.[0]">
|
<u-cell v-if="supplementPdf">
|
||||||
<view slot="title" class="title">补充重大隐患信息</view>
|
<view slot="title" class="title">补充重大隐患信息</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(supplementPdf?.[0])"></u-button>
|
@click="downloadAppendix(supplementPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
|
|
@ -167,18 +154,18 @@
|
||||||
<view slot="title" class="title">隐患级别</view>
|
<view slot="title" class="title">隐患级别</view>
|
||||||
<view slot="value">{{ form.hiddenlevelName }}</view>
|
<view slot="value">{{ form.hiddenlevelName }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="safetyofficePdf?.[0]">
|
<u-cell v-if="safetyofficePdf">
|
||||||
<view slot="title" class="title">安委会办公室会议记录</view>
|
<view slot="title" class="title">安委会办公室会议记录</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(safetyofficePdf?.[0])"></u-button>
|
@click="downloadAppendix(safetyofficePdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="majorapprovedPdf?.[0]">
|
<u-cell v-if="majorapprovedPdf">
|
||||||
<view slot="title" class="title">整改建议及方案</view>
|
<view slot="title" class="title">整改建议及方案</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(majorapprovedPdf?.[0])"></u-button>
|
@click="downloadAppendix(majorapprovedPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
|
|
@ -212,18 +199,18 @@
|
||||||
<view slot="title" class="title">核定时间</view>
|
<view slot="title" class="title">核定时间</view>
|
||||||
<view slot="value">{{ resultslist.approvedTime }}</view>
|
<view slot="value">{{ resultslist.approvedTime }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="reportPdf?.[0]">
|
<u-cell v-if="reportPdf">
|
||||||
<view slot="title" class="title">隐患调查报告</view>
|
<view slot="title" class="title">隐患调查报告</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(reportPdf?.[0])"></u-button>
|
@click="downloadAppendix(reportPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="resolutionPdf?.[0]">
|
<u-cell v-if="resolutionPdf">
|
||||||
<view slot="title" class="title">安委会或党委会决议记录</view>
|
<view slot="title" class="title">安委会或党委会决议记录</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(resolutionPdf?.[0])"></u-button>
|
@click="downloadAppendix(resolutionPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</u-cell-group>
|
</u-cell-group>
|
||||||
|
|
@ -241,18 +228,18 @@
|
||||||
<view slot="title" class="title">整改人</view>
|
<view slot="title" class="title">整改人</view>
|
||||||
<view slot="value">{{ form.rectificationName }}</view>
|
<view slot="value">{{ form.rectificationName }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="rectificationPdf?.[0]">
|
<u-cell v-if="rectificationPdf">
|
||||||
<view slot="title" class="title">临时处置措施与隐患整改方案</view>
|
<view slot="title" class="title">临时处置措施与隐患整改方案</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(rectificationPdf?.[0])"></u-button>
|
@click="downloadAppendix(rectificationPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="processPdf?.[0]">
|
<u-cell v-if="processPdf">
|
||||||
<view slot="title" class="title">隐患整改过程记录</view>
|
<view slot="title" class="title">隐患整改过程记录</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(processPdf?.[0])"></u-button>
|
@click="downloadAppendix(processPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</u-cell-group>
|
</u-cell-group>
|
||||||
|
|
@ -313,14 +300,14 @@ export default {
|
||||||
this.form = resData.data;
|
this.form = resData.data;
|
||||||
this.hiddenFindPeople = resData.data?.acceptor;
|
this.hiddenFindPeople = resData.data?.acceptor;
|
||||||
this.resultslist = resData.data?.major?.[0] || {};
|
this.resultslist = resData.data?.major?.[0] || {};
|
||||||
this.majorinforPdf = this.findAPicture(resData.data?.files, 106);
|
this.majorinforPdf = this.findAPicture(resData.data?.files, 106)?.[0];
|
||||||
this.majorapprovedPdf = this.findAPicture(resData.data?.files, 107);
|
this.majorapprovedPdf = this.findAPicture(resData.data?.files, 107)?.[0];
|
||||||
this.resolutionPdf = this.findAPicture(resData.data?.files, 109);
|
this.resolutionPdf = this.findAPicture(resData.data?.files, 109)?.[0];
|
||||||
this.rectificationPdf = this.findAPicture(resData.data?.files, 110);
|
this.rectificationPdf = this.findAPicture(resData.data?.files, 110)?.[0];
|
||||||
this.processPdf = this.findAPicture(resData.data?.files, 111);
|
this.processPdf = this.findAPicture(resData.data?.files, 111)?.[0];
|
||||||
this.reportPdf = this.findAPicture(resData.data?.files, 108);
|
this.reportPdf = this.findAPicture(resData.data?.files, 108)?.[0];
|
||||||
this.supplementPdf = this.findAPicture(resData.data?.files, 112);
|
this.supplementPdf = this.findAPicture(resData.data?.files, 112)?.[0];
|
||||||
this.safetyofficePdf = this.findAPicture(resData.data?.files, 113);
|
this.safetyofficePdf = this.findAPicture(resData.data?.files, 113)?.[0];
|
||||||
this.hImgs = this.findAPicture(resData.data?.files, 3);
|
this.hImgs = this.findAPicture(resData.data?.files, 3);
|
||||||
this.videoUrl = this.findAPicture(resData.data?.files, 102)?.[0];
|
this.videoUrl = this.findAPicture(resData.data?.files, 102)?.[0];
|
||||||
},
|
},
|
||||||
|
|
@ -350,6 +337,28 @@ export default {
|
||||||
return result.length > 0 ? result : null;
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,20 +7,7 @@
|
||||||
<u-cell-group :border="false">
|
<u-cell-group :border="false">
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">隐患来源</view>
|
<view slot="title" class="title">隐患来源</view>
|
||||||
<view slot="value">
|
<view slot="value">{{ sourceName }}</view>
|
||||||
<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>
|
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">隐患描述</view>
|
<view slot="title" class="title">隐患描述</view>
|
||||||
|
|
@ -129,18 +116,18 @@
|
||||||
<view slot="title" class="title">隐患级别</view>
|
<view slot="title" class="title">隐患级别</view>
|
||||||
<view slot="value">{{ form.hiddenlevelName }}</view>
|
<view slot="value">{{ form.hiddenlevelName }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="majorinforPdf?.[0]">
|
<u-cell v-if="majorinforPdf">
|
||||||
<view slot="title" class="title">临时处置信息</view>
|
<view slot="title" class="title">临时处置信息</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(majorinforPdf?.[0])"></u-button>
|
@click="downloadAppendix(majorinforPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="supplementPdf?.[0]">
|
<u-cell v-if="supplementPdf">
|
||||||
<view slot="title" class="title">补充重大隐患信息</view>
|
<view slot="title" class="title">补充重大隐患信息</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(supplementPdf?.[0])"></u-button>
|
@click="downloadAppendix(supplementPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
|
|
@ -162,18 +149,18 @@
|
||||||
<view slot="title" class="title">隐患级别</view>
|
<view slot="title" class="title">隐患级别</view>
|
||||||
<view slot="value">{{ form.hiddenlevelName }}</view>
|
<view slot="value">{{ form.hiddenlevelName }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="safetyofficePdf?.[0]">
|
<u-cell v-if="safetyofficePdf">
|
||||||
<view slot="title" class="title">安委会办公室会议记录</view>
|
<view slot="title" class="title">安委会办公室会议记录</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(safetyofficePdf?.[0])"></u-button>
|
@click="downloadAppendix(safetyofficePdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="majorapprovedPdf?.[0]">
|
<u-cell v-if="majorapprovedPdf">
|
||||||
<view slot="title" class="title">临时处置信息</view>
|
<view slot="title" class="title">临时处置信息</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(majorapprovedPdf?.[0])"></u-button>
|
@click="downloadAppendix(majorapprovedPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
|
|
@ -207,18 +194,18 @@
|
||||||
<view slot="title" class="title">核定时间</view>
|
<view slot="title" class="title">核定时间</view>
|
||||||
<view slot="value">{{ resultslist.approvedTime }}</view>
|
<view slot="value">{{ resultslist.approvedTime }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="reportPdf?.[0]">
|
<u-cell v-if="reportPdf">
|
||||||
<view slot="title" class="title">隐患调查报告</view>
|
<view slot="title" class="title">隐患调查报告</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(reportPdf?.[0])"></u-button>
|
@click="downloadAppendix(reportPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="resolutionPdf?.[0]">
|
<u-cell v-if="resolutionPdf">
|
||||||
<view slot="title" class="title">安委会或党委会决议记录</view>
|
<view slot="title" class="title">安委会或党委会决议记录</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(resolutionPdf?.[0])"></u-button>
|
@click="downloadAppendix(resolutionPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</u-cell-group>
|
</u-cell-group>
|
||||||
|
|
@ -236,18 +223,18 @@
|
||||||
<view slot="title" class="title">整改人</view>
|
<view slot="title" class="title">整改人</view>
|
||||||
<view slot="value">{{ form.rectificationName }}</view>
|
<view slot="value">{{ form.rectificationName }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="rectificationPdf?.[0]">
|
<u-cell v-if="rectificationPdf">
|
||||||
<view slot="title" class="title">隐患调查报告</view>
|
<view slot="title" class="title">隐患调查报告</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(rectificationPdf?.[0])"></u-button>
|
@click="downloadAppendix(rectificationPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="processPdf?.[0]">
|
<u-cell v-if="processPdf">
|
||||||
<view slot="title" class="title">安委会或党委会决议记录</view>
|
<view slot="title" class="title">安委会或党委会决议记录</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<u-button type="primary" text="下载" size="mini"
|
<u-button type="primary" text="下载" size="mini"
|
||||||
@click="downloadAppendix(processPdf?.[0])"></u-button>
|
@click="downloadAppendix(processPdf)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</u-cell-group>
|
</u-cell-group>
|
||||||
|
|
@ -288,14 +275,14 @@ export default {
|
||||||
this.form = resData.data;
|
this.form = resData.data;
|
||||||
this.hiddenFindPeople = resData.data?.acceptor;
|
this.hiddenFindPeople = resData.data?.acceptor;
|
||||||
this.resultslist = resData.data?.major?.[0] || {};
|
this.resultslist = resData.data?.major?.[0] || {};
|
||||||
this.majorinforPdf = this.findAPicture(resData.data?.files, 106);
|
this.majorinforPdf = this.findAPicture(resData.data?.files, 106)?.[0];
|
||||||
this.majorapprovedPdf = this.findAPicture(resData.data?.files, 107);
|
this.majorapprovedPdf = this.findAPicture(resData.data?.files, 107)?.[0];
|
||||||
this.resolutionPdf = this.findAPicture(resData.data?.files, 109);
|
this.resolutionPdf = this.findAPicture(resData.data?.files, 109)?.[0];
|
||||||
this.reportPdf = this.findAPicture(resData.data?.files, 108);
|
this.reportPdf = this.findAPicture(resData.data?.files, 108)?.[0];
|
||||||
this.rectificationPdf = this.findAPicture(resData.data?.files, 110);
|
this.rectificationPdf = this.findAPicture(resData.data?.files, 110)?.[0];
|
||||||
this.processPdf = this.findAPicture(resData.data?.files, 111);
|
this.processPdf = this.findAPicture(resData.data?.files, 111)?.[0];
|
||||||
this.supplementPdf = this.findAPicture(resData.data?.files, 112);
|
this.supplementPdf = this.findAPicture(resData.data?.files, 112)?.[0];
|
||||||
this.safetyofficePdf = this.findAPicture(resData.data?.files, 113);
|
this.safetyofficePdf = this.findAPicture(resData.data?.files, 113)?.[0];
|
||||||
this.hImgs = this.findAPicture(resData.data?.files, 3);
|
this.hImgs = this.findAPicture(resData.data?.files, 3);
|
||||||
this.videoUrl = this.findAPicture(resData.data?.files, 102)?.[0];
|
this.videoUrl = this.findAPicture(resData.data?.files, 102)?.[0];
|
||||||
},
|
},
|
||||||
|
|
@ -325,6 +312,28 @@ export default {
|
||||||
return result.length > 0 ? result : null;
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getSafetyenvironmentalRedPoint} from "../../../api";
|
import {getSafetyenvironmentalRedPoint} from "@/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">检查题目:</view>
|
<view slot="title" class="title required">检查题目:</view>
|
||||||
<view slot="value">
|
<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="安全"></u-radio>
|
||||||
<u-radio label="环保" name="环保" class="ml-10"></u-radio>
|
<u-radio label="环保" name="环保" class="ml-10"></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="title" class="title required">被检查单位:</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text @click="showTree('tkitree')">
|
<text @click="showTree('tkitree')">
|
||||||
{{ disabled ? form.INSPECTED_CORPINFO_ID_NAME : form.INSPECTED_DEPARTMENT_NAME || '请选择' }}
|
{{ disabled ? form.inspectedCorpName : form.inspectedDepartmentName || '请选择' }}
|
||||||
</text>
|
</text>
|
||||||
<tki-tree ref="tkitree" :range="inspectedDepartmentTreeList" rangeKey="name" selectParent
|
<tki-tree ref="tkitree" :range="inspectedDepartmentTreeList" rangeKey="name" selectParent
|
||||||
@confirm="confirmTree($event,'inspectedSiteuserColumns')"/>
|
@confirm="confirmTree($event,'inspectedSiteuserColumns')"/>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</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="title" class="title required">被检查单位现场负责人:</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text @click="disabled ? null : inspectedSiteuserShow = true">{{
|
<text @click="disabled ? null : inspectedSiteuserShow = true">{{
|
||||||
form.INSPECTED_SITEUSER_NAME || '请选择'
|
form.inspectedUserName || '请选择'
|
||||||
}}
|
}}
|
||||||
</text>
|
</text>
|
||||||
<u-picker :show="inspectedSiteuserShow" :columns="inspectedSiteuserColumns" keyName="NAME"
|
<u-picker :show="inspectedSiteuserShow" :columns="inspectedSiteuserColumns" keyName="NAME"
|
||||||
|
|
@ -37,14 +37,14 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">检查场所:</view>
|
<view slot="title" class="title required">检查场所:</view>
|
||||||
<view slot="value">
|
<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>
|
:disabled="disabled"></u--input>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">检查类型:</view>
|
<view slot="title" class="title required">检查类型:</view>
|
||||||
<view slot="value">
|
<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"
|
<tki-tree ref="tkitree1" :range="inspectionTypeTreeList" rangeKey="name" selectParent children-name="nodes"
|
||||||
@confirm="confirmTree($event,'inspectionTypeTreeList')"/>
|
@confirm="confirmTree($event,'inspectionTypeTreeList')"/>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -53,10 +53,10 @@
|
||||||
<view slot="title" class="title required">检查开始时间:</view>
|
<view slot="title" class="title required">检查开始时间:</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text @click="disabled ? null : inspectionTimeStartShow = true">{{
|
<text @click="disabled ? null : inspectionTimeStartShow = true">{{
|
||||||
form.INSPECTION_TIME_START || '请选择'
|
form.inspectionTimeStart || '请选择'
|
||||||
}}
|
}}
|
||||||
</text>
|
</text>
|
||||||
<u-datetime-picker :show="inspectionTimeStartShow" :value="form.INSPECTION_TIME_START"
|
<u-datetime-picker :show="inspectionTimeStartShow" :value="form.inspectionTimeStart"
|
||||||
@cancel="inspectionTimeStartShow = false"
|
@cancel="inspectionTimeStartShow = false"
|
||||||
@confirm="inspectionTimeStartConfirm"></u-datetime-picker>
|
@confirm="inspectionTimeStartConfirm"></u-datetime-picker>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -65,10 +65,10 @@
|
||||||
<view slot="title" class="title required">检查结束时间:</view>
|
<view slot="title" class="title required">检查结束时间:</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text @click="disabled ? null : inspectionTimeEndShow = true">{{
|
<text @click="disabled ? null : inspectionTimeEndShow = true">{{
|
||||||
form.INSPECTION_TIME_END || '请选择'
|
form.inspectionTimeEnd || '请选择'
|
||||||
}}
|
}}
|
||||||
</text>
|
</text>
|
||||||
<u-datetime-picker :show="inspectionTimeEndShow" :value="form.INSPECTION_TIME_END"
|
<u-datetime-picker :show="inspectionTimeEndShow" :value="form.inspectionTimeEnd"
|
||||||
@cancel="inspectionTimeEndShow = false"
|
@cancel="inspectionTimeEndShow = false"
|
||||||
@confirm="inspectionTimeEndConfirm"></u-datetime-picker>
|
@confirm="inspectionTimeEndConfirm"></u-datetime-picker>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
<u-cell v-if="disabled">
|
<u-cell v-if="disabled">
|
||||||
<view slot="title" class="title required">记录填写时间:</view>
|
<view slot="title" class="title required">记录填写时间:</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text>{{ form.CREATTIME }}</text>
|
<text>{{ form.creattime }}</text>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
|
|
@ -88,8 +88,8 @@
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="label">
|
<view slot="label">
|
||||||
<view class="pr mt-10 textarea-box" v-for="(item,index) in form.situationList" :key="item.id">
|
<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--textarea v-model="item.situation" placeholder="请输入检查情况" :disabled="disabled"></u--textarea>
|
||||||
<u-badge value="X" type="error" :offset="[-9,-10]" absolute
|
<u-badge value="X" type="error" :offset="[-9,-10]" absolute
|
||||||
@click.native="removeSituation(item,index)" v-if="!disabled"></u-badge>
|
@click.native="removeSituation(item,index)" v-if="!disabled"></u-badge>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -105,30 +105,30 @@
|
||||||
<view class="title-none">
|
<view class="title-none">
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="value" style="width: 100%">
|
<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">
|
<u-cell-group :border="false" class="border">
|
||||||
<view class="title-show">
|
<view class="title-show">
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title">{{ index + 1 }}.检查人员单位</view>
|
<view slot="title">{{ index + 1 }}.检查人员单位</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text @click="showTree('tkitreeInspector' + index,'arr')">
|
<text @click="showTree('tkitreeInspector' + index,'arr')">
|
||||||
{{ item.INSPECTION_DEPARTMENT_NAME || '请选择' }}
|
{{ item.inspectionDepartmentName || '请选择' }}
|
||||||
</text>
|
</text>
|
||||||
<tki-tree :ref="'tkitreeInspector' + index" :range="inspectedDepartmentTreeList"
|
<tki-tree :ref="'tkitreeInspector' + index" :range="inspectedDepartmentTreeList"
|
||||||
rangeKey="name"
|
rangeKey="name"
|
||||||
selectParent @confirm="confirmTree($event,'inspectorList',index)"/>
|
selectParent @confirm="confirmTree($event,'inspectionUsers',index)"/>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</view>
|
</view>
|
||||||
<view class="title-show">
|
<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="title">{{ index + 1 }}.检查人员</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text @click="inspectionUserShowPicker(index)">{{
|
<text @click="inspectionUserShowPicker(index)">{{
|
||||||
item.INSPECTION_USER_NAME || '请选择'
|
item.inspectionUserName || '请选择'
|
||||||
}}
|
}}
|
||||||
</text>
|
</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"
|
@cancel="item.inspectionUserShow = false"
|
||||||
@confirm="inspectionUserConfirmPicker($event,index)"></u-picker>
|
@confirm="inspectionUserConfirmPicker($event,index)"></u-picker>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -158,10 +158,10 @@
|
||||||
<uni-th align="center">隐患描述</uni-th>
|
<uni-th align="center">隐患描述</uni-th>
|
||||||
<uni-th align="center">操作</uni-th>
|
<uni-th align="center">操作</uni-th>
|
||||||
</uni-tr>
|
</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>{{ index + 1 }}</uni-td>
|
||||||
<uni-td>{{ item.HIDDENPART_NAME ? item.HIDDENPART_NAME : item.HIDDENPART }}</uni-td>
|
<uni-td>{{ item.hiddenPartStr ? item.hiddenPartStr : item.hiddenPart }}</uni-td>
|
||||||
<uni-td>{{ item.HIDDENDESCR }}</uni-td>
|
<uni-td>{{ item.hiddendescr }}</uni-td>
|
||||||
<uni-td>
|
<uni-td>
|
||||||
<view class="flex-between">
|
<view class="flex-between">
|
||||||
<u-icon name="eye-fill" @tap="showHidden(item, index)"></u-icon>
|
<u-icon name="eye-fill" @tap="showHidden(item, index)"></u-icon>
|
||||||
|
|
@ -176,37 +176,38 @@
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</view>
|
</view>
|
||||||
<template v-for="item in form.inspectorVerifyList" v-if="!type||!(type==='add' || type==='edit')">
|
<template v-for="item in form.inspectionUsers" v-if="!type||!(type==='add' || type==='edit')">
|
||||||
<u-cell v-show="item.INSPECTION_USER_OPINION">
|
<u-cell v-show="item.inspectionUserOpinion">
|
||||||
<template #title>
|
<template #title>
|
||||||
<view class="title">检查人意见:</view>
|
<view class="title">检查人意见:</view>
|
||||||
</template>
|
</template>
|
||||||
<template #label>
|
<template #label>
|
||||||
<view class="mt-10 textarea-box">
|
<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>
|
placeholder="请输入检查人意见"></u--textarea>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</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="title" class="title">签字:</view>
|
||||||
<view slot="label" class="mt-10">
|
<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"
|
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>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!type||!(type==='add' || type==='edit')">
|
<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>
|
<view slot="title" class="title">被检查人意见:</view>
|
||||||
</u-cell>
|
</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="title" class="title">签字:</view>
|
||||||
<view slot="label" class="mt-10">
|
<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"
|
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>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -214,10 +215,10 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">检查人意见:</view>
|
<view slot="title" class="title">检查人意见:</view>
|
||||||
<view slot="label" class="mt-10 textarea-box">
|
<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>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="form.INSPECTION_USER_OPINION">
|
<u-cell v-if="form.inspectionUserOpinion">
|
||||||
<view slot="title" class="title flex-between">
|
<view slot="title" class="title flex-between">
|
||||||
签字:
|
签字:
|
||||||
<view>
|
<view>
|
||||||
|
|
@ -228,12 +229,12 @@
|
||||||
<sign v-if="signShow" :signShow.sync="signShow" @confirm="signConfirm"></sign>
|
<sign v-if="signShow" :signShow.sync="signShow" @confirm="signConfirm"></sign>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="form.INSPECTION_USER_SIGN_IMG">
|
<u-cell v-if="form.inspectionUserSignImg">
|
||||||
<view slot="value" class="mt-10 flex-1" v-show="form.INSPECTION_USER_SIGN_IMG">
|
<view slot="value" class="mt-10 flex-1" v-show="form.inspectionUserSignImg">
|
||||||
<u--image v-show="form.INSPECTION_USER_SIGN_IMG" :showLoading="true" :src="form.INSPECTION_USER_SIGN_IMG"
|
<u--image v-show="form.inspectionUserSignImg" :showLoading="true" :src="form.inspectionUserSignImg"
|
||||||
width="100%" height="80px" mode="scaleToFill"
|
width="100%" height="80px" mode="scaleToFill"
|
||||||
@click="previewImage(form.INSPECTION_USER_SIGN_IMG)"></u--image>
|
@click="previewImage(form.inspectionUserSignImg)">
|
||||||
|
</u--image>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -291,7 +292,7 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">隐患描述:</view>
|
<view slot="title" class="title required">隐患描述:</view>
|
||||||
<view slot="label" class="mt-10 textarea-box">
|
<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>
|
:disabled="popupDisabled"></u--textarea>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
|
|
@ -299,7 +300,7 @@
|
||||||
<view slot="title" class="title">隐患部位:</view>
|
<view slot="title" class="title">隐患部位:</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text @click="showTree('tkitree2')">
|
<text @click="showTree('tkitree2')">
|
||||||
{{ hiddenForm.HIDDENPART_NAME ? hiddenForm.HIDDENPART_NAME : hiddenForm.HIDDENPART || '请选择' }}
|
{{ hiddenForm.hiddenPartStr ? hiddenForm.hiddenPartStr : hiddenForm.hiddenPart || '请选择' }}
|
||||||
</text>
|
</text>
|
||||||
<tki-tree ref="tkitree2" :range="hiddenRegionTreeList" rangeKey="name" selectParent children-name="nodes"
|
<tki-tree ref="tkitree2" :range="hiddenRegionTreeList" rangeKey="name" selectParent children-name="nodes"
|
||||||
@confirm="confirmTree($event,'hiddenRegionTreeList')"/>
|
@confirm="confirmTree($event,'hiddenRegionTreeList')"/>
|
||||||
|
|
@ -308,7 +309,7 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">隐患级别:</view>
|
<view slot="title" class="title required">隐患级别:</view>
|
||||||
<view slot="value">
|
<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"
|
<tki-tree ref="tkitree3" :range="hiddenLevelTreeList" rangeKey="name" selectParent children-name="nodes"
|
||||||
@confirm="confirmTree($event,'hiddenLevelTreeList')"/>
|
@confirm="confirmTree($event,'hiddenLevelTreeList')"/>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -316,7 +317,7 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">隐患类型:</view>
|
<view slot="title" class="title required">隐患类型:</view>
|
||||||
<view slot="value">
|
<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"
|
<tki-tree ref="tkitree4" :range="hiddenTypeTreeList" rangeKey="name" children-name="nodes"
|
||||||
@confirm="confirmTree($event,'hiddenTypeTreeList')"/>
|
@confirm="confirmTree($event,'hiddenTypeTreeList')"/>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -324,7 +325,7 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">是否是相关方:</view>
|
<view slot="title" class="title required">是否是相关方:</view>
|
||||||
<view slot="value">
|
<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="1" class="ml-10"></u-radio>
|
||||||
<u-radio label="否" name="2" class="ml-10"></u-radio>
|
<u-radio label="否" name="2" class="ml-10"></u-radio>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
|
|
@ -334,10 +335,10 @@
|
||||||
<view slot="title" class="title required">隐患发现时间:</view>
|
<view slot="title" class="title required">隐患发现时间:</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text @click="popupDisabled ? null : discoveryTimeShow = true">{{
|
<text @click="popupDisabled ? null : discoveryTimeShow = true">{{
|
||||||
hiddenForm.DISCOVERYTIME || '请选择'
|
hiddenForm.discoverytime || '请选择'
|
||||||
}}
|
}}
|
||||||
</text>
|
</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"
|
@cancel="discoveryTimeShow = false"
|
||||||
@confirm="discoveryTimeConfirm"></u-datetime-picker>
|
@confirm="discoveryTimeConfirm"></u-datetime-picker>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -350,15 +351,15 @@
|
||||||
v-if="!popupDisabled"></u-button>
|
v-if="!popupDisabled"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view slot="label" class="mt-10" v-if="hiddenForm.LONGITUDE && hiddenForm.LATITUDE">
|
<view slot="label" class="mt-10" v-if="hiddenForm.longitude && hiddenForm.latitude">
|
||||||
<view>经度:{{ hiddenForm.LONGITUDE }}</view>
|
<view>经度:{{ hiddenForm.longitude }}</view>
|
||||||
<view>纬度:{{ hiddenForm.LATITUDE }}</view>
|
<view>纬度:{{ hiddenForm.latitude }}</view>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">隐患位置描述:</view>
|
<view slot="title" class="title">隐患位置描述:</view>
|
||||||
<view slot="label" class="mt-10 textarea-box">
|
<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>
|
:disabled="popupDisabled"></u--textarea>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
|
|
@ -391,7 +392,6 @@
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getDeptUser,
|
getDeptUser,
|
||||||
getHiddenLevel,
|
|
||||||
getHiddenRegion,
|
getHiddenRegion,
|
||||||
getHiddenType,
|
getHiddenType,
|
||||||
getInspectedDepartment,
|
getInspectedDepartment,
|
||||||
|
|
@ -403,46 +403,45 @@ import {
|
||||||
setSafetyenvironmentalAdd, setSafetyenvironmentalAdd_plus,
|
setSafetyenvironmentalAdd, setSafetyenvironmentalAdd_plus,
|
||||||
setSafetyenvironmentalEdit, setSafetyenvironmentalEdit_plus,
|
setSafetyenvironmentalEdit, setSafetyenvironmentalEdit_plus,
|
||||||
setVideoAdd
|
setVideoAdd
|
||||||
} from "../../../api";
|
} from "@/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
INSPECTION_SUBJECT: '',
|
inspectionSubject: '',
|
||||||
INSPECTED_DEPARTMENT_NAME: '',
|
inspectedDepartmentName: '',
|
||||||
INSPECTED_CORPINFO_ID_NAME: '',
|
inspectedCorpName: '',
|
||||||
INSPECTED_DEPARTMENT_ID: '',
|
inspectedDepartmentId: '',
|
||||||
INSPECTED_SITEUSER_NAME: '',
|
inspectedUserName: '',
|
||||||
INSPECTED_SITEUSER_ID: '',
|
inspectedSiteuserId: '',
|
||||||
INSPECTION_PLACE: '',
|
inspectionPlace: '',
|
||||||
INSPECTION_TYPE_NAME: '',
|
inspectionTypeName: '',
|
||||||
INSPECTION_TYPE_OTHER: '',
|
inspectionTimeStart: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
|
||||||
INSPECTION_TIME_START: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
|
inspectionTimeEnd: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
|
||||||
INSPECTION_TIME_END: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
|
situations: [{id: Math.random(), inspectionSituationId: '', situation: ''}],
|
||||||
situationList: [{id: Math.random(), INSPECTION_SITUATION_ID: '', SITUATION: ''}],
|
inspectionUsers: [{
|
||||||
inspectorList: [{
|
|
||||||
id: Math.random(),
|
id: Math.random(),
|
||||||
inspectionUserShow: false,
|
inspectionUserShow: false,
|
||||||
INSPECTION_INSPECTOR_ID: '',
|
inspectionInspectorId: '',
|
||||||
INSPECTION_DEPARTMENT_ID: '',
|
inspectionDepartmentId: '',
|
||||||
INSPECTION_DEPARTMENT_NAME: '',
|
inspectionDepartmentName: '',
|
||||||
INSPECTION_USER_ID: '',
|
inspectionUserId: '',
|
||||||
INSPECTION_USER_NAME: ''
|
inspectionUserName: ''
|
||||||
}],
|
}],
|
||||||
hiddenList: [],
|
hiddenList: [],
|
||||||
CREATTIME: '',
|
creattime: '',
|
||||||
INSPECTION_USER_OPINION: '',
|
inspectionUserOpinion: '',
|
||||||
INSPECTION_USER_SIGN_IMG: ''
|
inspectionUserSignImg: ''
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'INSPECTION_SUBJECT': {required: true, message: '请选择检查题目'},
|
'inspectionSubject': {required: true, message: '请选择检查题目'},
|
||||||
'INSPECTED_DEPARTMENT_NAME': {required: true, message: '请选择被检查单位'},
|
'inspectedDepartmentName': {required: true, message: '请选择被检查单位'},
|
||||||
'INSPECTED_SITEUSER_NAME': {required: true, message: '请选择被检查单位现场负责人'},
|
'inspectedUserName': {required: true, message: '请选择被检查单位现场负责人'},
|
||||||
'INSPECTION_PLACE': {required: true, message: '请输入检查场所'},
|
'inspectionPlace': {required: true, message: '请输入检查场所'},
|
||||||
'INSPECTION_TYPE_NAME': {required: true, message: '请选择检查类型'},
|
'inspectionTypeName': {required: true, message: '请选择检查类型'},
|
||||||
'INSPECTION_TIME_START': {required: true, message: '请选择检查开始时间'},
|
'inspectionTimeStart': {required: true, message: '请选择检查开始时间'},
|
||||||
'INSPECTION_TIME_END': {required: true, message: '请选择检查结束时间'},
|
'inspectionTimeEnd': {required: true, message: '请选择检查结束时间'},
|
||||||
},
|
},
|
||||||
inspectedDepartmentTreeList: [],
|
inspectedDepartmentTreeList: [],
|
||||||
inspectionDepartmentTreeList: [],
|
inspectionDepartmentTreeList: [],
|
||||||
|
|
@ -453,8 +452,8 @@ export default {
|
||||||
inspectedSiteuserColumns: [
|
inspectedSiteuserColumns: [
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
inspectorList: [[]],
|
inspectionUsers: [[]],
|
||||||
INSPECTION_ID: '',
|
inspectionId: '',
|
||||||
vector: '',
|
vector: '',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
delSituations: [],
|
delSituations: [],
|
||||||
|
|
@ -463,32 +462,32 @@ export default {
|
||||||
popupDisabled: false,
|
popupDisabled: false,
|
||||||
hiddenForm: {
|
hiddenForm: {
|
||||||
id: Math.random(),
|
id: Math.random(),
|
||||||
ISRELEVANT: '2',//隐患类型
|
isrelevant: '2',//是否相关方
|
||||||
hiddenImgs: [],
|
hiddenImgs: [],
|
||||||
hiddenVideos: [],
|
hiddenVideos: [],
|
||||||
HIDDENDESCR: '',
|
hiddendescr: '',
|
||||||
HIDDENPART_NAME: '',
|
hiddenPartStr: '',
|
||||||
HIDDENPART: '',
|
hiddenPart: '',
|
||||||
HIDDENLEVEL_NAME: '',
|
hiddenlevelName: '',
|
||||||
HIDDENLEVEL: '',
|
hiddenlevel: '',
|
||||||
HIDDENTYPE_NAME: '',
|
hiddenTypeName: '',
|
||||||
HIDDENTYPE: '',
|
hiddenType: '',
|
||||||
DISCOVERYTIME: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
|
discoverytime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
|
||||||
LONGITUDE: '',
|
longitude: '',
|
||||||
LATITUDE: '',
|
latitude: '',
|
||||||
CREATOR_NAME: '',
|
CREATOR_NAME: '',
|
||||||
CREATOR: '',
|
CREATOR: '',
|
||||||
POSITIONDESC: '',
|
positiondesc: '',
|
||||||
SOURCE: '4',
|
source: '4',
|
||||||
CORPINFO_ID: '',
|
corpinfoId: '',
|
||||||
HIDDENFINDDEPT: ''
|
HIDDENFINDDEPT: ''
|
||||||
},
|
},
|
||||||
hiddenFormRules: {
|
hiddenFormRules: {
|
||||||
'hiddenImgs': {required: true, message: '请上传隐患照片'},
|
'hiddenImgs': {required: true, message: '请上传隐患照片'},
|
||||||
'HIDDENDESCR': {required: true, message: '请输入隐患描述'},
|
'hiddendescr': {required: true, message: '请输入隐患描述'},
|
||||||
'HIDDENLEVEL_NAME': {required: true, message: '请选择隐患级别'},
|
'hiddenlevelName': {required: true, message: '请选择隐患级别'},
|
||||||
'HIDDENTYPE_NAME': {required: true, message: '请选择隐患类型'},
|
'hiddenTypeName': {required: true, message: '请选择隐患类型'},
|
||||||
'DISCOVERYTIME': {required: true, message: '请选择隐患发现时间'},
|
'discoverytime': {required: true, message: '请选择隐患发现时间'},
|
||||||
'CREATOR_NAME': {required: true, message: '请选择隐患发现人'},
|
'CREATOR_NAME': {required: true, message: '请选择隐患发现人'},
|
||||||
},
|
},
|
||||||
hiddenRegionTreeList: [],
|
hiddenRegionTreeList: [],
|
||||||
|
|
@ -504,16 +503,15 @@ export default {
|
||||||
creatorShow: false,
|
creatorShow: false,
|
||||||
modalShow: false,
|
modalShow: false,
|
||||||
videoUrl: '',
|
videoUrl: '',
|
||||||
|
|
||||||
signShow: false,
|
signShow: false,
|
||||||
type: ''
|
type: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async onLoad(event) {
|
async onLoad(event) {
|
||||||
this.INSPECTION_ID = event.INSPECTION_ID
|
this.inspectionId = event.inspectionId
|
||||||
this.vector = event.vector
|
this.vector = event.vector
|
||||||
this.disabled = !(event.type === 'add' || event.type === 'edit');
|
this.disabled = !(event.type === 'add' || event.type === 'edit');
|
||||||
if (this.INSPECTION_ID) {
|
if (this.inspectionId) {
|
||||||
await this.fnGetSafetyenvironmentalGoEdit()
|
await this.fnGetSafetyenvironmentalGoEdit()
|
||||||
}
|
}
|
||||||
this.type = event.type
|
this.type = event.type
|
||||||
|
|
@ -522,7 +520,6 @@ export default {
|
||||||
await this.fnGetInspectionDepartment()
|
await this.fnGetInspectionDepartment()
|
||||||
await this.fnGetHiddenRegion()
|
await this.fnGetHiddenRegion()
|
||||||
await this.fnGetHiddenType()
|
await this.fnGetHiddenType()
|
||||||
// this.fnGetHiddenLevel()
|
|
||||||
await this.fnGetInspectionType()
|
await this.fnGetInspectionType()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -542,19 +539,15 @@ export default {
|
||||||
},
|
},
|
||||||
async fnGetHiddenRegion(id) {
|
async fnGetHiddenRegion(id) {
|
||||||
if (!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);
|
let { data } = await getHiddenRegion(id);
|
||||||
this.hiddenRegionTreeList = JSON.parse(resData.zTreeNodes);
|
this.hiddenRegionTreeList = data;
|
||||||
},
|
},
|
||||||
async fnGetHiddenType() {
|
async fnGetHiddenType() {
|
||||||
let resData = await getHiddenType();
|
let resData = await getHiddenType();
|
||||||
this.hiddenTypeTreeList = JSON.parse(resData.zTreeNodes);
|
this.hiddenTypeTreeList = JSON.parse(resData.zTreeNodes);
|
||||||
},
|
},
|
||||||
async fnGetHiddenLevel() {
|
|
||||||
let resData = await getHiddenLevel();
|
|
||||||
this.hiddenLevelTreeList = JSON.parse(resData.zTreeNodes);
|
|
||||||
},
|
|
||||||
async fnGetInspectionType() {
|
async fnGetInspectionType() {
|
||||||
let resData = await getInspectionType();
|
let resData = await getInspectionType();
|
||||||
this.inspectionTypeTreeList = JSON.parse(resData.zTreeNodes);
|
this.inspectionTypeTreeList = JSON.parse(resData.zTreeNodes);
|
||||||
|
|
@ -568,17 +561,14 @@ export default {
|
||||||
return resData.userList;
|
return resData.userList;
|
||||||
},
|
},
|
||||||
async fnGetSafetyenvironmentalGoEdit() {
|
async fnGetSafetyenvironmentalGoEdit() {
|
||||||
let resData = await getSafetyenvironmentalGoEdit({INSPECTION_ID: this.INSPECTION_ID})
|
const { data } = await getSafetyenvironmentalGoEdit({ id: this.inspectionId });
|
||||||
for (let i = 0; i < resData.pd.hiddenList.length; i++) {
|
this.form.situations = data.situations.map((item) => {
|
||||||
for (let j = 0; j < resData.pd.hiddenList[i].hiddenImgs.length; j++) {
|
return {
|
||||||
resData.pd.hiddenList[i].hiddenImgs[j].url = this.$store.state.filePath + resData.pd.hiddenList[i].hiddenImgs[j].FILEPATH
|
situation: item,
|
||||||
}
|
id: Math.random(),
|
||||||
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
|
});
|
||||||
}
|
this.form = data;
|
||||||
}
|
|
||||||
console.log(resData.pd.inspectorVerifyList)
|
|
||||||
this.form = resData.pd
|
|
||||||
},
|
},
|
||||||
showTree(ref, type) {
|
showTree(ref, type) {
|
||||||
if (this.popupDisabled) return;
|
if (this.popupDisabled) return;
|
||||||
|
|
@ -588,56 +578,56 @@ export default {
|
||||||
},
|
},
|
||||||
confirmTree(e, list, index) {
|
confirmTree(e, list, index) {
|
||||||
if (list === 'inspectedSiteuserColumns') {
|
if (list === 'inspectedSiteuserColumns') {
|
||||||
this.form.INSPECTED_DEPARTMENT_ID = e[0].id
|
this.form.inspectedDepartmentId = e[0].id
|
||||||
this.form.INSPECTED_DEPARTMENT_NAME = e[0].name
|
this.form.inspectedDepartmentName = e[0].name
|
||||||
this.form.INSPECTED_SITEUSER_NAME = ''
|
this.form.inspectedUserName = ''
|
||||||
this.form.INSPECTED_SITEUSER_ID = ''
|
this.form.inspectedSiteuserId = ''
|
||||||
this.fnGetHiddenRegion({parentId: '0', DEPARTMENT_ID: e[0].id})
|
this.fnGetHiddenRegion({parentId: '0', DEPARTMENT_ID: e[0].id})
|
||||||
this.fnGetDeptUser(e[0].id).then(res => {
|
this.fnGetDeptUser(e[0].id).then(res => {
|
||||||
this.$set(this.inspectedSiteuserColumns, 0, res)
|
this.$set(this.inspectedSiteuserColumns, 0, res)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (list === 'inspectionTypeTreeList') {
|
if (list === 'inspectionTypeTreeList') {
|
||||||
this.form.INSPECTION_TYPE = e[0].id
|
this.form.inspectionType = e[0].id
|
||||||
this.form.INSPECTION_TYPE_NAME = e[0].name
|
this.form.inspectionTypeName = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'inspectorList') {
|
if (list === 'inspectionUsers') {
|
||||||
this.form.inspectorList[index].INSPECTION_DEPARTMENT_ID = e[0].id
|
this.form.inspectionUsers[index].inspectionDepartmentId = e[0].id
|
||||||
this.form.inspectorList[index].INSPECTION_DEPARTMENT_NAME = e[0].name
|
this.form.inspectionUsers[index].inspectionDepartmentName = e[0].name
|
||||||
this.form.inspectorList[index].INSPECTION_USER_NAME = ''
|
this.form.inspectionUsers[index].inspectionUserName = ''
|
||||||
this.form.inspectorList[index].INSPECTION_USER_ID = ''
|
this.form.inspectionUsers[index].inspectionUserId = ''
|
||||||
this.fnGetInspectors(e[0].id).then(res => {
|
this.fnGetInspectors(e[0].id).then(res => {
|
||||||
this.$set(this.inspectorList[0], index, res)
|
this.$set(this.inspectionUsers[0], index, res)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (list === 'hiddenRegionTreeList') {
|
if (list === 'hiddenRegionTreeList') {
|
||||||
this.hiddenForm.HIDDENPART = e[0].id
|
this.hiddenForm.hiddenPart = e[0].id
|
||||||
this.hiddenForm.HIDDENPART_NAME = e[0].name
|
this.hiddenForm.hiddenPartStr = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'hiddenLevelTreeList') {
|
if (list === 'hiddenLevelTreeList') {
|
||||||
this.hiddenForm.HIDDENLEVEL = e[0].id
|
this.hiddenForm.HIDDENLEVEL = e[0].id
|
||||||
this.hiddenForm.HIDDENLEVEL_NAME = e[0].name
|
this.hiddenForm.hiddenlevelName = e[0].name
|
||||||
}
|
}
|
||||||
if (list === 'hiddenTypeTreeList') {
|
if (list === 'hiddenTypeTreeList') {
|
||||||
this.hiddenForm.HIDDENTYPE = e[0].id
|
this.hiddenForm.HIDDENTYPE = e[0].id
|
||||||
this.hiddenForm.HIDDENTYPE_NAME = e[0].name
|
this.hiddenForm.hiddenTypeName = e[0].name
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
inspectedSiteuserConfirmPicker(e) {
|
inspectedSiteuserConfirmPicker(e) {
|
||||||
this.form.INSPECTED_SITEUSER_NAME = e.value[0].NAME
|
this.form.inspectedUserName = e.value[0].NAME
|
||||||
this.form.INSPECTED_SITEUSER_ID = e.value[0].USER_ID
|
this.form.inspectedSiteuserId = e.value[0].USER_ID
|
||||||
this.inspectedSiteuserShow = false;
|
this.inspectedSiteuserShow = false;
|
||||||
},
|
},
|
||||||
inspectionTimeStartConfirm(e) {
|
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;
|
this.inspectionTimeStartShow = false;
|
||||||
},
|
},
|
||||||
inspectionTimeEndConfirm(e) {
|
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;
|
this.inspectionTimeEndShow = false;
|
||||||
},
|
},
|
||||||
addSituation() {
|
addSituation() {
|
||||||
this.form.situationList.push({id: Math.random(), INSPECTION_SITUATION_ID: '', SITUATION: ''})
|
this.form.situations.push({id: Math.random(), inspectionSituationId: '', situation: ''})
|
||||||
},
|
},
|
||||||
removeSituation(item, index) {
|
removeSituation(item, index) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|
@ -647,28 +637,26 @@ export default {
|
||||||
content: '确定删除检查情况吗?',
|
content: '确定删除检查情况吗?',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.cancel) {
|
if (res.cancel) {
|
||||||
this.form.situationList.splice(index, 1)
|
this.form.situations.splice(index, 1)
|
||||||
if (item.INSPECTION_SITUATION_ID) {
|
if (item.inspectionSituationId) {
|
||||||
this.delSituations.push(item.INSPECTION_SITUATION_ID)
|
this.delSituations.push(item.inspectionSituationId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addInspector() {
|
addInspector() {
|
||||||
this.form.inspectorList.push(
|
this.form.inspectionUsers.push(
|
||||||
{
|
{
|
||||||
id: Math.random(),
|
id: Math.random(),
|
||||||
inspectionUserShow: false,
|
inspectionUserShow: false,
|
||||||
INSPECTION_INSPECTOR_ID: '',
|
inspectionInspectorId: '',
|
||||||
INSPECTION_DEPARTMENT_ID: '',
|
inspectionDepartmentId: '',
|
||||||
INSPECTION_DEPARTMENT_NAME: '',
|
inspectionDepartmentName: '',
|
||||||
INSPECTION_USER_ID: '',
|
inspectionUserId: '',
|
||||||
INSPECTION_USER_INDEX: '',
|
inspectionUserName: ''
|
||||||
INSPECTION_USER_NAME: ''
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
console.info(this.form.inspectorList)
|
|
||||||
},
|
},
|
||||||
removeInspector(item, index) {
|
removeInspector(item, index) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|
@ -678,9 +666,9 @@ export default {
|
||||||
content: '确定移除检查人员吗?',
|
content: '确定移除检查人员吗?',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.cancel) {
|
if (res.cancel) {
|
||||||
this.form.inspectorList.splice(index, 1);
|
this.form.inspectionUsers.splice(index, 1);
|
||||||
if (item.INSPECTION_INSPECTOR_ID) {
|
if (item.inspectionInspectorId) {
|
||||||
this.delInspectors.push(item.INSPECTION_INSPECTOR_ID)
|
this.delInspectors.push(item.inspectionInspectorId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -688,13 +676,12 @@ export default {
|
||||||
},
|
},
|
||||||
inspectionUserShowPicker(index) {
|
inspectionUserShowPicker(index) {
|
||||||
if (this.disabled) return;
|
if (this.disabled) return;
|
||||||
this.form.inspectorList[index].inspectionUserShow = true
|
this.form.inspectionUsers[index].inspectionUserShow = true
|
||||||
},
|
},
|
||||||
inspectionUserConfirmPicker(e, index) {
|
inspectionUserConfirmPicker(e, index) {
|
||||||
this.form.inspectorList[index].INSPECTION_USER_ID = e.value[0].USER_ID
|
this.form.inspectionUsers[index].inspectionUserId = e.value[0].USER_ID
|
||||||
this.form.inspectorList[index].INSPECTION_USER_NAME = e.value[0].NAME
|
this.form.inspectionUsers[index].inspectionUserName = e.value[0].NAME
|
||||||
this.form.inspectorList[index].inspectionUserShow = false
|
this.form.inspectionUsers[index].inspectionUserShow = false
|
||||||
this.form.inspectorList[index].USER_SIDE = e.value[0].USER_SIDE
|
|
||||||
},
|
},
|
||||||
async fnSubmit() {
|
async fnSubmit() {
|
||||||
for (const key in this.rules) {
|
for (const key in this.rules) {
|
||||||
|
|
@ -706,8 +693,8 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i = 0; i < this.form.situationList.length; i++) {
|
for (let i = 0; i < this.form.situations.length; i++) {
|
||||||
if (!this.form.situationList[i].SITUATION) {
|
if (!this.form.situations[i].situation) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: `请填写第${i + 1}项检查情况`,
|
title: `请填写第${i + 1}项检查情况`,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|
@ -715,8 +702,8 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i = 0; i < this.form.inspectorList.length; i++) {
|
for (let i = 0; i < this.form.inspectionUsers.length; i++) {
|
||||||
if (!this.form.inspectorList[i].INSPECTION_USER_NAME) {
|
if (!this.form.inspectionUsers[i].inspectionUserName) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: `请选择第${i + 1}项检查人员`,
|
title: `请选择第${i + 1}项检查人员`,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|
@ -724,8 +711,8 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.form.INSPECTION_USER_OPINION) {
|
if (this.form.inspectionUserOpinion) {
|
||||||
if (!this.form.INSPECTION_USER_SIGN_IMG) {
|
if (!this.form.inspectionUserSignImg) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: `您还未签字`,
|
title: `您还未签字`,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|
@ -734,10 +721,10 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let vector = 0
|
let vector = 0
|
||||||
for (let x in this.form.inspectorList) {
|
for (let x in this.form.inspectionUsers) {
|
||||||
vector = 0
|
vector = 0
|
||||||
for (let y in this.form.inspectorList) {
|
for (let y in this.form.inspectionUsers) {
|
||||||
if (this.form.inspectorList[y].INSPECTION_USER_ID === this.form.inspectorList[x].INSPECTION_USER_ID) vector++
|
if (this.form.inspectionUsers[y].inspectionUserId === this.form.inspectionUsers[x].inspectionUserId) vector++
|
||||||
}
|
}
|
||||||
if (vector > 1) {
|
if (vector > 1) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -747,73 +734,89 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let index = this.form.inspectorList.findIndex(item => {
|
let index = this.form.inspectionUsers.findIndex(item => {
|
||||||
return item.INSPECTION_USER_ID === this.userInfo.USER_ID
|
return item.inspectionUserId === this.userInfo.USER_ID
|
||||||
})
|
})
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
this.form.inspectorList.push(
|
this.form.inspectionUsers.push(
|
||||||
{
|
{
|
||||||
INSPECTION_INSPECTOR_ID: '', //检查人员主键
|
inspectionInspectorId: '', //检查人员主键
|
||||||
INSPECTION_DEPARTMENT_ID: this.userInfo.DEPARTMENT_ID, //检查人员部门ID
|
inspectionDepartmentId: this.userInfo.DEPARTMENT_ID, //检查人员部门ID
|
||||||
INSPECTION_DEPARTMENT_NAME: this.userInfo.DEPARTMENT_NAME,
|
inspectionDepartmentName: this.userInfo.DEPARTMENT_NAME,
|
||||||
INSPECTION_USER_ID: this.userInfo.USER_ID, //检查人员ID
|
inspectionUserId: this.userInfo.USER_ID, //检查人员ID
|
||||||
INSPECTION_USER_INDEX: '',
|
inspectionUserName: this.userInfo.NAME
|
||||||
INSPECTION_USER_NAME: this.userInfo.NAME
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
let resData
|
let hiddenIds;
|
||||||
if (this.form.INSPECTION_USER_SIGN_IMG) {
|
if (this.form.inspectionUserSignImg) {
|
||||||
let params = {
|
let params = {
|
||||||
filePath: this.form.INSPECTION_USER_SIGN_IMG,
|
filePath: this.form.inspectionUserSignImg,
|
||||||
name: 'FFILE',
|
name: 'file',
|
||||||
formData: {
|
formData: {
|
||||||
...this.form,
|
inspectionId: this.inspectionId,
|
||||||
INSPECTION_ORIGINATOR_ID: this.userInfo.USER_ID,
|
inspectionSubject: this.form.inspectionSubject,
|
||||||
INSPECTION_STATUS: '1',
|
inspectedDepartmentId: this.form.inspectedDepartmentId,
|
||||||
delInspectors: this.delInspectors.join(','),
|
inspectedSiteuserId: this.form.inspectedSiteuserId,
|
||||||
delSituations: this.delSituations.join(','),
|
inspectionPlace: this.form.inspectionPlace,
|
||||||
delHiddens: this.delHiddens.join(','),
|
inspectionUserOpinion: this.form.inspectionUserOpinion,
|
||||||
delHiddenFiles: this.delHiddenFiles.join(','),
|
inspectionType: this.form.inspectionType,
|
||||||
INSPECTORJSON: JSON.stringify(this.form.inspectorList),
|
inspectionTimeStart: this.form.inspectionTimeStart,
|
||||||
SITUATIONJSON: JSON.stringify(this.form.situationList),
|
inspectionTimeEnd: this.form.inspectionTimeEnd,
|
||||||
HIDDENJSON: JSON.stringify(this.form.hiddenList),
|
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 {
|
} else {
|
||||||
let params = {
|
let params = {
|
||||||
...this.form,
|
inspectionId: this.inspectionId,
|
||||||
INSPECTION_ORIGINATOR_ID: this.userInfo.USER_ID,
|
inspectionSubject: this.form.inspectionSubject,
|
||||||
INSPECTION_STATUS: '1',
|
inspectedDepartmentId: this.form.inspectedDepartmentId,
|
||||||
delInspectors: this.delInspectors.join(','),
|
inspectedSiteuserId: this.form.inspectedSiteuserId,
|
||||||
delSituations: this.delSituations.join(','),
|
inspectionPlace: this.form.inspectionPlace,
|
||||||
delHiddens: this.delHiddens.join(','),
|
inspectionUserOpinion: this.form.inspectionUserOpinion,
|
||||||
delHiddenFiles: this.delHiddenFiles.join(','),
|
inspectionType: this.form.inspectionType,
|
||||||
INSPECTORJSON: JSON.stringify(this.form.inspectorList),
|
inspectionTimeStart: this.form.inspectionTimeStart,
|
||||||
SITUATIONJSON: JSON.stringify(this.form.situationList),
|
inspectionTimeEnd: this.form.inspectionTimeEnd,
|
||||||
HIDDENJSON: JSON.stringify(this.form.hiddenList),
|
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 = []
|
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++) {
|
for (let j = 0; j < this.form.hiddenList[i].hiddenImgs.length; j++) {
|
||||||
let imgFiles = []
|
let imgFiles = []
|
||||||
imgFiles.push({
|
imgFiles.push({
|
||||||
uri: this.form.hiddenList[i].hiddenImgs[j].url,
|
uri: this.form.hiddenList[i].hiddenImgs[j].url,
|
||||||
FFILE: 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++) {
|
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(() => {
|
Promise.all(PromiseArr).then(() => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: this.INSPECTION_ID ? '修改成功' : '添加成功',
|
title: this.inspectionId ? '修改成功' : '添加成功',
|
||||||
})
|
})
|
||||||
if (this.vector !== 'list') {
|
if (this.vector !== 'list') {
|
||||||
uni.$u.route({
|
uni.$u.route({
|
||||||
|
|
@ -868,13 +871,13 @@ export default {
|
||||||
addHidden() {
|
addHidden() {
|
||||||
this.clearHiddenForm()
|
this.clearHiddenForm()
|
||||||
this.creatorList = [[{NAME: this.userInfo.NAME, USER_ID: this.userInfo.USER_ID}]]
|
this.creatorList = [[{NAME: this.userInfo.NAME, USER_ID: this.userInfo.USER_ID}]]
|
||||||
this.form.inspectorList.forEach(item => {
|
this.form.inspectionUsers.forEach(item => {
|
||||||
let index = this.creatorList[0].findIndex(items => items.USER_ID === item.INSPECTION_USER_ID)
|
let index = this.creatorList[0].findIndex(items => items.USER_ID === item.inspectionUserId)
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
this.creatorList[0].push({
|
this.creatorList[0].push({
|
||||||
USER_ID: item.INSPECTION_USER_ID,
|
USER_ID: item.inspectionUserId,
|
||||||
NAME: item.INSPECTION_USER_NAME,
|
NAME: item.inspectionUserName,
|
||||||
DEPARTMENT_ID: item.INSPECTION_DEPARTMENT_ID
|
DEPARTMENT_ID: item.inspectionDepartmentId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -884,11 +887,11 @@ export default {
|
||||||
showHidden(item) {
|
showHidden(item) {
|
||||||
this.clearHiddenForm()
|
this.clearHiddenForm()
|
||||||
this.creatorList = [[]]
|
this.creatorList = [[]]
|
||||||
this.form.inspectorList.forEach(item => {
|
this.form.inspectionUsers.forEach(item => {
|
||||||
this.creatorList[0].push({
|
this.creatorList[0].push({
|
||||||
USER_ID: item.INSPECTION_USER_ID,
|
USER_ID: item.inspectionUserId,
|
||||||
NAME: item.INSPECTION_USER_NAME,
|
NAME: item.inspectionUserName,
|
||||||
DEPARTMENT_ID: item.INSPECTION_DEPARTMENT_ID
|
DEPARTMENT_ID: item.inspectionDepartmentId
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.hiddenForm = item
|
this.hiddenForm = item
|
||||||
|
|
@ -898,23 +901,23 @@ export default {
|
||||||
clearHiddenForm() {
|
clearHiddenForm() {
|
||||||
this.hiddenForm = {
|
this.hiddenForm = {
|
||||||
id: Math.random(),
|
id: Math.random(),
|
||||||
ISRELEVANT: '2',//隐患类型
|
isrelevant: '2',//隐患类型
|
||||||
hiddenImgs: [],
|
hiddenImgs: [],
|
||||||
hiddenVideos: [],
|
hiddenVideos: [],
|
||||||
HIDDENDESCR: '',
|
hiddendescr: '',
|
||||||
HIDDENPART_NAME: '',
|
hiddenPartStr: '',
|
||||||
HIDDENPART: '',
|
hiddenPart: '',
|
||||||
HIDDENLEVEL_NAME: '',
|
hiddenlevelName: '',
|
||||||
HIDDENLEVEL: '',
|
hiddenlevel: '',
|
||||||
HIDDENTYPE_NAME: '',
|
hiddenTypeName: '',
|
||||||
HIDDENTYPE: '',
|
hiddenType: '',
|
||||||
DISCOVERYTIME: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
|
discoverytime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
|
||||||
LONGITUDE: '',
|
longitude: '',
|
||||||
LATITUDE: '',
|
latitude: '',
|
||||||
CREATOR_NAME: '',
|
CREATOR_NAME: '',
|
||||||
CREATOR: '',
|
CREATOR: '',
|
||||||
POSITIONDESC: '',
|
positiondesc: '',
|
||||||
SOURCE: '4'
|
source: '4'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
removeHidden(item, index) {
|
removeHidden(item, index) {
|
||||||
|
|
@ -926,8 +929,8 @@ export default {
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.cancel) {
|
if (res.cancel) {
|
||||||
this.form.hiddenList.splice(index, 1);
|
this.form.hiddenList.splice(index, 1);
|
||||||
if (item.HIDDEN_ID) {
|
if (item.hiddenId) {
|
||||||
this.delHiddens.push(item.HIDDEN_ID)
|
this.delHiddens.push(item.hiddenId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -949,7 +952,7 @@ export default {
|
||||||
this.hiddenForm.hiddenVideos = this.hiddenForm.hiddenVideos.filter(item => item.url !== event.file.url)
|
this.hiddenForm.hiddenVideos = this.hiddenForm.hiddenVideos.filter(item => item.url !== event.file.url)
|
||||||
},
|
},
|
||||||
discoveryTimeConfirm(e) {
|
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;
|
this.discoveryTimeShow = false;
|
||||||
},
|
},
|
||||||
showMapModal() {
|
showMapModal() {
|
||||||
|
|
@ -958,8 +961,8 @@ export default {
|
||||||
url: '/pages/map/map',
|
url: '/pages/map/map',
|
||||||
events: {
|
events: {
|
||||||
acceptDataFromOpenedPage: function (e) {
|
acceptDataFromOpenedPage: function (e) {
|
||||||
_this.hiddenForm.LONGITUDE = e.data.longitue;
|
_this.hiddenForm.longitude = e.data.longitue;
|
||||||
_this.hiddenForm.LATITUDE = e.data.latitude;
|
_this.hiddenForm.latitude = e.data.latitude;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
|
@ -1003,7 +1006,7 @@ export default {
|
||||||
this.videoUrl = videoUrl;
|
this.videoUrl = videoUrl;
|
||||||
},
|
},
|
||||||
signConfirm({path}) {
|
signConfirm({path}) {
|
||||||
this.form.INSPECTION_USER_SIGN_IMG = path
|
this.form.inspectionUserSignImg = path
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
prefixIcon="search"
|
prefixIcon="search"
|
||||||
placeholder="请输入关键字"
|
placeholder="请输入关键字"
|
||||||
border="surround"
|
border="surround"
|
||||||
v-model="keyword"
|
v-model="companyName"
|
||||||
clearable
|
clearable
|
||||||
shape="circle"
|
shape="circle"
|
||||||
></u--input>
|
></u--input>
|
||||||
|
|
@ -20,47 +20,47 @@
|
||||||
<u-list-item v-for="(item, index) in list" :key="index">
|
<u-list-item v-for="(item, index) in list" :key="index">
|
||||||
<view>
|
<view>
|
||||||
<view class="flex-between main-title">
|
<view class="flex-between main-title">
|
||||||
<text>被检查单位:{{ item.INSPECTED_CORPINFO_ID_NAME }}</text>
|
<text>被检查单位:{{ item.inspectedCorpName }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<text>检查发起人:{{ item.INSPECTION_ORIGINATOR_NAME }}</text>
|
<text>检查发起人:{{ item.inspectionOriginatorUserName }}</text>
|
||||||
<text>检查类型:{{ item.INSPECTION_TYPE_NAME }}</text>
|
<text>检查类型:{{ item.inspectionTypeName }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<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>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<text>
|
<text>
|
||||||
状态:
|
状态:
|
||||||
<template v-if="item.INSPECTION_STATUS == '0'">待检查人核实</template>
|
<template v-if="item.inspectionStatus === '0'">待检查人核实</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '1'">检查人核实中</template>
|
<template v-else-if="item.inspectionStatus === '1'">检查人核实中</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '2'">待被检查人确认</template>
|
<template v-else-if="item.inspectionStatus === '2'">待被检查人确认</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '3'">待指派</template>
|
<template v-else-if="item.inspectionStatus === '3'">待指派</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '4'">指派中</template>
|
<template v-else-if="item.inspectionStatus === '4'">指派中</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '5'">指派完成</template>
|
<template v-else-if="item.inspectionStatus === '5'">指派完成</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '6'">检查待验收</template>
|
<template v-else-if="item.inspectionStatus === '6'">检查待验收</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '7'">检查已验收</template>
|
<template v-else-if="item.inspectionStatus === '7'">检查已验收</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '8'">已归档</template>
|
<template v-else-if="item.inspectionStatus === '8'">已归档</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '-1'">检查人核实打回</template>
|
<template v-else-if="item.inspectionStatus === '-1'">检查人核实打回</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '-2'">被检查人申辩</template>
|
<template v-else-if="item.inspectionStatus === '-2'">被检查人申辩</template>
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="mt-10 see_btn">
|
<view class="mt-10 see_btn">
|
||||||
<view class="wrap">
|
<view class="wrap">
|
||||||
<u-button type="primary" text="查看" size="mini"
|
<u-button type="primary" text="查看" size="mini"
|
||||||
@click="fnNavigatorDetail(item.INSPECTION_ID, 'view')"></u-button>
|
@click="fnNavigatorDetail(item.inspectionId, 'view')"></u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="wrap ml-10">
|
<view class="wrap ml-10">
|
||||||
<u-button type="primary" text="流程图" size="mini"
|
<u-button type="primary" text="流程图" size="mini"
|
||||||
@click="showFlowChart(item.INSPECTION_ID)"></u-button>
|
@click="showFlowChart(item.inspectionId)"></u-button>
|
||||||
</view>
|
</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"
|
<u-button type="primary" text="编辑" size="mini"
|
||||||
@click="fnNavigatorDetail(item.INSPECTION_ID,'edit')"></u-button>
|
@click="fnNavigatorDetail(item.inspectionId,'edit')"></u-button>
|
||||||
</view>
|
</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"
|
<u-button type="primary" text="申辩处理" size="mini"
|
||||||
@click="fnNavigatorPlead(item.INSPECTION_ID)"></u-button>
|
@click="fnNavigatorPlead(item)"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getSafetyenvironmentalList} from "../../../api";
|
import {getSafetyenvironmentalList} from "@/api";
|
||||||
import FabButton from '@/components/fab_button/index.vue'
|
import FabButton from '@/components/fab_button/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -97,10 +97,10 @@ export default {
|
||||||
{id: '-2', name: '被检查人申辩'}
|
{id: '-2', name: '被检查人申辩'}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
keyword: '',
|
companyName: '',
|
||||||
INSPECTION_STATUS: '',
|
inspectionStatus: '',
|
||||||
pageSize: 10,
|
limit: 10,
|
||||||
currentPage: 1,
|
curPage: 1,
|
||||||
totalPage: 0,
|
totalPage: 0,
|
||||||
list: [],
|
list: [],
|
||||||
}
|
}
|
||||||
|
|
@ -115,22 +115,19 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getData() {
|
async getData() {
|
||||||
console.info(this.userInfo)
|
let { page } = await getSafetyenvironmentalList({
|
||||||
let resData = await getSafetyenvironmentalList({
|
companyName: this.companyName,
|
||||||
loginUserId: this.userInfo.USER_ID,
|
inspectionStatus: this.inspectionStatus,
|
||||||
supDeparIds: this.userInfo.supDeparIds,
|
limit: this.limit,
|
||||||
roleLevel: this.userInfo.roleLevel,
|
curPage: this.curPage,
|
||||||
KEYWORDS: this.keyword,
|
pageType: 'jg-list-app',
|
||||||
INSPECTION_STATUS: this.INSPECTION_STATUS,
|
|
||||||
showCount: this.pageSize,
|
|
||||||
currentPage: this.currentPage,
|
|
||||||
});
|
});
|
||||||
this.list = [...this.list, ...resData.varList];
|
this.list = [...this.list, ...page.list];
|
||||||
this.totalPage = resData.page.totalPage;
|
this.totalPage = page.totalPage;
|
||||||
},
|
},
|
||||||
resetList() {
|
resetList() {
|
||||||
this.pageSize = 10
|
this.limit = 10
|
||||||
this.currentPage = 1
|
this.curPage = 1
|
||||||
this.list = []
|
this.list = []
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
|
|
@ -138,30 +135,36 @@ export default {
|
||||||
this.show = true;
|
this.show = true;
|
||||||
},
|
},
|
||||||
confirmPicker(e) {
|
confirmPicker(e) {
|
||||||
this.INSPECTION_STATUS = e.value[0].id
|
this.inspectionStatus = e.value[0].id
|
||||||
this.show = false;
|
this.show = false;
|
||||||
this.resetList()
|
this.resetList()
|
||||||
},
|
},
|
||||||
fnNavigatorDetail(INSPECTION_ID, type) {
|
fnNavigatorDetail(inspectionId, type) {
|
||||||
uni.$u.route({
|
uni.$u.route({
|
||||||
url: '/pages/safety-environmental-inspection/initiate/detail',
|
url: '/pages/safety-environmental-inspection/initiate/detail',
|
||||||
params: {
|
params: {
|
||||||
INSPECTION_ID,
|
inspectionId,
|
||||||
type
|
type
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fnNavigatorPlead(INSPECTION_ID) {
|
fnNavigatorPlead(info) {
|
||||||
uni.$u.route({
|
uni.$u.route({
|
||||||
url: '/pages/safety-environmental-inspection/initiate/plead',
|
url: '/pages/safety-environmental-inspection/initiate/plead',
|
||||||
params: {
|
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() {
|
scrolltolower() {
|
||||||
this.currentPage++;
|
this.curPage++;
|
||||||
if (this.totalPage >= this.currentPage) this.getData();
|
if (this.totalPage >= this.curPage) this.getData();
|
||||||
},
|
},
|
||||||
showFlowChart(id) {
|
showFlowChart(id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
|
||||||
|
|
@ -5,23 +5,23 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">申辩人:</view>
|
<view slot="title" class="title">申辩人:</view>
|
||||||
<view slot="label" class="mt-10">
|
<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"
|
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>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">申辩时间:</view>
|
<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>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title">申辩说明:</view>
|
<view slot="title" class="title">申辩说明:</view>
|
||||||
<view slot="value">{{ form.INSPECTED_EXPLAIN }}</view>
|
<view slot="value">{{ form.inspectedExplain }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="form.INSPECTED_EXPLAIN_FILENAME">
|
<u-cell v-if="form.inspectedExplainFilename">
|
||||||
<view slot="title" class="title">申辩附件:</view>
|
<view slot="title" class="title">申辩附件:</view>
|
||||||
<view slot="label" class="mt-10 flex-between">
|
<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">
|
<view class="ml-10">
|
||||||
<u-button type="primary" text="下载" size="mini" @click="downloadAppendix"></u-button>
|
<u-button type="primary" text="下载" size="mini" @click="downloadAppendix"></u-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -30,13 +30,13 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">申辩是否成立:</view>
|
<view slot="title" class="title required">申辩是否成立:</view>
|
||||||
<view slot="value">
|
<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="-2"></u-radio>
|
||||||
<u-radio label="否" name="3" class="ml-10"></u-radio>
|
<u-radio label="否" name="3" class="ml-10"></u-radio>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<template v-if="form.INSPECTION_STATUS === '-2'">
|
<template v-if="form.inspectionStatus === '-2'">
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title flex-between">
|
<view slot="title" class="title flex-between">
|
||||||
确认人签字:
|
确认人签字:
|
||||||
|
|
@ -49,20 +49,20 @@
|
||||||
<view slot="label" class="mt-10">
|
<view slot="label" class="mt-10">
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell v-if="form.SIGN_IMG">
|
<u-cell v-if="form.inspectedSiteUserSignImg">
|
||||||
<view slot="label" class="mt-10 flex-1" v-show="form.SIGN_IMG">
|
<view slot="label" class="mt-10 flex-1" v-show="form.inspectedSiteUserSignImg">
|
||||||
<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"
|
width="100%" height="80px" mode="scaleToFill"
|
||||||
@click="previewImage(form.SIGN_IMG)"></u--image>
|
@click="previewImage(form.inspectedSiteUserSignImg)"></u--image>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="form.INSPECTION_STATUS === '3'">
|
<template v-if="form.inspectionStatus === '3'">
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">不成立理由:</view>
|
<view slot="title" class="title required">不成立理由:</view>
|
||||||
<view slot="label" class="mt-10">
|
<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>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
|
|
@ -78,9 +78,9 @@
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<view>
|
<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"
|
width="100%" height="80px" mode="scaleToFill"
|
||||||
@click="previewImage(form.SIGN_IMG)"></u--image>
|
@click="previewImage(form.inspectedSiteUserSignImg)"></u--image>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<u-cell :border="false">
|
<u-cell :border="false">
|
||||||
|
|
@ -95,7 +95,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import sign from "../../../components/sign/sign";
|
import sign from "../../../components/sign/sign";
|
||||||
import {setSafetyenvironmentalGoEdit, setSafetyenvironmentalExplain} from "../../../api";
|
import { setSafetyenvironmentalExplain } from "@/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -103,14 +103,19 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
INSPECTION_ID: '',
|
inspectionId: '',
|
||||||
form: {},
|
form: {},
|
||||||
signShow: false
|
signShow: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(event) {
|
onLoad(event) {
|
||||||
this.INSPECTION_ID = event.INSPECTION_ID
|
this.inspectionId = event.inspectionId;
|
||||||
this.getData()
|
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: {
|
computed: {
|
||||||
userInfo() {
|
userInfo() {
|
||||||
|
|
@ -118,13 +123,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getData() {
|
|
||||||
let params = {
|
|
||||||
INSPECTION_ID: this.INSPECTION_ID,
|
|
||||||
}
|
|
||||||
let resData = await setSafetyenvironmentalGoEdit(params)
|
|
||||||
this.form = resData.pd
|
|
||||||
},
|
|
||||||
previewImage(current) {
|
previewImage(current) {
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: [current],
|
urls: [current],
|
||||||
|
|
@ -133,7 +131,7 @@ export default {
|
||||||
},
|
},
|
||||||
downloadAppendix() {
|
downloadAppendix() {
|
||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: this.$store.state.filePath + this.form.INSPECTED_EXPLAIN_FILEPATH,
|
url: this.$store.state.filePath + this.form.inspectedExplainFilepath,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
uni.openDocument({
|
uni.openDocument({
|
||||||
filePath: res.tempFilePath,
|
filePath: res.tempFilePath,
|
||||||
|
|
@ -142,25 +140,25 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
signConfirm({path}) {
|
signConfirm({path}) {
|
||||||
this.form.SIGN_IMG = path
|
this.form.inspectedSiteUserSignImg = path
|
||||||
},
|
},
|
||||||
async fnSubmit() {
|
async fnSubmit() {
|
||||||
if (!this.form.INSPECTION_STATUS) {
|
if (!this.form.inspectionStatus) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择申辩是否成立',
|
title: '请选择申辩是否成立',
|
||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.form.INSPECTION_STATUS === '3') {
|
if (this.form.inspectionStatus === '3') {
|
||||||
if (!this.form.INSPECTED_EXPLAIN_REFUSE) {
|
if (!this.form.inspectedExplainRefuse) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请填写不成立理由',
|
title: '请填写不成立理由',
|
||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!this.form.SIGN_IMG) {
|
if (!this.form.inspectedSiteUserSignImg) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请签字',
|
title: '请签字',
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -170,7 +168,7 @@ export default {
|
||||||
this.form.loginUserId = this.userInfo.USER_ID;
|
this.form.loginUserId = this.userInfo.USER_ID;
|
||||||
this.form.loginUserName = this.userInfo.USERNAME;
|
this.form.loginUserName = this.userInfo.USERNAME;
|
||||||
await setSafetyenvironmentalExplain({
|
await setSafetyenvironmentalExplain({
|
||||||
filePath: this.form.SIGN_IMG,
|
filePath: this.form.inspectedSiteUserSignImg,
|
||||||
name: 'FFILE',
|
name: 'FFILE',
|
||||||
formData: this.form
|
formData: this.form
|
||||||
})
|
})
|
||||||
|
|
@ -180,7 +178,7 @@ export default {
|
||||||
uni.$u.route({
|
uni.$u.route({
|
||||||
type: 'navigateBack'
|
type: 'navigateBack'
|
||||||
})
|
})
|
||||||
} else if (this.form.INSPECTION_STATUS === '-2') {
|
} else if (this.form.inspectionStatus === '-2') {
|
||||||
uni.$u.route({
|
uni.$u.route({
|
||||||
url: '/pages/safety-environmental-inspection/initiate/detail',
|
url: '/pages/safety-environmental-inspection/initiate/detail',
|
||||||
params: {
|
params: {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getHotWorkGoEdit, setSafetyenvironmentalFlow} from "../../../api";
|
import { setSafetyenvironmentalFlow } from "@/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
|
||||||
|
|
@ -30,17 +30,17 @@
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<text>
|
<text>
|
||||||
状态:
|
状态:
|
||||||
<template v-if="item.INSPECTION_STATUS == '0'">待检查人核实</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 === '1'">检查人核实中</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '2'">待被检查人确认</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 === '3'">待指派</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '4'">指派中</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 === '5'">指派完成</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '6'">检查待验收</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 === '7'">检查已验收</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '8'">已归档</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 === '-1'">检查人核实打回</template>
|
||||||
<template v-else-if="item.INSPECTION_STATUS == '-2'">被检查人申辩</template>
|
<template v-else-if="item.INSPECTION_STATUS === '-2'">被检查人申辩</template>
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-end mt-10">
|
<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>
|
@click="fnNavigatorDetail(item.INSPECTION_ID,item.INSPECTION_USER_ID,item.INSPECTION_INSPECTOR_ID,'view')"></u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="see_btn ml-10"
|
<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"
|
<u-button type="primary" text="核实" size="mini"
|
||||||
@click="fnNavigatorDetail(item.INSPECTION_ID,item.INSPECTION_USER_ID,item.INSPECTION_INSPECTOR_ID,'verify')"></u-button>
|
@click="fnNavigatorDetail(item.INSPECTION_ID,item.INSPECTION_USER_ID,item.INSPECTION_INSPECTOR_ID,'verify')"></u-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getSafetyenvironmentalinspectorList} from "../../../api";
|
import {getSafetyenvironmentalinspectorList} from "@/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -86,7 +86,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
validStr(str) {
|
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 true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue