12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0bdbf1ef"],{"0de5":function(t,a,e){"use strict";e("ccbc")},"301c":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t._self._c;return a("div",{staticClass:"wrap"},[a("div",{staticClass:"header-sub"},[a("div",{staticClass:"header-sub-middle"},[a("div",{staticClass:"header-top"},[a("img",{staticClass:"logo-img",attrs:{src:e("7eba")},on:{click:function(a){return t.$router.push("/")}}})])])]),a("p",{staticClass:"top-title"},[t._v("供应商入驻申请")]),a("div",{staticClass:"middle-container"},[a("div",{staticClass:"form"},[a("div",{staticClass:"process-wrap"},[a("div",{staticClass:"process active"},[a("span",{staticClass:"process-label"},[t._v("验证手机号")]),a("span",{staticClass:"circle",class:{bg:t.currentStep>=1}},[t._v("1")])]),a("div",{staticClass:"process"},[a("span",{staticClass:"process-label"},[t._v("企业认证")]),a("span",{staticClass:"circle",class:{bg:t.currentStep>=2}},[t._v("2")])]),a("div",{staticClass:"process"},[a("span",{staticClass:"process-label"},[t._v("授权条例")]),a("span",{staticClass:"circle",class:{bg:t.currentStep>=3}},[t._v("3")])]),a("div",{staticClass:"process"},[a("span",{staticClass:"process-label"},[t._v("订购服务")]),a("span",{staticClass:"circle",class:{bg:t.currentStep>=4}},[t._v("4")])])]),a("entry-verification-number-step1",{directives:[{name:"show",rawName:"v-show",value:1===t.currentStep,expression:"currentStep === 1"}],on:{next:function(a){t.currentStep=2}}}),a("entry-verification-number-step2",{directives:[{name:"show",rawName:"v-show",value:2===t.currentStep,expression:"currentStep === 2"}],on:{next:t.next2,prev:function(a){t.currentStep=1}},model:{value:t.params,callback:function(a){t.params=a},expression:"params"}}),a("entry-verification-number-step3",{directives:[{name:"show",rawName:"v-show",value:3===t.currentStep,expression:"currentStep === 3"}],on:{next:t.next3,prev:function(a){t.currentStep=2}},model:{value:t.params,callback:function(a){t.params=a},expression:"params"}}),a("entry-verification-number-step4",{directives:[{name:"show",rawName:"v-show",value:4===t.currentStep,expression:"currentStep === 4"}],attrs:{result:t.result},on:{reset:function(a){t.currentStep=2},"update-result":function(a){return t.getResult()}}})],1)])])},r=[],i=e("e4b5"),n=function(){var t=this,a=t._self._c;return a("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center"}},[a("div",{staticClass:"form-row"},[a("span",{staticClass:"form-label"},[t._v("公司名称:")]),a("div",{staticClass:"form-input-box"},[a("el-input",{attrs:{placeholder:"请输入公司全称"},model:{value:t.value.corporate,callback:function(a){t.$set(t.value,"corporate",a)},expression:"value.corporate"}})],1)]),a("div",{staticClass:"form-row"},[a("span",{staticClass:"form-label"},[t._v("统一社会信用代码:")]),a("div",{staticClass:"form-input-box"},[a("el-input",{attrs:{placeholder:"请输入统一社会信用代码"},model:{value:t.value.credit_code,callback:function(a){t.$set(t.value,"credit_code",a)},expression:"value.credit_code"}})],1)]),a("div",{staticClass:"form-row"},[a("span",{staticClass:"form-label"},[t._v("供应商性质:")]),a("el-select",{attrs:{placeholder:"供应商性质",disabled:""},model:{value:t.value.nature,callback:function(a){t.$set(t.value,"nature",a)},expression:"value.nature"}},[a("el-option",{attrs:{label:"企业",value:"企业"}}),a("el-option",{attrs:{label:"个人",value:"个人"}})],1)],1),a("div",{staticClass:"upload-wrap"},[a("div",{staticClass:"upload-module"},[a("span",{staticClass:"upload-label"},[t._v("上传营业执照:")]),a("div",{staticClass:"upload-box"},[a("img",{staticClass:"upload-img",attrs:{src:e("8087")}}),t.value.business_image.length>0?a("img",{staticClass:"upload-img",attrs:{src:t.BASE_URL+t.value.business_image}}):t._e(),a("input",{attrs:{type:"file"},on:{change:function(a){return t.uploadImage(a,"business_image")}}})])]),a("div",{staticClass:"upload-module"},[a("span",{staticClass:"upload-label"},[t._v("上传logo图:")]),a("div",{staticClass:"upload-box"},[a("img",{staticClass:"upload-img",attrs:{src:e("7f82")}}),t.value.logo_image.length>0?a("img",{staticClass:"upload-img",attrs:{src:t.BASE_URL+t.value.logo_image}}):t._e(),a("input",{attrs:{type:"file"},on:{change:function(a){return t.uploadImage(a,"logo_image")}}})])])]),a("div",{staticClass:"btn-box"},[a("button",{staticClass:"border-btn",attrs:{type:"button"},on:{click:function(a){return t.prev()}}},[t._v("上一步")]),a("button",{attrs:{type:"button"},on:{click:function(a){return t.next()}}},[t._v("下一步")])])])},c=[],o=e("f523"),u=e("a49b"),l={name:"entry-verification-number-step-2",model:{prop:"params",event:"params"},props:{params:{default:{nature:"企业",corporate:"",credit_code:"",trademark:"",business_image:"",logo_image:"",trademark_image:""}}},computed:{value:{get:function(){return this.params},set:function(t){this.$emit("params",t)}}},data:function(){return{BASE_URL:u["a"]}},mounted:function(){},methods:{prev:function(){this.$emit("prev",this.value)},next:function(){this.$emit("next",this.value)},uploadImage:function(t,a){var e=this,s=t.target.files[0];s&&Object(o["u"])(s).then((function(t){var s=t.data;e.params[a]=s.pic_path}))}}},p=l,m=(e("0de5"),e("2877")),d=Object(m["a"])(p,n,c,!1,null,"461017c4",null),v=d.exports,f=function(){var t=this,a=t._self._c;return a("div",[a("div",{staticClass:"form-row"},[a("span",{staticClass:"form-label"},[t._v("商标注册证:")]),a("div",{staticClass:"form-input-box"},[a("el-input",{attrs:{placeholder:"请输入商标注册编号"},model:{value:t.value.trademark,callback:function(a){t.$set(t.value,"trademark",a)},expression:"value.trademark"}})],1)]),a("div",{staticClass:"form-row"},[a("div",{staticClass:"upload-wrap"},[a("div",{staticClass:"upload-module"},[a("span",{staticClass:"upload-label"},[t._v("上传品牌授权书:")]),a("div",{staticStyle:{display:"flex"}},[t._l(t.trademark_image,(function(s,r){return a("div",{key:r,staticClass:"upload-box",staticStyle:{"margin-right":"10px"}},[a("img",{staticClass:"upload-img",attrs:{src:e("e1ed")}}),a("img",{staticClass:"upload-img",attrs:{src:t.BASE_URL+s}}),a("img",{staticClass:"close",attrs:{src:e("cd5c")},on:{click:function(a){t.trademark_image.splice(r,1),t.params.trademark_image=t.trademark_image.join(",")}}})])})),a("div",{staticClass:"upload-box"},[a("img",{staticClass:"upload-img",attrs:{src:e("e1ed")}}),a("input",{attrs:{type:"file"},on:{change:function(a){return t.uploadImage(a,"trademark_image")}}})])],2)])])]),a("div",{staticClass:"btn-box"},[a("button",{staticClass:"border-btn",attrs:{type:"button"},on:{click:function(a){return t.prev()}}},[t._v("上一步")]),a("button",{attrs:{type:"button"},on:{click:function(a){return t.next()}}},[t._v("提交审核")])])])},b=[],g=(e("28a5"),{name:"entry-verification-number-step-3",model:{prop:"params",event:"params"},props:{params:{default:{nature:"企业",corporate:"",credit_code:"",trademark:"",business_image:"",logo_image:"",trademark_image:""}}},watch:{params:function(t){this.trademark_image=t.trademark_image.split(",")}},computed:{value:{get:function(){return this.params},set:function(t){this.$emit("params",t)}}},data:function(){return{BASE_URL:u["a"],trademark_image:[]}},mounted:function(){},methods:{prev:function(){this.$emit("prev",this.value)},next:function(){this.$emit("next",this.value)},uploadImage:function(t,a){var e=this,s=t.target.files[0];s&&Object(o["u"])(s).then((function(t){var s=t.data;"trademark_image"===a?(e.trademark_image.push(s.pic_path),e.params[a]=e.trademark_image.join(",")):e.params[a]=s.pic_path}))}}}),_=g,h=(e("31e1"),Object(m["a"])(_,f,b,!1,null,"6e6ac681",null)),C=h.exports,y=function(){var t=this,a=t._self._c;return a("div",[4===t.result.status?a("div",{staticClass:"result-box"},[a("img",{attrs:{src:e("6fee")}}),t._v("支付成功\n ")]):t._e(),2===t.result.status?a("div",{staticClass:"result-box"},[a("img",{attrs:{src:e("4b12")}}),a("span",[t._v("审核失败")]),a("span",{staticClass:"fail-msg"},[t._v(t._s(t.result.reason))])]):t._e(),1===t.result.status?a("div",{staticClass:"result-box"},[a("img",{attrs:{src:e("555a")}}),a("span",[t._v("正在审核中,请稍后")])]):t._e(),3===t.result.status?a("div",{staticClass:"pay-box"},[a("p",{staticClass:"amount-payable-row"},[a("span",{staticClass:"amount-payable-price"},[t._v("¥"),a("span",[t._v(t._s(t.result.price))])]),a("br"),t._v("\n 应付金额\n ")]),a("ul",{staticClass:"pay-type-list"},[a("li",{class:{active:"alipay"===t.payParams.pay_type},on:{click:function(a){t.payParams.pay_type="alipay"}}},[a("img",{attrs:{src:e("aaaf")}}),t._v("支付宝支付")]),a("li",{class:{active:"wechatpay"===t.payParams.pay_type},on:{click:function(a){t.payParams.pay_type="wechatpay"}}},[a("img",{attrs:{src:e("650b")}}),t._v("微信支付")]),a("li",{on:{click:function(a){return t.Message.warning("暂不支持")}}},[a("img",{attrs:{src:e("34cc")}}),t._v("银联支付")])])]):t._e(),3===t.result.status?a("div",{staticClass:"center-btn-box"},[a("div",{staticClass:"btn-box",staticStyle:{"justify-content":"center"}},[a("button",{attrs:{type:"button"},on:{click:function(a){return t.pay()}}},[t._v("立即支付")])])]):t._e(),-1===t.result.status?a("div",{staticClass:"center-btn-box"},[a("div",{staticClass:"btn-box",staticStyle:{"justify-content":"center"}},[a("button",{staticClass:"border-btn",attrs:{type:"button"},on:{click:function(a){return t.$router.push("/entry-enterprise-authorization-regulations")}}},[t._v("上一步")]),a("button",{attrs:{type:"button"},on:{click:function(a){return t.pay()}}},[t._v("重新支付")])])]):t._e(),1===t.result.status||2===t.result.status?a("div",{staticClass:"center-btn-box"},[a("div",{staticClass:"btn-box",staticStyle:{"justify-content":"center"}},[a("button",{attrs:{type:"button"},on:{click:function(a){return t.reset()}}},[t._v("重新提交认证信息")])])]):t._e(),a("ali-wechat-pay",{ref:"aliWechatPay",on:{success:function(a){return t.updateResult()}}})],1)},x=[],k=e("7a70"),A=e("5c96"),S={name:"entry-verification-number-step-4",components:{AliWechatPay:k["a"]},props:{result:{default:{}}},data:function(){return{Message:A["Message"],payParams:{pay_type:"alipay",out_trade_no:"",return_url:location.href}}},mounted:function(){},methods:{pay:function(){var t=this.payParams;t.out_trade_no=this.result.out_trade_no,this.$refs["aliWechatPay"].pay(t)},prev:function(){this.$emit("prev","")},next:function(){this.$emit("next","")},reset:function(){this.$emit("reset","")},updateResult:function(){this.$emit("update-result","")}}},w=S,E=(e("726c"),Object(m["a"])(w,y,x,!1,null,"51a0facf",null)),I=E.exports,R=e("325c"),U={components:{EntryVerificationNumberStep1:i["a"],EntryVerificationNumberStep2:v,EntryVerificationNumberStep3:C,EntryVerificationNumberStep4:I},data:function(){var t={nature:"企业",corporate:"",credit_code:"",trademark:"",business_image:"",logo_image:"",trademark_image:""};return{BASE_URL:u["a"],params:t,currentStep:1,result:{},userInfo:{}}},watch:{params:{deep:!0,handler:function(t){this.validatorNullResult=Object(R["d"])(t,this.validatorNullList)}}},mounted:function(){var t=this;this.getUserInfo().then((function(){t.userInfo.member_id>0&&(t.currentStep=2,t.getResult())}))},methods:{next2:function(){var t=[["corporate",["notNull","请填写公司名称"]],["credit_code",["notNull","请填写社会信用代码"]],["business_image",["notNull","请上传营业执照"]],["logo_image",["notNull","请上传logo"]]],a=Object(R["d"])(this.params,t);if(a.length>0)return A["Message"].warning(a[0].errMsg);this.currentStep=3},next3:function(){var t=this,a=[["trademark",["notNull","请填写商品授权证书编码"]],["trademark_image",["notNull","请上传商品授权证书"]]],e=Object(R["d"])(this.params,a);if(e.length>0)return A["Message"].warning(e[0].errMsg);o["t"].addexamine(this.params).then((function(){A["Message"].success("提交成功"),t.getResult()}))},getResult:function(){var t=this;return o["t"].info().then((function(a){var e=a.data;t.result=e||{id:0}})).then((function(){t.result.id>0&&(t.currentStep=4)}))},getUserInfo:function(){var t=this;return o["i"].info().then((function(a){var e=a.data;t.userInfo=e,localStorage.setItem("user_info",JSON.stringify(t.userInfo))})).catch((function(){t.userInfo={member_id:0},localStorage.setItem("user_info",JSON.stringify(t.userInfo))}))}}},N=U,O=(e("5760"),Object(m["a"])(N,s,r,!1,null,"20d5a642",null));a["default"]=O.exports},"31e1":function(t,a,e){"use strict";e("ac64")},"3c82":function(t,a,e){},5760:function(t,a,e){"use strict";e("3c82")},"726c":function(t,a,e){"use strict";e("c6ac")},ac64:function(t,a,e){},c6ac:function(t,a,e){},ccbc:function(t,a,e){},cd5c:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IArs4c6QAAAfJJREFUWEe92DFLxDAUB/D3eqvuDi5+hiazswgiLgrn4KBugp9DXB3OVQUFBxc3v8G14OLg4uLgRxAO7JOU9kh7TZu8pLmpQxp+fWle/xcUQuwAwC0AABFd5Hn+oq5j/6SUUyK6BoBfRDxBIcQ3EW0qCCL+AcBxlmWPMWFSyrOiKGaKUDk+GrAah4jT+Xz+FAPXRi1haZruI+IzEU1qSKzKdaEAYIGIu2XppJSHRPTQxo1ZORMKAA7yPH8tYbFxQ6hyOfX3KEblbFArsLErZ4vqhI2Fc0EZYX04Tp9zRfXCQuE4qEGYGiCEOAKAe06f46KsYFycD8oa5orzRTnBbHEhUM6wIRwiruspoWrei/oz4xIKGp3f9kbThiCipPU1YaFYFavxXbjWg7FRXjDTsvosn/5grKWsJzC86GUS9o1MbJgJVaN9cSxYT/KchAqbzrC+PpUkyVqoJOwEs2meocKmNcwGpW0K7/8QVjAXVCjcIIyDCoHrhfmgfHFGWJqmp9WZhj6G9ZnhbIhOWEgUt3IrsDFQHFwDNibKFbeExUC54EpYTJQtDtVJXlEUd6GSp20KVuNMu1VFcXVw90NEG9qErJbgAtLHGnCfCvZFRFuhkicH2MYh4rtaym0iuqkmvMyy7I0zue89Qog9ALiqDofP/wFYOoZ/0cEMkQAAAABJRU5ErkJggg=="},e1ed:function(t,a,e){t.exports=e.p+"img/upload-6.d02c731c.png"}}]);
- //# sourceMappingURL=chunk-0bdbf1ef.8982be0e.js.map
|