You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
5.8 KiB

3 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/release/companyAuth/index"],{"43b3":function(e,t,a){},"845d":function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a("514b"),o=getApp(),i={data:function(){return{form:{isLegalPerson:0,authorizationPath:"",enterpriseName:"",creditCode:"",industryId:"",enterpriseScale:"请选择",businessLicense:"",bankAccount:"",bankName:"",bankBranch:"",legalPersonName:"",legalPhone:"",legalPersonIdcard:"",idcardPicFront:"",idcardPicBehind:"",idcardPicHold:""},isEdit:!1,scaleArr:["0-25","25-99","99-200","200-500","500及以上"],resourcesList:"",resourcesIdx:""}},components:{},props:{},onLoad:function(e){if(this.getResourcesCagetory(),e.authInfo){var t=JSON.parse(decodeURIComponent(e.authInfo));this.form.authorizationType=1,this.form.id=t.id,this.form.enterpriseId=t.enterpriseId,this.form.idcardPicHold=t.idcardPicHold||"",this.form.idcardPicBehind=t.idcardPicBehind||"",this.form.idcardPicFront=t.idcardPicFront||"",this.form.legalPersonIdcard=t.legalPersonIdcard||"",this.form.legalPhone=t.legalPhone||"",this.form.legalPersonName=t.legalPersonName||"",this.form.bankBranch=t.bankBranch||"",this.form.bankName=t.bankName||"",this.form.bankAccount=t.bankAccount||"",this.form.businessLicense=t.businessLicense||"",this.form.enterpriseScale=t.enterpriseScale||"请选择",this.form.creditCode=t.creditCode,this.form.enterpriseName=t.enterpriseName,this.form.authorizationPath=t.authorizationPath||"",this.form.isLegalPerson=0}},methods:{getResourcesCagetory:function(){var e=this;o.http("GET","ResourcesCagetory/listResourcesCagetory").then((function(t){t.data.success&&e.setData({resourcesList:t.data.data})}))},resourcesChange:function(e){var t=Number(e.detail.value);this.setData({resourcesIdx:t}),this.form.industryId=this.resourcesList[t].id},toProfession:function(){},checkBank:function(e){var t=this;o.http("get","EnterpriseAuthentication/getBankName",{bankAccount:e.detail.value}).then((function(e){e.data.success&&(t.setData({}),t.form.bankName=e.data.data)}))},inpChange:function(e){var t=e.currentTarget.dataset.type,a=e.detail.value;switch(t){case"enterpriseName":this.setData({}),this.form.enterpriseName=a;break;case"creditCode":this.setData({}),this.form.creditCode=a;break;case"bankAccount":this.setData({}),this.form.bankAccount=a;break;case"bankName":this.setData({}),this.form.bankName=a;break;case"bankBranch":this.setData({}),this.form.bankBranch=a;break;case"name":this.setData({}),this.form.legalPersonName=a;break;case"phone":this.setData({}),this.form.legalPhone=a;break;case"idcard":this.setData({}),this.form.legalPersonIdcard=a;break}},upCard:function(e){var t=this,a=e.currentTarget.dataset.type;n.chooseImages((function(e){"f"==a?(t.setData({}),t.form.idcardPicFront=e):"b"==a?(t.setData({}),t.form.idcardPicBehind=e):"h"==a?(t.setData({}),t.form.idcardPicHold=e):"ap"==a?(t.setData({}),t.form.authorizationPath=e):"bl"==a&&(t.setData({}),t.form.businessLicense=e)}))},bindPickerChange:function(e){this.setData({}),this.form.enterpriseScale=this.scaleArr[e.detail.value]},radioClick:function(e){this.setData({}),this.form.isLegalPerson=e.detail.value},prevImg:function(e){},submit:function(){var t=this.form;console.log(t),0!=t.isLegalPerson||""!=t.authorizationPath?""!=t.enterpriseName?""!=t.creditCode?"请选择"!=t.enterpriseScale?""!=t.businessLicense?""!=t.bankAccount?""!=t.bankName?""!=t.bankName?""!=t.legalPersonName?""!=t.legalPhone?""!=t.legalPersonIdcard?""!=t.idcardPicFront?""!=t.idcardPicBehind?""!=t.idcardPicHold?this.isEdit?o.http("post","EnterpriseAuthentication/editAuthenticInfo",this.form).then((function(t){t.data.success?e.showModal({title:"提示!",content:"提交成功!请等待审核",success:function(t){e.navigateBack({delta:1})}}):e.showToast({title:t.data.msg,icon:"none"})})):o.http("post","EnterpriseAuthentication/createAuthenticInfoTwo",this.form).then((function(t){t.data.success?e.showModal({title:"提示!",content:"提交成功!请等待审核",success:function(t){e.navigateBack({delta:1})}}):e