printTemplate-315a317c.js 2.2 KB

1
  1. import{d as m,f as y,r as g,a5 as c,q as k,Y as a,a6 as u,a7 as n,n as w,E as _,_ as t,$ as l,Z as i,F as d,a8 as r,aa as T}from"./vue-8fccce23.js";import{_ as x}from"./index.js";import"./antd-49db3de3.js";const B={head:"阶段评估单",foot:[{field:"name",label:"签名:",value:"张三"},{field:"date",label:"",value:"2024年06月27日"}],body:[{title:null,isTable:!1,detail:[{field:"",label:"姓名",value:"张三"},{field:"",label:"性别:",value:"男"},{field:"",label:"性别:",value:"21岁"},{field:"",label:"评估日期:",value:"2023-04-23"}]},{title:"治疗信息",isTable:!1,detail:[{field:"",label:"血管通路:",value:"AVF"},{field:"",label:"诊断记录:",value:"男"}]},{title:"血压与超滤",isTable:!0,columns:[{title:"透析日期",dataIndex:"uniqueNo",align:"left"},{title:"干体重",dataIndex:"name",align:"left"},{title:"透前体重",dataIndex:"gender",align:"left"},{title:"透后体重",dataIndex:"birthday",align:"left"}],detail:[]}]},D={id:"printPage"},F={class:"header"},I={class:"body"},P={key:0},C={key:1},O={class:"common-tit"},N={class:"body-label"},R={class:"body-value"},V={class:"footer"},q=m({__name:"printTemplate",setup(E){const s=y(B);console.log("🚀 ~ name:",s);const v=g({id:"printPage"});return(o,S)=>{const p=c("a-button"),f=c("BasicDrawer"),b=k("print");return a(),u(f,T(o.$attrs,{destroyOnClose:"",onRegister:o.registerDrawer,title:o.getTitle,width:o.width,onOk:o.handleSubmit,showFooter:!0,class:"mis-drawer",okText:"关闭",cancelText:"打印","show-cancel-btn":!1}),{appendFooter:n(()=>[w((a(),u(p,{type:"primary"},{default:n(()=>[_("打印")]),_:1})),[[b,v]])]),default:n(()=>[t("div",D,[t("div",F,l(s.value.value.head),1),t("div",I,[(a(!0),i(d,null,r(s.value.value.body,e=>(a(),i("div",{key:e.field},[e.isTable?(a(),i("div",P,l(e.label),1)):(a(),i("div",C,[t("div",O,l(e.title),1),(a(!0),i(d,null,r(e.detail,h=>(a(),i("div",{key:h.field},[t("div",N,l(e.label),1),t("div",R,l(e.value),1)]))),128))]))]))),128)),_(" "+l(s.value.value.body),1)]),t("div",V,[(a(!0),i(d,null,r(s.value.value.foot,e=>(a(),i("div",{key:e.field},[t("div",null,l(e.label),1),t("div",null,l(e.value),1)]))),128))])])]),_:1},16,["onRegister","title","width","onOk"])}}});const L=x(q,[["__scopeId","data-v-30a57353"]]);export{L as default};