mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 00:42:59 +08:00
1 line
3.4 KiB
JavaScript
1 line
3.4 KiB
JavaScript
import{d as k,N as S,aq as C,r as W,x as l,m,z as D,o as _,c as u,e as a,b as e,t as o,g as p,P as i,f as v,k as A}from"./index-e62f5c21.js";import{u as B}from"./worksheet-e8811bb2.js";const N={class:""},$={class:"bg-white rounded-sm shadow-sm hover:shadow-lg duration-500 px-4 py-4"},z={class:"grid grid-cols-12 gap-1"},I={class:"col-span-12 flex justify-between font-bold text-medium mb-2"},L={type:"button",class:"bg-sky-800 text-white px-2 py-1 rounded-sm leading-none"},U={class:"ml-2"},V={class:"absolute mt-4 py-0 bg-gray-300 rounded-sm shadow-xl z-20"},j={class:"col-span-12 sm:col-end-13 px-3 sm:px-0"},q=e("hr",null,null,-1),E={class:"grid grid-cols-2 mt-2"},M={class:"col-span-1"},O={class:"flex"},P=e("span",{class:"text-gray-800 text-sm font-semibold w-1/6"},"Analyst",-1),R={class:"text-gray-600 text-sm md:text-md"},T={class:"flex"},F=e("span",{class:"text-gray-800 text-md font-semibold w-1/6"},"Instrument:",-1),G={class:"text-gray-600 text-sm md:text-md"},H={class:"flex"},J=e("span",{class:"text-gray-800 text-sm font-semibold w-1/6"},"Method:",-1),K={class:"text-gray-600 text-sm md:text-md"},Q={class:"col-span-1"},X={class:"flex"},Y=e("span",{class:"text-gray-800 text-sm font-semibold w-1/6"},"Analyses:",-1),Z={class:"text-gray-600 text-sm md:text-md"},ee={class:"flex"},te=e("span",{class:"text-gray-800 text-sm font-semibold w-1/6"},"Samples:",-1),se={class:"text-gray-600 text-sm md:text-md"},oe={class:"flex"},ne=e("span",{class:"text-gray-800 text-sm font-semibold w-1/6"},"Template:",-1),ae={class:"text-gray-600 text-sm md:text-md"},ie=k({__name:"WorkSheet",setup(de){const h=S(),r=C(),n=W(!1);r.fetchWorksheetByUid(h.params?.workSheetUid);const t=l(()=>r.getWorkSheet),{actionWorksheets:c}=B(),x=l(()=>!!["pending"].includes(t?.value?.state?.toLowerCase())),f=l(()=>!!["awaiting"].includes(t?.value?.state?.toLowerCase()));return(y,s)=>{const g=m("font-awesome-icon"),w=m("router-view"),b=D("motion-slide-top");return _(),u("div",N,[a((_(),u("div",$,[e("div",z,[e("div",I,[e("h3",null,o(t.value?.worksheetId),1),e("div",null,[e("div",{onClick:s[0]||(s[0]=d=>n.value=!n.value),class:"hidden md:block md:flex md:items-center ml-2 mt-2"},[e("button",L,o(t.value?.state),1),e("div",U,[p(g,{icon:"chevron-down",class:"text-gray-400"})])]),a(e("div",{onClick:s[1]||(s[1]=d=>n.value=!1),class:"fixed inset-0 h-full w-full z-10"},null,512),[[i,n.value]]),a(e("div",V,[a(e("div",{onClick:s[2]||(s[2]=d=>v(c)([t.value.uid],"submit")),class:"no-underline text-gray-900 py-0 opacity-60 px-4 border-b border-transparent hover:opacity-100 md:hover:border-grey-dark hover:bg-sky-800 hover:text-white"}," Submit ",512),[[i,x.value]]),a(e("div",{onClick:s[3]||(s[3]=d=>v(c)([t.value.uid],"approve")),class:"no-underline text-gray-900 py-0 opacity-60 px-4 border-b border-transparent hover:opacity-100 md:hover:border-grey-dark hover:bg-sky-800 hover:text-white"}," Approve ",512),[[i,f.value]])],512),[[i,n.value]])])]),e("div",j,[q,e("div",E,[e("div",M,[e("div",O,[P,e("span",R,o(t.value?.analyst?.firstName),1)]),e("div",T,[F,e("span",G,o(t.value?.instrument?.name),1)]),e("div",H,[J,e("span",K,o(t.value?.method?.name),1)])]),e("div",Q,[e("div",X,[Y,e("span",Z,o(t.value?.analysis?.name),1)]),e("div",ee,[te,e("span",se,o(t.value?.assignedCount),1)]),e("div",oe,[ne,e("span",ae,o(t.value?.template?.name),1)])])])])])])),[[b]]),p(w)])}}}),ce=A(ie,[["__file","/home/aurthurm/Documents/Development/felicity/felicity-lims/webapp/views/worksheet/_id/WorkSheet.vue"]]);export{ce as default};
|