|
@@ -8,42 +8,53 @@
|
|
|
|
|
|
<div class="body_com has_header">
|
|
|
<scroller>
|
|
|
- <van-cell class="efficiency_list" size="large">
|
|
|
+ <van-cell
|
|
|
+ class="efficiency_list"
|
|
|
+ size="large"
|
|
|
+ :title="info.employee_name"
|
|
|
+ >
|
|
|
<template slot="icon">
|
|
|
<userImage :user_name="info.employee_name" :img_url="info.img_url" width="1rem" height="1rem" style="margin-right: 0.12rem;"></userImage>
|
|
|
</template>
|
|
|
- <template slot="title">
|
|
|
- <span>{{ info.employee_name }}</span>
|
|
|
- <div style="color: #909399;" v-if="info.dept_list.length > 0">
|
|
|
- <span v-for="(item, index) in info.dept_list" :key="index">
|
|
|
+ <template slot="label">
|
|
|
+ <span v-if="info.dept_list.length > 0" v-for="(item, index) in info.dept_list" :key="index" class="sub-title">
|
|
|
<em v-if="index > 0">,</em>
|
|
|
{{ item.dept_name }}
|
|
|
</span>
|
|
|
- </div>
|
|
|
- <div style="color: #909399;" v-if="info.dept_list.length == 0">暂无部门</div>
|
|
|
+ <span v-else>暂无部门</span>
|
|
|
</template>
|
|
|
<template slot="default">
|
|
|
- <div style="float: right;text-align: center;padding:0 0.1rem;" v-if="info.status == 4">
|
|
|
+ <div style="float: right;text-align: center;padding:0 0.1rem;" v-if="info.status == 4" class="sub-title">
|
|
|
<span class="point-span">{{ info.point_config.review_point }}</span>
|
|
|
<div style="color: #909399;">最终分</div>
|
|
|
</div>
|
|
|
-
|
|
|
<div style="float: right;text-align: center;padding:0 0.1rem;">
|
|
|
- <span class="point-span">{{ info.point_config.base_point }}</span>
|
|
|
- <div style="color: #909399;">{{ info.pt_name }}</div>
|
|
|
+ <span class="point-span">{{ `${info.point_config.base_point} ${info.pt_name}` }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <van-cell-group :border="false" class="task_detail_group" v-if="info.review_status == 2">
|
|
|
- <van-cell :border="false">
|
|
|
+ <van-cell-group
|
|
|
+ :border="false"
|
|
|
+ class="task_detail_group"
|
|
|
+ v-if="info.review_status === 2"
|
|
|
+ >
|
|
|
+ <van-cell
|
|
|
+ :border="false"
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ >
|
|
|
<template slot="title">
|
|
|
<div class="time">
|
|
|
<span>审批结果</span>
|
|
|
- <span class="timeExactly red">已驳回</span>
|
|
|
+ <span class="timeExactly red">已拒绝</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <van-cell :border="false">
|
|
|
+ <van-cell
|
|
|
+ :border="false"
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ >
|
|
|
<template slot="title">
|
|
|
<div class="time">
|
|
|
<span>驳回理由</span>
|
|
@@ -53,106 +64,283 @@
|
|
|
</van-cell>
|
|
|
</van-cell-group>
|
|
|
|
|
|
- <van-cell-group :border="false" class="task_detail_group">
|
|
|
- <van-cell :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>工作内容</span>
|
|
|
- <span class="timeExactly" style="white-space: pre-line;">{{ info.task_name }}</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-cell :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>发布时间</span>
|
|
|
- <span class="timeExactly">{{ info.create_time }}</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-cell :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>截止时间</span>
|
|
|
- <span class="timeExactly">{{ info.expire_time }}</span>
|
|
|
- <span style="padding-left: 10px;" class="red" v-show="info.expire_day > 0">逾期{{ info.expire_day }}天</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-cell v-if="info.point_config.ahead_award_point * 1 > 0" :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>提前奖分</span>
|
|
|
- <span class="timeExactly">{{ info.point_config.ahead_award_point }}分/天</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-cell v-if="info.point_config.timeout_deduction_point * 1 > 0" :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>逾期扣分</span>
|
|
|
- <span class="timeExactly">{{ info.point_config.timeout_deduction_point }}分/天</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-cell :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>任务备注</span>
|
|
|
- <span class="timeExactly" style="white-space: pre-line;">{{ info.task_remark }}</span>
|
|
|
- </div>
|
|
|
+ <van-row justify="space-around" class="item-title">
|
|
|
+ <van-col span="6" >任务信息</van-col>
|
|
|
+ </van-row>
|
|
|
+ <van-cell-group
|
|
|
+ :border="false"
|
|
|
+ class="task_detail_group"
|
|
|
+ inset
|
|
|
+ >
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="审批人"
|
|
|
+ :value="info.reviewer_name"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="发布人"
|
|
|
+ :value="info.publisher_name"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="任务积分"
|
|
|
+ :value="`${info.point_config.base_point} ${info.pt_name || ''}`"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="内容"
|
|
|
+ :value="info.task_name"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.task_remark"
|
|
|
+ :border="false"
|
|
|
+ title="任务备注"
|
|
|
+ :value="info.task_remark"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="发布时间"
|
|
|
+ :value="info.create_time"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.point_config.review_point"
|
|
|
+ :border="false"
|
|
|
+ title="最终分"
|
|
|
+ :value="info.point_config.review_point"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="截止时间"
|
|
|
+ >
|
|
|
+ <template slot="default">
|
|
|
+ {{ info.expire_time }} <span style="padding-left: 10px;" class="red" v-show="info.expire_day > 0">逾期{{ info.expire_day }}天</span>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.point_config.timeout_deduction_point > 0"
|
|
|
+ :border="false"
|
|
|
+ title="逾期扣分"
|
|
|
+ :value="`${info.point_config.timeout_deduction_point} B分/天`"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.point_config.ahead_award_point > 0"
|
|
|
+ :border="false"
|
|
|
+ title="提前奖分"
|
|
|
+ :value="`${info.point_config.ahead_award_point} B分/天`"
|
|
|
+ />
|
|
|
|
|
|
- <van-cell :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>审批人</span>
|
|
|
- <span class="timeExactly">{{ info.reviewer_name }}</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-cell :border="false" v-if="info.review_remark">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>审批意见</span>
|
|
|
- <span class="timeExactly" style="white-space: pre-line;">{{ info.review_remark }}</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
|
|
|
- <van-cell :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>发布人</span>
|
|
|
- <span class="timeExactly">{{ info.publisher_name }}</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
|
|
|
- <van-cell :border="false">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>积分种类</span>
|
|
|
- <span class="timeExactly">{{ info.pt_name }}</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
|
|
|
- <van-cell :border="false" v-if="info.task_file_list.length != 0">
|
|
|
- <template slot="title">
|
|
|
- <div class="time">
|
|
|
- <span>任务图片</span>
|
|
|
- <span>
|
|
|
- <van-image v-for="(items, index) in info.task_file_list" :key="index" @click="open_image(info.task_file_list)" width="45" height="45" radius="3" :src="items" />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
+<!-- <van-cell :border="false">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>发布时间</span>-->
|
|
|
+<!-- <span class="timeExactly">{{ info.create_time }}</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+<!-- <van-cell :border="false">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>截止时间</span>-->
|
|
|
+<!-- <span class="timeExactly">{{ info.expire_time }}</span>-->
|
|
|
+<!-- <span style="padding-left: 10px;" class="red" v-show="info.expire_day > 0">逾期{{ info.expire_day }}天</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+<!-- <van-cell v-if="info.point_config.ahead_award_point * 1 > 0" :border="false">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>提前奖分</span>-->
|
|
|
+<!-- <span class="timeExactly">{{ info.point_config.ahead_award_point }}分/天</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+<!-- <van-cell v-if="info.point_config.timeout_deduction_point * 1 > 0" :border="false">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>逾期扣分</span>-->
|
|
|
+<!-- <span class="timeExactly">{{ info.point_config.timeout_deduction_point }}分/天</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+<!-- <van-cell :border="false">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>任务备注</span>-->
|
|
|
+<!-- <span class="timeExactly" style="white-space: pre-line;">{{ info.task_remark }}</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+
|
|
|
+<!-- <van-cell :border="false">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>审批人</span>-->
|
|
|
+<!-- <span class="timeExactly">{{ info.reviewer_name }}</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+<!-- <van-cell :border="false" v-if="info.review_remark">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>审批意见</span>-->
|
|
|
+<!-- <span class="timeExactly" style="white-space: pre-line;">{{ info.review_remark }}</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+
|
|
|
+<!-- <van-cell :border="false">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>发布人</span>-->
|
|
|
+<!-- <span class="timeExactly">{{ info.publisher_name }}</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+
|
|
|
+<!-- <van-cell :border="false">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>积分种类</span>-->
|
|
|
+<!-- <span class="timeExactly">{{ info.pt_name }}</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+
|
|
|
+<!-- <van-cell :border="false" v-if="info.task_file_list.length != 0">-->
|
|
|
+<!-- <template slot="title">-->
|
|
|
+<!-- <div class="time">-->
|
|
|
+<!-- <span>任务图片</span>-->
|
|
|
+<!-- <span>-->
|
|
|
+<!-- <van-image v-for="(items, index) in info.task_file_list" :key="index" @click="open_image(info.task_file_list)" width="45" height="45" radius="3" :src="items" />-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
</van-cell-group>
|
|
|
|
|
|
- <van-cell-group class="point" v-if="info.point_config.standard && info.point_config.standard.super_satisfied * 1 > 0">
|
|
|
- <van-cell v-if="info.point_config.standard" title="评分标准">
|
|
|
+
|
|
|
+
|
|
|
+ <template v-if="info.item_info">
|
|
|
+ <van-row justify="space-around" class="item-title">
|
|
|
+ <van-col span="6" >规则依据</van-col>
|
|
|
+ </van-row>
|
|
|
+ <van-cell-group
|
|
|
+ :border="false"
|
|
|
+ class="task_detail_group"
|
|
|
+ inset
|
|
|
+ >
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="规则"
|
|
|
+ :value="info.item_info.remark"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="积分"
|
|
|
+ :value="pointRemark"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.item_info.has_delete"
|
|
|
+ :border="false"
|
|
|
+ title="规则状态"
|
|
|
+ >
|
|
|
+ <template slot="default">
|
|
|
+ <van-tag type="warning">规则已删除</van-tag>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.rule_info"
|
|
|
+ :border="false"
|
|
|
+ title="分类"
|
|
|
+ :value="info.rule_info.name"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.rule_info && info.rule_info.has_delete"
|
|
|
+ :border="false"
|
|
|
+ title="分类状态"
|
|
|
+ >
|
|
|
+ <template slot="default">
|
|
|
+ <van-tag type="warning">分类已删除</van-tag>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ </van-cell-group>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-else-if="info.rule_info">
|
|
|
+ <van-row justify="space-around" class="item-title">
|
|
|
+ <van-col span="6" >分类依据</van-col>
|
|
|
+ </van-row>
|
|
|
+ <van-cell-group
|
|
|
+ :border="false"
|
|
|
+ class="task_detail_group"
|
|
|
+ inset
|
|
|
+ >
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ :border="false"
|
|
|
+ title="分类"
|
|
|
+ :value="info.rule_info.name"
|
|
|
+ />
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.rule_info.has_delete"
|
|
|
+ :border="false"
|
|
|
+ title="分类状态"
|
|
|
+ >
|
|
|
+ <template slot="default">
|
|
|
+ <van-tag type="warning">分类已删除</van-tag>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ </van-cell-group>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <van-cell-group
|
|
|
+ class="point"
|
|
|
+ v-if="info.point_config.standard && info.point_config.standard.super_satisfied * 1 > 0"
|
|
|
+ inset
|
|
|
+ >
|
|
|
+ <van-cell
|
|
|
+ title-class="align_self"
|
|
|
+ value-class="align_self"
|
|
|
+ v-if="info.point_config.standard"
|
|
|
+ title="评分标准"
|
|
|
+ >
|
|
|
<template slot="label">
|
|
|
<van-grid slot="label" :border="false">
|
|
|
<van-grid-item text="超预期">
|
|
@@ -195,6 +383,7 @@
|
|
|
</van-slider>
|
|
|
</div>
|
|
|
</van-panel>
|
|
|
+
|
|
|
<div class="task">
|
|
|
<van-row>
|
|
|
<van-col span="16">
|
|
@@ -204,8 +393,8 @@
|
|
|
</van-tabs>
|
|
|
</van-col>
|
|
|
<van-col span="8" style="background:#fff;border-bottom:0.02rem #efefef solid;">
|
|
|
- <div v-if="active == 0 && info.employee_id == $userInfo().id && info.status < 3" @click="remberOne" class="rember">+记一条</div>
|
|
|
- <div v-if="active != 0 && isShowJf" @click="noteone" class="rember">记分</div>
|
|
|
+ <div v-if="active === 0 && canUpdate" @click="remberOne" class="rember">+记一条</div>
|
|
|
+ <div v-if="active !== 0 && isShowJf" @click="noteone" class="rember">记分</div>
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
<div ref="scoringNotice" style="clear: both;">
|
|
@@ -217,7 +406,7 @@
|
|
|
<van-cell-group
|
|
|
v-if="info.process !== null && info.process.list !== null"
|
|
|
v-for="(item, index) in info.process.list"
|
|
|
- :key="index"
|
|
|
+ :key="'record' + index"
|
|
|
v-show="active == 0 && item.point == 0"
|
|
|
:border="false"
|
|
|
>
|
|
@@ -257,7 +446,7 @@
|
|
|
<van-cell-group
|
|
|
v-if="info.process !== null && info.process.list !== null"
|
|
|
v-for="(item, index) in info.process.list"
|
|
|
- :key="index"
|
|
|
+ :key="'point' + index"
|
|
|
v-show="info.process.list !== null && active != 0 && item.point != 0"
|
|
|
:border="false"
|
|
|
>
|
|
@@ -297,7 +486,6 @@
|
|
|
<van-cell-group style="background: none;" v-show="active != 0 && point_list.length == 0">
|
|
|
<noTask src="static/images/noTask.png" detail_text="还没有记分记录去记一条吧" />
|
|
|
</van-cell-group>
|
|
|
-
|
|
|
</div>
|
|
|
|
|
|
<div v-if="text_list.length != 0 || point_list.length != 0" style="height: 2rem;"></div>
|
|
@@ -307,7 +495,7 @@
|
|
|
<div style="padding:0.32rem;width: 90%;position: fixed;bottom: 0;" v-if="info.reviewer_id == $userInfo().id && info.status == 2&&!isShowSp">
|
|
|
<van-button block type="info" @click="go_approval">去审批</van-button>
|
|
|
</div>
|
|
|
- <div style="padding:0.32rem;width: 90%;position: fixed;bottom: 0;" v-if="info.employee_id == $userInfo().id && info.status == 1&&!isShowSp">
|
|
|
+ <div style="padding:0.4rem;width: 90%;position: fixed;bottom: 0; background-color: white;" v-if="canUpdate&&!isShowSp">
|
|
|
<van-button block type="info" @click="complete_task(info)">完成</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -335,11 +523,12 @@ export default {
|
|
|
// 数据
|
|
|
data () {
|
|
|
return {
|
|
|
+ userInfo:this.$userInfo(),
|
|
|
The_current_account: false,
|
|
|
active: 0,
|
|
|
numberslider: 0,
|
|
|
active1: 'running',
|
|
|
- title: '工作详情',
|
|
|
+ title: '任务详情',
|
|
|
filter: {
|
|
|
page: 1,
|
|
|
type: 'all',
|
|
@@ -369,7 +558,11 @@ export default {
|
|
|
status_mark: '',
|
|
|
task_file_list: [],
|
|
|
task_name: '',
|
|
|
- task_remark: ''
|
|
|
+ task_remark: '',
|
|
|
+ rule_id:0,
|
|
|
+ rule_info:{},
|
|
|
+ item_id:0,
|
|
|
+ item_info:{}
|
|
|
},
|
|
|
process: [],
|
|
|
checked: false,
|
|
@@ -403,6 +596,7 @@ export default {
|
|
|
},
|
|
|
activated() {
|
|
|
if (this.$route.query.task_id) {
|
|
|
+ this.info.id = this.$route.query.task_id
|
|
|
this.getList()
|
|
|
}
|
|
|
if(this.$route.query.isHome){
|
|
@@ -434,7 +628,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
sheet_select (action, index) {
|
|
|
- if (action.name == '编辑任务') {
|
|
|
+ if (action.name == '更新任务') {
|
|
|
if (this.$route.query.isJx) {
|
|
|
// 编辑 从上一个页面传过来一些参数
|
|
|
this.$router.push({
|
|
@@ -446,7 +640,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- this.$router.push({ name: 'compile_task', query: { info: JSON.stringify(this.info) } })
|
|
|
+ this.$router.push({name:'WorkEdit',params:{workId:this.$route.query.task_id.toString()}})
|
|
|
+ // this.$router.push({ name: 'compile_task', query: { info: JSON.stringify(this.info) } })
|
|
|
}
|
|
|
}
|
|
|
if (action.name == '撤销任务') {
|
|
@@ -537,10 +732,10 @@ export default {
|
|
|
// 这里比较复杂,因为团队绩效的工作详情跟我的发布的工作详情都调用这个页面
|
|
|
if (data.status == 1) {
|
|
|
if (data.pt_id != 1) {
|
|
|
- this.actions.push({ name: '编辑任务' })
|
|
|
+ this.actions.push({ name: '更新任务' })
|
|
|
this.actions.push({ name: '删除任务' })
|
|
|
} else if (data.pt_id == 1 && this.$route.query.isJx) {
|
|
|
- this.actions.push({ name: '编辑任务' })
|
|
|
+ this.actions.push({ name: '更新任务' })
|
|
|
this.actions.push({ name: '删除任务' })
|
|
|
} else {
|
|
|
this.actions.push({ name: '删除任务' })
|
|
@@ -550,16 +745,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
keepTheScore(data){
|
|
|
- if(data.status > 2){
|
|
|
+ if(![1,2,6].includes(data.status)){
|
|
|
return false
|
|
|
}
|
|
|
- if(this.$userInfo().id == data.reviewer_id){
|
|
|
+ if(this.userInfo.id === data.reviewer_id){
|
|
|
return true
|
|
|
}
|
|
|
let info=this.$getEmployeeMapItem(data.employee_id)
|
|
|
if(info){
|
|
|
return info.employee_detail.superior_list.some(x =>{
|
|
|
- if(this.$userInfo().id == x.id){
|
|
|
+ if(this.userInfo.id === x.id){
|
|
|
return true
|
|
|
}
|
|
|
})
|
|
@@ -632,6 +827,15 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ canUpdate(){
|
|
|
+ return this.info.employee_id === this.userInfo.id && [1,6].includes(this.info.status)
|
|
|
+ },
|
|
|
+ pointRemark(){
|
|
|
+ if (!(this.info && this.info.item_info)) return ''
|
|
|
+ return this.info.item_info.range_type === 1 ? `${this.info.item_info.min_point} ${this.$getTypesName(this.info.item_info.pt_id)}` : `${this.info.item_info.min_point} -- ${this.info.item_info.max_point} ${this.$getTypesName(this.info.item_info.pt_id)}`
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted () {
|
|
|
this.getLocalStorage()
|
|
|
},
|
|
@@ -892,4 +1096,19 @@ export default {
|
|
|
-webkit-transform: scale(0.5);
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
+.item-title{
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 0.25rem;
|
|
|
+ line-height: 0.5rem;
|
|
|
+ color: #969799;
|
|
|
+}
|
|
|
+.sub-title{
|
|
|
+ font-size: 0.25rem;
|
|
|
+ line-height: 0.25rem;
|
|
|
+ color: #969799;
|
|
|
+}
|
|
|
+.align_self{
|
|
|
+ align-self: center;
|
|
|
+}
|
|
|
</style>
|