马宇豪
2022-12-12 c63545c5e3f297a5b9545f0cb2afeaa843ce52cb
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-2d7c"],{"7LbN":function(e,t,r){"use strict";var s=r("80pG");r.n(s).a},"80pG":function(e,t,r){},"9c/4":function(e,t,r){"use strict";r.r(t);var s=r("YReu"),o=r.n(s),n=r("cLjf"),a=r.n(n),i=r("hDQ3"),c=r.n(i),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()(a.a.mark(function t(){var r,s;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e,t.next=3,Object(d.a)();case 3:"200"===(s=t.sent).data.code?r.unitType=s.data.result.checkUnitType:r.unitType=-1;case 5:case"end":return t.stop()}},t,e)}))()},getEnterpriseInfo:function(){var e=this;return c()(a.a.mark(function t(){var r,s,o;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s={id:(r=e).id,unitType:r.checkUnitType},t.next=4,Object(l.d)(s);case 4:"200"===(o=t.sent).data.code?r.corpInfo=o.data.result:(r.dialogVisible=!1,r.$message({type:"warning",message:o.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()(a.a.mark(function r(){var s;return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:(s=t).$refs[e].validate(function(){var e=c()(a.a.mark(function e(r){var n,i,c;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=11;break}return n=s.reportForm,n.info,i=o()(n,["info"]),e.next=4,Object(l.i)(i);case 4:"200"===(c=e.sent).data.code?s.$message({type:"success",message:"提交成功"}):s.$message({type:"warning",message:c.data.message}),s.dialogReport=!1,s.getEnterpriseInfo(),s.$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")),v=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,s){return 1==e.corpInfo.hiddendangerStatus?r("tr",{key:s},[r("td",{staticClass:"w-5"},[e._v(e._s(s))]),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);v.options.__file="supervisionDetails.vue";t.default=v.exports},YReu:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){var r={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r}}}]);