import{_ as a,u as t,a as e,r as l,b as s,cK as n,E as d,bQ as r,d as i,e as o,f as p,w as c,g,h as f,am as h,F as u,l as m,n as b,an as x,j as y,k as v,q as _,t as w,v as k}from"./index.286e9b79.js";import{v as j}from"./loading.c49775a6.js";import{g as C}from"./http.f588794f.js";import{_ as z}from"./page-header.29890ed0.js";import{f as O}from"./days.686d9566.js";import"./divider.948c4b18.js";const q=a=>(w("data-v-55843298"),a=a(),k(),a),B={class:"card"},I={class:"editor-card",style:{padding:"20px","min-height":"250px"}},T={key:0,id:"print-wrap"},E=q((()=>f("div",{class:"title"},"购物清单",-1))),F={class:"info"},G={class:"table",width:"100%",cellspacing:"0",cellpadding:"0",border:"1"},H=q((()=>f("colgroup",null,[f("col",{width:"370px"}),f("col",{width:"120px"}),f("col",{width:"120px"}),f("col",{width:"100px"}),f("col",{width:"60px"}),f("col",{width:"90px"})],-1))),K={class:"f17"},L={colspan:"2",style:{"text-align":"left","border-right":"none"}},M={style:{"font-size":"14px","padding-left":"10px"}},P={colspan:"4",style:{"text-align":"right","border-left":"none"}},Q={style:{"font-size":"14px","padding-right":"10px"}},A=q((()=>f("tr",{class:"f14"},[f("th",null,"商品名称"),f("th",null,"商品货号"),f("th",null,"销售价格"),f("th",null,"重量（G）"),f("th",null,"数量"),f("th",null,"小计")],-1))),D={align:"left"},J={style:{padding:"0 10px"}},N={key:0,class:"gray"},R={style:{"text-align":"center"}},S={style:{"text-align":"center"}},U={style:{"text-align":"center"}},V={style:{"text-align":"center"}},W={style:{"text-align":"center"}},X={width:"100%",cellspacing:"0",cellpadding:"0",border:"0"},Y={align:"right"},Z={style:{float:"left"}},$={style:{float:"right"}},aa={align:"right"},ta={style:{float:"left"}},ea={style:{float:"right"}},la={align:"right"},sa={style:{float:"left"}},na={class:"tool"},da={class:"tool-box"},ra=a({__name:"cart",setup(a){const w=t(),k=e(),q=l(!1),ra=k.query.id;let ia=s({data:{}});q.value=!0,C("order.printing/cart",{id:ra}).then((a=>{q.value=!1,a.code&&!n(a.data)?ia.data=a.data:(d.error(a.msg),w.replace("/404"))}));const oa=l({id:"print-wrap",popTitle:"清单打印",extraHead:"",preview:!1,previewTitle:"预览打印",previewPrintBtnLabel:"预览结束，开始打印",zIndex:200002,previewBeforeOpenCallback(){},previewOpenCallback(){},beforeOpenCallback(){},openCallback(){},closeCallback(){},clickMounted(){}});return(a,t)=>{const e=_,l=j,s=r("print");return i(),o("div",B,[p(z,{title:"打印清单"}),c((i(),o("div",I,[g(n)(g(ia).data)?x("",!0):(i(),o("div",T,[E,f("div",F,[f("span",null,"客户:"+h(g(ia).data.accept_name||""),1),f("span",null,"地址: "+h(g(ia).data.address||""),1),f("span",null,"电话: "+h(g(ia).data.mobile||""),1)]),f("table",G,[H,f("tr",K,[f("th",L,[f("b",M,"订单号："+h(g(ia).data.order_no||""),1)]),f("th",P,[f("b",Q,"订购日期："+h(g(O)(g(ia).data.create_time)||""),1)])]),A,(i(!0),o(u,null,m(g(ia).data.goods,((a,t)=>(i(),o("tr",{key:t},[f("td",D,[f("label",J,[b(h(a.goods_name||"")+"   ",1),g(n)(a.spec)?x("",!0):(i(),o("span",N,h(a.spec.name||""),1))])]),f("td",R,h(a.goods_number||""),1),f("td",S,"￥"+h(a.real_price||""),1),f("td",U,h(a.goods_weight||""),1),f("td",V,h(a.goods_total_nums||""),1),f("td",W,"￥"+h(a.total_price),1)])))),128))]),f("table",X,[f("tr",null,[f("td",Y,[f("span",Z,"商品总额：￥"+h(g(ia).data.real_amount||""),1),f("span",$,"联系方式："+h(g(ia).data.config.mobile||""),1)])]),f("tr",null,[f("td",aa,[f("span",ta,"运费价格：￥"+h(g(ia).data.real_freight||""),1),f("span",ea,"服务商："+h(g(ia).data.config.webname.replace(/\s+/g,"")||""),1)])]),f("tr",null,[f("td",la,[f("span",sa,"订单附言："+h(g(ia).data.message||""),1)])])])]))])),[[l,g(q)]]),f("div",na,[f("div",da,[c((i(),y(e,{type:"primary"},{default:v((()=>[b("打印")])),_:1})),[[s,g(oa)]])])])])}}},[["__scopeId","data-v-55843298"]]);export{ra as default};
