2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
|
"use strict";(self["webpackChunkcmc_fe"]=self["webpackChunkcmc_fe"]||[]).push([[337],{9522:function(e,l,t){t.r(l),t.d(l,{default:function(){return al}});var a=t(3396),n=t(7139),s=t(7312),r=t(9752),o=t(6572),d=t(1332),u=t(1888),i=t(1334),c=t(6824),m=t(8521),_=t(3369),f=t(3289),p=t(8551),w=t(7325),h=t(3144),b=t(9870),k=t(165),W=t(6161),U=t(4722);const y=e=>((0,a.dD)("data-v-7e121aa2"),e=e(),(0,a.Cn)(),e),g=y((()=>(0,a._)("h3",null,"Medicated Feeds",-1))),D=y((()=>(0,a._)("br",null,null,-1))),v=y((()=>(0,a._)("br",null,null,-1)));function z(e,l,t,y,z,M){const F=(0,a.up)("RecycleScroller"),q=(0,a.up)("MedFeedsEdit"),x=(0,a.up)("ScriptReq"),C=(0,a.up)("OrderForm");return(0,a.wg)(),(0,a.iD)(a.HY,null,[g,(0,a.Wm)(h.d,{modelValue:z.tab,"onUpdate:modelValue":l[0]||(l[0]=e=>z.tab=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(b.L,{value:"list"},{default:(0,a.w5)((()=>[(0,a.Uk)("List")])),_:1}),z.edit?((0,a.wg)(),(0,a.j4)(b.L,{key:0,value:"edit"},{default:(0,a.w5)((()=>[(0,a.Uk)("Edit")])),_:1})):(0,a.kq)("",!0),z.scriptreq?((0,a.wg)(),(0,a.j4)(b.L,{key:1,value:"scriptreq"},{default:(0,a.w5)((()=>[(0,a.Uk)("Script Request")])),_:1})):(0,a.kq)("",!0),z.orderform?((0,a.wg)(),(0,a.j4)(b.L,{key:2,value:"orderform"},{default:(0,a.w5)((()=>[(0,a.Uk)("Order Form")])),_:1})):(0,a.kq)("",!0)])),_:1},8,["modelValue"]),(0,a.Wm)(W.Oo,{modelValue:z.tab,"onUpdate:modelValue":l[3]||(l[3]=e=>z.tab=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(U.H,{value:"list"},{default:(0,a.w5)((()=>[(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,null,{default:(0,a.w5)((()=>[(0,a.Wm)(k.hw,{clearable:"",label:"Search",variant:"outlined",modelValue:z.searchQuery,"onUpdate:modelValue":l[1]||(l[1]=e=>z.searchQuery=e),density:"compact","append-inner-icon":"mdi-magnify"},null,8,["modelValue"])])),_:1})])),_:1}),t.site_info.features.addmedfeed?((0,a.wg)(),(0,a.j4)(s.T,{key:0,color:"warning",onClick:l[2]||(l[2]=e=>M.editMedFeed({}))},{default:(0,a.w5)((()=>[(0,a.Uk)("+ Add")])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"8",xs:"12",sm:"12",md:"8"},{default:(0,a.w5)((()=>[(0,a.Wm)(w.K,{indeterminate:"",color:"blue",active:z.loading},null,8,["active"]),(0,a.Wm)(F,{class:"scroller",items:M.filteredMedFeeds,"item-size":130,"key-field":"id"},{default:(0,a.w5)((({item:l})=>[(0,a.Wm)(c.o,{class:(0,n.C_)(["item",{at_risk:l.customer.at_risk}])},{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"4"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Medicated Feed : "+(0,n.zw)(l.id)+", "+(0,n.zw)(l.customer.acc_no)+" - "+(0,n.zw)(l.customer.name),1)])),_:2},1024),(0,a.Wm)(m.D,null,{default:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(l.medication.name)+" "+(0,n.zw)(l.medication.inclusion_rate),1),D,(0,a.Uk)(" "+(0,n.zw)(l.product.name),1)])),_:2},1024),(0,a.Wm)(m.D,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" Required : "+(0,n.zw)(e.formatDate(l.date_required,"DD/MM/YYYY"))+" ",1),v,(0,a.Uk)(" Repeat Prescription? : "),l.repeat?((0,a.wg)(),(0,a.j4)(f.t,{key:0},{default:(0,a.w5)((()=>[(0,a.Uk)("mdi-refresh")])),_:1})):(0,a.kq)("",!0)])),_:2},1024),(0,a.Wm)(m.D,null,{default:(0,a.w5)((()=>[(0,a.Wm)(s.T,null,{default:(0,a.w5)((()=>[(0,a.Uk)(" More "),(0,a.Wm)(p.yc,{activator:"parent",class:"align-center justify-center"},{default:(0,a.w5)((()=>[(0,a.Wm)(_.K,null,{default:(0,a.w5)((()=>[(0,a.Wm)(r._,{width:"600"},{default:(0,a.w5)((()=>[(0,a.Wm)(o.E,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Info")])),_:1}),(0,a.Wm)(d.Q,null,{default:(0,a.w5)((()=>[(0,a.Uk)("Repeat Message")])),_:1}),(0,a.Wm)(u.Z,null,{default:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(l.repeat_message),1)])),_:2},1024),(0,a.Wm)(i.h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(s.T,{class:"mb-2 mr-2",color:"blue",onClick:e=>M.reportScriptReq(l)},{default:(0,a.w5)((()=>[(0,a.Uk)("Script Request")])),_:2},1032,["onClick"]),(0,a.Wm)(s.T,{class:"mb-2 mr-2",color:"blue",onClick:e=>M.reportOrderForm(l)},{default:(0,a.w5)((()=>[(0,a.Uk)("Order Form")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024),t.site_info.editmedfeed?((0,a.wg)(),(0,a.j4)(s.T,{key:0},{default:(0,a.w5)((()=>[(0,a.Uk)("Edit")])),_:1})):(0,a.
|
||
|
//# sourceMappingURL=337.7acf902b.js.map
|