1 |
- import{_ as Te,__tla as Re}from"./ContentWrap-b959c1be.js";import{d as we,p as W,r as v,O as Se,u as Ae,B as Ce,P as ee,o,c as p,i as l,w as a,F as b,a as e,j as u,t as _,l as i,a2 as n,C as ae,k as w,au as y,g as m,av as ge,J as De,ak as Ie,L as Ue,M as Ne,E as Fe,s as Oe,ac as Le,ad as Ye,_ as Me,__tla as Xe}from"./index-af173888.js";import{E as xe,a as Ve,__tla as je}from"./el-timeline-item-4ef8f91a.js";import{E as He,__tla as Ke}from"./el-link-3e92dcd8.js";import{E as ze,a as Be,__tla as Je}from"./el-descriptions-item-02866442.js";import{_ as Qe,__tla as Ze}from"./DictTag-4a35e2b7.js";import{g as $e,a as qe,p as Ge,__tla as We}from"./index-39d4deae.js";import{f as D,__tla as ea}from"./formatTime-8a6f6c49.js";import{D as k,b as aa,c as la,__tla as ta}from"./dict-093d1dfa.js";import ra,{__tla as sa}from"./OrderUpdateRemarkForm-21ad484e.js";import ua,{__tla as _a}from"./OrderDeliveryForm-8bed897b.js";import oa,{__tla as ca}from"./OrderUpdateAddressForm-646aaecc.js";import ia,{__tla as na}from"./OrderUpdatePriceForm-fe967e23.js";import{g as da,__tla as pa}from"./index-78cc49bc.js";import{u as ya,__tla as ma}from"./tagsView-cc773b9b.js";import{D as E,T as le}from"./constants-a3c69b57.js";import{g as fa,__tla as va}from"./index-4c9ff324.js";import{u as ba,__tla as ka}from"./useMessage-170c1b43.js";import{__tla as Ea}from"./el-card-178b9654.js";import"./color-6e929987.js";import{__tla as ha}from"./Dialog-987c90a1.js";import{__tla as Pa}from"./el-tree-select-cd58540b.js";import{__tla as Ta}from"./index-049873cb.js";import"./tree-02f455f9.js";let te,Ra=Promise.all([(()=>{try{return Re}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ta}catch{}})()]).then(async()=>{let f,U,N,F,O,L,Y,M,X,x,V;f=h=>(Le("data-v-61c53d16"),h=h(),Ye(),h),U=f(()=>m("span",{style:{color:"red"}},"\u63D0\u9192: ",-1)),N=f(()=>m("br",null,null,-1)),F=f(()=>m("br",null,null,-1)),O=f(()=>m("span",{style:{color:"red"}},"\u4F18\u60E0\u52B5\u4F18\u60E0: ",-1)),L=f(()=>m("span",{style:{color:"red"}},"VIP \u4F18\u60E0: ",-1)),Y=f(()=>m("span",{style:{color:"red"}},"\u6D3B\u52A8\u4F18\u60E0: ",-1)),M=f(()=>m("span",{style:{color:"red"}},"\u79EF\u5206\u62B5\u6263: ",-1)),X={key:0},x={key:1},V={class:"el-timeline-right-content"},te=Me(we({name:"TradeOrderDetail",__name:"index",props:{id:W.number.def(void 0),showPickUp:W.bool.def(!0)},setup(h){const C=ba(),re=c=>{const g=la(k.USER_TYPE,c);switch(g==null?void 0:g.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"},t=v({logs:[]}),j=v(),se=()=>{var c;(c=j.value)==null||c.open(t.value)},H=v(),ue=()=>{var c;(c=H.value)==null||c.open(t.value)},K=v(),_e=()=>{var c;(c=K.value)==null||c.open(t.value)},z=v(),oe=()=>{var c;(c=z.value)==null||c.open(t.value)},ce=async()=>{try{await C.confirm("\u786E\u8BA4\u6838\u9500\u8BA2\u5355\u5417\uFF1F"),await Ge(t.value.id),C.success("\u6838\u9500\u6210\u529F"),await P()}catch{}},{params:ie}=Se(),ne=h,B=ie.id||ne.id,P=async()=>{if(B){const c=await qe(B);c||(C.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),me()),t.value=c}},{delView:de}=ya(),{push:pe,currentRoute:ye}=Ae(),me=()=>{de(e(ye)),pe({name:"TradeOrder"})},fe=()=>{C.success("\u590D\u5236\u6210\u529F")},J=v([]),I=v([]),Q=v({});return Ce(async()=>{await P(),t.value.deliveryType===E.EXPRESS.type?(J.value=await da(),form.value.logisticsId&&(I.value=await $e(t.value.id))):t.value.deliveryType===E.PICK_UP.type&&(Q.value=await fa(t.value.pickUpStoreId))}),(c,g)=>{const r=ze,T=Qe,R=Be,S=De,ve=Ie,A=Ue,be=Ne,Z=Fe,ke=Oe,Ee=He,$=xe,q=Ve,he=Te,Pe=ee("hasPermi"),G=ee("clipboard");return o(),p(b,null,[l(he,null,{default:a(()=>[l(R,{title:"\u8BA2\u5355\u4FE1\u606F"},{default:a(()=>[l(r,{label:"\u8BA2\u5355\u53F7: "},{default:a(()=>[u(_(e(t).no),1)]),_:1}),l(r,{label:"\u4E70\u5BB6: "},{default:a(()=>{var s,d;return[u(_((d=(s=e(t))==null?void 0:s.user)==null?void 0:d.nickname),1)]}),_:1}),l(r,{label:"\u8BA2\u5355\u7C7B\u578B: "},{default:a(()=>[l(T,{type:e(k).TRADE_ORDER_TYPE,value:e(t).type},null,8,["type","value"])]),_:1}),l(r,{label:"\u8BA2\u5355\u6765\u6E90: "},{default:a(()=>[l(T,{type:e(k).TERMINAL,value:e(t).terminal},null,8,["type","value"])]),_:1}),l(r,{label:"\u4E70\u5BB6\u7559\u8A00: "},{default:a(()=>[u(_(e(t).userRemark),1)]),_:1}),l(r,{label:"\u5546\u5BB6\u5907\u6CE8: "},{default:a(()=>[u(_(e(t).remark),1)]),_:1}),l(r,{label:"\u652F\u4ED8\u5355\u53F7: "},{default:a(()=>[u(_(e(t).payOrderId),1)]),_:1}),l(r,{label:"\u4ED8\u6B3E\u65B9\u5F0F: "},{default:a(()=>[l(T,{type:e(k).PAY_CHANNEL_CODE,value:e(t).payChannelCode},null,8,["type","value"])]),_:1}),e(t).brokerageUser?(o(),i(r,{key:0,label:"\u63A8\u5E7F\u7528\u6237: "},{default:a(()=>{var s;return[u(_((s=e(t).brokerageUser)==null?void 0:s.nickname),1)]}),_:1})):n("",!0)]),_:1}),l(R,{column:1,title:"\u8BA2\u5355\u72B6\u6001"},{default:a(()=>[l(r,{label:"\u8BA2\u5355\u72B6\u6001: "},{default:a(()=>[l(T,{type:e(k).TRADE_ORDER_STATUS,value:e(t).status},null,8,["type","value"])]),_:1}),ae((o(),i(r,{"label-class-name":"no-colon"},{default:a(()=>[e(t).status===e(le).UNPAID.status?(o(),i(S,{key:0,type:"primary",onClick:oe},{default:a(()=>[u(" \u8C03\u6574\u4EF7\u683C ")]),_:1})):n("",!0),l(S,{type:"primary",onClick:se},{default:a(()=>[u("\u5907\u6CE8")]),_:1}),e(t).status===e(le).UNDELIVERED.status?(o(),p(b,{key:1},[e(t).deliveryType===e(E).EXPRESS.type?(o(),i(S,{key:0,type:"primary",onClick:ue},{default:a(()=>[u(" \u53D1\u8D27 ")]),_:1})):n("",!0),e(t).deliveryType===e(E).EXPRESS.type?(o(),i(S,{key:1,type:"primary",onClick:_e},{default:a(()=>[u(" \u4FEE\u6539\u5730\u5740 ")]),_:1})):n("",!0),e(t).deliveryType===e(E).PICK_UP.type&&h.showPickUp?(o(),i(S,{key:2,type:"primary",onClick:ce},{default:a(()=>[u(" \u6838\u9500 ")]),_:1})):n("",!0)],64)):n("",!0)]),_:1})),[[Pe,["trade:order:update"]]]),l(r,null,{label:a(()=>[U]),default:a(()=>[u(" \u4E70\u5BB6\u4ED8\u6B3E\u6210\u529F\u540E\uFF0C\u8D27\u6B3E\u5C06\u76F4\u63A5\u8FDB\u5165\u60A8\u7684\u5546\u6237\u53F7\uFF08\u5FAE\u4FE1\u3001\u652F\u4ED8\u5B9D\uFF09"),N,u(" \u8BF7\u53CA\u65F6\u5173\u6CE8\u4F60\u53D1\u51FA\u7684\u5305\u88F9\u72B6\u6001\uFF0C\u786E\u4FDD\u53EF\u4EE5\u914D\u9001\u81F3\u4E70\u5BB6\u624B\u4E2D "),F,u(" \u5982\u679C\u4E70\u5BB6\u8868\u793A\u6CA1\u6536\u5230\u8D27\u6216\u8D27\u7269\u6709\u95EE\u9898\uFF0C\u8BF7\u53CA\u65F6\u8054\u7CFB\u4E70\u5BB6\u5904\u7406\uFF0C\u53CB\u597D\u534F\u5546 ")]),_:1})]),_:1}),l(R,{title:"\u5546\u54C1\u4FE1\u606F"},{default:a(()=>[l(r,{labelClassName:"no-colon"},{default:a(()=>[l(ke,{gutter:20},{default:a(()=>[l(Z,{span:15},{default:a(()=>[l(be,{data:e(t).items,border:""},{default:a(()=>[l(A,{label:"\u5546\u54C1",prop:"spuName",width:"auto"},{default:a(({row:s})=>[u(_(s.spuName)+" ",1),(o(!0),p(b,null,w(s.properties,d=>(o(),i(ve,{key:d.propertyId},{default:a(()=>[u(_(d.propertyName)+": "+_(d.valueName),1)]),_:2},1024))),128))]),_:1}),l(A,{label:"\u5546\u54C1\u539F\u4EF7",prop:"price",width:"150"},{default:a(({row:s})=>[u(_(e(y)(s.price))+"\u5143",1)]),_:1}),l(A,{label:"\u6570\u91CF",prop:"count",width:"100"}),l(A,{label:"\u5408\u8BA1",prop:"payPrice",width:"150"},{default:a(({row:s})=>[u(_(e(y)(s.payPrice))+"\u5143",1)]),_:1}),l(A,{label:"\u552E\u540E\u72B6\u6001",prop:"afterSaleStatus",width:"120"},{default:a(({row:s})=>[l(T,{type:e(k).TRADE_ORDER_ITEM_AFTER_SALE_STATUS,value:s.afterSaleStatus},null,8,["type","value"])]),_:1})]),_:1},8,["data"])]),_:1}),l(Z,{span:10})]),_:1})]),_:1})]),_:1}),l(R,{column:4},{default:a(()=>[l(r,{label:"\u5546\u54C1\u603B\u989D: "},{default:a(()=>[u(_(e(y)(e(t).totalPrice))+" \u5143 ",1)]),_:1}),l(r,{label:"\u8FD0\u8D39\u91D1\u989D: "},{default:a(()=>[u(_(e(y)(e(t).deliveryPrice))+" \u5143 ",1)]),_:1}),l(r,{label:"\u8BA2\u5355\u8C03\u4EF7: "},{default:a(()=>[u(_(e(y)(e(t).adjustPrice))+" \u5143 ",1)]),_:1}),(o(),p(b,null,w(1,s=>l(r,{key:s,"label-class-name":"no-colon"})),64)),l(r,null,{label:a(()=>[O]),default:a(()=>[u(" "+_(e(y)(e(t).couponPrice))+" \u5143 ",1)]),_:1}),l(r,null,{label:a(()=>[L]),default:a(()=>[u(" "+_(e(y)(e(t).vipPrice))+" \u5143 ",1)]),_:1}),l(r,null,{label:a(()=>[Y]),default:a(()=>[u(" "+_(e(y)(e(t).discountPrice))+" \u5143 ",1)]),_:1}),l(r,null,{label:a(()=>[M]),default:a(()=>[u(" "+_(e(y)(e(t).pointPrice))+" \u5143 ",1)]),_:1}),(o(),p(b,null,w(3,s=>l(r,{key:s,"label-class-name":"no-colon"})),64)),l(r,{label:"\u5E94\u4ED8\u91D1\u989D: "},{default:a(()=>[u(_(e(y)(e(t).payPrice))+" \u5143 ",1)]),_:1})]),_:1}),l(R,{column:4,title:"\u6536\u8D27\u4FE1\u606F"},{default:a(()=>[l(r,{label:"\u914D\u9001\u65B9\u5F0F: "},{default:a(()=>[l(T,{type:e(k).TRADE_DELIVERY_TYPE,value:e(t).deliveryType},null,8,["type","value"])]),_:1}),l(r,{label:"\u6536\u8D27\u4EBA: "},{default:a(()=>[u(_(e(t).receiverName),1)]),_:1}),l(r,{label:"\u8054\u7CFB\u7535\u8BDD: "},{default:a(()=>[u(_(e(t).receiverMobile),1)]),_:1}),e(t).deliveryType===e(E).EXPRESS.type?(o(),p("div",X,[e(t).receiverDetailAddress?(o(),i(r,{key:0,label:"\u6536\u8D27\u5730\u5740: "},{default:a(()=>[u(_(e(t).receiverAreaName)+" "+_(e(t).receiverDetailAddress)+" ",1),ae(l(Ee,{icon:"ep:document-copy",type:"primary"},null,512),[[G,e(t).receiverAreaName+" "+e(t).receiverDetailAddress,"copy"],[G,fe,"success"]])]),_:1})):n("",!0),e(t).logisticsId?(o(),i(r,{key:1,label:"\u7269\u6D41\u516C\u53F8: "},{default:a(()=>{var s;return[u(_((s=e(J).find(d=>d.id===e(t).logisticsId))==null?void 0:s.name),1)]}),_:1})):n("",!0),e(t).logisticsId?(o(),i(r,{key:2,label:"\u8FD0\u5355\u53F7: "},{default:a(()=>[u(_(e(t).logisticsNo),1)]),_:1})):n("",!0),e(D).deliveryTime?(o(),i(r,{key:3,label:"\u53D1\u8D27\u65F6\u95F4: "},{default:a(()=>[u(_(e(D)(e(t).deliveryTime)),1)]),_:1})):n("",!0),(o(),p(b,null,w(2,s=>l(r,{key:s,"label-class-name":"no-colon"})),64)),e(I).length>0?(o(),i(r,{key:4,label:"\u7269\u6D41\u8BE6\u60C5: "},{default:a(()=>[l(q,null,{default:a(()=>[(o(!0),p(b,null,w(e(I),(s,d)=>(o(),i($,{key:d,timestamp:e(D)(s.time)},{default:a(()=>[u(_(s.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})):n("",!0)])):n("",!0),e(t).deliveryType===e(E).PICK_UP.type?(o(),p("div",x,[e(t).pickUpStoreId?(o(),i(r,{key:0,label:"\u81EA\u63D0\u95E8\u5E97: "},{default:a(()=>{var s;return[u(_((s=e(Q))==null?void 0:s.name),1)]}),_:1})):n("",!0)])):n("",!0)]),_:1}),l(R,{title:"\u8BA2\u5355\u64CD\u4F5C\u65E5\u5FD7"},{default:a(()=>[l(r,{labelClassName:"no-colon"},{default:a(()=>[l(q,null,{default:a(()=>[(o(!0),p(b,null,w(e(t).logs,(s,d)=>(o(),i($,{key:d,timestamp:e(D)(s.createTime),placement:"top"},{dot:a(()=>[m("span",{style:ge({backgroundColor:re(s.userType)}),class:"dot-node-style"},_(e(aa)(e(k).USER_TYPE,s.userType)[0]),5)]),default:a(()=>[m("div",V,_(s.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1}),l(ua,{ref_key:"deliveryFormRef",ref:H,onSuccess:P},null,512),l(ra,{ref_key:"updateRemarkForm",ref:j,onSuccess:P},null,512),l(oa,{ref_key:"updateAddressFormRef",ref:K,onSuccess:P},null,512),l(ia,{ref_key:"updatePriceFormRef",ref:z,onSuccess:P},null,512)],64)}}}),[["__scopeId","data-v-61c53d16"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/order/detail/index.vue"]])});export{Ra as __tla,te as default};
|