0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.12.163.23


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/GenerateBill-DTPNvEdA.js

import{v as c,E as p}from"./index-CXvb2HGZ.js";const A=()=>async(e,r)=>{try{const t=r();let s=localStorage.getItem("dbname");e({type:"SET_LOADER"});const a=await c.get("/app.php?a=getTeahcerData&db="+s);if(e({type:"UNSET_LOADER"}),a.data.error_code===0){const o=a.data.data.map((n,l)=>({...n,key:l,fslno:l+1}));e({type:"GENERATE_BILL",payload:o})}else e({type:"CLEAR_GENERATE_BILL",payload:[]}),p("info",a.data.data.msg)}catch(t){console.log("error",t.message)}},D=(e,r,t,s,a,o,n,l)=>async(E,m)=>{try{const g=m();let _=localStorage.getItem("dbname");E({type:"SET_LOADER"});const d=await c.get("/app.php?a=getTeachValDet&db="+_+"&fdeggrp="+e+"&fdegree="+r+"&fsem="+t+"&freportopt="+s+"&fteacher="+a+"&ffrmDate="+o+"&ftoDate="+n+"&fdisptyp="+l);if(E({type:"UNSET_LOADER"}),d.data.error_code===0){const T=d.data.data.map((f,y)=>({...f,key:y,fslno:y+1}));E({type:"TEACH_VAL_DET",payload:T})}else E({type:"CLEAR_TEACH_VAL_DET",payload:[]}),p("info",d.data.data.msg)}catch(g){console.log("error",g.message)}},R=e=>async(r,t)=>{try{const s=t();let a=localStorage.getItem("dbname");r({type:"SET_LOADER"});const o=await c.post("/app.php?a=saveValBillDet&db="+a,e);r({type:"UNSET_LOADER"}),o.data.error_code===0?p("success",o.data.data.msg):p("info",o.data.data.msg)}catch(s){console.log("error",s.message)}},b=()=>async(e,r)=>{try{const t=r();let s=localStorage.getItem("dbname");e({type:"SET_LOADER"});const a=await c.get("/app.php?a=getGenerateBillReport&db="+s);if(e({type:"UNSET_LOADER"}),a.data.error_code===0){const o=a.data.data.map((n,l)=>({...n,key:l,fslno:l+1}));e({type:"GENERATE_BILL_DET",payload:o})}else e({type:"CLEAR_GENERATE_BILL_DET",payload:[]}),p("info",a.data.data.msg)}catch(t){console.log("error",t.message)}};export{b as a,A as g,R as s,D as v};