2022-12-01 14:28:30 +08:00
|
|
|
|
import React from "react";
|
|
|
|
|
|
import { inject, observer } from "mobx-react";
|
2022-02-25 09:24:56 +08:00
|
|
|
|
|
2022-12-01 14:28:30 +08:00
|
|
|
|
import { Button, DatePicker } from "antd";
|
2022-02-25 09:24:56 +08:00
|
|
|
|
|
2022-12-01 14:28:30 +08:00
|
|
|
|
import { WeaTable, WeaTop } from "ecCom";
|
2022-02-25 09:24:56 +08:00
|
|
|
|
|
2022-12-01 14:28:30 +08:00
|
|
|
|
import { renderNoright } from "../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中
|
|
|
|
|
|
import { columns, dataSource } from "./columns";
|
2022-02-25 09:24:56 +08:00
|
|
|
|
|
|
|
|
|
|
const { MonthPicker } = DatePicker;
|
|
|
|
|
|
|
2022-12-01 14:28:30 +08:00
|
|
|
|
@inject("baseTableStore")
|
2022-02-25 09:24:56 +08:00
|
|
|
|
@observer
|
|
|
|
|
|
export default class IndividualIncomeTaxRateForm extends React.Component {
|
|
|
|
|
|
constructor(props) {
|
|
|
|
|
|
super(props);
|
|
|
|
|
|
this.state = {
|
|
|
|
|
|
value: "",
|
|
|
|
|
|
selectedKey: "0"
|
2022-12-01 14:28:30 +08:00
|
|
|
|
};
|
2022-02-25 09:24:56 +08:00
|
|
|
|
}
|
2022-12-01 14:28:30 +08:00
|
|
|
|
|
2022-02-25 09:24:56 +08:00
|
|
|
|
render() {
|
|
|
|
|
|
const { baseTableStore } = this.props;
|
2022-12-01 14:28:30 +08:00
|
|
|
|
const {
|
|
|
|
|
|
loading,
|
|
|
|
|
|
hasRight,
|
|
|
|
|
|
form,
|
|
|
|
|
|
condition,
|
|
|
|
|
|
tableStore,
|
|
|
|
|
|
showSearchAd,
|
|
|
|
|
|
getTableDatas,
|
|
|
|
|
|
doSearch,
|
|
|
|
|
|
setShowSearchAd
|
|
|
|
|
|
} = baseTableStore;
|
2022-02-25 09:24:56 +08:00
|
|
|
|
|
|
|
|
|
|
if (!hasRight && !loading) { // 无权限处理
|
|
|
|
|
|
return renderNoright();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const rightMenu = [// 右键菜单
|
2022-12-01 14:28:30 +08:00
|
|
|
|
{
|
|
|
|
|
|
key: "BTN_COLUMN",
|
|
|
|
|
|
icon: <i className="icon-coms-Custom"/>,
|
|
|
|
|
|
content: "显示列定制",
|
2022-02-25 09:24:56 +08:00
|
|
|
|
onClick: this.showColumn
|
2022-12-01 14:28:30 +08:00
|
|
|
|
}
|
2022-02-25 09:24:56 +08:00
|
|
|
|
];
|
|
|
|
|
|
const collectParams = { // 收藏功能配置
|
2022-12-01 14:28:30 +08:00
|
|
|
|
favname: "个税税率表",
|
2022-02-25 09:24:56 +08:00
|
|
|
|
favouritetype: 1,
|
|
|
|
|
|
objid: 0,
|
2022-12-01 14:28:30 +08:00
|
|
|
|
link: "wui/index.html#/ns_demo03/index",
|
|
|
|
|
|
importantlevel: 1
|
2022-02-25 09:24:56 +08:00
|
|
|
|
};
|
|
|
|
|
|
const adBtn = [ // 高级搜索内部按钮
|
|
|
|
|
|
<Button type="primary" onClick={doSearch}>搜索</Button>,
|
|
|
|
|
|
<Button type="ghost" onClick={() => form.resetForm()}>重置</Button>,
|
2022-12-01 14:28:30 +08:00
|
|
|
|
<Button type="ghost" onClick={() => setShowSearchAd(false)}>取消</Button>
|
2022-02-25 09:24:56 +08:00
|
|
|
|
];
|
|
|
|
|
|
|
2022-12-01 14:28:30 +08:00
|
|
|
|
const topTab = [];
|
2022-02-25 09:24:56 +08:00
|
|
|
|
|
|
|
|
|
|
const renderSearchOperationItem = () => {
|
2022-12-01 14:28:30 +08:00
|
|
|
|
return <div></div>;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
2022-02-25 09:24:56 +08:00
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
<div className="mySalaryBenefitsWrapper">
|
2022-12-01 14:28:30 +08:00
|
|
|
|
<WeaTop
|
|
|
|
|
|
title="个税税率表" // 文字
|
|
|
|
|
|
icon={<i className="icon-coms-fa"/>} // 左侧图标
|
|
|
|
|
|
iconBgcolor="#F14A2D" // 左侧图标背景色
|
|
|
|
|
|
showDropIcon={true} // 是否显示下拉按钮
|
|
|
|
|
|
dropMenuDatas={rightMenu} // 下拉菜单(和页面的右键菜单相同)
|
|
|
|
|
|
dropMenuProps={{ collectParams }} // 收藏功能: 配置之后显示 收藏、帮助、显示页面地址 这3个功能
|
2022-02-25 09:24:56 +08:00
|
|
|
|
>
|
2022-12-01 14:28:30 +08:00
|
|
|
|
<WeaTable columns={columns} dataSource={dataSource}/>
|
|
|
|
|
|
</WeaTop>
|
2022-02-25 09:24:56 +08:00
|
|
|
|
</div>
|
2022-12-01 14:28:30 +08:00
|
|
|
|
);
|
2022-02-25 09:24:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|