1 |
- import{d as G,r as o,f as J,L as W,l as j,o as d,x as c,w as l,h as V,y as I,a,g as i,c as E,F as M,v as Q,n as v,P as S,G as T,z as H,A as K,B as X,W as Y,D as Z,J as $,_ as aa,__tla as ea}from"./index-b362e1d5.js";import{_ as ta,__tla as la}from"./Dialog-71bebaff.js";import{g as ra,__tla as sa}from"./index-740c374f.js";import{d as ia,__tla as oa}from"./index-4596f7c2.js";import _a,{__tla as ua}from"./OrderBaseInfo-f904970b.js";import da,{__tla as ca}from"./OrderProduct-f59e000c.js";import{u as na,__tla as ma}from"./useMessage-7c1dd10e.js";import{__tla as fa}from"./SPuUploadImg-8c588231.js";import{__tla as pa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b4af8eb1.js";import{__tla as ya}from"./index-6b00d885.js";import{__tla as va}from"./el-image-viewer-68ae3e49.js";import{__tla as ha}from"./formatTime-053b1c05.js";import{__tla as ga}from"./dict-9948b178.js";import{__tla as xa}from"./el-descriptions-item-190ce268.js";import{__tla as wa}from"./DictTag-e097450d.js";import"./color-6e929987.js";let N,ba=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 ma}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(G({name:"OrderDeliveryForm",__name:"OrderDeliveryForm",emits:["success"],setup(Va,{expose:D,emit:F}){const n=na(),_=o(!1),u=o(!1),k=o("express"),e=o({id:0,logisticsId:null,logisticsNo:""}),x=o(),C=J({logisticsId:[{required:!0}],logisticsNo:[{required:!0}]}),m=o(""),U=W(()=>m.value?f.value.filter(t=>t.name.toLowerCase().includes(m.value.toLowerCase())):f.value),z=t=>{m.value=t};D({open:async(t,r)=>{P(),e.value.id=r,_.value=!0}});const L=F,O=async()=>{u.value=!0;try{if(e.value.logisticsId===null)return n.error("\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8"),!1;if(e.value.logisticsNo==="")return n.error("\u8BF7\u8F93\u5165\u7269\u6D41\u5355\u53F7"),!1;const t=a(e);k.value==="none"&&(t.logisticsId=0,t.logisticsNo=""),await ia(t),n.success("\u53D1\u8D27\u6210\u529F"),_.value=!1,L("success",!0)}finally{u.value=!1}},P=()=>{var t;e.value={id:0,logisticsId:null,logisticsNo:""},(t=x.value)==null||t.resetFields()},f=o([]);return j(async()=>{f.value=await ra()}),(t,r)=>{const w=T,R=H,q=K,p=X,A=Y,y=Z,B=ta,b=$;return d(),c(B,{modelValue:a(_),"onUpdate:modelValue":r[3]||(r[3]=s=>S(_)?_.value=s:null),title:"\u8BA2\u5355\u53D1\u8D27",width:"60%"},{footer:l(()=>[V("div",h,[I((d(),c(w,{ref_key:"formRef",ref:x,model:a(e),"label-width":"80px",style:{display:"flex"},rules:a(C)},{default:l(()=>[i(p,{label:"\u7269\u6D41\u516C\u53F8",prop:"logisticsId"},{default:l(()=>[i(q,{modelValue:a(e).logisticsId,"onUpdate:modelValue":r[0]||(r[0]=s=>a(e).logisticsId=s),placeholder:"\u8BF7\u9009\u62E9",filterable:"","filter-method":z},{default:l(()=>[(d(!0),E(M,null,Q(a(U),s=>(d(),c(R,{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(A,{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"])),[[b,a(u)]])]),V("div",g,[i(y,{disabled:a(u),type:"primary",onClick:O},{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})),[[b,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{ba as __tla,N as default};
|