custom/钱智
This commit is contained in:
parent
811083310b
commit
900f43c2b7
|
|
@ -83,8 +83,8 @@ export const getAdminTaxAgentList = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// 表单字段对应的接口
|
// 表单字段对应的接口
|
||||||
export const getWelfareList = () => {
|
export const getWelfareList = (params = {}) => {
|
||||||
return WeaTools.callApi("/api/bs/hrmsalary/siaccount/getWelfareList", "get", {});
|
return WeaTools.callApi("/api/bs/hrmsalary/siaccount/getWelfareList", "get", params);
|
||||||
};
|
};
|
||||||
// 补差表单字段对应的接口
|
// 补差表单字段对应的接口
|
||||||
export const getBalanceWelfareList = () => {
|
export const getBalanceWelfareList = () => {
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,8 @@ class StandingBookCalcImportDialog extends Component {
|
||||||
|
|
||||||
async componentWillReceiveProps(nextProps, nextContext) {
|
async componentWillReceiveProps(nextProps, nextContext) {
|
||||||
if (nextProps.visible !== this.props.visible && nextProps.visible) {
|
if (nextProps.visible !== this.props.visible && nextProps.visible) {
|
||||||
const { fieldUrl } = nextProps;
|
const { fieldUrl, tmpUrl } = nextProps;
|
||||||
const { data } = await API[fieldUrl]();
|
const { data } = await API[fieldUrl]({ listType: tmpUrl === "exportSiaccountWelfareImporttemplate" ? "1" : "2" });
|
||||||
this.setState({
|
this.setState({
|
||||||
importDialog: {
|
importDialog: {
|
||||||
...this.state.importDialog, importResult: {}, link: this.handleExportTemp, title: getLabel(24023, "数据导入")
|
...this.state.importDialog, importResult: {}, link: this.handleExportTemp, title: getLabel(24023, "数据导入")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue