ปรับ code รายการเงินเดือน
This commit is contained in:
parent
40a771e8f0
commit
16db5c593b
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?.();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue