| | |
| | | <el-select clearable v-model="state.form.fictionId" :disabled="state.title =='查看'" filterable placeholder="编制" style="width: 100%"> |
| | | <el-option |
| | | v-for="item in state.userList" |
| | | :key="item.id" |
| | | :key="item.userId" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | :value="item.userId" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select clearable v-model="state.form.checkId" :disabled="state.title =='查看'" filterable placeholder="审核" style="width: 100%"> |
| | | <el-option |
| | | v-for="item in state.userList" |
| | | :key="item.id" |
| | | :key="item.userId" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | :value="item.userId" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-select clearable v-model="state.form.ratifyId" :disabled="state.title =='查看'" filterable placeholder="批准" style="width: 100%"> |
| | | <el-option |
| | | v-for="item in state.userList" |
| | | :key="item.id" |
| | | :key="item.userId" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | :value="item.userId" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | updateSelectInconsistent |
| | | } from "@/api/innerReview/meetingReview"; |
| | | import {listUser} from "@/api/system/user"; |
| | | |
| | | import {getEmployeeRecords} from "@/api/onlineEducation/user"; |
| | | const emit = defineEmits(["getList"]); |
| | | const dialogVisible = ref(false) |
| | | const superRef = ref() |
| | |
| | | } |
| | | |
| | | const getUserList = async (companyId)=> { |
| | | const res = await listUser({pageIndex: 1,pageSize: 999, companyId: companyId}) |
| | | const res = await getEmployeeRecords({companyId: companyId}) |
| | | if(res.code == 200){ |
| | | state.userList = res.data.list?res.data.list:[] |
| | | }else{ |
| | |
| | | console.log(state.form,'form2') |
| | | const valid = await superRef.value.validate(); |
| | | if(valid){ |
| | | state.form.fictionName = state.userList.find(i=>i.id == state.form.fictionId)?.name |
| | | state.form.checkName = state.userList.find(i=>i.id == state.form.checkId)?.name |
| | | state.form.ratifyName = state.userList.find(i=>i.id == state.form.ratifyId)?.name |
| | | state.form.fictionName = state.userList.find(i=>i.userId == state.form.fictionId)?.name |
| | | state.form.checkName = state.userList.find(i=>i.userId == state.form.checkId)?.name |
| | | state.form.ratifyName = state.userList.find(i=>i.userId == state.form.ratifyId)?.name |
| | | if(state.title == '新增'){ |
| | | const {id,...data} = state.form |
| | | const res = await addManagementPlan(data) |