hrms-manual/dist/assets/Main-ebd1afb4.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2023-09-06 14:51:44 +07:00
import{Q as B}from"./QTab-3e1855a2.js";import{Q as fe}from"./QTabs-95f81e84.js";import{d as ce,a8 as ve,a as o,r as ye,o as be,W as ge,w as Ve,e as c,f as L,g as t,j as a,A as u,a2 as q,ac as N,C as m,aj as xe,s as V,v as k,m as Qe,p as we,F,i as ke,D as x,ah as H,al as Y,aH as T,an as _e,I as Ce,ao as De,ag as K,a4 as W}from"./index-3a2b6cd5.js";import{Q as _}from"./QSelect-809bd0f2.js";import{Q as ze}from"./QTooltip-5ceb1b84.js";import{Q as Re}from"./QSpace-5fefe78e.js";import{Q as he}from"./QTh-95cd2a9c.js";import{Q as G}from"./QTr-c5e846f1.js";import{Q as C}from"./QTd-71639d11.js";import{Q as Ie}from"./QPagination-e0f4fffb.js";import{Q as Se}from"./QTable-d329bd84.js";import{Q as U,a as b}from"./QItemSection-843d83e6.js";import{Q}from"./QItemLabel-37c56e27.js";import{Q as qe}from"./QList-1b100cb9.js";import{C as Ne}from"./ClosePopup-d3cbd1bb.js";import{u as Te}from"./use-quasar-1e7f9a8b.js";import{c as J}from"./app.config-a8647d06.js";import{u as Ue}from"./mixin-183f301b.js";import"./QResizeObserver-889eb2e3.js";import"./rtl-36dd996b.js";import"./QChip-f43cc21c.js";import"./QMenu-59199f2b.js";import"./position-engine-4e9b318c.js";import"./selection-8094913b.js";import"./format-312d1398.js";import"./use-fullscreen-273d7265.js";import"./index-932e35b0.js";import"./QSpinnerCube-b3e27bc1.js";const Ee=u("div",{class:"toptitle text-dark col-12 row items-center"}," ประกาศเกษียณอายุราชการ ",-1),$e={class:"row col-12"},Ae={class:"col-12 row q-pa-md"},Pe={class:"row col-12"},je={class:"row col-12 q-col-gutter-sm"},Me={class:"col-12 q-pt-sm"},Oe={class:"text-weight-medium"},Be=u("div",{class:"text-h6"},"เพิ่มประกาศ",-1),Le={class:"q-pa-md"},xl=ce({__name:"Main",setup(Fe){const X=Ue(),{messageError:E,date2Thai:Z,showLoader:ee,hideLoader:le}=X,$=ve(),g=Te(),D=o(!1),s=o(""),w=o({sortBy:"desc",descending:!1,page:1,rowsPerPage:10}),z=o([]),r=o(""),p=o("officer"),R=o(["no","Date","retireNumber","typeReport"]),A=o([{name:"no",align:"left",label:"ลำดับ",field:"no",headerStyle:"font-size: 14px",style:"font-size: 14px"},{name:"Date",align:"left",label:"วันที่สร้าง",field:"Date",headerStyle:"font-size: 14px",style:"font-size: 14px"},{name:"retireNumber",align:"left",label:"จำนวนผู้เกษียณ",field:"retireNumber",headerStyle:"font-size: 14px",style:"font-size: 14px"},{name:"typeReport",align:"left",label:"ประเภทประกาศ",field:"typeReport",headerStyle:"font-size: 14px",style:"font-size: 14px"}]),v=new Date().getFullYear(),f=o([]),P=o("officer");o(["no","name","retireNumber"]);const h=ye([]),te=()=>{h.push({id:v,name:v+543}),S.value=h[0].id,j(p.value,v)},j=async(n,l)=>{s.value="",ee(),await K.get(J.API.retirement(n,l)).then(e=>{f.value=[];let d=e.data.result;f.value=d.map(i=>({id:i.id,Date:Z(i.createdAt),year:i.year,retireNumber:i.round,total:i.total,round:i.round,typeReport:me(i.typeReport),json:i.json,document:i.document})),z.value=f.value,f.value.sort((i,pe)=>i.round-pe.round),ne(f.value)}).catch(e=>{E(g,e)}).finally(()=>{le()})};be(()=>{te()}),o([{name:"no",align:"left",label:"ลำดับ",sortable:!0,field:"no",headerStyle:"font-size: 14px",style:"font-size: 14px"},{name:"name",align:"left",label:"วันที่สร้าง",sortable:!0,field:"name",headerStyle:"font-size: 14px",style:"font-size: 14px"},{name:"retireNumber",align:"left",label:"จำนวนผู้เกษียณ",sortable:!0,field:"total",headerStyle:"font-size: 14px",style:"font-size: 14px"}]),o([{no:"1",name:"นายใจดี ยอดใจ ",position:"นักวิชาการพัสดุ",level:"ปฏิบัติการ",institution:"กลุ่มงานโครงสร้างและอัตรากำลัง ๒"},{no:"2",name:"นายจักกริน บัณฑิต",position:"นักวิชาการพัสดุ",level:"ปฏิบัติการ",institution:"กลมงานโครงสรางและอตรากำล<EFBFBD><EFBFBD>