1 |
- import{d as j,r as o,e as B,K as E,k as G,o as d,v as c,w as l,g as b,x as I,a,f as i,c as H,F as M,q as Q,m as v,O as S,D as T,y as J,z as W,A as X,V as Y,C as Z,I as $,_ as aa,__tla as ea}from"./index-430b3151.js";import{_ as ta,__tla as la}from"./Dialog-cd42c639.js";import{g as ra,__tla as sa}from"./index-6024924b.js";import{d as ia,__tla as oa}from"./index-72a4fbcc.js";import _a,{__tla as ua}from"./OrderBaseInfo-27b8c7ef.js";import da,{__tla as ca}from"./OrderProduct-e67aebc2.js";import{u as ma,__tla as na}from"./useMessage-d226ba89.js";import{__tla as fa}from"./SPuUploadImg-e216b873.js";import{__tla as pa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f5de6f1b.js";import{__tla as ya}from"./index-255e3b1c.js";import{__tla as va}from"./el-image-viewer-467ebe35.js";import{__tla as ha}from"./formatTime-00eecbb7.js";import{__tla as ga}from"./dict-603b6a58.js";import{__tla as xa}from"./el-descriptions-item-f31a472b.js";import{__tla as wa}from"./DictTag-c94c3188.js";import"./color-6e929987.js";let N,Va=Promise.all([(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})()]).then(async()=>{let h,g;h={style:{"text-align":"left",display:"flex"}},g={style:{"text-align":"right"}},N=aa(j({name:"OrderDeliveryForm",__name:"OrderDeliveryForm",emits:["success"],setup(ba,{expose:D,emit:C}){const m=ma(),_=o(!1),u=o(!1),k=o("express"),e=o({id:0,logisticsId:null,logisticsNo:""}),x=o(),F=B({logisticsId:[{required:!0}],logisticsNo:[{required:!0}]}),n=o(""),q=E(()=>n.value?f.value.filter(t=>t.name.toLowerCase().includes(n.value.toLowerCase())):f.value),O=t=>{n.value=t};D({open:async(t,r)=>{U(),e.value.id=r,_.value=!0}});const z=C,R=async()=>{u.value=!0;try{if(e.value.logisticsId===null)return m.error("\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8"),!1;if(e.value.logisticsNo==="")return m.error("\u8BF7\u8F93\u5165\u7269\u6D41\u5355\u53F7"),!1;const t=a(e);k.value==="none"&&(t.logisticsId=0,t.logisticsNo=""),await ia(t),m.success("\u53D1\u8D27\u6210\u529F"),_.value=!1,z("success",!0)}finally{u.value=!1}},U=()=>{var t;e.value={id:0,logisticsId:null,logisticsNo:""},(t=x.value)==null||t.resetFields()},f=o([]);return G(async()=>{f.value=await ra()}),(t,r)=>{const w=T,L=J,A=W,p=X,K=Y,y=Z,P=ta,V=$;return d(),c(P,{modelValue:a(_),"onUpdate:modelValue":r[3]||(r[3]=s=>S(_)?_.value=s:null),title:"\u8BA2\u5355\u53D1\u8D27",width:"60%"},{footer:l(()=>[b("div",h,[I((d(),c(w,{ref_key:"formRef",ref:x,model:a(e),"label-width":"80px",style:{display:"flex"},rules:a(F)},{default:l(()=>[i(p,{label:"\u7269\u6D41\u516C\u53F8",prop:"logisticsId"},{default:l(()=>[i(A,{modelValue:a(e).logisticsId,"onUpdate:modelValue":r[0]||(r[0]=s=>a(e).logisticsId=s),placeholder:"\u8BF7\u9009\u62E9",filterable:"","filter-method":O},{default:l(()=>[(d(!0),H(M,null,Q(a(q),s=>(d(),c(L,{key:s.id,label:s.name,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i(p,{label:"\u7269\u6D41\u5355\u53F7",prop:"logisticsNo"},{default:l(()=>[i(K,{modelValue:a(e).logisticsNo,"onUpdate:modelValue":r[1]||(r[1]=s=>a(e).logisticsNo=s),placeholder:"\u8BF7\u5F55\u5165\u5FEB\u9012\u5355\u53F7",style:{width:"300px"}},null,8,["modelValue"])]),_:1}),i(p,null,{default:l(()=>[i(y,{type:"primary",plain:""},{default:l(()=>[v("\u626B\u4E00\u626B")]),_:1})]),_:1})]),_:1},8,["model","rules"])),[[V,a(u)]])]),b("div",g,[i(y,{disabled:a(u),type:"primary",onClick:R},{default:l(()=>[v("\u786E \u5B9A")]),_:1},8,["disabled"]),i(y,{onClick:r[2]||(r[2]=s=>_.value=!1)},{default:l(()=>[v("\u53D6 \u6D88")]),_:1})])]),default:l(()=>[I((d(),c(w,{"label-width":"80px",style:{padding:"10px"}},{default:l(()=>[i(_a,{ref:"infoRef","is-detail":!0,isDelivery:!0,id:a(e).id,style:{"margin-bottom":"30px"}},null,8,["id"]),i(da,{ref:"infoRef",isDelivery:!0,id:a(e).id},null,8,["id"])]),_:1})),[[V,a(u)]])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-acdf8a20"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/form/OrderDeliveryForm.vue"]])});export{Va as __tla,N as default};
|