Your Name
2022-04-08 1f2a259f8cbb7eb0b12d12895116c309eb8cd609
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-7020"],{"7dY+":function(e,t,r){},WZwz:function(e,t,r){"use strict";r.d(t,"b",function(){return i}),r.d(t,"a",function(){return s});var a=r("t3Un"),n=r("X4fA");function i(e){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/districtByName",method:"get",params:e||{}})}function s(e){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.21:8006/zhongtai/district?type="+e.type+"&parentname="+e.parentname+"&parenttype="+e.parenttype,method:"get"})}},cLjf:function(e,t,r){e.exports=r("xOJF")},fmMu:function(e,t,r){"use strict";var a=r("7dY+");r.n(a).a},hDQ3:function(e,t,r){"use strict";t.__esModule=!0;var a=function(e){return e&&e.__esModule?e:{default:e}}(r("Asgo"));t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,r){return function n(i,s){try{var o=t[i](s),l=o.value}catch(e){return void r(e)}if(!o.done)return a.default.resolve(l).then(function(e){n("next",e)},function(e){n("throw",e)});e(l)}("next")})}}},k4Ii:function(e,t){!function(t){"use strict";var r,a=Object.prototype,n=a.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag",c="object"==typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=_;var p="suspendedStart",d="suspendedYield",m="executing",f="completed",g={},h={};h[s]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==a&&n.call(v,s)&&(h=v);var b=P.prototype=C.prototype=Object.create(h);F.prototype=b.constructor=P,P.constructor=F,P[l]=F.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===F||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,P):(e.__proto__=P,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},L(x.prototype),x.prototype[o]=function(){return this},u.AsyncIterator=x,u.async=function(e,t,r,a){var n=new x(_(e,t,r,a));return u.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},L(b),b[l]="Generator",b[s]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var a=t.pop();if(a in e)return r.value=a,r.done=!1,r}return r.done=!0,r}},u.values=O,$.prototype={constructor:$,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(a,n){return o.type="throw",o.arg=e,t.next=a,n&&(t.method="next",t.arg=r),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return a(s.catchLoc,!0);if(this.prev<s.finallyLoc)return a(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return a(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return a(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;M(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:O(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=r),g}}}function _(e,t,r,a){var n=t&&t.prototype instanceof C?t:C,i=Object.create(n.prototype),s=new $(a||[]);return i._invoke=function(e,t,r){var a=p;return function(n,i){if(a===m)throw new Error("Generator is already running");if(a===f){if("throw"===n)throw i;return j()}for(r.method=n,r.arg=i;;){var s=r.delegate;if(s){var o=k(s,r);if(o){if(o===g)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var l=w(e,t,r);if("normal"===l.type){if(a=r.done?f:d,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=f,r.method="throw",r.arg=l.arg)}}}(e,r,s),i}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function C(){}function F(){}function P(){}function L(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){var t;this._invoke=function(r,a){function i(){return new Promise(function(t,i){!function t(r,a,i,s){var o=w(e[r],e,a);if("throw"!==o.type){var l=o.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,s)},function(e){t("throw",e,i,s)}):Promise.resolve(c).then(function(e){l.value=e,i(l)},s)}s(o.arg)}(r,a,t,i)})}return t=t?t.then(i,i):i()}}function k(e,t){var a=e.iterator[t.method];if(a===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,k(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var n=w(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,g;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function Q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Q,this),this.reset(!0)}function O(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function t(){for(;++a<e.length;)if(n.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},uVOl:function(e,t,r){"use strict";r.r(t);var a=r("cLjf"),n=r.n(a),i=r("hDQ3"),s=r.n(i),o=r("fe1z"),l=r("WZwz"),c=r("8fCU"),u={name:"register",data:function(){return{showNumber:!1,showName:!1,shortMaterial:!1,longMaterial:!1,produceMaterial:!1,buyMaterial:!1,registerForm:{enterprisename:"",enterprisenumber:"",password:"",type:"",businessrange:"",licensestart:"",licenseend:"",legalpersonstart:"",legalpersonend:"",qualificationstart:"",qualificationend:"",escortstart:"",escortend:"",legalperson:"",legalpersonphone:"",province:"",city:"",district:"",street:"",committee:"",address:""},businessLicense:[],idCard:[],legalPerson:[],operationQualification:[],escortCompany:[],insurance:[],safetyProduction:[],rules:{enterprisename:[{required:!0,message:"请填写企业名称",trigger:"blur"}],enterprisenumber:[{required:!0,message:"请填写企业编号",trigger:"blur"}],password:[{required:!0,message:"请填写密码",trigger:"change"}],type:[{required:!0,message:"请选择企业类型",trigger:"blur"}],businessrange:[{required:!0,message:"请填写经营范围",trigger:"blur"}],legalperson:[{required:!0,message:"请填写负责人",trigger:"blur"}],legalpersonphone:[{required:!0,message:"请填写负责人电话",trigger:"blur"}],licensestart:[{required:!0,message:"请填写许可证有效期开始日期",trigger:"blur"}],licenseend:[{required:!0,message:"请填写许可证有效期结束日期",trigger:"blur"}],province:[{required:!0,message:"请填写省",trigger:"change"}],city:[{required:!0,message:"请填写市",trigger:"change"}],district:[{required:!0,message:"请填写区",trigger:"change"}],address:[{required:!0,message:"请填写区",trigger:"blur"}],legalpersonstart:[{required:!0,message:"请填写",trigger:"change"}],legalpersonend:[{required:!0,message:"请填写",trigger:"change"}],qualificationstart:[{required:!0,message:"请填写",trigger:"change"}],qualificationend:[{required:!0,message:"请填写",trigger:"change"}],escortstart:[{required:!0,message:"请填写",trigger:"change"}],escortend:[{required:!0,message:"请填写",trigger:"change"}]},typeList:[{id:1,name:"烟花爆竹生产"},{id:2,name:"烟花爆竹批发经营"},{id:3,name:"烟花爆竹零售经营(长期)"},{id:4,name:"烟花爆竹零售经营(短期)"}],provinceList:[],cityList:[],districtList:[],streetList:[],committeeList:[],dialogImageUrl:"",dialogVisible:!1,disabled:!1}},watch:{},created:function(){this.getProvince()},methods:{handleRemove:function(e,t){var r=this;return this.$confirm("确定移除 "+e.name+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){switch(t){case"one":r.businessLicense.splice(r.businessLicense.findIndex(function(t){return t.name===e.name}),1);break;case"two":r.idCard.splice(r.idCard.findIndex(function(t){return t.name===e.name}),1);break;case"three":r.legalPerson.splice(r.legalPerson.findIndex(function(t){return t.name===e.name}),1);break;case"four":r.operationQualification.splice(r.operationQualification.findIndex(function(t){return t.name===e.name}),1);break;case"five":r.escortCompany.splice(r.escortCompany.findIndex(function(t){return t.name===e.name}),1);break;case"six":r.insurance.splice(r.insurance.findIndex(function(t){return t.name===e.name}),1);break;case"seven":r.safetyProduction.splice(r.safetyProduction.findIndex(function(t){return t.name===e.name}),1)}})},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleChangeOne:function(e,t){this.businessLicense=t.slice(0)},handleChangeTwo:function(e,t){this.idCard=t.slice(0)},handleChangeThree:function(e,t){this.legalPerson=t.slice(0)},handleChangeFour:function(e,t){this.operationQualification=t.slice(0)},handleChangeFive:function(e,t){this.escortCompany=t.slice(0)},handleChangeSix:function(e,t){this.insurance=t.slice(0)},handleChangeSeven:function(e,t){this.safetyProduction=t.slice(0)},getProvince:function(){var e=this;return s()(n.a.mark(function t(){var r;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(l.b)();case 2:"200"===(r=t.sent).data.code&&(e.provinceList=r.data.result.provinceList);case 4:case"end":return t.stop()}},t,e)}))()},submit:function(){var e=this;return s()(n.a.mark(function t(){return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.ruleForm.validate(function(t){if(t)if("烟花爆竹生产"===e.registerForm.type&&0!==e.businessLicense.length&&0!==e.idCard.length&&0!==e.legalPerson.length&&0!==e.operationQualification.length&&0!==e.escortCompany.length&&0!==e.insurance.length){e.businessLicense=e.businessLicense.map(function(e,t,r){return e.raw},e.businessLicense),e.idCard=e.idCard.map(function(e,t,r){return e.raw},e.idCard),e.legalPerson=e.legalPerson.map(function(e,t,r){return e.raw},e.legalPerson),e.operationQualification=e.operationQualification.map(function(e,t,r){return e.raw},e.operationQualification),e.escortCompany=e.escortCompany.map(function(e,t,r){return e.raw},e.escortCompany),e.insurance=e.insurance.map(function(e,t,r){return e.raw},e.insurance),e.safetyProduction=e.safetyProduction.map(function(e,t,r){return e.raw},e.safetyProduction);var r=new FormData;for(var a in e.registerForm)void 0!=e.registerForm[a]&&""!=e.registerForm[a].toString()&&r.append(a,e.registerForm[a]);if(e.businessLicense&&e.businessLicense.length>0)for(var n=0;n<e.businessLicense.length;n++)r.append("businessLicense",e.businessLicense[n]);if(e.idCard&&e.idCard.length>0)for(var i=0;i<e.idCard.length;i++)r.append("idCard",e.idCard[i]);if(e.legalPerson&&e.legalPerson.length>0)for(var s=0;s<e.legalPerson.length;s++)r.append("legalPersonFile",e.legalPerson[s]);if(e.operationQualification&&e.operationQualification.length>0)for(var l=0;l<e.operationQualification.length;l++)r.append("operationQualification",e.operationQualification[l]);if(e.escortCompany&&e.escortCompany.length>0)for(var u=0;u<e.escortCompany.length;u++)r.append("escortCompany",e.escortCompany[u]);if(e.insurance&&e.insurance.length>0)for(var p=0;p<e.insurance.length;p++)r.append("insurance",e.insurance[p]);if(e.safetyProduction&&e.safetyProduction.length>0)for(var d=0;d<e.safetyProduction.length;d++)r.append("safetyProduction",e.safetyProduction[d]);Object(o.g)(r).then(function(t){"200"===t.data.code?(e.$message({type:"success",message:"注册成功",duration:2e3,title:"成功"}),e.$router.push("/login")):e.$message({type:"warning",message:t.data.message})}).catch(function(t){Object(c.a)({error:t,vm:e})})}else if("烟花爆竹批发经营"===e.registerForm.type&&0!==e.businessLicense.length&&0!==e.idCard.length&&0!==e.legalPerson.length&&0!==e.operationQualification.length&&0!==e.escortCompany.length&&0!==e.insurance.length&&0!==e.safetyProduction.length){e.businessLicense=e.businessLicense.map(function(e,t,r){return e.raw},e.businessLicense),e.idCard=e.idCard.map(function(e,t,r){return e.raw},e.idCard),e.legalPerson=e.legalPerson.map(function(e,t,r){return e.raw},e.legalPerson),e.operationQualification=e.operationQualification.map(function(e,t,r){return e.raw},e.operationQualification),e.escortCompany=e.escortCompany.map(function(e,t,r){return e.raw},e.escortCompany),e.insurance=e.insurance.map(function(e,t,r){return e.raw},e.insurance),e.safetyProduction=e.safetyProduction.map(function(e,t,r){return e.raw},e.safetyProduction);var m=new FormData;for(var f in e.registerForm)void 0!=e.registerForm[f]&&""!=e.registerForm[f].toString()&&m.append(f,e.registerForm[f]);if(e.businessLicense&&e.businessLicense.length>0)for(var g=0;g<e.businessLicense.length;g++)m.append("businessLicense",e.businessLicense[g]);if(e.idCard&&e.idCard.length>0)for(var h=0;h<e.idCard.length;h++)m.append("idCard",e.idCard[h]);if(e.legalPerson&&e.legalPerson.length>0)for(var y=0;y<e.legalPerson.length;y++)m.append("legalPersonFile",e.legalPerson[y]);if(e.operationQualification&&e.operationQualification.length>0)for(var v=0;v<e.operationQualification.length;v++)m.append("operationQualification",e.operationQualification[v]);if(e.escortCompany&&e.escortCompany.length>0)for(var b=0;b<e.escortCompany.length;b++)m.append("escortCompany",e.escortCompany[b]);if(e.insurance&&e.insurance.length>0)for(var _=0;_<e.insurance.length;_++)m.append("insurance",e.insurance[_]);if(e.safetyProduction&&e.safetyProduction.length>0)for(var w=0;w<e.safetyProduction.length;w++)m.append("safetyProduction",e.safetyProduction[w]);Object(o.g)(m).then(function(t){"200"===t.data.code?(e.$message({type:"success",message:"注册成功",duration:2e3,title:"成功"}),e.$router.push("/login")):e.$message({type:"warning",message:t.data.message})}).catch(function(t){Object(c.a)({error:t,vm:e})})}else if("烟花爆竹零售经营(长期)"===e.registerForm.type&&0!==e.businessLicense.length&&0!==e.idCard.length&&0!==e.legalPerson.length&&0!==e.insurance.length){e.businessLicense=e.businessLicense.map(function(e,t,r){return e.raw},e.businessLicense),e.idCard=e.idCard.map(function(e,t,r){return e.raw},e.idCard),e.legalPerson=e.legalPerson.map(function(e,t,r){return e.raw},e.legalPerson),e.operationQualification=e.operationQualification.map(function(e,t,r){return e.raw},e.operationQualification),e.escortCompany=e.escortCompany.map(function(e,t,r){return e.raw},e.escortCompany),e.insurance=e.insurance.map(function(e,t,r){return e.raw},e.insurance),e.safetyProduction=e.safetyProduction.map(function(e,t,r){return e.raw},e.safetyProduction);var C=new FormData;for(var F in e.registerForm)void 0!=e.registerForm[F]&&""!=e.registerForm[F].toString()&&C.append(F,e.registerForm[F]);if(e.businessLicense&&e.businessLicense.length>0)for(var P=0;P<e.businessLicense.length;P++)C.append("businessLicense",e.businessLicense[P]);if(e.idCard&&e.idCard.length>0)for(var L=0;L<e.idCard.length;L++)C.append("idCard",e.idCard[L]);if(e.legalPerson&&e.legalPerson.length>0)for(var x=0;x<e.legalPerson.length;x++)C.append("legalPersonFile",e.legalPerson[x]);if(e.operationQualification&&e.operationQualification.length>0)for(var k=0;k<e.operationQualification.length;k++)C.append("operationQualification",e.operationQualification[k]);if(e.escortCompany&&e.escortCompany.length>0)for(var Q=0;Q<e.escortCompany.length;Q++)C.append("escortCompany",e.escortCompany[Q]);if(e.insurance&&e.insurance.length>0)for(var M=0;M<e.insurance.length;M++)C.append("insurance",e.insurance[M]);if(e.safetyProduction&&e.safetyProduction.length>0)for(var $=0;$<e.safetyProduction.length;$++)C.append("safetyProduction",e.safetyProduction[$]);Object(o.g)(C).then(function(t){"200"===t.data.code?(e.$message({type:"success",message:"注册成功",duration:2e3,title:"成功"}),e.$router.push("/login")):e.$message({type:"warning",message:t.data.message})}).catch(function(t){Object(c.a)({error:t,vm:e})})}else if("烟花爆竹零售经营(短期)"===e.registerForm.type&&0!==e.idCard.length&&0!==e.legalPerson.length&&0!==e.insurance.length){e.businessLicense=e.businessLicense.map(function(e,t,r){return e.raw},e.businessLicense),e.idCard=e.idCard.map(function(e,t,r){return e.raw},e.idCard),e.legalPerson=e.legalPerson.map(function(e,t,r){return e.raw},e.legalPerson),e.operationQualification=e.operationQualification.map(function(e,t,r){return e.raw},e.operationQualification),e.escortCompany=e.escortCompany.map(function(e,t,r){return e.raw},e.escortCompany),e.insurance=e.insurance.map(function(e,t,r){return e.raw},e.insurance),e.safetyProduction=e.safetyProduction.map(function(e,t,r){return e.raw},e.safetyProduction);var O=new FormData;for(var j in e.registerForm)void 0!=e.registerForm[j]&&""!=e.registerForm[j].toString()&&O.append(j,e.registerForm[j]);if(e.businessLicense&&e.businessLicense.length>0)for(var q=0;q<e.businessLicense.length;q++)O.append("businessLicense",e.businessLicense[q]);if(e.idCard&&e.idCard.length>0)for(var N=0;N<e.idCard.length;N++)O.append("idCard",e.idCard[N]);if(e.legalPerson&&e.legalPerson.length>0)for(var S=0;S<e.legalPerson.length;S++)O.append("legalPersonFile",e.legalPerson[S]);if(e.operationQualification&&e.operationQualification.length>0)for(var E=0;E<e.operationQualification.length;E++)O.append("operationQualification",e.operationQualification[E]);if(e.escortCompany&&e.escortCompany.length>0)for(var R=0;R<e.escortCompany.length;R++)O.append("escortCompany",e.escortCompany[R]);if(e.insurance&&e.insurance.length>0)for(var A=0;A<e.insurance.length;A++)O.append("insurance",e.insurance[A]);if(e.safetyProduction&&e.safetyProduction.length>0)for(var I=0;I<e.safetyProduction.length;I++)O.append("safetyProduction",e.safetyProduction[I]);Object(o.g)(O).then(function(t){"200"===t.data.code?(e.$message({type:"success",message:"注册成功",duration:2e3,title:"成功"}),e.$router.push("/login")):e.$message({type:"warning",message:t.data.message})}).catch(function(t){Object(c.a)({error:t,vm:e})})}else e.$message({type:"warning",message:"请提交相关材料"});else e.$message({type:"warning",message:"请填写基本信息"})});case 1:case"end":return t.stop()}},t,e)}))()},changeArea:function(e){var t=this;return s()(n.a.mark(function r(){var a,i,s,o;return n.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if("province"!==e){r.next=12;break}return t.registerForm.city="",t.registerForm.district="",t.registerForm.street="",t.registerForm.committee="",t.areaListQuery={type:2,parenttype:1,parentname:t.registerForm.province},r.next=8,Object(l.a)(t.areaListQuery);case 8:"200"===(a=r.sent).data.code&&(t.cityList=a.data.result),r.next=40;break;case 12:if("city"!==e){r.next=23;break}return t.registerForm.district="",t.registerForm.street="",t.registerForm.committee="",t.areaListQuery={type:3,parenttype:2,parentname:t.registerForm.city},r.next=19,Object(l.a)(t.areaListQuery);case 19:"200"===(i=r.sent).data.code&&(t.districtList=i.data.result),r.next=40;break;case 23:if("district"!==e){r.next=33;break}return t.registerForm.street="",t.registerForm.committee="",t.areaListQuery={type:4,parenttype:3,parentname:t.registerForm.district},r.next=29,Object(l.a)(t.areaListQuery);case 29:"200"===(s=r.sent).data.code&&(t.streetList=s.data.result),r.next=40;break;case 33:if("street"!==e){r.next=40;break}return t.registerForm.committee="",t.areaListQuery={type:5,parenttype:4,parentname:t.registerForm.street},r.next=38,Object(l.a)(t.areaListQuery);case 38:"200"===(o=r.sent).data.code&&(t.committeeList=o.data.result);case 40:case"end":return r.stop()}},r,t)}))()},showMaterial:function(){"烟花爆竹生产"===this.registerForm.type?(this.shortMaterial=!0,this.longMaterial=!0,this.produceMaterial=!0,this.buyMaterial=!1):"烟花爆竹批发经营"===this.registerForm.type?(this.shortMaterial=!0,this.longMaterial=!0,this.produceMaterial=!0,this.buyMaterial=!0):"烟花爆竹零售经营(长期)"===this.registerForm.type?(this.shortMaterial=!0,this.longMaterial=!0,this.produceMaterial=!1,this.buyMaterial=!1):(this.shortMaterial=!0,this.longMaterial=!1,this.produceMaterial=!1,this.buyMaterial=!1)},checkNameAndNumber:function(e){var t=this;"name"===e?Object(o.b)(this.registerForm.enterprisename).then(function(e){"200"===e.data.code?!0===e.data.result?(t.showName=!0,t.$message({type:"warning",message:"企业名称已存在"})):(t.$message({type:"success",message:"企业名称可以使用"}),t.showName=!1):(t.showName=!1,t.$message({type:"warning",message:e.data.message}))}).catch(function(e){Object(c.a)({error:e,vm:t})}):"number"===e&&Object(o.c)(this.registerForm.enterprisenumber).then(function(e){"200"===e.data.code?!0===e.data.result?(t.showNumber=!0,t.$message({type:"warning",message:"企业编号已存在"})):(t.$message({type:"success",message:"企业编号可以使用"}),t.showNumber=!1):(t.showNumber=!1,t.$message({type:"warning",message:e.data.message}))}).catch(function(e){Object(c.a)({error:e,vm:t})})}}},p=(r("fmMu"),r("ZrdR")),d=Object(p.a)(u,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"register_main"},[e._m(0),e._v(" "),r("div",{staticClass:"register_main_form"},[r("el-form",{ref:"ruleForm",attrs:{model:e.registerForm,rules:e.rules,"label-width":"200px"}},[r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"企业名称",prop:"enterprisename"}},[r("el-input",{on:{change:function(t){e.checkNameAndNumber("name")}},model:{value:e.registerForm.enterprisename,callback:function(t){e.$set(e.registerForm,"enterprisename",t)},expression:"registerForm.enterprisename"}})],1)],1),e._v(" "),e.showName?r("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:4}},[r("span",{staticStyle:{"margin-left":"5px",color:"red"}},[e._v("企业名称已存在")])]):e._e()],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"企业编号",prop:"enterprisenumber"}},[r("el-input",{on:{change:function(t){e.checkNameAndNumber("number")}},model:{value:e.registerForm.enterprisenumber,callback:function(t){e.$set(e.registerForm,"enterprisenumber",t)},expression:"registerForm.enterprisenumber"}})],1)],1),e._v(" "),e.showNumber?r("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:4}},[r("span",{staticStyle:{"margin-left":"5px",color:"red"}},[e._v("企业编号已存在")])]):e._e()],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"密码",prop:"password"}},[r("el-input",{model:{value:e.registerForm.password,callback:function(t){e.$set(e.registerForm,"password",t)},expression:"registerForm.password"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"企业类型",prop:"type"}},[r("el-select",{on:{change:e.showMaterial},model:{value:e.registerForm.type,callback:function(t){e.$set(e.registerForm,"type",t)},expression:"registerForm.type"}},e._l(e.typeList,function(e){return r("el-option",{key:e.id,attrs:{value:e.name,label:e.name}})}))],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"经营范围",prop:"businessrange"}},[r("el-input",{model:{value:e.registerForm.businessrange,callback:function(t){e.$set(e.registerForm,"businessrange",t)},expression:"registerForm.businessrange"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"负责人",prop:"legalperson"}},[r("el-input",{model:{value:e.registerForm.legalperson,callback:function(t){e.$set(e.registerForm,"legalperson",t)},expression:"registerForm.legalperson"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"负责人手机号",prop:"legalpersonphone"}},[r("el-input",{model:{value:e.registerForm.legalpersonphone,callback:function(t){e.$set(e.registerForm,"legalpersonphone",t)},expression:"registerForm.legalpersonphone"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"许可证开始时间",prop:"licensestart"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.registerForm.licensestart,callback:function(t){e.$set(e.registerForm,"licensestart",t)},expression:"registerForm.licensestart"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"许可证结束时间",prop:"licenseend"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.registerForm.licenseend,callback:function(t){e.$set(e.registerForm,"licenseend",t)},expression:"registerForm.licenseend"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"省:",prop:"province"}},[r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(t){e.changeArea("province")}},model:{value:e.registerForm.province,callback:function(t){e.$set(e.registerForm,"province",t)},expression:"registerForm.province"}},e._l(e.provinceList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1)],1),e._v(" "),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"市:",prop:"city"}},[r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(t){e.changeArea("city")}},model:{value:e.registerForm.city,callback:function(t){e.$set(e.registerForm,"city",t)},expression:"registerForm.city"}},e._l(e.cityList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"区/县:",prop:"district"}},[r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(t){e.changeArea("district")}},model:{value:e.registerForm.district,callback:function(t){e.$set(e.registerForm,"district",t)},expression:"registerForm.district"}},e._l(e.districtList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1)],1),e._v(" "),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"街道:",prop:"street"}},[r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(t){e.changeArea("street")}},model:{value:e.registerForm.street,callback:function(t){e.$set(e.registerForm,"street",t)},expression:"registerForm.street"}},e._l(e.streetList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"居委会:",prop:"committee"}},[r("el-select",{attrs:{clearable:"",filterable:""},on:{change:function(t){e.changeArea("committee")}},model:{value:e.registerForm.committee,callback:function(t){e.$set(e.registerForm,"committee",t)},expression:"registerForm.committee"}},e._l(e.committeeList,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}))],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"详细地址",prop:"address"}},[r("el-input",{model:{value:e.registerForm.address,callback:function(t){e.$set(e.registerForm,"address",t)},expression:"registerForm.address"}})],1)],1)],1),e._v(" "),e.longMaterial?r("el-row",[r("el-form-item",{attrs:{label:"企业营业执照、生产许可证:",prop:"imgs"}},[r("el-upload",{attrs:{action:"#","list-type":"picture-card","file-list":e.businessLicense,"on-change":e.handleChangeOne,"auto-upload":!1},scopedSlots:e._u([{key:"file",fn:function(t){var a=t.file;return r("div",{},[r("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url,alt:""}}),e._v(" "),r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){e.handlePictureCardPreview(a)}}},[r("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){e.handleRemove(a,"one")}}},[r("i",{staticClass:"el-icon-delete"})])])])}}])},[r("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)],1):e._e(),e._v(" "),e.shortMaterial?r("el-row",[r("el-form-item",{attrs:{label:"法人身份证复印件加盖公章:",prop:"imgs"}},[r("el-upload",{attrs:{action:"#","list-type":"picture-card","file-list":e.idCard,"on-change":e.handleChangeTwo,"auto-upload":!1},scopedSlots:e._u([{key:"file",fn:function(t){var a=t.file;return r("div",{},[r("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url,alt:""}}),e._v(" "),r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){e.handlePictureCardPreview(a)}}},[r("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){e.handleRemove(a,"two")}}},[r("i",{staticClass:"el-icon-delete"})])])])}}])},[r("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)],1):e._e(),e._v(" "),e.shortMaterial?r("div",[r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"有效期开始时间(主要负责人):",prop:"legalpersonstart"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.registerForm.legalpersonstart,callback:function(t){e.$set(e.registerForm,"legalpersonstart",t)},expression:"registerForm.legalpersonstart"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"结束时间",prop:"legalpersonend"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.registerForm.legalpersonend,callback:function(t){e.$set(e.registerForm,"legalpersonend",t)},expression:"registerForm.legalpersonend"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"主要负责人、安全生产管理人员考核合格的证明材料:",prop:"imgs"}},[r("el-upload",{attrs:{action:"#","list-type":"picture-card","file-list":e.legalPerson,"on-change":e.handleChangeThree,"auto-upload":!1},scopedSlots:e._u([{key:"file",fn:function(t){var a=t.file;return r("div",{},[r("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url,alt:""}}),e._v(" "),r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){e.handlePictureCardPreview(a)}}},[r("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){e.handleRemove(a,"three")}}},[r("i",{staticClass:"el-icon-delete"})])])])}}])},[r("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)],1)],1):e._e(),e._v(" "),e.produceMaterial?r("div",[r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"有效期开始时间(特种人员):",prop:"qualificationstart"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.registerForm.qualificationstart,callback:function(t){e.$set(e.registerForm,"qualificationstart",t)},expression:"registerForm.qualificationstart"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"结束时间",prop:"qualificationend"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.registerForm.qualificationend,callback:function(t){e.$set(e.registerForm,"qualificationend",t)},expression:"registerForm.qualificationend"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"特种作业人员取得操作资格证书的证明材料,从业人员安全生产教育和培训合格的证明材料:",prop:"imgs"}},[r("el-upload",{attrs:{action:"#","list-type":"picture-card","file-list":e.operationQualification,"on-change":e.handleChangeFour,"auto-upload":!1},scopedSlots:e._u([{key:"file",fn:function(t){var a=t.file;return r("div",{},[r("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url,alt:""}}),e._v(" "),r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){e.handlePictureCardPreview(a)}}},[r("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){e.handleRemove(a,"four")}}},[r("i",{staticClass:"el-icon-delete"})])])])}}])},[r("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"有效期开始时间(押运公司):",prop:"escortstart"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.registerForm.escortstart,callback:function(t){e.$set(e.registerForm,"escortstart",t)},expression:"registerForm.escortstart"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"结束时间",prop:"escortend"}},[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期时间"},model:{value:e.registerForm.escortend,callback:function(t){e.$set(e.registerForm,"escortend",t)},expression:"registerForm.escortend"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-form-item",{attrs:{label:"押运公司营业执照、道路运输经营许可证、危险品准运证:",prop:"imgs"}},[r("el-upload",{attrs:{action:"#","list-type":"picture-card","file-list":e.escortCompany,"on-change":e.handleChangeFive,"auto-upload":!1},scopedSlots:e._u([{key:"file",fn:function(t){var a=t.file;return r("div",{},[r("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url,alt:""}}),e._v(" "),r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){e.handlePictureCardPreview(a)}}},[r("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){e.handleRemove(a,"five")}}},[r("i",{staticClass:"el-icon-delete"})])])])}}])},[r("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)],1)],1):e._e(),e._v(" "),e.shortMaterial?r("el-row",[r("el-form-item",{attrs:{label:"安全责任险、意外险投保材料:",prop:"imgs"}},[r("el-upload",{attrs:{action:"#","list-type":"picture-card","file-list":e.insurance,"on-change":e.handleChangeSix,"auto-upload":!1},scopedSlots:e._u([{key:"file",fn:function(t){var a=t.file;return r("div",{},[r("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url,alt:""}}),e._v(" "),r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){e.handlePictureCardPreview(a)}}},[r("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){e.handleRemove(a,"six")}}},[r("i",{staticClass:"el-icon-delete"})])])])}}])},[r("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)],1):e._e(),e._v(" "),e.buyMaterial?r("el-row",[r("el-form-item",{attrs:{label:"安全生产标准化证书材料:",prop:"imgs"}},[r("el-upload",{attrs:{action:"#","list-type":"picture-card","file-list":e.safetyProduction,"on-change":e.handleChangeSeven,"auto-upload":!1},scopedSlots:e._u([{key:"file",fn:function(t){var a=t.file;return r("div",{},[r("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url,alt:""}}),e._v(" "),r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){e.handlePictureCardPreview(a)}}},[r("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){e.handleRemove(a,"seven")}}},[r("i",{staticClass:"el-icon-delete"})])])])}}])},[r("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)],1):e._e()],1),e._v(" "),r("div",{staticStyle:{"padding-bottom":"30px"},attrs:{align:"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit()}}},[e._v("同意协议并注册")])],1),e._v(" "),r("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1)])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"register_main_body"},[t("span",{staticClass:"register_main_body_span"},[this._v("用户注册")])])}],!1,null,null,null);d.options.__file="register.vue";t.default=d.exports},xOJF:function(e,t,r){var a=function(){return this}()||Function("return this")(),n=a.regeneratorRuntime&&Object.getOwnPropertyNames(a).indexOf("regeneratorRuntime")>=0,i=n&&a.regeneratorRuntime;if(a.regeneratorRuntime=void 0,e.exports=r("k4Ii"),n)a.regeneratorRuntime=i;else try{delete a.regeneratorRuntime}catch(e){a.regeneratorRuntime=void 0}}}]);