OrderTableColumn-11aba1be.js 6.5 KB

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