199 lines
3.6 KiB
JavaScript
199 lines
3.6 KiB
JavaScript
import { WeaLocaleProvider } from "ecCom";
|
|
import { dataTypeOptions, patternOptions, roundingModeOptions } from "./options";
|
|
|
|
const getLabel = WeaLocaleProvider.getLabel;
|
|
export const columns = [
|
|
{
|
|
title: "名称",
|
|
dataIndex: "title",
|
|
key: "title"
|
|
},
|
|
{
|
|
title: "属性",
|
|
dataIndex: "title",
|
|
key: "title"
|
|
},
|
|
{
|
|
title: "类型",
|
|
dataIndex: "title",
|
|
key: "title"
|
|
},
|
|
{
|
|
title: "薪资档案引用",
|
|
dataIndex: "refere",
|
|
key: "refere"
|
|
},
|
|
{
|
|
title: "默认使用",
|
|
dataIndex: "refere",
|
|
key: "refere"
|
|
},
|
|
{
|
|
title: "进位规则",
|
|
dataIndex: "title",
|
|
key: "title"
|
|
},
|
|
{
|
|
title: "保留小数位",
|
|
dataIndex: "title",
|
|
key: "title"
|
|
},
|
|
{
|
|
title: "取值方式",
|
|
dataIndex: "title",
|
|
key: "title"
|
|
},
|
|
{
|
|
title: "备注",
|
|
dataIndex: "title",
|
|
key: "title"
|
|
},
|
|
{
|
|
title: "操作",
|
|
dataIndex: "cz",
|
|
key: "cz"
|
|
}
|
|
];
|
|
export const salaryItemFields = [
|
|
{
|
|
key: "name",
|
|
label: "名称",
|
|
type: "INPUT",
|
|
viewAttr: 3,
|
|
tip: ""
|
|
},
|
|
// {
|
|
// key: 'useInEmployeeSalary',
|
|
// label: '薪资档案引用',
|
|
// type: 'SWITCH',
|
|
// viewAttr: 2,
|
|
// tip: '提示:开启后,该薪资项目不可删除或设为无效,取值方式会默认置为输入'
|
|
// },
|
|
{
|
|
key: "useDefault",
|
|
label: "默认使用",
|
|
type: "SWITCH",
|
|
viewAttr: 2,
|
|
tip: "提示:开启后,每个薪资方案都有该薪资项目,可在具体薪资方案中删除"
|
|
},
|
|
{
|
|
key: "hideDefault",
|
|
label: getLabel(111, "核算时隐藏"),
|
|
type: "SWITCH",
|
|
viewAttr: 2,
|
|
tip: getLabel(111, "提示:开启后,在薪资账套中添加该项目时,默认勾选隐藏且在核算时隐藏该薪资项目,可在具体薪资账套中设置是否隐藏")
|
|
},
|
|
{
|
|
key: "sharedType",
|
|
label: "可见性",
|
|
type: "SELECT",
|
|
viewAttr: 2,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "taxAgentIds",
|
|
label: "可见性范围",
|
|
type: "SELECT",
|
|
viewAttr: 3,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "dataType",
|
|
label: "字段类型",
|
|
type: "SELECT",
|
|
viewAttr: 3,
|
|
options: dataTypeOptions,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "roundingMode",
|
|
label: "舍入规则",
|
|
type: "SELECT",
|
|
viewAttr: 2,
|
|
options: roundingModeOptions,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "pattern",
|
|
label: "保留小数位",
|
|
type: "SELECT",
|
|
viewAttr: 2,
|
|
options: patternOptions,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "valueType",
|
|
label: "取值方式",
|
|
type: "RADIO",
|
|
viewAttr: 2,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "defaultValue",
|
|
label: "默认值",
|
|
type: "INPUT",
|
|
viewAttr: 2,
|
|
precision: 2,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "formulaContent",
|
|
label: "公式",
|
|
type: "INPUT",
|
|
viewAttr: 2,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "sortedIndex",
|
|
label: "显示顺序",
|
|
type: "INPUTNUMBER",
|
|
viewAttr: 2,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "width",
|
|
label: "显示宽度",
|
|
lanId: 111,
|
|
type: "INPUTNUMBER",
|
|
viewAttr: 2,
|
|
tip: ""
|
|
},
|
|
{
|
|
key: "description",
|
|
label: "备注",
|
|
type: "TEXTAREA",
|
|
viewAttr: 2,
|
|
tip: ""
|
|
}
|
|
];
|
|
export const valTakeOptions = [
|
|
{ key: "1", showname: "输入" },
|
|
{ key: "2", showname: "公式" },
|
|
{ key: "3", showname: "SQL" }
|
|
];
|
|
export const salarySetConditions = [
|
|
{
|
|
items: [{
|
|
colSpan: 1,
|
|
checkbox: false,
|
|
checkboxValue: false,
|
|
conditionType: "SELECT",
|
|
domkey: ["salarySobIds"],
|
|
fieldcol: 14,
|
|
label: "薪资账套",
|
|
lanId: 538010,
|
|
labelcol: 6,
|
|
options: [],
|
|
rules: "required|string",
|
|
multiple: true,
|
|
viewAttr: 3
|
|
}],
|
|
title: "",
|
|
defaultshow: true
|
|
}
|
|
];
|
|
|
|
|
|
|
|
|