OrderPickUpForm-3c7b2d6c.js 5.0 KB

1
  1. import{d as I,r as i,e as R,o as y,c as q,f as _,w as e,a,n,x as T,v,O as k,P as A,F as H,V as j,A as z,D as K,C as L,I as N,_ as S,__tla as X}from"./index-11e4820e.js";import{_ as B,__tla as G}from"./Dialog-bbfaf85c.js";import{q as J,r as M,__tla as Q}from"./index-85087f4c.js";import{D as W,T as Y}from"./constants-40f13f5e.js";import Z,{__tla as $}from"./index-5befb932.js";import{u as tt,__tla as at}from"./useMessage-06ddf735.js";import{__tla as rt}from"./ContentWrap-694014d4.js";import{__tla as et}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import{__tla as _t}from"./el-card-919c14be.js";import{__tla as lt}from"./el-timeline-item-52f21599.js";import{__tla as ot}from"./el-link-6cd4f1ac.js";import{__tla as st}from"./el-descriptions-item-4246212b.js";import{__tla as ct}from"./DictTag-e41ec8de.js";import"./color-6e929987.js";import{__tla as ut}from"./dict-4072dcec.js";import{__tla as it}from"./formatTime-f6a2c881.js";import{__tla as mt}from"./OrderUpdateRemarkForm-3518c4a7.js";import{__tla as pt}from"./OrderBaseInfo-4751104e.js";import{__tla as nt}from"./SPuUploadImg-7c6bd56b.js";import{__tla as ft}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-8854a0f2.js";import{__tla as dt}from"./index-4203485c.js";import{__tla as yt}from"./el-image-viewer-c4f5814f.js";import{__tla as ht}from"./OrderProduct-ca51f966.js";import{__tla as vt}from"./OrderDeliveryForm-3306485f.js";import{__tla as kt}from"./index-80a7d751.js";import{__tla as Vt}from"./OrderUpdateAddressForm-c18720db.js";import{__tla as Ut}from"./el-tree-select-beee4f04.js";import{__tla as Ct}from"./index-f6304368.js";import"./tree-0af4953a.js";import{__tla as wt}from"./OrderUpdatePriceForm-bda99065.js";import{__tla as bt}from"./tagsView-4d7a359f.js";import{__tla as Pt}from"./index-165d5548.js";let V,xt=Promise.all([(()=>{try{return X}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Pt}catch{}})()]).then(async()=>{V=S(I({name:"OrderPickUpForm",__name:"OrderPickUpForm",emits:["success"],setup(Dt,{expose:U,emit:C}){const f=tt(),s=i(!1),c=i(!1),l=i(!1),w=R({pickUpVerifyCode:[{required:!0,message:"\u6838\u9500\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),u=i({pickUpVerifyCode:""}),m=i(),d=i({});U({open:async()=>{x(),s.value=!0}});const b=C,P=async()=>{l.value=!0;try{await J(u.value.pickUpVerifyCode),f.success("\u6838\u9500\u6210\u529F"),c.value=!1,s.value=!1,b("success",!0)}finally{l.value=!1}},x=()=>{var t;u.value={pickUpVerifyCode:""},(t=m.value)==null||t.resetFields()},D=async()=>{if(!m||!await m.value.validate())return;l.value=!0;const t=await M(u.value.pickUpVerifyCode);l.value=!1,(t==null?void 0:t.deliveryType)===W.PICK_UP.type?(t==null?void 0:t.status)===Y.UNDELIVERED.status?(d.value=t,c.value=!0):f.error("\u8BA2\u5355\u4E0D\u662F\u5F85\u6838\u9500\u72B6\u6001"):f.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6838\u9500\u7801")};return(t,r)=>{const F=j,g=z,O=K,p=L,h=B,E=N;return y(),q(H,null,[_(h,{modelValue:a(s),"onUpdate:modelValue":r[2]||(r[2]=o=>k(s)?s.value=o:null),title:"\u8BA2\u5355\u6838\u9500",width:"35%"},{footer:e(()=>[_(p,{type:"primary",disabled:a(l),onClick:D},{default:e(()=>[n(" \u67E5\u8BE2 ")]),_:1},8,["disabled"]),_(p,{onClick:r[1]||(r[1]=o=>s.value=!1)},{default:e(()=>[n("\u53D6 \u6D88")]),_:1})]),default:e(()=>[T((y(),v(O,{ref_key:"formRef",ref:m,model:a(u),rules:a(w),"label-width":"100px"},{default:e(()=>[_(g,{prop:"pickUpVerifyCode",label:"\u6838\u9500\u7801"},{default:e(()=>[_(F,{modelValue:a(u).pickUpVerifyCode,"onUpdate:modelValue":r[0]||(r[0]=o=>a(u).pickUpVerifyCode=o),placeholder:"\u8BF7\u8F93\u5165\u6838\u9500\u7801"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[E,a(l)]])]),_:1},8,["modelValue"]),_(h,{modelValue:a(c),"onUpdate:modelValue":r[4]||(r[4]=o=>k(c)?c.value=o:null),title:"\u8BA2\u5355\u8BE6\u60C5",width:"55%"},{footer:e(()=>[_(p,{type:"primary",disabled:a(l),onClick:P},{default:e(()=>[n(" \u786E\u8BA4\u6838\u9500 ")]),_:1},8,["disabled"]),_(p,{onClick:r[3]||(r[3]=o=>c.value=!1)},{default:e(()=>[n("\u53D6 \u6D88")]),_:1})]),default:e(()=>[a(d).id?(y(),v(Z,{key:0,id:a(d).id,"show-pick-up":!1},null,8,["id"])):A("",!0)]),_:1},8,["modelValue"])],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/order/form/OrderPickUpForm.vue"]])});export{xt as __tla,V as default};