| | |
| | | <el-input v-model="listQuery.form.check_man" style="width:202px" placeholder="请输入内容"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="隐患单位"> |
| | | <el-select v-model="listQuery.form.ht_community" placeholder="请选择" @change="changeYHDW"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-input v-model="listQuery.form.ht_branch" style="width:202px" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="隐患类别"> |
| | | <el-select v-model="listQuery.form.ht_typesub" placeholder="请选择"> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="是否关联"> |
| | | <el-select v-model="listQuery.form.number" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="是否关联"> |
| | | <el-select v-model="listQuery.form.DTRisk_bankId" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in reList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="检查时间"> |
| | | <el-col :span="11"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.check_dateStart" style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker> |
| | | </el-col> |
| | | <el-col style="text-align:center" :span="2">-</el-col> |
| | | <el-col :span="11"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.check_dateEnd" style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker> |
| | | </el-col> |
| | | </el-form-item> |
| | | <el-form-item label="限改时间"> |
| | | <el-col :span="11"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.alter_timeStart" value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker> |
| | | </el-col> |
| | | <el-col style="text-align:center" :span="2">-</el-col> |
| | | <el-col :span="11"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.alter_timeEnd" value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker> |
| | | </el-col> |
| | | </el-form-item> |
| | | <el-form-item style="text-align:center;padding:0 50px"> |
| | |
| | | </el-form> |
| | | <el-row class="title-center"> |
| | | <el-col :span="7"> |
| | | <el-radio-group v-model="radio1"> |
| | | <el-radio-button label="未整改"></el-radio-button> |
| | | <el-radio-button label="整改完成"></el-radio-button> |
| | | <el-radio-group v-model="listQuery.form.alter_status"> |
| | | <el-radio-button v-for="item in statusList" :label="item.value"></el-radio-button> |
| | | </el-radio-group> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | <el-table :data="tableData" style="width: 100%"> |
| | | <el-table-column type="selection" width="55" align="center"></el-table-column> |
| | | <el-table-column prop="number" label="编号" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="check_branch" label="隐患单位" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="ht_branch" label="隐患单位" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="check_man" label="检查人" align="center" width="120"></el-table-column> |
| | | <el-table-column label="隐患项目" align="center"> |
| | | <el-table-column prop="check_date" label="检查时间" width="120" align="center"></el-table-column> |
| | |
| | | </template> |
| | | <script> |
| | | import {getPageList} from "@/api/sgyhpczl/hiddenDangerManagement"; |
| | | import {initJCBM ,initYHLX, initBC ,initJCLB ,initYHBM ,initYHJB} from "@/api/sgyhpczl/initSelect"; |
| | | import {initJCBM ,initYHLX, initBC ,initJCLB ,initYHBM ,initYHJB,initReformStatus} from "@/api/sgyhpczl/initSelect"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | statusList:[], |
| | | options: [], |
| | | form:{}, |
| | | value1:"", |
| | | radio1:"未整改", |
| | | |
| | | reList:[{label:"未关联",value:0}], |
| | | JCDWList:[{label:"众泰",value:0},{label:"上级单位",value:1}], |
| | | JCBMList:[], |
| | | YHLXList:[], |
| | |
| | | listQuery:{ |
| | | page:1, |
| | | limit:10, |
| | | form:{}, |
| | | form:{ |
| | | alter_status:'未整改' |
| | | }, |
| | | }, |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | |
| | | this.initYHJB() |
| | | this.initBC() |
| | | this.initJCLB() |
| | | this.initReformStatus() |
| | | }, |
| | | methods:{ |
| | | |
| | | initReformStatus(){ |
| | | initReformStatus().then(res=>{ |
| | | if (res.data.ok==1){ |
| | | this.statusList=res.data.data |
| | | } else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | | }) |
| | | }, |
| | | changeYHDW(val){ |
| | | initYHBM().then(res=>{ |
| | | if (res.data.ok==1){ |
| | |
| | | } |
| | | }) |
| | | }, |
| | | checkTime(){ |
| | | if(this.listQuery.form.check_dateStart!=null && this.listQuery.form.check_dateStart!=''){ |
| | | if(this.listQuery.form.check_dateEnd!=null && this.listQuery.form.check_dateEnd!=''){ |
| | | }else { |
| | | this.$message({type:'error', message:"请选择检查结束时间", duration:3000}) |
| | | return |
| | | } |
| | | |
| | | } |
| | | if(this.listQuery.form.check_dateEnd!=null && this.listQuery.form.check_dateEnd!=''){ |
| | | if(this.listQuery.form.check_dateStart!=null && this.listQuery.form.check_dateStart!=''){ |
| | | }else { |
| | | this.$message({type:'error', message:"请选择检查开始时间", duration:3000}) |
| | | return |
| | | } |
| | | } |
| | | if(this.listQuery.form.alter_timeStart!=null && this.listQuery.form.alter_timeStart!=''){ |
| | | if(this.listQuery.form.alter_timeEnd!=null && this.listQuery.form.alter_timeEnd!=''){ |
| | | }else { |
| | | this.$message({type:'error', message:"请选择限改结束时间", duration:3000}) |
| | | return |
| | | } |
| | | |
| | | } |
| | | if(this.listQuery.form.alter_timeEnd!=null && this.listQuery.form.alter_timeEnd!=''){ |
| | | if(this.listQuery.form.alter_timeStart!=null && this.listQuery.form.alter_timeStart!=''){ |
| | | }else { |
| | | this.$message({type:'error', message:"请选择改开始时间", duration:3000}) |
| | | return |
| | | } |
| | | } |
| | | }, |
| | | getPageList(){ |
| | | this.listQuery.page=1 |
| | | this.checkTime() |
| | | getPageList(this.listQuery).then(res=>{ |
| | | if (res.data.ok==1) { |
| | | this.tableData = res.data.data |
| | | // this.recordTotal=res.data.data.length |
| | | this.tableData = res.data.data.items |
| | | this.recordTotal=res.data.data.total |
| | | }else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | |
| | | this.getPageListForPagination(); |
| | | }, |
| | | getPageListForPagination(){ |
| | | this.checkTime() |
| | | getPageList(this.listQuery).then(res=>{ |
| | | if (res.data.ok==1) { |
| | | this.tableData = res.data.data |
| | | this.tableData = res.data.data.items |
| | | this.recordTotal=res.data.data.total |
| | | }else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |