400 lines
36 KiB
JavaScript
400 lines
36 KiB
JavaScript
import{_ as B,a as j,r as l,o as C,j as D,b as o,f as x,d as r,q as f,s as P,v as z,F as G,g as I,c as u,h as b,y as N,z as O}from"./index-WCpniRK8.js";import{_ as R}from"./TABBG-WY6uizpD.js";import{_ as S}from"./Bill-nxM5oQvl.js";import{r as A,t as F,u as W,v as J,w as L}from"./api-35LGPZsU.js";import"./axios-QLjAsgXu.js";const M=g=>(N("data-v-2bf103ff"),g=g(),O(),g),V={class:"box"},q={class:"img-cls"},H=M(()=>r("img",{src:R,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),T={class:"content"},X={class:"btns"},Y={style:{color:"white",display:"flex"}},Z={key:0,class:"table"},K={__name:"order",setup(g){const s=j(),v=l([{icon:"DD",text:"已支付订单数",num:1245},{icon:"JE",text:"实际支付金额",num:1245},{icon:"JE",text:"已退款金额",num:1245}]);l([{icon:"WX",text:"微信支付金额",num:1245},{icon:"YE",text:"余额支付金额",num:1245},{icon:"ZFB",text:"支付宝支付金额",num:1245}]);const w=t=>{if(t==0)return"待审核";if(t==1)return"待退货";if(t==2)return"待收货";if(t==3)return"已退款";if(t==-1)return"审核未通过"},_=t=>{if(t==0)return"待发货";if(t==1)return"待收货";if(t==2)return"待评价";if(t==3)return"已完成";if(t==9)return"拼团中";if(t==10)return"待付尾款";if(t==11)return"尾款超时未付";if(t==-1)return"已退款"},m=t=>{if(t==0)return"余额支付";if(t==1)return"微信支付";if(t==2)return"小程序支付";if(t==3)return"h5支付";if(t==4)return"支付宝支付";if(t==5)return"支付宝扫码支付";if(t==6)return"微信扫码支付";if(t==8)return"信用购-先货后款"},n=l([!0,!1,!1]),h=t=>{n.forEach((e,i)=>{n[i]=!1}),n[t]=!0,t==0&&(a.data.splice(0,a.data.length),A({...s.area,limit:50}).then(e=>{$(e.data.list)}),F({...s.area,limit:50}).then(e=>{e.data.forEach((i,d)=>{v[d].num=i.count})})),t==1&&(c.data.splice(0,a.data.length),W({...s.area,limit:50}).then(e=>{k(e.data.list)})),t==2&&(p.data.splice(0,a.data.length),J({...s.area,limit:50}).then(e=>{E(e.data.list)}),L({...s.area,limit:50}).then(e=>{e.data.forEach((i,d)=>{v[d].num=i.count})}))},y=t=>{if(t.ceil)if(t.columnIndex==0){let e=document.getElementById(`order${t.rowIndex}`),i=document.getElementById(`card${t.rowIndex}`);e.style.display="none",i.style.display="block"}else{let e=document.getElementsByClassName("order"),i=document.getElementsByClassName("card");for(let d=0;d<e.length;d++)e[d].style.display="block",i[d].style.display="none"}},$=t=>{t.forEach((e,i)=>{i%2==0?a.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;cursor: pointer;'>
|
|
<div class='order' id='order${i}' style='position:relative'>
|
|
<div style=' width: 0;
|
|
height: 0;
|
|
border-left: 0.5vh solid transparent;
|
|
border-right: 0.5vh solid transparent;
|
|
border-top: 0.5vh solid #C25941;
|
|
position: absolute;
|
|
top:50%;
|
|
left:0
|
|
'>
|
|
</div> ${e.order_sn}</div>
|
|
|
|
<div class='card' id='card${i}'
|
|
style="width: 15vw;color: white;display:none; font-size: 10px;background: linear-gradient(to bottom,#001E31, #0097C2);padding:0 1vh;border-radius:1vh;position: absolute; z-index: 9999999;">
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between; border-bottom: 1px solid #006083;padding-bottom: 5px;">
|
|
<span>总单号:</span>
|
|
<span>${e.groupOrder.group_order_sn}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>下单时间</span>
|
|
<span>${e.pay_time}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商品总价</span>
|
|
<span>${e.total_price}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>订单类型</span>
|
|
<span>${e.order_type?"自提":"普通"}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>用户备注</span>
|
|
<span>${e.remark||"--"}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商家备注</span>
|
|
<span>${e.admin_mark||"--"}</span>
|
|
</div>
|
|
</div>
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;' >${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.user.nickname}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.merchant.mer_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.merchant.is_trader?"自营":"非自营"} </div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;display:flex;box-sizing: border-box;align-items:center;justify-content: space-between;padding:0 5px'>
|
|
|
|
<div style='display:flex'>
|
|
<img src='${e.orderProduct[0].cart_info.product.image}' style='width:30px;height:30px' />
|
|
<span style='margin-left:10px'>${e.orderProduct[0].cart_info.product.store_name} </span>
|
|
</div>
|
|
|
|
<span>${e.orderProduct[0].product_num}${e.orderProduct[0].cart_info.product.unit_name} </span>
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.total_price}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${_(e.status)}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.user_address_code.substring(e.user_address_code.length-1)}队</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${m(e.pay_type)}</div>`]):a.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;cursor: pointer;'>
|
|
<div class='order' id='order${i}' style='position:relative'>
|
|
<div style=' width: 0;
|
|
height: 0;
|
|
border-left: 0.5vh solid transparent;
|
|
border-right: 0.5vh solid transparent;
|
|
border-top: 0.5vh solid #C25941;
|
|
position: absolute;
|
|
top:50%;
|
|
left:0
|
|
'>
|
|
</div> ${e.order_sn}</div>
|
|
|
|
<div class='card' id='card${i}'
|
|
style="width: 15vw;color: white;display:none; font-size: 10px;background: linear-gradient(to bottom,#001E31, #0097C2);padding: 1vh;border-radius:1vh;position: absolute; z-index: 9999999;">
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between; border-bottom: 1px solid #006083;padding-bottom: 5px;">
|
|
<span>总单号:</span>
|
|
<span>${e.groupOrder.group_order_sn}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>下单时间</span>
|
|
<span>${e.pay_time}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商品总价</span>
|
|
<span>${e.total_price}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>订单类型</span>
|
|
<span>${e.order_type?"自提":"普通"}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>用户备注</span>
|
|
<span>${e.remark||"--"}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商家备注</span>
|
|
<span>${e.admin_mark||"--"}</span>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.user.nickname}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.merchant.mer_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.merchant.is_trader?"自营":"非自营"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;display:flex;box-sizing: border-box;align-items:center;justify-content: space-between;padding:0 5px'>
|
|
|
|
|
|
|
|
|
|
<div style='display:flex'>
|
|
<img src='${e.orderProduct[0].cart_info.product.image}' style='width:30px;height:30px' />
|
|
<span style='margin-left:10px'>${e.orderProduct[0].cart_info.product.store_name} </span>
|
|
</div>
|
|
|
|
<span>${e.orderProduct[0].product_num}${e.orderProduct[0].cart_info.product.unit_name} </span>
|
|
|
|
|
|
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.cost}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${_(e.status)}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.user_address_code.substring(e.user_address_code.length-1)}队</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${m(e.pay_type)}</div>`])})},k=t=>{t.forEach((e,i)=>{i%2==0?c.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;cursor: pointer;'>
|
|
<div class='order' id='order${i}' style='position:relative'>
|
|
<div style=' width: 0;
|
|
height: 0;
|
|
border-left: 0.5vh solid transparent;
|
|
border-right: 0.5vh solid transparent;
|
|
border-top: 0.5vh solid #C25941;
|
|
position: absolute;
|
|
top:50%;
|
|
left:0
|
|
'>
|
|
</div> ${e.refund_order_sn}</div>
|
|
|
|
<div class='card' id='card${i}'
|
|
style="width: 15vw;color: white;display:none; font-size: 10px;background: linear-gradient(to bottom,#001E31, #0097C2);padding:0 1vh;border-radius:1vh;position: absolute; z-index: 9999999;">
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between; border-bottom: 1px solid #006083;padding-bottom: 5px;">
|
|
<span>总单号:</span>
|
|
<span>${e.order.order_sn}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>申请退款时间</span>
|
|
<span>${e.create_time}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>退款商品总价</span>
|
|
<span>${e.refundProduct[0].refund_price}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>退款商品总数</span>
|
|
<span>${e.refundProduct[0].refund_num}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>用户备注</span>
|
|
<span>${e.admin_mark||"--"}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商家备注</span>
|
|
<span>${e.mer_mark||"--"}</span>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;' >${e.user.nickname}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.merchant.mer_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.merchant.is_trader?"自营":"非自营"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.order.user_address_code.substring(e.order.user_address_code.length-1)||"--"} 队</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.refund_price}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;display:flex;box-sizing: border-box;align-items:center;justify-content: space-between;padding:0 5px' '>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style='display:flex'>
|
|
<img src=${e.refundProduct[0].product.cart_info.product.image} style='width:30px;height:30px'>
|
|
<span style='margin-left:10px'> ${e.refundProduct[0].product.cart_info.product.store_name} </span>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<span>
|
|
${e.refundProduct[0].product.product_num} ${e.refundProduct[0].product.cart_info.product.unit_name}
|
|
</span>
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>
|
|
|
|
<sapn> ${w(e.status)||""} </span>
|
|
<sapn>退款原因: ${e.refund_message} </span>
|
|
<sapn>状态变更时间 ${e.status_time} </span>
|
|
|
|
|
|
|
|
</div>`]):c.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;cursor: pointer;'>
|
|
<div class='order' id='order${i}' style='position:relative'>
|
|
<div style=' width: 0;
|
|
height: 0;
|
|
border-left: 0.5vh solid transparent;
|
|
border-right: 0.5vh solid transparent;
|
|
border-top: 0.5vh solid #C25941;
|
|
position: absolute;
|
|
top:50%;
|
|
left:0
|
|
'>
|
|
</div> ${e.refund_order_sn}</div>
|
|
|
|
<div class='card' id='card${i}'
|
|
style="width: 15vw;color: white;display:none; font-size: 10px;background: linear-gradient(to bottom,#001E31, #0097C2);padding:0 1vh;border-radius:1vh;position: absolute; z-index: 9999999;">
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between; border-bottom: 1px solid #006083;padding-bottom: 5px;">
|
|
<span>总单号:</span>
|
|
<span>${e.order.order_sn}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>申请退款时间</span>
|
|
<span>${e.create_time}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>退款商品总价</span>
|
|
<span>${e.refundProduct[0].refund_price}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>退款商品总数</span>
|
|
<span>${e.refundProduct[0].refund_num}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>用户备注</span>
|
|
<span>${e.admin_mark||"--"}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商家备注</span>
|
|
<span>${e.mer_mark||"--"}</span>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.user.nickname}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.merchant.mer_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.merchant.is_trader?"自营":"非自营"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.order.user_address_code.substring(e.order.user_address_code.length-1)||"--"} 队</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.refund_price}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;display:flex;box-sizing: border-box;align-items:center;justify-content: space-between;padding:0 5px' '>
|
|
<div style='display:flex'>
|
|
<img src=${e.refundProduct[0].product.cart_info.product.image} style='width:30px;height:30px'>
|
|
<span style='margin-left:10px'> ${e.refundProduct[0].product.cart_info.product.store_name} </span>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<span>
|
|
${e.refundProduct[0].product.product_num} ${e.refundProduct[0].product.cart_info.product.unit_name}
|
|
</span>
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>
|
|
<sapn>
|
|
|
|
|
|
${w(e.status)||""} </span>
|
|
<sapn>退款原因: ${e.refund_message} </span>
|
|
<sapn>状态变更时间 ${e.status_time} </span>
|
|
|
|
|
|
</div>`])})},E=t=>{t.forEach((e,i)=>{i%2==0?p.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;cursor: pointer;'>
|
|
<div class='order' id='order${i}' style='position:relative'>
|
|
<div style=' width: 0;
|
|
height: 0;
|
|
border-left: 0.5vh solid transparent;
|
|
border-right: 0.5vh solid transparent;
|
|
border-top: 0.5vh solid #C25941;
|
|
position: absolute;
|
|
top:50%;
|
|
left:0
|
|
'>
|
|
</div> ${e.groupOrder.group_order_sn}</div>
|
|
|
|
<div class='card' id='card${i}'
|
|
style="width: 15vw;color: white;display:none; font-size: 10px;background: linear-gradient(to bottom,#001E31, #0097C2);padding:0 1vh;border-radius:1vh;position: absolute; z-index: 9999999;">
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between; border-bottom: 1px solid #006083;padding-bottom: 5px;">
|
|
<span>总单号:</span>
|
|
<span>${e.groupOrder.group_order_sn}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>核销时间</span>
|
|
<span>${e.pay_time}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商品总价</span>
|
|
<span>${e.total_price}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>用户备注</span>
|
|
<span>${e.remark||"--"}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商家备注</span>
|
|
<span>${e.mark||"--"}</span>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>`,"<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;' >核销订单</div>",`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'> ${e.user_address_code.substring(e.user_address_code.length-1)}队</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.merchant.mer_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.merchant.is_trader?"自营":"非自营"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;display:flex;box-sizing: border-box;align-items:center;justify-content: space-between;padding:0 5px'>
|
|
|
|
<div style='display:flex'>
|
|
|
|
|
|
<img src='${e.orderProduct[0].cart_info.product.image}' style='width:30px;height:30px' />
|
|
<span style='margin-left:10px'>${e.orderProduct[0].cart_info.product.store_name} </span>
|
|
</div>
|
|
|
|
<span>${e.orderProduct[0].product_num}${e.orderProduct[0].cart_info.product.unit_name} </span>
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>
|
|
${e.pay_price}
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.status==-1?"已退款":"已核销"}</div>`]):p.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;cursor: pointer;'>
|
|
<div class='order' id='order${i}' style='position:relative'>
|
|
<div style=' width: 0;
|
|
height: 0;
|
|
border-left: 0.5vh solid transparent;
|
|
border-right: 0.5vh solid transparent;
|
|
border-top: 0.5vh solid #C25941;
|
|
position: absolute;
|
|
top:50%;
|
|
left:0
|
|
'>
|
|
</div> ${e.order_sn}</div>
|
|
<div class='card' id='card${i}'
|
|
style="width: 15vw;color: white;display:none; font-size: 10px;background: linear-gradient(to bottom,#001E31, #0097C2);padding:0 1vh;border-radius:1vh;position: absolute; z-index: 9999999;">
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between; border-bottom: 1px solid #006083;padding-bottom: 5px;">
|
|
<span>总单号:</span>
|
|
<span>${e.groupOrder.group_order_sn}</span>
|
|
</div>
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>核销时间</span>
|
|
<span>${e.pay_time}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商品总价</span>
|
|
<span>${e.total_price}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>用户备注</span>
|
|
<span>${e.remark||"--"}</span>
|
|
</div>
|
|
|
|
<div
|
|
style="display: flex;justify-content: space-between;border-bottom: 1px solid #006083; margin-top: 1vh;padding-bottom: 5px;">
|
|
<span>商家备注</span>
|
|
<span>${e.mark||"--"}</span>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>`,"<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>核销订单</div>",`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.user_address_code.substring(e.user_address_code.length-1)}队</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.merchant.mer_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.merchant.is_trader?"自营":"非自营"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;display:flex;box-sizing: border-box;align-items:center;justify-content: space-between;padding:0 5px'>
|
|
<div style='display:flex'>
|
|
|
|
|
|
<img src='${e.orderProduct[0].cart_info.product.image}' style='width:30px;height:30px' />
|
|
<span style='margin-left:10px'>${e.orderProduct[0].cart_info.product.store_name} </span>
|
|
</div>
|
|
|
|
<span>${e.orderProduct[0].product_num}${e.orderProduct[0].cart_info.product.unit_name} </span>
|
|
|
|
|
|
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'> <sapn> ${e.pay_price} </span>
|
|
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.status==-1?"已退款":"已核销"}</div>`])})},a=l({headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,columnWidth:[250,170,170,170,170,500,100,100,330,100],header:["<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单编号</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>用户信息</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>收货人/订购人</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商户名称</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商户类别</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商品信息</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>实际支付</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单状态</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单属地</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>支付类型</div>"],data:[]}),c=l({columnWidth:[300,150,150,150,150,150,600,600],headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,header:["<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单编号</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>用户信息</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商户名别</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商户类别</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单属地</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>退款金额</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商品信息</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单状态</div>"],data:[]}),p=l({headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",columnWidth:[300,150,150,150,150,150,600,150,150,150],rowNum:20,header:["<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单编号</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单类别</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>订单属地</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>收货人</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商户名称</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商户类别</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>商品信息</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>实际支付</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>核销员</div>","<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>核销状态</div>"],data:[]});return C(()=>{h(0)}),(t,e)=>{const i=D("dv-scroll-board");return o(),x("div",V,[r("div",q,[H,r("div",T,[r("div",X,[r("div",{class:f(["btn",n[0]?"act-btn":""]),onClick:e[0]||(e[0]=d=>h(0))},"订单列表",2),r("div",{class:f(["btn",n[1]?"act-btn":""]),onClick:e[1]||(e[1]=d=>h(1))},"退款单",2),r("div",{class:f(["btn",n[2]?"act-btn":""]),onClick:e[2]||(e[2]=d=>h(2))},"核销订单",2)]),P(r("div",null,[r("div",Y,[(o(!0),x(G,null,I(v,(d,Q)=>(o(),u(S,{key:t.index,data:d},null,8,["data"]))),128))])],512),[[z,n[0]||n[2]]]),a.data.length?(o(),x("div",Z,[n[0]?(o(),u(i,{key:0,config:a,onClick:y,style:{width:"95vw",height:"70vh"}},null,8,["config"])):b("",!0),n[1]&&c.data.length?(o(),u(i,{key:1,config:c,onClick:y,style:{width:"95vw",height:"77vh"}},null,8,["config"])):b("",!0),n[2]&&p.data.length?(o(),u(i,{key:2,config:p,onClick:y,style:{width:"95vw",height:"89vh"}},null,8,["config"])):b("",!0)])):b("",!0)])])])}}},ne=B(K,[["__scopeId","data-v-2bf103ff"]]);export{ne as default};
|