(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-26aa"],{"5W5M":function(e,t,r){"use strict";r.d(t,"g",function(){return s}),r.d(t,"b",function(){return a}),r.d(t,"d",function(){return o}),r.d(t,"i",function(){return u}),r.d(t,"f",function(){return c}),r.d(t,"e",function(){return d}),r.d(t,"a",function(){return p}),r.d(t,"c",function(){return l}),r.d(t,"h",function(){return m});var n=r("t3Un"),i=r("X4fA");function s(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionary-types",method:"get",params:e||{}})}function a(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/adddictionary-types",method:"post",data:e})}function o(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/deldictionary-types",method:"post",data:e})}function u(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/putdictionary-types",method:"post",data:e})}function c(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionary-items",method:"get",params:e||{}})}function d(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/dictionaryAllItems",method:"get",params:e||{}})}function p(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/adddictionary-items",method:"post",data:e})}function l(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/deldictionary-items",method:"post",data:e})}function m(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/putdictionary-items",method:"post",data:e})}},HETB:function(e,t,r){"use strict";var n=r("otT5");r.n(n).a},L3oc:function(e,t,r){"use strict";r.d(t,"e",function(){return s}),r.d(t,"d",function(){return a}),r.d(t,"a",function(){return o}),r.d(t,"g",function(){return u}),r.d(t,"b",function(){return c}),r.d(t,"f",function(){return d}),r.d(t,"c",function(){return p});var n=r("t3Un"),i=r("X4fA");function s(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/assess/applyList-access",method:"post",data:e})}function a(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/enterprise/list-underSupervision?type="+e,method:"get"})}function o(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/assess/addApply-access",method:"post",data:e})}function u(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/assess/modApply-access",method:"post",data:e})}function c(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/assess/approveApply-access",method:"post",data:e})}function d(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/assess/rejectApply-access",method:"post",data:e})}function p(e){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/assess/submitApply-access?id="+e,method:"post"})}},otT5:function(e,t,r){},xuwd:function(e,t,r){"use strict";r.r(t);var n=r("14Xm"),i=r.n(n),s=r("D3Ub"),a=r.n(s),o=r("gDS+"),u=r.n(o),c=r("L3oc"),d=(r("5W5M"),r("8fCU"),{name:"productJudgeForm",data:function(){return{title:"",dialogVisible:!1,productJudgeForm:{enterprisename:"",enterprisenumber:"",punishmentmeasure:"",punishmentreason:"",file:""},enterpriseList:[],punishmentMeasureList:[]}},created:function(){this.getEnterpriseList()},methods:{showProductJudgeForm:function(e,t,r){if(this.dialogVisible=!0,this.title=e,this.punishmentMeasureList=r,"新增"===this.title)this.productJudgeForm={enterprisename:"",enterprisenumber:"",punishmentmeasure:"",punishmentreason:""};else{var n=JSON.parse(u()(t));this.productJudgeForm.enterprisename=n.enterprisename,this.productJudgeForm.enterprisenumber=n.enterprisenumber,this.productJudgeForm.punishmentmeasure=n.punishmentmeasure,this.productJudgeForm.punishmentreason=n.punishmentreason,this.productJudgeForm.id=n.id}},getEnterpriseList:function(){var e=this;return a()(i.a.mark(function t(){var r,n;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=1,t.next=3,Object(c.d)(r);case 3:"200"===(n=t.sent).data.code&&(e.enterpriseList=n.data.result);case 5:case"end":return t.stop()}},t,e)}))()},submit:function(){var e=this;return a()(i.a.mark(function t(){var r,n,s,a,o,u;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(n in r=new FormData,e.productJudgeForm)void 0!=e.productJudgeForm[n]&&""!=e.productJudgeForm[n].toString()&&r.append(n,e.productJudgeForm[n]);if((s=e.$refs.upload.files)&&s.length>0)for(a=0;a<s.length;a++)r.append("file",s[a]);if("新增"!==e.title){t.next=11;break}return t.next=7,Object(c.a)(r);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(c.g)(r);case 13:"200"===(u=t.sent).data.code?(e.dialogVisible=!1,e.$emit("getinfo"),e.$notify({duration:2e3,type:"success",title:"成功",message:"修改成功"})):e.$message({type:"warning",message:u.data.message});case 15:case"end":return t.stop()}},t,e)}))()},giveEnterpriseNumber:function(){for(var e=0;e<this.enterpriseList.length;e++)this.productJudgeForm.enterprisename===this.enterpriseList[e].enterprisename&&(this.productJudgeForm.enterprisenumber=this.enterpriseList[e].enterprisenumber,console.log(this.productJudgeForm.enterprisenumber))}}}),p=(r("HETB"),r("KHd+")),l=Object(p.a)(d,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,"close-on-press-escape":!1,width:"45%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("el-form",{ref:"ruleForm",attrs:{model:e.productJudgeForm,"label-width":"200px"}},[r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"企业名称",prop:"enterprisename"}},[r("el-select",{attrs:{filterable:""},on:{change:e.giveEnterpriseNumber},model:{value:e.productJudgeForm.enterprisename,callback:function(t){e.$set(e.productJudgeForm,"enterprisename",t)},expression:"productJudgeForm.enterprisename"}},e._l(e.enterpriseList,function(e){return r("el-option",{key:e.id,attrs:{value:e.enterprisename,label:e.enterprisename}})}))],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"处罚类型",prop:"punishmentmeasure"}},[r("el-select",{model:{value:e.productJudgeForm.punishmentmeasure,callback:function(t){e.$set(e.productJudgeForm,"punishmentmeasure",t)},expression:"productJudgeForm.punishmentmeasure"}},e._l(e.punishmentMeasureList,function(e){return r("el-option",{key:e.id,attrs:{value:e.value,label:e.text}})}))],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"处罚原因",prop:"punishmentreason"}},[r("el-input",{attrs:{type:"textarea",row:2},model:{value:e.productJudgeForm.punishmentreason,callback:function(t){e.$set(e.productJudgeForm,"punishmentreason",t)},expression:"productJudgeForm.punishmentreason"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"文件:",prop:"directionCode"}},[r("input",{ref:"upload",attrs:{id:"upload",type:"file",accept:"image/*"}})])],1)],1)],1),e._v(" "),r("div",{attrs:{align:"center"}},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit()}}},[e._v("确定")])],1)],1)},[],!1,null,"5871829e",null);l.options.__file="productJudgeForm.vue";t.default=l.exports}}]);
|