薪资核算详情页面添加高级搜索的功能以及添加列表头公式查看的接口

This commit is contained in:
liyongshun 2022-08-02 18:17:08 +08:00
parent 2097d2faf7
commit f8f485c6a7
1 changed files with 29 additions and 24 deletions

View File

@ -144,7 +144,7 @@ export const getSalaryAcctList = params => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -156,7 +156,7 @@ export const saveBasic = params => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -173,7 +173,7 @@ export const reducedemployeeList = params => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -185,7 +185,7 @@ export const acctemployeeList = params => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -197,7 +197,7 @@ export const checkTaxAgent = params => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -215,7 +215,7 @@ export const saveAcctemployee = params => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -225,7 +225,7 @@ export const exportReducedEmployee = (id) => {
fetch('/api/bs/hrmsalary/salaryacct/reducedemployee/export?salaryAcctRecordId=' + id).then(res => res.blob().then(blob => {
var filename=`导出环比减少人员.xlsx`
var a = document.createElement('a');
var url = window.URL.createObjectURL(blob);
var url = window.URL.createObjectURL(blob);
a.href = url;
a.download = filename;
a.click();
@ -239,7 +239,7 @@ export const exportAcctEmployee = (id) => {
fetch('/api/bs/hrmsalary/salaryacct/acctemployee/export?salaryAcctRecordId=' + id).then(res => res.blob().then(blob => {
var filename=`导出环比减少人员.xlsx`
var a = document.createElement('a');
var url = window.URL.createObjectURL(blob);
var url = window.URL.createObjectURL(blob);
a.href = url;
a.download = filename;
a.click();
@ -254,7 +254,7 @@ export const deleteAcctemployee = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -266,7 +266,7 @@ export const acctResultList = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -278,7 +278,7 @@ export const acctresultAccounting = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -290,7 +290,7 @@ export const comparisonresultList = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -302,7 +302,7 @@ export const refreshTaxAgent = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -319,7 +319,7 @@ export const deleteSalaryacct = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -336,7 +336,7 @@ export const reAccounting = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -348,7 +348,7 @@ export const saveAcctResult = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -364,7 +364,7 @@ export const getImportTemplate = (salaryItemIds, salaryAcctRecordId) => {
fetch('/api/bs/hrmsalary/salaryacct/acctresult/importtemplate/export?salaryItemIds=' + salaryItemIds + "&salaryAcctRecordId=" + salaryAcctRecordId).then(res => res.blob().then(blob => {
var filename=`薪资核算.xlsx`
var a = document.createElement('a');
var url = window.URL.createObjectURL(blob);
var url = window.URL.createObjectURL(blob);
a.href = url;
a.download = filename;
a.click();
@ -379,7 +379,7 @@ export const previewAcctResult= (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -391,7 +391,7 @@ export const importAcctResult = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -417,7 +417,7 @@ export const comparisonResultList = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -427,7 +427,7 @@ export const exportImportTemplate = (salaryAcctRecordId) => {
fetch('/api/bs/hrmsalary/salaryacct/comparisonresult/importtemplate/export?salaryAcctRecordId=' + salaryAcctRecordId).then(res => res.blob().then(blob => {
var filename=`线下对比导入模板.xlsx`
var a = document.createElement('a');
var url = window.URL.createObjectURL(blob);
var url = window.URL.createObjectURL(blob);
a.href = url;
a.download = filename;
a.click();
@ -442,7 +442,7 @@ export const previewComparisonResult = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -454,7 +454,7 @@ export const importComparisonExcelAcctResult = (params) => {
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
},
body: JSON.stringify(params)
}).then(res => res.json())
}
@ -464,7 +464,7 @@ export const exportComparisonResult = (salaryAcctRecordId) => {
fetch('/api/bs/hrmsalary/salaryacct/comparisonresult/export?salaryAcctRecordId=' + salaryAcctRecordId).then(res => res.blob().then(blob => {
var filename=`线下对比结果.xlsx`
var a = document.createElement('a');
var url = window.URL.createObjectURL(blob);
var url = window.URL.createObjectURL(blob);
a.href = url;
a.download = filename;
a.click();
@ -477,3 +477,8 @@ export const getCalculateProgress = (id) => {
return WeaTools.callApi('/api/bs/hrmsalary/progress/getRate?cacheKey=ACCT_PROGRESS_' + id, 'get', {});
}
// 核算进度条
export const getColumnDesc = (params) => {
return WeaTools.callApi('/api/bs/hrmsalary/salaryacct/acctresult/getColumnDesc', 'get', params);
}