OrderIndex-fed0fbbb.js 7.4 KB

1
  1. import{d as ce,r as i,o as l,c as d,f as a,w as s,g as p,t as de,a as e,_ as me,aY as ue,v as fe,q as b,N as G,O as o,m as S,F as ye,aS as pe,V as ve,W as he,B as ke,z as ge,C as be,a$ as Re,H as Se,__tla as Ee}from"./index-2eab2d23.js";import{_ as Ve,__tla as Ce}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{_ as De,__tla as Ie}from"./SPuUploadImg-4b5016f1.js";import xe,{__tla as Ue}from"./OrderBaseInfo-68af99b9.js";import we,{__tla as Ae}from"./OrderProduct-c85eb4ea.js";import Fe,{__tla as Oe}from"./OrderComment-93146988.js";import Pe,{__tla as ze}from"./OrderService-43f76d05.js";import{A as Ne,__tla as Te}from"./AfterSale-82845424.js";import Le,{__tla as Me}from"./OrderLogistics-f134236f.js";import Xe,{__tla as je}from"./orderPay-1a00de1c.js";import qe,{__tla as Be}from"./OrderLogs-f90217b6.js";import{D as J,T as C}from"./constants-40f13f5e.js";import He,{__tla as We}from"./OrderDeliveryForm-3dab7ade.js";import Ye,{__tla as $e}from"./OrderUpdateRemarkForm-ce9d1287.js";import{_ as Ge,__tla as Je}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-0c27f3cd.js";import{_ as Ke}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Qe}from"./el-card-c558f0ec.js";import{__tla as Ze}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as ea}from"./index-d3f876ab.js";import{__tla as aa}from"./el-image-viewer-5d14bc77.js";import{__tla as ta}from"./useMessage-171aa63e.js";import{__tla as ra}from"./index-3562b2a3.js";import{__tla as la}from"./formatTime-41155543.js";import{__tla as _a}from"./dict-1ad71b6f.js";import{__tla as ia}from"./el-descriptions-item-fd42286f.js";import{__tla as oa}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import"./color-6e929987.js";import{__tla as sa}from"./index-e7451cd0.js";import{__tla as na}from"./el-timeline-item-eddfdd2c.js";import{__tla as ca}from"./Dialog-c2716df6.js";import{__tla as da}from"./el-tree-select-4ae7c290.js";import{__tla as ma}from"./index-44a34f60.js";import"./tree-fd3a041e.js";let K,ua=Promise.all([(()=>{try{return Ee}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ma}catch{}})()]).then(async()=>{let D,I,x,U,w,A,F,O,P,z,N,T,L,M;D={class:"my-header"},I={class:"my-header-left"},x={class:"my-header-right"},U=["onClick"],w={class:"left",style:{position:"relative",overflow:"hidden"}},A={class:"right"},F={key:0},O={key:1},P={key:2},z={key:3},N={key:4},T={key:5},L={key:6},M={key:7},K=Ke(ce({name:"ProductSpuForm",__name:"OrderIndex",emits:["success"],setup(fa,{expose:Q,emit:Z}){const h=i(!1),ee=()=>{h.value=!h.value},k=i(!1),_=i("info"),y=i(!1),g=i(!1),E=i(""),c=i(0),t=i({});Q({open:async(v,r,V)=>{c.value=r.id,t.value=r,E.value="\u67E5\u770B-"+V,_.value="info",y.value=v=="view",g.value=!0,h.value=!1}});const X=i(),ae=()=>{var v;(v=X.value)==null||v.getDetail()},j=i(),q=i(),B=i(),te=Z,H=()=>{te("success",!0),g.value=!1};return(v,r)=>{const V=pe,re=De,m=ve,le=he,R=ke,_e=ge,ie=be,oe=Ve,se=Re,ne=Se;return l(),d(ye,null,[a(se,{modelValue:e(g),"onUpdate:modelValue":r[5]||(r[5]=n=>G(g)?g.value=n:null),title:e(E),fullscreen:e(h),"show-close":!1,width:"70%",draggable:"",class:"dialog","destroy-on-close":""},{header:s(({close:n})=>[p("div",D,[p("div",I,de(e(E)),1),p("div",x,[p("span",{onClick:ee},[a(e(me),{icon:e(h)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),p("span",{onClick:n},[a(V,null,{default:s(()=>[a(e(ue))]),_:1})],8,U)])])]),default:s(()=>[fe((l(),b(oe,{style:{"max-height":"560px","min-height":"560px","overflow-y":"auto"}},{default:s(()=>[p("div",w,[a(re,{modelValue:e(t).items[0].picUrl,"onUpdate:modelValue":r[0]||(r[0]=n=>e(t).items[0].picUrl=n),disabled:!0},null,8,["modelValue"]),a(le,{modelValue:e(_),"onUpdate:modelValue":r[1]||(r[1]=n=>G(_)?_.value=n:null),"tab-position":"left",class:"child-tabs"},{default:s(()=>[a(m,{label:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(m,{label:"\u5546\u54C1",name:"product"}),a(m,{label:"\u8BC4\u4EF7",name:"comment"}),a(m,{label:"\u5BA2\u670D",name:"service"}),a(m,{label:"\u552E\u540E",name:"afterSale"}),a(m,{label:"\u7269\u6D41",name:"logistics"}),a(m,{label:"\u652F\u4ED8",name:"pay"}),a(m,{label:"\u65E5\u5FD7",name:"logs"})]),_:1},8,["modelValue"])]),p("div",A,[e(_)=="info"?(l(),d("div",F,[a(xe,{ref_key:"baseInfoRef",ref:X,"is-detail":!1,id:e(c)},null,8,["id"])])):o("",!0),e(_)=="product"?(l(),d("div",O,[a(we,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="comment"?(l(),d("div",P,[a(Fe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="service"?(l(),d("div",z,[a(Pe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="afterSale"?(l(),d("div",N,[a(Ne,{orderId:e(c),openSource:"Order"},null,8,["orderId"])])):o("",!0),e(_)=="logistics"?(l(),d("div",T,[a(Le,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="pay"?(l(),d("div",L,[a(Xe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="logs"?(l(),d("div",M,[a(qe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0)]),e(_)=="info"?(l(),b(ie,{key:0,style:{clear:"both"}},{default:s(()=>[a(_e,{style:{float:"right"}},{default:s(()=>[e(t).deliveryType===e(J).EXPRESS.type&&e(t).status===e(C).UNDELIVERED.status?(l(),b(R,{key:0,loading:e(k),type:"primary",onClick:r[2]||(r[2]=n=>{var f;return u=e(t).id,void((f=j.value)==null?void 0:f.open("\u8BA2\u5355\u5217\u8868",u));var u})},{default:s(()=>[S("\u53D1\u8D27")]),_:1},8,["loading"])):o("",!0),e(t).deliveryType===e(J).EXPRESS.type&&e(t).status===e(C).UNDELIVERED.status?(l(),b(R,{key:1,loading:e(k),type:"primary",onClick:r[3]||(r[3]=n=>{return u=e(t).id,f=e(t).receiverAreaName,W=e(t).receiverMobile,Y=e(t).receiverAreaId,$=e(t).receiverDetailAddress,void B.value.open(u,f,W,Y,$);var u,f,W,Y,$})},{default:s(()=>[S("\u4FEE\u6539\u5730\u5740")]),_:1},8,["loading"])):o("",!0),e(t).status===e(C).COMPLETED.status?(l(),b(R,{key:2,loading:e(k),type:"primary",onClick:v.handleInvoice},{default:s(()=>[S("\u5F00\u53D1\u7968")]),_:1},8,["loading","onClick"])):o("",!0),a(R,{loading:e(k),type:"primary",onClick:r[4]||(r[4]=n=>{var f;return u=e(t).id,e(t).remark,void((f=q.value)==null?void 0:f.open(u,"DetailOpen"));var u})},{default:s(()=>[S("\u5907\u6CE8")]),_:1},8,["loading"])]),_:1})]),_:1})):o("",!0)]),_:1})),[[ne,e(k)]])]),_:1},8,["modelValue","title","fullscreen"]),a(He,{ref_key:"deliveryFormRef",ref:j,onSuccess:H},null,512),a(Ye,{ref_key:"updateRemarkForm",ref:q,onSuccess:ae},null,512),a(Ge,{ref_key:"updateAddressFormRef",ref:B,onSuccess:H},null,512)],64)}}}),[["__scopeId","data-v-19f32da4"]])});export{ua as __tla,K as default};