index-2d6e72ea.js 12 KB

1
  1. import{_ as Ee,__tla as Pe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{d as Te,af as W,r as v,u as Re,k as Se,P as ee,o,c as d,f as t,w as a,F as b,a as e,m as s,t as u,q as n,O as i,v as ae,n as S,as as y,g as m,at as we,B as Ae,ak as ge,D as De,G as Ce,E as Ie,i as Ne,p as Ue,j as Fe,__tla as Oe}from"./index-2eab2d23.js";import{E as Le,a as Ye,__tla as Xe}from"./el-timeline-item-eddfdd2c.js";import{E as je,__tla as Ve}from"./el-link-f0d278a2.js";import{E as xe,a as Ke,__tla as Me}from"./el-descriptions-item-fd42286f.js";import{_ as He,__tla as qe}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{e as Be,g as Ge,p as Je,__tla as Qe}from"./index-3562b2a3.js";import{f as C,__tla as Ze}from"./formatTime-41155543.js";import{D as k,b as $e,c as ze,__tla as We}from"./dict-1ad71b6f.js";import ea,{__tla as aa}from"./OrderUpdateRemarkForm-ce9d1287.js";import ta,{__tla as la}from"./OrderDeliveryForm-3dab7ade.js";import{_ as ra,__tla as _a}from"./OrderUpdateAddressForm.vue_vue_type_script_setup_true_lang-0c27f3cd.js";import{_ as sa,__tla as ua}from"./OrderUpdatePriceForm.vue_vue_type_script_setup_true_lang-f868abb0.js";import{g as oa,__tla as ca}from"./index-e7451cd0.js";import{u as na,__tla as ia}from"./tagsView-fd4f3d23.js";import{D as h,T as te}from"./constants-40f13f5e.js";import{g as pa,__tla as da}from"./index-c2301e22.js";import{u as ya,__tla as ma}from"./useMessage-171aa63e.js";import{_ as fa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as va}from"./el-card-c558f0ec.js";import"./color-6e929987.js";import{__tla as ba}from"./Dialog-c2716df6.js";import{__tla as ka}from"./OrderBaseInfo-68af99b9.js";import{__tla as ha}from"./SPuUploadImg-4b5016f1.js";import{__tla as Ea}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as Pa}from"./index-d3f876ab.js";import{__tla as Ta}from"./el-image-viewer-5d14bc77.js";import{__tla as Ra}from"./OrderProduct-c85eb4ea.js";import{__tla as Sa}from"./el-tree-select-4ae7c290.js";import{__tla as wa}from"./index-44a34f60.js";import"./tree-fd3a041e.js";let le,Aa=Promise.all([(()=>{try{return Pe}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return We}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 ka}catch{}})(),(()=>{try{return ha}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,L,Y,X,j,V,x;f=E=>(Ue("data-v-ba2aea5d"),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)),L=f(()=>m("span",{style:{color:"red"}},"VIP \u4F18\u60E0: ",-1)),Y=f(()=>m("span",{style:{color:"red"}},"\u6D3B\u52A8\u4F18\u60E0: ",-1)),X=f(()=>m("span",{style:{color:"red"}},"\u79EF\u5206\u62B5\u6263: ",-1)),j={key:0},V={key:1},x={class:"el-timeline-right-content"},le=fa(Te({name:"TradeOrderDetail",__name:"index",props:{id:W.number.def(void 0),showPickUp:W.bool.def(!0)},setup(E){const g=ya(),re=c=>{const D=ze(k.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:[]}),K=v(),_e=()=>{var c;(c=K.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 g.confirm("\u786E\u8BA4\u6838\u9500\u8BA2\u5355\u5417\uFF1F"),await Je(l.value.id),g.success("\u6838\u9500\u6210\u529F"),await P()}catch{}},B=E.id,P=async()=>{if(B){const c=await Ge(B);c||(g.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=()=>{g.success("\u590D\u5236\u6210\u529F")},G=v([]),I=v([]),J=v({});return Se(async()=>{await P(),l.value.deliveryType===h.EXPRESS.type?(G.value=await oa(),l.value.logisticsId&&(I.value=await Be(l.value.id))):l.value.deliveryType===h.PICK_UP.type&&(J.value=await pa(l.value.pickUpStoreId))}),(c,D)=>{const r=xe,T=He,R=Ke,w=Ae,me=ge,A=De,fe=Ce,Q=Ie,ve=Ne,be=je,Z=Le,$=Ye,ke=Ee,he=ee("hasPermi"),z=ee("clipboard");return o(),d(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 _,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(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(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(h).EXPRESS.type?(o(),n(w,{key:0,type:"primary",onClick:se},{default:a(()=>[s(" \u53D1\u8D27 ")]),_:1})):i("",!0),e(l).deliveryType===e(h).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(h).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})),[[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(Q,{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(k).TRADE_ORDER_ITEM_AFTER_SALE_STATUS,value:_.afterSaleStatus},null,8,["type","value"])]),_:1})]),_:1},8,["data"])]),_:1}),t(Q,{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(()=>[L]),default:a(()=>[s(" "+u(e(y)(e(l).vipPrice))+" \u5143 ",1)]),_:1}),t(r,null,{label:a(()=>[Y]),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(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(),d("div",j,[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(G).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(C).deliveryTime?(o(),n(r,{key:3,label:"\u53D1\u8D27\u65F6\u95F4: "},{default:a(()=>[s(u(e(C)(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($,null,{default:a(()=>[(o(!0),d(b,null,S(e(I),(_,p)=>(o(),n(Z,{key:p,timestamp:e(C)(_.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(),d("div",V,[e(l).pickUpStoreId?(o(),n(r,{key:0,label:"\u81EA\u63D0\u95E8\u5E97: "},{default:a(()=>{var _;return[s(u((_=e(J))==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),d(b,null,S(e(l).logs,(_,p)=>(o(),n(Z,{key:p,timestamp:e(C)(_.createTime),placement:"top"},{dot:a(()=>[m("span",{style:we({backgroundColor:re(_.userType)}),class:"dot-node-style"},u(e($e)(e(k).USER_TYPE,_.userType)[0]),5)]),default:a(()=>[m("div",x,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:K,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-ba2aea5d"]])});export{Aa as __tla,le as default};