Your Name
2022-09-29 6f954f70f54e492157b97db314eaaaeb12192580
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-2d9f","chunk-4908"],{"41Be":function(e,t,a){"use strict";a.d(t,"a",function(){return l});var r=a("rerW"),i=a.n(r),n=a("Q2AE");function l(e,t){if(1==e||2==e)return!0;if(!t)return!1;var a=n.a.getters&&n.a.getters.roles;if(a&&a.length>0){var r=!0,l=!1,o=void 0;try{for(var s,c=i()(a);!(r=(s=c.next()).done);r=!0){var d=s.value.btnAccess;if(!d)return!1;var u=d.split(",");if(-1!=u.indexOf("all"))return!0;if(-1!=u.indexOf(t))return!0}}catch(e){l=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(l)throw o}}return!1}return!1}},ChyE:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),l=a.n(n),o=a("41Be"),s=a("PcP2"),c=a("r08/"),d=a("L9Gd"),u=a("WgQi"),f={name:"rectify",components:{reportView:c.default,rectifyDialog:d.default},data:function(){return{recordTotal:0,tableKey:0,tableData:[],listLoading:!1,departmentList:[],rectifyTypeList:[{id:1,name:"即查即改"},{id:2,name:"限期整改"}],dangerStatusList:[{id:0,name:"整改中"},{id:1,name:"待验收"},{id:2,name:"延期整改"},{id:4,name:"超期未整改"},{id:9,name:"已验收"}],filter:{pageIndex:1,pageSize:10,rectifyType:null,rectifyDepId:null}}},created:function(){this.hiddenDangerList(),this.getDepartmentData()},methods:{queryHandle:function(){this.filter.pageIndex=1,this.hiddenDangerList()},viewHandle:function(e,t){this.$refs.rectifyDialog.showDialog(e,t)},rectifyHandle:function(e){this.$refs.rectifyDialog.show(e)},handleSizeChange:function(e){this.filter.pageSize=e,this.filter.pageIndex=1,this.hiddenDangerList()},handleCurrentChange:function(e){this.filter.pageIndex=e,this.hiddenDangerList()},getBtnPermission:function(e){return Object(o.a)(this.userType,e)},downloadHandle:function(e){window.open(e,"_blank")},getDepartmentData:function(){var e=this;return l()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.e)({pageSize:1e3,pageIndex:1});case 2:"200"===(a=t.sent).data.code?e.departmentList=a.data.result.result:(e.$message({message:a.data.message,type:"warning"}),"50001"===a.data.code&&(e.riskSourceData=[]));case 4:case"end":return t.stop()}},t,e)}))()},hiddenDangerList:function(){var e=this;this.listLoading=!0,Object(s.f)(this.filter).then(function(t){"200"===t.data.code?(e.tableData=t.data.data,e.recordTotal=t.data.count):e.$message({message:t.data.message,type:"warning"})}).catch(function(t){console.log(t),e.$message({message:"接口错误",type:"warning"})}).finally(function(){e.listLoading=!1})},parseNumber:function(e,t){return"整改类型"===t?this.rectifyTypeList.find(function(t){return t.id===e}).name:"隐患整改状态"===t?this.dangerStatusList.find(function(t){return t.id===e}).name:void 0},deleteById:function(e){var t=this;this.$confirm("删除此条信息,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.c)({id:e.id}).then(function(){t.hiddenDangerList(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})})})},clearLevel:function(){this.filter.filter.level=null},clearStatus:function(){this.filter.filter.status=null}}},p=(a("DUmx"),a("ZrdR")),m=Object(p.a)(f,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticStyle:{margin:"15px"}},[a("div",{staticClass:"basic_search"},[a("span",[e._v("整改类型:")]),e._v(" "),a("el-select",{staticClass:"analyseUnit_box",attrs:{placeholder:"整改类型",filterable:""},model:{value:e.filter.rectifyType,callback:function(t){e.$set(e.filter,"rectifyType",t)},expression:"filter.rectifyType"}},e._l(e.rectifyTypeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("div",{staticClass:"basic_search"},[a("span",[e._v("整改部门:")]),e._v(" "),a("el-select",{staticClass:"analyseUnit_box",attrs:{clearable:"",filterable:""},model:{value:e.filter.rectifyDepId,callback:function(t){e.$set(e.filter,"rectifyDepId",t)},expression:"filter.rectifyDepId"}},e._l(e.departmentList,function(e){return a("el-option",{key:e.id,attrs:{label:e.department,value:e.id}})}))],1),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.queryHandle}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"table_content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rectifyDesc",label:"整改内容说明","show-overflow-tooltip":"","min-width":"150px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rectifyTime",label:"整改期限","show-overflow-tooltip":"","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rectifyTime))]),e._v(" "),2===t.row.dangerStatus?a("span",{staticClass:"overdue-img"},[e._v("逾期")]):e._e(),e._v(" "),9===t.row.dangerStatus?a("span",{staticClass:"overdue-img"},[e._v("逾期")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"rectifyType",label:" 整改类型","show-overflow-tooltip":"","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n                    "+e._s(e.parseNumber(t.row.rectifyType,"整改类型"))+"\n                ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"liablePerson",label:"整改责任人","show-overflow-tooltip":"","min-width":"150px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"cost",label:"整改资金","show-overflow-tooltip":"","min-width":"150px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"dangerStatus",label:"隐患整改状态","show-overflow-tooltip":"","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:0===t.row.dangerStatus?"info":1===t.row.dangerStatus?"primary":2===t.row.dangerStatus?"warning":4===t.row.dangerStatus?"danger":"success"}},[e._v("\n                        "+e._s(e.parseNumber(t.row.dangerStatus,"隐患整改状态"))+"\n                    ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"createByUserName",label:"创建人","show-overflow-tooltip":"","min-width":"150px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"gmtCreate",label:"创建时间","show-overflow-tooltip":"","min-width":"200px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"lastEditUserName",label:"最后修改人","show-overflow-tooltip":"","min-width":"150px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"gmtModitify",label:"最后修改时间","show-overflow-tooltip":"","min-width":"200px"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"240","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.viewHandle("查看",t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0===t.row.dangerStatus||2===t.row.dangerStatus,expression:"scope.row.dangerStatus === 0 || scope.row.dangerStatus === 2"}],attrs:{type:"text"},on:{click:function(a){e.viewHandle("整改",t.row)}}},[e._v("整改")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0===t.row.dangerStatus||2===t.row.dangerStatus,expression:"scope.row.dangerStatus === 0 || scope.row.dangerStatus === 2"}],attrs:{type:"text"},on:{click:function(a){e.viewHandle("延期",t.row)}}},[e._v("延期")]),e._v(" "),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(a){e.deleteById(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("br"),e._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":e.filter.pageIndex,"page-sizes":[10,20,30,50],"page-size":e.filter.pageSize,total:e.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("report-view",{ref:"reportView"}),e._v(" "),a("rectify-dialog",{ref:"rectifyDialog",on:{refreshRectify:e.hiddenDangerList}}),e._v(" "),a("div",{staticStyle:{clear:"both"}})],1)},[],!1,null,"7b93901c",null);m.options.__file="index.vue";t.default=m.exports},DUmx:function(e,t,a){"use strict";var r=a("jz30");a.n(r).a},Xlcq:function(e,t,a){},"Zp/G":function(e,t,a){"use strict";var r=a("Xlcq");a.n(r).a},jz30:function(e,t,a){},"r08/":function(e,t,a){"use strict";a.r(t);a("X4fA");var r={name:"reportView",data:function(){return{title:"",imgUrls:[],imgUrls2:[],imgPreviewUrls:[],imgPreviewUrls2:[],dialogFormVisible:!1,listLoading:!0,levels:[{key:"URGENT",value:"重大隐患"},{key:"COMMON",value:"一般隐患"}],dataForm:{}}},methods:{showDialog:function(e,t){this.title=e,this.dataForm.status=t.status,this.dataForm.level=t.level,this.imgUrls=t.reportResources.map(function(e){return{url:"http://222.92.213.22:8006/zhongtai/upload/"+e.url,name:e.id}}),this.imgPreviewUrls=t.reportResources.map(function(e){return"http://222.92.213.22:8006/zhongtai/upload/"+e.url}),this.imgUrls2=t.rectifyResources.map(function(e){return{url:"http://222.92.213.22:8006/zhongtai/upload/"+e.url,name:e.id}}),this.imgPreviewUrls2=t.rectifyResources.map(function(e){return"http://222.92.213.22:8006/zhongtai/upload/"+e.url}),this.dataForm.rectifynote=t.rectifynote,this.dataForm.createnote=t.createnote,this.dataForm.rectifymeasure=t.rectifymeasure,this.dataForm.rectifydeadline=t.rectifydeadline,this.dataForm.rejectnote=t.rejectnote,this.dataForm.rectifier=t.rectifier,this.dialogFormVisible=!0}}},i=(a("Zp/G"),a("ZrdR")),n=Object(i.a)(r,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,visible:e.dialogFormVisible,top:"25px","modal-append-to-body":!1,"close-on-click-modal":!1,width:"800px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,"label-position":"right","label-width":"140px","element-loading-text":"保存中..."}},[a("el-form-item",{attrs:{label:"隐患级别:"}},[a("el-input",{staticStyle:{width:"205px"},attrs:{placeholder:"请选择",readonly:!0},model:{value:e.dataForm.level,callback:function(t){e.$set(e.dataForm,"level",t)},expression:"dataForm.level"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"整改人:"}},[a("el-input",{staticStyle:{width:"205px"},attrs:{placeholder:"请选择",readonly:!0},model:{value:e.dataForm.rectifier,callback:function(t){e.$set(e.dataForm,"rectifier",t)},expression:"dataForm.rectifier"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"整改期限:"}},[a("el-date-picker",{attrs:{type:"datetime",readonly:!0,format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm"},model:{value:e.dataForm.rectifydeadline,callback:function(t){e.$set(e.dataForm,"rectifydeadline",t)},expression:"dataForm.rectifydeadline"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"整改措施:"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",rows:3,readonly:!0},model:{value:e.dataForm.rectifymeasure,callback:function(t){e.$set(e.dataForm,"rectifymeasure",t)},expression:"dataForm.rectifymeasure"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"上报说明:"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",rows:3,readonly:!0},model:{value:e.dataForm.createnote,callback:function(t){e.$set(e.dataForm,"createnote",t)},expression:"dataForm.createnote"}})],1),e._v(" "),e.imgUrls.length>0?a("el-form-item",{attrs:{label:"上报图片:"}},e._l(e.imgUrls,function(t){return a("el-image",{key:t.id,staticClass:"upload-img img-wrapper",attrs:{src:t.url,"preview-src-list":e.imgPreviewUrls}})})):e._e(),e._v(" "),"待整改"!==this.dataForm.status?a("el-form-item",{attrs:{label:"整改说明:"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",rows:3,readonly:!0},model:{value:e.dataForm.rectifynote,callback:function(t){e.$set(e.dataForm,"rectifynote",t)},expression:"dataForm.rectifynote"}})],1):e._e(),e._v(" "),"待整改"!==this.dataForm.status&&e.imgUrls2.length>0?a("el-form-item",{attrs:{label:"整改图片:"}},e._l(e.imgUrls2,function(t){return a("el-image",{key:t.id,staticClass:"upload-img img-wrapper",attrs:{src:t.url,"preview-src-list":e.imgPreviewUrls2}})})):e._e(),e._v(" "),"驳回待整改"===this.dataForm.status?a("el-form-item",{attrs:{label:"驳回原因:"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",rows:3,readonly:!0},model:{value:e.dataForm.rejectnote,callback:function(t){e.$set(e.dataForm,"rejectnote",t)},expression:"dataForm.rejectnote"}})],1):e._e()],1)],1)},[],!1,null,"26ec07af",null);n.options.__file="reportView.vue";t.default=n.exports}}]);