mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-25 01:13:01 +08:00
1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
import{d as D,a7 as S,a8 as B,s as N,x as F,B as I,V as w,o as a,g as o,h as t,F as g,z as v,j as y,l as x,y as h,i as _,t as s,H as L,E as f,G as k,a9 as P,L as U,_ as C,m as E}from"./index-596c477d.js";const q={class:"overflow-x-auto mt-4"},j={class:"align-middle inline-block min-w-full shadow overflow-hidden bg-white shadow-dashboard p-2 rounded-bl-sm rounded-br-sm"},z={class:"min-w-full"},W=t("thead",null,[t("tr",null,[t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left leading-4 text-gray-800 tracking-wider"}),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left leading-4 text-gray-800 tracking-wider"}," Sampe ID "),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Test(s) "),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Patient "),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Client Patient ID "),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Client "),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Created "),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Creator "),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Status "),t("th",{class:"px-1 py-1 border-b-2 border-gray-300"})])],-1),$={class:"bg-gray-200"},G={colspan:"10",class:"px-1 py-1 whitespace-no-wrap border-b border-gray-400"},H={class:"flex items-center"},M={class:"text-sm leading-5 text-gray-800"},J={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},K=t("i",{class:"fa fa-star"},null,-1),O=[K],Q={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},X={class:"flex items-center"},Y={class:"font-semibold"},Z={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},tt={class:"text-sm leading-5 text-sky-800"},et={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},st={class:"text-sm leading-5 text-sky-800"},rt={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},at={class:"text-sm leading-5 text-sky-800"},ot={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},dt={class:"text-sm leading-5 text-sky-800"},it={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},nt={class:"text-sm leading-5 text-sky-800"},lt={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},ct={class:"text-sm leading-5 text-sky-800"},pt={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},bt={type:"button",class:"bg-cyan-600 text-white p-1 rounded-sm leading-none"},yt={class:"px-1 py-1 whitespace-no-wrap text-right border-b border-gray-500 text-sm leading-5"},xt={key:0,class:"py-4 text-center"},gt=D({__name:"AnalyisRequestListing",props:{target:String,targetUid:String},setup(m){const p=m,{targetUid:u,target:c}=S(p),d=B(),{analysisRequests:A,fetchingAnalysisRequests:V}=N(d);c?.value==="patient-samples"&&d.fetchAnalysisRequestsForPatient(u?.value),c?.value==="client-samples"&&d.fetchAnalysisRequestsForClient(u?.value),F(()=>p.targetUid,(n,b)=>{d.resetAnalysisRequests(),c?.value==="patient-samples"&&d.fetchAnalysisRequestsForPatient(n),c?.value==="client-samples"&&d.fetchAnalysisRequestsForClient(n)});function R(n,b){let i=[];return n.forEach(l=>i.push(l.name)),b.forEach(l=>i.push(l.name)),i.join(", ")}return(n,b)=>{const i=I("router-link"),l=w("motion-slide-left"),T=w("motion-slide-right");return a(),o("div",q,[t("div",j,[t("table",z,[W,(a(!0),o(g,null,v(y(A),r=>(a(),o("tbody",{class:"bg-white",key:r.uid},[_((a(),o("tr",$,[t("td",G,[t("div",H,[t("div",M,s(r.clientRequestId),1)])])])),[[l]]),(a(!0),o(g,null,v(r.samples,e=>_((a(),o("tr",{key:e.uid},[t("td",J,[e.priority<1?(a(),o("span",{key:0,class:L(["font-small",{"text-orange-600":e.priority==0}])},O,2)):h("v-if",!0)]),t("td",Q,[t("div",X,[t("div",Y,[x(i,{to:{name:"sample-detail",params:{patientUid:r.patient?.uid,sampleUid:e?.uid}}},{default:f(()=>[k(s(e.sampleId),1)]),_:2},1032,["to"])])])]),t("td",Z,[t("div",tt,s(R(e.profiles,e.analyses)),1)]),t("td",et,[t("div",st,s(r.patient?.firstName)+" "+s(r.patient?.lastName),1)]),t("td",rt,[t("div",at,s(r.patient?.clientPatientId),1)]),t("td",ot,[t("div",dt,s(r.client?.name),1)]),t("td",it,[t("div",nt,s(y(P)(e?.createdAt)),1)]),t("td",lt,[t("div",ct,s(e?.createdBy?.firstName),1)]),t("td",pt,[t("button",bt,s(e.status),1)]),t("td",yt,[x(i,{to:{name:"sample-detail",params:{patientUid:r.patient?.uid,sampleUid:e?.uid}},class:"px-2 py-1 mr-2 border-sky-800 border text-sky-800 rounded-sm transition duration-300 hover:bg-sky-800 hover:text-white focus:outline-none"},{default:f(()=>[k("View")]),_:2},1032,["to"])])])),[[T]])),128))]))),128))]),y(V)?(a(),o("div",xt,[x(U,{message:"Fetching Analysis Requests ..."})])):h("v-if",!0)])])}}}),vt=C(gt,[["__file","/home/aurthur/Development/Python/felicity/felicity-lims/webapp/views/components/AnalyisRequestListing.vue"]]),ht={},mt=E('<div class="overflow-x-auto mt-4"><div class="align-middle inline-block min-w-full shadow overflow-hidden bg-white shadow-dashboard px-2 pt-1 rounded-bl-lg rounded-br-lg"><table class="min-w-full"><thead><tr><th class="px-1 py-1 border-b-2 border-gray-300 text-left leading-4 text-gray-800 tracking-wider">ID</th><th class="px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider">Case Type</th><th class="px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider">Created</th><th class="px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider">Creator</th><th class="px-1 py-1 border-b-2 border-gray-300"></th></tr></thead><tbody class="bg-white"><tr><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="flex items-center"><div><div class="text-sm leading-5 text-gray-800">C21-00032</div></div></div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">Viral Load</div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">10/10/2020</div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">Amos T ...</div></td><td class="px-1 py-1 whitespace-no-wrap text-right border-b border-gray-500 text-sm leading-5"><button class="px-2 py-1 mr-2 border-orange-500 border text-orange-500rounded-smtransition duration-300 hover:bg-orange-700 hover:text-white focus:outline-none">View</button><button class="px-2 py-1 mr-2 border-sky-800 border text-sky-800rounded-smtransition duration-300 hover:bg-sky-800 hover:text-white focus:outline-none">Cancel</button></td></tr><tr><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="flex items-center"><div><div class="text-sm leading-5 text-gray-800">WB21-00032</div></div></div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">Viral Load</div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">10/10/2020</div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">Amos T ...</div></td><td class="px-1 py-1 whitespace-no-wrap text-right border-b border-gray-500 text-sm leading-5"><button class="px-2 py-1 mr-2 border-orange-500 border text-orange-500rounded-smtransition duration-300 hover:bg-orange-700 hover:text-white focus:outline-none">View</button><button class="px-2 py-1 mr-2 border-sky-800 border text-sky-800rounded-smtransition duration-300 hover:bg-sky-800 hover:text-white focus:outline-none">Cancel</button></td></tr><tr><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="flex items-center"><div><div class="text-sm leading-5 text-gray-800">WB21-00032</div></div></div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">TB</div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">10/10/2020</div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">Amos T ...</div></td><td class="px-1 py-1 whitespace-no-wrap text-right border-b border-gray-500 text-sm leading-5"><button class="px-2 py-1 mr-2 border-orange-500 border text-orange-500rounded-smtransition duration-300 hover:bg-orange-700 hover:text-white focus:outline-none">View</button><button class="px-2 py-1 mr-2 border-sky-800 border text-sky-800rounded-smtransition duration-300 hover:bg-sky-800 hover:text-white focus:outline-none">Cancel</button></td></tr><tr><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="flex items-center"><div><div class="text-sm leading-5 text-gray-800">C21-00032</div></div></div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">EID</div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">10/10/2020</div></td><td class="px-1 py-1 whitespace-no-wrap border-b border-gray-500"><div class="text-sm leading-5 text-sky-800">Amos T ...</div></td><td class="px-1 py-1 whitespace-no-wrap text-right border-b border-gray-500 text-sm leading-5"><button class="px-2 py-1 mr-2 border-orange-500 border text-orange-500rounded-smtransition duration-300 hover:bg-orange-700 hover:text-white focus:outline-none">View</button><button class="px-2 py-1 mr-2 border-sky-800 border text-sky-800rounded-smtransition duration-300 hover:bg-sky-800 hover:text-white focus:outline-none">Cancel</button></td></tr></tbody></table></div></div>',1);function ut(m,p){return a(),o(g,null,[h(" Cases Table View "),mt],2112)}const _t=C(ht,[["render",ut],["__file","/home/aurthur/Development/Python/felicity/felicity-lims/webapp/views/patient/comps/CaseTable.vue"]]);export{_t as a,vt as t};
|