1 |
- import{d as M,N as j,u as P,r as i,z as q,A as F,h as w,D as B,a as t,o as _,k as o,w as m,j as d,i as a,R as U,a7 as V,S as s,l as x,B as W,az as G,s as H,M as L,_ as X,__tla as Y}from"./index-2f799233.js";import{_ as Z,__tla as J}from"./ContentWrap-9da801df.js";import{g as K,u as Q,__tla as $}from"./index-36dfbc52.js";import tt,{__tla as at}from"./OrderBaseInfo-3a3e160e.js";import et,{__tla as rt}from"./OrderProduct-fc3eaa5a.js";import lt,{__tla as _t}from"./OrderComment-633e72f0.js";import ot,{__tla as st}from"./OrderService-8a5b7080.js";import{A as nt,__tla as ct}from"./AfterSale-babc95d3.js";import it,{__tla as mt}from"./OrderLogistics-fae4e907.js";import ut,{__tla as ft}from"./orderPay-738f0c41.js";import dt,{__tla as yt}from"./OrderLogs-e2991d51.js";import{u as pt,__tla as ht}from"./useMessage-e567ad40.js";import{__tla as vt}from"./el-card-c64c83d1.js";import{__tla as gt}from"./SPuUploadImg-121cd89e.js";import{__tla as kt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ac19fa49.js";import{__tla as bt}from"./index-5f6db4a5.js";import{__tla as wt}from"./el-image-viewer-8e9e3571.js";import{__tla as Bt}from"./formatTime-2157894c.js";import{__tla as xt}from"./dict-20c916e2.js";import{__tla as Tt}from"./el-descriptions-item-0a78cef7.js";import{__tla as Nt}from"./DictTag-ea4c6cc2.js";import"./color-6e929987.js";import{__tla as Rt}from"./el-image-4d26fa76.js";import{__tla as Et}from"./index-e6cd813f.js";import{__tla as St}from"./index-1c180a16.js";import{__tla as It}from"./index-8cb2149a.js";import{__tla as zt}from"./el-timeline-item-e925b025.js";import{__tla as Ot}from"./index-d6a9bc38.js";let T,At=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Ot}catch{}})()]).then(async()=>{let y,p,h;y={class:"top",style:{position:"relative",overflow:"hidden"}},p={class:"bottom"},h={class:"bottom-button"},T=X(M({name:"ProductSpuForm",__name:"OrderMobileIndex",emits:["success"],setup(Ct,{emit:N}){const R=j(),{push:E}=P(),{t:u}=W(),v=pt(),f=i(!1),e=i("info"),r=i(0);r.value=R.params.id;const g=i(null),k=i(""),S=N,I=async()=>{const{value:n}=await G.prompt("\u8BF7\u8F93\u5165\u5907\u6CE8","\u5907\u6CE8",{inputValue:k,confirmButtonText:u("common.ok"),cancelButtonText:u("common.cancel")});try{await Q({id:r.value,remark:n}),v.success(u("common.updateSuccess")),g.value.getDetail(),S("success",!0)}finally{f.value=!1}},z=()=>{E({name:"Order"})};return q(async()=>{await(async n=>{if(n){const c=await K(n);c||(v.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),k.value=c.remark}})(r.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"}),F(()=>{document.getElementsByTagName("section")[1].style.width="auto",document.getElementsByTagName("section")[1].style.padding="20px",document.getElementsByTagName("section")[1].style.background="var(--el-color-white)"}),(n,c)=>{const l=w("van-tab"),O=w("van-tabs"),b=H,A=Z,C=L;return B((_(),o(A,{style:{"overflow-y":"auto"},class:"ContentWrap"},{default:m(()=>[d("div",y,[a(O,{active:t(e),"onUpdate:active":c[0]||(c[0]=D=>U(e)?e.value=D:null)},{default:m(()=>[a(l,{title:"\u57FA\u672C\u4FE1\u606F",name:"info"}),a(l,{title:"\u5546\u54C1",name:"product"}),a(l,{title:"\u8BC4\u4EF7",name:"comment"}),a(l,{title:"\u5BA2\u670D",name:"service"}),a(l,{title:"\u552E\u540E",name:"afterSale"}),a(l,{title:"\u7269\u6D41",name:"logistics"}),a(l,{title:"\u652F\u4ED8",name:"pay"}),a(l,{title:"\u65E5\u5FD7",name:"logs"})]),_:1},8,["active"])]),d("div",p,[B(a(tt,{ref_key:"baseInfoRef",ref:g,"is-detail":!1,id:t(r)},null,8,["id"]),[[V,t(e)=="info"]]),t(e)=="product"?(_(),o(et,{key:0,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="comment"?(_(),o(lt,{key:1,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="service"?(_(),o(ot,{key:2,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="afterSale"?(_(),o(nt,{key:3,orderId:t(r),openSource:"Order"},null,8,["orderId"])):s("",!0),t(e)=="logistics"?(_(),o(it,{key:4,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="pay"?(_(),o(ut,{key:5,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0),t(e)=="logs"?(_(),o(dt,{key:6,ref:"infoRef",id:t(r)},null,8,["id"])):s("",!0)]),d("div",h,[a(b,{onClick:z},{default:m(()=>[x("\u8FD4 \u56DE")]),_:1}),a(b,{disabled:t(f),type:"primary",onClick:I},{default:m(()=>[x("\u5907 \u6CE8")]),_:1},8,["disabled"])])]),_:1})),[[C,t(f)]])}}}),[["__scopeId","data-v-f37ce1c3"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/order/components/OrderMobileIndex.vue"]])});export{At as __tla,T as default};
|