| | |
| | | |
| | | <!-- 工艺工程师(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> |
| | |
| | | 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; |