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