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