OrderTableColumn-c25ff375.js 6.5 KB

1
  1. import{d as ee,r as ae,o as u,j as I,w as i,k as e,ax as _,a as t,i as l,t as r,c as h,l as R,C as te,m as A,F as le,at as G,aG as re,_ as se,aT as ie,al as pe,K as ne,L as oe,v as ce,x as de,__tla as ue}from"./index-1e808f2e.js";import{E as _e,__tla as fe}from"./el-image-263fb014.js";import{__tla as me}from"./el-image-viewer-dddb6285.js";import{_ as ye,__tla as we}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{D as m,__tla as xe}from"./dict-a31cb4ba.js";import{D as H}from"./constants-e43f22dd.js";import{f as V,__tla as ve}from"./formatTime-a348c3be.js";import{c as he,__tla as Ee}from"./index-b59955b6.js";import{_ as Te}from"./_plugin-vue_export-helper-1b428a4d.js";import"./color-6e929987.js";let X,Se=Promise.all([(()=>{try{return ue}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return Ee}catch{}})()]).then(async()=>{let E,C,D,U,L,N,g,j,P,O,Y,M,F,K,W,q,z;E=y=>(ce("data-v-802925a2"),y=y(),de(),y),C={class:"flex items-center",style:{width:"100%"}},D={class:"mr-[20px] h-[35px] flex items-center pl-[10px] pr-[10px]",style:{"background-color":"#f7f7f7"}},U={class:"mr-20px"},L={class:"mr-20px"},N=E(()=>e("span",null,"\u8BA2\u5355\u6765\u6E90\uFF1A",-1)),g=E(()=>e("span",null,"\u652F\u4ED8\u65B9\u5F0F\uFF1A",-1)),j={key:1,class:"mr-20px"},P={key:2,class:"mr-20px"},O=E(()=>e("span",null,"\u8BA2\u5355\u7C7B\u578B\uFF1A",-1)),Y={class:"flex flex-wrap"},M={class:"mb-[10px] mr-[10px] flex items-start"},F={class:"mr-[10px]"},K={class:"image-slot"},W={class:"overflow-ellipsis max-h-[45px] overflow-hidden"},q={key:0,class:"flex flex-col"},z={key:1,class:"flex flex-col"},X=Te(ee({name:"OrderTableColumn",__name:"OrderTableColumn",props:{list:{},pickUpStoreList:{}},setup(y){const $=y,B=({row:s,columnIndex:d})=>{if(d!==0)return s[d].colSpan=0,{display:"none"};s[d].colSpan=8},J=({row:s,rowIndex:d,columnIndex:o})=>{var T,S;const w=(S=(T=$.list.find(k=>{var n;return((n=k.items)==null?void 0:n.findIndex(b=>b.id===s.id))!==-1}))==null?void 0:T.items)==null?void 0:S.length;if([3,4,5,6,7].includes(o))return d!==0?{rowspan:0,colspan:0}:{rowspan:w,colspan:1}},Q=s=>{s&&s.tableId==="el-table_2"&&Z(s)},c=ae([300,150,120,120,160,120,120,160]),Z=s=>{const d=s.store.states.columns.value;d.length!==0&&d.forEach((o,w)=>{o.realWidth&&(c.value[w]=o.realWidth)})};return(s,d)=>{const o=ye,w=se,T=_e,S=ie,k=pe,n=ne,b=oe;return u(),I(n,{"class-name":"order-table-col"},{header:i(()=>[e("div",C,[e("div",{style:_({width:t(c)[0]+"px"}),class:"flex justify-center"}," \u5546\u54C1\u4FE1\u606F ",4),e("div",{style:_({width:t(c)[1]+"px"}),class:"flex justify-center"}," \u5355\u4EF7(\u5143)/\u6570\u91CF ",4),e("div",{style:_({width:t(c)[2]+"px"}),class:"flex justify-center"}," \u552E\u540E\u72B6\u6001 ",4),e("div",{style:_({width:t(c)[3]+"px"}),class:"flex justify-center"}," \u5B9E\u4ED8\u91D1\u989D(\u5143) ",4),e("div",{style:_({width:t(c)[4]+"px"}),class:"flex justify-center"}," \u4E70\u5BB6/\u6536\u8D27\u4EBA ",4),e("div",{style:_({width:t(c)[5]+"px"}),class:"flex justify-center"}," \u914D\u9001\u65B9\u5F0F ",4),e("div",{style:_({width:t(c)[6]+"px"}),class:"flex justify-center"}," \u8BA2\u5355\u72B6\u6001 ",4),e("div",{style:_({width:t(c)[7]+"px"}),class:"flex justify-center"}," \u64CD\u4F5C ",4)])]),default:i(a=>[l(b,{ref:Q,border:!0,data:a.row.items,"header-cell-style":B,"span-method":J,style:{width:"100%"}},{default:i(()=>[l(n,{"min-width":"300",prop:"spuName"},{header:i(()=>[e("div",D,[e("span",U,"\u8BA2\u5355\u53F7\uFF1A"+r(a.row.no),1),e("span",L,"\u4E0B\u5355\u65F6\u95F4\uFF1A"+r(t(V)(a.row.createTime)),1),N,l(o,{type:t(m).TERMINAL,value:a.row.terminal,class:"mr-20px"},null,8,["type","value"]),g,a.row.payChannelCode?(u(),I(o,{key:0,type:t(m).PAY_CHANNEL_CODE,value:a.row.payChannelCode,class:"mr-20px"},null,8,["type","value"])):(u(),h("span",j,"\u672A\u652F\u4ED8")),a.row.payTime?(u(),h("span",P," \u652F\u4ED8\u65F6\u95F4\uFF1A"+r(t(V)(a.row.payTime)),1)):R("",!0),O,l(o,{type:t(m).TRADE_ORDER_TYPE,value:a.row.type},null,8,["type","value"])])]),default:i(({row:p})=>[e("div",Y,[e("div",M,[e("div",F,[l(T,{src:p.picUrl,class:"!h-[45px] !w-[45px]",fit:"contain",onClick:f=>{return x=p.picUrl,void he({urlList:[x]});var x}},{error:i(()=>[e("div",K,[l(w,{icon:"ep:picture"})])]),_:2},1032,["src","onClick"])]),l(S,{content:p.spuName,placement:"top"},{default:i(()=>[e("span",W,r(p.spuName),1)]),_:2},1032,["content"])]),(u(!0),h(le,null,te(p.properties,f=>(u(),I(k,{key:f.propertyId,class:"mb-[10px] mr-[10px]"},{default:i(()=>[A(r(f.propertyName)+": "+r(f.valueName),1)]),_:2},1024))),128))])]),_:2},1024),l(n,{label:"\u5546\u54C1\u539F\u4EF7*\u6570\u91CF",prop:"price",width:"150"},{default:i(({row:p})=>[A(r(t(G)(p.price))+" \u5143 / "+r(p.count),1)]),_:1}),l(n,{label:"\u552E\u540E\u72B6\u6001",prop:"afterSaleStatus",width:"120"},{default:i(({row:p})=>[l(o,{type:t(m).TRADE_ORDER_ITEM_AFTER_SALE_STATUS,value:p.afterSaleStatus},null,8,["type","value"])]),_:1}),l(n,{align:"center",label:"\u5B9E\u9645\u652F\u4ED8","min-width":"120",prop:"payPrice"},{default:i(()=>[A(r(t(G)(a.row.payPrice)+"\u5143"),1)]),_:2},1024),l(n,{label:"\u4E70\u5BB6/\u6536\u8D27\u4EBA","min-width":"160"},{default:i(()=>{var p,f,x;return[a.row.deliveryType===t(H).EXPRESS.type?(u(),h("div",q,[e("span",null,"\u4E70\u5BB6\uFF1A"+r(a.row.user.nickname),1),e("span",null," \u6536\u8D27\u4EBA\uFF1A"+r(a.row.receiverName)+" "+r(a.row.receiverMobile)+" "+r(a.row.receiverAreaName)+" "+r(a.row.receiverDetailAddress),1)])):R("",!0),a.row.deliveryType===t(H).PICK_UP.type?(u(),h("div",z,[e("span",null," \u95E8\u5E97\u540D\u79F0\uFF1A "+r((p=s.pickUpStoreList.find(v=>v.id===a.row.pickUpStoreId))==null?void 0:p.name),1),e("span",null," \u95E8\u5E97\u624B\u673A\uFF1A "+r((f=s.pickUpStoreList.find(v=>v.id===a.row.pickUpStoreId))==null?void 0:f.phone),1),e("span",null," \u81EA\u63D0\u95E8\u5E97: "+r((x=s.pickUpStoreList.find(v=>v.id===a.row.pickUpStoreId))==null?void 0:x.detailAddress),1)])):R("",!0)]}),_:2},1024),l(n,{align:"center",label:"\u914D\u9001\u65B9\u5F0F",width:"120"},{default:i(()=>[l(o,{type:t(m).TRADE_DELIVERY_TYPE,value:a.row.deliveryType},null,8,["type","value"])]),_:2},1024),l(n,{align:"center",label:"\u8BA2\u5355\u72B6\u6001",width:"120"},{default:i(()=>[l(o,{type:t(m).TRADE_ORDER_STATUS,value:a.row.status},null,8,["type","value"])]),_:2},1024),l(n,{align:"center",fixed:"right",label:"\u64CD\u4F5C",width:"160"},{default:i(()=>[re(s.$slots,"default",{row:a.row},void 0,!0)]),_:2},1024)]),_:2},1032,["data"])]),_:3})}}}),[["__scopeId","data-v-802925a2"]])});export{Se as __tla,X as default};