import{_ as Ee,__tla as Pe}from"./ContentWrap-83998678.js";import{d as Te,as as W,r as v,u as Re,b as we,a4 as ee,o,c as p,f as t,A as a,F as b,a as e,D as s,E as u,C as n,a3 as i,k as ae,R as w,dA as y,B as m,aH as Se,J as Ae,aw as De,X as Ce,Y as ge,H as Ie,K as Ne,L as Ue,M as Fe,_ as Ye,__tla as Le}from"./index-286756b9.js";import{E as Oe,a as xe,__tla as Xe}from"./el-timeline-item-c7efc654.js";import{E as He,__tla as Ke}from"./el-link-c30faa98.js";import{E as Me,a as Ve,__tla as je}from"./el-descriptions-item-63e151c1.js";import{_ as ze,__tla as qe}from"./DictTag-f72b04ca.js";import{b as Be,g as Ge,p as Je,__tla as Ze}from"./index-c6443726.js";import{f as g,__tla as $e}from"./formatTime-83e416ef.js";import{D as k,d as Qe,c as We,__tla as ea}from"./dict-82dca549.js";import aa,{__tla as ta}from"./OrderUpdateRemarkForm-8c75adee.js";import la,{__tla as ra}from"./OrderDeliveryForm-60d6bcc7.js";import _a,{__tla as sa}from"./OrderUpdateAddressForm-d29ca649.js";import ua,{__tla as oa}from"./OrderUpdatePriceForm-acaa909a.js";import{g as ca,__tla as na}from"./index-c052d10f.js";import{u as ia,__tla as da}from"./tagsView-11a568ba.js";import{D as h,T as te}from"./constants-637baed6.js";import{g as pa,__tla as ya}from"./index-8ef49778.js";import{u as ma,__tla as fa}from"./useMessage-084b1e70.js";import{__tla as va}from"./el-card-d3d5a654.js";import"./color-6e929987.js";import{__tla as ba}from"./Dialog-4c2de357.js";import{__tla as ka}from"./OrderBaseInfo-b63ed52f.js";import{__tla as ha}from"./SPuUploadImg-895192f9.js";import{__tla as Ea}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6643271d.js";import{__tla as Pa}from"./index-5a40c383.js";import{__tla as Ta}from"./el-image-viewer-e0e5d3be.js";import{__tla as Ra}from"./OrderProduct-871687c2.js";import{__tla as wa}from"./el-tree-select-7a83bfa8.js";import{__tla as Sa}from"./index-bb0e31fe.js";import"./tree-0af4953a.js";let le,Aa=Promise.all([(()=>{try{return Pe}catch{}})(),(()=>{try{return Le}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Sa}catch{}})()]).then(async()=>{let f,N,U,F,Y,L,O,x,X,H,K;f=E=>(Ue("data-v-61c53d16"),E=E(),Fe(),E),N=f(()=>m("span",{style:{color:"red"}},"\u63D0\u9192: ",-1)),U=f(()=>m("br",null,null,-1)),F=f(()=>m("br",null,null,-1)),Y=f(()=>m("span",{style:{color:"red"}},"\u4F18\u60E0\u52B5\u4F18\u60E0: ",-1)),L=f(()=>m("span",{style:{color:"red"}},"VIP \u4F18\u60E0: ",-1)),O=f(()=>m("span",{style:{color:"red"}},"\u6D3B\u52A8\u4F18\u60E0: ",-1)),x=f(()=>m("span",{style:{color:"red"}},"\u79EF\u5206\u62B5\u6263: ",-1)),X={key:0},H={key:1},K={class:"el-timeline-right-content"},le=Ye(Te({name:"TradeOrderDetail",__name:"index",props:{id:W.number.def(void 0),showPickUp:W.bool.def(!0)},setup(E){const D=ma(),re=c=>{const C=We(k.USER_TYPE,c);switch(C==null?void 0:C.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"},l=v({logs:[]}),M=v(),_e=()=>{var c;(c=M.value)==null||c.open(l.value)},V=v(),se=()=>{var c;(c=V.value)==null||c.open(l.value)},j=v(),ue=()=>{var c;(c=j.value)==null||c.open(l.value)},z=v(),oe=()=>{var c;(c=z.value)==null||c.open(l.value)},ce=async()=>{try{await D.confirm("\u786E\u8BA4\u6838\u9500\u8BA2\u5355\u5417\uFF1F"),await Je(l.value.id),D.success("\u6838\u9500\u6210\u529F"),await P()}catch{}},q=E.id,P=async()=>{if(q){const c=await Ge(q);c||(D.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),pe()),l.value=c}},{delView:ne}=ia(),{push:ie,currentRoute:de}=Re(),pe=()=>{ne(e(de)),ie({name:"TradeOrder"})},ye=()=>{D.success("\u590D\u5236\u6210\u529F")},B=v([]),I=v([]),G=v({});return we(async()=>{await P(),l.value.deliveryType===h.EXPRESS.type?(B.value=await ca(),l.value.logisticsId&&(I.value=await Be(l.value.id))):l.value.deliveryType===h.PICK_UP.type&&(G.value=await pa(l.value.pickUpStoreId))}),(c,C)=>{const r=Me,T=ze,R=Ve,S=Ae,me=De,A=Ce,fe=ge,J=Ie,ve=Ne,be=He,Z=Oe,$=xe,ke=Ee,he=ee("hasPermi"),Q=ee("clipboard");return o(),p(b,null,[t(ke,null,{default:a(()=>[t(R,{title:"\u8BA2\u5355\u4FE1\u606F"},{default:a(()=>[t(r,{label:"\u8BA2\u5355\u53F7: "},{default:a(()=>[s(u(e(l).no),1)]),_:1}),t(r,{label:"\u4E70\u5BB6: "},{default:a(()=>{var _,d;return[s(u((d=(_=e(l))==null?void 0:_.user)==null?void 0:d.nickname),1)]}),_:1}),t(r,{label:"\u8BA2\u5355\u7C7B\u578B: "},{default:a(()=>[t(T,{type:e(k).TRADE_ORDER_TYPE,value:e(l).type},null,8,["type","value"])]),_:1}),t(r,{label:"\u8BA2\u5355\u6765\u6E90: "},{default:a(()=>[t(T,{type:e(k).TERMINAL,value:e(l).terminal},null,8,["type","value"])]),_:1}),t(r,{label:"\u4E70\u5BB6\u7559\u8A00: "},{default:a(()=>[s(u(e(l).userRemark),1)]),_:1}),t(r,{label:"\u5546\u5BB6\u5907\u6CE8: "},{default:a(()=>[s(u(e(l).remark),1)]),_:1}),t(r,{label:"\u652F\u4ED8\u5355\u53F7: "},{default:a(()=>[s(u(e(l).payOrderId),1)]),_:1}),t(r,{label:"\u4ED8\u6B3E\u65B9\u5F0F: "},{default:a(()=>[t(T,{type:e(k).PAY_CHANNEL_CODE,value:e(l).payChannelCode},null,8,["type","value"])]),_:1}),e(l).brokerageUser?(o(),n(r,{key:0,label:"\u63A8\u5E7F\u7528\u6237: "},{default:a(()=>{var _;return[s(u((_=e(l).brokerageUser)==null?void 0:_.nickname),1)]}),_:1})):i("",!0)]),_:1}),t(R,{column:1,title:"\u8BA2\u5355\u72B6\u6001"},{default:a(()=>[t(r,{label:"\u8BA2\u5355\u72B6\u6001: "},{default:a(()=>[t(T,{type:e(k).TRADE_ORDER_STATUS,value:e(l).status},null,8,["type","value"])]),_:1}),ae((o(),n(r,{"label-class-name":"no-colon"},{default:a(()=>[e(l).status===e(te).UNPAID.status?(o(),n(S,{key:0,type:"primary",onClick:oe},{default:a(()=>[s(" \u8C03\u6574\u4EF7\u683C ")]),_:1})):i("",!0),t(S,{type:"primary",onClick:_e},{default:a(()=>[s("\u5907\u6CE8")]),_:1}),e(l).status===e(te).UNDELIVERED.status?(o(),p(b,{key:1},[e(l).deliveryType===e(h).EXPRESS.type?(o(),n(S,{key:0,type:"primary",onClick:se},{default:a(()=>[s(" \u53D1\u8D27 ")]),_:1})):i("",!0),e(l).deliveryType===e(h).EXPRESS.type?(o(),n(S,{key:1,type:"primary",onClick:ue},{default:a(()=>[s(" \u4FEE\u6539\u5730\u5740 ")]),_:1})):i("",!0),e(l).deliveryType===e(h).PICK_UP.type&&E.showPickUp?(o(),n(S,{key:2,type:"primary",onClick:ce},{default:a(()=>[s(" \u6838\u9500 ")]),_:1})):i("",!0)],64)):i("",!0)]),_:1})),[[he,["trade:order:update"]]]),t(r,null,{label:a(()=>[N]),default:a(()=>[s(" \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"),U,s(" \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,s(" \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}),t(R,{title:"\u5546\u54C1\u4FE1\u606F"},{default:a(()=>[t(r,{labelClassName:"no-colon"},{default:a(()=>[t(ve,{gutter:20},{default:a(()=>[t(J,{span:15},{default:a(()=>[t(fe,{data:e(l).items,border:""},{default:a(()=>[t(A,{label:"\u5546\u54C1",prop:"spuName",width:"auto"},{default:a(({row:_})=>[s(u(_.spuName)+" ",1),(o(!0),p(b,null,w(_.properties,d=>(o(),n(me,{key:d.propertyId},{default:a(()=>[s(u(d.propertyName)+": "+u(d.valueName),1)]),_:2},1024))),128))]),_:1}),t(A,{label:"\u5546\u54C1\u539F\u4EF7",prop:"price",width:"150"},{default:a(({row:_})=>[s(u(e(y)(_.price))+"\u5143",1)]),_:1}),t(A,{label:"\u6570\u91CF",prop:"count",width:"100"}),t(A,{label:"\u5408\u8BA1",prop:"payPrice",width:"150"},{default:a(({row:_})=>[s(u(e(y)(_.payPrice))+"\u5143",1)]),_:1}),t(A,{label:"\u552E\u540E\u72B6\u6001",prop:"afterSaleStatus",width:"120"},{default:a(({row:_})=>[t(T,{type:e(k).TRADE_ORDER_ITEM_AFTER_SALE_STATUS,value:_.afterSaleStatus},null,8,["type","value"])]),_:1})]),_:1},8,["data"])]),_:1}),t(J,{span:10})]),_:1})]),_:1})]),_:1}),t(R,{column:4},{default:a(()=>[t(r,{label:"\u5546\u54C1\u603B\u989D: "},{default:a(()=>[s(u(e(y)(e(l).totalPrice))+" \u5143 ",1)]),_:1}),t(r,{label:"\u8FD0\u8D39\u91D1\u989D: "},{default:a(()=>[s(u(e(y)(e(l).deliveryPrice))+" \u5143 ",1)]),_:1}),t(r,{label:"\u8BA2\u5355\u8C03\u4EF7: "},{default:a(()=>[s(u(e(y)(e(l).adjustPrice))+" \u5143 ",1)]),_:1}),(o(),p(b,null,w(1,_=>t(r,{key:_,"label-class-name":"no-colon"})),64)),t(r,null,{label:a(()=>[Y]),default:a(()=>[s(" "+u(e(y)(e(l).couponPrice))+" \u5143 ",1)]),_:1}),t(r,null,{label:a(()=>[L]),default:a(()=>[s(" "+u(e(y)(e(l).vipPrice))+" \u5143 ",1)]),_:1}),t(r,null,{label:a(()=>[O]),default:a(()=>[s(" "+u(e(y)(e(l).discountPrice))+" \u5143 ",1)]),_:1}),t(r,null,{label:a(()=>[x]),default:a(()=>[s(" "+u(e(y)(e(l).pointPrice))+" \u5143 ",1)]),_:1}),(o(),p(b,null,w(3,_=>t(r,{key:_,"label-class-name":"no-colon"})),64)),t(r,{label:"\u5E94\u4ED8\u91D1\u989D: "},{default:a(()=>[s(u(e(y)(e(l).payPrice))+" \u5143 ",1)]),_:1})]),_:1}),t(R,{column:4,title:"\u6536\u8D27\u4FE1\u606F"},{default:a(()=>[t(r,{label:"\u914D\u9001\u65B9\u5F0F: "},{default:a(()=>[t(T,{type:e(k).TRADE_DELIVERY_TYPE,value:e(l).deliveryType},null,8,["type","value"])]),_:1}),t(r,{label:"\u6536\u8D27\u4EBA: "},{default:a(()=>[s(u(e(l).receiverName),1)]),_:1}),t(r,{label:"\u8054\u7CFB\u7535\u8BDD: "},{default:a(()=>[s(u(e(l).receiverMobile),1)]),_:1}),e(l).deliveryType===e(h).EXPRESS.type?(o(),p("div",X,[e(l).receiverDetailAddress?(o(),n(r,{key:0,label:"\u6536\u8D27\u5730\u5740: "},{default:a(()=>[s(u(e(l).receiverAreaName)+" "+u(e(l).receiverDetailAddress)+" ",1),ae(t(be,{icon:"ep:document-copy",type:"primary"},null,512),[[Q,e(l).receiverAreaName+" "+e(l).receiverDetailAddress,"copy"],[Q,ye,"success"]])]),_:1})):i("",!0),e(l).logisticsId?(o(),n(r,{key:1,label:"\u7269\u6D41\u516C\u53F8: "},{default:a(()=>{var _;return[s(u((_=e(B).find(d=>d.id===e(l).logisticsId))==null?void 0:_.name),1)]}),_:1})):i("",!0),e(l).logisticsId?(o(),n(r,{key:2,label:"\u8FD0\u5355\u53F7: "},{default:a(()=>[s(u(e(l).logisticsNo),1)]),_:1})):i("",!0),e(g).deliveryTime?(o(),n(r,{key:3,label:"\u53D1\u8D27\u65F6\u95F4: "},{default:a(()=>[s(u(e(g)(e(l).deliveryTime)),1)]),_:1})):i("",!0),(o(),p(b,null,w(2,_=>t(r,{key:_,"label-class-name":"no-colon"})),64)),e(I).length>0?(o(),n(r,{key:4,label:"\u7269\u6D41\u8BE6\u60C5: "},{default:a(()=>[t($,null,{default:a(()=>[(o(!0),p(b,null,w(e(I),(_,d)=>(o(),n(Z,{key:d,timestamp:e(g)(_.time)},{default:a(()=>[s(u(_.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})):i("",!0)])):i("",!0),e(l).deliveryType===e(h).PICK_UP.type?(o(),p("div",H,[e(l).pickUpStoreId?(o(),n(r,{key:0,label:"\u81EA\u63D0\u95E8\u5E97: "},{default:a(()=>{var _;return[s(u((_=e(G))==null?void 0:_.name),1)]}),_:1})):i("",!0)])):i("",!0)]),_:1}),t(R,{title:"\u8BA2\u5355\u64CD\u4F5C\u65E5\u5FD7"},{default:a(()=>[t(r,{labelClassName:"no-colon"},{default:a(()=>[t($,null,{default:a(()=>[(o(!0),p(b,null,w(e(l).logs,(_,d)=>(o(),n(Z,{key:d,timestamp:e(g)(_.createTime),placement:"top"},{dot:a(()=>[m("span",{style:Se({backgroundColor:re(_.userType)}),class:"dot-node-style"},u(e(Qe)(e(k).USER_TYPE,_.userType)[0]),5)]),default:a(()=>[m("div",K,u(_.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1}),t(la,{ref_key:"deliveryFormRef",ref:V,onSuccess:P},null,512),t(aa,{ref_key:"updateRemarkForm",ref:M,onSuccess:P},null,512),t(_a,{ref_key:"updateAddressFormRef",ref:j,onSuccess:P},null,512),t(ua,{ref_key:"updatePriceFormRef",ref:z,onSuccess:P},null,512)],64)}}}),[["__scopeId","data-v-61c53d16"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/detail/index.vue"]])});export{Aa as __tla,le as default};