OrderPickUpForm-da09a7b8.js 4.4 KB

1
  1. import{d as R,r as c,f as H,o as y,c as I,i as l,w as e,a as t,j as d,C as K,l as v,y as k,a2 as T,F as j,U as J,H as L,K as N,J as q,N as z,_ as X,__tla as A}from"./index-af173888.js";import{_ as B,__tla as G}from"./Dialog-987c90a1.js";import{h as M,i as Q,__tla as S}from"./index-39d4deae.js";import{D as W,T as Y}from"./constants-a3c69b57.js";import Z,{__tla as $}from"./index-70ce9227.js";import{u as aa,__tla as ta}from"./useMessage-170c1b43.js";import{__tla as ra}from"./ContentWrap-b959c1be.js";import{__tla as ea}from"./el-card-178b9654.js";import{__tla as la}from"./el-timeline-item-4ef8f91a.js";import{__tla as _a}from"./el-link-3e92dcd8.js";import{__tla as oa}from"./el-descriptions-item-02866442.js";import{__tla as sa}from"./DictTag-4a35e2b7.js";import"./color-6e929987.js";import{__tla as ia}from"./dict-093d1dfa.js";import{__tla as ua}from"./formatTime-8a6f6c49.js";import{__tla as ca}from"./OrderUpdateRemarkForm-21ad484e.js";import{__tla as ma}from"./OrderDeliveryForm-8bed897b.js";import{__tla as pa}from"./index-78cc49bc.js";import{__tla as da}from"./OrderUpdateAddressForm-646aaecc.js";import{__tla as fa}from"./el-tree-select-cd58540b.js";import{__tla as na}from"./index-049873cb.js";import"./tree-02f455f9.js";import{__tla as ya}from"./OrderUpdatePriceForm-fe967e23.js";import{__tla as ha}from"./tagsView-cc773b9b.js";import{__tla as va}from"./index-4c9ff324.js";let U,ka=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})()]).then(async()=>{U=X(R({name:"OrderPickUpForm",__name:"OrderPickUpForm",emits:["success"],setup(Ua,{expose:V,emit:C}){const f=aa(),s=c(!1),i=c(!1),_=c(!1),w=H({pickUpVerifyCode:[{required:!0,message:"\u6838\u9500\u7801\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),u=c({pickUpVerifyCode:""}),m=c(),n=c({});V({open:async()=>{x(),s.value=!0}});const b=C,P=async()=>{_.value=!0;try{await M(u.value.pickUpVerifyCode),f.success("\u6838\u9500\u6210\u529F"),i.value=!1,s.value=!1,b("success",!0)}finally{_.value=!1}},x=()=>{var a;u.value={pickUpVerifyCode:""},(a=m.value)==null||a.resetFields()},F=async()=>{if(!m||!await m.value.validate())return;_.value=!0;const a=await Q(u.value.pickUpVerifyCode);_.value=!1,(a==null?void 0:a.deliveryType)===W.PICK_UP.type?(a==null?void 0:a.status)===Y.UNDELIVERED.status?(n.value=a,i.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(a,r)=>{const D=J,g=L,E=N,p=q,h=B,O=z;return y(),I(j,null,[l(h,{modelValue:t(s),"onUpdate:modelValue":r[2]||(r[2]=o=>k(s)?s.value=o:null),title:"\u8BA2\u5355\u6838\u9500",width:"35%"},{footer:e(()=>[l(p,{type:"primary",disabled:t(_),onClick:F},{default:e(()=>[d(" \u67E5\u8BE2 ")]),_:1},8,["disabled"]),l(p,{onClick:r[1]||(r[1]=o=>s.value=!1)},{default:e(()=>[d("\u53D6 \u6D88")]),_:1})]),default:e(()=>[K((y(),v(E,{ref_key:"formRef",ref:m,model:t(u),rules:t(w),"label-width":"100px"},{default:e(()=>[l(g,{prop:"pickUpVerifyCode",label:"\u6838\u9500\u7801"},{default:e(()=>[l(D,{modelValue:t(u).pickUpVerifyCode,"onUpdate:modelValue":r[0]||(r[0]=o=>t(u).pickUpVerifyCode=o),placeholder:"\u8BF7\u8F93\u5165\u6838\u9500\u7801"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[O,t(_)]])]),_:1},8,["modelValue"]),l(h,{modelValue:t(i),"onUpdate:modelValue":r[4]||(r[4]=o=>k(i)?i.value=o:null),title:"\u8BA2\u5355\u8BE6\u60C5",width:"55%"},{footer:e(()=>[l(p,{type:"primary",disabled:t(_),onClick:P},{default:e(()=>[d(" \u786E\u8BA4\u6838\u9500 ")]),_:1},8,["disabled"]),l(p,{onClick:r[3]||(r[3]=o=>i.value=!1)},{default:e(()=>[d("\u53D6 \u6D88")]),_:1})]),default:e(()=>[t(n).id?(y(),v(Z,{key:0,id:t(n).id,"show-pick-up":!1},null,8,["id"])):T("",!0)]),_:1},8,["modelValue"])],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/order/form/OrderPickUpForm.vue"]])});export{ka as __tla,U as default};