mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 17:02:55 +08:00
2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
|
import{S as H,ar as ve,q as Q,_ as N,as as fe,t as ye,j as K,F as be}from"./billing-356772f3.js";import{f as xe,G as E,r as h,d as ge,aj as j,h as l,k as d,x as e,ag as r,u as n,B as z,F as y,ak as A,D as c,A as b,y as I,j as G,s as x,i as M,p as we,e as ke,al as Ce,_ as Be}from"./_plugin-vue_export-helper-3f67fb71.js";import{A as Te,a as Ae}from"./billing.mutations-59bfac39.js";import{c as Ie,a as O,d as Ve,u as Se,b as R}from"./array-a5aedee5.js";import{b as q,a as g,d as Pe,v as $}from"./runtime-dom.esm-bundler-6e07ef74.js";function Ue(){const{withClientQuery:u}=Q();return{downloadInvoice:async S=>{try{await H.fire({title:"Are you sure?",text:"You want to download this invoice",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, download now!",cancelButtonText:"No, do not download!"}).then(async p=>{p.isConfirmed&&(u(ve,{billUid:S},"billInvoiceCreate","network-only").then(w=>{const m=document.createElement("a");m.href=`data:application/pdf;base64,${w}`,m.setAttribute("download","invoice-report.pdf"),m.click()}),await H.fire("Its Happening!","Downloading .....","success").then(w=>{}))})}catch{}}}}const o=u=>(we("data-v-afb0e1b5"),u=u(),ke(),u),De={class:"mt-4"},Fe=o(()=>e("h4",{class:"text-sm text-gray-800 font-bold"},"Patient's Order Bills",-1)),Le=o(()=>e("hr",null,null,-1)),Ne={class:"grid grid-cols-12 gap-4 mt-2"},Ee={initial:{opacity:0,y:100},enter:{opacity:1,y:0,scale:1},variants:{custom:{scale:2}},delay:400,class:"col-span-3 overflow-y-scroll overscroll-contain billing-scroll"},je={key:0,class:"py-4 text-center bg-white w-full mb-1 rounded-sm shadow border"},Me={key:1},Oe=["onClick"],Re={class:"flex-grow p-1"},qe={class:"font-semibold text-gray-800"},$e={class:"text-sm text-gray-400"},Ye={initial:{opacity:0,y:-100},enter:{opacity:1,y:0,scale:1},variants:{custom:{scale:2}},delay:400,class:"col-span-9"},We={class:"bg-white rounded-sm shadow-sm hover:shadow-xs duration-500 px-4 sm:px-6 md:px-2 py-4"},He={class:"flex justify-between items-center"},Ke={class:"text-gray-800 text-l font-bold"},ze=o(()=>e("hr",null,null,-1)),Ge={class:"grid grid-cols-3 gap-x-8"},Qe={class:"col-span-1"},Je={class:"flex justify-between items-center mt-2"},Xe=o(()=>e("span",{class:"text-gray-800 text-sm font-semibold"},"Active:",-1)),Ze={class:"text-gray-600 text-sm md:text-md"},et={class:"flex justify-between items-center mt-2"},tt=o(()=>e("span",{class:"text-gray-800 text-sm font-semibold"},"Confirmed:",-1)),st={class:"text-gray-600 text-sm md:text-md"},ot={class:"col-span-1"},nt={class:"flex justify-between items-center mt-2"},at=o(()=>e("span",{class:"text-gray-800 text-sm font-semibold"},"Total Charged:",-1)),lt={class:"text-gray-600 text-sm md:text-md"},it={class:"flex justify-between items-center mt-2"},dt=o(()=>e("span",{class:"text-gray-800 text-sm font-semibold"},"Total Paid:",-1)),ct={class:"text-gray-600 text-sm md:text-md"},rt={class:"col-span-1"},ut={class:"flex justify-between items-center mt-2"},mt=o(()=>e("span",{class:"text-gray-800 text-sm font-semibold"},"Partial:",-1)),_t={class:"text-gray-600 text-sm md:text-md"},ht={class:"mt-4"},pt={class:"flex justify-between items-center"},vt=o(()=>e("h4",{class:"text-gray-800 text-l font-semibold"},"Order Items",-1)),ft=o(()=>e("hr",null,null,-1)),yt={class:"mt-4 bg-white rounded-sm shadow-sm hover:shadow-xs duration-500 px-4 sm:px-6 md:px-2 py-4"},bt={class:"text-gray-400"},xt={class:"ml-2 text-md leading-5 text-sky-600"},gt={class:"mt-4"},wt={class:"flex justify-between items-center"},kt=o(()=>e("h4",{class:"text-gray-800 text-l font-semibold"},"Transactions",-1)),Ct=["onClick"],Bt=["onClick"],Tt=o(()=>e("hr",null,null,-1)),At={class:"mt-4 bg-white rounded-sm shadow-sm hover:shadow-xs duration-500 px-4 sm:px-6 md:px-2 py-4"},It=o(()=>e("h3",null,"Transaction Form",-1)),Vt={class:"grid grid-cols-2 gap-x-4 mb-4"},St={class:"whitespace-nowrap mb-2 w-full"},Pt=o(()=>e("span",{class:"text-gray-700 w-4/12"},"Kind of payment",-1)),Ut={class:"w-full"},Dt=o(()=>e("option",null,null,-1)),Ft=["value"],Lt={class:"text-orange-600
|