custom/陕西万众-薪资账套薪资核算配置
This commit is contained in:
parent
5340dba06d
commit
0162ec0369
|
|
@ -13,6 +13,7 @@ import SlideModalTitle from "../../../components/slideModalTitle";
|
|||
import SalaryItemForm from "../../salaryItem/salaryItemForm";
|
||||
import { sxwzApprovalConditions } from "../config";
|
||||
import "./index.less";
|
||||
import { getConditionDomkeys } from "../../../util";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
|
|
@ -36,7 +37,13 @@ class LedgerSalaryItemEditSlide extends Component {
|
|||
items: _.map(item.items, o => ({ ...o, label: getLabel(o.lanId, o.label) }))
|
||||
};
|
||||
})
|
||||
}, () => sxwzForm.initFormFields(this.state.conditions));
|
||||
}, () => {
|
||||
const { request } = nextProps;
|
||||
sxwzForm.initFormFields(this.state.conditions);
|
||||
_.forEach(getConditionDomkeys(this.state.conditions), g => {
|
||||
sxwzForm.updateFields({ [g]: request[g] || "" });
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
* Date: 2022/12/13
|
||||
*/
|
||||
import React, { Component } from "react";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { WeaCheckbox, WeaHelpfulTip, WeaLocaleProvider, WeaTable } from "ecCom";
|
||||
import LedgerSalaryItemEditSlide from "./ledgerSalaryItemEditSlide";
|
||||
import { getSalaryItemForm } from "../../../apis/ledger";
|
||||
|
|
@ -13,6 +14,8 @@ import FormalFormModal from "../../salaryItem/formalFormModal";
|
|||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
@inject("ledgerStore")
|
||||
@observer
|
||||
class LedgerSalaryItemTable extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
|
@ -144,6 +147,7 @@ class LedgerSalaryItemTable extends Component {
|
|||
* Date: 2023/7/19
|
||||
*/
|
||||
handleSaveItem = () => {
|
||||
const { ledgerStore: { sxwzForm } } = this.props;
|
||||
const { salaryItemPayload } = this.state;
|
||||
const { request, record } = salaryItemPayload;
|
||||
this.setState({
|
||||
|
|
@ -155,6 +159,7 @@ class LedgerSalaryItemTable extends Component {
|
|||
originFormulaContent, originSqlContent, formulaId
|
||||
} = request;
|
||||
this.handleChangeSalaryItem({
|
||||
...sxwzForm.getFormParams(),
|
||||
itemHide: hideDefault.toString(),
|
||||
roundingMode, pattern, valueType,
|
||||
formulaContent: valueType.toString() === "2" ? originFormulaContent : originSqlContent,
|
||||
|
|
|
|||
Loading…
Reference in New Issue