yuan
8 小时以前 56158a98729ba25b04f7c80d88aafa59cc41a504
src/views/qualityManagement/rawMaterialInspection/index.vue
@@ -167,7 +167,7 @@
    label: "操作",
    align: "center",
    fixed: "right",
    width: 280,
    width: 340,
    operation: [
      {
        name: "编辑",
@@ -179,6 +179,20 @@
               // 已提交则禁用
               if (row.inspectState == 1) return true;
               // 如果检验员有值,只有当前登录用户能编辑
               if (row.checkName) {
                  return row.checkName !== userStore.nickName;
               }
               return false;
            }
      },
      {
        name: "填写检验记录",
        type: "text",
        clickFun: (row) => {
          openInspectionForm("edit", row);
        },
            disabled: (row) => {
               if (row.inspectState == 1) return true;
               if (row.checkName) {
                  return row.checkName !== userStore.nickName;
               }
@@ -294,6 +308,12 @@
    formDia.value?.openDialog(type, row)
  })
};
// 打开新增检验弹框
const openInspectionForm = (type, row) => {
  nextTick(() => {
    inspectionFormDia.value?.openDialog(type, row)
  })
};
// 打开附件弹框
const openFilesFormDia = (type, row) => {
  nextTick(() => {