| | |
| | | nextTick, |
| | | } from "vue"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import Cookies from "js-cookie"; |
| | | import useUserStore from "@/store/modules/user"; |
| | | import FormDia from "./components/formDia.vue"; |
| | | import BankSettingDia from "./components/bankSettingDia.vue"; |
| | | import AuditDia from "./components/auditDia.vue"; |
| | |
| | | { |
| | | name: "审核", |
| | | type: "text", |
| | | disabled: (row) => Number(row?.status) !== 3, |
| | | disabled: (row) => { |
| | | const currentUserId = Number(userStore.id); |
| | | const auditUserId = Number(row?.auditUserId); |
| | | // 状态不是待审核 或 当前用户不是指定的审核人,则禁用审核按钮 |
| | | return Number(row?.status) !== 3 || !currentUserId || currentUserId !== auditUserId; |
| | | }, |
| | | clickFun: (row) => openAudit(row), |
| | | }, |
| | | { |
| | |
| | | const operationType = ref("add"); |
| | | const currentRow = ref({}); |
| | | const { proxy } = getCurrentInstance(); |
| | | const userStore = useUserStore(); |
| | | const bankSetting = ref({}); |
| | | const bankDialogVisible = ref(false); |
| | | const bankDiaRef = ref(null); |
| | |
| | | |
| | | const handleExport = () => { |
| | | proxy.download( |
| | | "/compensationPerformance/export", |
| | | { ...searchForm.value, current: page.current, size: page.size }, |
| | | "/staffSalaryMain/export", |
| | | { ...searchForm.value }, |
| | | "工资表.xlsx" |
| | | ); |
| | | }; |
| | |
| | | .table_list { |
| | | margin-top: 20px; |
| | | } |
| | | </style> |
| | | </style> |