@@ -90,9 +91,11 @@
examineUserNames: '',
fillingUserNames: ''
},
+ id: '',
colConfigs: [
- { prop: 'title', label: '模板名称' },
- { prop: 'updateTime', align: 'center', label: '更新时间' }
+ { prop: 'name', label: '审批分组' },
+ { prop: 'examineUserNames', align: 'center', label: '填报人员' },
+ { prop: 'fillingUserNames', align: 'center', label: '审批人员' }
],
isShow: false,
tableData: [],
@@ -128,6 +131,38 @@
})
},
+ edit (e) {
+ this.id = e.id
+ this.form.name = e.name
+ this.form.examineUserIds = e.examineUserIds.split(',').map((v, index) => {
+ return {
+ id: v,
+ name: e.examineUserNames.split(',')[index]
+ }
+ })
+ this.form.fillingUserIds = e.fillingUserIds.split(',').map((v, index) => {
+ return {
+ id: v,
+ name: e.fillingUserNames.split(',')[index]
+ }
+ })
+
+ this.form.examineUserNames = 1
+ this.form.fillingUserNames = 1
+ this.isShow = true
+ },
+
+ remove (id) {
+ this.$confirm('确定删除该数据?').then(() => {
+ this.instance.post(`/app/appassessmentscorev2examinegroup/delete?ids=${id}`).then(res => {
+ if (res.code == 0) {
+ this.$message.success('删除成功!')
+ this.getList()
+ }
+ })
+ })
+ },
+
onUserChange(e, type) {
if (e.length) {
this.form[type] = '1'
@@ -137,6 +172,7 @@
},
onClose () {
+ this.id = ''
this.form.name = ''
this.form.fillingUserIds = []
this.form.examineUserIds = []
@@ -149,8 +185,11 @@
if (valid) {
this.instance.post(`/app/appassessmentscorev2examinegroup/addOrUpdate`, {
...this.form,
- fillingUserIds: this.form.fillingUserIds.map(v => v.id),
- examineUserIds: this.form.examineUserIds.map(v => v.id)
+ id: this.id || '',
+ fillingUserIds: this.form.fillingUserIds.map(v => v.id).join(','),
+ examineUserIds: this.form.examineUserIds.map(v => v.id).join(','),
+ fillingUserNames: this.form.fillingUserIds.map(v => v.name).join(','),
+ examineUserNames: this.form.examineUserIds.map(v => v.name).join(',')
}).then(res => {
if (res.code == 0) {
this.$message.success('提交成功!')
@@ -161,15 +200,6 @@
})
}
})
- },
-
- toAdd (id) {
- this.$emit('change', {
- type: 'Add',
- params: {
- id: id || ''
- }
- })
}
}
}
diff --git a/project/hlj/app/AppRecoScore/components/Detail.vue b/project/hlj/app/AppRecoScore/components/Detail.vue
index a9e5d7c1..c937d2aa 100644
--- a/project/hlj/app/AppRecoScore/components/Detail.vue
+++ b/project/hlj/app/AppRecoScore/components/Detail.vue
@@ -49,7 +49,7 @@
:tableData="tableData"
:col-configs="colConfigs"
@getList="getList">
-
+
详情
@@ -89,43 +89,22 @@
isLoading: false,
tableData: [],
colConfigs: [
- {prop: 'templateName', label: '表单名称', align: 'center', width: 220 },
- {prop: 'createUserName', label: '添加人', align: 'center', width: 150 },
+ {prop: 'templateName', label: '参评人员', align: 'center' },
+ {prop: 'createUserName', label: '提交时间', align: 'center', width: 150 },
+ {prop: 'createUserName', label: '总分', align: 'center' },
{
prop: 'status',
align: 'center',
- width: 320,
- label: '开始结束时间',
- render: (h, {row}) => {
- return h('span', {
- }, `${row.beginTime} - ${row.endTime}`)
- }
- },
- {
- prop: 'status',
- align: 'center',
- label: '已填写/剩余份数',
+ label: '审核状态',
render: (h, {row}) => {
return h('span', {
style: {
- width: '300px'
+ color: this.dict.getColor('ampvFilled', row.status)
}
- }, `${row.overPhr}/${row.totalPhr - row.overPhr}`)
+ }, this.dict.getLabel('ampvFilled', row.status))
}
},
- {
- prop: 'status',
- align: 'center',
- label: '任务状态',
- width: 100,
- render: (h, {row}) => {
- return h('span', {
- style: {
- color: this.dict.getColor('formStatus', row.status)
- }
- }, this.dict.getLabel('formStatus', row.status))
- }
- }
+ {prop: 'createUserName', label: '审核人', align: 'center' },
],
list: []
}