OrderIndex-f97a974f.js 7.7 KB

1
  1. import{d as ce,r as i,o as l,c as d,g as t,w as s,h as p,t as de,a as e,k as me,aL as ue,y as fe,x as b,Q as Z,R as o,q as x,F as ye,aO as pe,Y as he,Z as ve,D as ke,B as ge,G as be,aw as Re,J as xe,_ as Ee,__tla as De}from"./index-f90b5c34.js";import{_ as Se,__tla as Ve}from"./ContentWrap-ba2a4753.js";import{_ as Ie,__tla as we}from"./SPuUploadImg-d3560121.js";import Ce,{__tla as Oe}from"./OrderBaseInfo-71e9c335.js";import Ue,{__tla as Ae}from"./OrderProduct-70e41697.js";import Fe,{__tla as Pe}from"./OrderComment-1acf93cd.js";import ze,{__tla as Le}from"./OrderService-fbf13d89.js";import{A as Te,__tla as Ne}from"./AfterSale-f96708f2.js";import Me,{__tla as Xe}from"./OrderLogistics-69cabf0a.js";import je,{__tla as qe}from"./orderPay-57a0f86f.js";import Be,{__tla as Ge}from"./OrderLogs-e177a187.js";import{D as H,T as S}from"./constants-40f13f5e.js";import Je,{__tla as Qe}from"./OrderDeliveryForm-4c8f39ab.js";import Ye,{__tla as Ze}from"./OrderUpdateRemarkForm-132ec2c0.js";import He,{__tla as Ke}from"./OrderUpdateAddressForm-3d96792e.js";import{__tla as We}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c084c361.js";import{__tla as $e}from"./el-card-8f26f411.js";import{__tla as et}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-eb96616a.js";import{__tla as tt}from"./index-86de76ed.js";import{__tla as at}from"./el-image-viewer-ac6c2905.js";import{__tla as rt}from"./useMessage-b63be42a.js";import{__tla as lt}from"./index-36104bda.js";import{__tla as _t}from"./formatTime-927aec41.js";import{__tla as it}from"./dict-94292190.js";import{__tla as ot}from"./el-descriptions-item-05101a49.js";import{__tla as st}from"./DictTag-e6ed0491.js";import"./color-6e929987.js";import{__tla as nt}from"./el-image-ea8bcca0.js";import{__tla as ct}from"./index-45a8312e.js";import{__tla as dt}from"./index-308c7aa8.js";import{__tla as mt}from"./index-62965d70.js";import{__tla as ut}from"./el-timeline-item-64edcdc3.js";import{__tla as ft}from"./index-1c26c145.js";import{__tla as yt}from"./Dialog-7f3c43da.js";import{__tla as pt}from"./el-tree-select-c9aabe53.js";import{__tla as ht}from"./index-a7e9b043.js";import"./tree-0af4953a.js";let K,vt=Promise.all([(()=>{try{return De}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Le}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return $e}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 ot}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return ht}catch{}})()]).then(async()=>{let V,I,w,C,O,U,A,F,P,z,L,T,N,M;V={class:"my-header"},I={class:"my-header-left"},w={class:"my-header-right"},C=["onClick"],O={class:"left",style:{position:"relative",overflow:"hidden"}},U={class:"right"},A={key:0},F={key:1},P={key:2},z={key:3},L={key:4},T={key:5},N={key:6},M={key:7},K=Ee(ce({name:"ProductSpuForm",__name:"OrderIndex",emits:["success"],setup(kt,{expose:W,emit:$}){const v=i(!1),ee=()=>{v.value=!v.value},k=i(!1),_=i("info"),y=i(!1),g=i(!1),E=i(""),c=i(0),a=i({});W({open:async(h,r,D)=>{c.value=r.id,a.value=r,E.value="\u67E5\u770B-"+D,_.value="info",y.value=h=="view",g.value=!0,v.value=!1}});const X=i(),te=()=>{var h;(h=X.value)==null||h.getDetail()},j=i(),q=i(),B=i(),ae=$,G=()=>{ae("success",!0),g.value=!1};return(h,r)=>{const D=pe,re=Ie,m=he,le=ve,R=ke,_e=ge,ie=be,oe=Se,se=Re,ne=xe;return l(),d(ye,null,[t(se,{modelValue:e(g),"onUpdate:modelValue":r[5]||(r[5]=n=>Z(g)?g.value=n:null),title:e(E),fullscreen:e(v),"show-close":!1,width:"70%",draggable:"",class:"dialog","destroy-on-close":""},{header:s(({close:n})=>[p("div",V,[p("div",I,de(e(E)),1),p("div",w,[p("span",{onClick:ee},[t(e(me),{icon:e(v)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),p("span",{onClick:n},[t(D,null,{default:s(()=>[t(e(ue))]),_:1})],8,C)])])]),default:s(()=>[fe((l(),b(oe,{style:{"max-height":"560px","min-height":"560px","overflow-y":"auto"}},{default:s(()=>[p("div",O,[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=>Z(_)?_.value=n:null),"tab-position":"left",class:"child-tabs"},{default:s(()=>[t(m,{label:"\u57FA\u672C\u4FE1\u606F",name:"info"}),t(m,{label:"\u5546\u54C1",name:"product"}),t(m,{label:"\u8BC4\u4EF7",name:"comment"}),t(m,{label:"\u5BA2\u670D",name:"service"}),t(m,{label:"\u552E\u540E",name:"afterSale"}),t(m,{label:"\u7269\u6D41",name:"logistics"}),t(m,{label:"\u652F\u4ED8",name:"pay"}),t(m,{label:"\u65E5\u5FD7",name:"logs"})]),_:1},8,["modelValue"])]),p("div",U,[e(_)=="info"?(l(),d("div",A,[t(Ce,{ref_key:"baseInfoRef",ref:X,"is-detail":!1,id:e(c)},null,8,["id"])])):o("",!0),e(_)=="product"?(l(),d("div",F,[t(Ue,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="comment"?(l(),d("div",P,[t(Fe,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="service"?(l(),d("div",z,[t(ze,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="afterSale"?(l(),d("div",L,[t(Te,{orderId:e(c),openSource:"Order"},null,8,["orderId"])])):o("",!0),e(_)=="logistics"?(l(),d("div",T,[t(Me,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="pay"?(l(),d("div",N,[t(je,{ref:"infoRef","is-detail":e(y),id:e(c)},null,8,["is-detail","id"])])):o("",!0),e(_)=="logs"?(l(),d("div",M,[t(Be,{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(()=>[t(_e,{style:{float:"right"}},{default:s(()=>[e(a).deliveryType===e(H).EXPRESS.type&&e(a).status===e(S).UNDELIVERED.status?(l(),b(R,{key:0,loading:e(k),type:"primary",onClick:r[2]||(r[2]=n=>{var f;return u=e(a).id,void((f=j.value)==null?void 0:f.open("\u8BA2\u5355\u5217\u8868",u));var u})},{default:s(()=>[x("\u53D1\u8D27")]),_:1},8,["loading"])):o("",!0),e(a).deliveryType===e(H).EXPRESS.type&&e(a).status===e(S).UNDELIVERED.status?(l(),b(R,{key:1,loading:e(k),type:"primary",onClick:r[3]||(r[3]=n=>{return u=e(a).id,f=e(a).receiverAreaName,J=e(a).receiverMobile,Q=e(a).receiverAreaId,Y=e(a).receiverDetailAddress,void B.value.open(u,f,J,Q,Y);var u,f,J,Q,Y})},{default:s(()=>[x("\u4FEE\u6539\u5730\u5740")]),_:1},8,["loading"])):o("",!0),e(a).status===e(S).COMPLETED.status?(l(),b(R,{key:2,loading:e(k),type:"primary",onClick:h.handleInvoice},{default:s(()=>[x("\u5F00\u53D1\u7968")]),_:1},8,["loading","onClick"])):o("",!0),t(R,{loading:e(k),type:"primary",onClick:r[4]||(r[4]=n=>{var f;return u=e(a).id,e(a).remark,void((f=q.value)==null?void 0:f.open(u,"DetailOpen"));var u})},{default:s(()=>[x("\u5907\u6CE8")]),_:1},8,["loading"])]),_:1})]),_:1})):o("",!0)]),_:1})),[[ne,e(k)]])]),_:1},8,["modelValue","title","fullscreen"]),t(Je,{ref_key:"deliveryFormRef",ref:j,onSuccess:G},null,512),t(Ye,{ref_key:"updateRemarkForm",ref:q,onSuccess:te},null,512),t(He,{ref_key:"updateAddressFormRef",ref:B,onSuccess:G},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};