import{d as B,n as E,r as i,B as J,o as _,l as f,w as a,i as o,a as l,j as c,C as K,y as b,c as V,F as h,k as R,a2 as M,dI as S,ag as q,ah as z,H as L,D as Q,G as T,U as W,K as X,J as Y,N as Z,_ as $,__tla as ee}from"./index-2c56227b.js";import{_ as ae,__tla as le}from"./Dialog-1050d437.js";import{g as se,__tla as te}from"./index-9d6af083.js";import{d as oe,__tla as re}from"./index-16ac73b5.js";import{u as ue,__tla as de}from"./useMessage-96878a4a.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=$(B({name:"OrderDeliveryForm",__name:"OrderDeliveryForm",emits:["success"],setup(_e,{expose:I,emit:N}){const{t:k}=E(),x=ue(),u=i(!1),n=i(!1),d=i("express"),r=i({id:0,logisticsId:null,logisticsNo:""}),y=i();I({open:async s=>{D(),S(r.value,s),s.logisticsId===0&&(d.value="none"),u.value=!0}});const F=N,U=async()=>{n.value=!0;try{const s=l(r);d.value==="none"&&(s.logisticsId=0,s.logisticsNo=""),await oe(s),x.success(k("common.updateSuccess")),u.value=!1,F("success",!0)}finally{n.value=!1}},D=()=>{var s;r.value={id:0,logisticsId:null,logisticsNo:""},(s=y.value)==null||s.resetFields()},p=i([]);return J(async()=>{p.value=await se()}),(s,t)=>{const v=q,O=z,m=L,C=Q,G=T,H=W,P=X,g=Y,j=ae,A=Z;return _(),f(j,{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:U},{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(()=>[K((_(),f(P,{ref_key:"formRef",ref:y,model:l(r),"label-width":"80px"},{default:a(()=>[o(m,{label:"\u53D1\u8D27\u65B9\u5F0F"},{default:a(()=>[o(O,{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"?(_(),V(h,{key:0},[o(m,{label:"\u7269\u6D41\u516C\u53F8"},{default:a(()=>[o(G,{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),V(h,null,R(l(p),e=>(_(),f(C,{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(H,{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"])),[[A,l(n)]])]),_:1},8,["modelValue"])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/mall/trade/order/form/OrderDeliveryForm.vue"]])});export{ie as __tla,w as default};
