diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/index.js index 8fb623fa..2c470e37 100644 --- a/pc4mobx/hrmSalary/pages/payrollFiles/index.js +++ b/pc4mobx/hrmSalary/pages/payrollFiles/index.js @@ -237,7 +237,7 @@ class Index extends Component { }); }; queryList = (url) => { - const { loading, pageInfo, searchItemsValue } = this.state; + const { loading, pageInfo, searchItemsValue, selectedKey } = this.state; const { payrollFilesStore: { tableStore, queryList }, taxAgentStore: { showOperateBtn } } = this.props; const payload = { ...pageInfo }; this.setState({ @@ -255,7 +255,8 @@ class Index extends Component { total, current, pageSize - } + }, + tabCount: { ...this.state.tabCount, [tabCountKey[selectedKey]]: total } }); } }); @@ -843,3 +844,11 @@ const HelpfulDiv = () => { 3.调整个税扣缴义务人:档案中已存在的人员批量调整个税扣缴义务人(包括返聘人员的情况); ; }; + +export const tabCountKey = { + suspend: "SUSPEND", + stop: "STOP", + fixed: "FIXED", + pending: "PENDING" +}; + diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js index 3f2465ab..ea9c5464 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js @@ -56,6 +56,18 @@ export default class AccumulationFundForm extends React.Component { form.data = request; setAccumulationFundPaymentForm(form); }; + handleBlurChange = ({ key, value, minNum, maxNum }) => { + const params = { + [key]: _.isNil(value) ? "" : (Number(value) > maxNum && maxNum !== 0) ? maxNum : + (Number(value) < minNum && minNum !== 0) ? minNum : value.toString() + }; + const { archivesStore: { accumulationFundPaymentForm, setAccumulationFundPaymentForm } } = this.props; + const { data } = accumulationFundPaymentForm; + let request = { ...data, ...params }; + let form = { ...accumulationFundPaymentForm }; + form.data = request; + setAccumulationFundPaymentForm(form); + }; handleChangeWelfare = (val) => { const { archivesStore: { accumulationFundPaymentForm, setAccumulationFundPaymentForm } } = this.props; let paymentData = toJS(accumulationFundPaymentForm.data); @@ -162,6 +174,7 @@ export default class AccumulationFundForm extends React.Component { label: child.label, value: !_.isNil(paymentData[child["domkey"][0]]) ? paymentData[child["domkey"][0]].toString() : "", onChange: this.handlePaymentChange, + onBlurChange: this.handleBlurChange, min: child.min, max: child.max }) diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js index 4516e770..fed359de 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js @@ -54,6 +54,18 @@ export default class OtherForm extends React.Component { form.data = request; setOtherPaymentForm(form); }; + handleBlurChange = ({ key, value, minNum, maxNum }) => { + const params = { + [key]: _.isNil(value) ? "" : (Number(value) > maxNum && maxNum !== 0) ? maxNum : + (Number(value) < minNum && minNum !== 0) ? minNum : value.toString() + }; + const { archivesStore: { otherPaymentForm, setOtherPaymentForm } } = this.props; + const { data } = otherPaymentForm; + let request = { ...data, ...params }; + let form = { ...otherPaymentForm }; + form.data = request; + setOtherPaymentForm(form); + }; handleChangeWelfare = (val) => { const { archivesStore: { otherPaymentForm, setOtherPaymentForm } } = this.props; @@ -142,6 +154,7 @@ export default class OtherForm extends React.Component { label: child.label, value: !_.isNil(paymentData[child["domkey"][0]]) ? paymentData[child["domkey"][0]].toString() : "", onChange: this.handlePaymentChange, + onBlurChange: this.handleBlurChange, min: child.min, max: child.max }) diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js index 0d96be4e..0bae1877 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js @@ -54,6 +54,18 @@ export default class SocialSecurityForm extends React.Component { form.data = request; setSocialSecurityPaymentForm(form); }; + handleBlurChange = ({ key, value, minNum, maxNum }) => { + const params = { + [key]: _.isNil(value) ? "" : (Number(value) > maxNum && maxNum !== 0) ? maxNum : + (Number(value) < minNum && minNum !== 0) ? minNum : value.toString() + }; + const { archivesStore: { socialSecurityPaymentForm, setSocialSecurityPaymentForm } } = this.props; + const { data } = socialSecurityPaymentForm; + let request = { ...data, ...params }; + let form = { ...socialSecurityPaymentForm }; + form.data = request; + setSocialSecurityPaymentForm(form); + }; handleChangeWelfare = (val) => { const { archivesStore: { socialSecurityPaymentForm, setSocialSecurityPaymentForm } } = this.props; let paymentData = toJS(socialSecurityPaymentForm.data); @@ -139,7 +151,7 @@ export default class SocialSecurityForm extends React.Component {