4 天以前 22229c67d87f0fae4c4bc90db106b8a1e2c49b53
src/views/qualityManagement/finalInspection/index.vue
@@ -193,6 +193,7 @@
    toRefs,
    getCurrentInstance,
    nextTick,
    computed,
  } from "vue";
  import InspectionFormDia from "@/views/qualityManagement/finalInspection/components/inspectionFormDia.vue";
  import FormDia from "@/views/qualityManagement/finalInspection/components/formDia.vue";
@@ -313,7 +314,7 @@
            if (row.inspectState == 1) return true;
            // 如果检验员有值,只有当前登录用户能编辑
            if (row.checkName) {
              return row.checkName !== userStore.nickName;
              return row.checkName !== userStore.nickName && !isAdminUser.value;
            }
            return false;
          },
@@ -336,7 +337,7 @@
            if (row.inspectState == 1) return true;
            // 如果检验员有值,只有当前登录用户能提交
            if (row.checkName) {
              return row.checkName !== userStore.nickName;
              return row.checkName !== userStore.nickName && !isAdminUser.value;
            }
            return false;
          },
@@ -379,6 +380,9 @@
  const inspectionFormDia = ref();
  const { proxy } = getCurrentInstance();
  const userStore = useUserStore();
  const isAdminUser = computed(() =>
    ["admin", "普通2", "最高1"].some(r => (userStore.roles || []).includes(r))
  );
  const userList = ref([]);
  const form = ref({
    checkName: "",