|
@@ -0,0 +1,98 @@
|
|
|
+export default function useColumns() {
|
|
|
+ const SearchColumns = [
|
|
|
+ {
|
|
|
+ item: { key: "", title: "开始时间", },
|
|
|
+ attr: {
|
|
|
+ is: "el-date-picker",
|
|
|
+ type: "date",
|
|
|
+ placeholder: "选择日期",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
+ clearable: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "结束时间", },
|
|
|
+ attr: {
|
|
|
+ is: "el-date-picker",
|
|
|
+ type: "date",
|
|
|
+ placeholder: "选择日期",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
+ clearable: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "日志类型", },
|
|
|
+ attr: {
|
|
|
+ is: "el-select",
|
|
|
+ clearable: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "员工", },
|
|
|
+ attr: {
|
|
|
+ is: "el-popover-select-v2",
|
|
|
+ referName: "CONTACTS_PARAM",
|
|
|
+ valueKey: "name",
|
|
|
+ dataMapping: {
|
|
|
+ // buyer: "code",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // item: { key: "", title: "员工姓名", },
|
|
|
+ // attr: {
|
|
|
+ // is: "el-input",
|
|
|
+ // clearable: true,
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ ];
|
|
|
+
|
|
|
+ const TableColumns = [
|
|
|
+ {
|
|
|
+ item: { key: "", title: "员工工号", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "员工姓名", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "一级部门", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "二级部门", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "三级部门", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "应交份数", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "实交份数", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "缺交份数", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "", title: "休假", },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ ].map(({ item, attr }) => ({
|
|
|
+ attr,
|
|
|
+ item: {
|
|
|
+ ...item,
|
|
|
+ sortabled: true,
|
|
|
+ fixedabled: true,
|
|
|
+ filterabled: true,
|
|
|
+ hiddenabled: true,
|
|
|
+ },
|
|
|
+ }));
|
|
|
+ return { SearchColumns, TableColumns }
|
|
|
+}
|