1 |
- import{d as q,r as i,k as z,o as d,q as f,w as r,g as x,f as s,a,c as B,n as H,F as j,m as p,v as A,N as M,h as S,C as T,x as E,y as G,z as J,U as K,B as L,H as Q,__tla as W}from"./index-2eab2d23.js";import{_ as X,__tla as Y}from"./Dialog-c2716df6.js";import{g as Z,__tla as $}from"./index-e7451cd0.js";import{d as tt,__tla as at}from"./index-3562b2a3.js";import lt,{__tla as et}from"./OrderBaseInfo-68af99b9.js";import rt,{__tla as st}from"./OrderProduct-c85eb4ea.js";import{u as _t,__tla as ot}from"./useMessage-171aa63e.js";import{_ as it}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ut}from"./SPuUploadImg-4b5016f1.js";import{__tla as dt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as ct}from"./index-d3f876ab.js";import{__tla as mt}from"./el-image-viewer-5d14bc77.js";import{__tla as nt}from"./formatTime-41155543.js";import{__tla as ft}from"./dict-1ad71b6f.js";import{__tla as pt}from"./el-descriptions-item-fd42286f.js";import{__tla as yt}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import"./color-6e929987.js";let V,ht=Promise.all([(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return yt}catch{}})()]).then(async()=>{let y,h;y={style:{"text-align":"left",display:"flex"}},h={style:{"text-align":"right"}},V=it(q({name:"OrderDeliveryForm",__name:"OrderDeliveryForm",emits:["success"],setup(vt,{expose:b,emit:w}){S();const c=_t(),o=i(!1),u=i(!1),I=i("express"),t=i({id:0,logisticsId:null,logisticsNo:""}),v=i();b({open:async(_,l)=>{U(),t.value.id=l,o.value=!0}});const N=w,k=async()=>{u.value=!0;try{if(t.value.logisticsId===null)return c.error("\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8"),!1;if(t.value.logisticsNo==="")return c.error("\u8BF7\u8F93\u5165\u7269\u6D41\u5355\u53F7"),!1;const _=a(t);I.value==="none"&&(_.logisticsId=0,_.logisticsNo=""),await tt(_),c.success("\u53D1\u8D27\u6210\u529F"),o.value=!1,N("success",!0)}finally{u.value=!1}},U=()=>{var _;t.value={id:0,logisticsId:null,logisticsNo:""},(_=v.value)==null||_.resetFields()},g=i([]);return z(async()=>{g.value=await Z()}),(_,l)=>{const C=T,D=E,F=G,m=J,R=K,n=L,O=X,P=Q;return d(),f(O,{modelValue:a(o),"onUpdate:modelValue":l[3]||(l[3]=e=>M(o)?o.value=e:null),title:"\u8BA2\u5355\u53D1\u8D27",width:"60%"},{footer:r(()=>[x("div",y,[s(m,{label:"\u7269\u6D41\u516C\u53F8"},{default:r(()=>[s(F,{modelValue:a(t).logisticsId,"onUpdate:modelValue":l[0]||(l[0]=e=>a(t).logisticsId=e),placeholder:"\u8BF7\u9009\u62E9"},{default:r(()=>[(d(!0),B(j,null,H(a(g),e=>(d(),f(D,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(m,{label:"\u7269\u6D41\u5355\u53F7"},{default:r(()=>[s(R,{modelValue:a(t).logisticsNo,"onUpdate:modelValue":l[1]||(l[1]=e=>a(t).logisticsNo=e),placeholder:"\u8BF7\u5F55\u5165\u5FEB\u9012\u5355\u53F7",style:{width:"300px"}},null,8,["modelValue"])]),_:1}),s(m,null,{default:r(()=>[s(n,{type:"primary",plain:""},{default:r(()=>[p("\u626B\u4E00\u626B")]),_:1})]),_:1})]),x("div",h,[s(n,{disabled:a(u),type:"primary",onClick:k},{default:r(()=>[p("\u786E \u5B9A")]),_:1},8,["disabled"]),s(n,{onClick:l[2]||(l[2]=e=>o.value=!1)},{default:r(()=>[p("\u53D6 \u6D88")]),_:1})])]),default:r(()=>[A((d(),f(C,{ref_key:"formRef",ref:v,model:a(t),"label-width":"80px",style:{padding:"10px"}},{default:r(()=>[s(lt,{ref:"infoRef","is-detail":!0,isDelivery:!0,id:a(t).id,style:{"margin-bottom":"30px"}},null,8,["id"]),s(rt,{ref:"infoRef",isDelivery:!0,id:a(t).id},null,8,["id"])]),_:1},8,["model"])),[[P,a(u)]])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-4352e16e"]])});export{ht as __tla,V as default};
|