提交修改
This commit is contained in:
parent
b59b056773
commit
cf8d225ffd
@ -73,6 +73,13 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="type" header-align="center" align="center" label="类型">
|
||||
<template slot-scope="scope">
|
||||
<div class="conatnt-name">
|
||||
<span>{{ scope.row.type | getType }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="lastScore" header-align="center" align="center" label="最后得分"></el-table-column>
|
||||
<el-table-column prop="allScore" header-align="center" align="center" label="总分"></el-table-column>
|
||||
<el-table-column prop="remark" header-align="center" align="center" label="备注"></el-table-column>
|
||||
@ -114,7 +121,7 @@ export default {
|
||||
var date = new Date(val)
|
||||
var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
|
||||
var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
|
||||
return date.getFullYear() + '-' + month + '-' + day
|
||||
return date.getFullYear() + '-' + month
|
||||
},
|
||||
getStatusStr (status) {
|
||||
if (status === 0) {
|
||||
@ -127,6 +134,14 @@ export default {
|
||||
return '审批通过'
|
||||
}
|
||||
return ''
|
||||
},
|
||||
getType (value) {
|
||||
if (value === 1) {
|
||||
return '本月目标'
|
||||
} else if (value === 2) {
|
||||
return '结果'
|
||||
}
|
||||
return ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
||||
@ -118,8 +118,7 @@
|
||||
width="150"
|
||||
label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">详情</el-button>
|
||||
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
|
||||
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id,3)">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -142,7 +141,6 @@
|
||||
import AddOrUpdate from './lzresultrecord-add-or-update'
|
||||
import {apiGetResultRecordList, departmentQuery} from '@/api/api_result'
|
||||
import {getDataForMonth} from '@/utils'
|
||||
import {isURL} from '@/utils/validate'
|
||||
|
||||
export default {
|
||||
filters: {
|
||||
@ -150,7 +148,7 @@ export default {
|
||||
var date = new Date(val)
|
||||
var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
|
||||
var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
|
||||
return date.getFullYear() + '-' + month + '-' + day
|
||||
return date.getFullYear() + '-' + month
|
||||
},
|
||||
getStatusStr (status) {
|
||||
if (status === 0) {
|
||||
@ -163,6 +161,14 @@ export default {
|
||||
return '审批通过'
|
||||
}
|
||||
return ''
|
||||
},
|
||||
getType (value) {
|
||||
if (value === 1) {
|
||||
return '本月目标'
|
||||
} else if (value === 2) {
|
||||
return '结果'
|
||||
}
|
||||
return ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
@ -259,7 +265,8 @@ export default {
|
||||
'department2': this.dataForm.department2,
|
||||
'department3': this.dataForm.department3,
|
||||
'name': this.dataForm.name,
|
||||
'remark': this.dataForm.remark
|
||||
'remark': this.dataForm.remark,
|
||||
'isSelf': 2
|
||||
}).then(data => {
|
||||
if (data && data.code === 0) {
|
||||
this.dataList = data.page.list
|
||||
@ -296,8 +303,8 @@ export default {
|
||||
this.dataListSelections = val
|
||||
},
|
||||
//
|
||||
addOrUpdateHandle (id) {
|
||||
this.$router.push({name: 'recorddetail',query: {id}}, () => {
|
||||
addOrUpdateHandle (id, recordType) {
|
||||
this.$router.push({name: 'recorddetail', query: {id: id, recordType: recordType}}, () => {
|
||||
this.mainTabsActiveName = this.$route.name
|
||||
})
|
||||
},
|
||||
@ -334,3 +341,15 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||
.contentEdit {
|
||||
color: blue;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-box{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@ -247,7 +247,7 @@ export default {
|
||||
this.checkResultEditor.txt.html(this.dataForm.checkResult || '')
|
||||
}
|
||||
if (this.scoreCommentEditor !== null) {
|
||||
this.scoreCommentEditor.txt.html(this.dataForm.checkResult || '')
|
||||
this.scoreCommentEditor.txt.html(this.dataForm.scoreComment || '')
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -314,7 +314,7 @@ export default {
|
||||
}
|
||||
if (this.auth.scoreComment === 2) {
|
||||
if (this.dataForm.acquireScore !== 3.5 || this.dataForm.acquireScore !== 3.75) {
|
||||
if (this.stringIsNull(this.dataForm.scoreComment)) {
|
||||
if (this.stringIsNull(this.scoreCommentEditor.txt.html())) {
|
||||
this.alertInfo('评分说明不能为空')
|
||||
return
|
||||
}
|
||||
|
||||
@ -30,11 +30,11 @@
|
||||
</div>
|
||||
|
||||
<div class="bottom" v-show="this.auth.approvel == 1" >
|
||||
<p> <span style="cursor: pointer">审批通过</span></p>
|
||||
<p> <span style="cursor: pointer" @click="commitApproval('你确定要审批通过吗?')" >审批通过</span></p>
|
||||
</div>
|
||||
|
||||
<div class="bottom" v-show="this.auth.confirmCommit == 1" >
|
||||
<p> <span style="cursor: pointer">确认得分</span></p>
|
||||
<p> <span style="cursor: pointer" @click="commitApproval('你要确认得分吗?')" >确认得分</span></p>
|
||||
</div>
|
||||
|
||||
<div class="bottom" v-show="this.auth.reject == 1" >
|
||||
@ -210,8 +210,8 @@ export default {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
commitApproval () {
|
||||
this.$confirm(`确定要提交审批吗?`, '提示', {
|
||||
commitApproval (msg = '确定要提交审批吗?') {
|
||||
this.$confirm(msg, '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
@ -220,6 +220,7 @@ export default {
|
||||
'recordResultId': this.recordResultId
|
||||
}).then(data => {
|
||||
if (data && data.code === 0) {
|
||||
this.getDataList()
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'success',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user