1 |
- import{d as O,L as q,u as L,r as d,x as P,y as j,h as b,B as w,a as e,o as r,j as m,w as c,k as f,i as t,P as z,a4 as A,l as n,m as _,z as D,aw as F,q as K,K as M}from"./index-34852970.js";import{_ as U}from"./ContentWrap.vue_vue_type_script_setup_true_lang-eb026e5c.js";import{g as V,u as W}from"./index-da2349de.js";import G from"./OrderBaseInfo-0cbce57b.js";import Y from"./OrderProduct-8727b70b.js";import Z from"./OrderComment-cae7b35f.js";import $ from"./OrderService-3b54ffc2.js";import{A as H}from"./AfterSale-a5b7021e.js";import J from"./OrderLogistics-f6c989c7.js";import Q from"./orderPay-411568cd.js";import X from"./OrderLogs-1fbabf86.js";import{u as ee}from"./useMessage-f6294882.js";import{_ as te}from"./_plugin-vue_export-helper-1b428a4d.js";import"./el-card-73839c3c.js";import"./SPuUploadImg-9bce0c7f.js";import"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-5fc738be.js";import"./index-69e629ed.js";import"./el-image-viewer-619778cc.js";import"./formatTime-2355f062.js";import"./dict-5c28424e.js";import"./el-descriptions-item-f0646587.js";import"./DictTag.vue_vue_type_script_lang-7acc703f.js";import"./color-6e929987.js";import"./el-image-32cffe65.js";import"./index.vue_vue_type_script_setup_true_lang-1515f911.js";import"./index-d6d07698.js";import"./index-715c80a7.js";import"./el-timeline-item-16186e07.js";import"./index-735f297f.js";const oe={class:"top",style:{position:"relative",overflow:"hidden"}},ae={class:"bottom"},ie={class:"bottom-button"},se=te(O({name:"ProductSpuForm",__name:"OrderMobileIndex",emits:["success"],setup(re,{emit:B}){const T=q(),{push:x}=L(),{t:u}=D(),y=ee(),p=d(!1),o=d("info"),a=d(0);a.value=T.params.id;const v=d(null),g=d(""),E=B,N=async()=>{const{value:l}=await F.prompt("\u8BF7\u8F93\u5165\u5907\u6CE8","\u5907\u6CE8",{inputValue:g,confirmButtonText:u("common.ok"),cancelButtonText:u("common.cancel")});try{await W({id:a.value,remark:l}),y.success(u("common.updateSuccess")),v.value.getDetail(),E("success",!0)}finally{p.value=!1}},R=()=>{x({name:"Order"})};return P(async()=>{await(async l=>{if(l){const i=await V(l);i||(y.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),g.value=i.remark}})(a.value),document.getElementsByTagName("section")[1].style.padding="0px",document.getElementsByTagName("section")[1].style.width="100%",document.getElementsByTagName("section")[1].style.background="#f5f7f9",document.getElementsByTagName("section")[1].querySelector("div").style.border="none"}),j(()=>{document.getElementsByTagName("section")[1].style.width="auto",document.getElementsByTagName("section")[1].style.padding="20px",document.getElementsByTagName("section")[1].style.background="var(--el-color-white)"}),(l,i)=>{const s=b("van-tab"),h=b("van-tabs"),k=K,S=U,I=M;return w((r(),m(S,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:c(()=>[f("div",oe,[t(h,{active:e(o),"onUpdate:active":i[0]||(i[0]=C=>z(o)?o.value=C:null)},{default:c(()=>[t(s,{title:"\u57FA\u672C\u4FE1\u606F",name:"info"}),t(s,{title:"\u5546\u54C1",name:"product"}),t(s,{title:"\u8BC4\u4EF7",name:"comment"}),t(s,{title:"\u5BA2\u670D",name:"service"}),t(s,{title:"\u552E\u540E",name:"afterSale"}),t(s,{title:"\u7269\u6D41",name:"logistics"}),t(s,{title:"\u652F\u4ED8",name:"pay"}),t(s,{title:"\u65E5\u5FD7",name:"logs"})]),_:1},8,["active"])]),f("div",ae,[w(t(G,{ref_key:"baseInfoRef",ref:v,"is-detail":!1,id:e(a)},null,8,["id"]),[[A,e(o)=="info"]]),e(o)=="product"?(r(),m(Y,{key:0,ref:"infoRef",id:e(a)},null,8,["id"])):n("",!0),e(o)=="comment"?(r(),m(Z,{key:1,ref:"infoRef",id:e(a)},null,8,["id"])):n("",!0),e(o)=="service"?(r(),m($,{key:2,ref:"infoRef",id:e(a)},null,8,["id"])):n("",!0),e(o)=="afterSale"?(r(),m(H,{key:3,orderId:e(a),openSource:"Order"},null,8,["orderId"])):n("",!0),e(o)=="logistics"?(r(),m(J,{key:4,ref:"infoRef",id:e(a)},null,8,["id"])):n("",!0),e(o)=="pay"?(r(),m(Q,{key:5,ref:"infoRef",id:e(a)},null,8,["id"])):n("",!0),e(o)=="logs"?(r(),m(X,{key:6,ref:"infoRef",id:e(a)},null,8,["id"])):n("",!0)]),f("div",ie,[t(k,{onClick:R},{default:c(()=>i[1]||(i[1]=[_("\u8FD4 \u56DE")])),_:1}),t(k,{disabled:e(p),type:"primary",onClick:N},{default:c(()=>i[2]||(i[2]=[_("\u5907 \u6CE8")])),_:1},8,["disabled"])])]),_:1})),[[I,e(p)]])}}}),[["__scopeId","data-v-0bd60b69"]]);export{se as default};
|