"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.kq)("",!0)])),_:2},1024)])),_:2},1032,["class"])])),_:1},8,["items"])])),_:1})])),_:1})])),_:1}),(0,a.Wm)(U.H,{value:"edit"},{default:(0,a.w5)((()=>[(0,a.Wm)(q)])),_:1}),(0,a.Wm)(U.H,{value:"scriptreq"},{default:(0,a.w5)((()=>[(0,a.Wm)(x,{mf:z.selected_mf,user:t.user_info},null,8,["mf","user"])])),_:1}),(0,a.Wm)(U.H,{value:"orderform"},{default:(0,a.w5)((()=>[(0,a.Wm)(C,{mf:z.selected_mf},null,8,["mf"])])),_:1})])),_:1},8,["modelValue"])],64)}var M=t(6943);function F(e,l){return" Not Implemented, yet :-) "}var q=t(89);const x={},C=(0,q.Z)(x,[["render",F]]);var R=C;const T=(0,a._)("img",{src:"/images/cmc-logo.png",alt:"CMC Logo"},null,-1),S=(0,a._)("address",{class:"text-right"},[(0,a.Uk)(" Fordton Mills,"),(0,a._)("br"),(0,a.Uk)(" Crediton,"),(0,a._)("br"),(0,a.Uk)(" Devon EX17 3DH"),(0,a._)("br"),(0,a.Uk)(" T: 01363 772212"),(0,a._)("br"),(0,a.Uk)(" F: 01363 775009 ")],-1),O=(0,a._)("hr",{class:"bold"},null,-1),L=(0,a._)("h3",{class:"text-center"},"FACSIMILE TRANSMITTAL SHEET",-1),I=(0,a._)("hr",null,null,-1),P={class:"here"},Z=(0,a._)("br",null,null,-1),E=(0,a._)("br",null,null,-1),H=(0,a._)("br",null,null,-1),V=(0,a._)("hr",null,null,-1),Y=(0,a._)("br",null,null,-1),B=(0,a._)("hr",null,null,-1),j=(0,a._)("h4",null,[(0,a.Uk)("RE: "),(0,a._)("span",{class:"gap-before red-text"},"PRESCRIPTION - URGENT")],-1),N=(0,a._)("hr",null,null,-1),A=(0,a._)("p",{class:"bold underline"}," Notification to Veterinary Practice of request for a medicate feed.",-1),Q=(0,a._)("p",null,"An order has been placed by the below customer",-1),K=(0,a._)("p",null,"For:",-1),$=(0,a._)("br",null,null,-1),G={key:0},X=(0,a._)("br",null,null,-1),J=(0,a._)("p",null,"The customer advises that you have diagnosed the disease for which the above medicated feed is required. We have accepted this order but we are not able to deliver it until you have confirmed that you have prescribed it by issuing us with a Medicated Feedingstuffs Prescription (MFSp).",-1),ee=(0,a._)("p",null,[(0,a.Uk)("Under the Veterinary Medicines Regulations we are only permitted to supply medicated feed against a valid MFSp."),(0,a._)("br"),(0,a.Uk)(" Please will you therefore ensure that all details are completed in full, particularly the name, stength and MA number of the prescribed medicine(s) and the species and number of animals to be treated.")],-1),le=(0,a._)("p",null,"Should the Medicated Feedingstuffs Prescription be required to cover more than this one order, please be advised that our minimum batch size is 2 tonnes.",-1),te=(0,a._)("p",null,"If you require any further information about the veterinary medicinal products we stock, please get in touch.",-1);function ae(e,l,t,s,r,o){const d=(0,a.up)("ReportLayout");return(0,a.wg)(),(0,a.j4)(d,{scope:"scriptreq"},{default:(0,a.w5)((()=>[(0,a._)("div",null,[(0,a._)("header",null,[(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"6"},{default:(0,a.w5)((()=>[T])),_:1}),(0,a.Wm)(m.D,{cols:"6"},{default:(0,a.w5)((()=>[S])),_:1})])),_:1}),O,L,I]),(0,a._)("main",P,[(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"6"},{default:(0,a.w5)((()=>[(0,a.Uk)(" TO;"),Z,(0,a.Uk)(" "+(0,n.zw)(t.mf.vet.practice),1)])),_:1}),(0,a.Wm)(m.D,{cols:"6"},{default:(0,a.w5)((()=>[(0,a.Uk)(" FROM:"),E,(0,a.Uk)(" "+(0,n.zw)(t.user.first_name)+" "+(0,n.zw)(t.user.last_name),1),H,(0,a.Uk)(" "+(0,n.zw)(t.user.email),1)])),_:1})])),_:1}),V,(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"6"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(t.mf.vet.practice),1)])),_:1}),(0,a.Wm)(m.D,{cols:"6"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,n.zw)(e.formatDate(new Date,"DD MMM YYYY")),1),Y,(0,a.Uk)(" "+(0,n.zw)(e.formatDate(new Date,"HH:mm")),1)])),_:1})])),_:1}),B,j,N,A,Q,(0,a._)("p",null,(0,n.zw)(t.mf.customer.name)+", "+(0,n.zw)(t.mf.customer.address.line_1)+", "+(0,n.zw)(t.mf.customer.address.line_2)+", "+(0,n.zw)(t.mf.customer.address.line_3)+", "+(0,n.zw)(t.mf.customer.address.line_4)+", "+(0,n.zw)(t.mf.customer.address.postcode),1),K,(0,a._)("ul",null,[(0,a._)("li",null,(0,n.zw)(t.mf.product.name)+" - "+(0,n.zw)(t.mf.product.code),1),(0,a._)("li",null,(0,n.zw)(t.mf.tonnage)+" Tonnes",1),(0,a._)("li",null,[(0,a.Uk)((0,n.zw)(t.mf.medication.name),1),$,((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.mf.medication.info,(e=>((0,a.wg)(),(0,a.iD)(a.HY,{key:e},[""!=e?((0,a.wg)(),(0,a.iD)("span",G,[(0,a.Uk)((0,n.zw)(e),1),X])):(0,a.kq)("",!0)],64)))),128))])]),J,ee,le,te,(0,a._)("h4",null,"The customer requires this order on "+(0,n.zw)(e.formatDate(t.mf.date_required,"DD/MM/yyyy")),1)])])])),_:1})}var ne=t(6858),se=t(7585),re={props:{mf:{},user:{}},components:{ReportLayout:ne.Z},data(){return{}},mixins:[se.Z]};const oe=(0,q.Z)(re,[["render",ae]]);var de=oe;const ue=e=>((0,a.dD)("data-v-2bf7b16e"),e=e(),(0,a.Cn)(),e),ie=ue((()=>(0,a._)("img",{class:"smaller",src:"/images/cmc-logo.png"},null,-1))),ce=ue((()=>(0,a._)("h2",{class:"text-center text-bold text-underline"}," Manufacture of Feed Containing Prescription Only Medicine ",-1))),me=ue((()=>(0,a._)("hr",null,null,-1))),_e=ue((()=>(0,a._)("span",null," ",-1))),fe={class:"text-bold"},pe={class:"text-bold"},we=ue((()=>(0,a._)("br",null,null,-1))),he={class:"text-bold"},be=ue((()=>(0,a._)("br",null,null,-1))),ke=ue((()=>(0,a._)("br",null,null,-1))),We={class:"text-bold"},Ue=ue((()=>(0,a._)("br",null,null,-1))),ye={class:"text-bold"},ge=ue((()=>(0,a._)("br",null,null,-1))),De=ue((()=>(0,a._)("br",null,null,-1))),ve={class:"text-bold"},ze=ue((()=>(0,a._)("br",null,null,-1))),Me={class:"text-bold"},Fe={class:"text-bold"},qe=ue((()=>(0,a._)("hr",null,null,-1))),xe=ue((()=>(0,a._)("p",null,[(0,a.Uk)(" Total Drug Used:"),(0,a._)("br"),(0,a.Uk)(" Number of Batches: "),(0,a._)("span",{class:"gap-12"}),(0,a.Uk)(" x Batch Size: "),(0,a._)("br"),(0,a.Uk)(" Medication Added to Standard Formulation By:"),(0,a._)("br")],-1))),Ce=ue((()=>(0,a._)("hr",null,null,-1))),Re=ue((()=>(0,a._)("p",null,"Customer:",-1))),Te=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Se=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Oe=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Le=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Ie=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Pe=ue((()=>(0,a._)("p",null,"Tonnes:",-1))),Ze=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Ee=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),He=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Ve=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Ye=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Be=ue((()=>(0,a._)("p",null,"Prescription Reference:",-1))),je=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Ne=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Ae=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Qe=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),Ke=ue((()=>(0,a._)("p",{class:"b_line"}," ",-1))),$e=ue((()=>(0,a._)("ol",null,[(0,a._)("li",null,"Product cannot be manufactured without this form being completed."),(0,a._)("li",null,"Office will start instruction for manufacture."),(0,a._)("li",null,"Partially completed form to be handed to production planing."),(0,a._)("li",null,"Mill must return completed form to the office following manufacture, or to warehouse for stock products."),(0,a._)("li",null,"Warehouse stock to be taken from this sheet, once completed then return to the office."),(0,a._)("li",null,"Completed sheet to be filed and retained.")],-1)));function Ge(e,l,t,s,r,o){const d=(0,a.up)("ReportLayout");return(0,a.wg)(),(0,a.j4)(d,{scope:"orderform"},{default:(0,a.w5)((()=>[(0,a._)("div",null,[(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"4"},{default:(0,a.w5)((()=>[ie])),_:1}),(0,a.Wm)(m.D,{cols:"8"},{default:(0,a.w5)((()=>[ce])),_:1})])),_:1}),me,(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"12",class:"text-center text-underline text-bold"},{default:(0,a.w5)((()=>[(0,a.Uk)(" To Be Completed By Office ")])),_:1})])),_:1}),(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"8"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Batch Number: "),_e])),_:1}),(0,a.Wm)(m.D,{cols:"4"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Date of Order: "),(0,a._)("span",fe,(0,n.zw)(e.formatDate(new Date,"DD/MM/yyyy")),1)])),_:1}),(0,a.Wm)(m.D,{cols:"12"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Customer Name: "),(0,a._)("span",pe,(0,n.zw)(t.mf.customer.name),1),we,(0,a.Uk)(" Address: "),(0,a._)("span",he,[(0,a.Uk)((0,n.zw)(t.mf.customer.address.line_1)+", "+(0,n.zw)(t.mf.customer.address.line_2)+", "+(0,n.zw)(t.mf.customer.address.line_3),1),be,(0,a.Uk)(" "+(0,n.zw)(t.mf.customer.address.line_4)+", "+(0,n.zw)(t.mf.customer.address.postcode),1)]),ke,(0,a.Uk)(" Order Number: "),(0,a._)("p",null,[(0,a.Uk)("Product + Code: "),(0,a._)("span",We,(0,n.zw)(t.mf.product.name)+" + "+(0,n.zw)(t.mf.medication.name),1),Ue,(0,a.Uk)(" Tonnes Ordered: "),(0,a._)("span",ye,(0,n.zw)(t.mf.tonnage),1),ge,(0,a.Uk)(" Prescription Reference (OFF MFS):"),De,(0,a.Uk)(" Medication Required: "),(0,a._)("span",ve,(0,n.zw)(t.mf.medication.name),1),ze,(0,a.Uk)(" Inclusion Rate / Tonne: "),(0,a._)("span",Me,(0,n.zw)(t.mf.medication.inclusion_rate),1)]),(0,a._)("p",null,[(0,a.Uk)("Date of Delivery / Collection: "),(0,a._)("span",Fe,(0,n.zw)(t.mf.date_required),1)])])),_:1})])),_:1}),qe,(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"12",class:"text-center text-underline text-bold"},{default:(0,a.w5)((()=>[(0,a.Uk)(" To Be Completed By Mill ")])),_:1})])),_:1}),(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"12"},{default:(0,a.w5)((()=>[xe])),_:1})])),_:1}),Ce,(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"12",class:"text-center text-underline text-bold"},{default:(0,a.w5)((()=>[(0,a.Uk)(" To Be Completed By Warehouse ")])),_:1})])),_:1}),(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"4"},{default:(0,a.w5)((()=>[Re,Te,Se,Oe,Le,Ie])),_:1}),(0,a.Wm)(m.D,{cols:"4"},{default:(0,a.w5)((()=>[Pe,Ze,Ee,He,Ve,Ye])),_:1}),(0,a.Wm)(m.D,{cols:"4"},{default:(0,a.w5)((()=>[Be,je,Ne,Ae,Qe,Ke])),_:1})])),_:1}),(0,a.Wm)(c.o,null,{default:(0,a.w5)((()=>[(0,a.Wm)(m.D,{cols:"12",class:"text-center text-underline"},{default:(0,a.w5)((()=>[(0,a.Uk)(" Instructions ")])),_:1}),(0,a.Wm)(m.D,{cols:"12"},{default:(0,a.w5)((()=>[$e])),_:1})])),_:1})])])),_:1})}var Xe={props:{mf:{}},components:{ReportLayout:ne.Z},mixins:[se.Z],methods:{}};const Je=(0,q.Z)(Xe,[["render",Ge],["__scopeId","data-v-2bf7b16e"]]);var el=Je,ll={props:{site_info:{},user_info:{}},components:{ScriptReq:de,OrderForm:el,MedFeedsEdit:R},data(){return{tab:"list",selected_mf:{},loading:!0,list:[],listreceived:!1,limit:300,searchQuery:"",edit:!1,scriptreq:!1,orderform:!1}},computed:{filteredMedFeeds(){let e=this.searchQuery.toLowerCase();this.listreceived||this.getMedFeedsList();let l=this.list.filter((l=>l.customer.name.toLowerCase().includes(e)||l.customer.acc_no.includes(e)));return l}},mixins:[se.Z],methods:{async getMedFeedsList(){this.loading=!0;let e=this.$api_url+"/customers/medicated-feeds/list";console.log("Getting Medicated Feeds list..."),M.Z.get(e,{params:{limit:this.limit,query:this.searchQuery}}).then((e=>{this.list=e.data,this.loading=!1,this.listreceived=!0}))},async showMedFeedInfo(e){e.info_loaded=!1,e.info_shown=!e.info_shown,e.info_shown&&(e.info_loaded=!0)},async reportScriptReq(e){let l=this.$api_url+"/customers/medicated-feeds/"+e.id+"/info";M.Z.get(l).then((e=>{this.selected_mf=e.data,this.scriptreq=!0,this.tab="scriptreq"}))},async reportOrderForm(e){let l=this.$api_url+"/customers/medicated-feeds/"+e.id+"/info";M.Z.get(l).then((e=>{this.selected_mf=e.data,this.orderform=!0,this.tab="orderform"}))},async editMedFeed(e){this.edit=!0,this.tab="edit",this.selected_mf=e}}};const tl=(0,q.Z)(ll,[["render",z],["__scopeId","data-v-7e121aa2"]]);var al=tl}}]); //# sourceMappingURL=337.7acf902b.js.map