|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div style="display: flex;justify-content: flex-end; margin-bottom: 20px;">
|
|
|
+ <div style="display: flex;justify-content: flex-end; margin-bottom: 20px;" v-if="$reportPermission(reportId,[0,1])">
|
|
|
<el-dropdown trigger="click" split-button type="primary" size="small" @command="handleCommand($event)" >
|
|
|
<span @click="handleClick(1)">添加后续事项</span>
|
|
|
<el-dropdown-menu slot="dropdown" class="text-align_center">
|
|
@@ -369,6 +369,7 @@ export default {
|
|
|
closeRegister(){
|
|
|
this.type = null
|
|
|
this.registerForm = {}
|
|
|
+ this.file = []
|
|
|
if(this.registerForm.type==1 || this.registerForm.edit){
|
|
|
this.$refs.upload.clearFiles()
|
|
|
}
|
|
@@ -376,8 +377,36 @@ export default {
|
|
|
},
|
|
|
//获取后续事项
|
|
|
getMatter(val){
|
|
|
- this.registerForm.followUps = val
|
|
|
this.matterSign = false
|
|
|
+ try{
|
|
|
+ var keyList={
|
|
|
+ followUpName:'',
|
|
|
+ remark:'',
|
|
|
+ agent:'',
|
|
|
+ assistPerson:'',
|
|
|
+ timeLimit:''
|
|
|
+ }
|
|
|
+ var list = []
|
|
|
+ val.forEach(item=>{
|
|
|
+ var a = false
|
|
|
+ for(let key in keyList){
|
|
|
+ if(item[key] !='' && item[key] != null){
|
|
|
+ a = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(a == true){
|
|
|
+ if(item.followUpName!='') {
|
|
|
+ list.push(item)
|
|
|
+ }else{
|
|
|
+ throw new Error()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.registerForm.followUps = list
|
|
|
+
|
|
|
+ }catch(e){
|
|
|
+ this.$message.error('后续事项名称不能为空')
|
|
|
+ }
|
|
|
},
|
|
|
//编辑事项结果
|
|
|
editRegister(){
|
|
@@ -429,6 +458,9 @@ export default {
|
|
|
formData.append("files", this.file[i]);
|
|
|
}
|
|
|
}
|
|
|
+ if(this.registerForm.type == 1){
|
|
|
+ this.registerForm.filesVOs = null
|
|
|
+ }
|
|
|
this.registerForm.followUpId = this.registerForm.id
|
|
|
formData.append('register',JSON.stringify(this.registerForm))
|
|
|
this.$api.register(formData).then(response=>{
|