累计专项明细
This commit is contained in:
parent
6ea3bfef6e
commit
2d981f7253
|
|
@ -48,8 +48,8 @@ export const getCumDeductDetailList = params => {
|
|||
}
|
||||
|
||||
//数据采集-累计专项附加扣除-导出明细
|
||||
export const exportCumDeductDetailList = ids => {
|
||||
fetch('/api/bs/hrmsalary/addUpDeduction/exportDetail?ids=' + ids).then(res => res.blob().then(blob => {
|
||||
export const exportCumDeductDetailList = (id, ids="") => {
|
||||
fetch('/api/bs/hrmsalary/addUpDeduction/exportDetail?accumulatedSpecialAdditionalDeductionId='+id+'&ids=' + ids).then(res => res.blob().then(blob => {
|
||||
var filename=`累计专项附加扣除.xlsx`
|
||||
var a = document.createElement('a');
|
||||
var url = window.URL.createObjectURL(blob);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export const getCumSituationSaCondition = params => {
|
|||
}
|
||||
|
||||
//数据采集-累计情况-导出
|
||||
export const exportCumSituationList = params => {
|
||||
export const exportCumSituationList = ids => {
|
||||
fetch('/api/bs/hrmsalary/addUpSituation/export?ids=' + ids).then(res => res.blob().then(blob => {
|
||||
var filename=`往期累计情况(工资、薪金).xlsx`
|
||||
var a = document.createElement('a');
|
||||
|
|
@ -48,8 +48,8 @@ export const getCumSituationDetailList = params => {
|
|||
}
|
||||
|
||||
//数据采集-累计情况-导出明细
|
||||
export const exportCumSituationDetailList = ids => {
|
||||
fetch('/api/bs/hrmsalary/addUpSituation/exportDetail?ids=' + ids).then(res => res.blob().then(blob => {
|
||||
export const exportCumSituationDetailList = (id, ids="") => {
|
||||
fetch('/api/bs/hrmsalary/addUpSituation/exportDetail?accumulatedSituationId='+id+'&ids=' + ids).then(res => res.blob().then(blob => {
|
||||
var filename=`往期累计情况(工资、薪金).xlsx`
|
||||
var a = document.createElement('a');
|
||||
var url = window.URL.createObjectURL(blob);
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ export const getOtherDeductDetailList = params => {
|
|||
}
|
||||
|
||||
//数据采集-其他免税扣除-导出明细
|
||||
export const exportOtherDeductDetailList = ids => {
|
||||
fetch('/api/bs/hrmsalary/otherDeduction/exportDetail?ids=' + ids).then(res => res.blob().then(blob => {
|
||||
export const exportOtherDeductDetailList = (id, ids) => {
|
||||
fetch('/api/bs/hrmsalary/otherDeduction/exportDetail?otherTaxExemptDeductionId='+id+'&ids=' + ids).then(res => res.blob().then(blob => {
|
||||
var filename=`其他免税扣除.xlsx`
|
||||
var a = document.createElement('a');
|
||||
var url = window.URL.createObjectURL(blob);
|
||||
|
|
|
|||
|
|
@ -242,8 +242,8 @@ export default class CumDeduct extends React.Component {
|
|||
]
|
||||
|
||||
const handleExportAllDetailClick = () => {
|
||||
const {cumDeductStore: {exportCumDeductDetailList} } =this.props;
|
||||
exportCumDeductDetailList();
|
||||
const {cumDeductStore: {exportCumDeductDetailList, currentRecord} } =this.props;
|
||||
exportCumDeductDetailList(currentRecord.id);
|
||||
}
|
||||
|
||||
const handleExportSelectedDetailClick = () => {
|
||||
|
|
@ -251,9 +251,8 @@ export default class CumDeduct extends React.Component {
|
|||
message.warning("未选择条目")
|
||||
return
|
||||
}
|
||||
const { cumDeductStore: { exportCumDeductDetailList } } = this.props;
|
||||
exportCumDeductList(detailSelectedRowKeys.join(","))
|
||||
|
||||
const { cumDeductStore: { exportCumDeductDetailList, currentRecord } } = this.props;
|
||||
exportCumDeductDetailList(currentRecord.id, detailSelectedRowKeys.join(","))
|
||||
}
|
||||
|
||||
const renderBtns = () => {
|
||||
|
|
|
|||
|
|
@ -228,8 +228,8 @@ export default class CumSituation extends React.Component {
|
|||
]
|
||||
|
||||
const handleExportAllDetailClick = () => {
|
||||
const {cumSituationStore: {exportCumDeductDetailList} } =this.props;
|
||||
exportCumDeductDetailList();
|
||||
const {cumSituationStore: {exportCumSituationDetailList, currentRecord} } =this.props;
|
||||
exportCumSituationDetailList(currentRecord.id);
|
||||
}
|
||||
|
||||
const handleExportSelectedDetailClick = () => {
|
||||
|
|
@ -237,9 +237,8 @@ export default class CumSituation extends React.Component {
|
|||
message.warning("未选择条目")
|
||||
return
|
||||
}
|
||||
const { cumSituationStore: { exportCumDeductDetailList } } = this.props;
|
||||
exportCumDeductList(detailSelectedRowKeys.join(","))
|
||||
|
||||
const { cumSituationStore: { exportCumSituationDetailList, currentRecord } } = this.props;
|
||||
exportCumSituationDetailList(currentRecord.id, detailSelectedRowKeys.join(","))
|
||||
}
|
||||
|
||||
const renderBtns = () => {
|
||||
|
|
|
|||
|
|
@ -229,8 +229,8 @@ export default class OtherDeduct extends React.Component {
|
|||
]
|
||||
|
||||
const handleExportAllDetailClick = () => {
|
||||
const {otherDeductStore: {exportCumDeductDetailList} } =this.props;
|
||||
exportCumDeductDetailList();
|
||||
const {otherDeductStore: {exportOtherDeductDetailList, currentRecord} } =this.props;
|
||||
exportOtherDeductDetailList(currentRecord.id);
|
||||
}
|
||||
|
||||
const handleExportSelectedDetailClick = () => {
|
||||
|
|
@ -238,8 +238,8 @@ export default class OtherDeduct extends React.Component {
|
|||
message.warning("未选择条目")
|
||||
return
|
||||
}
|
||||
const { otherDeductStore: { exportCumDeductDetailList } } = this.props;
|
||||
exportCumDeductList(detailSelectedRowKeys.join(","))
|
||||
const { otherDeductStore: { exportOtherDeductDetailList } } = this.props;
|
||||
exportOtherDeductDetailList(currentRecord.id, detailSelectedRowKeys.join(","))
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -123,8 +123,8 @@ export class CumDeductStore {
|
|||
}
|
||||
|
||||
// 导出明细
|
||||
@action exportCumDeductDetailList = (ids = "") => {
|
||||
API.exportCumDeductDetailList(ids)
|
||||
@action exportCumDeductDetailList = (id, ids = "") => {
|
||||
API.exportCumDeductDetailList(id, ids)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -123,8 +123,8 @@ export class CumSituationStore {
|
|||
}
|
||||
|
||||
// 导出明细
|
||||
@action exportCumDeductDetailList = (ids = "") => {
|
||||
API.exportCumDeductDetailList(ids)
|
||||
@action exportCumSituationDetailList = (id, ids = "") => {
|
||||
API.exportCumSituationDetailList(id, ids)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -123,8 +123,8 @@ export class OtherDeductStore {
|
|||
}
|
||||
|
||||
// 导出明细
|
||||
@action exportCumDeductDetailList = (ids = "") => {
|
||||
API.exportCumDeductDetailList(ids)
|
||||
@action exportOtherDeductDetailList = (id, ids = "") => {
|
||||
API.exportOtherDeductDetailList(id, ids)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue