1 |
- import{d as J,r as o,f as P,L as Q,m as X,o as d,x as c,w as s,h as w,y as I,a,g as i,c as j,F as E,v as M,q as N,Q as S,G as T,z as H,A as K,B as W,X as Y,D as Z,J as $,_ as aa,__tla as ea}from"./index-f90b5c34.js";import{_ as ta,__tla as la}from"./Dialog-7f3c43da.js";import{g as ra,__tla as sa}from"./index-1c26c145.js";import{d as ia,__tla as oa}from"./index-36104bda.js";import _a,{__tla as ua}from"./OrderBaseInfo-71e9c335.js";import da,{__tla as ca}from"./OrderProduct-70e41697.js";import{u as ma,__tla as na}from"./useMessage-b63be42a.js";import{__tla as fa}from"./SPuUploadImg-d3560121.js";import{__tla as pa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-eb96616a.js";import{__tla as ya}from"./index-86de76ed.js";import{__tla as va}from"./el-image-viewer-ac6c2905.js";import{__tla as ga}from"./formatTime-927aec41.js";import{__tla as ha}from"./dict-94292190.js";import{__tla as xa}from"./el-descriptions-item-05101a49.js";import{__tla as ba}from"./DictTag-e6ed0491.js";import"./color-6e929987.js";let V,wa=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 ga}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return ba}catch{}})()]).then(async()=>{let p,y;p={style:{"text-align":"left",display:"flex"}},y={style:{"text-align":"right"}},V=aa(J({name:"OrderDeliveryForm",__name:"OrderDeliveryForm",emits:["success"],setup(Ia,{expose:D,emit:F}){const m=ma(),_=o(!1),u=o(!1),k=o("express"),e=o({id:0,logisticsId:null,logisticsNo:""}),v=o(),C=P({logisticsId:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8"}],logisticsNo:[{required:!0,message:"\u8BF7\u8F93\u5165\u5FEB\u9012\u5355\u53F7"}]}),n=o(""),L=Q(()=>n.value?f.value.filter(t=>t.name.toLowerCase().includes(n.value.toLowerCase())):f.value),U=t=>{n.value=t};D({open:async(t,l)=>{O(),e.value.id=l,_.value=!0}});const q=F,z=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,q("success",!0)}finally{u.value=!1}},O=()=>{var t;e.value={id:0,logisticsId:null,logisticsNo:""},(t=v.value)==null||t.resetFields()},f=o([]);return X(async()=>{f.value=await ra()}),(t,l)=>{const g=T,R=H,A=K,h=W,B=Y,x=Z,G=ta,b=$;return d(),c(G,{modelValue:a(_),"onUpdate:modelValue":l[3]||(l[3]=r=>S(_)?_.value=r:null),title:"\u8BA2\u5355\u53D1\u8D27",width:"70%"},{footer:s(()=>[w("div",p,[I((d(),c(g,{ref_key:"formRef",ref:v,model:a(e),"label-width":"100px",style:{display:"flex"},rules:a(C)},{default:s(()=>[i(h,{label:"\u7269\u6D41\u516C\u53F8",prop:"logisticsId"},{default:s(()=>[i(A,{modelValue:a(e).logisticsId,"onUpdate:modelValue":l[0]||(l[0]=r=>a(e).logisticsId=r),placeholder:"\u8BF7\u9009\u62E9",filterable:"","filter-method":U},{default:s(()=>[(d(!0),j(E,null,M(a(L),r=>(d(),c(R,{key:r.id,label:r.name,value:r.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i(h,{label:"\u7269\u6D41\u5355\u53F7",prop:"logisticsNo"},{default:s(()=>[i(B,{modelValue:a(e).logisticsNo,"onUpdate:modelValue":l[1]||(l[1]=r=>a(e).logisticsNo=r),placeholder:"\u8BF7\u5F55\u5165\u5FEB\u9012\u5355\u53F7"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[b,a(u)]])]),w("div",y,[i(x,{disabled:a(u),type:"primary",onClick:z},{default:s(()=>[N("\u786E \u5B9A")]),_:1},8,["disabled"]),i(x,{onClick:l[2]||(l[2]=r=>_.value=!1)},{default:s(()=>[N("\u53D6 \u6D88")]),_:1})])]),default:s(()=>[I((d(),c(g,{"label-width":"80px",style:{padding:"10px"}},{default:s(()=>[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})),[[b,a(u)]])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-acdf8a20"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/order/form/OrderDeliveryForm.vue"]])});export{wa as __tla,V as default};
|