custom-艾志工业-合并个税
This commit is contained in:
parent
3027491872
commit
d882b75dad
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from "react";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { Button } from "antd";
|
||||
import { WeaInputSearch, WeaLocaleProvider } from "ecCom";
|
||||
import { WeaLocaleProvider } from "ecCom";
|
||||
import "./index.less";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
|
@ -12,14 +12,7 @@ class Index extends Component {
|
|||
render() {
|
||||
const { calculateStore: { ECSearchForm } } = this.props;
|
||||
return (
|
||||
<div className="advance-search">
|
||||
<WeaInputSearch value={ECSearchForm.getFormParams().employeeName}
|
||||
onChange={v => ECSearchForm.updateFields({ employeeName: v })}
|
||||
onSearch={this.props.onAdvanceSearch}
|
||||
/>
|
||||
<Button type="ghost" className="wea-advanced-search text-elli"
|
||||
onClick={this.props.onOpenAdvanceSearch}>{getLabel(111, "高级搜索")}</Button>
|
||||
</div>
|
||||
<Button type="ghost" onClick={this.props.onOpenAdvanceSearch}>{getLabel(111, "高级搜索")}</Button>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,46 @@
|
|||
export const editCalcSearchConditions = [
|
||||
{
|
||||
items: [
|
||||
// {
|
||||
// colSpan: 2,
|
||||
// conditionType: "INPUT",
|
||||
// domkey: ["employeeName"],
|
||||
// fieldcol: 12,
|
||||
// label: "姓名",
|
||||
// lanId: 25034,
|
||||
// labelcol: 6,
|
||||
// value: "",
|
||||
// viewAttr: 2
|
||||
// },
|
||||
{
|
||||
colSpan: 2,
|
||||
conditionType: "INPUT",
|
||||
domkey: ["employeeName"],
|
||||
browserConditionParam: {
|
||||
completeParams: {},
|
||||
conditionDataParams: {},
|
||||
dataParams: {},
|
||||
destDataParams: {},
|
||||
hasAddBtn: false,
|
||||
hasAdvanceSerach: false,
|
||||
idSeparator: ",",
|
||||
isAutoComplete: 1,
|
||||
isDetail: 0,
|
||||
isMultCheckbox: false,
|
||||
isSingle: false,
|
||||
icon: "icon-coms-hrm",
|
||||
linkUrl: "",
|
||||
pageSize: 10,
|
||||
quickSearchName: "",
|
||||
replaceDatas: [],
|
||||
title: "人力资源",
|
||||
type: "17",
|
||||
viewAttr: 2
|
||||
},
|
||||
colSpan: 1,
|
||||
conditionType: "BROWSER",
|
||||
domkey: ["employeeIds"],
|
||||
fieldcol: 12,
|
||||
label: "姓名",
|
||||
lanId: 25034,
|
||||
label: "人员",
|
||||
lanId: 111,
|
||||
labelcol: 6,
|
||||
value: "",
|
||||
viewAttr: 2
|
||||
},
|
||||
{
|
||||
|
|
@ -150,6 +181,86 @@ export const editCalcSearchConditions = [
|
|||
options: [],
|
||||
viewAttr: 2
|
||||
},
|
||||
{
|
||||
browserConditionParam: {
|
||||
completeParams: {
|
||||
type: 162,
|
||||
fielddbtype: "browser.htlx"
|
||||
},
|
||||
conditionDataParams: {
|
||||
type: "browser.htlx"
|
||||
},
|
||||
dataParams: {
|
||||
type: "browser.htlx"
|
||||
},
|
||||
destDataParams: {
|
||||
type: "browser.htlx"
|
||||
},
|
||||
hasAddBtn: false,
|
||||
hasAdvanceSerach: false,
|
||||
idSeparator: ",",
|
||||
isAutoComplete: 1,
|
||||
isDetail: 0,
|
||||
isMultCheckbox: true,
|
||||
isSingle: false,
|
||||
icon: "icon-coms-hrm",
|
||||
linkUrl: "",
|
||||
pageSize: 10,
|
||||
quickSearchName: "",
|
||||
replaceDatas: [],
|
||||
title: "合同签署类型",
|
||||
type: "162",
|
||||
viewAttr: 2
|
||||
},
|
||||
colSpan: 2,
|
||||
conditionType: "BROWSER",
|
||||
domkey: ["htqslxList"],
|
||||
fieldcol: 12,
|
||||
label: "合同签署类型编号",
|
||||
lanId: 111,
|
||||
labelcol: 6,
|
||||
viewAttr: 2
|
||||
},
|
||||
{
|
||||
browserConditionParam: {
|
||||
completeParams: {
|
||||
type: 162,
|
||||
fielddbtype: "browser.rsdlgs"
|
||||
},
|
||||
conditionDataParams: {
|
||||
type: "browser.rsdlgs"
|
||||
},
|
||||
dataParams: {
|
||||
type: "browser.rsdlgs"
|
||||
},
|
||||
destDataParams: {
|
||||
type: "browser.rsdlgs"
|
||||
},
|
||||
hasAddBtn: false,
|
||||
hasAdvanceSerach: false,
|
||||
idSeparator: ",",
|
||||
isAutoComplete: 1,
|
||||
isDetail: 0,
|
||||
isMultCheckbox: true,
|
||||
isSingle: false,
|
||||
icon: "icon-coms-hrm",
|
||||
linkUrl: "",
|
||||
pageSize: 10,
|
||||
quickSearchName: "",
|
||||
replaceDatas: [],
|
||||
title: "人事代理公司",
|
||||
type: "162",
|
||||
viewAttr: 2
|
||||
},
|
||||
colSpan: 2,
|
||||
conditionType: "BROWSER",
|
||||
domkey: ["rsdlgsList"],
|
||||
fieldcol: 12,
|
||||
label: "人事代理公司编号",
|
||||
lanId: 111,
|
||||
labelcol: 6,
|
||||
viewAttr: 2
|
||||
},
|
||||
{
|
||||
colSpan: 2,
|
||||
conditionType: "CHECKBOX",
|
||||
|
|
|
|||
|
|
@ -44,12 +44,20 @@ class EditCalcAdvanceSearchPannel extends Component {
|
|||
{ key: "0,1,2,3,4,6", showname: getLabel(111, "非离职") }
|
||||
]
|
||||
};
|
||||
} else if (getKey(o) === "submitStatus" || getKey(o) === "approveStatus") {
|
||||
} else if (getKey(o) === "submitStatus") {
|
||||
return {
|
||||
...o, label: getLabel(o.lanId, o.label),
|
||||
options: [
|
||||
{ key: "", showname: "" },
|
||||
{ key: "NOT_SUBMITTED", showname: getLabel(111, "未提交") },
|
||||
{ key: "SUBMITTED", showname: getLabel(111, "已提交") },
|
||||
{ key: "SUBMITTED", showname: getLabel(111, "已提交") }
|
||||
]
|
||||
};
|
||||
} else if (getKey(o) === "approveStatus") {
|
||||
return {
|
||||
...o, label: getLabel(o.lanId, o.label),
|
||||
options: [
|
||||
{ key: "", showname: "" },
|
||||
{ key: "NOT_APPROVED", showname: getLabel(111, "未审核") },
|
||||
{ key: "APPROVED", showname: getLabel(111, "已审核") }
|
||||
]
|
||||
|
|
|
|||
|
|
@ -253,13 +253,18 @@ class EditCalcTable extends Component {
|
|||
taxAgentStore: { showOperateBtn, PageAndOptAuth }, calcDetail = false
|
||||
} = this.props;
|
||||
const { confirmAuth, submitAuth } = toJS(PageAndOptAuth);
|
||||
const { subcompanyIds, departmentIds, positionIds, statuses, ...extra } = ECSearchForm.getFormParams();
|
||||
const {
|
||||
employeeIds, subcompanyIds, departmentIds, positionIds, statuses, htqslxList, rsdlgsList, ...extra
|
||||
} = ECSearchForm.getFormParams();
|
||||
const payload = {
|
||||
salaryAcctRecordId, ...pageInfo, ...extra, otherConditions,
|
||||
employeeIds: !_.isEmpty(employeeIds) ? employeeIds.split(",") : [],
|
||||
departmentIds: !_.isEmpty(departmentIds) ? departmentIds.split(",") : [],
|
||||
positionIds: !_.isEmpty(positionIds) ? positionIds.split(",") : [],
|
||||
subcompanyIds: !_.isEmpty(subcompanyIds) ? subcompanyIds.split(",") : [],
|
||||
statuses: !_.isEmpty(statuses) ? statuses.split(",") : []
|
||||
statuses: !_.isEmpty(statuses) ? statuses.split(",") : [],
|
||||
htqslxList: !_.isEmpty(htqslxList) ? htqslxList.split(",") : [],
|
||||
rsdlgsList: !_.isEmpty(rsdlgsList) ? rsdlgsList.split(",") : []
|
||||
};
|
||||
this.setState({ loading: true });
|
||||
acctResultList(payload).then(({ status, data }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue