| | |
| | | } 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"; |
| | |
| | | staffSalaryMainUpdate, |
| | | } from "@/api/personnelManagement/staffSalaryMain.js"; |
| | | |
| | | const userStore = useUserStore(); |
| | | const data = reactive({ |
| | | searchForm: { |
| | | salaryTitle: "", |
| | |
| | | { |
| | | 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), |
| | | }, |
| | | { |