feature/2.9.10.2312.02-社保档案个人和公司基数设置

This commit is contained in:
黎永顺 2023-12-13 11:12:18 +08:00
parent 1eba04d9c8
commit 61f2b76440
2 changed files with 26 additions and 4 deletions

View File

@ -1,9 +1,14 @@
import { WeaTools } from "ecCom";
import { postFetch } from "../util/request";
//薪资档案-薪资档案列表
export const getArchiveList = params => {
return postFetch("/api/bs/hrmsalary/salaryArchive/list", params);
};
//薪资档案的高级搜索
export const getSaCondition = params => {
return WeaTools.callApi("/api/bs/hrmsalary/archives/getSearchCondition", "get", params);
};
//薪资档案-获取薪资档案详情表单
export const getArchiveForm = params => {
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getForm", "get", params);

View File

@ -38,7 +38,8 @@ export default class Index extends Component {
confValue: "0",
withDrawTaxDeclaration: "0",
extEmpsWitch: "0",
salaryAcctFixedColumns: 0
salaryAcctFixedColumns: 0,
welBaseDiffByPerAndCom: "0",
},
showEncryptOperationButton: "",
progressVisible: false,
@ -66,7 +67,8 @@ export default class Index extends Component {
ascOrDesc = "", orderRule = "", showEncryptOperationButton, matchEmployeeMode: rule = "",
taxDeclarationFunction: operateTaxDeclaration = "1", salaryArchiveDelete: confValue,
salaryAcctEmployeeRule: matchRule, WITHDRAW_TAX_DECLARATION: withDrawTaxDeclaration = "0",
OPEN_APPLICATION_ENCRYPT: enctry = "1", extEmpsWitch = "0", salaryAcctFixedColumns = "0"
OPEN_APPLICATION_ENCRYPT: enctry = "1", extEmpsWitch = "0", salaryAcctFixedColumns = "0",
welBaseDiffByPerAndCom = "0",
}
} = sysInfo;
// const { data: { ascOrDesc, orderRule } } = orderRules;
@ -87,7 +89,8 @@ export default class Index extends Component {
saveParams: {
...saveParams,
ascOrDesc, orderRule, rule, enctry, matchRule, confValue, withDrawTaxDeclaration, salaryAcctFixedColumns,
extEmpsWitch, operateTaxDeclaration: (operateTaxDeclaration && operateTaxDeclaration !== "0") ? "1" : "0"
extEmpsWitch, operateTaxDeclaration: (operateTaxDeclaration && operateTaxDeclaration !== "0") ? "1" : "0",
welBaseDiffByPerAndCom
}
});
}
@ -307,6 +310,13 @@ export default class Index extends Component {
confValue: !_.isNil(val) ? val.toString() : "0"
});
break;
case "welBaseDiffByPerAndCom":
this.saveSysOperate({
title: getLabel(111, "福利档案基数区分个人和公司"),
module: "basic", confKey: key,
confValue: val
});
break;
default:
break;
}
@ -342,7 +352,8 @@ export default class Index extends Component {
confValue,
withDrawTaxDeclaration,
extEmpsWitch,
salaryAcctFixedColumns
salaryAcctFixedColumns,
welBaseDiffByPerAndCom
} = saveParams;
return (
<div className="ruleWrapper">
@ -398,6 +409,12 @@ export default class Index extends Component {
onChange={val => this.handleChange("confValue", val)}/>
</WeaFormItem>
</WeaSearchGroup>
<WeaSearchGroup title={getLabel(111, "福利档案基数")} showGroup center>
<WeaFormItem label={getLabel(111, "区分个人和公司")} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
<WeaCheckbox display="switch" value={welBaseDiffByPerAndCom}
onChange={val => this.handleChange("welBaseDiffByPerAndCom", val)}/>
</WeaFormItem>
</WeaSearchGroup>
<WeaSearchGroup title={getLabel(111, "薪资核算人员匹配规则")} showGroup center>
<WeaFormItem label={getLabel(111, "匹配规则")} labelCol={{ span: 6 }} wrapperCol={{ span: 18 }}>
<WeaSelect options={matchRuleOptions} value={matchRule}