|
@@ -3,12 +3,11 @@
|
|
|
<el-card>
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight:bold">绩效考核表</span>
|
|
|
- <div style="float: right; padding: 3px 0" type="text">
|
|
|
+ <div style="float: right; padding: 3px 0; display:flex;justify-content:space-between" type="text">
|
|
|
<el-button size="mini" plain @click="btnBack">返回</el-button>
|
|
|
<el-button size="mini" plain @click="btnSubmit" v-if="this.$store.state.user.name == form.staff && (form.status == '0' || form.status == '3')">提交</el-button>
|
|
|
- <el-button size="mini" plain @click="btnCopyItem" v-if="this.$store.state.user.name == form.staff && form.status == '0'">复制指标</el-button>
|
|
|
- <!-- <el-button size="mini" plain @click="btnLog">指标修改记录</el-button> -->
|
|
|
- <el-button size="mini" plain @click="btnApproveLog">指标审批记录</el-button>
|
|
|
+ <CopyItemDialog style="margin: 0 10px" @setItems="setItems" v-if="this.$store.state.user.name == form.staff && form.status == '0'"></CopyItemDialog>
|
|
|
+ <ApproveLogDialog style="margin: 0 10px" :pmId="form.id"></ApproveLogDialog>
|
|
|
<el-button size="mini" plain @click="btnPreviou" v-if="ids">上一个</el-button>
|
|
|
<el-button size="mini" plain @click="btnNext" v-if="ids">下一个</el-button>
|
|
|
</div>
|
|
@@ -159,6 +158,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import ApproveLogDialog from './btnApproveLog.vue'
|
|
|
+import CopyItemDialog from './btnCopyItem.vue'
|
|
|
import { getPerformance,fillinFinish,selfestimate} from "@/api/business/ehr/pm/performance";
|
|
|
import { getPerformanceItem,addPerformanceItem,updatePerformanceItem,batchUpdatePerformanceItem,delPerformanceItem} from "@/api/business/ehr/pm/performanceitem";
|
|
|
|
|
@@ -170,6 +171,7 @@ export default {
|
|
|
prop: 'isList',
|
|
|
event: 'jugislist'
|
|
|
},
|
|
|
+ components: {ApproveLogDialog,CopyItemDialog},
|
|
|
data() {
|
|
|
return {
|
|
|
//id
|
|
@@ -365,18 +367,21 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- //复制指标
|
|
|
- btnCopyItem(){
|
|
|
-
|
|
|
- },
|
|
|
- //指标修改记录
|
|
|
- btnLog(){
|
|
|
-
|
|
|
+ //设置明细
|
|
|
+ setItems(items){
|
|
|
+ console.log(111);
|
|
|
+ items.forEach((e) => {
|
|
|
+ e.id = null;
|
|
|
+ e.standard = null;
|
|
|
+ e.selfScoring = null;
|
|
|
+ e.selfComment = null;
|
|
|
+ e.leaderScoring = null;
|
|
|
+ e.leaderComment = null;
|
|
|
+ e.weightedScore = null;
|
|
|
+ });
|
|
|
+ this.form.performanceItem = items;
|
|
|
+ return true;
|
|
|
},
|
|
|
- //指标审批记录
|
|
|
- btnApproveLog(){
|
|
|
-
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
</script>
|