1 |
- import{d as G,b as X,e as z,A as J,r as f,g as H,y as K,N as L,aT as D,aS as Z,C as $,a,o as m,k as b,w as l,i as e,R as T,c as P,j as Q,a0 as W,X as Y,H as ee,E as le,D as ae,G as te,n as de,aU as se,p as oe,I as ue,L as re,__tla as ie}from"./index-abaca7e8.js";import{_ as ne,__tla as pe}from"./style.css_vue_type_style_index_0_src_true_lang-097712b4.js";import{_ as me,__tla as ce}from"./UploadImg-47ac0338.js";import{g as _e,__tla as fe}from"./index-a96df22c.js";import{d as be}from"./tree-fd3a041e.js";import{u as ve,__tla as Ve}from"./useMessage-7c79d01b.js";import{_ as ge}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ye}from"./index-1a54edc6.js";import{__tla as he}from"./el-image-viewer-45c4debe.js";let k,Ue=Promise.all([(()=>{try{return ie}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})()]).then(async()=>{let v,V,g;v={key:0},V=["innerHTML"],g={key:1},k=ge(G({__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:I}){const N=X(),y=z(()=>N.getMobile),S=ve();J();const M=f(!1),t=H({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}),j=H({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:"\u8D1F\u8D23\u4EBA\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],contactNumber:[{required:!0,message:"\u8D1F\u8D23\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"}]}),c=f(),h=n,U=f([]);K(async()=>{U.value=await _e()}),L(()=>h.propFormData,p=>{p&&D(t,p)},{immediate:!0});const F=I;q({validate:async()=>{var p;if(c)try{return await((p=a(c))==null?void 0:p.validate()),Object.assign(h.propFormData,t),!0}catch{return S.error("\u57FA\u672C\u4FE1\u606F\u4E0D\u5B8C\u5584\uFF0C\u8BF7\u586B\u5199\u76F8\u5173\u4FE1\u606F"),F("update:activeName","info"),!1}}});const O=Z("updateInitialData");return L(t,p=>{try{D(O.value,t)}catch{}},{immediate:!0}),(p,d)=>{const i=Y,o=ee,u=le,_=ae,R=te,r=de,B=se,w=oe,x=me,A=ne,C=ue,E=re;return $((m(),b(C,{ref_key:"formRef",ref:c,model:a(t),class:W([{view:n.isDetail,"mobile-card":a(y)},"overflow-auto"]),rules:a(j),"label-width":"120px",disabled:n.isDetail,style:{overflow:"hidden"}},{default:l(()=>[e(r,null,{default:l(()=>[e(u,{span:12},{default:l(()=>[e(o,{label:"\u5546\u6237\u540D\u79F0",prop:"name"},{default:l(()=>[e(i,{modelValue:a(t).name,"onUpdate:modelValue":d[0]||(d[0]=s=>a(t).name=s),placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),n.openType!="\u65B0\u589E"?(m(),b(u,{key:0,span:12},{default:l(()=>[e(o,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(R,{modelValue:a(t).status,"onUpdate:modelValue":d[1]||(d[1]=s=>a(t).status=s),placeholder:"\u8BF7\u9009\u62E9\u5546\u6237\u72B6\u6001",class:"w-1/1",clearable:""},{default:l(()=>[e(_,{label:"\u4F7F\u7528\u4E2D",value:10}),e(_,{label:"\u8FC7\u671F",value:20}),e(_,{label:"\u505C\u7528",value:30})]),_:1},8,["modelValue"])]),_:1})]),_:1})):T("",!0)]),_:1}),e(r,null,{default:l(()=>[e(u,{span:12},{default:l(()=>[e(o,{label:"\u8D1F\u8D23\u4EBA",prop:"contact"},{default:l(()=>[e(i,{modelValue:a(t).contact,"onUpdate:modelValue":d[2]||(d[2]=s=>a(t).contact=s),placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(o,{label:"\u6240\u5728\u5730",prop:"areaId"},{default:l(()=>[e(B,{modelValue:a(t).areaId,"onUpdate:modelValue":d[3]||(d[3]=s=>a(t).areaId=s),options:a(U),props:a(be),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(u,{span:12},{default:l(()=>[e(o,{label:"\u8D1F\u8D23\u4EBA\u624B\u673A\u53F7",prop:"contactNumber"},{default:l(()=>[e(i,{modelValue:a(t).contactNumber,"onUpdate:modelValue":d[4]||(d[4]=s=>a(t).contactNumber=s),placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u624B\u673A\u53F7",maxlength:"11",onkeyup:"value=value.replace(/[^\\d]/g,'')"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(o,{label:"\u90AE\u7BB1",prop:"email"},{default:l(()=>[e(i,{modelValue:a(t).email,"onUpdate:modelValue":d[5]||(d[5]=s=>a(t).email=s),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(u,{span:12},{default:l(()=>[e(o,{label:"\u6807\u7B7E"},{default:l(()=>[e(i,{disabled:""})]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(o,{label:"\u529E\u516C\u5730\u5740",prop:"address"},{default:l(()=>[e(i,{modelValue:a(t).address,"onUpdate:modelValue":d[6]||(d[6]=s=>a(t).address=s),placeholder:"\u8BF7\u8F93\u5165\u529E\u516C\u5730\u5740"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12,style:{display:"none"}},{default:l(()=>[e(o,{label:"\u670D\u52A1\u5230\u671F\u65F6\u95F4",prop:"expireTime"},{default:l(()=>[e(w,{modelValue:a(t).expireTime,"onUpdate:modelValue":d[7]||(d[7]=s=>a(t).expireTime=s),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(u,{span:12},{default:l(()=>[e(o,{label:"\u7EF4\u6743\u7535\u8BDD",prop:"complaintsHotline"},{default:l(()=>[e(i,{modelValue:a(t).complaintsHotline,"onUpdate:modelValue":d[8]||(d[8]=s=>a(t).complaintsHotline=s),placeholder:"\u8BF7\u8F93\u5165\u7EF4\u6743\u7535\u8BDD",maxlength:"11",onkeyup:"value=value.replace(/[^\\d]/g,'')"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:l(()=>[e(o,{label:"\u5BA2\u670D\u7535\u8BDD",prop:"customerServiceHotline"},{default:l(()=>[e(i,{modelValue:a(t).customerServiceHotline,"onUpdate:modelValue":d[9]||(d[9]=s=>a(t).customerServiceHotline=s),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(u,{span:12},{default:l(()=>[e(o,{label:"\u5B98\u7F51",prop:"website"},{default:l(()=>[e(i,{modelValue:a(t).website,"onUpdate:modelValue":d[10]||(d[10]=s=>a(t).website=s),placeholder:"\u8BF7\u8F93\u5165\u5B98\u7F51"},null,8,["modelValue"])]),_:1})]),_:1}),n.isDetail?(m(),b(u,{key:0,span:12},{default:l(()=>[e(o,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"customerServiceHotline"},{default:l(()=>[e(w,{modelValue:a(t).createTime,"onUpdate:modelValue":d[11]||(d[11]=s=>a(t).createTime=s),type:"date","value-format":"x",disabled:""},null,8,["modelValue"])]),_:1})]),_:1})):T("",!0)]),_:1}),a(y)?(m(),P("div",v,[e(r,null,{default:l(()=>[e(u,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"\u8425\u4E1A\u6267\u7167",prop:"businessLicensePicture"})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(u,{span:24},{default:l(()=>[e(o,{prop:"businessLicensePicture",class:"businessLicensePicture"},{default:l(()=>[e(x,{modelValue:a(t).businessLicensePicture,"onUpdate:modelValue":d[12]||(d[12]=s=>a(t).businessLicensePicture=s),limit:1,disabled:n.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(u,{span:12},{default:l(()=>[e(o,{style:{border:"none"},label:"\u7B80\u4ECB",prop:"description"})]),_:1})]),_:1}),e(u,{span:24},{default:l(()=>[e(o,{prop:"description",class:"description"},{default:l(()=>[Q("div",{innerHTML:a(t).description},null,8,V)]),_:1})]),_:1})])):(m(),P("div",g,[e(r,null,{default:l(()=>[e(u,{span:24},{default:l(()=>[e(o,{label:"\u8425\u4E1A\u6267\u7167",prop:"businessLicensePicture"},{default:l(()=>[e(x,{modelValue:a(t).businessLicensePicture,"onUpdate:modelValue":d[13]||(d[13]=s=>a(t).businessLicensePicture=s),limit:1,disabled:n.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),e(r,null,{default:l(()=>[e(u,{span:24},{default:l(()=>[e(o,{label:"\u7B80\u4ECB",prop:"description"},{default:l(()=>[e(A,{modelValue:a(t).description,"onUpdate:modelValue":d[14]||(d[14]=s=>a(t).description=s),height:"150px",disabled:n.isDetail},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]))]),_:1},8,["model","class","rules","disabled"])),[[E,a(M)]])}}}),[["__scopeId","data-v-9ed7f972"]])});export{Ue as __tla,k as default};
|