(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5200f384"],{8691:function(t,e,a){},efc9:function(t,e,a){"use strict";a("8691")},f170:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("v-card-title",[t._v(" Lens: Used "),e("v-spacer"),e("v-spacer"),e("v-spacer"),e("v-spacer"),e("v-col",{attrs:{cols:"12",sm:"6",md:"3"}},[e("v-menu",{attrs:{"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function({on:a,attrs:n}){return[e("v-text-field",t._g(t._b({attrs:{label:"Select Date","prepend-icon":"mdi-calendar",readonly:"",dense:"",outlined:"","hide-details":""},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}},"v-text-field",n,!1),a))]}}]),model:{value:t.menu2,callback:function(e){t.menu2=e},expression:"menu2"}},[e("v-date-picker",{attrs:{type:"month"},on:{input:function(e){t.menu2=!1},change:function(e){return t.initialize()}},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1)],1),e("v-col",{attrs:{cols:"12",sm:"6",md:"3"}},[[e("v-text-field",{attrs:{"prepend-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":"",dense:"",outlined:""},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})]],2),e("v-col",{attrs:{cols:"12",sm:"6",md:"1"}},[[e("v-row",{attrs:{align:"center",justify:"space-around"}},[e("v-btn",{attrs:{depressed:"",color:"primary","append-icon":"mdi-printer"},on:{click:t.printList}},[t._v("Print ")])],1)]],2)],1),e("div",{attrs:{id:"print"}},[e("v-card",[e("v-data-table",{attrs:{headers:t.headers,items:t.itemsWithSno,search:t.search,dense:"",loading:t.loadingstatus,"loading-text":"Loading... Please wait","disable-pagination":"","hide-default-footer":""},scopedSlots:t._u([{key:"no-data",fn:function(){return[e("v-btn",{attrs:{color:"primary"},on:{click:t.initialize}},[t._v("Reset")])]},proxy:!0}])})],1)],1)],1)},i=[],o=a("0e68"),r={data(){return{search:"",date:(new Date).toISOString().substr(0,7),nowDate:(new Date).toISOString().substr(0,7),menu2:!1,loadingstatus:!0,summary:{},headers:[{text:"#",value:"sno"},{text:"OT ID",align:"start",value:"invoice_id"},{text:"Items",value:"invoice_description"},{text:"Operation",value:"operation_patient.operation.name"},{text:"Created Date",value:"operation_patient.opp_date"},{text:"Bill Date",value:"date"},{text:"OT Bill Amount",value:"invoice_amount"},{text:"Patient ID",value:"operation_patient.patient.patient_id"},{text:"Patient Name",value:"operation_patient.patient.patient_name"},{text:"Doctor",value:"operation_patient.doctor.dr_name"}],datalists:[],items:[{text:"Dashboard",disabled:!1,href:"/"},{text:"Operations",disabled:!0,href:"patients"}],returnUrl:o["a"].defaults.headers.common.app_URL}},created(){this.initialize()},computed:{itemsWithSno(){return this.datalists.map((t,e)=>({...t,sno:e+1}))}},methods:{initialize(){o["a"].get("lens/lens-report?date="+this.date).then(t=>{this.datalists=t.data.data,this.loadingstatus=!1}).catch(t=>{console.log(t),this.errors.push(t)})},printList(){var t="toolbar=yes,location=no,";t+="directories=yes,menubar=yes,",t+="scrollbars=yes,width=650, height=600, left=100, top=25";var e=document.getElementById("print").innerHTML,a=window.open("","",t);a.document.open(),a.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'),a.document.write('"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'),a.document.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">'),a.document.write('<style type="text/css">body{ margin:0px;'),a.document.write("font-family:verdana,Arial;color:#000;"),a.document.write("font-family:Verdana, Geneva, sans-serif; font-size:10px;}"),a.document.write("table td, table th {border: 1px solid #ddd;padding: 0px; font-size:9px;}"),a.document.write("table th, table th {padding-top: 12px;padding-bottom: 12px;text-align: left;background-color: #4CAF50;color: white;}"),a.document.write("table {width: 100%;}"),a.document.write("a{color:#000;text-decoration:none;} </style>"),a.document.write('</head><body onLoad="self.print()"><center>'),a.document.write(e),a.document.write("</center></body></html>"),a.document.close(),a.focus()},dateSelect(){this.loadingstatus=!0,this.initialize()}}},s=r,d=(a("efc9"),a("2877")),l=Object(d["a"])(s,n,i,!1,null,"9982928c",null);e["default"]=l.exports}}]);
//# sourceMappingURL=chunk-5200f384.43c0c2ff.js.map