import{d as ce,r as i,o as l,c as d,i as t,w as o,j as p,t as de,a as e,n as ue,aP as me,D as fe,k as b,R as H,S as s,l as E,F as ye,aQ as pe,Z as ve,$ as he,s as ke,I as ge,J as Re,aA as be,M as De,_ as Ee,__tla as Ie}from"./index-66208f93.js";import{_ as Ve,__tla as Se}from"./ContentWrap-0715bda8.js";import{_ as xe,__tla as Ce}from"./SPuUploadImg-3491ef23.js";import Ue,{__tla as we}from"./OrderBaseInfo-0ee1ff7b.js";import Te,{__tla as Ae}from"./OrderProduct-874feaae.js";import Pe,{__tla as Oe}from"./OrderComment-513c145c.js";import Fe,{__tla as Le}from"./OrderService-9effe4b7.js";import{A as ze,__tla as Ne}from"./AfterSale-2ba21735.js";import Me,{__tla as je}from"./OrderLogistics-1be0f4fc.js";import Xe,{__tla as Je}from"./orderPay-4b02eac7.js";import Qe,{__tla as Ze}from"./OrderLogs-3df4baf0.js";import{D as x,T as I}from"./constants-d55a3460.js";import $e,{__tla as qe}from"./OrderDeliveryForm-a0bc41d0.js";import Be,{__tla as Ge}from"./OrderUpdateRemarkForm-71d694c6.js";import He,{__tla as Ke}from"./OrderUpdateAddressForm-c458bb7c.js";import{__tla as We}from"./el-card-a836492c.js";import{__tla as Ye}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-e54b32e6.js";import{__tla as et}from"./index-4eee12bb.js";import{__tla as tt}from"./el-image-viewer-3d1b9860.js";import{__tla as at}from"./useMessage-798a77de.js";import{__tla as rt}from"./index-6a1e132f.js";import{__tla as lt}from"./formatTime-54a7e363.js";import{__tla as _t}from"./dict-6d253095.js";import{__tla as it}from"./el-descriptions-item-ecc89c4c.js";import{__tla as st}from"./DictTag-2782f106.js";import"./color-6e929987.js";import{__tla as ot}from"./el-image-5afdbf9a.js";import{__tla as nt}from"./index-2c78829d.js";import{__tla as ct}from"./index-bd81327d.js";import{__tla as dt}from"./index-d09c64e6.js";import{__tla as ut}from"./el-timeline-item-dd8b906d.js";import{__tla as mt}from"./index-4f3d77d4.js";import{__tla as ft}from"./Dialog-948825d3.js";import{__tla as yt}from"./el-tree-select-18149140.js";import{__tla as pt}from"./index-fb33f45b.js";import"./tree-0af4953a.js";let K,vt=Promise.all([(()=>{try{return Ie}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Le}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return pt}catch{}})()]).then(async()=>{let C,U,w,T,A,P,O,F,L,z,N,M,j,X;C={class:"my-header"},U={class:"my-header-left"},w={class:"my-header-right"},T=["onClick"],A={class:"left",style:{position:"relative",overflow:"hidden"}},P={class:"right"},O={key:0},F={key:1},L={key:2},z={key:3},N={key:4},M={key:5},j={key:6},X={key:7},K=Ee(ce({name:"ProductSpuForm",__name:"OrderIndex",emits:["success"],setup(ht,{expose:W,emit:Y}){const h=i(!1),ee=()=>{h.value=!h.value},k=i(!1),_=i("info"),y=i(!1),g=i(!1),V=i(""),c=i(0),a=i({});W({open:async(v,r,S)=>{c.value=r.id,a.value=r,V.value="\u67E5\u770B-"+S,_.value="info",y.value=v=="view",g.value=!0,h.value=!1}});const J=i(),te=()=>{var v;(v=J.value)==null||v.getDetail()},Q=i(),Z=i(),$=i(),ae=Y,q=()=>{ae("success",!0),g.value=!1};return(v,r)=>{const S=pe,re=xe,u=ve,le=he,D=ke,_e=ge,ie=Re,se=Ve,oe=be,ne=De;return l(),d(ye,null,[t(oe,{modelValue:e(g),"onUpdate:modelValue":r[5]||(r[5]=n=>H(g)?g.value=n:null),title:e(V),fullscreen:e(h),"show-close":!1,width:"70%",draggable:"",class:"dialog","destroy-on-close":""},{header:o(({close:n})=>[p("div",C,[p("div",U,de(e(V)),1),p("div",w,[p("span",{onClick:ee},[t(e(ue),{icon:e(h)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),p("span",{onClick:n},[t(S,null,{default:o(()=>[t(e(me))]),_:1})],8,T)])])]),default:o(()=>[fe((l(),b(se,{style:{"max-height":"560px","min-height":"560px","overflow-y":"auto"}},{default:o(()=>[p("div",A,[t(re,{modelValue:e(a).items[0].picUrl,"onUpdate:modelValue":r[0]||(r[0]=n=>e(a).items[0].picUrl=n),disabled:!0},null,8,["modelValue"]),t(le,{modelValue:e(_),"onUpdate:modelValue":r[1]||(r[1]=n=>H(_)?_.value=n:null),"tab-position":"left",class:"child-tabs"},{default:o(()=>[t(u,{label:"\u57FA\u672C\u4FE1\u606F",name:"info"}),t(u,{label:"\u5546\u54C1",name:"product"}),t(u,{label:"\u8BC4\u4EF7",name:"comment"}),t(u,{label:"\u5BA2\u670D",name:"service"}),t(u,{label:"\u552E\u540E",name:"afterSale"}),t(u,{label:"\u7269\u6D41",name:"logistics"}),t(u,{label:"\u652F\u4ED8",name:"pay"}),t(u,{label:"\u65E5\u5FD7",name:"logs"})]),_:1},8,["modelValue"])]),p("div",P,[e(_)=="info"?(l(),d("div",O,[t(Ue,{ref_key:"baseInfoRef",ref:J,"is-detail":!1,id:e(c)},null,8,["id"])])):s("",!0),e(_)=="product"?(l(),d("div",F,[t(Te,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):s("",!0),e(_)=="comment"?(l(),d("div",L,[t(Pe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):s("",!0),e(_)=="service"?(l(),d("div",z,[t(Fe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):s("",!0),e(_)=="afterSale"?(l(),d("div",N,[t(ze,{orderId:e(c),openSource:"Order"},null,8,["orderId"])])):s("",!0),e(_)=="logistics"?(l(),d("div",M,[t(Me,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):s("",!0),e(_)=="pay"?(l(),d("div",j,[t(Xe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):s("",!0),e(_)=="logs"?(l(),d("div",X,[t(Qe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):s("",!0)]),e(_)=="info"?(l(),b(ie,{key:0,style:{clear:"both"}},{default:o(()=>[t(_e,{style:{float:"right"}},{default:o(()=>[e(a).deliveryType===e(x).EXPRESS.type&&e(a).status===e(I).UNDELIVERED.status||e(a).deliveryType===e(x).VIRTUAL_PRODUCT.type&&e(a).status===e(I).UNDELIVERED.status?(l(),b(D,{key:0,loading:e(k),type:"primary",onClick:r[2]||(r[2]=n=>{var R;return m=e(a).id,f=e(a).spuType,void((R=Q.value)==null?void 0:R.open("\u8BA2\u5355\u5217\u8868",m,f));var m,f})},{default:o(()=>[E("\u53D1\u8D27")]),_:1},8,["loading"])):s("",!0),e(a).deliveryType===e(x).EXPRESS.type&&e(a).status===e(I).UNDELIVERED.status?(l(),b(D,{key:1,loading:e(k),type:"primary",onClick:r[3]||(r[3]=n=>{return m=e(a).id,f=e(a).receiverAreaName,R=e(a).receiverMobile,B=e(a).receiverAreaId,G=e(a).receiverDetailAddress,void $.value.open(m,f,R,B,G);var m,f,R,B,G})},{default:o(()=>[E("\u4FEE\u6539\u5730\u5740")]),_:1},8,["loading"])):s("",!0),e(a).status===e(I).COMPLETED.status?(l(),b(D,{key:2,loading:e(k),type:"primary",onClick:v.handleInvoice},{default:o(()=>[E("\u5F00\u53D1\u7968")]),_:1},8,["loading","onClick"])):s("",!0),t(D,{loading:e(k),type:"primary",onClick:r[4]||(r[4]=n=>{var f;return m=e(a).id,e(a).remark,void((f=Z.value)==null?void 0:f.open(m,"DetailOpen"));var m})},{default:o(()=>[E("\u5907\u6CE8")]),_:1},8,["loading"])]),_:1})]),_:1})):s("",!0)]),_:1})),[[ne,e(k)]])]),_:1},8,["modelValue","title","fullscreen"]),t($e,{ref_key:"deliveryFormRef",ref:Q,onSuccess:q},null,512),t(Be,{ref_key:"updateRemarkForm",ref:Z,onSuccess:te},null,512),t(He,{ref_key:"updateAddressFormRef",ref:$,onSuccess:q},null,512)],64)}}}),[["__scopeId","data-v-0472ef77"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/order/components/OrderIndex.vue"]])});export{vt as __tla,K as default};