马宇豪
2022-12-12 c63545c5e3f297a5b9545f0cb2afeaa843ce52cb
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-ae7c","chunk-2d7c"],{"7LbN":function(e,t,r){"use strict";var a=r("80pG");r.n(a).a},"80pG":function(e,t,r){},"9c/4":function(e,t,r){"use strict";r.r(t);var a=r("YReu"),n=r.n(a),s=r("cLjf"),i=r.n(s),o=r("hDQ3"),c=r.n(o),l=(r("7Qib"),r("7nq4")),d=r("nK5B"),p={name:"supervisionDetails",data:function(){return{dialogVisible:!1,dialogReport:!1,id:null,checkUnitType:null,unitType:null,enterpriseType:null,corpInfo:{enterpriseName:"",enterpriseProvince:"",enterpriseCity:"",enterpriseArea:"",checkUnitType:null,checkName:"",checkTime:"",hiddendangerStatus:null,hiddendangerInfos:[],hiddendangerSum:null,majorHiddendangerNum:null},reportForm:{id:null,info:"",completeRectifyTime:"",rectifyPrice:null,rectifyMeasure:"",chargePerson:""},reportRule:{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(){},mounted:function(){},watch:{},methods:{getCheckUnitType:function(){var e=this;return c()(i.a.mark(function t(){var r,a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e,t.next=3,Object(d.a)();case 3:"200"===(a=t.sent).data.code?r.unitType=a.data.result.checkUnitType:r.unitType=-1;case 5:case"end":return t.stop()}},t,e)}))()},getEnterpriseInfo:function(){var e=this;return c()(i.a.mark(function t(){var r,a,n;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={id:(r=e).id,unitType:r.checkUnitType},t.next=4,Object(l.d)(a);case 4:"200"===(n=t.sent).data.code?r.corpInfo=n.data.result:(r.dialogVisible=!1,r.$message({type:"warning",message:n.data.message}));case 6:case"end":return t.stop()}},t,e)}))()},toRectify:function(e){var t=this;t.reportForm.info=e.spotCheckHiddendanger,t.reportForm.id=e.id,t.dialogReport=!0},confirmReport:function(e){var t=this;return c()(i.a.mark(function r(){var a;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:(a=t).$refs[e].validate(function(){var e=c()(i.a.mark(function e(r){var s,o,c;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=11;break}return s=a.reportForm,s.info,o=n()(s,["info"]),e.next=4,Object(l.i)(o);case 4:"200"===(c=e.sent).data.code?a.$message({type:"success",message:"提交成功"}):a.$message({type:"warning",message:c.data.message}),a.dialogReport=!1,a.getEnterpriseInfo(),a.$parent.getSpotCheckList(),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)}))()},resetForm:function(){this.corpInfo={enterpriseName:"",enterpriseProvince:"",enterpriseCity:"",enterpriseArea:"",checkUnitType:null,checkName:"",checkTime:"",hiddendangerStatus:null,hiddendangerInfos:[],hiddendangerSum:null,majorHiddendangerNum:null}},resetEdit:function(){this.reportForm={id:null,info:"",completeRectifyTime:"",rectifyPrice:null,rectifyMeasure:"",chargePerson:""}},confirmBack:function(){this.dialogVisible=!1}}},u=(r("7LbN"),r("ZrdR")),f=Object(u.a)(p,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:"75%",center:""},on:{"update:visible":function(t){e.dialogVisible=t},open:function(t){e.getCheckUnitType()},close:function(t){e.resetForm()}}},[r("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[e._v("\n             烟花爆竹"+e._s(1==e.enterpriseType?"批发":2==e.enterpriseType?"零售":"")+"企业检查情况反馈表\n             "),0==e.corpInfo.hiddendangerStatus?r("div",[e._v("应急检查无隐患")]):e._e()]),e._v(" "),r("div",{staticClass:"table-tit"},[r("div",[e._v("企业名称: "),r("span",{staticClass:"m-color"},[e._v(e._s(e.corpInfo.enterpriseName))])]),e._v(" "),r("div",[e._v("所属省市县: "),r("span",{staticClass:"m-color"},[e._v(e._s(e.corpInfo.enterpriseProvince+e.corpInfo.enterpriseCity+e.corpInfo.enterpriseArea))])]),e._v(" "),r("div",[e._v("检查层级: "),r("span",{staticClass:"m-color"},[e._v(e._s(1==e.corpInfo.checkUnitType?"省级":2==e.corpInfo.checkUnitType?"地(州、市)级":"县级"))])]),e._v(" "),r("div",[e._v("检查单位: "),r("span",{staticClass:"m-color"},[e._v(e._s(e.corpInfo.checkName))])])]),e._v(" "),r("div",{staticClass:"corp-list"},[r("table",{staticClass:"corp-table"},[r("tr",{staticClass:"special-tr"},[r("td",{staticClass:"m-color w-25"},[e._v("检查时间")]),e._v(" "),r("td",{staticClass:"m-color w-25"},[e._v(e._s(e.corpInfo.checkTime))]),e._v(" "),r("td",{staticClass:"m-color w-25 spe"},[r("div",[r("span",[e._v("是否检查出隐患问题")]),r("p",[e._v("(如与其他单位共同检查,检查次数计入本单位,但隐患问题不计入本单位,亦选“否”)")])])]),e._v(" "),r("td",{staticClass:"m-color w-25",class:1==e.corpInfo.hiddendangerStatus?"warning":"normal"},[e._v(e._s(1==e.corpInfo.hiddendangerStatus?"是":"否"))])]),e._v(" "),1==e.corpInfo.hiddendangerStatus?r("tr",{staticClass:"m-color b-font",staticStyle:{"text-align":"center"}},[e._v("自查与整改情况")]):e._e(),e._v(" "),1==e.corpInfo.hiddendangerStatus?r("tr",[r("td",{staticClass:"m-color w-5"},[e._v("序号")]),e._v(" "),r("td",{staticClass:"m-color w-15"},[e._v("检查出的隐患问题")]),e._v(" "),r("td",{staticClass:"m-color w-10"},[e._v("隐患等级")]),e._v(" "),r("td",{staticClass:"m-color w-30"},[e._v("整改措施")]),e._v(" "),r("td",{staticClass:"m-color w-10"},[e._v("整改资金(元)")]),e._v(" "),r("td",{staticClass:"m-color w-10"},[e._v("责任人")]),e._v(" "),r("td",{staticClass:"m-color w-20"},[e._v("隐患状态")])]):e._e(),e._v(" "),e._l(e.corpInfo.hiddendangerInfos,function(t,a){return 1==e.corpInfo.hiddendangerStatus?r("tr",{key:a},[r("td",{staticClass:"w-5"},[e._v(e._s(a))]),e._v(" "),r("td",{staticClass:"w-15 overText"},[e._v(e._s(t.spotCheckHiddendanger))]),e._v(" "),r("td",{staticClass:"w-10"},[e._v(e._s(1==t.hiddendangerLevel?"一般隐患":"重大隐患"))]),e._v(" "),r("td",{staticClass:"w-30 overText"},[e._v(e._s(t.rectifyMeasure))]),e._v(" "),r("td",{staticClass:"w-10"},[e._v(e._s(t.rectifyPrice))]),e._v(" "),r("td",{staticClass:"w-10"},[e._v(e._s(t.chargePerson))]),e._v(" "),r("td",{staticClass:"w-20 overText"},[t.rectifyStatus?r("span",[e._v("\n                            "+e._s(t.completeRectifyTime+"整改完成")+"\n                        ")]):r("span",[e._v("\n                            未整改\n                            "),-1==e.unitType?r("span",{staticStyle:{cursor:"pointer",color:"#034ea2"},on:{click:function(r){e.toRectify(t)}}},[e._v("去整改")]):e._e()])])]):e._e()}),e._v(" "),r("tr",{staticClass:"m-color b-font",staticStyle:{"text-align":"center"}},[e._v("合计")]),e._v(" "),r("tr",[r("td",{staticClass:"m-color w-50"},[e._v("隐患总数")]),e._v(" "),r("td",{staticClass:"m-color w-50"},[e._v("重大隐患数量")])]),e._v(" "),r("tr",[r("td",{staticClass:"w-50"},[e._v(e._s(e.corpInfo.hiddendangerSum))]),e._v(" "),r("td",{staticClass:"w-50"},[e._v(e._s(e.corpInfo.majorHiddendangerNum))])]),e._v(" "),1==e.corpInfo.hiddendangerStatus?r("tr",{staticClass:"m-color b-font",staticStyle:{"text-align":"center"}},[e._v("执法处罚情况")]):e._e(),e._v(" "),1==e.corpInfo.hiddendangerStatus?r("tr",[r("td",{staticClass:"m-color w-25"},[e._v("罚款金额(万元)")]),e._v(" "),r("td",{staticClass:"w-25"},[e._v(e._s(e.corpInfo.amerceMoney))]),e._v(" "),r("td",{staticClass:"m-color w-25"},[e._v("是否责令停产整顿")]),e._v(" "),r("td",{staticClass:"w-25"},[e._v("\n                        "+e._s(1==e.corpInfo.stopProductionStatus?"是":"否")+"\n                    ")])]):e._e(),e._v(" "),1==e.corpInfo.hiddendangerStatus?r("tr",[r("td",{staticClass:"m-color w-25"},[e._v("是否吊销许可证")]),e._v(" "),r("td",{staticClass:"w-25"},[e._v("\n                        "+e._s(1==e.corpInfo.revokeLicenseStatus?"是":"否")+"\n                    ")]),e._v(" "),r("td",{staticClass:"m-color w-25"},[e._v("是否暂扣许可证")]),e._v(" "),r("td",{staticClass:"w-25"},[e._v("\n                        "+e._s(1==e.corpInfo.detainLicenseStatus?"是":"否")+"\n                    ")])]):e._e()],2)]),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirmBack()}}},[e._v("返回")])],1),e._v(" "),r("el-dialog",{attrs:{visible:e.dialogReport,title:"整改填报","append-to-body":"","close-on-click-modal":!1,width:"40%",center:""},on:{"update:visible":function(t){e.dialogReport=t},close:function(t){e.resetEdit()}}},[r("el-form",{ref:"reportForm",attrs:{model:e.reportForm,rules:e.reportRule,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"当前隐患:"}},[r("el-input",{attrs:{type:"textarea",readonly:""},model:{value:e.reportForm.info,callback:function(t){e.$set(e.reportForm,"info",t)},expression:"reportForm.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.reportForm.completeRectifyTime,callback:function(t){e.$set(e.reportForm,"completeRectifyTime",t)},expression:"reportForm.completeRectifyTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"整改资金:",prop:"rectifyPrice"}},[r("el-input",{model:{value:e.reportForm.rectifyPrice,callback:function(t){e.$set(e.reportForm,"rectifyPrice",t)},expression:"reportForm.rectifyPrice"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"整改措施:",prop:"rectifyMeasure"}},[r("el-input",{attrs:{type:"textarea",autosize:""},model:{value:e.reportForm.rectifyMeasure,callback:function(t){e.$set(e.reportForm,"rectifyMeasure",t)},expression:"reportForm.rectifyMeasure"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"负责人:",prop:"chargePerson"}},[r("el-input",{model:{value:e.reportForm.chargePerson,callback:function(t){e.$set(e.reportForm,"chargePerson",t)},expression:"reportForm.chargePerson"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogReport=!1}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirmReport("reportForm")}}},[e._v("提交")])],1)],1)],1)},[],!1,null,"1ed5e930",null);f.options.__file="supervisionDetails.vue";t.default=f.exports},Gwhg:function(e,t,r){"use strict";r.r(t);var a=r("cLjf"),n=r.n(a),s=r("hDQ3"),i=r.n(s),o=r("bS4n"),c=r.n(o),l=(r("jJIE"),r("7Qib"),r("8t5x")),d=(r("4f16"),r("X4fA"),r("9c/4")),p=r("7nq4"),u={name:"supervision",components:{supervisionDetails:d.default},data:function(){return{listLoading:!1,recordTotal:0,pageSize:10,pageTotal:0,currentPage:1,tableKey:0,checkData:[]}},created:function(){this.getSpotCheckList()},mounted:function(){},computed:c()({},Object(l.b)(["userType","name"])),methods:{handleSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.getSpotCheckList()},handleCurrentChange:function(e){this.currentPage=e,this.getSpotCheckList()},toDetail:function(e){var t=this;t.$refs.details.dialogVisible=!0,t.$refs.details.id=e.id,t.$refs.details.checkUnitType=e.checkUnitType,t.$refs.details.getEnterpriseInfo()},getSpotCheckList:function(){var e=this;return i()(n.a.mark(function t(){var r,a,s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(r=e).listLoading=!0,a={pageIndex:r.currentPage,pageSize:r.pageSize},t.next=5,Object(p.e)(a);case 5:"200"===(s=t.sent).data.code?(r.recordTotal=s.data.result.total,r.checkData=s.data.result.records):r.$message({type:"warning",message:s.data.message}),r.listLoading=!1;case 8:case"end":return t.stop()}},t,e)}))()}}},f=(r("O6rU"),r("ZrdR")),v=Object(f.a)(u,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container",staticStyle:{"padding-bottom":"40px"}},[r("div",{staticClass:"table_content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.checkData,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"下发日期",prop:"gmtCreate",align:"center",width:"180"}}),e._v(" "),r("el-table-column",{attrs:{label:"任务名称",prop:"taskName",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"下发部门",prop:"createUnit",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"检查部门",prop:"checkName",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"被检查日期",prop:"checkTime",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"是否隐患",prop:"hiddendangerStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(0==t.row.hiddendangerStatus?"否":"是"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"一般隐患",prop:"countHiddendangerCommon",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"重大隐患",prop:"countHiddendangerMajor",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"总数",prop:"hiddendangerSum",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"整改情况",prop:"rectifyStatus",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(0==t.row.rectifyStatus?"存在未整改":"已完成"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"详情",align:"center","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){e.toDetail(t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),r("el-pagination",{staticStyle:{float:"right",margin:"3px"},attrs:{"current-page":e.currentPage,"page-sizes":[10,15],"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("supervision-details",{ref:"details"})],1)},[],!1,null,"3f04f374",null);v.options.__file="supervision.vue";t.default=v.exports},O6rU:function(e,t,r){"use strict";var a=r("Ou4X");r.n(a).a},Ou4X:function(e,t,r){},YReu:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){var r={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}}}]);