123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <template>
- <div>
- <div class="app-container">
- <el-form :model="queryParams" ref="queryForm" size="mini" :inline="true">
- <el-row >
- <el-col :span="18">
- <el-form-item label="状态" prop="status">
- <el-select
- size="mini"
- v-model="queryParams.status"
- placeholder=""
- clearable
- @change="getList"
- >
- <el-option
- v-for="dict in dict.type.ehr_pm_status"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item style="float:right">
- <el-button size="mini" plain @click="btnBack">返回</el-button>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <el-table size="mini" height="500px" v-loading="loading" :data="listData">
- <el-table-column label="编号" align="center" prop="id" />
- <el-table-column label="员工姓名" align="center" prop="staffName" />
- <el-table-column label="评估周期" align="center" prop="name" />
- <el-table-column label="月度" align="center" prop="month" />
- <el-table-column label="自评分" align="center" prop="saMark" />
- <el-table-column label="状态" align="center" prop="status" >
- <template slot-scope="scope">
- <dict-tag :options="dict.type.ehr_pm_status" :value="scope.row.status"/>
- </template>
- </el-table-column>
- <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-search"
- @click="btnPmVerify(scope.row)"
- v-if="scope.row.status == 4"
- >待评分</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </template>
- <script>
- import { listUnMark} from "@/api/business/ehr/pm/pmmark";
- import { getInfo} from "@/api/business/ehr/pm/flow";
- export default {
- name: "AwaitMarkPm",
- dicts: ['ehr_pm_status'],
- data() {
- return {
- // 遮罩层
- loading: true,
- // 表格数据
- listData: [],
- // 查询参数
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- sourceId: null,
- status: null,
- },
- };
- },
- created() {
- this.queryParams.sourceId = this.$route.params.id;
- this.getList();
- },
- methods: {
- /** 查询绩效列表 */
- getList() {
- this.loading = true;
- listUnMark(this.queryParams).then(response => {
- this.listData = response.rows;
- this.loading = false;
- });
- },
- //待确认
- async btnPmVerify(row){
- let params = {
- performanceId:row.id,
- performanceStatus:4,
- staff:this.$store.state.user.name,
- status:0,
- }
- let res = await getInfo(params);
- if(res.code == 200 && res.data){
- this.$router.push({ name: 'AwaitMarkPmDetail', query: { performanceId: row.id,flowId: res.data.id } });
- }else{
- console.log("params",params);
- this.$modal.msgSuccess("未找到对应流程,请联系管理员!");
- }
- },
- //返回
- btnBack(){
- this.$router.push({name:'EvaluatePm'});
- },
- }
- };
- </script>
- <style lang="scss" scoped>
- .btn_grooup {
- margin-bottom: 10px;
- display: flex;
- justify-content: flex-end;
- }
- .paginationClass {
- z-index: 500;
- position: fixed;
- bottom: 10px;
- right: 10px;
- width: 100%;
- line-height: var(--footer-height);
- color: #fff;
- }
- </style>
|