custom/网联清算有限公司(0401)

This commit is contained in:
lys 2025-11-03 13:41:19 +08:00
parent 59c17ee264
commit c18fb35511
1 changed files with 3 additions and 2 deletions

View File

@ -239,13 +239,14 @@ class Index extends Component {
childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*"); childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
}; };
handleChangeProgramme = (type, schemeId, payload) => { handleChangeProgramme = (type, schemeId, payload) => {
const { archivesStore: { welfareProfileForm } } = this.props;
this.getPaymentForm({ ...payload, welfareTypeEnum: welfareTypeEnum[type], schemeId }) this.getPaymentForm({ ...payload, welfareTypeEnum: welfareTypeEnum[type], schemeId })
.then(({ status, data }) => { .then(({ status, data }) => {
if (status) { if (status) {
let { data: defVal, items, comData, comItems } = data; let { data: defVal, items, comData, comItems } = data;
if (type !== "other") { if (type !== "other") {
const replaceValue = type === "social" ? this.state.welfareEditSlide.socialBaseData["SOCIAL_SECURITY"].base : const replaceValue = type === "social" ? (welfareProfileForm.getFormParams().socialBase ? welfareProfileForm.getFormParams().socialBase : this.state.welfareEditSlide.socialBaseData["SOCIAL_SECURITY"].base) :
this.state.welfareEditSlide.fundBaseData["ACCUMULATION_FUND"].base; (welfareProfileForm.getFormParams().fundBase ? welfareProfileForm.getFormParams().fundBase : this.state.welfareEditSlide.fundBaseData["ACCUMULATION_FUND"].base);
defVal = _.reduce(_.keys(defVal), (pre, cur) => { defVal = _.reduce(_.keys(defVal), (pre, cur) => {
if (!parseFloat(defVal[cur]) && !!replaceValue) { if (!parseFloat(defVal[cur]) && !!replaceValue) {
return { ...pre, [cur]: replaceValue }; return { ...pre, [cur]: replaceValue };