liding
2026-06-24 ec226b03fbd26bc178137ad20d7bd030ef2c5c8b
src/views/personnelManagement/monthlyStatistics/index.vue
@@ -107,7 +107,7 @@
  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";
@@ -167,7 +167,12 @@
      {
        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),
      },
      {
@@ -193,6 +198,7 @@
const operationType = ref("add");
const currentRow = ref({});
const { proxy } = getCurrentInstance();
const userStore = useUserStore();
const bankSetting = ref({});
const bankDialogVisible = ref(false);
const bankDiaRef = ref(null);
@@ -378,8 +384,8 @@
const handleExport = () => {
  proxy.download(
    "/compensationPerformance/export",
    { ...searchForm.value, current: page.current, size: page.size },
    "/staffSalaryMain/export",
    { ...searchForm.value },
    "工资表.xlsx"
  );
};
@@ -404,4 +410,4 @@
.table_list {
  margin-top: 20px;
}
</style>
</style>