董国庆
7 天以前 069ef85293bb4baa74dd9251e8b3fd8cc4355410
laboratory/src/views/dataManagement/schemeManagement/list.vue
@@ -89,13 +89,13 @@
            <!-- 工艺工程师(3) -->
            <template v-if="userRole == '3'">
              <el-button type="text" @click="handleEdit(scope.row)" v-if="scope.row.status == '4'">编辑</el-button>
              <!-- <el-button type="text" @click="handleEdit(scope.row)" >编辑</el-button> -->
              <el-button type="text" @click="handleDetail(scope.row)">详情</el-button>
            </template>
            <!-- 实验员(5) -->
            <template v-if="userRole == '5'">
              <el-button type="text" @click="handleEdit(scope.row)" v-if="scope.row.status == '4'">编辑</el-button>
              <el-button type="text" @click="handleEdit(scope.row)">编辑</el-button>
            </template>
          </template>
        </el-table-column>
@@ -244,17 +244,7 @@
    handleDetail(row) {
      this.approvalDialogType = 'view';
      this.approvalDialogVisible = true;
      this.getPlanDetail(row.id);
    },
    async getPlanDetail(id) {
      try {
        const { data } = await this.$api.getDetail({ id });
        this.currentApprovalData = data;
      } catch (error) {
        console.error('获取方案详情失败:', error);
        this.$message.error('获取方案详情失败');
        this.approvalDialogVisible = false;
      }
      this.currentApprovalData = row;
    },
    handleApproveSubmit(data) {
      this.approvalDialogVisible = false;