| | |
| | | projectAddress: [{ required: true, message: "项目地点不能为空", trigger: "blur" }], |
| | | deptUserName: [{ required: true, message: "处室带队人员不能为空", trigger: "blur" }], |
| | | remark: [{ required: true, message: "概况描述不能为空", trigger: "blur" }], |
| | | } |
| | | }, |
| | | isAdmin: false |
| | | }) |
| | | const formRef = ref(); |
| | | const userInfo = ref() |
| | |
| | | userInfo.value = JSON.parse(Cookies.get('userInfo')) |
| | | state.formData.deptName = userInfo.value.dept.deptName |
| | | state.formData.deptId = userInfo.value.deptId |
| | | state.isAdmin = userInfo.value.admin |
| | | }) |
| | | |
| | | |
| | |
| | | let valid = null |
| | | if(type === 'add' || type === 'clickEdit'){ |
| | | valid = await formRef.value.validate(); |
| | | if (state.isAdmin) { |
| | | ElMessage.warning("当前用户暂无权限"); |
| | | return; |
| | | } |
| | | } |
| | | if(type === 'add'){ |
| | | if(valid){ |
| | |
| | | <div style="margin-bottom: 50px"> |
| | | <div class="fTop"> |
| | | <span style="font-weight: 600">固定选用部分</span> |
| | | <el-button type="primary" :disabled="state.info.step == 4" style="width: 100px" @click="chooseExpert('选取专家')">选取专家</el-button> |
| | | <el-button type="primary" :disabled="state.info.step == 4 || state.isAdmin" style="width: 100px" @click="chooseExpert('选取专家')">选取专家</el-button> |
| | | </div> |
| | | <el-table v-loading="fLoading" :data="fixedDataList" :border="true" ref="fTableRef" style="width: 100%;"> |
| | | <el-table-column label="姓名" prop="name" align="center" /> |
| | |
| | | <el-table-column label="专业领域" prop="domain" align="center" /> |
| | | <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="delF(scope.row)" :disabled="state.info.step == 4">删除</el-button> |
| | | <el-button link type="primary" @click="delF(scope.row)" :disabled="state.info.step == 4 || state.isAdmin">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item style="float: right;"> |
| | | <el-button style="width: 100px;margin-right: -32px;" :disabled="state.info.step == 4" type="primary" @click="random">随机抽取</el-button> |
| | | <el-button style="width: 100px;margin-right: -32px;" :disabled="state.info.step == 4 || state.isAdmin" type="primary" @click="random">随机抽取</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-table-column label="专业领域" prop="domain" align="center" /> |
| | | <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="delR(scope.row)" :disabled="state.info.step == 4">删除</el-button> |
| | | <el-button link type="primary" @click="delR(scope.row)" :disabled="state.info.step == 4 || state.isAdmin">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import {getExpertTypes} from "@/api/form"; |
| | | import {ElMessage} from "element-plus"; |
| | | import {addProject, choose, expertRound, getCheckInfo} from "@/api/projectManage"; |
| | | import Cookies from "js-cookie"; |
| | | |
| | | const emit = defineEmits(["getNextStatus"]); |
| | | const fTableRef = ref(null); |
| | |
| | | id: 3, |
| | | name: '三级' |
| | | }, |
| | | ] |
| | | ], |
| | | isAdmin: false |
| | | }) |
| | | |
| | | |
| | | |
| | | const userInfo = ref() |
| | | onMounted(() =>{ |
| | | userInfo.value = JSON.parse(Cookies.get('userInfo')) |
| | | state.isAdmin = userInfo.value.admin |
| | | getDomain() |
| | | }) |
| | | const riskOpen = async (type,val) => { |
| | | console.log("type",type,val) |
| | | if(type === 'add' || type === 'clickEdit'){ |
| | | if (state.isAdmin) { |
| | | ElMessage.warning("当前用户暂无权限"); |
| | | return; |
| | | } |
| | | if(fixedDataList.value.length === 0 && randomDataList.value.length === 0){ |
| | | ElMessage.warning('请选择专家') |
| | | return; |
| | |
| | | |
| | | const openDialog = (type,choosedData,domainList) => { |
| | | research() |
| | | nextTick(() => { |
| | | tableRef.value.clearSelection() |
| | | }) |
| | | data.dialogVisible = true |
| | | data.choosed = choosedData.map(item => { |
| | | return{ |
| | |
| | | emit('getName',data.title,data.choosed) |
| | | tableRef.value.clearSelection() |
| | | data.dialogVisible = false |
| | | }else{ |
| | | ElMessage.warning('请选择专家') |
| | | } |
| | | } |
| | | |
| | |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" :disabled="state.dataForm.state >= 2 " v-if="scope.row.teamLeader === 1" @click="scope.row.teamLeader = 0">取消组长</el-button> |
| | | <el-button link type="primary" :disabled="state.dataForm.state >= 2" v-else @click="scope.row.teamLeader = 1">设为组长</el-button> |
| | | <el-button link type="primary" :disabled="state.dataForm.state >= 2 || state.isAdmin" v-if="scope.row.teamLeader === 1" @click="scope.row.teamLeader = 0">取消组长</el-button> |
| | | <el-button link type="primary" :disabled="state.dataForm.state >= 2 || state.isAdmin" v-else @click="scope.row.teamLeader = 1">设为组长</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import axios from "axios"; |
| | | import {generateWordDocument} from "@/views/safetyReview/projectManage/components/exportWord"; |
| | | import {addProject, checkProject, choose, getCheckInfo, getFileInfo, getProjectList} from "@/api/projectManage"; |
| | | import Cookies from "js-cookie"; |
| | | const emit = defineEmits(["getNextStatus","backStatus"]); |
| | | const prop = defineProps(['projectId']) |
| | | const tableRef = ref() |
| | |
| | | Authorization: getToken() |
| | | }, |
| | | fileList: [], |
| | | projectId: null |
| | | projectId: null, |
| | | isAdmin: false |
| | | }); |
| | | const projectType = ref('') |
| | | const userInfo = ref() |
| | | onMounted(async () => { |
| | | if(prop.projectId){ |
| | | state.projectId = prop.projectId |
| | | await getList() |
| | | |
| | | } |
| | | userInfo.value = JSON.parse(Cookies.get('userInfo')) |
| | | state.isAdmin = userInfo.value.admin |
| | | |
| | | }) |
| | | const isView = ref(false) |
| | |
| | | console.log("type",type,val) |
| | | //生成审批按钮 |
| | | if(type === 'confirmApproval'){ |
| | | if (state.isAdmin) { |
| | | ElMessage.warning("当前用户暂无权限"); |
| | | return; |
| | | } |
| | | isView.value = false |
| | | if(state.dataForm.state == 2){ |
| | | dialogVisible.value = true |
| | |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import axios from "axios"; |
| | | import {archiveProject, checkProject, getFileInfo, getProjectInfo} from "@/api/projectManage"; |
| | | import Cookies from "js-cookie"; |
| | | |
| | | const emit = defineEmits(["getNextStatus"]); |
| | | const prop = defineProps(['projectId']) |
| | |
| | | Authorization: getToken() |
| | | }, |
| | | fileList: [], |
| | | projectId: null |
| | | projectId: null, |
| | | isAdmin: false |
| | | }); |
| | | |
| | | const userInfo = ref() |
| | | onMounted(async () => { |
| | | if(prop.projectId){ |
| | | state.projectId = prop.projectId |
| | | } |
| | | userInfo.value = JSON.parse(Cookies.get('userInfo')) |
| | | state.isAdmin = userInfo.value.admin |
| | | }) |
| | | |
| | | const formRef = ref() |
| | |
| | | let valid = null |
| | | if(type === 'confirm'){ |
| | | valid = await formRef.value.validate(); |
| | | if (state.isAdmin) { |
| | | ElMessage.warning("当前用户暂无权限"); |
| | | return; |
| | | } |
| | | } |
| | | if(type === 'confirm'){ |
| | | if(valid){ |