产品-工资单模板列表页面接口修改

This commit is contained in:
黎永顺 2023-06-19 18:48:50 +08:00
parent 4dca3e3d7d
commit b77aad0e42
4 changed files with 36 additions and 22 deletions

View File

@ -8,6 +8,7 @@ import React, { Component } from "react";
import {
WeaError,
WeaFormItem,
WeaHelpfulTip,
WeaInputNumber,
WeaLocaleProvider,
WeaSearchGroup,
@ -100,14 +101,18 @@ class WaterMarkSetModal extends Component {
<React.Fragment>
<WeaSearchGroup showGroup needTigger={false} className="waterMarkWrapper">
<WeaFormItem label={getLabel(111, "水印类型")} labelCol={{ span: 5 }} wrapperCol={{ span: 10 }}>
<WeaSelect
value={wmClassify} detailtype={3}
options={[
{ key: "text", showname: getLabel(111, "文本") },
{ key: "image", showname: getLabel(111, "图片") }
]}
onChange={wmClassify => this.setState({ wmClassify })}
/>
<div style={{ display: "flex", alignItems: "center" }}>
<WeaSelect
value={wmClassify} detailtype={3}
options={[
{ key: "text", showname: getLabel(111, "文本") },
{ key: "image", showname: getLabel(111, "图片") }
]}
onChange={wmClassify => this.setState({ wmClassify })}
/>
<WeaHelpfulTip title={getLabel(111, "邮件发送不支持图片水印")} placement="topLeft"
style={{ marginLeft: 10 }}/>
</div>
</WeaFormItem>
<WeaFormItem label={getLabel(111, "水印类型")} labelCol={{ span: 5 }} wrapperCol={{ span: 10 }}>
{

View File

@ -351,9 +351,11 @@ export default class Payroll extends React.Component {
<WeaInputSearch style={{ marginleft: "10px" }} placeholder="请输入工资单名称" value={templateSearchValue}
onChange={(value) => {
this.setState({ templateSearchValue: value });
}} onSearch={(value) => {
this.handleTemplateSearch(value);
}}/>
}}
onSearch={(value) => {
this.handleTemplateSearch(value);
}}
/>
</div>
);
} else if (this.state.selectedKey === "2") {

View File

@ -244,7 +244,14 @@ export default class Index extends Component {
};
render() {
const { saveParams, matchRuleOptions, orderOptions, ascOptions, employeeOptions } = this.state;
const {
saveParams,
matchRuleOptions,
orderOptions,
ascOptions,
employeeOptions,
showEncryptOperationButton
} = this.state;
const { orderRule, ascOrDesc, rule, enctry, operateTaxDeclaration, matchRule } = saveParams;
return (
<div className="ruleWrapper">
@ -274,15 +281,15 @@ export default class Index extends Component {
/>
</WeaFormItem>
</WeaSearchGroup>
{/*{*/}
{/* !_.isEmpty(enctryItems) &&*/}
<WeaSearchGroup title={getLabel(543358, "加密规则")} showGroup center>
<WeaFormItem label={getLabel(526997, "加密设置")} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
<WeaCheckbox display="switch" value={enctry}
onChange={val => this.handleChange("enctry", val)}/>
</WeaFormItem>
</WeaSearchGroup>
{/*}*/}
{
showEncryptOperationButton === "true" &&
<WeaSearchGroup title={getLabel(543358, "加密规则")} showGroup center>
<WeaFormItem label={getLabel(526997, "加密设置")} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
<WeaCheckbox display="switch" value={enctry}
onChange={val => this.handleChange("enctry", val)}/>
</WeaFormItem>
</WeaSearchGroup>
}
<WeaSearchGroup title={getLabel(543359, "报税规则")} showGroup center>
<WeaFormItem label={getLabel(543353, "个税申报")} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
<WeaCheckbox display="switch" value={operateTaxDeclaration}

View File

@ -152,7 +152,7 @@ export class payrollStore {
@action
getPayrollTemplateList = (params = {}) => {
this.loading = true;
API.getPayrollTemplateList({ ...params, ...this.templateTablePageInfo }).then(res => {
API.getPayrollTemplateList({ ...this.templateTablePageInfo, ...params }).then(res => {
if (res.status) {
this.templateTableColumns = res.data.columns;
this.templateTableDataSource = res.data.list;