ปรับ path report เลื่อนเงินเดือน
This commit is contained in:
parent
108e3f52fe
commit
80e0a459ea
3 changed files with 43 additions and 39 deletions
|
|
@ -309,15 +309,15 @@ function fetchDataPeriodNew() {
|
|||
}
|
||||
|
||||
function onClickDownload(data: DataOption) {
|
||||
if (data.id === "gov1-06" || data.id === "gov2-06") {
|
||||
if (data.id === "gov-06") {
|
||||
const formData = {
|
||||
type: "HAFT",
|
||||
startDate:
|
||||
data.id === "gov1-06"
|
||||
data.id === "gov-06"
|
||||
? `${props?.roundFilter?.year - 1}-10-01`
|
||||
: `${props?.roundFilter?.year}-04-01`,
|
||||
endDate:
|
||||
data.id === "gov1-06"
|
||||
data.id === "gov-06"
|
||||
? `${props?.roundFilter?.year}-03-31`
|
||||
: `${props?.roundFilter?.year}-09-30`,
|
||||
};
|
||||
|
|
@ -336,6 +336,10 @@ function onClickDownload(data: DataOption) {
|
|||
} else {
|
||||
if (props.rootId && props.periodId) {
|
||||
showLoader();
|
||||
console.log("id==>", data.id);
|
||||
console.log("rootId==>", props.rootId);
|
||||
console.log("periodId==>", props.periodId);
|
||||
|
||||
http
|
||||
.get(
|
||||
config.API.salaryReportListsByid(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue