MerchantBaseInfo-91bfaca3.js 13 KB

1
  1. import{d as K,Y,K as Z,h as G,r as V,e as D,l as J,L,aT as k,bL as Q,x as W,a,o as m,v as _,w as l,f as e,P as b,c as C,g as X,Z as $,V as ee,A as le,E as ae,y as te,z as de,i as re,aU as ue,B as oe,D as ie,I as se,_ as ne,__tla as pe}from"./index-297c97b3.js";import{_ as me,__tla as ce}from"./Editor-5eae0fc5.js";import{_ as _e,__tla as be}from"./UploadImgs-2eb5bd0c.js";import{_ as fe,__tla as ge}from"./UploadImg-76828272.js";import{g as Ve,__tla as ve}from"./index-1790b7ea.js";import{d as ye}from"./tree-0af4953a.js";import{u as he,__tla as Ne}from"./useMessage-8a849e40.js";import{__tla as Ue}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-22dc46a8.js";import{__tla as Pe}from"./el-image-viewer-3c943bf5.js";import{__tla as xe}from"./index-ef616a81.js";let w,De=Promise.all([(()=>{try{return pe}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return xe}catch{}})()]).then(async()=>{let v,y,h;v={key:1},y=["innerHTML"],h={key:2},w=ne(K({__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(n,{expose:q,emit:T}){const S=Y(),N=Z(()=>S.getMobile),H=he();G();const I=V(!1),t=D({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}),F=D({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"}]}),f=V(),U=n,P=V([]);J(async()=>{P.value=await Ve()}),L(()=>U.propFormData,p=>{var i;if(!p)return;k(t,p);let d=100;t.otherCertificate=(i=p.otherCertificate)==null?void 0:i.map((u,o)=>(d++,{url:u,uid:Math.round(new Date+d),status:"success"}))},{immediate:!0});const M=T;q({validate:async()=>{var p;if(f)try{return await((p=a(f))==null?void 0:p.validate()),Object.assign(U.propFormData,t),!0}catch{return H.error("\u57FA\u672C\u4FE1\u606F\u4E0D\u5B8C\u5584\uFF0C\u8BF7\u586B\u5199\u76F8\u5173\u4FE1\u606F"),M("update:activeName","info"),!1}}});const R=Q("updateInitialData");return L(t,p=>{try{k(R.value,t)}catch{}},{immediate:!0}),(p,d)=>{const i=ee,u=le,o=ae,g=te,B=de,s=re,z=ue,c=fe,x=oe,j=_e,O=me,A=ie,E=se;return W((m(),_(A,{ref_key:"formRef",ref:f,model:a(t),class:$([{view:n.isDetail,"mobile-card":a(N)},"overflow-auto"]),rules:a(F),"label-width":"120px",disabled:n.isDetail,style:{overflow:"hidden"}},{default:l(()=>[e(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u5546\u6237\u540D\u79F0",prop:"name"},{default:l(()=>[e(i,{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}),n.openType!="\u65B0\u589E"?(m(),_(o,{key:0,span:12},{default:l(()=>[e(u,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(B,{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(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u8054\u7EDC\u4EBA",prop:"contact"},{default:l(()=>[e(i,{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(z,{modelValue:a(t).areaId,"onUpdate:modelValue":d[3]||(d[3]=r=>a(t).areaId=r),options:a(P),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(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u8054\u7EDC\u4EBA\u624B\u673A\u53F7",prop:"contactNumber"},{default:l(()=>[e(i,{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(i,{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(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u6CD5\u4EBA",prop:"legalPerson"},{default:l(()=>[e(i,{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(i,{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}),e(s,null,{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(c,{modelValue:a(t).identityCardFront,"onUpdate:modelValue":d[8]||(d[8]=r=>a(t).identityCardFront=r),limit:1,disabled:n.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(c,{modelValue:a(t).identityCardReverseSide,"onUpdate:modelValue":d[9]||(d[9]=r=>a(t).identityCardReverseSide=r),limit:1,disabled:n.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u6807\u7B7E"},{default:l(()=>[e(i,{disabled:""})]),_:1})]),_:1}),e(o,{span:12},{default:l(()=>[e(u,{label:"\u529E\u516C\u5730\u5740",prop:"address"},{default:l(()=>[e(i,{modelValue:a(t).address,"onUpdate:modelValue":d[10]||(d[10]=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(x,{modelValue:a(t).expireTime,"onUpdate:modelValue":d[11]||(d[11]=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(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u7EF4\u6743\u7535\u8BDD",prop:"complaintsHotline"},{default:l(()=>[e(i,{modelValue:a(t).complaintsHotline,"onUpdate:modelValue":d[12]||(d[12]=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(i,{modelValue:a(t).customerServiceHotline,"onUpdate:modelValue":d[13]||(d[13]=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(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u5B98\u7F51",prop:"website"},{default:l(()=>[e(i,{modelValue:a(t).website,"onUpdate:modelValue":d[14]||(d[14]=r=>a(t).website=r),placeholder:"\u8BF7\u8F93\u5165\u5B98\u7F51"},null,8,["modelValue"])]),_:1})]),_:1}),n.openType==="\u65B0\u589E"?(m(),_(o,{key:0,span:12},{default:l(()=>[e(u,{label:"\u5F00\u6237\u94F6\u884C",prop:"bankName"},{default:l(()=>[e(i,{modelValue:a(t).bankName,"onUpdate:modelValue":d[15]||(d[15]=r=>a(t).bankName=r),placeholder:"\u8BF7\u8F93\u5165\u5F00\u6237\u94F6\u884C"},null,8,["modelValue"])]),_:1})]),_:1})):b("",!0),n.isDetail?(m(),_(o,{key:1,span:12},{default:l(()=>[e(u,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"customerServiceHotline"},{default:l(()=>[e(x,{modelValue:a(t).createTime,"onUpdate:modelValue":d[16]||(d[16]=r=>a(t).createTime=r),type:"date","value-format":"x",disabled:""},null,8,["modelValue"])]),_:1})]),_:1})):b("",!0)]),_:1}),n.openType==="\u65B0\u589E"?(m(),_(s,{key:0},{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u8D26\u6237\u540D\u79F0",prop:"accountName"},{default:l(()=>[e(i,{modelValue:a(t).accountName,"onUpdate:modelValue":d[17]||(d[17]=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(i,{modelValue:a(t).accountNumber,"onUpdate:modelValue":d[18]||(d[18]=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(N)?(m(),C("div",v,[e(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{style:{border:"none"},label:"\u8425\u4E1A\u6267\u7167",prop:"businessLicensePicture"})]),_:1})]),_:1}),e(s,null,{default:l(()=>[e(o,{span:24},{default:l(()=>[e(u,{prop:"businessLicensePicture",class:"businessLicensePicture"},{default:l(()=>[e(c,{modelValue:a(t).businessLicensePicture,"onUpdate:modelValue":d[19]||(d[19]=r=>a(t).businessLicensePicture=r),limit:1,disabled:n.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(s,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(()=>[X("div",{innerHTML:a(t).description},null,8,y)]),_:1})]),_:1})])):(m(),C("div",h,[e(s,null,{default:l(()=>[e(o,{span:12},{default:l(()=>[e(u,{label:"\u8425\u4E1A\u6267\u7167",prop:"businessLicensePicture"},{default:l(()=>[e(c,{modelValue:a(t).businessLicensePicture,"onUpdate:modelValue":d[20]||(d[20]=r=>a(t).businessLicensePicture=r),limit:1,disabled:n.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(c,{modelValue:a(t).brandLicensing,"onUpdate:modelValue":d[21]||(d[21]=r=>a(t).brandLicensing=r),limit:1,disabled:n.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(s,null,{default:l(()=>[e(o,{span:24},{default:l(()=>[e(u,{label:"\u5176\u4ED6\u8BC1\u4E66",prop:"otherCertificate"},{default:l(()=>[e(j,{modelValue:a(t).otherCertificate,"onUpdate:modelValue":d[22]||(d[22]=r=>a(t).otherCertificate=r),limit:9,disabled:n.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(s,null,{default:l(()=>[e(o,{span:24},{default:l(()=>[e(u,{label:"\u7B80\u4ECB",prop:"description"},{default:l(()=>[e(O,{modelValue:a(t).description,"onUpdate:modelValue":d[23]||(d[23]=r=>a(t).description=r),height:"150px",disabled:n.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]))]),_:1},8,["model","class","rules","disabled"])),[[E,a(I)]])}}}),[["__scopeId","data-v-1bd3a768"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/sale/merchant/components/MerchantBaseInfo.vue"]])});export{De as __tla,w as default};