马宇豪
2022-12-12 c63545c5e3f297a5b9545f0cb2afeaa843ce52cb
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-7fdf","chunk-5343","chunk-97f0","chunk-0b9e","chunk-53430"],{"1iCQ":function(e,t,a){"use strict";var r=a("fJPt");a.n(r).a},"2zMV":function(e,t,a){"use strict";a.r(t);var r=a("YReu"),i=a.n(r),n=a("cLjf"),s=a.n(n),c=a("hDQ3"),l=a.n(c),o=(a("7Qib"),a("7nq4")),d={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 l()(s.a.mark(function t(){var a,r;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=e).listLoading=!0,t.next=4,Object(o.c)({id:a.id});case 4:"200"===(r=t.sent).data.code?a.checkList=r.data.result.hiddendangerBaseInfos:a.$message({type:"warning",message:r.data.message}),a.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 l()(s.a.mark(function a(){var r;return s.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:(r=t).$refs[e].validate(function(){var e=l()(s.a.mark(function e(a){var n,c,l;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=11;break}return r.fixForm.enterpriseSubmitId=r.id,n=r.fixForm,n.info,c=i()(n,["info"]),e.next=5,Object(o.h)(c);case 5:"200"===(l=e.sent).data.code?r.$message({type:"success",message:"提交成功"}):r.$message({type:"warning",message:l.data.message}),r.dialogFix=!1,r.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 a.stop()}},a,t)}))()},resetFix:function(){this.fixForm={id:null,enterpriseSubmitId:null,info:"",completeRectifyTime:"",rectifyPrice:null,rectifyMeasure:"",chargePerson:""}}}},u=(a("THc/"),a("ZrdR")),f=Object(u.a)(d,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("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}}},[a("div",{staticClass:"table_cont"},[a("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":""}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"检查出的隐患问题",prop:"hiddendangerRemark",align:"center",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{label:"检查时间",prop:"checkTime",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"最后整改期限",prop:"rectifyDeadlineTime",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"整改资金(元)",prop:"rectifyPrice",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"整改措施",prop:"rectifyMeasure",width:"130",align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"负责人",prop:"chargePerson",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"整改状态",prop:"rectifyStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(1==t.row.rectifyStatus?"已整改":"未整改"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成整改时间",prop:"completeRectifyTime",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"隐患等级",prop:"hiddendangerLevel",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(1==t.row.hiddendangerLevel?"一般隐患":"重大隐患"))])]}}])}),e._v(" "),a("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?a("span",[e._v("已整改")]):a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toFix(t.row)}}},[e._v("整改填报")])]}}])})],1),e._v(" "),a("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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirm()}}},[e._v("确认")])],1),e._v(" "),a("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()}}},[a("el-form",{ref:"fixForm",attrs:{model:e.fixForm,rules:e.fixRule,"label-width":"160px"}},[a("el-form-item",{attrs:{label:"当前隐患:"}},[a("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(" "),a("el-form-item",{attrs:{label:"当前完成整改日期:",prop:"completeRectifyTime"}},[a("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(" "),a("el-form-item",{attrs:{label:"整改资金:",prop:"rectifyPrice"}},[a("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(" "),a("el-form-item",{attrs:{label:"整改措施:",prop:"rectifyMeasure"}},[a("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(" "),a("el-form-item",{attrs:{label:"负责人:",prop:"chargePerson"}},[a("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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFix=!1}}},[e._v("取消")]),e._v(" "),a("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);f.options.__file="repair.vue";t.default=f.exports},By9n:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),s=a.n(n),c=a("bS4n"),l=a.n(c),o=(a("jJIE"),a("7Qib"),a("8t5x")),d=(a("4f16"),a("X4fA"),a("xjNL")),u=a("2zMV"),f=a("jMlj"),p=a("7nq4"),m=a("nK5B"),v={name:"selfCheck",components:{selfReport:d.default,repair:u.default,checkDetails:f.default},data:function(){return{listLoading:!1,recordTotal:0,pageSize:10,pageTotal:0,currentPage:1,tableKey:0,checkData:[],unitType:null}},created:function(){this.getCheckUnitType(),this.getUncheckList()},mounted:function(){},computed:l()({},Object(o.b)(["userType","name"])),methods:{handleSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.getUncheckList()},handleCurrentChange:function(e){this.currentPage=e,this.getUncheckList()},getCheckUnitType:function(){var e=this;return s()(i.a.mark(function t(){var a,r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,Object(m.a)();case 3:"200"===(r=t.sent).data.code?a.unitType=r.data.result.checkUnitType:a.unitType=-1;case 5:case"end":return t.stop()}},t,e)}))()},toReport:function(e){var t=this;t.$refs.report.dialogVisible=!0,t.$refs.report.id=e.id,t.$refs.report.getReportInfo()},toDetail:function(e){var t=this;t.$refs.details.dialogVisible=!0,t.$refs.details.id=e.id,t.$refs.details.getEnterpriseInfo()},toRepair:function(e){var t=this;t.$refs.repair.dialogVisible=!0,t.$refs.repair.id=e.id,t.$refs.repair.getSelfRectifyInfo()},getUncheckList:function(){var e=this;return s()(i.a.mark(function t(){var a,r,n;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=e).listLoading=!0,r={pageIndex:a.currentPage,pageSize:a.pageSize},t.next=5,Object(p.f)(r);case 5:"200"===(n=t.sent).data.code?(a.recordTotal=n.data.result.total,a.checkData=n.data.result.records):a.$message({type:"warning",message:n.data.message}),a.listLoading=!1;case 8:case"end":return t.stop()}},t,e)}))()}}},g=(a("1iCQ"),a("ZrdR")),h=Object(g.a)(v,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container",staticStyle:{"padding-bottom":"40px"}},[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.checkData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"下发日期",prop:"gmtCreate",align:"center",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",prop:"taskName",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"下发部门",prop:"createUnit",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"自查期限(之前)",prop:"enterpriseSelfCheckDeadline",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"是否自查",prop:"selfcheckStatus",width:"130",align:"center",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(1==t.row.selfcheckStatus?"已自查":"未自查"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"自查时间",prop:"selfcheckTime",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"是否隐患",prop:"hiddendangerStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(null==t.row.hiddendangerStatus?"":1==t.row.hiddendangerStatus?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"整改情况",prop:"rectifyStatus",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.rectifyStatus?a("span",[e._v("无需整改")]):1==t.row.rectifyStatus&&-1==e.unitType?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toRepair(t.row)}}},[e._v("去整改")]):2==t.row.rectifyStatus?a("span",[e._v("已整改")]):a("span",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.selfcheckStatus&&-1==e.unitType?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toReport(t.row)}}},[e._v("自查填报")]):a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDetail(t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),a("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(" "),a("self-report",{ref:"report"}),e._v(" "),a("repair",{ref:"repair"}),e._v(" "),a("check-details",{ref:"details"})],1)},[],!1,null,"49df8f46",null);h.options.__file="index.vue";t.default=h.exports},ROOE:function(e,t,a){},"THc/":function(e,t,a){"use strict";var r=a("w36K");a.n(r).a},UDWP:function(e,t,a){},YReu:function(e,t,a){"use strict";t.__esModule=!0,t.default=function(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}},b2xc:function(e,t,a){"use strict";var r=a("UDWP");a.n(r).a},fJPt:function(e,t,a){},jMlj:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),s=a.n(n),c=(a("7Qib"),a("7nq4")),l={name:"reportDetails",data:function(){return{dialogVisible:!1,enterpriseType:null,id:null,corpInfo:{enterpriseName:"",enterpriseProvince:"",enterpriseCity:"",enterpriseArea:"",licenceValidStatus:null,stockNum:null,storageCapacity:null,hiddendangerStatus:null,hiddendangerInfos:[],hiddendangerSum:null,majorHiddendangerNum:null,completedRectifyHiddendangerSum:null,completedRectifyMajorHiddendangerNum:null,selfcheckReportUserName:"",selfcheckReportUserMobile:"",reportModifyTime:""}}},watch:{},methods:{getEnterpriseInfo:function(){var e=this;return s()(i.a.mark(function t(){var a,r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,Object(c.a)({id:a.id});case 3:"200"===(r=t.sent).data.code?a.corpInfo=r.data.result:(a.dialogVisible=!1,a.$message({type:"warning",message:r.data.message}));case 5:case"end":return t.stop()}},t,e)}))()},confirmBack:function(){this.dialogVisible=!1},resetForm:function(){this.corpInfo={enterpriseName:"",enterpriseProvince:"",enterpriseCity:"",enterpriseArea:"",licenceValidStatus:null,stockNum:null,storageCapacity:null,hiddendangerStatus:null,hiddendangerInfos:[],hiddendangerSum:null,majorHiddendangerNum:null,completedRectifyHiddendangerSum:null,completedRectifyMajorHiddendangerNum:null,selfcheckReportUserName:"",selfcheckReportUserMobile:"",reportModifyTime:""}}}},o=(a("b2xc"),a("ZrdR")),d=Object(o.a)(l,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("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},close:function(t){e.resetForm()}}},[a("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[e._v("\n        烟花爆竹"+e._s(1==e.enterpriseType?"批发":"零售")+"企业自查情况信息报送表\n     ")]),e._v(" "),a("div",{staticClass:"table-tit"},[a("div",[e._v("企业名称: "),a("span",{staticClass:"m-color"},[e._v(e._s(e.corpInfo.enterpriseName))])]),e._v(" "),a("div",[e._v("所属省市县: "),a("span",{staticClass:"m-color"},[e._v(e._s(e.corpInfo.enterpriseProvince+e.corpInfo.enterpriseCity+e.corpInfo.enterpriseArea))])])]),e._v(" "),1==e.corpInfo.selfcheckStatus?a("div",{staticClass:"corp-list"},[a("table",{staticClass:"corp-table"},[a("th",{staticClass:"m-color b-font"},[e._v("企业基本情况")]),e._v(" "),a("tr",[a("td",{staticClass:"m-color w-33"},[e._v("批发许可证状态")]),e._v(" "),a("td",{staticClass:"m-color w-33"},[e._v("库存(万箱)")]),e._v(" "),a("td",{staticClass:"m-color w-33"},[e._v("库容(万箱)")])]),e._v(" "),a("tr",[a("td",{staticClass:"w-33"},[e._v(e._s(0==e.corpInfo.licenceValidStatus?"有效期内":"失效"))]),e._v(" "),a("td",{staticClass:"w-33"},[e._v(e._s(e.corpInfo.stockNum))]),e._v(" "),a("td",{staticClass:"w-33"},[e._v(e._s(e.corpInfo.storageCapacity))])]),e._v(" "),1==e.corpInfo.hiddendangerStatus?a("tr",{staticClass:"m-color b-font",staticStyle:{"text-align":"center"}},[e._v("自查与整改情况")]):e._e(),e._v(" "),1==e.corpInfo.hiddendangerStatus?a("tr",[a("td",{staticClass:"m-color w-5"},[e._v("序号")]),e._v(" "),a("td",{staticClass:"m-color w-15"},[e._v("自查隐患问题描述")]),e._v(" "),a("td",{staticClass:"m-color w-12"},[e._v("检查时间")]),e._v(" "),a("td",{staticClass:"m-color w-10"},[e._v("隐患等级")]),e._v(" "),a("td",{staticClass:"m-color w-23"},[e._v("整改措施")]),e._v(" "),a("td",{staticClass:"m-color w-10"},[e._v("整改资金(元)")]),e._v(" "),a("td",{staticClass:"m-color w-5"},[e._v("责任人")]),e._v(" "),a("td",{staticClass:"m-color w-20"},[e._v("隐患状态")])]):e._e(),e._v(" "),e._l(e.corpInfo.hiddendangerInfos,function(t,r){return 1==e.corpInfo.hiddendangerStatus?a("tr",{key:r},[a("td",{staticClass:"w-5"},[e._v(e._s(r))]),e._v(" "),a("td",{staticClass:"w-15 overText"},[e._v(e._s(t.hiddendangerRemark))]),e._v(" "),a("td",{staticClass:"w-12 overText"},[e._v(e._s(t.checkTime))]),e._v(" "),a("td",{staticClass:"w-10"},[e._v(e._s(1==t.hiddendangerLevel?"一般隐患":"重大隐患"))]),e._v(" "),a("td",{staticClass:"w-23 overText"},[e._v(e._s(t.rectifyMeasure))]),e._v(" "),a("td",{staticClass:"w-10"},[e._v(e._s(t.rectifyPrice))]),e._v(" "),a("td",{staticClass:"w-5 overText"},[e._v(e._s(t.chargePerson))]),e._v(" "),a("td",{staticClass:"w-20 overText"},[e._v(e._s(0==t.rectifyStatus?"整改完成期限:"+t.rectifyDeadlineTime:t.completeRectifyTime+"整改完成"))])]):e._e()}),e._v(" "),a("tr",[a("td",{staticClass:"m-color w-50"},[e._v("隐患问题情况")]),e._v(" "),a("td",{staticClass:"m-color w-50"},[e._v("整改情况")])]),e._v(" "),a("tr",[a("td",{staticClass:"m-color w-25"},[e._v("隐患总数")]),e._v(" "),a("td",{staticClass:"m-color w-25"},[e._v("重大隐患数量")]),e._v(" "),a("td",{staticClass:"m-color w-25"},[e._v("已整改隐患总数")]),e._v(" "),a("td",{staticClass:"m-color w-25"},[e._v("已整改重大隐患数量")])]),e._v(" "),a("tr",[a("td",{staticClass:"w-25"},[e._v(e._s(e.corpInfo.hiddendangerSum?e.corpInfo.hiddendangerSum:0))]),e._v(" "),a("td",{staticClass:"w-25"},[e._v(e._s(e.corpInfo.majorHiddendangerNum?e.corpInfo.majorHiddendangerNum:0))]),e._v(" "),a("td",{staticClass:"w-25"},[e._v(e._s(e.corpInfo.completedRectifyHiddendangerSum?e.corpInfo.completedRectifyHiddendangerSum:0))]),e._v(" "),a("td",{staticClass:"w-25"},[e._v(e._s(e.corpInfo.completedRectifyMajorHiddendangerNum?e.corpInfo.completedRectifyMajorHiddendangerNum:0))])])],2),e._v(" "),a("div",{staticClass:"table-bottom"},[e.corpInfo.selfcheckReportUserName?a("div",[e._v("填报人: "),a("span",{staticClass:"m-color"},[e._v(e._s(e.corpInfo.selfcheckReportUserName))])]):e._e()]),e._v(" "),a("div",{staticClass:"table-bottom"},[e.corpInfo.selfcheckReportUserMobile?a("div",[e._v("填报人联系电话: "),a("span",{staticClass:"m-color"},[e._v(e._s(e.corpInfo.selfcheckReportUserMobile))])]):e._e(),e._v(" "),e.corpInfo.reportModifyTime?a("div",[e._v("填报时间: "),a("span",{staticClass:"m-color"},[e._v(e._s(e.corpInfo.reportModifyTime))])]):e._e()])]):a("div",{staticStyle:{"font-size":"18px","margin-top":"20px",color:"#034EA2","font-weight":"bolder"}},[e._v("\n        该企业未上报自查信息\n    ")]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.confirmBack()}}},[e._v("返回")])],1)])},[],!1,null,"70a1fbb8",null);d.options.__file="checkDetails.vue";t.default=d.exports},uh09:function(e,t,a){"use strict";var r=a("ROOE");a.n(r).a},w36K:function(e,t,a){},xjNL:function(e,t,a){"use strict";a.r(t);var r=a("cLjf"),i=a.n(r),n=a("hDQ3"),s=a.n(n),c=(a("7Qib"),a("7nq4")),l={name:"selfReport",data:function(){return{dialogVisible:!1,id:null,enterpriseName:"",licenceValidStatus:0,licenceValidDeadline:"",stockNum:0,checkForm:{storageCapacity:null,hiddendangerStatus:null,submitHiddendangers:[{id:null,hiddendangerRemark:"",checkTime:"",rectifyDeadlineTime:"",hiddendangerLevel:null}],selfcheckReportUserName:"",selfcheckReportUserMobile:""},rules:{hiddendangerStatus:[{required:!0,message:"请选择是否查出隐患",trigger:"blur"}],selfcheckReportUserName:[{required:!0,message:"请输入填报人",trigger:"blur"}],selfcheckReportUserMobile:[{required:!0,message:"请输入电话号码",trigger:"blur"}]}}},watch:{},created:function(){console.log(this.id)},methods:{addItem:function(){this.checkForm.submitHiddendangers.push({hiddendangerRemark:"",checkTime:"",rectifyDeadlineTime:"",hiddendangerLevel:null})},deleteItem:function(e){var t=this;1==t.checkForm.submitHiddendangers.length?t.$message({type:"warning",message:"检查的隐患信息不可为空"}):t.checkForm.submitHiddendangers.splice(e,1)},getReportInfo:function(){var e=this;return s()(i.a.mark(function t(){var a,r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,Object(c.b)({id:a.id});case 3:"200"===(r=t.sent).data.code?(a.enterpriseName=r.data.result.enterpriseName,a.licenceValidStatus=r.data.result.licenceValidStatus,a.licenceValidDeadline=r.data.result.licenceValidDeadline,a.stockNum=r.data.result.stockNum):a.$message({type:"warning",message:r.data.message});case 5:case"end":return t.stop()}},t,e)}))()},submitForm:function(e){var t=this,a=this;a.$refs[e].validate(function(){var e=s()(i.a.mark(function e(r){var n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0==a.checkForm.hiddendangerStatus&&(a.checkForm.submitHiddendangers=[]),!r){e.next=18;break}if(1!=a.checkForm.hiddendangerStatus){e.next=6;break}if(!(a.checkForm.submitHiddendangers.find(function(e){return""==e.hiddendangerRemark})||a.checkForm.submitHiddendangers.find(function(e){return""==e.checkTime})||a.checkForm.submitHiddendangers.find(function(e){return""==e.rectifyDeadlineTime})||a.checkForm.submitHiddendangers.find(function(e){return null==e.hiddendangerLevel}))){e.next=6;break}return a.$message({type:"warning",message:"请完善检查的隐患信息"}),e.abrupt("return");case 6:if(null!=a.checkForm.storageCapacity){e.next=9;break}return a.$message({type:"warning",message:"请输入库容信息"}),e.abrupt("return");case 9:return a.checkForm.id=a.id,e.next=12,Object(c.g)(a.checkForm);case 12:"200"===(n=e.sent).data.code?a.$message({type:"success",message:"提交成功!"}):a.$message({type:"warning",message:n.data.message}),a.dialogVisible=!1,a.$parent.getUncheckList(),e.next=20;break;case 18:return console.log("error submit!!"),e.abrupt("return",!1);case 20:case"end":return e.stop()}},e,t)}));return function(t){return e.apply(this,arguments)}}())},reset:function(){this.checkForm={storageCapacity:null,hiddendangerStatus:null,submitHiddendangers:[{id:null,hiddendangerRemark:"",checkTime:"",rectifyDeadlineTime:"",hiddendangerLevel:null}],selfcheckReportUserName:"",selfcheckReportUserMobile:""}}}},o=(a("uh09"),a("ZrdR")),d=Object(o.a)(l,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"","close-on-click-modal":!1,width:"60%",center:""},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){e.reset()}}},[a("div",{staticClass:"company-info"},[a("div",[e._v("企业基本信息")]),e._v(" "),a("div",[a("span",[e._v("企业名称:")]),a("span",[e._v(e._s(e.enterpriseName))])]),e._v(" "),a("div",[a("span",[e._v("许可证:")]),e._v(" "),0==e.licenceValidStatus?a("span",[e._v("在有效期(有效期至:"+e._s(e.licenceValidDeadline)+")")]):a("span",[e._v("已过期")])]),e._v(" "),a("div",[a("span",[e._v("库存:")]),a("span",[e._v(e._s(e.stockNum))])]),e._v(" "),a("div",[a("span",[e._v("库容:")]),e._v(" "),a("span",[a("el-input",{attrs:{placeholder:"请输入库容量",type:"number"},model:{value:e.checkForm.storageCapacity,callback:function(t){e.$set(e.checkForm,"storageCapacity",t)},expression:"checkForm.storageCapacity"}})],1)])]),e._v(" "),a("el-divider"),e._v(" "),a("div",{staticClass:"form-info"},[a("div",[e._v("自查自改填报")])]),e._v(" "),a("el-form",{ref:"checkForm",staticClass:"demo-ruleForm",attrs:{model:e.checkForm,rules:e.rules,"label-width":"150px"}},[a("el-form-item",{attrs:{label:"自查是否有隐患:",prop:"hiddendangerStatus"}},[a("el-radio-group",{model:{value:e.checkForm.hiddendangerStatus,callback:function(t){e.$set(e.checkForm,"hiddendangerStatus",t)},expression:"checkForm.hiddendangerStatus"}},[a("el-radio",{attrs:{label:1}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0}},[e._v("否")])],1)],1),e._v(" "),1==e.checkForm.hiddendangerStatus?a("div",{staticClass:"risk-list"},[a("table",{staticClass:"risk-table"},[a("th",[a("span",[e._v("序号")]),a("span",[e._v("检查出的隐患问题")]),a("span",[e._v("检查时间")]),a("span",[e._v("最后整改期限")]),a("span",[e._v("隐患等级")]),a("span",[e._v("操作")])]),e._v(" "),e._l(e.checkForm.submitHiddendangers,function(t,r){return a("tr",[a("td",{staticClass:"num"},[e._v(e._s(r+1))]),e._v(" "),a("td",{staticClass:"info"},[a("el-input",{attrs:{type:"textarea",rows:1,placeholder:"请简述隐患问题"},model:{value:t.hiddendangerRemark,callback:function(a){e.$set(t,"hiddendangerRemark",a)},expression:"item.hiddendangerRemark"}})],1),e._v(" "),a("td",{staticClass:"date"},[a("el-date-picker",{attrs:{type:"datetime",placeholder:"选择检查时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.checkTime,callback:function(a){e.$set(t,"checkTime",a)},expression:"item.checkTime"}})],1),e._v(" "),a("td",{staticClass:"deadline"},[a("el-date-picker",{attrs:{type:"datetime",placeholder:"选择整改期限","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.rectifyDeadlineTime,callback:function(a){e.$set(t,"rectifyDeadlineTime",a)},expression:"item.rectifyDeadlineTime"}})],1),e._v(" "),a("td",{staticClass:"level"},[a("el-radio-group",{model:{value:t.hiddendangerLevel,callback:function(a){e.$set(t,"hiddendangerLevel",a)},expression:"item.hiddendangerLevel"}},[a("el-radio",{attrs:{label:1}},[e._v("一般隐患")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("重大隐患")])],1)],1),e._v(" "),a("td",{staticClass:"edit"},[a("el-button",{attrs:{type:"text"},on:{click:function(t){e.deleteItem(r)}}},[e._v("删除")])],1)])})],2),e._v(" "),a("div",{staticClass:"addBtn"},[a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-plus"},on:{click:function(t){e.addItem()}}},[e._v("新增隐患问题")])],1)]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"填报人:",prop:"selfcheckReportUserName"}},[a("el-input",{model:{value:e.checkForm.selfcheckReportUserName,callback:function(t){e.$set(e.checkForm,"selfcheckReportUserName",t)},expression:"checkForm.selfcheckReportUserName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"电话号码:",prop:"selfcheckReportUserMobile"}},[a("el-input",{model:{value:e.checkForm.selfcheckReportUserMobile,callback:function(t){e.$set(e.checkForm,"selfcheckReportUserMobile",t)},expression:"checkForm.selfcheckReportUserMobile"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{directives:[{name:"stop-re-click",rawName:"v-stop-re-click"}],attrs:{type:"primary"},on:{click:function(t){e.submitForm("checkForm")}}},[e._v("提交")])],1)],1)},[],!1,null,"752d57ba",null);d.options.__file="selfReport.vue";t.default=d.exports}}]);