马宇豪
2022-12-12 c63545c5e3f297a5b9545f0cb2afeaa843ce52cb
1
2
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-6635","chunk-598e","chunk-a3a3","chunk-32b7"],{"1Lg4":function(e,t,a){"use strict";a.r(t);var n=a("cLjf"),r=a.n(n),i=a("hDQ3"),s=a.n(i),o=(a("7Qib"),a("nK5B")),c={name:"sendWork",data:function(){return{dialogVisible:!1,workForm:{taskName:"",provinceWholesaleCheckTarget:null,provinceWholesaleCheckTargetUnit:1,provinceWholesaleCheckDeadline:"",provinceRetailCheckTarget:null,provinceRetailCheckTargetUnit:1,provinceRetailCheckDeadline:"",cityWholesaleCheckTarget:null,cityWholesaleCheckDeadline:"",cityRetailCheckTarget:null,cityRetailCheckDeadline:"",areaWholesaleCheckTarget:null,areaWholesaleCheckDeadline:"",areaRetailCheckTarget:null,areaRetailCheckDeadline:"",enterpriseSelfCheckDeadline:""},rules:{taskName:[{required:!0,message:"请输入任务名称",trigger:"blur"}],provinceWholesaleCheckTarget:[{required:!0,message:"请输入指标",trigger:"blur"}],provinceWholesaleCheckDeadline:[{required:!0,message:"请选择日期",trigger:"blur"}],provinceRetailCheckTarget:[{required:!0,message:"请输入指标",trigger:"blur"}],provinceRetailCheckDeadline:[{required:!0,message:"请选择日期",trigger:"blur"}],cityWholesaleCheckTarget:[{required:!0,message:"请输入指标",trigger:"blur"}],cityWholesaleCheckDeadline:[{required:!0,message:"请选择日期",trigger:"blur"}],cityRetailCheckTarget:[{required:!0,message:"请输入指标",trigger:"blur"}],cityRetailCheckDeadline:[{required:!0,message:"请选择日期",trigger:"blur"}],areaWholesaleCheckTarget:[{required:!0,message:"请输入指标",trigger:"blur"}],areaWholesaleCheckDeadline:[{required:!0,message:"请选择日期",trigger:"blur"}],areaRetailCheckTarget:[{required:!0,message:"请输入指标",trigger:"blur"}],areaRetailCheckDeadline:[{required:!0,message:"请选择日期",trigger:"blur"}],enterpriseSelfCheckDeadline:[{required:!0,message:"请选择日期",trigger:"blur"}]}}},watch:{},methods:{confirmSend:function(e){var t=this,a=this;a.$refs[e].validate(function(e){if(!e)return!1;t.$confirm("确认将任务下发到所有单位,一经下发不可修改撤回,请谨慎核对!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0,cancelButtonClass:"canBtn",confirmButtonClass:"sendBtn"}).then(s()(r.a.mark(function e(){var n,i;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$loading({lock:!0,text:"正在下发...",spinner:"el-icon-loading"}),e.next=3,Object(o.h)(a.workForm);case 3:"200"===(i=e.sent).data.code?(n.close(),a.$message({type:"success",message:"任务下发成功"})):(n.close(),a.$message({type:"warning",message:i.data.message})),a.dialogVisible=!1,a.$parent.getSpecialCheckTask();case 7:case"end":return e.stop()}},e,t)}))).catch(function(){t.$message({type:"info",message:"已取消下发"})})})},resetForm:function(e){var t=this;return s()(r.a.mark(function a(){return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:t.$refs[e].resetFields();case 2:case"end":return a.stop()}},a,t)}))()}}},l=(a("BtOm"),a("6cWT"),a("ZrdR")),u=Object(l.a)(c,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.dialogVisible,title:"专项检查任务下发","append-to-body":"","close-on-click-modal":!1,width:"60%",center:""},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){e.resetForm("workForm")}}},[a("el-form",{ref:"workForm",attrs:{model:e.workForm,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"专项检查任务名称:","label-width":"180px",prop:"taskName"}},[a("el-input",{model:{value:e.workForm.taskName,callback:function(t){e.$set(e.workForm,"taskName",t)},expression:"workForm.taskName"}})],1),e._v(" "),a("div",{staticClass:"form-part"},[a("h3",[e._v("省级检查指标")]),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("批发企业")]),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成检查不低于:","label-width":"140px",prop:"provinceWholesaleCheckTarget"}},[a("el-input",{staticClass:"input-with-select",model:{value:e.workForm.provinceWholesaleCheckTarget,callback:function(t){e.$set(e.workForm,"provinceWholesaleCheckTarget",t)},expression:"workForm.provinceWholesaleCheckTarget"}},[a("el-select",{attrs:{slot:"append"},slot:"append",model:{value:e.workForm.provinceWholesaleCheckTargetUnit,callback:function(t){e.$set(e.workForm,"provinceWholesaleCheckTargetUnit",t)},expression:"workForm.provinceWholesaleCheckTargetUnit"}},[a("el-option",{attrs:{label:"家",value:1}}),e._v(" "),a("el-option",{attrs:{label:"%",value:2}})],1)],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成期限:","label-width":"140px",prop:"provinceWholesaleCheckDeadline"}},[a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择截止日期"},model:{value:e.workForm.provinceWholesaleCheckDeadline,callback:function(t){e.$set(e.workForm,"provinceWholesaleCheckDeadline",t)},expression:"workForm.provinceWholesaleCheckDeadline"}})],1)],1)],1),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("零售企业")]),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成检查不低于:","label-width":"140px",prop:"provinceRetailCheckTarget"}},[a("el-input",{staticClass:"input-with-select",model:{value:e.workForm.provinceRetailCheckTarget,callback:function(t){e.$set(e.workForm,"provinceRetailCheckTarget",t)},expression:"workForm.provinceRetailCheckTarget"}},[a("el-select",{attrs:{slot:"append"},slot:"append",model:{value:e.workForm.provinceRetailCheckTargetUnit,callback:function(t){e.$set(e.workForm,"provinceRetailCheckTargetUnit",t)},expression:"workForm.provinceRetailCheckTargetUnit"}},[a("el-option",{attrs:{label:"家",value:1}}),e._v(" "),a("el-option",{attrs:{label:"%",value:2}})],1)],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成期限:","label-width":"140px",prop:"provinceRetailCheckDeadline"}},[a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择截止日期"},model:{value:e.workForm.provinceRetailCheckDeadline,callback:function(t){e.$set(e.workForm,"provinceRetailCheckDeadline",t)},expression:"workForm.provinceRetailCheckDeadline"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"form-part"},[a("h3",[e._v("地(州、市)级检查指标")]),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("批发企业")]),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成检查不低于:","label-width":"140px",prop:"cityWholesaleCheckTarget"}},[a("el-input",{staticClass:"input-with-select",model:{value:e.workForm.cityWholesaleCheckTarget,callback:function(t){e.$set(e.workForm,"cityWholesaleCheckTarget",t)},expression:"workForm.cityWholesaleCheckTarget"}},[a("template",{slot:"append"},[e._v("%")])],2)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成期限:","label-width":"140px",prop:"cityWholesaleCheckDeadline"}},[a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择截止日期"},model:{value:e.workForm.cityWholesaleCheckDeadline,callback:function(t){e.$set(e.workForm,"cityWholesaleCheckDeadline",t)},expression:"workForm.cityWholesaleCheckDeadline"}})],1)],1)],1),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("零售企业")]),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成检查不低于:","label-width":"140px",prop:"cityRetailCheckTarget"}},[a("el-input",{staticClass:"input-with-select",model:{value:e.workForm.cityRetailCheckTarget,callback:function(t){e.$set(e.workForm,"cityRetailCheckTarget",t)},expression:"workForm.cityRetailCheckTarget"}},[a("template",{slot:"append"},[e._v("%")])],2)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成期限:","label-width":"140px",prop:"cityRetailCheckDeadline"}},[a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择截止日期"},model:{value:e.workForm.cityRetailCheckDeadline,callback:function(t){e.$set(e.workForm,"cityRetailCheckDeadline",t)},expression:"workForm.cityRetailCheckDeadline"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"form-part"},[a("h3",[e._v("区县级检查指标")]),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("批发企业")]),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成检查不低于:","label-width":"140px",prop:"areaWholesaleCheckTarget"}},[a("el-input",{staticClass:"input-with-select",model:{value:e.workForm.areaWholesaleCheckTarget,callback:function(t){e.$set(e.workForm,"areaWholesaleCheckTarget",t)},expression:"workForm.areaWholesaleCheckTarget"}},[a("template",{slot:"append"},[e._v("%")])],2)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成期限:","label-width":"140px",prop:"areaWholesaleCheckDeadline"}},[a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择截止日期"},model:{value:e.workForm.areaWholesaleCheckDeadline,callback:function(t){e.$set(e.workForm,"areaWholesaleCheckDeadline",t)},expression:"workForm.areaWholesaleCheckDeadline"}})],1)],1)],1),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("零售企业")]),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成检查不低于:","label-width":"140px",prop:"areaRetailCheckTarget"}},[a("el-input",{staticClass:"input-with-select",model:{value:e.workForm.areaRetailCheckTarget,callback:function(t){e.$set(e.workForm,"areaRetailCheckTarget",t)},expression:"workForm.areaRetailCheckTarget"}},[a("template",{slot:"append"},[e._v("%")])],2)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"完成期限:","label-width":"140px",prop:"areaRetailCheckDeadline"}},[a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择截止日期"},model:{value:e.workForm.areaRetailCheckDeadline,callback:function(t){e.$set(e.workForm,"areaRetailCheckDeadline",t)},expression:"workForm.areaRetailCheckDeadline"}})],1)],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"企业自查期限:","label-width":"140px",prop:"enterpriseSelfCheckDeadline"}},[a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},model:{value:e.workForm.enterpriseSelfCheckDeadline,callback:function(t){e.$set(e.workForm,"enterpriseSelfCheckDeadline",t)},expression:"workForm.enterpriseSelfCheckDeadline"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.resetForm("workForm")}}},[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.confirmSend("workForm")}}},[e._v("确认下发")])],1)],1)},[],!1,null,"16c65451",null);u.options.__file="sendWork.vue";t.default=u.exports},48:function(e,t){},"4QxH":function(e,t,a){var n,r=r||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=function(){return e.URL||e.webkitURL||e},a=e.document.createElementNS("http://www.w3.org/1999/xhtml","a"),n="download"in a,r=/constructor/i.test(e.HTMLElement)||e.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},o=function(e){setTimeout(function(){"string"==typeof e?t().revokeObjectURL(e):e.remove()},4e4)},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},l=function(l,u,d){d||(l=c(l));var p,h=this,m="application/octet-stream"===l.type,v=function(){!function(e,t,a){for(var n=(t=[].concat(t)).length;n--;){var r=e["on"+t[n]];if("function"==typeof r)try{r.call(e,a||e)}catch(e){s(e)}}}(h,"writestart progress write writeend".split(" "))};if(h.readyState=h.INIT,n)return p=t().createObjectURL(l),void setTimeout(function(){a.href=p,a.download=u,function(e){var t=new MouseEvent("click");e.dispatchEvent(t)}(a),v(),o(p),h.readyState=h.DONE});!function(){if((i||m&&r)&&e.FileReader){var a=new FileReader;return a.onloadend=function(){var t=i?a.result:a.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,h.readyState=h.DONE,v()},a.readAsDataURL(l),void(h.readyState=h.INIT)}p||(p=t().createObjectURL(l)),m?e.location.href=p:e.open(p,"_blank")||(e.location.href=p);h.readyState=h.DONE,v(),o(p)}()},u=l.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,a){return t=t||e.name||"download",a||(e=c(e)),navigator.msSaveOrOpenBlob(e,t)}:(u.abort=function(){},u.readyState=u.INIT=0,u.WRITING=1,u.DONE=2,u.error=u.onwritestart=u.onprogress=u.onwrite=u.onabort=u.onerror=u.onwriteend=null,function(e,t,a){return new l(e,t||e.name||"download",a)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */void 0!==e&&e.exports?e.exports.saveAs=r:null!==a("hLur")&&null!==a("OwJJ")&&(void 0===(n=function(){return r}.call(t,a,t,e))||(e.exports=n))},"508B":function(e,t,a){},"6cWT":function(e,t,a){"use strict";var n=a("508B");a.n(n).a},78:function(e,t){},79:function(e,t){},BtOm:function(e,t,a){"use strict";var n=a("u3wc");a.n(n).a},C22d:function(e,t,a){"use strict";a.r(t);var n=a("cLjf"),r=a.n(n),i=a("hDQ3"),s=a.n(i),o=a("bS4n"),c=a.n(o),l=a("8t5x"),u=(a("Na1v"),a("7Qib"),a("8fCU"),a("jMlj")),d=a("FB7N"),p=a("Lj9S"),h=a("nK5B"),m={name:"wholesaleForm",components:{checkDetails:u.default,feedbackDetails:d.default},data:function(){return{recordTotal:0,pageSize:10,pageTotal:0,currentPage:1,unitType:null,taskId:null,taskName:"",enterpriseType:null,selfcheckStatus:null,thislevelCheckStatus:null,listLoading:!1,showFilter:!1,search:{name:null,province:null,city:null,area:null,isRisky:null},tableKey:0,options:p.regionData,selectedOptions:[],enterpriseCount:null,selfCheckEnterpriseCount:null,noSelfCheckEnterpriseCount:null,thislevelAlreadyCheckCount:null,thislevelCompletionRateRequire:null,thislevelCompletionRateRequireUnit:null,thislevelNoCheckCount:null,thislevelCompletionRate:null,checkData:[]}},created:function(){this.getCheckUnitType(),this.getCheckTask()},computed:c()({},Object(l.b)(["userType","name"])),methods:{getCheckUnitType:function(){var e=this;return s()(r.a.mark(function t(){var a,n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,Object(h.a)();case 3:"200"===(n=t.sent).data.code?a.unitType=n.data.result.checkUnitType:a.$message({type:"warning",message:n.data.message});case 5:case"end":return t.stop()}},t,e)}))()},getCheckTask:function(){var e=this;return s()(r.a.mark(function t(){var a,n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=e).listLoading=!0,t.next=4,Object(h.d)();case 4:"200"===(n=t.sent).data.code?(a.taskId=n.data.result.specialCheckTaskSimplifyInfos[0].id,a.taskName=n.data.result.specialCheckTaskSimplifyInfos[0].taskName,a.enterpriseType=1,a.getEnterpriseCompleteInfoList()):a.$message({type:"warning",message:n.data.message}),a.listLoading=!1;case 7:case"end":return t.stop()}},t,e)}))()},getEnterpriseCompleteInfoList:function(){var e=this;return s()(r.a.mark(function t(){var a,n,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=e).listLoading=!0,""==a.search.name&&(a.search.name=null),n={pageIndex:a.currentPage,pageSize:a.pageSize,taskId:a.taskId,enterpriseType:a.enterpriseType,selfcheckStatus:a.selfcheckStatus,thislevelCheckStatus:a.thislevelCheckStatus,enterpriseName:a.search.name,enterpriseProvince:a.search.province,enterpriseCity:a.search.city,enterpriseArea:a.search.area,hiddendangerStatus:a.search.isRisky},t.next=6,Object(h.c)(n);case 6:"200"===(i=t.sent).data.code?(a.enterpriseCount=i.data.result.enterpriseCount,a.selfCheckEnterpriseCount=i.data.result.selfCheckEnterpriseCount,a.noSelfCheckEnterpriseCount=i.data.result.noSelfCheckEnterpriseCount,a.thislevelAlreadyCheckCount=i.data.result.thislevelAlreadyCheckCount,a.thislevelNoCheckCount=i.data.result.thislevelNoCheckCount,a.thislevelCompletionRateRequire=i.data.result.thislevelCompletionRateRequire,a.thislevelCompletionRateRequireUnit=i.data.result.thislevelCompletionRateRequireUnit,a.thislevelCompletionRate=i.data.result.thislevelCompletionRate,a.checkData=i.data.result.iPage.records,a.recordTotal=i.data.result.iPage.total):a.$message({type:"warning",message:i.data.message}),a.listLoading=!1;case 9:case"end":return t.stop()}},t,e)}))()},openSearch:function(){var e=this;e.showFilter=!e.showFilter,0==e.showFilter&&e.resetSearch()},handleSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.getEnterpriseCompleteInfoList()},handleCurrentChange:function(e){this.currentPage=e,this.getEnterpriseCompleteInfoList()},locationChange:function(e){var t=this;t.selfcheckStatus=null,t.thislevelCheckStatus=null,t.search.province=e[0],t.search.city=e[1]?e[1]:null,t.search.area=e[2]?e[2]:null,t.getEnterpriseCompleteInfoList()},changeRadio:function(){var e=this;e.selfcheckStatus=null,e.thislevelCheckStatus=null,e.getEnterpriseCompleteInfoList()},searchData:function(){this.getEnterpriseCompleteInfoList()},resetSearch:function(){var e=this;e.selfcheckStatus=null,e.thislevelCheckStatus=null,e.search={name:null,province:null,city:null,area:null,isRisky:null},e.selectedOptions=[],e.getEnterpriseCompleteInfoList()},toSelfEnterprise:function(e){var t=this;t.thislevelCheckStatus=null,t.selfcheckStatus=e,t.getEnterpriseCompleteInfoList()},toLevelEnterprise:function(e){var t=this;t.thislevelCheckStatus=e,t.selfcheckStatus=null,t.getEnterpriseCompleteInfoList()},viewDetails:function(e){var t=this;t.$refs.report.id=e.id,t.$refs.report.getEnterpriseInfo(),t.$refs.report.enterpriseType=t.enterpriseType,t.$refs.report.dialogVisible=!0},toFeedback:function(e){var t=this;t.$refs.feedback.corpInfo=e,t.$refs.feedback.id=e.id,t.$refs.feedback.feedbackForm.id=e.id,t.$refs.feedback.getSpotCheckReportInfo(),t.$refs.feedback.unitType=t.unitType,t.$refs.feedback.enterpriseType=t.enterpriseType,t.$refs.feedback.getSpotCheckReportInfo(),t.$refs.feedback.dialogVisible=!0}}},v=(a("m89c"),a("ZrdR")),f=Object(v.a)(m,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"table-tit"},[a("h2",{directives:[{name:"show",rawName:"v-show",value:1==e.enterpriseType,expression:"enterpriseType == 1"}]},[e._v(e._s(e.taskName)+"(批发)")]),e._v(" "),a("h2",{directives:[{name:"show",rawName:"v-show",value:2==e.enterpriseType,expression:"enterpriseType == 2"}]},[e._v(e._s(e.taskName)+"(零售)")]),e._v(" "),a("span",[e._v("(检查一家反馈一家,没有检查出隐患问题的也要登记反馈)")])]),e._v(" "),a("div",{staticClass:"control-bar"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.enterpriseType,expression:"enterpriseType == 1"}]},[e._v("\n                批发企业共计"),a("span",{staticClass:"point-data",on:{click:function(t){e.resetSearch()}}},[e._v(e._s(e.enterpriseCount))]),e._v("家,其中:已自查"),a("span",{staticClass:"point-data",on:{click:function(t){e.toSelfEnterprise(1)}}},[e._v(e._s(e.selfCheckEnterpriseCount))]),e._v("家,未自查"),a("span",{staticClass:"undone point-data",on:{click:function(t){e.toSelfEnterprise(0)}}},[e._v(e._s(e.noSelfCheckEnterpriseCount))]),e._v("家;本级已经抽查"),a("span",{staticClass:"point-data",on:{click:function(t){e.toLevelEnterprise(1)}}},[e._v(e._s(e.thislevelAlreadyCheckCount))]),e._v("家,未检查"),a("span",{staticClass:"undone point-data",on:{click:function(t){e.toLevelEnterprise(0)}}},[e._v(e._s(e.thislevelNoCheckCount))]),e._v("家,检查覆盖要求"),a("span",{staticClass:"undone"},[e._v(e._s(e.thislevelCompletionRateRequire)+e._s(1==e.thislevelCompletionRateRequireUnit?"家":"%"))]),e._v(",完成率"),a("span",[e._v(e._s(null==e.thislevelCompletionRate?"--":e.thislevelCompletionRate+"%"))]),e._v("。\n            ")]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:2==e.enterpriseType,expression:"enterpriseType == 2"}]},[e._v("\n                零售企业共计"),a("span",{staticClass:"point-data",on:{click:function(t){e.resetSearch()}}},[e._v(e._s(e.enterpriseCount))]),e._v("家,其中:已自查"),a("span",{staticClass:"point-data",on:{click:function(t){e.toSelfEnterprise(1)}}},[e._v(e._s(e.selfCheckEnterpriseCount))]),e._v("家,未自查"),a("span",{staticClass:"undone point-data",on:{click:function(t){e.toSelfEnterprise(0)}}},[e._v(e._s(e.noSelfCheckEnterpriseCount))]),e._v("家;本级已经抽查"),a("span",{staticClass:"point-data",on:{click:function(t){e.toLevelEnterprise(1)}}},[e._v(e._s(e.thislevelAlreadyCheckCount))]),e._v("家,未检查"),a("span",{staticClass:"undone point-data",on:{click:function(t){e.toLevelEnterprise(0)}}},[e._v(e._s(e.thislevelNoCheckCount))]),e._v("家,检查覆盖要求"),a("span",{staticClass:"undone"},[e._v(e._s(e.thislevelCompletionRateRequire)+e._s(1==e.thislevelCompletionRateRequireUnit?"家":"%"))]),e._v(",完成率"),a("span",[e._v(e._s(null==e.thislevelCompletionRate?"--":e.thislevelCompletionRate+"%"))]),e._v("。\n            ")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.openSearch()}}},[e._v(e._s(e.showFilter?"关闭查询":"自定义查询"))])],1),e._v(" "),a("transition",{attrs:{name:"el-zoom-in-top"}},[a("el-row",{directives:[{name:"show",rawName:"v-show",value:e.showFilter,expression:"showFilter"}],attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("span",[e._v("单位名称:")]),e._v(" "),a("el-input",{staticClass:"carrier_search_input",model:{value:e.search.name,callback:function(t){e.$set(e.search,"name",t)},expression:"search.name"}})],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("span",[e._v("行政区划:")]),e._v(" "),a("el-cascader",{attrs:{options:e.options,props:{checkStrictly:!0,expandTrigger:"hover",value:"label"},separator:"-"},on:{change:e.locationChange},model:{value:e.selectedOptions,callback:function(t){e.selectedOptions=t},expression:"selectedOptions"}})],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("span",[e._v("自查是否有隐患:")]),e._v(" "),a("el-radio-group",{on:{input:function(t){e.changeRadio()}},model:{value:e.search.isRisky,callback:function(t){e.$set(e.search,"isRisky",t)},expression:"search.isRisky"}},[a("el-radio",{attrs:{label:1}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0}},[e._v("否")])],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary"},on:{click:function(t){e.searchData()}}},[e._v("查询")]),e._v(" "),a("el-button",{staticClass:"resetBtn",attrs:{plain:""},on:{click:function(t){e.resetSearch()}}},[e._v("重置")])],1)],1)],1)],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.checkData,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:"enterpriseName",align:"center",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{label:"联系电话",prop:"enterpriseOfficephone",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"库存数量/万箱",prop:"stockNum",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(1==t.row.hiddendangerStatus?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"自查填报时间",prop:"selfcheckReportTime",width:"130",align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"填报状态",prop:"selfcheckStatus",align:"center"},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:"自查详情",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.viewDetails(t.row)}}},[e._v("查看")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"反馈状态",prop:"thislevelCheckStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(1==t.row.thislevelCheckStatus?"已反馈":"未反馈"))])]}}])}),e._v(" "),0!=e.unitType?a("el-table-column",{attrs:{fixed:"right",label:1==e.unitType?"执法抽查":"执法检查",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toFeedback(t.row)}}},[e._v("情况反馈")])]}}])}):e._e()],1),e._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right",margin:"20px 0 0"},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("check-details",{ref:"report"}),e._v(" "),a("feedback-details",{ref:"feedback"})],1)},[],!1,null,"d5490f30",null);f.options.__file="wholesaleForm.vue";t.default=f.exports},G6aV:function(e,t,a){"use strict";a.r(t);var n=a("cLjf"),r=a.n(n),i=a("hDQ3"),s=a.n(i),o=a("bS4n"),c=a.n(o),l=a("8t5x"),u=(a("jJIE"),a("Na1v"),a("7Qib"),a("8fCU"),a("nK5B")),d={name:"areaForm",components:{AreaEnterprises:a("cjnV").default},data:function(){return{recordTotal:0,pageSize:10,currentPage:1,unitType:null,taskId:null,enterpriseType:null,enterpriseCity:"",enterpriseArea:"",listLoading:!1,tableKey:0,checkData:[]}},created:function(){var e=this;e.getCheckUnitType(),e.taskId&&e.getAreaStatistics()},computed:c()({},Object(l.b)(["userType","name"])),methods:{getCheckUnitType:function(){var e=this;return s()(r.a.mark(function t(){var a,n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=e).listLoading=!0,t.next=4,Object(u.a)();case 4:"200"===(n=t.sent).data.code?a.unitType=n.data.result.checkUnitType:a.$message({type:"warning",message:n.data.message}),a.listLoading=!1;case 7:case"end":return t.stop()}},t,e)}))()},getAreaStatistics:function(){var e=this;return s()(r.a.mark(function t(){var a,n,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n={id:(a=e).taskId,enterpriseType:a.enterpriseType,enterpriseCity:a.enterpriseCity,enterpriseArea:a.enterpriseArea,pageIndex:a.currentPage,pageSize:a.pageSize},t.next=4,Object(u.b)(n);case 4:"200"===(i=t.sent).data.code?(a.checkData=i.data.result.records,a.recordTotal=i.data.result.total):a.$message({type:"warning",message:i.data.message});case 6:case"end":return t.stop()}},t,e)}))()},handleSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.getAreaStatistics()},handleCurrentChange:function(e){this.currentPage=e,this.getAreaStatistics()},toEnterprises:function(e){this.$refs.enterPrises.checkList=e,this.$refs.enterPrises.enterpriseType=this.enterpriseType,this.$refs.enterPrises.dialogVisible=!0}}},p=(a("w9Iu"),a("ZrdR")),h=Object(p.a)(d,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table"},[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:"",id:"areaSheet","highlight-current-row":""}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"单位名称",prop:"enterpriseName",align:"center",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{label:"联系电话",prop:"enterpriseOfficephone",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"库存数量/万箱",prop:"stockNum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"库容量/万箱",prop:"storageCapacity",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(1==t.row.hiddendangerStatus?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否自查",prop:"selfcheckStatus",align:"center"},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:"checkedTimes",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"隐患数量",prop:"hiddendangerSum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"整改数量",prop:"rectifyHiddendangerSum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"重大整改数量",prop:"rectifyMajorHiddendangerNum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right",label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEnterprises(t.row.selfAndcheckInfos)}}},[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,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("area-enterprises",{ref:"enterPrises"})],1)},[],!1,null,"7ae0ca36",null);h.options.__file="areaForm.vue";t.default=h.exports},KGqC:function(e,t,a){"use strict";a.r(t);var n=a("cLjf"),r=a.n(n),i=a("hDQ3"),s=a.n(i),o=a("bS4n"),c=a.n(o),l=(a("jJIE"),a("7Qib"),a("8t5x")),u=(a("4f16"),a("X4fA"),a("C22d")),d=a("s954"),p=a("1Lg4"),h=a("nK5B"),m={name:"specialCheck",components:{wholesaleForm:u.default,sumSheet:d.default,sendWork:p.default},data:function(){return{curTab:1,unitType:null,taskMenu:[],taskId:null,openeds:[]}},created:function(){this.getCheckUnitType(),this.getSpecialCheckTask()},mounted:function(){},computed:c()({},Object(l.b)(["userType","name"])),methods:{getCheckUnitType:function(){var e=this;return s()(r.a.mark(function t(){var a,n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,Object(h.a)();case 3:"200"===(n=t.sent).data.code?a.unitType=n.data.result.checkUnitType:a.$message({type:"warning",message:n.data.message});case 5:case"end":return t.stop()}},t,e)}))()},getSpecialCheckTask:function(){var e=this;return s()(r.a.mark(function t(){var a,n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,Object(h.d)();case 3:"200"===(n=t.sent).data.code?(a.taskMenu=n.data.result.specialCheckTaskSimplifyInfos,a.openeds[0]=a.taskMenu[0].id+"-"+a.taskMenu[0].taskName,a.openeds[1]="1"):a.$message({type:"warning",message:n.data.message});case 5:case"end":return t.stop()}},t,e)}))()},menuSelect:function(e,t){var a=this;"1"==e.split("-")[1]||"2"==e.split("-")[1]?(a.$refs.wholesale.taskId=Number(t[0].split("-")[0]),a.$refs.wholesale.taskName=t[0].split("-")[1],a.$refs.wholesale.enterpriseType=Number(e.split("-")[1]),a.$refs.wholesale.getEnterpriseCompleteInfoList()):(a.$refs.sumSheet.taskId=Number(t[0].split("-")[0]),a.$refs.sumSheet.taskName=t[0].split("-")[1],a.$refs.sumSheet.enterpriseCity="",a.$refs.sumSheet.enterpriseArea="",0==a.unitType?a.$refs.sumSheet.sheetStatus=1:a.$refs.sumSheet.sheetStatus=a.unitType,a.$refs.sumSheet.activeTab=1,a.$refs.sumSheet.getDataStatistics()),a.curTab=Number(e.split("-")[1])},sendJob:function(){this.$refs.send.dialogVisible=!0}}},v=(a("d6fX"),a("ZrdR")),f=Object(v.a)(m,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:"menu-area"},[1==e.unitType?a("el-button",{staticClass:"add-btn",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){e.sendJob()}}},[e._v("新任务下发")]):e._e(),e._v(" "),e.taskMenu&&e.taskMenu.length>0?a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"0-1","background-color":"#eee","text-color":"#333","unique-opened":"","active-text-color":"#034EA2"},on:{select:e.menuSelect}},e._l(e.taskMenu,function(t,n){return a("el-submenu",{key:n,attrs:{index:t.id+"-"+t.taskName}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-s-order"}),e._v(" "),a("span",[e._v(e._s(t.taskName))])]),e._v(" "),a("el-menu-item",{attrs:{index:n+"-1"}},[e._v("安全检查反馈情况(批发)")]),e._v(" "),a("el-menu-item",{attrs:{index:n+"-2"}},[e._v("安全检查反馈情况(零售)")]),e._v(" "),0==e.unitType||1==e.unitType||2==e.unitType?a("el-menu-item",{attrs:{index:n+"-3"}},[e._v("安全检查情况汇总")]):e._e()],2)})):a("div",{staticStyle:{background:"#eee",color:"#333","font-size":"16px",padding:"20px 10px"}},[e._v("\n            暂无任务\n        ")])],1),e._v(" "),e.taskMenu&&e.taskMenu.length>0?a("div",{staticClass:"table-area"},[a("wholesale-form",{directives:[{name:"show",rawName:"v-show",value:1==e.curTab||2==e.curTab,expression:"curTab == 1 || curTab == 2"}],ref:"wholesale"}),e._v(" "),a("sum-sheet",{directives:[{name:"show",rawName:"v-show",value:3==e.curTab,expression:"curTab == 3"}],ref:"sumSheet"})],1):a("div",{staticClass:"table-area",staticStyle:{"text-align":"center"}},[e._v("暂无任务信息")]),e._v(" "),a("send-work",{ref:"send"})],1)},[],!1,null,"2f95ffa8",null);f.options.__file="index.vue";t.default=f.exports},LcZa:function(e,t,a){},Na1v:function(e,t,a){"use strict";a.d(t,"c",function(){return i}),a.d(t,"e",function(){return s}),a.d(t,"h",function(){return o}),a.d(t,"y",function(){return c}),a.d(t,"j",function(){return l}),a.d(t,"x",function(){return u}),a.d(t,"f",function(){return d}),a.d(t,"t",function(){return p}),a.d(t,"k",function(){return h}),a.d(t,"d",function(){return m}),a.d(t,"q",function(){return v}),a.d(t,"l",function(){return f}),a.d(t,"g",function(){return k}),a.d(t,"a",function(){return _}),a.d(t,"o",function(){return g}),a.d(t,"i",function(){return C}),a.d(t,"r",function(){return S}),a.d(t,"n",function(){return y}),a.d(t,"w",function(){return b}),a.d(t,"u",function(){return w}),a.d(t,"v",function(){return R}),a.d(t,"s",function(){return x}),a.d(t,"p",function(){return T}),a.d(t,"m",function(){return N}),a.d(t,"b",function(){return H}),a.d(t,"z",function(){return L});var n=a("X4fA"),r=a("t3Un");function i(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/getApply",method:"get",params:e||{}})}function s(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/getConfirm",method:"get",params:e||{}})}function o(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/addApply",method:"post",data:e})}function c(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/putApply",method:"post",data:e})}function l(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/delApply",method:"post",data:e})}function u(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/submitApply",method:"post",data:e})}function d(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/confirmProduct",method:"post",data:e})}function p(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/rejectProduct",method:"post",data:e})}function h(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/exportRFID",method:"post",data:e})}function m(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/batchBarCode",method:"post",data:e})}function v(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/printBarCode",method:"post",data:e})}function f(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishBox?code="+e,method:"get"})}function k(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/contractUnitList",method:"post",data:e})}function _(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/addContractUnit",method:"post",data:e})}function g(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/contractUnit",method:"post",data:e})}function C(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/delContractUnit",method:"post",params:e})}function S(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/zplPrint",method:"post",data:e})}function y(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxPrint",method:"post",data:e})}function b(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishInnerPrint",method:"post",data:e})}function w(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxBatch",method:"post",data:e})}function R(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxBatchPrint",method:"post",data:e})}function x(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/produce",method:"post",data:e})}function T(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/getControlParams",method:"get",params:e||{}})}function N(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/getOwnSelectType?type="+e,method:"get"})}function H(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/addControlParams",method:"post",data:e})}function L(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/updateControlParams",method:"post",data:e})}},OwJJ:function(e,t){(function(t){e.exports=t}).call(this,{})},RQgT:function(e,t,a){"use strict";a.r(t);var n=a("cLjf"),r=a.n(n),i=a("hDQ3"),s=a.n(i),o=(a("7Qib"),a("nK5B")),c={name:"checkEnterprises",components:{supervisionDetails:a("9c/4").default},data:function(){return{taskId:null,enterpriseType:null,checkUnitType:null,enterpriseCity:"",enterpriseArea:"",listLoading:!1,recordTotal:0,pageSize:10,pageIndex:1,tableKey:0,dialogVisible:!1,checkList:[]}},created:function(){},watch:{},methods:{handleSizeChange:function(e){this.pageSize=e,this.pageIndex=1,this.getEnterprises()},handleCurrentChange:function(e){this.pageIndex=e,this.getEnterprises()},getEnterprises:function(){var e=this;return s()(r.a.mark(function t(){var a,n,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=e).listLoading=!0,n={taskId:a.taskId,enterpriseType:a.enterpriseType,enterpriseCity:a.enterpriseCity,enterpriseArea:a.enterpriseArea,pageIndex:a.pageIndex,pageSize:a.pageSize},t.next=5,Object(o.e)(n);case 5:"200"===(i=t.sent).data.code?(a.checkList=i.data.result.records,a.recordTotal=i.data.result.total):a.$message({type:"warning",message:i.data.message}),a.listLoading=!1;case 8:case"end":return t.stop()}},t,e)}))()},toCheck:function(e){var t=this;t.$refs.report.id=e,t.$refs.report.enterpriseType=t.enterpriseType,t.$refs.report.checkUnitType=t.checkUnitType,t.$refs.report.getEnterpriseInfo(),t.$refs.report.dialogVisible=!0}}},l=(a("tI2k"),a("ZrdR")),u=Object(l.a)(c,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:"enterpriseName",align:"center",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{label:"检查单位",prop:"checkName",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"隐患总数",prop:"hiddendangerSum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"重大隐患总数",prop:"majorHiddendangerNum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"整改数量",prop:"completedRectifyHiddendangerSum",width:"130",align:"center",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"重大隐患整改数量",prop:"completedRectifyMajorHiddendangerNum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"是否外埠检查",align:"center"}},[e._v("否")]),e._v(" "),a("el-table-column",{attrs:{label:"检查时间",prop:"checkTime",align:"center"}}),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[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toCheck(t.row.id)}}},[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.pageIndex,"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",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("确认")])],1),e._v(" "),a("supervision-details",{ref:"report"})],1)},[],!1,null,"a5732c64",null);u.options.__file="checkEnterprises.vue";t.default=u.exports},RtRG:function(e,t,a){"use strict";var n=a("yd5Q");a.n(n).a},alSZ:function(e,t,a){},d6fX:function(e,t,a){"use strict";var n=a("pRJo");a.n(n).a},hLur:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},m89c:function(e,t,a){"use strict";var n=a("LcZa");a.n(n).a},pRJo:function(e,t,a){},s954:function(e,t,a){"use strict";a.r(t);var n=a("LGhb"),r=a.n(n),i=a("cLjf"),s=a.n(i),o=a("hDQ3"),c=a.n(o),l=a("bS4n"),u=a.n(l),d=a("8t5x"),p=(a("jJIE"),a("Na1v"),a("7Qib"),a("8fCU"),a("nK5B")),h=a("G6aV"),m=a("RQgT"),v=a("4QxH"),f=a.n(v),k=a("AJLq"),_=a.n(k),g={name:"sumSheet",components:{areaForm:h.default,checkEnterprises:m.default},data:function(){return{taskId:null,taskName:"",unitType:null,sheetStatus:1,recordTotal:0,pageSize:10,currentPage:1,listLoading:!1,activeTab:1,enterpriseCity:"",enterpriseArea:"",sum:{enterpriseSum:null,validEnterpriseNum:null,selfCheckEnterpriseNum:null,selfCheckRateRequire:100,validSelfCheckEnterpriseNum:null,stockNum:null,storageCapacity:null,selfhiddendangerSum:null,selfmajorHiddendangerNum:null,selfcompletedRectifyHiddendangerSum:null,selfcompletedRectifyMajorHiddendangerNum:null,spotCheckEnterpriseNum:null,spotCheckRateRequire:100,spotCheckHiddendangerSum:null,spotCheckMajorHiddendangerNum:null,spotCheckCompletedRectifyHiddendangerSum:null,spotCheckCompletedRectifyMajorHiddendangerNum:null,revokeLicenseEnterpriseSum:null,detainLicenseSum:null,amerceEnterpriseNum:null,amerceMoneySum:null},thisLevelStatistic:{thisLevelSpotCheckinfo:{},thisLevelSpotCheckHiddendangerinfo:{}},institutionalData:[]}},created:function(){this.getCheckUnitType()},computed:u()({},Object(d.b)(["userType","name"])),methods:{getCheckUnitType:function(){var e=this;return c()(s.a.mark(function t(){var a,n;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=e).listLoading=!0,t.next=4,Object(p.a)();case 4:"200"===(n=t.sent).data.code?(a.unitType=n.data.result.checkUnitType,a.sheetStatus=n.data.result.checkUnitType):a.$message({type:"warning",message:n.data.message}),a.listLoading=!1;case 7:case"end":return t.stop()}},t,e)}))()},getSum:function(e){return e.reduce(function(e,t){return e+t})},getDataStatistics:function(){var e=this;return c()(s.a.mark(function t(){var a,n,i,o;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,n=e.$loading({lock:!0,target:document.querySelector(".tabpanel"),text:"正在获取汇总数据",spinner:"el-icon-loading",fullscreen:!1}),i={id:a.taskId,enterpriseType:a.activeTab,enterpriseCity:a.enterpriseCity,enterpriseArea:a.enterpriseArea,pageIndex:a.currentPage,pageSize:a.pageSize},t.next=5,Object(p.b)(i);case 5:"200"===(o=t.sent).data.code?(a.thisLevelStatistic=o.data.result.thisLevelInstitutionalDataInfo,a.institutionalData=o.data.result.institutionalDataInfo,a.sum.enterpriseSum=a.getSum(r()(a.institutionalData,function(e){return e.enterpriseSum})),a.sum.validEnterpriseNum=a.getSum(r()(a.institutionalData,function(e){return e.validEnterpriseNum})),a.sum.selfCheckEnterpriseNum=a.getSum(r()(a.institutionalData,function(e){return e.selfCheckEnterpriseNum})),a.sum.validSelfCheckEnterpriseNum=a.getSum(r()(a.institutionalData,function(e){return e.validSelfCheckEnterpriseNum})),a.sum.stockNum=a.getSum(r()(a.institutionalData,function(e){return e.stockNum})).toFixed(2),a.sum.storageCapacity=a.getSum(r()(a.institutionalData,function(e){return e.storageCapacity})).toFixed(2),a.sum.selfhiddendangerSum=a.getSum(r()(a.institutionalData,function(e){return e.hiddendangerSum})),a.sum.selfmajorHiddendangerNum=a.getSum(r()(a.institutionalData,function(e){return e.majorHiddendangerNum})),a.sum.selfcompletedRectifyHiddendangerSum=a.getSum(r()(a.institutionalData,function(e){return e.completedRectifyHiddendangerSum})),a.sum.selfcompletedRectifyMajorHiddendangerNum=a.getSum(r()(a.institutionalData,function(e){return e.completedRectifyMajorHiddendangerNum})),1==a.sheetStatus?(a.sum.spotCheckEnterpriseNum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckinfo.spotCheckEnterpriseNum})),a.sum.spotCheckHiddendangerSum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckHiddendangerinfo.spotCheckHiddendangerSum})),a.sum.spotCheckMajorHiddendangerNum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckHiddendangerinfo.spotCheckMajorHiddendangerNum})),a.sum.spotCheckCompletedRectifyHiddendangerSum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckHiddendangerinfo.spotCheckCompletedRectifyHiddendangerSum})),a.sum.spotCheckCompletedRectifyMajorHiddendangerNum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckHiddendangerinfo.spotCheckCompletedRectifyMajorHiddendangerNum})),a.sum.revokeLicenseEnterpriseSum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckinfo.revokeLicenseEnterpriseSum})),a.sum.detainLicenseSum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckinfo.detainLicenseSum})),a.sum.amerceEnterpriseNum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckinfo.amerceEnterpriseNum})),a.sum.amerceMoneySum=a.getSum(a.institutionalData.map(function(e){return e.citySpotCheckinfo.amerceMoneySum}))):(a.sum.spotCheckEnterpriseNum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckinfo.spotCheckEnterpriseNum})),a.sum.spotCheckHiddendangerSum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckHiddendangerinfo.spotCheckHiddendangerSum})),a.sum.spotCheckMajorHiddendangerNum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckHiddendangerinfo.spotCheckMajorHiddendangerNum})),a.sum.spotCheckCompletedRectifyHiddendangerSum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckHiddendangerinfo.spotCheckCompletedRectifyHiddendangerSum})),a.sum.spotCheckCompletedRectifyMajorHiddendangerNum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckHiddendangerinfo.spotCheckCompletedRectifyMajorHiddendangerNum})),a.sum.revokeLicenseEnterpriseSum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckinfo.revokeLicenseEnterpriseSum})),a.sum.detainLicenseSum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckinfo.detainLicenseSum})),a.sum.amerceEnterpriseNum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckinfo.amerceEnterpriseNum})),a.sum.amerceMoneySum=a.getSum(a.institutionalData.map(function(e){return e.areaSpotCheckinfo.amerceMoneySum})))):a.$message({type:"warning",message:o.data.message}),n.close();case 8:case"end":return t.stop()}},t,e)}))()},switchSheet:function(){var e=this;1==e.sheetStatus||2==e.sheetStatus?e.getDataStatistics():(e.$refs.areaSheet.enterpriseType=e.activeTab,e.$refs.areaSheet.getAreaStatistics())},checkEnterprise:function(e,t){var a=this;a.$refs.enterprises.taskId=a.taskId,a.$refs.enterprises.enterpriseType=a.activeTab,a.$refs.enterprises.enterpriseArea=t,1==a.sheetStatus?(a.$refs.enterprises.enterpriseCity=e,a.$refs.enterprises.checkUnitType="all"==t?3:2):(a.$refs.enterprises.enterpriseCity=null,a.$refs.enterprises.checkUnitType=3),a.$refs.enterprises.dialogVisible=!0,a.$refs.enterprises.getEnterprises()},toDig:function(e,t){var a=this;1==a.sheetStatus?(a.enterpriseCity=e,a.sheetStatus=2,a.getDataStatistics()):(a.sheetStatus=3,a.$refs.areaSheet.taskId=a.taskId,a.$refs.areaSheet.enterpriseType=a.activeTab,a.enterpriseArea=t,a.$refs.areaSheet.enterpriseArea=t,a.$refs.areaSheet.getAreaStatistics())},tableToExcel:function(e,t,a){var n={worksheet:"Worksheet",table:document.getElementById(e).innerHTML},r=document.createElement("a");r.href="data:application/vnd.ms-excel;base64,"+function(e){return window.btoa(unescape(encodeURIComponent(e)))}(function(e,t){return e.replace(/{(\w+)}/g,function(e,a){return t[a]})}('<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta charset="UTF-8">\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e</head><body><table>{table}</table></body></html>',n)),r.download=a+").xls",r.click()},exportSheet:function(){var e=this,t=e.taskName+(1==e.activeTab?"批发":"零售")+"环节信息报送汇总表("+(1==e.sheetStatus?"省级层面":2==e.sheetStatus?"地(州、市)级层面":"区县级");if(1==e.sheetStatus||2==e.sheetStatus)e.tableToExcel("tableExcel","export",t);else{var a=_.a.utils.table_to_book(document.querySelector("#areaSheet")),n=_.a.write(a,{bookType:"xlsx",bookSST:!0,type:"array"});try{f.a.saveAs(new Blob([n],{type:"application/octet-stream"}),t+").xlsx")}catch(e){"undefined"!=typeof console&&console.log(e,n)}}}}},C=(a("RtRG"),a("ZrdR")),S=Object(C.a)(g,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table"},[a("div",{staticClass:"table_content"},[a("div",{staticStyle:{display:"flex","justify-content":"center"}},[a("el-radio-group",{on:{input:function(t){e.switchSheet()}},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[a("el-radio-button",{attrs:{label:1}},[e._v("批发")]),e._v(" "),a("el-radio-button",{attrs:{label:2}},[e._v("零售")])],1)],1),e._v(" "),a("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center",margin:"10px 0 20px",height:"40px"}},[a("div",{staticStyle:{width:"140px"}}),e._v(" "),a("h2",{staticStyle:{"text-align":"center",margin:"0"}},[e._v(e._s(e.taskName)+e._s(1==e.activeTab?"批发":"零售")+"环节信息报送汇总表("+e._s(1==e.sheetStatus?"省级层面":2==e.sheetStatus?"地(州、市)级层面":"区县级")+")")]),e._v(" "),a("el-button",{staticStyle:{width:"140px"},attrs:{icon:"el-icon-download",size:"medium",type:"primary",id:"export"},on:{click:function(t){e.exportSheet()}}},[e._v("导出汇总表")])],1),e._v(" "),a("div",{staticClass:"tabpanel"},[e.thisLevelStatistic&&e.institutionalData&&e.institutionalData.length>0?a("table",{directives:[{name:"show",rawName:"v-show",value:1==e.sheetStatus||2==e.sheetStatus,expression:"sheetStatus==1||sheetStatus==2"}],staticClass:"data-table",attrs:{id:"tableExcel"}},[a("tr",[a("th",{attrs:{rowspan:"3"}},[e._v("序号")]),e._v(" "),a("th",{attrs:{rowspan:"3"}},[e._v(e._s(1==e.sheetStatus?"地(州、市)":"区县"))]),e._v(" "),a("th",{attrs:{colspan:"2"}},[e._v("企业基本情况")]),e._v(" "),a("th",{attrs:{colspan:"11"}},[e._v("企业自查及整改")]),e._v(" "),a("th",{attrs:{colspan:"9"}},[e._v("检查及整改情况")]),e._v(" "),a("th",{attrs:{colspan:"4"}},[e._v("执法处罚情况")])]),e._v(" "),e._m(0),e._v(" "),e._m(1),e._v(" "),a("tr",[a("td",{attrs:{colspan:"2"}},[e._v("合计")]),e._v(" "),a("td",[e._v(e._s(e.sum.enterpriseSum))]),e._v(" "),a("td",[e._v(e._s(e.sum.validEnterpriseNum))]),e._v(" "),a("td",[e._v(e._s(e.sum.selfCheckEnterpriseNum))]),e._v(" "),a("td",[e._v(e._s(e.sum.selfCheckRateRequire+"%"))]),e._v(" "),a("td",{class:e.sum.selfCheckEnterpriseNum/e.sum.validEnterpriseNum*100<e.sum.selfCheckRateRequire?"warning":""},[e._v("\n                        "+e._s(0==e.sum.validEnterpriseNum?"--":100*(e.sum.selfCheckEnterpriseNum/e.sum.validEnterpriseNum).toFixed(2)+"%")+"\n                    ")]),e._v(" "),a("td",[e._v(e._s(e.sum.validSelfCheckEnterpriseNum))]),e._v(" "),a("td",[e._v(e._s(e.sum.stockNum))]),e._v(" "),a("td",[e._v(e._s(e.sum.storageCapacity))]),e._v(" "),a("td",[e._v(e._s(e.sum.selfhiddendangerSum))]),e._v(" "),a("td",[e._v(e._s(e.sum.selfmajorHiddendangerNum))]),e._v(" "),a("td",[e._v(e._s(e.sum.selfcompletedRectifyHiddendangerSum))]),e._v(" "),a("td",[e._v(e._s(e.sum.selfcompletedRectifyMajorHiddendangerNum))]),e._v(" "),a("td",[e._v(e._s(0==e.sum.selfhiddendangerSum?"--":100*(e.sum.selfcompletedRectifyHiddendangerSum/e.sum.selfhiddendangerSum).toFixed(2)+"%"))]),e._v(" "),a("td",[e._v("--")]),e._v(" "),a("td",[e._v(e._s(e.sum.spotCheckEnterpriseNum))]),e._v(" "),a("td",[e._v(e._s(e.sum.spotCheckRateRequire+"%"))]),e._v(" "),a("td",{class:e.sum.spotCheckEnterpriseNum/e.sum.validEnterpriseNum*100<e.sum.spotCheckRateRequire?"warning":""},[e._v("\n                        "+e._s(100*(e.sum.spotCheckEnterpriseNum/e.sum.validEnterpriseNum).toFixed(2)+"%")+"\n                    ")]),e._v(" "),a("td",[e._v(e._s(e.sum.spotCheckHiddendangerSum))]),e._v(" "),a("td",[e._v(e._s(e.sum.spotCheckMajorHiddendangerNum))]),e._v(" "),a("td",[e._v(e._s(e.sum.spotCheckCompletedRectifyHiddendangerSum))]),e._v(" "),a("td",[e._v(e._s(e.sum.spotCheckCompletedRectifyMajorHiddendangerNum))]),e._v(" "),a("td",[e._v("\n                        "+e._s(0==e.sum.spotCheckHiddendangerSum?"--":100*(e.sum.spotCheckCompletedRectifyHiddendangerSum/e.sum.spotCheckHiddendangerSum).toFixed(2)+"%")+"\n                    ")]),e._v(" "),a("td",[e._v(e._s(e.sum.revokeLicenseEnterpriseSum))]),e._v(" "),a("td",[e._v(e._s(e.sum.detainLicenseSum))]),e._v(" "),a("td",[e._v(e._s(e.sum.amerceEnterpriseNum))]),e._v(" "),a("td",[e._v(e._s(e.sum.amerceMoneySum))])]),e._v(" "),a("tr",[a("td",{attrs:{colspan:"2"}},[e._v(e._s(1==e.sheetStatus?"省本级":"地(州、市)本级"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.enterpriseSum?e.thisLevelStatistic.enterpriseSum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.validEnterpriseNum?e.thisLevelStatistic.validEnterpriseNum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.selfCheckEnterpriseNum?e.thisLevelStatistic.selfCheckEnterpriseNum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.selfCheckRateRequire?e.thisLevelStatistic.selfCheckRateRequire:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.selfCheckCompleteRate?e.thisLevelStatistic.selfCheckCompleteRate:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.validSelfCheckEnterpriseNum?e.thisLevelStatistic.validSelfCheckEnterpriseNum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.stockNum?e.thisLevelStatistic.stockNum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.storageCapacity?e.thisLevelStatistic.storageCapacity:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.hiddendangerSum?e.thisLevelStatistic.hiddendangerSum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.majorHiddendangerNum?e.thisLevelStatistic.majorHiddendangerNum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.completedRectifyHiddendangerSum?e.thisLevelStatistic.completedRectifyHiddendangerSum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.completedRectifyMajorHiddendangerNum?e.thisLevelStatistic.completedRectifyMajorHiddendangerNum:"--"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.hiddendangerRectifyRate?e.thisLevelStatistic.hiddendangerRectifyRate:"--"))]),e._v(" "),a("td",[e._v(e._s(1==e.sheetStatus?"省级":"地(州、市)级"))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckinfo.spotCheckEnterpriseNum))]),e._v(" "),a("td",[e._v("\n                        "+e._s("string"==typeof e.thisLevelStatistic.thisLevelSpotCheckinfo.spotCheckRateRequire?e.thisLevelStatistic.thisLevelSpotCheckinfo.spotCheckRateRequire:e.thisLevelStatistic.thisLevelSpotCheckinfo.spotCheckRateRequire+"%")+"\n                    ")]),e._v(" "),a("td",[e._v("\n                        "+e._s("string"==typeof e.thisLevelStatistic.thisLevelSpotCheckinfo.spotCheckCompleteRate?e.thisLevelStatistic.thisLevelSpotCheckinfo.spotCheckCompleteRate:e.thisLevelStatistic.thisLevelSpotCheckinfo.spotCheckCompleteRate+"%")+"\n                    ")]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckHiddendangerinfo.spotCheckHiddendangerSum))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckHiddendangerinfo.spotCheckMajorHiddendangerNum))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckHiddendangerinfo.spotCheckCompletedRectifyHiddendangerSum))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckHiddendangerinfo.spotCheckCompletedRectifyMajorHiddendangerNum))]),e._v(" "),a("td",[e._v("\n                        "+e._s(null==e.thisLevelStatistic.thisLevelSpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate?"--":e.thisLevelStatistic.thisLevelSpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate+"%")+"\n                    ")]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckinfo.revokeLicenseEnterpriseSum))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckinfo.detainLicenseSum))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckinfo.amerceEnterpriseNum))]),e._v(" "),a("td",[e._v(e._s(e.thisLevelStatistic.thisLevelSpotCheckinfo.amerceMoneySum))])]),e._v(" "),e._l(e.institutionalData,function(t,n){return e.institutionalData&&e.institutionalData.length>0?[t.citySpotCheckinfo||t.areaSpotCheckinfo?a("tr",[a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(n+1))]),e._v(" "),a("td",{staticClass:"point-item",attrs:{rowspan:1==e.sheetStatus?2:1},on:{click:function(a){e.toDig(t.enterpriseCity,t.enterpriseArea)}}},[e._v("\n                        "+e._s(1==e.sheetStatus?t.enterpriseCity:t.enterpriseArea)+"\n                    ")]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.enterpriseSum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.validEnterpriseNum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.selfCheckEnterpriseNum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.selfCheckRateRequire+"%"))]),e._v(" "),a("td",{class:t.selfCheckCompleteRate<t.selfCheckRateRequire?"warning":"",attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v("\n                        "+e._s(t.selfCheckCompleteRate+"%")+"\n                    ")]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.validSelfCheckEnterpriseNum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.stockNum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.storageCapacity))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.hiddendangerSum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.majorHiddendangerNum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.completedRectifyHiddendangerSum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(t.completedRectifyMajorHiddendangerNum))]),e._v(" "),a("td",{attrs:{rowspan:1==e.sheetStatus?2:1}},[e._v(e._s(null==t.hiddendangerRectifyRate?"--":t.hiddendangerRectifyRate+"%"))]),e._v(" "),a("td",[e._v(e._s(1==e.sheetStatus?"设区地(州、市)级":"县级"))]),e._v(" "),t.citySpotCheckinfo&&void 0!==t.citySpotCheckinfo.spotCheckEnterpriseNum||t.areaSpotCheckinfo&&void 0!==t.areaSpotCheckinfo.spotCheckEnterpriseNum?a("td",{staticClass:"point-item",on:{click:function(a){e.checkEnterprise(t.enterpriseCity,t.enterpriseArea)}}},[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckinfo.spotCheckEnterpriseNum:t.areaSpotCheckinfo.spotCheckEnterpriseNum)+"\n                    ")]):e._e(),e._v(" "),t.citySpotCheckinfo&&void 0!==t.citySpotCheckinfo.spotCheckRateRequire||t.areaSpotCheckinfo&&void 0!==t.areaSpotCheckinfo.spotCheckRateRequire?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckinfo.spotCheckRateRequire+"%":t.areaSpotCheckinfo.spotCheckRateRequire+"%")+"\n                    ")]):e._e(),e._v(" "),1==e.sheetStatus&&t.citySpotCheckinfo&&void 0!==t.citySpotCheckinfo.spotCheckCompleteRate?a("td",{class:t.citySpotCheckinfo.spotCheckCompleteRate<t.citySpotCheckinfo.spotCheckRateRequire?"warning":""},[e._v("\n                        "+e._s(null==t.citySpotCheckinfo.spotCheckCompleteRate?"--":t.citySpotCheckinfo.spotCheckCompleteRate+"%")+"\n                    ")]):a("td",{class:t.areaSpotCheckinfo.spotCheckCompleteRate<t.areaSpotCheckinfo.spotCheckRateRequire?"warning":""},[e._v("\n                        "+e._s(null==t.areaSpotCheckinfo.spotCheckCompleteRate?"--":t.areaSpotCheckinfo.spotCheckCompleteRate+"%")+"\n                    ")]),e._v(" "),t.citySpotCheckHiddendangerinfo&&void 0!==t.citySpotCheckHiddendangerinfo.spotCheckHiddendangerSum||t.areaSpotCheckHiddendangerinfo&&void 0!==t.areaSpotCheckHiddendangerinfo.spotCheckHiddendangerSum?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckHiddendangerinfo.spotCheckHiddendangerSum:t.areaSpotCheckHiddendangerinfo.spotCheckHiddendangerSum)+"\n                    ")]):e._e(),e._v(" "),t.citySpotCheckHiddendangerinfo&&void 0!==t.citySpotCheckHiddendangerinfo.spotCheckMajorHiddendangerNum||t.areaSpotCheckHiddendangerinfo&&void 0!==t.areaSpotCheckHiddendangerinfo.spotCheckMajorHiddendangerNum?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckHiddendangerinfo.spotCheckMajorHiddendangerNum:t.areaSpotCheckHiddendangerinfo.spotCheckMajorHiddendangerNum)+"\n                    ")]):e._e(),e._v(" "),t.citySpotCheckHiddendangerinfo&&void 0!==t.citySpotCheckHiddendangerinfo.spotCheckCompletedRectifyHiddendangerSum||t.areaSpotCheckHiddendangerinfo&&void 0!==t.areaSpotCheckHiddendangerinfo.spotCheckCompletedRectifyHiddendangerSum?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckHiddendangerinfo.spotCheckCompletedRectifyHiddendangerSum:t.areaSpotCheckHiddendangerinfo.spotCheckCompletedRectifyHiddendangerSum)+"\n                    ")]):e._e(),e._v(" "),t.citySpotCheckHiddendangerinfo&&void 0!==t.citySpotCheckHiddendangerinfo.spotCheckCompletedRectifyMajorHiddendangerNum||t.areaSpotCheckHiddendangerinfo&&void 0!==t.areaSpotCheckHiddendangerinfo.spotCheckCompletedRectifyMajorHiddendangerNum?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckHiddendangerinfo.spotCheckCompletedRectifyMajorHiddendangerNum:t.areaSpotCheckHiddendangerinfo.spotCheckCompletedRectifyMajorHiddendangerNum)+"\n                    ")]):e._e(),e._v(" "),1==e.sheetStatus&&t.citySpotCheckHiddendangerinfo&&void 0!==t.citySpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate?a("td",[e._v("\n                        "+e._s(null==t.citySpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate?"--":t.citySpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate+"%")+"\n                    ")]):a("td",[e._v("\n                        "+e._s(null==t.areaSpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate?"--":t.areaSpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate+"%")+"\n                    ")]),e._v(" "),t.citySpotCheckinfo&&void 0!==t.citySpotCheckinfo.revokeLicenseEnterpriseSum||t.areaSpotCheckinfo&&void 0!==t.areaSpotCheckinfo.revokeLicenseEnterpriseSum?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckinfo.revokeLicenseEnterpriseSum:t.areaSpotCheckinfo.revokeLicenseEnterpriseSum)+"\n                    ")]):e._e(),e._v(" "),t.citySpotCheckinfo&&void 0!==t.citySpotCheckinfo.detainLicenseSum||t.areaSpotCheckinfo&&void 0!==t.areaSpotCheckinfo.detainLicenseSum?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckinfo.detainLicenseSum:t.areaSpotCheckinfo.detainLicenseSum)+"\n                    ")]):e._e(),e._v(" "),t.citySpotCheckinfo&&void 0!==t.citySpotCheckinfo.amerceEnterpriseNum||t.areaSpotCheckinfo&&void 0!==t.areaSpotCheckinfo.amerceEnterpriseNum?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckinfo.amerceEnterpriseNum:t.areaSpotCheckinfo.amerceEnterpriseNum)+"\n                    ")]):e._e(),e._v(" "),t.citySpotCheckinfo&&void 0!==t.citySpotCheckinfo.amerceMoneySum||t.areaSpotCheckinfo&&void 0!==t.areaSpotCheckinfo.amerceMoneySum?a("td",[e._v("\n                        "+e._s(1==e.sheetStatus?t.citySpotCheckinfo.amerceMoneySum:t.areaSpotCheckinfo.amerceMoneySum)+"\n                    ")]):e._e()]):e._e(),e._v(" "),1==e.sheetStatus?a("tr",[a("td",[e._v("县级")]),e._v(" "),a("td",{staticClass:"point-item",on:{click:function(a){e.checkEnterprise(t.enterpriseCity,"all")}}},[e._v(e._s(t.areaSpotCheckinfo.spotCheckEnterpriseNum))]),e._v(" "),a("td",[e._v(e._s(null==t.areaSpotCheckinfo.spotCheckRateRequire?"--":t.areaSpotCheckinfo.spotCheckRateRequire+"%"))]),e._v(" "),a("td",{class:t.areaSpotCheckinfo.spotCheckCompleteRate<t.areaSpotCheckinfo.spotCheckRateRequire?"warning":""},[e._v(e._s(null==t.areaSpotCheckinfo.spotCheckCompleteRate?"--":t.areaSpotCheckinfo.spotCheckCompleteRate+"%"))]),e._v(" "),a("td",[e._v(e._s(t.areaSpotCheckHiddendangerinfo.spotCheckHiddendangerSum))]),e._v(" "),a("td",[e._v(e._s(t.areaSpotCheckHiddendangerinfo.spotCheckMajorHiddendangerNum))]),e._v(" "),a("td",[e._v(e._s(t.areaSpotCheckHiddendangerinfo.spotCheckCompletedRectifyHiddendangerSum))]),e._v(" "),a("td",[e._v(e._s(t.areaSpotCheckHiddendangerinfo.spotCheckCompletedRectifyMajorHiddendangerNum))]),e._v(" "),a("td",[e._v(e._s(null==t.areaSpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate?"--":t.areaSpotCheckHiddendangerinfo.spotCheckHiddendangerRectifyRate+"%"))]),e._v(" "),a("td",[e._v(e._s(t.areaSpotCheckinfo.revokeLicenseEnterpriseSum))]),e._v(" "),a("td",[e._v(e._s(t.areaSpotCheckinfo.detainLicenseSum))]),e._v(" "),a("td",[e._v(e._s(t.areaSpotCheckinfo.amerceEnterpriseNum))]),e._v(" "),a("td",[e._v(e._s(t.areaSpotCheckinfo.amerceMoneySum))])]):e._e()]:e._e()})],2):a("div",{staticStyle:{"text-align":"center","font-size":"16px"}},[e._v("暂无汇总数据")]),e._v(" "),a("area-form",{directives:[{name:"show",rawName:"v-show",value:3==e.sheetStatus,expression:"sheetStatus==3"}],ref:"areaSheet"})],1)]),e._v(" "),a("check-enterprises",{ref:"enterprises"})],1)},[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("th",{attrs:{rowspan:"2"}},[e._v("企业总数")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("任务下发时有效期内企业总数")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("自查企业数量")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("自查覆盖率要求")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("已完成覆盖率")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("当前有效期内企业数量")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("企业库存数量/万箱")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("企业库容量/万箱")]),e._v(" "),a("th",{attrs:{colspan:"2"}},[e._v("隐患问题情况")]),e._v(" "),a("th",{attrs:{colspan:"3"}},[e._v("整改情况")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("检查层级")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("检查企业数量")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("检查覆盖率要求")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("已完成覆盖率")]),e._v(" "),a("th",{attrs:{colspan:"2"}},[e._v("隐患问题情况")]),e._v(" "),a("th",{attrs:{colspan:"3"}},[e._v("整改情况")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("吊销许可证数量")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("暂扣许可证数量")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("罚款企业数量")]),e._v(" "),a("th",{attrs:{rowspan:"2"}},[e._v("罚款金额")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("th",[e._v("隐患总数")]),e._v(" "),a("th",[e._v("重大隐患数量")]),e._v(" "),a("th",[e._v("整改总数")]),e._v(" "),a("th",[e._v("重大隐患整改数量")]),e._v(" "),a("th",[e._v("隐患整改率")]),e._v(" "),a("th",[e._v("隐患总数")]),e._v(" "),a("th",[e._v("重大隐患数量")]),e._v(" "),a("th",[e._v("整改隐患总数")]),e._v(" "),a("th",[e._v("整改重大隐患数量")]),e._v(" "),a("th",[e._v("隐患整改率")])])}],!1,null,"06fca4fd",null);S.options.__file="sumSheet.vue";t.default=S.exports},tI2k:function(e,t,a){"use strict";var n=a("alSZ");a.n(n).a},u3wc:function(e,t,a){},w9Iu:function(e,t,a){"use strict";var n=a("xaZI");a.n(n).a},xaZI:function(e,t,a){},yd5Q:function(e,t,a){}}]);