Commit 6302e726 authored by xinzhedeai's avatar xinzhedeai

隐患审核详情api

parent 2f0a7883
...@@ -44,7 +44,7 @@ window.addEventListener("load", function() { ...@@ -44,7 +44,7 @@ window.addEventListener("load", function() {
}); });
}, },
nav(item){ nav(item){
// location.href='./yh-list.html' // location.h ref='./yh-list.html'
}, },
add(){ add(){
location.href='./yh-list-detail.html?companyId='+getParameter('companyId')+'&type=add' location.href='./yh-list-detail.html?companyId='+getParameter('companyId')+'&type=add'
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewprot-fit:cover">
<title>隐患审核-详情</title>
<script type="text/javascript" src="../js/includeHead.js"></script>
<style>
html,
body {
background-color: #fff;
}
.content {}
.pd-01rem {
padding-bottom: 0.1rem;
}
/* 表单相关 */
.formValue {
float: right;
}
.formSubmitBtnWrapper {
display: flex;
justify-content: center;
margin-top: 0.2rem;
margin-bottom: 0.2rem;
}
.formSubmitBtnWrapper .van-button {
width: 4rem;
}
/**
* 框架样式覆盖修改
*/
.van-cell__value {
overflow: unset;
}
.van-cell:after {
border-bottom: none;
}
.van-radio-group--horizontal {
float: right;
}
.disable-van-cell {
background-color: #f3f3f3;
}
.disable-van-cell .van-cell__value--alone {
color: #c8c9cc;
cursor: not-allowed;
}
</style>
</head>
<body>
<div id="app">
<div class="content" v-cloak :class="{'disable-van-cell': !editAble}">
<van-cell-group>
<van-field v-model="form.enterpriseName" :disabled="!editAble" label="企业名称" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.hdInspectExpert" :disabled="!editAble" label="检查专家" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.hdName" :disabled="!editAble" label="发现问题" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-cell>隐患照片:
<div style="width: 2.5rem;">
<van-image width="100" height="100"
:src="'data:image/jpg;base64,' + form.hdPic" />
</div>
</van-cell>
</van-cell-group>
<van-cell-group>
<van-field v-model="form.enterpriseSubmitsTheRectificationDate" label="企业提交整改日期" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-cell>整改后照片:
<div style="width: 2.5rem;">
<van-image width="100" height="100"
:src="'data:image/jpg;base64,' + form.hdRectificationPic" />
</div>
</van-cell>
</van-cell-group>
<van-cell-group>
<van-field v-model="form.hdRectificationDate" label="审核整改期限" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.verifyStatusString" label="审核状态" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.hdAcceptancePerson" label="审核人员" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.refuseReason" type="textarea" label="整改未过审原因" autosize
placeholder="" />
</van-cell-group>
</div>
</div>
</body>
</html>
\ No newline at end of file
/**
* author: dabao
*/
var VUE = null
window.addEventListener("load", function() {
VUE = new Vue({
el: '#app',
data() {
return {
form: {
enterpriseSubmitsTheRectificationDate: '',//2024-03-08 00:00:00',
// 检查人员
hdInspectExpert: '',//'发发发',
// 发现问题
hdName: '',//'测试问题',
// 检查依据
basis: '',//'测试依据',
// 隐患整改建议
// 隐患整改日期
hdRectificationDate: '',//'2024-03-08',
// 隐患整改图片
hdRectificationPic: '',
hdPic: '',
// 审核人
hdAcceptancePerson: "刘德华",
recEvaluation: '24年02月22日 审核未通过;24年02月22日 审核未通过',
verifyStatusString: '', // 审核状态死啊
},
// 企业id
companyId: localStorage.getItem('companyId'),
editAble: true,
// 安全类别列表数据
secType: [{
name: '安全资料类',
}, {
name: '现场检查类',
}],
showPopup4secType: false,
// 安全检查类别列表数据
secCheckTypeReplace: [],
showPopup4secCheckTypeReplace: false,
// 安全检查内容列表数据
secCheckContent: [],
showPopup4secCheckContent: false,
// 安全发现问题列表数据
secCheckDiscover: [],
showPopup4secCheckDiscover: false,
// 检查日期的模态框
hdInspectDateModel: '', // 时间的临时model值
showPopup4hdInspectDate: false,
// 整改日期模态框
hdRectificationDateModel: '',
showPopup4hdRectificationDate: false,
fileList: [],
// columns4findQuestion: ['杭州', '宁波', '温州', '绍兴', '湖州', '嘉兴', '金华', '衢州'],
// findQuestion: '',
}
},
mounted() {
this.detail()
},
methods: {
detail(){
var hdId = getParameter('hdId')
http.get('/api/hiddenDangerToVerify', {
page: 0, // 每次请求增加下一页
size: 1,
county: localStorage.getItem('appCounty'),
hd_id: hdId,
// enName: this.companyName,
sort: 'verify_status,asc',
}).then((res) => {
this.loading = false; // 加载状态结束
this.form = res.content[0]
})
},
},
});
});
\ No newline at end of file
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<van-tag type="warning" size="mini">{{item.verifyStatusString}}</van-tag> <van-tag type="warning" size="mini">{{item.verifyStatusString}}</van-tag>
</p> </p>
<div class="list-function-btn-wrapper pd-01rem"> <div class="list-function-btn-wrapper pd-01rem">
<van-button type="info" size="mini">查看</van-button> <van-button type="info" size="mini" @click="detail(item)">查看</van-button>
<van-button type="primary" size="mini">通过</van-button> <van-button type="primary" size="mini">通过</van-button>
<van-button type="danger" size="mini">拒绝</van-button> <van-button type="danger" size="mini">拒绝</van-button>
</div> </div>
......
...@@ -68,18 +68,10 @@ window.addEventListener("load", function() { ...@@ -68,18 +68,10 @@ window.addEventListener("load", function() {
nav(item) { nav(item) {
// location.href='./yh-list.html' // location.href='./yh-list.html'
}, },
add() {
location.href = './yh-list-detail.html?companyId=' + getParameter('companyId') +
'&type=add'
},
detail(item) { detail(item) {
location.href = './yh-list-detail.html?companyId=' + getParameter('companyId') + location.href = './yh-verify-detail.html?companyId=' + getParameter('companyId') +
'&hdId=' + item.hdId + '&type=detail' '&hdId=' + item.hdId + '&type=detail'
}, },
edit(item) {
location.href = './yh-list-detail.html?companyId=' + getParameter('companyId') +
'&hdId=' + item.hdId + '&type=edit'
},
getList() { getList() {
http.get('/api/hiddenDangerToVerify', { http.get('/api/hiddenDangerToVerify', {
page: this.page++, // 每次请求增加下一页 page: this.page++, // 每次请求增加下一页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment