1 |
- import{d as Q,y as X,e as z,H as G,r as y,x as k,b as W,w as x,dy as w,i as Y,k as Z,a,o as m,A as _,B as l,f as e,E as f,c as g,C as $,ac as ee,a8 as le,S as ae,J as te,Q as de,R as ue,M as oe,b2 as ie,K as re,U as se,X as ne,__tla as pe}from"./index-3007d289.js";import{_ as me,__tla as ce}from"./style.css_vue_type_style_index_0_src_true_lang-a4d801f4.js";import{_ as _e,__tla as fe}from"./UploadImgs-0c62f95a.js";import{_ as be,__tla as Ve}from"./UploadImg-30f23096.js";import{g as ve,__tla as ye}from"./index-e4ffe4e9.js";import{d as ge}from"./tree-fd3a041e.js";import{u as he,__tla as Ue}from"./useMessage-2871558a.js";import{_ as Ne}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ce}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-8677fede.js";import{__tla as Le}from"./el-image-viewer-6eac4fa6.js";import{__tla as Pe}from"./index-64e23d44.js";let S,De=Promise.all([(()=>{try{return pe}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Le}catch{}})(),(()=>{try{return Pe}catch{}})()]).then(async()=>{let h,U,N,C;h={key:0},U={key:3},N=["innerHTML"],C={key:4},S=Ne(Q({__name:"MerchantBaseInfo",props:{id:{type:Number,default:0},isDetail:{type:Boolean,default:!1},openType:{type:String,default:"\u67E5\u770B"},propFormData:{type:Object,default:()=>{}}},emits:["update:activeName"],setup(s,{expose:H,emit:T}){const F=X(),b=z(()=>F.getMobile),R=he();G();const q=y(!1),t=k({id:void 0,name:void 0,status:void 0,description:void 0,contact:void 0,address:void 0,contactNumber:void 0,website:void 0,createTime:void 0,complaintsHotline:void 0,customerServiceHotline:void 0,email:void 0,businessLicensePicture:void 0,expireTime:void 0,areaId:void 0,accountName:void 0,accountNumber:void 0,bankName:void 0,brandLicensing:void 0,otherCertificate:[],legalPerson:void 0,legalPersonNumber:void 0,identityCardFront:void 0,identityCardReverseSide:void 0,logoUrl:void 0}),I=k({name:[{required:!0,message:"\u5546\u6237\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],contact:[{required:!0,message:"\u8054\u7EDC\u4EBA\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],contactNumber:[{required:!0,message:"\u8054\u7EDC\u4EBA\u624B\u673A\u53F7\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],businessLicensePicture:[{required:!0,message:"\u8425\u4E1A\u6267\u7167\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],brandLicensing:[{required:!0,message:"\u54C1\u724C\u6388\u6743\u4E66\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],accountName:[{required:!0,message:"\u8D26\u6237\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],accountNumber:[{required:!0,message:"\u8D26\u6237\u53F7\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],bankName:[{required:!0,message:"\u5F00\u6237\u94F6\u884C\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),V=y(),L=s,P=y([]);W(async()=>{P.value=await ve()}),x(()=>L.propFormData,c=>{var n;if(!c)return;w(t,c);let d=100;t.otherCertificate=(n=c.otherCertificate)==null?void 0:n.map((o,i)=>(d++,{url:o,uid:Math.round(new Date+d),status:"success"}))},{immediate:!0});const M=T;H({validate:async()=>{var c;if(V)try{return await((c=a(V))==null?void 0:c.validate()),Object.assign(L.propFormData,t),!0}catch{return R.error("\u57FA\u672C\u4FE1\u606F\u4E0D\u5B8C\u5584\uFF0C\u8BF7\u586B\u5199\u76F8\u5173\u4FE1\u606F"),M("update:activeName","info"),!1}}});const B=Y("updateInitialData");return x(t,c=>{try{w(B.value,t)}catch{}},{immediate:!0}),(c,d)=>{const n=le,o=ae,i=te,v=de,O=ue,r=oe,j=ie,p=be,D=re,E=_e,K=me,A=se,J=ne;return Z((m(),_(A,{ref_key:"formRef",ref:V,model:a(t),class:ee([{view:s.isDetail,"mobile-card":a(b)},"overflow-auto"]),rules:a(I),"label-width":"120px",disabled:s.isDetail,style:{overflow:"hidden"}},{default:l(()=>[e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u5546\u6237\u540D\u79F0",prop:"name"},{default:l(()=>[e(n,{modelValue:a(t).name,"onUpdate:modelValue":d[0]||(d[0]=u=>a(t).name=u),placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),s.openType!="\u65B0\u589E"?(m(),_(i,{key:0,span:12},{default:l(()=>[e(o,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(O,{modelValue:a(t).status,"onUpdate:modelValue":d[1]||(d[1]=u=>a(t).status=u),placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u72B6\u6001",class:"w-1/1",clearable:""},{default:l(()=>[e(v,{label:"\u4F7F\u7528\u4E2D",value:10}),e(v,{label:"\u8FC7\u671F",value:20}),e(v,{label:"\u505C\u7528",value:30})]),_:1},8,["modelValue"])]),_:1})]),_:1})):f("",!0)]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u8054\u7EDC\u4EBA",prop:"contact"},{default:l(()=>[e(n,{modelValue:a(t).contact,"onUpdate:modelValue":d[2]||(d[2]=u=>a(t).contact=u),placeholder:"\u8BF7\u8F93\u5165\u8054\u7EDC\u4EBA"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(o,{label:"\u6240\u5728\u5730",prop:"areaId"},{default:l(()=>[e(j,{modelValue:a(t).areaId,"onUpdate:modelValue":d[3]||(d[3]=u=>a(t).areaId=u),options:a(P),props:a(ge),class:"w-1/1",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",filterable:"","collapse-tags":""},null,8,["modelValue","options","props"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u8054\u7EDC\u4EBA\u624B\u673A\u53F7",prop:"contactNumber"},{default:l(()=>[e(n,{modelValue:a(t).contactNumber,"onUpdate:modelValue":d[4]||(d[4]=u=>a(t).contactNumber=u),placeholder:"\u8BF7\u8F93\u5165\u8054\u7EDC\u4EBA\u624B\u673A\u53F7",maxlength:"11",onkeyup:"value=value.replace(/[^\\d]/g,'')"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(o,{label:"\u90AE\u7BB1",prop:"email"},{default:l(()=>[e(n,{modelValue:a(t).email,"onUpdate:modelValue":d[5]||(d[5]=u=>a(t).email=u),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u6CD5\u4EBA",prop:"legalPerson"},{default:l(()=>[e(n,{modelValue:a(t).legalPerson,"onUpdate:modelValue":d[6]||(d[6]=u=>a(t).legalPerson=u),placeholder:"\u8BF7\u8F93\u5165\u6CD5\u4EBA"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(o,{label:"\u6CD5\u4EBA\u624B\u673A\u53F7",prop:"legalPersonNumber"},{default:l(()=>[e(n,{modelValue:a(t).legalPersonNumber,"onUpdate:modelValue":d[7]||(d[7]=u=>a(t).legalPersonNumber=u),placeholder:"\u8BF7\u8F93\u5165\u6CD5\u4EBA\u624B\u673A\u53F7",maxlength:"11",onkeyup:"value=value.replace(/[^\\d]/g,'')"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(b)?(m(),g("div",h,[e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"\u6CD5\u4EBA\u8EAB\u4EFD\u8BC1\u6B63\u9762",prop:"businessLicensePicture"})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(o,{prop:"identityCardFront",class:"pic"},{default:l(()=>[e(p,{modelValue:a(t).identityCardFront,"onUpdate:modelValue":d[8]||(d[8]=u=>a(t).identityCardFront=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"\u6CD5\u4EBA\u8EAB\u4EFD\u8BC1\u53CD\u9762",prop:"businessLicensePicture"})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(o,{prop:"identityCardReverseSide",class:"pic"},{default:l(()=>[e(p,{modelValue:a(t).identityCardReverseSide,"onUpdate:modelValue":d[9]||(d[9]=u=>a(t).identityCardReverseSide=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})])):(m(),_(r,{key:1},{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u6CD5\u4EBA\u8EAB\u4EFD\u8BC1\u6B63\u9762(\u56FD\u5FBD\u9762)",prop:"identityCardFront"},{default:l(()=>[e(p,{modelValue:a(t).identityCardFront,"onUpdate:modelValue":d[10]||(d[10]=u=>a(t).identityCardFront=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(o,{label:"\u6CD5\u4EBA\u8EAB\u4EFD\u8BC1\u53CD\u9762(\u4EBA\u50CF\u9762)",prop:"identityCardReverseSide"},{default:l(()=>[e(p,{modelValue:a(t).identityCardReverseSide,"onUpdate:modelValue":d[11]||(d[11]=u=>a(t).identityCardReverseSide=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u6807\u7B7E"},{default:l(()=>[e(n,{disabled:""})]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(o,{label:"\u529E\u516C\u5730\u5740",prop:"address"},{default:l(()=>[e(n,{modelValue:a(t).address,"onUpdate:modelValue":d[12]||(d[12]=u=>a(t).address=u),placeholder:"\u8BF7\u8F93\u5165\u529E\u516C\u5730\u5740"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12,style:{display:"none"}},{default:l(()=>[e(o,{label:"\u670D\u52A1\u5230\u671F\u65F6\u95F4",prop:"expireTime"},{default:l(()=>[e(D,{modelValue:a(t).expireTime,"onUpdate:modelValue":d[13]||(d[13]=u=>a(t).expireTime=u),type:"date","value-format":"x",placeholder:"\u9009\u62E9\u670D\u52A1\u5230\u671F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u7EF4\u6743\u7535\u8BDD",prop:"complaintsHotline"},{default:l(()=>[e(n,{modelValue:a(t).complaintsHotline,"onUpdate:modelValue":d[14]||(d[14]=u=>a(t).complaintsHotline=u),placeholder:"\u8BF7\u8F93\u5165\u7EF4\u6743\u7535\u8BDD",maxlength:"11",onkeyup:"value=value.replace(/[^\\d]/g,'')"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(o,{label:"\u5BA2\u670D\u7535\u8BDD",prop:"customerServiceHotline"},{default:l(()=>[e(n,{modelValue:a(t).customerServiceHotline,"onUpdate:modelValue":d[15]||(d[15]=u=>a(t).customerServiceHotline=u),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u670D\u7535\u8BDD",maxlength:"11",onkeyup:"value=value.replace(/[^\\d]/g,'')"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u5B98\u7F51",prop:"website"},{default:l(()=>[e(n,{modelValue:a(t).website,"onUpdate:modelValue":d[16]||(d[16]=u=>a(t).website=u),placeholder:"\u8BF7\u8F93\u5165\u5B98\u7F51"},null,8,["modelValue"])]),_:1})]),_:1}),s.openType==="\u65B0\u589E"?(m(),_(i,{key:0,span:12},{default:l(()=>[e(o,{label:"\u5F00\u6237\u94F6\u884C",prop:"bankName"},{default:l(()=>[e(n,{modelValue:a(t).bankName,"onUpdate:modelValue":d[17]||(d[17]=u=>a(t).bankName=u),placeholder:"\u8BF7\u8F93\u5165\u5F00\u6237\u94F6\u884C"},null,8,["modelValue"])]),_:1})]),_:1})):f("",!0),s.isDetail?(m(),_(i,{key:1,span:12},{default:l(()=>[e(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"customerServiceHotline"},{default:l(()=>[e(D,{modelValue:a(t).createTime,"onUpdate:modelValue":d[18]||(d[18]=u=>a(t).createTime=u),type:"date","value-format":"x",disabled:""},null,8,["modelValue"])]),_:1})]),_:1})):f("",!0)]),_:1}),s.openType==="\u65B0\u589E"?(m(),_(r,{key:2},{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u8D26\u6237\u540D\u79F0",prop:"accountName"},{default:l(()=>[e(n,{modelValue:a(t).accountName,"onUpdate:modelValue":d[19]||(d[19]=u=>a(t).accountName=u),placeholder:"\u8BF7\u8F93\u5165\u8D26\u6237\u540D\u79F0",maxlength:"11"},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(o,{label:"\u8D26\u6237\u53F7\u7801",prop:"accountNumber"},{default:l(()=>[e(n,{modelValue:a(t).accountNumber,"onUpdate:modelValue":d[20]||(d[20]=u=>a(t).accountNumber=u),placeholder:"\u8BF7\u8F93\u5165\u8D26\u6237\u53F7\u7801",onkeyup:"value=value.replace(/[^\\d]/g,'')"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):f("",!0),a(b)?(m(),g("div",U,[e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"Logo",prop:"logoUrl"})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(o,{prop:"logoUrl",class:"pic"},{default:l(()=>[e(p,{modelValue:a(t).logoUrl,"onUpdate:modelValue":d[21]||(d[21]=u=>a(t).logoUrl=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"\u8425\u4E1A\u6267\u7167",prop:"businessLicensePicture"})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(o,{prop:"businessLicensePicture",class:"pic"},{default:l(()=>[e(p,{modelValue:a(t).businessLicensePicture,"onUpdate:modelValue":d[22]||(d[22]=u=>a(t).businessLicensePicture=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"\u54C1\u724C\u6388\u6743\u4E66",prop:"brandLicensing"})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(o,{prop:"brandLicensing",class:"pic"},{default:l(()=>[e(p,{modelValue:a(t).businessLicensePicture,"onUpdate:modelValue":d[23]||(d[23]=u=>a(t).businessLicensePicture=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"\u5176\u4ED6\u8BC1\u4E66",prop:"otherCertificate"})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(o,{prop:"otherCertificate",class:"pic"},{default:l(()=>[e(p,{modelValue:a(t).otherCertificate,"onUpdate:modelValue":d[24]||(d[24]=u=>a(t).otherCertificate=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"\u7B80\u4ECB",prop:"description"})]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(o,{prop:"description",class:"description"},{default:l(()=>[$("div",{innerHTML:a(t).description},null,8,N)]),_:1})]),_:1})])):(m(),g("div",C,[e(r,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(o,{label:"\u8425\u4E1A\u6267\u7167",prop:"businessLicensePicture"},{default:l(()=>[e(p,{modelValue:a(t).businessLicensePicture,"onUpdate:modelValue":d[25]||(d[25]=u=>a(t).businessLicensePicture=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(o,{label:"\u54C1\u724C\u6388\u6743\u4E66",prop:"brandLicensing"},{default:l(()=>[e(p,{modelValue:a(t).brandLicensing,"onUpdate:modelValue":d[26]||(d[26]=u=>a(t).brandLicensing=u),limit:1,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(o,{label:"\u5176\u4ED6\u8BC1\u4E66",prop:"otherCertificate"},{default:l(()=>[e(E,{modelValue:a(t).otherCertificate,"onUpdate:modelValue":d[27]||(d[27]=u=>a(t).otherCertificate=u),limit:9,disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(o,{label:"\u7B80\u4ECB",prop:"description"},{default:l(()=>[e(K,{modelValue:a(t).description,"onUpdate:modelValue":d[28]||(d[28]=u=>a(t).description=u),height:"150px",disabled:s.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]))]),_:1},8,["model","class","rules","disabled"])),[[J,a(q)]])}}}),[["__scopeId","data-v-e1c7f8e3"]])});export{De as __tla,S as default};
|