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-YMGuLzFR.js";import{_ as R}from"./TABBG-KfTzbpqj.js";import{_ as S}from"./Bill-TIO_Ku7Z.js";import{r as A,t as F,u as W,v as J,w as L}from"./api-4xjskPzZ.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{t.forEach((e,i)=>{i%2==0?a.data.push([`
${e.order_sn}
`,`
${e.real_name}
`,`
${e.user.nickname}
`,`
${e.merchant.mer_name}
`,`
${e.merchant.is_trader?"自营":"非自营"}
`,`
${e.orderProduct[0].cart_info.product.store_name}
${e.orderProduct[0].product_num}${e.orderProduct[0].cart_info.product.unit_name}
`,`
${e.total_price}
`,`
${_(e.status)}
`,`
${e.user_address_code.substring(e.user_address_code.length-1)}队
`,`
${m(e.pay_type)}
`]):a.data.push([`
${e.order_sn}
`,`
${e.real_name}
`,`
${e.user.nickname}
`,`
${e.merchant.mer_name}
`,`
${e.merchant.is_trader?"自营":"非自营"}
`,`
${e.orderProduct[0].cart_info.product.store_name}
${e.orderProduct[0].product_num}${e.orderProduct[0].cart_info.product.unit_name}
`,`
${e.cost}
`,`
${_(e.status)}
`,`
${e.user_address_code.substring(e.user_address_code.length-1)}队
`,`
${m(e.pay_type)}
`])})},k=t=>{t.forEach((e,i)=>{i%2==0?c.data.push([`
${e.refund_order_sn}
`,`
${e.user.nickname}
`,`
${e.merchant.mer_name}
`,`
${e.merchant.is_trader?"自营":"非自营"}
`,`
${e.order.user_address_code.substring(e.order.user_address_code.length-1)||"--"} 队
`,`
${e.refund_price}
`,`
${e.refundProduct[0].product.cart_info.product.store_name}
${e.refundProduct[0].product.product_num} ${e.refundProduct[0].product.cart_info.product.unit_name}
`,`
${w(e.status)||""} 退款原因: ${e.refund_message} 状态变更时间 ${e.status_time}
`]):c.data.push([`
${e.refund_order_sn}
`,`
${e.user.nickname}
`,`
${e.merchant.mer_name}
`,`
${e.merchant.is_trader?"自营":"非自营"}
`,`
${e.order.user_address_code.substring(e.order.user_address_code.length-1)||"--"} 队
`,`
${e.refund_price}
`,`
${e.refundProduct[0].product.cart_info.product.store_name}
${e.refundProduct[0].product.product_num} ${e.refundProduct[0].product.cart_info.product.unit_name}
`,`
${w(e.status)||""} 退款原因: ${e.refund_message} 状态变更时间 ${e.status_time}
`])})},E=t=>{t.forEach((e,i)=>{i%2==0?p.data.push([`
${e.groupOrder.group_order_sn}
`,"
核销订单
",`
${e.user_address_code.substring(e.user_address_code.length-1)}队
`,`
${e.real_name}
`,`
${e.merchant.mer_name}
`,`
${e.merchant.is_trader?"自营":"非自营"}
`,`
${e.orderProduct[0].cart_info.product.store_name}
${e.orderProduct[0].product_num}${e.orderProduct[0].cart_info.product.unit_name}
`,`
${e.pay_price}
`,`
${e.real_name}
`,`
${e.status==-1?"已退款":"已核销"}
`]):p.data.push([`
${e.order_sn}
`,"
核销订单
",`
${e.user_address_code.substring(e.user_address_code.length-1)}队
`,`
${e.real_name}
`,`
${e.merchant.mer_name}
`,`
${e.merchant.is_trader?"自营":"非自营"}
`,`
${e.orderProduct[0].cart_info.product.store_name}
${e.orderProduct[0].product_num}${e.orderProduct[0].cart_info.product.unit_name}
`,`
${e.pay_price}
`,`
${e.real_name}
`,`
${e.status==-1?"已退款":"已核销"}
`])})},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:["
订单编号
","
用户信息
","
收货人/订购人
","
商户名称
","
商户类别
","
商品信息
","
实际支付
","
订单状态
","
订单属地
","
支付类型
"],data:[]}),c=l({columnWidth:[300,150,150,150,150,150,600,600],headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,header:["
订单编号
","
用户信息
","
商户名别
","
商户类别
","
订单属地
","
退款金额
","
商品信息
","
订单状态
"],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:["
订单编号
","
订单类别
","
订单属地
","
收货人
","
商户名称
","
商户类别
","
商品信息
","
实际支付
","
核销员
","
核销状态
"],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};