1 |
- import{d as O,L as q,u as A,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 D,l as n,m as _,z as F,aw as K,q as L,K as M}from"./index-abad4030.js";import{_ as U}from"./ContentWrap.vue_vue_type_script_setup_true_lang-7f96d0ff.js";import{g as V,u as W}from"./index-48aa43a3.js";import G from"./OrderBaseInfo-c233a95c.js";import X from"./OrderProduct-226f31f7.js";import Z from"./OrderComment-703035c3.js";import $ from"./OrderService-f2cb6bf9.js";import{A as H}from"./AfterSale-13078787.js";import J from"./OrderLogistics-ea09fe62.js";import Q from"./orderPay-7b3329f2.js";import Y from"./OrderLogs-58132b2d.js";import{u as ee}from"./useMessage-7954cb2f.js";import{_ as te}from"./_plugin-vue_export-helper-1b428a4d.js";import"./el-card-ae8ad827.js";import"./SPuUploadImg-c3944a6d.js";import"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-5d33076d.js";import"./index-b9506fe9.js";import"./el-image-viewer-589d6dbb.js";import"./formatTime-775c05ee.js";import"./dict-a9a468ec.js";import"./el-descriptions-item-d2e860f6.js";import"./DictTag.vue_vue_type_script_lang-dadba9ff.js";import"./color-6e929987.js";import"./el-image-56b655c9.js";import"./index.vue_vue_type_script_setup_true_lang-bec51e2c.js";import"./index-84234f22.js";import"./index-904c3b07.js";import"./el-timeline-item-6199607c.js";import"./index-1e5e2a71.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}=A(),{t:u}=F(),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 K.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=L,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"]),[[D,e(o)=="info"]]),e(o)=="product"?(r(),m(X,{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(Y,{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};
|