MerchantBaseInfo-9c0e0904.js 15 KB

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