1 |
- import{d as F,P as O,r as c,b as z,o as f,C as y,A as d,f as t,a,D as V,k as C,a2 as g,a9 as j,V as P,W as E,J,Z as R,_ as S,__tla as W}from"./index-286756b9.js";import{_ as Z,__tla as q}from"./Dialog-4c2de357.js";import{E as B,__tla as G}from"./el-tree-select-7a83bfa8.js";import{c as H,__tla as K}from"./index-c6443726.js";import{g as L,__tla as Q}from"./index-bb0e31fe.js";import{d as T}from"./tree-0af4953a.js";import{u as X,__tla as Y}from"./useMessage-084b1e70.js";let A,$=Promise.all([(()=>{try{return W}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Y}catch{}})()]).then(async()=>{A=S(F({name:"OrderUpdateAddressForm",__name:"OrderUpdateAddressForm",emits:["success"],setup(ee,{expose:b,emit:h}){const{t:U}=O(),x=X(),o=c(!1),m=c(!1),e=c({id:0,receiverName:"",receiverMobile:"",receiverAreaId:null,receiverDetailAddress:""}),n=c([]),v=c();b({open:async(s,l,i,u,_)=>{I(),e.value.id=s,e.value.receiverName=l,e.value.receiverMobile=i,e.value.receiverAreaId=u,e.value.receiverDetailAddress=_,o.value=!0}});const w=h,D=async()=>{m.value=!0;try{const s=a(e);await H(s),x.success(U("common.updateSuccess")),o.value=!1,w("success",!0)}finally{m.value=!1}},I=()=>{var s;e.value={id:0,receiverName:"",receiverMobile:"",receiverAreaId:null,receiverDetailAddress:""},(s=v.value)==null||s.resetFields()};return z(async()=>{n.value=await L()}),(s,l)=>{const i=j,u=P,_=B,M=E,p=J,N=Z,k=R;return f(),y(N,{modelValue:a(o),"onUpdate:modelValue":l[5]||(l[5]=r=>g(o)?o.value=r:null),title:"\u4FEE\u6539\u8BA2\u5355\u6536\u8D27\u5730\u5740",width:"35%"},{footer:d(()=>[t(p,{disabled:a(m),type:"primary",onClick:D},{default:d(()=>[V("\u786E \u5B9A")]),_:1},8,["disabled"]),t(p,{onClick:l[4]||(l[4]=r=>o.value=!1)},{default:d(()=>[V("\u53D6 \u6D88")]),_:1})]),default:d(()=>[C((f(),y(M,{ref_key:"formRef",ref:v,model:a(e),"label-width":"120px"},{default:d(()=>[t(u,{label:"\u6536\u4EF6\u4EBA"},{default:d(()=>[t(i,{modelValue:a(e).receiverName,"onUpdate:modelValue":l[0]||(l[0]=r=>a(e).receiverName=r),placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(u,{label:"\u624B\u673A\u53F7"},{default:d(()=>[t(i,{modelValue:a(e).receiverMobile,"onUpdate:modelValue":l[1]||(l[1]=r=>a(e).receiverMobile=r),placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u624B\u673A\u53F7"},null,8,["modelValue"])]),_:1}),t(u,{label:"\u6240\u5728\u5730"},{default:d(()=>[t(_,{modelValue:a(e).receiverAreaId,"onUpdate:modelValue":l[2]||(l[2]=r=>a(e).receiverAreaId=r),data:a(n),props:a(T),"render-after-expand":!0},null,8,["modelValue","data","props"])]),_:1}),t(u,{label:"\u8BE6\u7EC6\u5730\u5740"},{default:d(()=>[t(i,{modelValue:a(e).receiverDetailAddress,"onUpdate:modelValue":l[3]||(l[3]=r=>a(e).receiverDetailAddress=r),rows:3,placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u8BE6\u7EC6\u5730\u5740",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[k,a(m)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/form/OrderUpdateAddressForm.vue"]])});export{$ as __tla,A as default};
|