custom/上海港湾多语言
This commit is contained in:
parent
d68ec3743b
commit
4e2006ed31
|
|
@ -36,7 +36,7 @@ class Index extends Component {
|
||||||
items: _.map(item.items, o => {
|
items: _.map(item.items, o => {
|
||||||
if (getKey(o) === "userStatus") {
|
if (getKey(o) === "userStatus") {
|
||||||
return {
|
return {
|
||||||
...o,
|
...o, label: getLabel(o.lanId, o.label),
|
||||||
options: [
|
options: [
|
||||||
{ key: "0", showname: getLabel(18883, "试用") }, {
|
{ key: "0", showname: getLabel(18883, "试用") }, {
|
||||||
key: "1",
|
key: "1",
|
||||||
|
|
@ -55,7 +55,7 @@ class Index extends Component {
|
||||||
};
|
};
|
||||||
} else if (getKey(o) === "adjustReason") {
|
} else if (getKey(o) === "adjustReason") {
|
||||||
return {
|
return {
|
||||||
...o,
|
...o, label: getLabel(o.lanId, o.label),
|
||||||
options: _.map(data, item => ({
|
options: _.map(data, item => ({
|
||||||
key: item.value,
|
key: item.value,
|
||||||
showname: item.defaultLabel
|
showname: item.defaultLabel
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,8 @@ export const salaryDetailSearchConditions = [
|
||||||
conditionType: "INPUT",
|
conditionType: "INPUT",
|
||||||
domkey: ["keyword"],
|
domkey: ["keyword"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(111, "姓名/工号"),
|
label: "姓名/工号",
|
||||||
|
lanId: 25034,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
value: "",
|
value: "",
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
|
|
@ -155,7 +156,8 @@ export const salaryDetailSearchConditions = [
|
||||||
conditionType: "SELECT",
|
conditionType: "SELECT",
|
||||||
domkey: ["taxAgentIds"],
|
domkey: ["taxAgentIds"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(537996, "个税扣缴义务人"),
|
label: "个税扣缴义务人",
|
||||||
|
lanId: 537996,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
options: [],
|
options: [],
|
||||||
multiple: true,
|
multiple: true,
|
||||||
|
|
@ -187,7 +189,8 @@ export const salaryDetailSearchConditions = [
|
||||||
conditionType: "BROWSER",
|
conditionType: "BROWSER",
|
||||||
domkey: ["subcompanyIds"],
|
domkey: ["subcompanyIds"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(33553, "分部"),
|
label: "分部",
|
||||||
|
lanId: 33553,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
},
|
},
|
||||||
|
|
@ -216,13 +219,15 @@ export const salaryDetailSearchConditions = [
|
||||||
conditionType: "BROWSER",
|
conditionType: "BROWSER",
|
||||||
domkey: ["departmentIds"],
|
domkey: ["departmentIds"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(27511, "部门"),
|
label: "部门",
|
||||||
|
lanId: 27511,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
defaultshow: true,
|
defaultshow: true,
|
||||||
title: getLabel(1361, "基本信息"),
|
title: "基本信息",
|
||||||
|
lanId: 1361,
|
||||||
col: 2
|
col: 2
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,11 @@ class SalaryDetailAdvanceSearchPannel extends Component {
|
||||||
items: _.map(item.items, child => {
|
items: _.map(item.items, child => {
|
||||||
if (getKey(child) === "taxAgentIds") {
|
if (getKey(child) === "taxAgentIds") {
|
||||||
return {
|
return {
|
||||||
...child, options: _.map(taxAgentList, o => ({ key: o.id, showname: o.content }))
|
...child, label: getLabel(child.lanId, child.label),
|
||||||
|
options: _.map(taxAgentList, o => ({ key: o.id, showname: o.content }))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return { ...child };
|
return { ...child, label: getLabel(child.lanId, child.label) };
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ class EditCalcAdvanceSearchPannel extends Component {
|
||||||
items: _.map(item.items, o => {
|
items: _.map(item.items, o => {
|
||||||
if (getKey(o) === "statuses") {
|
if (getKey(o) === "statuses") {
|
||||||
return {
|
return {
|
||||||
...o,
|
...o, label: getLabel(o.lanId, o.label),
|
||||||
options: [
|
options: [
|
||||||
{ key: "0", showname: getLabel(18883, "试用") }, { key: "1", showname: getLabel(15711, "正式") },
|
{ key: "0", showname: getLabel(18883, "试用") }, { key: "1", showname: getLabel(15711, "正式") },
|
||||||
{ key: "2", showname: getLabel(480, "临时") }, { key: "3", showname: getLabel(15844, "试用延期") },
|
{ key: "2", showname: getLabel(480, "临时") }, { key: "3", showname: getLabel(15844, "试用延期") },
|
||||||
|
|
|
||||||
|
|
@ -34,20 +34,20 @@ class salaryFileAdvanceSearchPannel extends Component {
|
||||||
this.setState({
|
this.setState({
|
||||||
searchConditions: _.map(salaryFileSearchConditions, item => {
|
searchConditions: _.map(salaryFileSearchConditions, item => {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item, title: getLabel(item.lanId, item.label),
|
||||||
items: _.map(item.items, child => {
|
items: _.map(item.items, child => {
|
||||||
if (getKey(child) === "statuses") {
|
if (getKey(child) === "statuses") {
|
||||||
return {
|
return {
|
||||||
...child,
|
...child, label: getLabel(child.lanId, child.label),
|
||||||
options: _.map(userStatusList, o => ({ key: String(o.value), showname: o.defaultLabel }))
|
options: _.map(userStatusList, o => ({ key: String(o.value), showname: o.defaultLabel }))
|
||||||
};
|
};
|
||||||
} else if (getKey(child) === "taxAgentId") {
|
} else if (getKey(child) === "taxAgentId") {
|
||||||
return {
|
return {
|
||||||
...child,
|
...child, label: getLabel(child.lanId, child.label),
|
||||||
options: _.map(taxAgentList, o => ({ key: o.id, showname: o.content }))
|
options: _.map(taxAgentList, o => ({ key: o.id, showname: o.content }))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return { ...child };
|
return { ...child, label: getLabel(child.lanId, child.label) };
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,8 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "INPUT",
|
conditionType: "INPUT",
|
||||||
domkey: ["username"],
|
domkey: ["username"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(25034, "姓名"),
|
label: "姓名",
|
||||||
|
lanId: 25034,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
value: "",
|
value: "",
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
|
|
@ -255,7 +256,8 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "BROWSER",
|
conditionType: "BROWSER",
|
||||||
domkey: ["subcompanyIds"],
|
domkey: ["subcompanyIds"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(33553, "分部"),
|
label: "分部",
|
||||||
|
lanId: 33553,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
},
|
},
|
||||||
|
|
@ -284,7 +286,8 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "BROWSER",
|
conditionType: "BROWSER",
|
||||||
domkey: ["departmentIds"],
|
domkey: ["departmentIds"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(27511, "部门"),
|
label: "部门",
|
||||||
|
lanId: 27511,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
},
|
},
|
||||||
|
|
@ -313,7 +316,8 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "BROWSER",
|
conditionType: "BROWSER",
|
||||||
domkey: ["positionIds"],
|
domkey: ["positionIds"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(6086, "岗位"),
|
label: "岗位",
|
||||||
|
lanId: 6086,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
},
|
},
|
||||||
|
|
@ -321,7 +325,8 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "SELECT",
|
conditionType: "SELECT",
|
||||||
domkey: ["statuses"],
|
domkey: ["statuses"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(382300, "人员状态"),
|
label: "人员状态",
|
||||||
|
lanId: 382300,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
options: [],
|
options: [],
|
||||||
multiple: true,
|
multiple: true,
|
||||||
|
|
@ -331,7 +336,8 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "SELECT",
|
conditionType: "SELECT",
|
||||||
domkey: ["taxAgentId"],
|
domkey: ["taxAgentId"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(537996, "个税扣缴义务人"),
|
label: "个税扣缴义务人",
|
||||||
|
lanId: 537996,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
options: [],
|
options: [],
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
|
|
@ -340,7 +346,8 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "INPUT",
|
conditionType: "INPUT",
|
||||||
domkey: ["workcode"],
|
domkey: ["workcode"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(1933, "工号"),
|
label: "工号",
|
||||||
|
lanId: 1933,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
value: "",
|
value: "",
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
|
|
@ -349,7 +356,8 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "RANGEPICKER",
|
conditionType: "RANGEPICKER",
|
||||||
domkey: ["payStartDateStartDateStr", "payStartDateEndDateStr"],
|
domkey: ["payStartDateStartDateStr", "payStartDateEndDateStr"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(542346, "起始发薪日期"),
|
label: "起始发薪日期",
|
||||||
|
lanId: 542346,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
value: "",
|
value: "",
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
|
|
@ -358,14 +366,16 @@ export const salaryFileSearchConditions = [
|
||||||
conditionType: "RANGEPICKER",
|
conditionType: "RANGEPICKER",
|
||||||
domkey: ["payEndDateStartDateStr", "payEndDateEndDateStr"],
|
domkey: ["payEndDateStartDateStr", "payEndDateEndDateStr"],
|
||||||
fieldcol: 16,
|
fieldcol: 16,
|
||||||
label: getLabel(542347, "最后发薪日期"),
|
label: "最后发薪日期",
|
||||||
|
lanId: 542347,
|
||||||
labelcol: 8,
|
labelcol: 8,
|
||||||
value: "",
|
value: "",
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
defaultshow: true,
|
defaultshow: true,
|
||||||
title: getLabel(1361, "基本信息"),
|
title: "基本信息",
|
||||||
|
lanId: 1361,
|
||||||
col: 2
|
col: 2
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -444,7 +454,7 @@ export const salaryFilesConditions = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
defaultshow: true, title: getLabel(543329, "发薪设置"),
|
defaultshow: true, title: getLabel(543329, "发薪设置"),
|
||||||
col: 1,lanId: 543329,
|
col: 1, lanId: 543329,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
colSpan: 1,
|
colSpan: 1,
|
||||||
|
|
@ -475,7 +485,7 @@ export const salaryFilesConditions = [
|
||||||
defaultshow: true, title: getLabel(538004, "薪资档案"),
|
defaultshow: true, title: getLabel(538004, "薪资档案"),
|
||||||
titleHelpful: getLabel(543330, "提示:显示已生效的最新数据"),
|
titleHelpful: getLabel(543330, "提示:显示已生效的最新数据"),
|
||||||
titleHelpfulLanId: 543330,
|
titleHelpfulLanId: 543330,
|
||||||
col: 2, salaryFile: true,lanId: 538004,
|
col: 2, salaryFile: true, lanId: 538004,
|
||||||
items: []
|
items: []
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
import { WeaLocaleProvider } from "ecCom";
|
|
||||||
|
|
||||||
const getLabel = WeaLocaleProvider.getLabel;
|
|
||||||
export const conditions = [
|
export const conditions = [
|
||||||
{
|
{
|
||||||
items: [
|
items: [
|
||||||
|
|
@ -9,7 +6,8 @@ export const conditions = [
|
||||||
conditionType: "INPUT",
|
conditionType: "INPUT",
|
||||||
domkey: ["userName"],
|
domkey: ["userName"],
|
||||||
fieldcol: 14,
|
fieldcol: 14,
|
||||||
label: getLabel(25034, "姓名"),
|
label: "姓名",
|
||||||
|
lanId: 25034,
|
||||||
labelcol: 6,
|
labelcol: 6,
|
||||||
value: "",
|
value: "",
|
||||||
viewAttr: 2
|
viewAttr: 2
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import { WeaCheckbox, WeaTab, WeaTable, WeaLocaleProvider } from "ecCom";
|
import { WeaCheckbox, WeaLocaleProvider, WeaTab, WeaTable } from "ecCom";
|
||||||
import { Button } from "antd";
|
import { Button } from "antd";
|
||||||
import { inject, observer } from "mobx-react";
|
import { inject, observer } from "mobx-react";
|
||||||
import * as API from "../../../apis/offlineCompare";
|
import * as API from "../../../apis/offlineCompare";
|
||||||
|
|
@ -11,6 +11,7 @@ import { conditions } from "./condition";
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
|
|
||||||
const getLabel = WeaLocaleProvider.getLabel;
|
const getLabel = WeaLocaleProvider.getLabel;
|
||||||
|
|
||||||
@inject("standingBookStore")
|
@inject("standingBookStore")
|
||||||
@observer
|
@observer
|
||||||
class StandingBookOfflineComparison extends Component {
|
class StandingBookOfflineComparison extends Component {
|
||||||
|
|
@ -116,7 +117,10 @@ class StandingBookOfflineComparison extends Component {
|
||||||
searchsBasePlaceHolder={getLabel(26919, "请输入姓名")}
|
searchsBasePlaceHolder={getLabel(26919, "请输入姓名")}
|
||||||
showSearchAd={showSearchAd}
|
showSearchAd={showSearchAd}
|
||||||
setShowSearchAd={showSearchAd => this.setState({ showSearchAd })}
|
setShowSearchAd={showSearchAd => this.setState({ showSearchAd })}
|
||||||
searchsAd={getSearchs(form, conditions, 2)}
|
searchsAd={getSearchs(form, _.map(conditions, item => ({
|
||||||
|
...item,
|
||||||
|
items: _.map(item.items, o => ({ ...o, label: getLabel(o.lanId, o.label) }))
|
||||||
|
})), 2)}
|
||||||
onSearch={() => {
|
onSearch={() => {
|
||||||
this.setState({ showSearchAd: false }, () => {
|
this.setState({ showSearchAd: false }, () => {
|
||||||
this.comparisonwelfareList();
|
this.comparisonwelfareList();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue