import{_ as a,u as t,a as e,r as l,b as s,cK as d,E as i,bQ as r,d as n,e as o,f as p,w as c,g,h as f,am as u,F as b,l as h,n as m,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 O}from"./page-header.29890ed0.js";import{f as q}from"./days.686d9566.js";import"./divider.948c4b18.js";const B=a=>(w("data-v-f666842b"),a=a(),k(),a),I={class:"card"},T={class:"editor-card",style:{padding:"20px","min-height":"250px"}},z={key:0,id:"print-wrap"},E=B((()=>f("div",{class:"title"},"配货清单",-1))),F={class:"info"},G={style:{float:"left"}},H={style:{float:"right"}},K={class:"table",width:"100%",cellspacing:"0",cellpadding:"0",border:"1"},L=B((()=>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))),M=B((()=>f("tr",{class:"f14"},[f("th",null,"商品名称"),f("th",null,"商品货号"),f("th",null,"销售价格"),f("th",null,"重量（G）"),f("th",null,"数量"),f("th",null,"小计")],-1))),P={align:"left"},Q={style:{padding:"0 10px"}},A={key:0,class:"gray"},D={style:{"text-align":"center"}},J={style:{"text-align":"center"}},N={style:{"text-align":"center"}},R={style:{"text-align":"center"}},S={style:{"text-align":"center"}},U={width:"100%",cellspacing:"0",cellpadding:"0",border:"0"},V={align:"right"},W={style:{float:"left"}},X={style:{float:"right"}},Y={align:"right"},Z={style:{float:"left"}},$={style:{float:"right"}},aa=B((()=>f("table",{style:{"margin-top":"10px","border-top":"1px solid #ddd"},width:"100%",cellspacing:"0",cellpadding:"0",border:"0"},[f("tr",null,[f("td",{class:"f18",align:"left"},[f("b",{style:{float:"left",padding:"10px 0"}},"签字：")])])],-1))),ta={class:"tool"},ea={class:"tool-box"},la=a({__name:"distribution",setup(a){const w=t(),k=e(),B=l(!1),la=k.query.id;let sa=s({data:{}});B.value=!0,C("order.printing/distribution",{id:la}).then((a=>{B.value=!1,a.code&&!d(a.data)?sa.data=a.data:(i.error(a.msg),w.replace("/404"))}));const da=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 n(),o("div",I,[p(O,{title:"打印清单"}),c((n(),o("div",T,[g(d)(g(sa).data)?x("",!0):(n(),o("div",z,[E,f("div",F,[f("div",G,[f("span",null,"订单号："+u(g(sa).data.order_no||""),1),f("span",null,"订购日期："+u(g(q)(g(sa).data.create_time)||""),1)]),f("div",H,[f("span",null,"客户:"+u(g(sa).data.accept_name||""),1),f("span",null,"电话: "+u(g(sa).data.mobile||""),1)])]),f("table",K,[L,M,(n(!0),o(b,null,h(g(sa).data.goods,((a,t)=>(n(),o("tr",{key:t},[f("td",P,[f("label",Q,[m(u(a.goods_name||"")+"   ",1),g(d)(a.spec)?x("",!0):(n(),o("span",A,u(a.spec.name||""),1))])]),f("td",D,u(a.goods_number||""),1),f("td",J,"￥"+u(a.real_price||""),1),f("td",N,u(a.goods_weight||""),1),f("td",R,u(a.goods_total_nums||""),1),f("td",S,"￥"+u(a.total_price),1)])))),128))]),f("table",U,[f("tr",null,[f("td",V,[f("span",W,"配送地址："+u(g(sa).data.address||""),1),f("span",X,"配送方式："+u(g(sa).data.express_name||""),1)])]),f("tr",null,[f("td",Y,[f("span",Z,"配货备注："+u(g(sa).data.remarks||""),1),f("span",$,"配送单号："+u(g(sa).data.express_no||""),1)])])]),aa]))])),[[l,g(B)]]),f("div",ta,[f("div",ea,[c((n(),y(e,{type:"primary"},{default:v((()=>[m("打印")])),_:1})),[[s,g(da)]])])])])}}},[["__scopeId","data-v-f666842b"]]);export{la as default};
