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 : 18.118.93.61
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/ViewQPScr-BazrVDvl.js |
import{r as p,I as _,a as m,v as d,E as n}from"./index-Dyw5MJqL.js";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},A=function(a,o){return p.createElement(_,m({},a,{ref:o,icon:i}))},y=p.forwardRef(A);const f=r=>async(a,o)=>{const s=o();let t=localStorage.getItem("dbname");a({type:"SET_LOADER"}),await d.post("/app.php?a=viewQPData&db="+t+"&funivcode="+s.loginfo.userData.funivcode,r).then(e=>{a({type:"UNSET_LOADER"}),e.data.error_code===0?a({type:"GET_VIEW_QP_DATA",payload:e.data.data}):(a({type:"CLEAR_VIEW_QP_DATA",payload:[]}),n("info",e.data.data.msg))}).catch(e=>{a({type:"UNSET_LOADER"}),n("error",e.message)})},D=r=>async(a,o)=>{const s=o();let t=localStorage.getItem("dbname");a({type:"SET_LOADER"}),await d.post("/app.php?a=viewFinalQP&db="+t+"&funivcode="+s.loginfo.userData.funivcode,r).then(e=>{if(a({type:"UNSET_LOADER"}),e.data.error_code===0){const E=e.data.data.map((c,l)=>({...c,key:l,slno:l+1}));a({type:"VIEW_FINAL_QP_DATA",payload:E})}else a({type:"CLEAR_FINAL_QP_DATA",payload:[]}),n("info",e.data.data.msg)}).catch(e=>{a({type:"UNSET_LOADER"}),n("error",e.message)})},u=r=>async(a,o)=>{o();let s=localStorage.getItem("dbname");a({type:"SET_LOADER"}),await d.post("/app.php?a=saveFinalQPData&db="+s,r).then(t=>{if(a({type:"UNSET_LOADER"}),t.data.error_code===0){n("info",t.data.data.msg);return}else{n("info",t.data.data.msg);return}}).catch(t=>{a({type:"UNSET_LOADER"}),n("error",t.message)})};export{y as R,D as a,f as g,u as s};
|