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-6d906b8a.js";import{_ as U}from"./ContentWrap.vue_vue_type_script_setup_true_lang-3e2a4d47.js";import{g as V,u as W}from"./index-69b80eed.js";import G from"./OrderBaseInfo-8b058126.js";import Y from"./OrderProduct-c6d319e1.js";import Z from"./OrderComment-51a9aa3d.js";import $ from"./OrderService-40c44b7f.js";import{A as H}from"./AfterSale-03dd5f8a.js";import J from"./OrderLogistics-898ce48e.js";import Q from"./orderPay-ef584739.js";import X from"./OrderLogs-7ab299b2.js";import{u as ee}from"./useMessage-cb0d0c75.js";import{_ as te}from"./_plugin-vue_export-helper-1b428a4d.js";import"./el-card-dcb0121c.js";import"./SPuUploadImg-f3405bee.js";import"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3a6b66a.js";import"./index-6b24d3ee.js";import"./el-image-viewer-3eb20b9c.js";import"./formatTime-b48ce278.js";import"./dict-1d5b7a74.js";import"./el-descriptions-item-9d55de2b.js";import"./DictTag.vue_vue_type_script_lang-afe43767.js";import"./color-6e929987.js";import"./el-image-9aeecfea.js";import"./index.vue_vue_type_script_setup_true_lang-7766ce4b.js";import"./index-06db4b5a.js";import"./index-64283c35.js";import"./el-timeline-item-4d02b36e.js";import"./index-7fec6999.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};
|