薪资项目修改
This commit is contained in:
parent
4e6f727727
commit
ff692d5157
|
|
@ -35,8 +35,8 @@ class FieldSlide extends Component {
|
|||
componentDidMount() {
|
||||
const { taxAgentStore } = this.props;
|
||||
this.commonEnumList();
|
||||
const { getTaxAgentSelectListAsAdmin } = taxAgentStore;
|
||||
getTaxAgentSelectListAsAdmin();
|
||||
const { fetchTaxAgentOption } = taxAgentStore;
|
||||
fetchTaxAgentOption();
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps, nextContext) {
|
||||
|
|
@ -150,7 +150,7 @@ class FieldSlide extends Component {
|
|||
};
|
||||
|
||||
render() {
|
||||
const { title, visible, taxAgentStore: { showOperateBtn, taxAgentAdminOption }, onCancel } = this.props;
|
||||
const { title, visible, taxAgentStore: { taxAgentOption }, onCancel } = this.props;
|
||||
const {
|
||||
loading,
|
||||
name,
|
||||
|
|
@ -177,7 +177,7 @@ class FieldSlide extends Component {
|
|||
subtitle={title}
|
||||
tabs={[]}
|
||||
loading={loading}
|
||||
showOperateBtn={showOperateBtn}
|
||||
showOperateBtn={true}
|
||||
editable={true}
|
||||
onSave={this.saveFieldInfo}
|
||||
/>
|
||||
|
|
@ -213,7 +213,7 @@ class FieldSlide extends Component {
|
|||
multiple
|
||||
viewAttr={3}
|
||||
value={taxAgentIds}
|
||||
options={taxAgentAdminOption}
|
||||
options={taxAgentOption}
|
||||
onChange={value => this.handleChangeFields("taxAgentIds", value)}
|
||||
/>
|
||||
</WeaFormItem>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
import React, { Component } from "react";
|
||||
import { WeaTable } from "ecCom";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { message, Modal, Switch } from "antd";
|
||||
import { Switch } from "antd";
|
||||
import { salaryFieldList } from "../../../apis/fieldManage";
|
||||
|
||||
@inject("taxAgentStore")
|
||||
|
|
@ -70,11 +70,11 @@ class FieldTable extends Component {
|
|||
item.render = (text, record) => {
|
||||
return <div className="optWrapper">
|
||||
<a href="javascript:void(0);" className="mr10"
|
||||
onClick={() => onEditLedger(record)}>{showOperateBtn ? "编辑" : "查看"}</a>
|
||||
{/*{*/}
|
||||
{/* showOperateBtn &&*/}
|
||||
{/* <a href="javascript:void(0);" className="mr10" onClick={() => onDeleteLedger(record)}>删除</a>*/}
|
||||
{/*}*/}
|
||||
onClick={() => onEditLedger(record)}>编辑</a>
|
||||
{
|
||||
// showOperateBtn &&
|
||||
<a href="javascript:void(0);" className="mr10" onClick={() => onDeleteLedger(record)}>删除</a>
|
||||
}
|
||||
</div>;
|
||||
};
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class FieldManagement extends Component {
|
|||
deleteSalaryField(filedIds).then(({ status, errormsg }) => {
|
||||
if (status) {
|
||||
message.success("删除成功");
|
||||
this.setState({ doSearch: !this.state.doSearch })
|
||||
this.setState({ doSearch: !this.state.doSearch });
|
||||
} else {
|
||||
message.error(errormsg || "删除失败");
|
||||
}
|
||||
|
|
@ -83,7 +83,8 @@ class FieldManagement extends Component {
|
|||
icon={<i className="icon-coms-fa"/>}
|
||||
iconBgcolor="#F14A2D"
|
||||
showDropIcon={false}
|
||||
buttons={showOperateBtn ? btns : btns.slice(-1)}
|
||||
// buttons={showOperateBtn ? btns : btns.slice(-1)}
|
||||
buttons={btns}
|
||||
>
|
||||
<div className="fieldManageWrapper">
|
||||
<FieldTable name={searchVal} doSearch={doSearch} onEditLedger={this.handleEditField}
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ const TitleNormalComp = (props) => {
|
|||
name, onEditCategory, onDeleteCategory,
|
||||
sortedIndex, dataSourceLen, id, onUpgo,
|
||||
onDowngo, selectedRowKeys = [], onDeleteCategoryItems,
|
||||
onAddCategoryItems
|
||||
onAddCategoryItems, items
|
||||
} = props;
|
||||
return <div className="titleNormalWrapper">
|
||||
<div className="titleWrapper">
|
||||
|
|
@ -225,7 +225,7 @@ const TitleNormalComp = (props) => {
|
|||
<i className="icon-coms-edit" title="编辑" onClick={() => onEditCategory(name, id)}/>
|
||||
}
|
||||
{
|
||||
name !== "未分类" &&
|
||||
name !== "未分类" && _.isEmpty(items) &&
|
||||
<i className="icon-coms-Delete" title="删除" onClick={() => onDeleteCategory(id)}/>
|
||||
}
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ export default class SalaryItem extends React.Component {
|
|||
componentWillMount() { // 初始化渲染页面
|
||||
const { salaryItemStore: { getTableDatas }, salaryFileStore, taxAgentStore } = this.props;
|
||||
const { commonEnumList } = salaryFileStore;
|
||||
const { getTaxAgentSelectListAsAdmin } = taxAgentStore;
|
||||
getTaxAgentSelectListAsAdmin();
|
||||
const { fetchTaxAgentOption } = taxAgentStore;
|
||||
fetchTaxAgentOption();
|
||||
commonEnumList("user", { enumClass: "com.engine.salary.enums.sicategory.SharedTypeEnum" });
|
||||
getTableDatas({}).then(res => {
|
||||
this.setState({
|
||||
|
|
@ -142,7 +142,7 @@ export default class SalaryItem extends React.Component {
|
|||
return (
|
||||
<Dropdown overlay={<Menu>
|
||||
<Menu.Item>
|
||||
<a onClick={() => {
|
||||
<a href="javascript: void(0);" onClick={() => {
|
||||
this.handleDeleteItem(record);
|
||||
}}>删除</a>
|
||||
</Menu.Item>
|
||||
|
|
@ -206,11 +206,11 @@ export default class SalaryItem extends React.Component {
|
|||
const {
|
||||
salaryItemStore,
|
||||
salaryFileStore,
|
||||
taxAgentStore: { showOperateBtn, showSalaryItemBtn, taxAgentAdminOption }
|
||||
taxAgentStore: { showOperateBtn, showSalaryItemBtn, taxAgentOption }
|
||||
} = this.props;
|
||||
const { userStatusList } = salaryFileStore;
|
||||
const { selectedRowKeys } = this.state;
|
||||
const { loading, deleteItemRequest, getTableDatas, initRequest } = salaryItemStore;
|
||||
const { loading, deleteItemRequest, getTableDatas } = salaryItemStore;
|
||||
const {
|
||||
tableDataSource,
|
||||
tableColumns,
|
||||
|
|
@ -414,7 +414,7 @@ export default class SalaryItem extends React.Component {
|
|||
record={this.record} editable={this.state.editable}
|
||||
isAdd={this.state.isAdd} request={request}
|
||||
userStatusList={userStatusList}
|
||||
taxAgentAdminOption={taxAgentAdminOption}
|
||||
taxAgentAdminOption={taxAgentOption}
|
||||
onChange={(value) => {
|
||||
handleSaveSlideChange(value);
|
||||
}}/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue