|
@@ -1,17 +1,17 @@
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
|
|
+ <div class="u-OA-jixiao">
|
|
<div class="head">第三部分 项目过程实施</div>
|
|
<div class="head">第三部分 项目过程实施</div>
|
|
<table class="main-table">
|
|
<table class="main-table">
|
|
<tr v-for="(item, index) in stepEdit.assessmentLog" :key="index">
|
|
<tr v-for="(item, index) in stepEdit.assessmentLog" :key="index">
|
|
<!-- <td :rowspan="12" style="width: 80px">项目成员<br/>考核日志</td> -->
|
|
<!-- <td :rowspan="12" style="width: 80px">项目成员<br/>考核日志</td> -->
|
|
- <td class="title" style="width: 100px">
|
|
|
|
|
|
+ <td class="title" style="width: 100px;">
|
|
<div>{{index + 1}}</div>
|
|
<div>{{index + 1}}</div>
|
|
- <input v-model="item.name" style="width: 80px;text-align: center" placeholder="" :disabled="stepParameter.disabled"/>
|
|
|
|
- <input v-model="item.job" style="width: 80px;text-align: center" placeholder="" :disabled="stepParameter.disabled"/>
|
|
|
|
|
|
+ <input v-model="item.name" style="width: 80px;height: 30px;text-align: center" placeholder="" :disabled="stepParameter.disabled"/>
|
|
|
|
+ <input v-model="item.job" style="width: 80px;height: 30px;text-align: center" placeholder="" :disabled="stepParameter.disabled"/>
|
|
</td>
|
|
</td>
|
|
- <td class="content" colspan="3">
|
|
|
|
|
|
+ <td class="content" colspan="8">
|
|
<div style="display: flex; align-items: flex-end;">
|
|
<div style="display: flex; align-items: flex-end;">
|
|
- <div>
|
|
|
|
|
|
+ <div style="width: 500px;">
|
|
<div>——★考核结果★——工作质量10×积极性10×工作量{{item.resultData.gongshi * item.resultData.qiangdu}}=得分{{10*10*item.resultData.gongshi * item.resultData.qiangdu}}</div>
|
|
<div>——★考核结果★——工作质量10×积极性10×工作量{{item.resultData.gongshi * item.resultData.qiangdu}}=得分{{10*10*item.resultData.gongshi * item.resultData.qiangdu}}</div>
|
|
<table>
|
|
<table>
|
|
<thead>
|
|
<thead>
|
|
@@ -26,11 +26,11 @@
|
|
<td style="width: 80px;">警告数</td> -->
|
|
<td style="width: 80px;">警告数</td> -->
|
|
<!-- <td style="width: 60px">操作</td> -->
|
|
<!-- <td style="width: 60px">操作</td> -->
|
|
</thead>
|
|
</thead>
|
|
- <tr>
|
|
|
|
|
|
+ <tr style="height: 30px;">
|
|
<td>1</td>
|
|
<td>1</td>
|
|
- <td><input style="width: 80px;" v-model="item.resultData.date" :disabled="stepParameter.disabled" /></td>
|
|
|
|
- <td><input style="width: 80px;" v-model="item.resultData.gongshi" :disabled="stepParameter.disabled" /></td>
|
|
|
|
- <td><input style="width: 80px;" v-model="item.resultData.qiangdu" :disabled="stepParameter.disabled" /></td>
|
|
|
|
|
|
+ <td><input style="width: 80px;height: 20px;" v-model="item.resultData.date" :disabled="stepParameter.disabled" /></td>
|
|
|
|
+ <td><input style="width: 80px;height: 20px;" v-model="item.resultData.gongshi" :disabled="stepParameter.disabled" /></td>
|
|
|
|
+ <td><input style="width: 80px;height: 20px;" v-model="item.resultData.qiangdu" :disabled="stepParameter.disabled" /></td>
|
|
<td>{{item.resultData.gongshi*item.resultData.qiangdu}}</td>
|
|
<td>{{item.resultData.gongshi*item.resultData.qiangdu}}</td>
|
|
</tr>
|
|
</tr>
|
|
<!-- <td><input style="width: 80px;" v-model="item.resultData.gaozhiNum" /></td>
|
|
<!-- <td><input style="width: 80px;" v-model="item.resultData.gaozhiNum" /></td>
|
|
@@ -40,17 +40,47 @@
|
|
<!-- <td><div class="delBtn" @click="delRow(index)" v-show="stepEdit.cleanPrice.length >= 2">删除</div></td> -->
|
|
<!-- <td><div class="delBtn" @click="delRow(index)" v-show="stepEdit.cleanPrice.length >= 2">删除</div></td> -->
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-if="index !== 0" class="addRow" @click="delRow(index)" :style="{'pointer-events':stepParameter.disabled?'none':'auto'}">删除</div>
|
|
<div v-if="index === stepEdit.assessmentLog.length - 1" class="addRow" @click="addRow" :style="{'pointer-events':stepParameter.disabled?'none':'auto'}">添加</div>
|
|
<div v-if="index === stepEdit.assessmentLog.length - 1" class="addRow" @click="addRow" :style="{'pointer-events':stepParameter.disabled?'none':'auto'}">添加</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
<!-- <td class="content" style="width: 100px">量化积分</td> -->
|
|
<!-- <td class="content" style="width: 100px">量化积分</td> -->
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td class="title" style="width: 80px">非考核<br/>支持人员</td>
|
|
|
|
- <td class="content" style="width: 100px">
|
|
|
|
|
|
+ <td class="title" style="width: 100px;">非考核<br/>支持人员</td>
|
|
|
|
+ <td class="content" colspan="4">
|
|
|
|
+ <el-table :data="stepEdit.feikaohePersons" class="u-dynamic-table" style="width: 100%" border>
|
|
|
|
+ <el-table-column type="index" label="序号" min-width="50" align="center"></el-table-column>
|
|
|
|
+ <el-table-column prop="person" label="人员" min-width="60" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input v-model="scope.row.person" placeholder="请输入" :readonly="stepParameter.disabled"/>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="content" label="支持内容" min-width="80" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input v-model="scope.row.content" placeholder="请输入" :readonly="stepParameter.disabled"/>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="time" label="支持工时" min-width="80" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input v-model="scope.row.time" placeholder="请输入" :readonly="stepParameter.disabled"/>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="remark" label="备注" min-width="80" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input v-model="scope.row.remark" placeholder="请输入" :readonly="stepParameter.disabled"/>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="操作" min-width="100" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button type="text" size="small" @click="stepEdit.feikaohePersons.splice(scope.$index, 1)" :style="{'pointer-events':stepParameter.disabled?'none':'auto'}">删除</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <div @click="stepEdit.feikaohePersons.push({})">添加</div>
|
|
</td>
|
|
</td>
|
|
- <td class="title white" style="width: 80px">项目成员<br/>考核汇总</td>
|
|
|
|
- <td class="content" style="width: 100px" colspan="2">
|
|
|
|
|
|
+ <td class="title white" style="width: 100px;">项目成员<br/>考核汇总</td>
|
|
|
|
+ <td class="content" colspan="3">
|
|
<span>工时:{{ zongGongshi }}</span>
|
|
<span>工时:{{ zongGongshi }}</span>
|
|
<span>强度:{{ zongQiangdu }}</span>
|
|
<span>强度:{{ zongQiangdu }}</span>
|
|
<span>工作量:{{ zongGongzuoliang }}</span>
|
|
<span>工作量:{{ zongGongzuoliang }}</span>
|
|
@@ -58,12 +88,16 @@
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
- <td class="title" style="width: 80px">项目完工<br/>申请</td>
|
|
|
|
- <td class="content" style="width: 100px">
|
|
|
|
|
|
+ <td class="title" style="width: 100px;">项目完工<br/>申请</td>
|
|
|
|
+ <td class="content" colspan="4">
|
|
|
|
+ <el-radio-group v-model="stepEdit.isApply" :disabled="stepParameter.disabled">
|
|
|
|
+ <el-radio :label="0">是</el-radio>
|
|
|
|
+ <el-radio :label="1">否</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
</td>
|
|
</td>
|
|
- <td class="title white" style="width: 80px">提交人</td>
|
|
|
|
- <td class="content" style="width: 100px" colspan="2">
|
|
|
|
- {{ stepParameter.fqUser }} {{ stepParameter.shenheTime }}
|
|
|
|
|
|
+ <td class="title white" style="width: 100px;">提交人</td>
|
|
|
|
+ <td class="content" colspan="3">
|
|
|
|
+ {{ stepParameter.fqUserName }} {{ stepParameter.shenheTime }}
|
|
<div class="btn" @click="submitData" :style="{'pointer-events':stepParameter.disabled?'none':'auto'}">保存</div>
|
|
<div class="btn" @click="submitData" :style="{'pointer-events':stepParameter.disabled?'none':'auto'}">保存</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@@ -86,13 +120,15 @@ export default {
|
|
return {
|
|
return {
|
|
stepParameter: {
|
|
stepParameter: {
|
|
disabled: true,
|
|
disabled: true,
|
|
- fqUser: null,
|
|
|
|
|
|
+ fqUserName: null,
|
|
shenheTime: null,
|
|
shenheTime: null,
|
|
},
|
|
},
|
|
stepEdit: {
|
|
stepEdit: {
|
|
assessmentLog: [
|
|
assessmentLog: [
|
|
{ name: '', job: '', resultData: {gongshi: 0, qiangdu: 0} }
|
|
{ name: '', job: '', resultData: {gongshi: 0, qiangdu: 0} }
|
|
- ]
|
|
|
|
|
|
+ ],
|
|
|
|
+ feikaohePersons: [],
|
|
|
|
+ isApply: 0,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -176,11 +212,15 @@ export default {
|
|
addRow(){
|
|
addRow(){
|
|
this.stepEdit.assessmentLog.push({ name: '', job: '', resultData: {gongshi: 0, qiangdu: 0} })
|
|
this.stepEdit.assessmentLog.push({ name: '', job: '', resultData: {gongshi: 0, qiangdu: 0} })
|
|
},
|
|
},
|
|
|
|
+ delRow(index){
|
|
|
|
+ this.stepEdit.assessmentLog.splice(index, 1)
|
|
|
|
+ },
|
|
submitData() {
|
|
submitData() {
|
|
var saveData = {
|
|
var saveData = {
|
|
runFlowPathStep: this.stepParameter.id,
|
|
runFlowPathStep: this.stepParameter.id,
|
|
saveData: JSON.stringify(this.stepEdit),
|
|
saveData: JSON.stringify(this.stepEdit),
|
|
}
|
|
}
|
|
|
|
+ console.log(saveData)
|
|
this.$emit('save', saveData)
|
|
this.$emit('save', saveData)
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -196,6 +236,7 @@ table * {
|
|
table {
|
|
table {
|
|
border: 1px solid rgb(30, 53, 65);
|
|
border: 1px solid rgb(30, 53, 65);
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
+ table-layout:fixed;
|
|
}
|
|
}
|
|
td {
|
|
td {
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -210,6 +251,7 @@ tr {
|
|
}
|
|
}
|
|
.title {
|
|
.title {
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
|
+ font-weight: bold;
|
|
}
|
|
}
|
|
.addRow {
|
|
.addRow {
|
|
width: 60px;
|
|
width: 60px;
|