1 |
- import{B as V,r as u,z as b,D as h,a as e,o as x,j as w,w as o,i as r,b0 as y,X as A,I as U,J as D,M as I,__tla as M}from"./index-1e808f2e.js";import{E as N,__tla as j}from"./el-tree-select-e8e05888.js";import{g as E,__tla as P}from"./index-f40ed4f7.js";import{d as R}from"./tree-fd3a041e.js";import{u as g,__tla as z}from"./useMessage-5f9e8917.js";let n,B=Promise.all([(()=>{try{return M}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return z}catch{}})()]).then(async()=>{n={__name:"UpdateAddress",setup(F,{expose:_}){V(),g(),u(!1);const c=u(!1),a=u({id:0,receiverName:"",receiverMobile:"",receiverAreaId:null,receiverDetailAddress:""}),i=u([]);return _({validateForm:function(){return new Promise((m,l)=>{formRef.value.validate(d=>{d?m(a.value):(y.error("\u8868\u5355\u9A8C\u8BC1\u5931\u8D25"),l(new Error("Validation failed")))})})}}),b(async()=>{i.value=await E()}),(m,l)=>{const d=A,s=U,p=N,f=D,v=I;return h((x(),w(f,{ref:"formRef",model:e(a),"label-width":"120px"},{default:o(()=>[r(s,{label:"\u6536\u4EF6\u4EBA"},{default:o(()=>[r(d,{modelValue:e(a).receiverName,"onUpdate:modelValue":l[0]||(l[0]=t=>e(a).receiverName=t),placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u540D\u79F0"},null,8,["modelValue"])]),_:1}),r(s,{label:"\u624B\u673A\u53F7"},{default:o(()=>[r(d,{modelValue:e(a).receiverMobile,"onUpdate:modelValue":l[1]||(l[1]=t=>e(a).receiverMobile=t),placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u624B\u673A\u53F7"},null,8,["modelValue"])]),_:1}),r(s,{label:"\u6240\u5728\u5730"},{default:o(()=>[r(p,{modelValue:e(a).receiverAreaId,"onUpdate:modelValue":l[2]||(l[2]=t=>e(a).receiverAreaId=t),data:e(i),props:e(R),"render-after-expand":!0},null,8,["modelValue","data","props"])]),_:1}),r(s,{label:"\u8BE6\u7EC6\u5730\u5740"},{default:o(()=>[r(d,{modelValue:e(a).receiverDetailAddress,"onUpdate:modelValue":l[3]||(l[3]=t=>e(a).receiverDetailAddress=t),rows:3,placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u8BE6\u7EC6\u5730\u5740",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[v,e(c)]])}}}});export{B as __tla,n as default};
|