(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-649d","chunk-43a9"],{"2NzQ":function(e,t,a){},"2RJ8":function(e,t,a){},"5W5M":function(e,t,a){"use strict";a.d(t,"g",function(){return s}),a.d(t,"b",function(){return i}),a.d(t,"d",function(){return o}),a.d(t,"i",function(){return l}),a.d(t,"f",function(){return u}),a.d(t,"e",function(){return c}),a.d(t,"a",function(){return d}),a.d(t,"c",function(){return p}),a.d(t,"h",function(){return m});var r=a("t3Un"),n=a("X4fA");function s(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/dictionary-types",method:"get",params:e||{}})}function i(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/adddictionary-types",method:"post",data:e})}function o(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/deldictionary-types",method:"post",data:e})}function l(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/putdictionary-types",method:"post",data:e})}function u(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/dictionary-items",method:"get",params:e||{}})}function c(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/dictionaryAllItems",method:"get",params:e||{}})}function d(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/adddictionary-items",method:"post",data:e})}function p(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/deldictionary-items",method:"post",data:e})}function m(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/putdictionary-items",method:"post",data:e})}},EyW5:function(e,t,a){"use strict";a.d(t,"e",function(){return s}),a.d(t,"d",function(){return i}),a.d(t,"a",function(){return o}),a.d(t,"g",function(){return l}),a.d(t,"b",function(){return u}),a.d(t,"f",function(){return c}),a.d(t,"c",function(){return d});var r=a("t3Un"),n=a("X4fA");function s(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/assess/applyList-sale",method:"post",data:e})}function i(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/enterprise/list-underSupervision?type="+e,method:"get"})}function o(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/assess/addApply-sale",method:"post",data:e})}function l(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/assess/modApply-sale",method:"post",data:e})}function u(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/assess/approveApply-sale",method:"post",data:e})}function c(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/assess/rejectApply-sale",method:"post",data:e})}function d(e){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/assess/submitApply-sale?id="+e,method:"post"})}},aQHg:function(e,t,a){"use strict";a.r(t);var r=a("gDS+"),n=a.n(r),s=a("14Xm"),i=a.n(s),o=a("D3Ub"),l=a.n(o),u=a("k57G"),c=a("EyW5"),d=a("7Qib"),p=a("uJT6"),m=a("5W5M"),h=a("8fCU"),g={name:"registerReview",data:function(){return{ifShow:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,tableKey:0,listLoading:!1,saleJudgeData:[],dialogVisible:!1,reviewRegisterForm:{id:"",lastrejectreason:""},saleJudgeForm:{enterprisename:"",enterprisenumber:"",punishmentmeasure:"",punishmentreason:"",file:"",id:""},provinceList:[],cityList:[],districtList:[],streetList:[],committeeList:[],punishmentMeasureList:[],statusList:[{id:1,name:"待提交",text:"TOSUBMIT"},{id:2,name:"待审批",text:"PENDING"},{id:3,name:"驳回",text:"REJECT"},{id:4,name:"审批通过",text:"APPROVED"}],reviewResultList:[{id:0,name:"未审核"},{id:1,name:"审核通过"},{id:2,name:"审核拒绝"}],listQuery:{filter:{enterprisename:"",status:"",code:""},pageIndex:1,pageSize:10}}},components:{SaleJudgeForm:p.default},created:function(){this.getSaleJudge(),this.getPunishmentTypeList()},watch:{},methods:{getSaleJudge:function(){var e=this;return l()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(c.e)(e.listQuery);case 3:"200"===(a=t.sent).data.code?(e.recordTotal=a.data.result.total,e.pageSize=a.data.result.size,e.pageTotal=Object(d.a)(a.data.result.totalCount,a.data.result.pageSize),e.currentPage=a.data.result.current,e.saleJudgeData=a.data.result.records):e.$message({type:"warning",message:a.data.message}),e.listLoading=!1;case 6:case"end":return t.stop()}},t,e)}))()},openSaleJudgeForm:function(e,t){this.$refs.form.showSaleJudgeForm(e,t,this.punishmentMeasureList)},search:function(){this.getSaleJudge()},commit:function(e){var t=this;return l()(i.a.mark(function a(){return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:Object(c.c)(e.id).then(function(e){"200"==e.data.code?(t.getSaleJudge(),t.$notify({title:"成功",message:"提交成功",type:"success",duration:2e3})):t.$message({message:e.data.message,type:"warning"})});case 1:case"end":return a.stop()}},a,t)}))()},review:function(e){this.dialogVisible=!0,this.ifShow=!0,this.saleJudgeForm.enterprisename=JSON.parse(n()(e)).enterprisename,this.saleJudgeForm.enterprisenumber=JSON.parse(n()(e)).enterprisenumber,this.saleJudgeForm.punishmentmeasure=JSON.parse(n()(e)).punishmentmeasure,this.saleJudgeForm.punishmentreason=JSON.parse(n()(e)).punishmentreason,this.saleJudgeForm.id=JSON.parse(n()(e)).id,this.reviewRegisterForm.lastrejectreason=""},refuse:function(){var e=this;this.reviewRegisterForm.id=this.saleJudgeForm.id,this.$confirm("拒绝申请,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c.f)(e.reviewRegisterForm).then(function(t){"200"===t.data.code?(e.dialogVisible=!1,e.getSaleJudge(),e.$notify({title:"成功",message:"审核拒绝成功",type:"success",duration:2e3})):e.$message({type:"warning",message:t.data.message})})})},agree:function(){var e=this;this.reviewRegisterForm.id=this.saleJudgeForm.id,this.$confirm("同意申请,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c.b)(e.reviewRegisterForm).then(function(t){"200"===t.data.code?(e.dialogVisible=!1,e.getSaleJudge(),e.$notify({title:"成功",message:"审核通过成功",type:"success",duration:2e3})):e.$message({type:"warning",message:t.data.message})})})},handleSizeChange:function(e){this.listQuery.pageSize=e,this.getSaleJudge()},handleCurrentChange:function(e){this.listQuery.pageIndex=e,this.getSaleJudge()},download:function(e){window.open(Object(u.a)()+e.path1,"_blank")},getPunishmentTypeList:function(){var e=this;if(!(e.levelOptions&&e.levelOptions.length>0)){var t={dictionaryType:"处罚类型"};Object(m.e)(t).then(function(t){var a=t.data;200==a.code?(e.punishmentMeasureList=a.result,console.log(e.punishmentMeasureList)):Object(h.a)({error:a.message,vm:e})}).catch(function(t){Object(h.a)({error:t,vm:e})})}}}},f=(a("upAz"),a("KHd+")),b=Object(f.a)(g,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{display:"block"}},[a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("按企业名称:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:""},model:{value:e.listQuery.filter.enterprisename,callback:function(t){e.$set(e.listQuery.filter,"enterprisename",t)},expression:"listQuery.filter.enterprisename"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("按单号:")]),e._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:""},model:{value:e.listQuery.filter.code,callback:function(t){e.$set(e.listQuery.filter,"code",t)},expression:"listQuery.filter.code"}})],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[e._v("按状态:")]),e._v(" "),a("el-select",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:""},model:{value:e.listQuery.filter.status,callback:function(t){e.$set(e.listQuery.filter,"status",t)},expression:"listQuery.filter.status"}},e._l(e.statusList,function(e){return a("el-option",{key:e.id,attrs:{value:e.text,label:e.name}})}))],1),e._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"margin-right":"10px"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(t){e.openSaleJudgeForm("新增","")}}},[e._v("新增")]),e._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.search("查询","")}}},[e._v("查询")])],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.saleJudgeData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"企业名称",prop:"enterprisename",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单号",prop:"code",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"提出人",prop:"requestor",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间",prop:"submittime",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单号",prop:"code",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"处罚措施",prop:"punishmentmeasure",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.punishmentMeasureList,function(r){return a("div",[t.row.punishmentmeasure===r.value?a("div",[a("span",[e._v(e._s(r.text))])]):e._e()])})}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处罚原因",prop:"punishmentreason",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"审批人",prop:"approver",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"文件",prop:"file",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.download(t.row)}}},[e._v("下载")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态",prop:"status",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["待提交"===t.row.status||"驳回"===t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.commit(t.row)}}},[e._v("提交")]):e._e(),e._v(" "),"待提交"===t.row.status||"驳回"===t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.openSaleJudgeForm("修改",t.row)}}},[e._v("修改")]):e._e(),e._v(" "),"待审批"===t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.review(t.row)}}},[e._v("审批")]):e._e()]}}])})],1),e._v(" "),a("br"),e._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},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}}),e._v(" "),a("br")],1),e._v(" "),a("el-dialog",{attrs:{title:"审批",visible:e.dialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"60%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.saleJudgeForm,"label-width":"200px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"企业名称",prop:"enterprisename"}},[a("el-select",{attrs:{disabled:e.ifShow},model:{value:e.saleJudgeForm.enterprisename,callback:function(t){e.$set(e.saleJudgeForm,"enterprisename",t)},expression:"saleJudgeForm.enterprisename"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"处罚类型",prop:"punishmentmeasure"}},[a("el-select",{attrs:{disabled:e.ifShow},model:{value:e.saleJudgeForm.punishmentmeasure,callback:function(t){e.$set(e.saleJudgeForm,"punishmentmeasure",t)},expression:"saleJudgeForm.punishmentmeasure"}},e._l(e.punishmentMeasureList,function(e){return a("el-option",{key:e.id,attrs:{value:e.value,label:e.text}})}))],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"处罚原因",prop:"punishmentreason"}},[a("el-input",{attrs:{type:"textarea",row:2,disabled:e.ifShow},model:{value:e.saleJudgeForm.punishmentreason,callback:function(t){e.$set(e.saleJudgeForm,"punishmentreason",t)},expression:"saleJudgeForm.punishmentreason"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"审批建议:"}},[a("el-input",{attrs:{type:"textarea",row:3},model:{value:e.reviewRegisterForm.lastrejectreason,callback:function(t){e.$set(e.reviewRegisterForm,"lastrejectreason",t)},expression:"reviewRegisterForm.lastrejectreason"}})],1)],1)],1)],1),e._v(" "),a("div",{attrs:{align:"center"}},[a("el-button",{on:{click:e.refuse}},[e._v("拒绝")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.agree()}}},[e._v("通过")])],1)],1),e._v(" "),a("sale-judge-form",{ref:"form",on:{getinfo:e.getSaleJudge}})],1)},[],!1,null,"28f53b13",null);b.options.__file="index.vue";t.default=b.exports},jXjG:function(e,t,a){"use strict";var r=a("2NzQ");a.n(r).a},k57G:function(e,t,a){"use strict";function r(){return"http://39.104.85.193:4105/upload/"}a.d(t,"a",function(){return r})},uJT6:function(e,t,a){"use strict";a.r(t);var r=a("14Xm"),n=a.n(r),s=a("D3Ub"),i=a.n(s),o=a("gDS+"),l=a.n(o),u=a("EyW5"),c=(a("5W5M"),a("8fCU"),{name:"saleJudgeForm",data:function(){return{title:"",dialogVisible:!1,saleJudgeForm:{enterprisename:"",enterprisenumber:"",punishmentmeasure:"",punishmentreason:"",file:""},enterpriseList:[],punishmentMeasureList:[]}},created:function(){this.getEnterpriseList()},methods:{showSaleJudgeForm:function(e,t,a){if(this.dialogVisible=!0,this.title=e,this.punishmentMeasureList=a,"新增"===this.title)this.saleJudgeForm={enterprisename:"",enterprisenumber:"",punishmentmeasure:"",punishmentreason:""};else{var r=JSON.parse(l()(t));this.saleJudgeForm.enterprisename=r.enterprisename,this.saleJudgeForm.enterprisenumber=r.enterprisenumber,this.saleJudgeForm.punishmentmeasure=r.punishmentmeasure,this.saleJudgeForm.punishmentreason=r.punishmentreason,this.saleJudgeForm.id=r.id}},getEnterpriseList:function(){var e=this;return i()(n.a.mark(function t(){var a,r;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=2,t.next=3,Object(u.d)(a);case 3:"200"===(r=t.sent).data.code&&(e.enterpriseList=r.data.result);case 5:case"end":return t.stop()}},t,e)}))()},submit:function(){var e=this;return i()(n.a.mark(function t(){var a,r,s,i,o,l;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(r in a=new FormData,e.saleJudgeForm)void 0!=e.saleJudgeForm[r]&&""!=e.saleJudgeForm[r].toString()&&a.append(r,e.saleJudgeForm[r]);if((s=e.$refs.upload.files)&&s.length>0)for(i=0;i<s.length;i++)a.append("file",s[i]);if("新增"!==e.title){t.next=11;break}return t.next=7,Object(u.a)(a);case 7:"200"===(o=t.sent).data.code?(e.dialogVisible=!1,e.$emit("getinfo"),e.$notify({duration:2e3,type:"success",title:"成功",message:"新增成功"})):e.$message({type:"warning",message:o.data.message}),t.next=15;break;case 11:return t.next=13,Object(u.g)(a);case 13:"200"===(l=t.sent).data.code?(e.dialogVisible=!1,e.$emit("getinfo"),e.$notify({duration:2e3,type:"success",title:"成功",message:"修改成功"})):e.$message({type:"warning",message:l.data.message});case 15:case"end":return t.stop()}},t,e)}))()},giveEnterpriseNumber:function(){for(var e=0;e<this.enterpriseList.length;e++)this.saleJudgeForm.enterprisename===this.enterpriseList[e].enterprisename&&(this.saleJudgeForm.enterprisenumber=this.enterpriseList[e].enterprisenumber,console.log(this.saleJudgeForm.enterprisenumber))}}}),d=(a("jXjG"),a("KHd+")),p=Object(d.a)(c,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,"close-on-press-escape":!1,width:"45%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.saleJudgeForm,"label-width":"200px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"企业名称",prop:"enterprisename"}},[a("el-select",{attrs:{filterable:""},on:{change:e.giveEnterpriseNumber},model:{value:e.saleJudgeForm.enterprisename,callback:function(t){e.$set(e.saleJudgeForm,"enterprisename",t)},expression:"saleJudgeForm.enterprisename"}},e._l(e.enterpriseList,function(e){return a("el-option",{key:e.id,attrs:{value:e.enterprisename,label:e.enterprisename}})}))],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"处罚类型",prop:"punishmentmeasure"}},[a("el-select",{model:{value:e.saleJudgeForm.punishmentmeasure,callback:function(t){e.$set(e.saleJudgeForm,"punishmentmeasure",t)},expression:"saleJudgeForm.punishmentmeasure"}},e._l(e.punishmentMeasureList,function(e){return a("el-option",{key:e.id,attrs:{value:e.value,label:e.text}})}))],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"处罚原因",prop:"punishmentreason"}},[a("el-input",{attrs:{type:"textarea",row:2},model:{value:e.saleJudgeForm.punishmentreason,callback:function(t){e.$set(e.saleJudgeForm,"punishmentreason",t)},expression:"saleJudgeForm.punishmentreason"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"文件:",prop:"directionCode"}},[a("input",{ref:"upload",attrs:{id:"upload",type:"file",accept:"image/*"}})])],1)],1)],1),e._v(" "),a("div",{attrs:{align:"center"}},[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.submit()}}},[e._v("确定")])],1)],1)},[],!1,null,"255fdd86",null);p.options.__file="saleJudgeForm.vue";t.default=p.exports},upAz:function(e,t,a){"use strict";var r=a("2RJ8");a.n(r).a}}]);
|