custom/钱智

This commit is contained in:
lys 2025-01-20 17:18:18 +08:00
parent 811083310b
commit 900f43c2b7
2 changed files with 4 additions and 4 deletions

View File

@ -83,8 +83,8 @@ export const getAdminTaxAgentList = () => {
};
// 表单字段对应的接口
export const getWelfareList = () => {
return WeaTools.callApi("/api/bs/hrmsalary/siaccount/getWelfareList", "get", {});
export const getWelfareList = (params = {}) => {
return WeaTools.callApi("/api/bs/hrmsalary/siaccount/getWelfareList", "get", params);
};
// 补差表单字段对应的接口
export const getBalanceWelfareList = () => {

View File

@ -29,8 +29,8 @@ class StandingBookCalcImportDialog extends Component {
async componentWillReceiveProps(nextProps, nextContext) {
if (nextProps.visible !== this.props.visible && nextProps.visible) {
const { fieldUrl } = nextProps;
const { data } = await API[fieldUrl]();
const { fieldUrl, tmpUrl } = nextProps;
const { data } = await API[fieldUrl]({ listType: tmpUrl === "exportSiaccountWelfareImporttemplate" ? "1" : "2" });
this.setState({
importDialog: {
...this.state.importDialog, importResult: {}, link: this.handleExportTemp, title: getLabel(24023, "数据导入")