Merge branch 'nice_dev' into develop
This commit is contained in:
commit
ba5a80e95b
3 changed files with 19 additions and 23 deletions
|
|
@ -103,13 +103,13 @@ const maxPage = ref<number>(1);
|
|||
function closeModal() {
|
||||
modal.value = false;
|
||||
formFilter.page = 1;
|
||||
formFilter.keyword = ''
|
||||
formFilter.keyword = "";
|
||||
}
|
||||
|
||||
/** function เรียกรายชื่อ คนเลื่อนเงินเดือน*/
|
||||
async function fetchListPerson() {
|
||||
function fetchListPerson() {
|
||||
showLoader();
|
||||
await http
|
||||
http
|
||||
.post(config.API.salaryListPerson, formFilter)
|
||||
.then((res) => {
|
||||
const data = res.data.result.data;
|
||||
|
|
@ -129,7 +129,7 @@ async function fetchListPerson() {
|
|||
* function ยืนยันการเพิ่มคนเลื่อนเงินเดือน
|
||||
* @param data ข้อมูลคนที่เพิ่ม
|
||||
*/
|
||||
async function onClickAddPerson(data: DataPerson) {
|
||||
function onClickAddPerson(data: DataPerson) {
|
||||
const body: DataPersonReq = {
|
||||
id: store.groupId,
|
||||
type: store.tabType,
|
||||
|
|
@ -138,8 +138,8 @@ async function onClickAddPerson(data: DataPerson) {
|
|||
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
await http
|
||||
() => {
|
||||
http
|
||||
.post(config.API.salaryPeriodProfile, body)
|
||||
.then(() => {
|
||||
props.fetchData?.();
|
||||
|
|
|
|||
|
|
@ -181,9 +181,9 @@ const maxPage = ref<number>(1);
|
|||
* function เรียกข้อมูลจำนวนโควต้า
|
||||
* @param id กลุ่ม
|
||||
*/
|
||||
async function fetchDataQuota(id: string) {
|
||||
function fetchDataQuota(id: string) {
|
||||
showLoader();
|
||||
await http
|
||||
http
|
||||
.get(config.API.salaryListPeriodQuota(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
|
|
@ -212,7 +212,7 @@ async function fetchDataQuota(id: string) {
|
|||
* function เรียกข้อมูลรายชื่อ
|
||||
* @param id กลุ่ม
|
||||
*/
|
||||
async function fetchDataPeriod(id: string) {
|
||||
function fetchDataPeriod(id: string) {
|
||||
rows.value = [];
|
||||
const formData = {
|
||||
page: formFilter.page.toString(),
|
||||
|
|
@ -222,7 +222,7 @@ async function fetchDataPeriod(id: string) {
|
|||
isRetire: store.tabType === "RETIRE" ? true : null,
|
||||
};
|
||||
|
||||
await http
|
||||
http
|
||||
.put(config.API.salaryListPeriodORG(id), formData)
|
||||
.then((res) => {
|
||||
rows.value = res.data.result.data;
|
||||
|
|
@ -234,7 +234,7 @@ async function fetchDataPeriod(id: string) {
|
|||
}
|
||||
|
||||
/**function เปลี่ยนกลุ่ม*/
|
||||
async function changeTabGroup() {
|
||||
function changeTabGroup() {
|
||||
formFilter.page = 1;
|
||||
formFilter.pageSize = 10;
|
||||
formFilter.keyword = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue