1 |
- import{_ as Ee,__tla as Pe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{d as Te,ah as $,r as v,u as Re,z as Se,S as ee,o,c as d,i as t,w as a,F as b,a as e,m as s,t as u,j as n,l as i,D as ae,C as S,a_ as y,k as m,ax as we,q as Ae,al as Ce,K as De,L as ge,E as Ie,s as Ne,v as Ue,x as Fe,__tla as Oe}from"./index-1e808f2e.js";import{E as Ye,a as Le,__tla as xe}from"./el-timeline-item-cb959fb7.js";import{E as Ke,__tla as je}from"./el-link-1faa17b5.js";import{E as Ve,a as Xe,__tla as Me}from"./el-descriptions-item-8d4be2e8.js";import{_ as He,__tla as qe}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{m as ze,g as Be,p as Ge,__tla as Je}from"./index-b776b94b.js";import{f as g,__tla as Qe}from"./formatTime-a348c3be.js";import{D as h,e as We,b as Ze,__tla as $e}from"./dict-a31cb4ba.js";import ea,{__tla as aa}from"./OrderUpdateRemarkForm-25c20826.js";import ta,{__tla as la}from"./OrderDeliveryForm-c7f6abf5.js";import{_ as ra,__tla as _a}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-58dc19dd.js";import{_ as sa,__tla as ua}from"./OrderUpdatePriceForm.vue_vue_type_script_setup_true_lang-3fd23e50.js";import{g as oa,__tla as ca}from"./index-57a3dfbf.js";import{u as na,__tla as ia}from"./tagsView-1954bd1b.js";import{D as k,T as te}from"./constants-e43f22dd.js";import{a as pa,__tla as da}from"./index-cbf8a6e1.js";import{u as ya,__tla as ma}from"./useMessage-5f9e8917.js";import{_ as fa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as va}from"./el-card-03b3588b.js";import"./color-6e929987.js";import{__tla as ba}from"./Dialog-f44f9d78.js";import{__tla as ha}from"./OrderBaseInfo-2d922922.js";import{__tla as ka}from"./SPuUploadImg-f0bd750f.js";import{__tla as Ea}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3df4382.js";import{__tla as Pa}from"./index-b59955b6.js";import{__tla as Ta}from"./el-image-viewer-dddb6285.js";import{__tla as Ra}from"./OrderProduct-23a794a7.js";import{__tla as Sa}from"./el-tree-select-e8e05888.js";import{__tla as wa}from"./index-f40ed4f7.js";import"./tree-fd3a041e.js";let le,Aa=Promise.all([(()=>{try{return Pe}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return wa}catch{}})()]).then(async()=>{let f,N,U,F,O,Y,L,x,K,j,V;f=E=>(Ue("data-v-4c0ef287"),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)),O=f(()=>m("span",{style:{color:"red"}},"\u4F18\u60E0\u52B5\u4F18\u60E0: ",-1)),Y=f(()=>m("span",{style:{color:"red"}},"VIP \u4F18\u60E0: ",-1)),L=f(()=>m("span",{style:{color:"red"}},"\u6D3B\u52A8\u4F18\u60E0: ",-1)),x=f(()=>m("span",{style:{color:"red"}},"\u4F63\u91D1\u62B5\u6263: ",-1)),K={key:0},j={key:1},V={class:"el-timeline-right-content"},le=fa(Te({name:"TradeOrderDetail",__name:"index",props:{id:$.number.def(void 0),showPickUp:$.bool.def(!0)},setup(E){const C=ya(),re=c=>{const D=Ze(h.USER_TYPE,c);switch(D==null?void 0:D.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"},l=v({logs:[]}),X=v(),_e=()=>{var c;(c=X.value)==null||c.open(l.value)},M=v(),se=()=>{var c;(c=M.value)==null||c.open(l.value)},H=v(),ue=()=>{var c;(c=H.value)==null||c.open(l.value)},q=v(),oe=()=>{var c;(c=q.value)==null||c.open(l.value)},ce=async()=>{try{await C.confirm("\u786E\u8BA4\u6838\u9500\u8BA2\u5355\u5417\uFF1F"),await Ge(l.value.id),C.success("\u6838\u9500\u6210\u529F"),await P()}catch{}},z=E.id,P=async()=>{if(z){const c=await Be(z);c||(C.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),de()),l.value=c}},{delView:ne}=na(),{push:ie,currentRoute:pe}=Re(),de=()=>{ne(e(pe)),ie({name:"TradeOrder"})},ye=()=>{C.success("\u590D\u5236\u6210\u529F")},B=v([]),I=v([]),G=v({});return Se(async()=>{await P(),l.value.deliveryType===k.EXPRESS.type?(B.value=await oa(),l.value.logisticsId&&(I.value=await ze(l.value.id))):l.value.deliveryType===k.PICK_UP.type&&(G.value=await pa(l.value.pickUpStoreId))}),(c,D)=>{const r=Ve,T=He,R=Xe,w=Ae,me=Ce,A=De,fe=ge,J=Ie,ve=Ne,be=Ke,Q=Ye,W=Le,he=Ee,ke=ee("hasPermi"),Z=ee("clipboard");return o(),d(b,null,[t(he,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 _,p;return[s(u((p=(_=e(l))==null?void 0:_.user)==null?void 0:p.nickname),1)]}),_:1}),t(r,{label:"\u8BA2\u5355\u7C7B\u578B: "},{default:a(()=>[t(T,{type:e(h).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(h).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(h).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(h).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(w,{key:0,type:"primary",onClick:oe},{default:a(()=>[s(" \u8C03\u6574\u4EF7\u683C ")]),_:1})):i("",!0),t(w,{type:"primary",onClick:_e},{default:a(()=>[s("\u5907\u6CE8")]),_:1}),e(l).status===e(te).UNDELIVERED.status?(o(),d(b,{key:1},[e(l).deliveryType===e(k).EXPRESS.type?(o(),n(w,{key:0,type:"primary",onClick:se},{default:a(()=>[s(" \u53D1\u8D27 ")]),_:1})):i("",!0),e(l).deliveryType===e(k).EXPRESS.type?(o(),n(w,{key:1,type:"primary",onClick:ue},{default:a(()=>[s(" \u4FEE\u6539\u5730\u5740 ")]),_:1})):i("",!0),e(l).deliveryType===e(k).PICK_UP.type&&E.showPickUp?(o(),n(w,{key:2,type:"primary",onClick:ce},{default:a(()=>[s(" \u6838\u9500 ")]),_:1})):i("",!0)],64)):i("",!0)]),_:1})),[[ke,["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),d(b,null,S(_.properties,p=>(o(),n(me,{key:p.propertyId},{default:a(()=>[s(u(p.propertyName)+": "+u(p.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(h).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(),d(b,null,S(1,_=>t(r,{key:_,"label-class-name":"no-colon"})),64)),t(r,null,{label:a(()=>[O]),default:a(()=>[s(" "+u(e(y)(e(l).couponPrice))+" \u5143 ",1)]),_:1}),t(r,null,{label:a(()=>[Y]),default:a(()=>[s(" "+u(e(y)(e(l).vipPrice))+" \u5143 ",1)]),_:1}),t(r,null,{label:a(()=>[L]),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(),d(b,null,S(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(h).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(k).EXPRESS.type?(o(),d("div",K,[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),[[Z,e(l).receiverAreaName+" "+e(l).receiverDetailAddress,"copy"],[Z,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(p=>p.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(),d(b,null,S(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(W,null,{default:a(()=>[(o(!0),d(b,null,S(e(I),(_,p)=>(o(),n(Q,{key:p,timestamp:e(g)(_.time)},{default:a(()=>[s(u(_.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})):i("",!0)])):i("",!0),e(l).deliveryType===e(k).PICK_UP.type?(o(),d("div",j,[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(W,null,{default:a(()=>[(o(!0),d(b,null,S(e(l).logs,(_,p)=>(o(),n(Q,{key:p,timestamp:e(g)(_.createTime),placement:"top"},{dot:a(()=>[m("span",{style:we({backgroundColor:re(_.userType)}),class:"dot-node-style"},u(e(We)(e(h).USER_TYPE,_.userType)[0]),5)]),default:a(()=>[m("div",V,u(_.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1}),t(ta,{ref_key:"deliveryFormRef",ref:M,onSuccess:P},null,512),t(ea,{ref_key:"updateRemarkForm",ref:X,onSuccess:P},null,512),t(ra,{ref_key:"updateAddressFormRef",ref:H,onSuccess:P},null,512),t(sa,{ref_key:"updatePriceFormRef",ref:q,onSuccess:P},null,512)],64)}}}),[["__scopeId","data-v-4c0ef287"]])});export{Aa as __tla,le as default};
|