马宇豪
2022-12-12 c63545c5e3f297a5b9545f0cb2afeaa843ce52cb
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-97f0"],{"2zMV":function(e,t,r){"use strict";r.r(t);var i=r("YReu"),a=r.n(i),n=r("cLjf"),l=r.n(n),o=r("hDQ3"),c=r.n(o),s=(r("7Qib"),r("7nq4")),u={name:"repair",data:function(){return{id:null,listLoading:!1,dialogFix:!1,recordTotal:0,pageSize:10,currentPage:1,tableKey:0,dialogVisible:!1,checkList:[],fixForm:{id:null,enterpriseSubmitId:null,info:"",completeRectifyTime:"",rectifyPrice:null,rectifyMeasure:"",chargePerson:""},fixRule:{completeRectifyTime:[{required:!0,message:"请选择完成整改日期",trigger:"blur"}],rectifyPrice:[{required:!0,message:"请输入整改资金",trigger:"blur"}],rectifyMeasure:[{required:!0,message:"请输入整改措施",trigger:"blur"}],chargePerson:[{required:!0,message:"请输入负责人",trigger:"blur"}]}}},created:function(){},watch:{},methods:{handleSizeChange:function(e){this.pageSize=e,this.currentPage=1},handleCurrentChange:function(e){this.currentPage=e},getSelfRectifyInfo:function(){var e=this;return c()(l.a.mark(function t(){var r,i;return l.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(r=e).listLoading=!0,t.next=4,Object(s.c)({id:r.id});case 4:"200"===(i=t.sent).data.code?r.checkList=i.data.result.hiddendangerBaseInfos:r.$message({type:"warning",message:i.data.message}),r.listLoading=!1;case 7:case"end":return t.stop()}},t,e)}))()},confirm:function(){this.dialogVisible=!1,this.$parent.getUncheckList()},toFix:function(e){var t=this;t.fixForm.info=e.hiddendangerRemark,t.fixForm.id=e.id,t.dialogFix=!0},confirmFix:function(e){var t=this;return c()(l.a.mark(function r(){var i;return l.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:(i=t).$refs[e].validate(function(){var e=c()(l.a.mark(function e(r){var n,o,c;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=11;break}return i.fixForm.enterpriseSubmitId=i.id,n=i.fixForm,n.info,o=a()(n,["info"]),e.next=5,Object(s.h)(o);case 5:"200"===(c=e.sent).data.code?i.$message({type:"success",message:"提交成功"}):i.$message({type:"warning",message:c.data.message}),i.dialogFix=!1,i.getSelfRectifyInfo(),e.next=13;break;case 11:return console.log("error submit!!"),e.abrupt("return",!1);case 13:case"end":return e.stop()}},e,t)}));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return r.stop()}},r,t)}))()},resetFix:function(){this.fixForm={id:null,enterpriseSubmitId:null,info:"",completeRectifyTime:"",rectifyPrice:null,rectifyMeasure:"",chargePerson:""}}}},f=(r("THc/"),r("ZrdR")),d=Object(f.a)(u,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"","close-on-click-modal":!1,width:"80%",center:""},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{staticClass:"table_cont"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.checkList,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"}}),e._v(" "),r("el-table-column",{attrs:{label:"检查出的隐患问题",prop:"hiddendangerRemark",align:"center",width:"180"}}),e._v(" "),r("el-table-column",{attrs:{label:"检查时间",prop:"checkTime",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"最后整改期限",prop:"rectifyDeadlineTime",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"整改资金(元)",prop:"rectifyPrice",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"整改措施",prop:"rectifyMeasure",width:"130",align:"center",sortable:""}}),e._v(" "),r("el-table-column",{attrs:{label:"负责人",prop:"chargePerson",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"整改状态",prop:"rectifyStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(1==t.row.rectifyStatus?"已整改":"未整改"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"完成整改时间",prop:"completeRectifyTime",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"隐患等级",prop:"hiddendangerLevel",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(1==t.row.hiddendangerLevel?"一般隐患":"重大隐患"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.rectifyStatus?r("span",[e._v("已整改")]):r("el-button",{attrs:{type:"text"},on:{click:function(r){e.toFix(t.row)}}},[e._v("整改填报")])]}}])})],1),e._v(" "),r("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right",margin:"3px"},attrs:{"current-page":e.currentPage,"page-sizes":[10,20,30,50],"page-size":e.pageSize,total:e.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirm()}}},[e._v("确认")])],1),e._v(" "),r("el-dialog",{attrs:{visible:e.dialogFix,title:"整改填报","append-to-body":"","close-on-click-modal":!1,width:"40%",center:""},on:{"update:visible":function(t){e.dialogFix=t},close:function(t){e.resetFix()}}},[r("el-form",{ref:"fixForm",attrs:{model:e.fixForm,rules:e.fixRule,"label-width":"160px"}},[r("el-form-item",{attrs:{label:"当前隐患:"}},[r("el-input",{attrs:{type:"textarea",readonly:""},model:{value:e.fixForm.info,callback:function(t){e.$set(e.fixForm,"info",t)},expression:"fixForm.info"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"当前完成整改日期:",prop:"completeRectifyTime"}},[r("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择整改日期"},model:{value:e.fixForm.completeRectifyTime,callback:function(t){e.$set(e.fixForm,"completeRectifyTime",t)},expression:"fixForm.completeRectifyTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"整改资金:",prop:"rectifyPrice"}},[r("el-input",{attrs:{type:"number",placeholder:"请输入整改资金金额"},model:{value:e.fixForm.rectifyPrice,callback:function(t){e.$set(e.fixForm,"rectifyPrice",t)},expression:"fixForm.rectifyPrice"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"整改措施:",prop:"rectifyMeasure"}},[r("el-input",{attrs:{type:"textarea",autosize:"",placeholder:"请输入整改措施"},model:{value:e.fixForm.rectifyMeasure,callback:function(t){e.$set(e.fixForm,"rectifyMeasure",t)},expression:"fixForm.rectifyMeasure"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"负责人:",prop:"chargePerson"}},[r("el-input",{attrs:{placeholder:"请输入整改负责人"},model:{value:e.fixForm.chargePerson,callback:function(t){e.$set(e.fixForm,"chargePerson",t)},expression:"fixForm.chargePerson"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogFix=!1}}},[e._v("取消")]),e._v(" "),r("el-button",{directives:[{name:"stop-re-click",rawName:"v-stop-re-click"}],attrs:{type:"primary"},on:{click:function(t){e.confirmFix("fixForm")}}},[e._v("提交")])],1)],1)],1)},[],!1,null,"13d23b0f",null);d.options.__file="repair.vue";t.default=d.exports},"THc/":function(e,t,r){"use strict";var i=r("w36K");r.n(i).a},YReu:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){var r={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}},w36K:function(e,t,r){}}]);