import{d as G,n as J,r as i,B as K,o as _,l as f,w as a,i as o,a as l,j as c,C as S,y as b,c as h,F as V,k as X,a2 as M,dI as P,ag as q,ah as A,H as E,D as L,G as Q,U as T,K as W,J as Y,N as Z,_ as $,__tla as ee}from"./index-8c6726e5.js";import{_ as ae,__tla as le}from"./Dialog-336bccec.js";import{g as se,__tla as te}from"./index-89ff0795.js";import{d as oe,__tla as re}from"./index-a8c0844f.js";import{u as ue,__tla as de}from"./useMessage-9f6930df.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=$(G({name:"OrderDeliveryForm",__name:"OrderDeliveryForm",emits:["success"],setup(_e,{expose:k,emit:x}){const{t:I}=J(),U=ue(),u=i(!1),n=i(!1),d=i("express"),r=i({id:0,logisticsId:null,logisticsNo:""}),p=i();k({open:async s=>{N(),P(r.value,s),s.logisticsId===0&&(d.value="none"),u.value=!0}});const D=x,F=async()=>{n.value=!0;try{const s=l(r);d.value==="none"&&(s.logisticsId=0,s.logisticsNo=""),await oe(s),U.success(I("common.updateSuccess")),u.value=!1,D("success",!0)}finally{n.value=!1}},N=()=>{var s;r.value={id:0,logisticsId:null,logisticsNo:""},(s=p.value)==null||s.resetFields()},y=i([]);return K(async()=>{y.value=await se()}),(s,t)=>{const v=q,C=A,m=E,O=L,H=Q,R=T,j=W,g=Y,z=ae,B=Z;return _(),f(z,{modelValue:l(u),"onUpdate:modelValue":t[4]||(t[4]=e=>b(u)?u.value=e:null),title:"\u8BA2\u5355\u53D1\u8D27",width:"25%"},{footer:a(()=>[o(g,{disabled:l(n),type:"primary",onClick:F},{default:a(()=>[c("\u786E \u5B9A")]),_:1},8,["disabled"]),o(g,{onClick:t[3]||(t[3]=e=>u.value=!1)},{default:a(()=>[c("\u53D6 \u6D88")]),_:1})]),default:a(()=>[S((_(),f(j,{ref_key:"formRef",ref:p,model:l(r),"label-width":"80px"},{default:a(()=>[o(m,{label:"\u53D1\u8D27\u65B9\u5F0F"},{default:a(()=>[o(C,{modelValue:l(d),"onUpdate:modelValue":t[0]||(t[0]=e=>b(d)?d.value=e:null)},{default:a(()=>[o(v,{border:"",label:"express"},{default:a(()=>[c("\u5FEB\u9012\u7269\u6D41")]),_:1}),o(v,{border:"",label:"none"},{default:a(()=>[c("\u65E0\u9700\u53D1\u8D27")]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(d)==="express"?(_(),h(V,{key:0},[o(m,{label:"\u7269\u6D41\u516C\u53F8"},{default:a(()=>[o(H,{modelValue:l(r).logisticsId,"onUpdate:modelValue":t[1]||(t[1]=e=>l(r).logisticsId=e),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:a(()=>[(_(!0),h(V,null,X(l(y),e=>(_(),f(O,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(m,{label:"\u7269\u6D41\u5355\u53F7"},{default:a(()=>[o(R,{modelValue:l(r).logisticsNo,"onUpdate:modelValue":t[2]||(t[2]=e=>l(r).logisticsNo=e)},null,8,["modelValue"])]),_:1})],64)):M("",!0)]),_:1},8,["model"])),[[B,l(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};
