223 lines
4.5 KiB
JavaScript
223 lines
4.5 KiB
JavaScript
import { WeaLocaleProvider } from "ecCom";
|
|
|
|
const getLabel = WeaLocaleProvider.getLabel;
|
|
export const columns = [
|
|
{
|
|
title: getLabel(25034, "姓名"),
|
|
dataIndex: "username",
|
|
key: "username"
|
|
},
|
|
{
|
|
title: getLabel(537996, "个税扣缴义务人"),
|
|
dataIndex: "ywr",
|
|
key: "ywr"
|
|
},
|
|
{
|
|
title: getLabel(27511, "部门"),
|
|
dataIndex: "bm",
|
|
key: "title"
|
|
},
|
|
{
|
|
title: getLabel(125238, "手机号"),
|
|
dataIndex: "sjh",
|
|
key: "sjh"
|
|
},
|
|
{
|
|
title: getLabel(1933, "工号"),
|
|
dataIndex: "gh",
|
|
key: "gh"
|
|
},
|
|
{
|
|
title: getLabel(1839, "证件号码"),
|
|
dataIndex: "sfzh",
|
|
key: "sfzh"
|
|
},
|
|
{
|
|
title: getLabel(1516, "入职日期"),
|
|
dataIndex: "rzrq",
|
|
key: "rzrq"
|
|
},
|
|
{
|
|
title: getLabel(542158, "累计子女教育"),
|
|
dataIndex: "ljznjy",
|
|
key: "ljznjy"
|
|
},
|
|
{
|
|
title: getLabel(542159, "累计继续教育"),
|
|
dataIndex: "ljjxjy",
|
|
key: "ljjxjy"
|
|
},
|
|
{
|
|
title: getLabel(542160, "累计住房贷款利息"),
|
|
dataIndex: "ljzfdklx",
|
|
key: "ljfdklx"
|
|
},
|
|
{
|
|
title: getLabel(542161, "累计住房租金"),
|
|
dataIndex: "ljzfzj",
|
|
key: "ljzfzj"
|
|
},
|
|
{
|
|
title: getLabel(542162, "累计赡养老人"),
|
|
dataIndex: "ljsylr",
|
|
key: "ljsylr"
|
|
},
|
|
{
|
|
title: getLabel(30585, "操作"),
|
|
dataIndex: "cz",
|
|
key: "cz",
|
|
render: (text, record) => {
|
|
|
|
}
|
|
}
|
|
];
|
|
export const fieldsColumns = [
|
|
{
|
|
title: "id",
|
|
dataIndex: "id",
|
|
key: "id",
|
|
display: true
|
|
},
|
|
{
|
|
title: getLabel(685, "字段名称"),
|
|
dataIndex: "fieldName",
|
|
key: "fieldName",
|
|
display: true
|
|
},
|
|
{
|
|
title: getLabel(15240, "来源"),
|
|
dataIndex: "sourceType",
|
|
key: "sourceType",
|
|
display: true
|
|
},
|
|
{
|
|
title: getLabel(500401, "类型"),
|
|
dataIndex: "fieldType",
|
|
key: "fieldType",
|
|
display: true
|
|
},
|
|
{
|
|
title: getLabel(535448, "是否启用"),
|
|
dataIndex: "enableStatus",
|
|
key: "enableStatus",
|
|
display: true
|
|
},
|
|
{
|
|
title: getLabel(536726, "备注"),
|
|
dataIndex: "description",
|
|
key: "description",
|
|
display: true
|
|
}
|
|
];
|
|
export const conditions = [
|
|
{
|
|
items: [
|
|
{
|
|
colSpan: 1,
|
|
conditionType: "INPUT",
|
|
domkey: ["fieldName"],
|
|
fieldcol: 14,
|
|
rules: "required|string",
|
|
label: getLabel(685, "字段名称"),
|
|
lanId: 685,
|
|
labelcol: 6,
|
|
value: "",
|
|
viewAttr: 3
|
|
},
|
|
{
|
|
colSpan: 1,
|
|
conditionType: "SELECT",
|
|
domkey: ["fieldType"],
|
|
fieldcol: 14,
|
|
isQuickSearch: false,
|
|
label: getLabel(500401, "类型"),
|
|
lanId: 500401,
|
|
labelcol: 6,
|
|
valueList: [],
|
|
options: [
|
|
{
|
|
key: "NUMBER",
|
|
selected: true,
|
|
showname: getLabel(17639, "数值"),
|
|
lanId: 17639,
|
|
},
|
|
{
|
|
key: "TEXT",
|
|
selected: false,
|
|
showname: getLabel(128895, "文本"),
|
|
lanId: 128895,
|
|
}
|
|
],
|
|
rules: "required|string",
|
|
viewAttr: 3
|
|
},
|
|
{
|
|
colSpan: 1,
|
|
conditionType: "SWITCH",
|
|
domkey: ["enableStatus"],
|
|
fieldcol: 14,
|
|
label: getLabel(535448, "是否启用"),
|
|
lanId: 535448,
|
|
labelcol: 6,
|
|
viewAttr: 3,
|
|
rules: "required"
|
|
},
|
|
{
|
|
colSpan: 1,
|
|
conditionType: "INPUT",
|
|
domkey: ["description"],
|
|
fieldcol: 14,
|
|
label: getLabel(536726, "备注"),
|
|
lanId: 536726,
|
|
labelcol: 6,
|
|
value: "",
|
|
viewAttr: 2
|
|
}
|
|
],
|
|
defaultshow: true
|
|
}
|
|
];
|
|
export const reFrenceConditions = [
|
|
{
|
|
items: [
|
|
{
|
|
colSpan: 1,
|
|
conditionType: "MONTHPICKER",
|
|
domkey: ["salaryYearMonth"],
|
|
fieldcol: 18,
|
|
rules: "required|string",
|
|
label: getLabel(542604, "薪资所属月"),
|
|
labelcol: 6,
|
|
value: "",
|
|
viewAttr: 3
|
|
},
|
|
{
|
|
colSpan: 1,
|
|
conditionType: "SELECT",
|
|
domkey: ["salarySobId"],
|
|
fieldcol: 18,
|
|
isQuickSearch: false,
|
|
label: getLabel(538010, "薪资账套"),
|
|
labelcol: 6,
|
|
valueList: [],
|
|
options: [],
|
|
rules: "required|string",
|
|
viewAttr: 3
|
|
},
|
|
{
|
|
colSpan: 1,
|
|
conditionType: "INPUT",
|
|
domkey: ["description"],
|
|
fieldcol: 18,
|
|
label: getLabel(536726, "备注"),
|
|
labelcol: 6,
|
|
value: "",
|
|
viewAttr: 2
|
|
}
|
|
],
|
|
defaultshow: true
|
|
}
|
|
];
|
|
|
|
|