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 lines
5.6 KiB
1 lines
5.6 KiB
(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"),s=getApp(),o={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;s.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;s.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?this.isEdit?s.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"})})):s.http("post","EnterpriseAuthentication/createAuthenticInfoTwo",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"})})):e.showToast({title:"请填写身份证号",icon:"none"}):e.showToast({title:"请填写手机号",icon:"none"}):e.showToast({title:"请填写姓名",icon:"none"}):e.showToast({title:"请输入开户网点",icon:"none"}):e.showToast({title:"请输入银行名称",icon:"none"}):e.showToast({title:"请输入银行账号",icon:"none"}):e.showToast({title:"请上传营业执照",icon:"none"}):e.showToast({title:"请选择企业规模",icon:"none"}):e.showToast({title:"请填写信用代码",icon:"none"}):e.showToast({title:"请填写企业名称",icon:"none"}):e.showToast({title:"请上传授权书!",icon:"none"})}}};t.default=o}).call(this,a("543d")["default"])},"9ea5":function(e,t,a){"use strict";(function(e){a("ef82");n(a("66fd"));var t=n(a("c3ec"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,a("543d")["createPage"])},"9f44":function(e,t,a){"use strict";a.r(t);var n=a("845d"),s=a.n(n);for(var o in n)"default"!==o&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=s.a},bd72:function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var s=function(){var e=this,t=e.$createElement;e._self._c},o=[]},c3ec:function(e,t,a){"use strict";a.r(t);var n=a("bd72"),s=a("9f44");for(var o in s)"default"!==o&&function(e){a.d(t,e,(function(){return s[e]}))}(o);a("cea0");var i,r=a("f0c5"),c=Object(r["a"])(s["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],i);t["default"]=c.exports},cea0:function(e,t,a){"use strict";var n=a("43b3"),s=a.n(n);s.a}},[["9ea5","common/runtime","common/vendor"]]]); |