import{d as A,r as i,q as B,o as _,x as v,w as l,f as o,y as m,a as s,z as G,l as g,c as V,F as h,v as K,a0 as P,h as M,bq as S,ad as X,ae as E,C as J,A as L,B as Q,R as T,H as W,G as Y,K as Z,_ as $,__tla as ee}from"./index-8dc1e40a.js";import{_ as ae,__tla as le}from"./Dialog-41802231.js";import{g as se,__tla as te}from"./index-d527b348.js";import{d as oe,__tla as re}from"./index-cfc487d8.js";import{u as ue,__tla as de}from"./useMessage-7a27dd80.js";let w,ie=Promise.all([(()=>{try{return ee}catch{}})(),(()=>{try{return le}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return de}catch{}})()]).then(async()=>{w=$(A({name:"OrderDeliveryForm",__name:"OrderDeliveryForm",emits:["success"],setup(_e,{expose:x,emit:k}){const{t:F}=M(),I=ue(),u=i(!1),n=i(!1),d=i("express"),r=i({id:0,logisticsId:null,logisticsNo:""}),p=i();x({open:async(t,e,c)=>{C(),S(r.value,t),e=="\u5F85\u529E"&&(r.value.id=c),t.logisticsId===0&&(d.value="none"),u.value=!0}});const N=k,U=async()=>{n.value=!0;try{const t=s(r);d.value==="none"&&(t.logisticsId=0,t.logisticsNo=""),await oe(t),I.success(F("common.updateSuccess")),u.value=!1,N("success",!0)}finally{n.value=!1}},C=()=>{var t;r.value={id:0,logisticsId:null,logisticsNo:""},(t=p.value)==null||t.resetFields()},y=i([]);return B(async()=>{y.value=await se()}),(t,e)=>{const c=X,D=E,f=J,O=L,R=Q,q=T,z=W,b=Y,H=ae,j=Z;return _(),v(H,{modelValue:s(u),"onUpdate:modelValue":e[4]||(e[4]=a=>g(u)?u.value=a:null),title:"\u8BA2\u5355\u53D1\u8D27",width:"25%"},{footer:l(()=>[o(b,{disabled:s(n),type:"primary",onClick:U},{default:l(()=>[m("\u786E \u5B9A")]),_:1},8,["disabled"]),o(b,{onClick:e[3]||(e[3]=a=>u.value=!1)},{default:l(()=>[m("\u53D6 \u6D88")]),_:1})]),default:l(()=>[G((_(),v(z,{ref_key:"formRef",ref:p,model:s(r),"label-width":"80px"},{default:l(()=>[o(f,{label:"\u53D1\u8D27\u65B9\u5F0F"},{default:l(()=>[o(D,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=a=>g(d)?d.value=a:null)},{default:l(()=>[o(c,{border:"",label:"express"},{default:l(()=>[m("\u5FEB\u9012\u7269\u6D41")]),_:1}),o(c,{border:"",label:"none"},{default:l(()=>[m("\u65E0\u9700\u53D1\u8D27")]),_:1})]),_:1},8,["modelValue"])]),_:1}),s(d)==="express"?(_(),V(h,{key:0},[o(f,{label:"\u7269\u6D41\u516C\u53F8"},{default:l(()=>[o(R,{modelValue:s(r).logisticsId,"onUpdate:modelValue":e[1]||(e[1]=a=>s(r).logisticsId=a),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:l(()=>[(_(!0),V(h,null,K(s(y),a=>(_(),v(O,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(f,{label:"\u7269\u6D41\u5355\u53F7"},{default:l(()=>[o(q,{modelValue:s(r).logisticsNo,"onUpdate:modelValue":e[2]||(e[2]=a=>s(r).logisticsNo=a)},null,8,["modelValue"])]),_:1})],64)):P("",!0)]),_:1},8,["model"])),[[j,s(n)]])]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/order/form/OrderDeliveryForm.vue"]])});export{ie as __tla,w as default};
