|
@@ -22,20 +22,20 @@
|
|
active-color="#13ce66"
|
|
active-color="#13ce66"
|
|
inactive-color="#ff4949"
|
|
inactive-color="#ff4949"
|
|
@change="changeStatus"
|
|
@change="changeStatus"
|
|
- active-value="3"
|
|
|
|
|
|
+ :active-value="3"
|
|
inactive-value="0">
|
|
inactive-value="0">
|
|
</el-switch>
|
|
</el-switch>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="核心结论" v-if="form.status == 3">
|
|
|
|
|
|
+ <el-form-item label="核心结论" v-if="!form.id && form.status == 3">
|
|
<el-checkbox-group v-model="form.conclusionIds">
|
|
<el-checkbox-group v-model="form.conclusionIds">
|
|
<el-checkbox v-for="item in conclusion" :key="item.dictChildValue" :label="item.dictChildValue">{{ item.dictChildLabel }}</el-checkbox>
|
|
<el-checkbox v-for="item in conclusion" :key="item.dictChildValue" :label="item.dictChildValue">{{ item.dictChildLabel }}</el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="结论论述" v-if="form.status == 3">
|
|
|
|
|
|
+ <el-form-item label="结论论述" v-if="!form.id &&form.status == 3">
|
|
<el-input v-model="form.cronConclusion" type="textarea" placeholder="请输入结论论述"></el-input>
|
|
<el-input v-model="form.cronConclusion" type="textarea" placeholder="请输入结论论述"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="后续跟进事项" v-if="form.status == 3">
|
|
|
|
- <span v-if="form.follows"><span v-for="item in form.follows" :key="item.followUpName" style="margin-right:10px">{{ item.followUpName}}</span></span>
|
|
|
|
|
|
+ <el-form-item label="后续跟进事项" v-if="!form.id &&form.status == 3">
|
|
|
|
+ <span v-if="form.followUps"><span v-for="item in form.followUps" :key="item.followUpName" style="margin-right:10px">{{ item.followUpName}}</span></span>
|
|
<span>
|
|
<span>
|
|
<el-popover
|
|
<el-popover
|
|
ref="popover"
|
|
ref="popover"
|
|
@@ -107,7 +107,7 @@
|
|
<el-input type='textarea' v-model="form.remark" autocomplete="off" placeholder="请输入备注"></el-input>
|
|
<el-input type='textarea' v-model="form.remark" autocomplete="off" placeholder="请输入备注"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
|
|
|
+ <span slot="footer" class="dialog-footer" v-if="$reportPermission(form.id,[0,1])">
|
|
<el-button @click="handleClose">取 消</el-button>
|
|
<el-button @click="handleClose">取 消</el-button>
|
|
<el-button type="primary" @click="ifDialog" >确 定</el-button>
|
|
<el-button type="primary" @click="ifDialog" >确 定</el-button>
|
|
</span>
|
|
</span>
|
|
@@ -612,11 +612,12 @@ export default {
|
|
})
|
|
})
|
|
if(val.indexOf(id)!=-1){
|
|
if(val.indexOf(id)!=-1){
|
|
if(index2==-1){
|
|
if(index2==-1){
|
|
- this.copyList.splice(index,0,this.copyIndex)
|
|
|
|
|
|
+ this.copyList.splice(index+1,0,this.copyIndex)
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
if(index2!=-1){
|
|
if(index2!=-1){
|
|
this.copyList.splice(index2,1)
|
|
this.copyList.splice(index2,1)
|
|
|
|
+ this.form.copyIds.splice(this.form.copyIds.indexOf(this.copyIndex.dictChildValue),1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
@@ -645,9 +646,15 @@ export default {
|
|
this.form.departmentId = ''
|
|
this.form.departmentId = ''
|
|
a = '创建'
|
|
a = '创建'
|
|
}
|
|
}
|
|
|
|
+ if(this.form.clientId == 0){
|
|
|
|
+ this.form.clientId = null
|
|
|
|
+ }
|
|
if(dictMessage){
|
|
if(dictMessage){
|
|
this.dictMessage.REPORT_TYPE = dictMessage
|
|
this.dictMessage.REPORT_TYPE = dictMessage
|
|
}
|
|
}
|
|
|
|
+ if(row.track && this.form.status == 3){
|
|
|
|
+ this.changeStatus(3)
|
|
|
|
+ }
|
|
var reportType = this.dictMessage.REPORT_TYPE.filter(item=>{return item.dictChildValue == this.form.type})[0].dictChildLabel
|
|
var reportType = this.dictMessage.REPORT_TYPE.filter(item=>{return item.dictChildValue == this.form.type})[0].dictChildLabel
|
|
this.title = a + reportType + '报告'
|
|
this.title = a + reportType + '报告'
|
|
if(row.track){
|
|
if(row.track){
|
|
@@ -663,7 +670,7 @@ export default {
|
|
var arr = this.copyList?this.copyList.map(item=>{return item.dictChildValue}):[]
|
|
var arr = this.copyList?this.copyList.map(item=>{return item.dictChildValue}):[]
|
|
this.$set(this.form,'copyIds',arr)
|
|
this.$set(this.form,'copyIds',arr)
|
|
}
|
|
}
|
|
- if(this.form.signPatentNo ){
|
|
|
|
|
|
+ if(this.form.signPatentNo && !row.track){
|
|
this.$set(this.form,'name',this.form.signPatentNo + reportType)
|
|
this.$set(this.form,'name',this.form.signPatentNo + reportType)
|
|
}
|
|
}
|
|
this.showDialog = true
|
|
this.showDialog = true
|
|
@@ -706,7 +713,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.form.follows = list
|
|
|
|
|
|
+ this.form.followUps = list
|
|
this.$refs.popover.showPopper = false
|
|
this.$refs.popover.showPopper = false
|
|
|
|
|
|
}catch(e){
|
|
}catch(e){
|
|
@@ -736,7 +743,7 @@ export default {
|
|
assistPerson:'',
|
|
assistPerson:'',
|
|
timeLimit:''
|
|
timeLimit:''
|
|
}
|
|
}
|
|
- this.form.follows.forEach(item=>{
|
|
|
|
|
|
+ this.form.followUps.forEach(item=>{
|
|
var a = false
|
|
var a = false
|
|
for(let key in keyList){
|
|
for(let key in keyList){
|
|
if(item[key] !='' && item[key] != null){
|
|
if(item[key] !='' && item[key] != null){
|
|
@@ -772,7 +779,6 @@ export default {
|
|
}
|
|
}
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- console.log(1)
|
|
|
|
this.$confirm('是否需要审核?', '提示', {
|
|
this.$confirm('是否需要审核?', '提示', {
|
|
confirmButtonText: '是',
|
|
confirmButtonText: '是',
|
|
cancelButtonText: '否',
|
|
cancelButtonText: '否',
|
|
@@ -853,6 +859,9 @@ export default {
|
|
},
|
|
},
|
|
// 弹出框关闭
|
|
// 弹出框关闭
|
|
handleClose() {
|
|
handleClose() {
|
|
|
|
+ if(!this.form.id){
|
|
|
|
+ this.getPermissions()
|
|
|
|
+ }
|
|
this.copyIndex = {}
|
|
this.copyIndex = {}
|
|
this.matterType = null
|
|
this.matterType = null
|
|
this.$refs.upload.clearFiles()
|
|
this.$refs.upload.clearFiles()
|
|
@@ -862,6 +871,10 @@ export default {
|
|
this.show = 0
|
|
this.show = 0
|
|
this.form = {}
|
|
this.form = {}
|
|
},
|
|
},
|
|
|
|
+ async getPermissions(){
|
|
|
|
+ const response = await this.$api.getPermission()
|
|
|
|
+ this.$store.commit('SET_PERMISSIONS', response.data)
|
|
|
|
+ },
|
|
handleClose2(){
|
|
handleClose2(){
|
|
this.showPerson = false
|
|
this.showPerson = false
|
|
},
|
|
},
|