|  | @ -103,7 +103,6 @@ export default { | 
		
	
		
			
				|  |  |       type: '', |  |  |       type: '', | 
		
	
		
			
				|  |  |       doctorId: '', |  |  |       doctorId: '', | 
		
	
		
			
				|  |  |       deleteId: '', |  |  |       deleteId: '', | 
		
	
		
			
				|  |  |       treeFlag: '', |  |  |  | 
		
	
		
			
				|  |  |       treeId: '', |  |  |       treeId: '', | 
		
	
		
			
				|  |  |       treeName: '', |  |  |       treeName: '', | 
		
	
		
			
				|  |  |       weight: '', |  |  |       weight: '', | 
		
	
	
		
			
				|  | @ -120,7 +119,6 @@ export default { | 
		
	
		
			
				|  |  |           name: '黄斑' |  |  |           name: '黄斑' | 
		
	
		
			
				|  |  |         }, { |  |  |         }, { | 
		
	
		
			
				|  |  |           name: '黄斑', |  |  |           name: '黄斑', | 
		
	
		
			
				|  |  |           sort: 99, |  |  |  | 
		
	
		
			
				|  |  |           id: 14, |  |  |           id: 14, | 
		
	
		
			
				|  |  |           type: 'hangman', |  |  |           type: 'hangman', | 
		
	
		
			
				|  |  |           od: '', |  |  |           od: '', | 
		
	
	
		
			
				|  | @ -145,7 +143,6 @@ export default { | 
		
	
		
			
				|  |  |           name: '视网膜' |  |  |           name: '视网膜' | 
		
	
		
			
				|  |  |         }, { |  |  |         }, { | 
		
	
		
			
				|  |  |           name: '视网膜', |  |  |           name: '视网膜', | 
		
	
		
			
				|  |  |           sort: 99, |  |  |  | 
		
	
		
			
				|  |  |           id: 17, |  |  |           id: 17, | 
		
	
		
			
				|  |  |           type: 'showing', |  |  |           type: 'showing', | 
		
	
		
			
				|  |  |           od: '', |  |  |           od: '', | 
		
	
	
		
			
				|  | @ -154,7 +151,6 @@ export default { | 
		
	
		
			
				|  |  |           name: '脉络膜' |  |  |           name: '脉络膜' | 
		
	
		
			
				|  |  |         }, { |  |  |         }, { | 
		
	
		
			
				|  |  |           name: '脉络膜', |  |  |           name: '脉络膜', | 
		
	
		
			
				|  |  |           sort: 99, |  |  |  | 
		
	
		
			
				|  |  |           id: 18, |  |  |           id: 18, | 
		
	
		
			
				|  |  |           type: 'mailbomb', |  |  |           type: 'mailbomb', | 
		
	
		
			
				|  |  |           od: '', |  |  |           od: '', | 
		
	
	
		
			
				|  | @ -163,7 +159,6 @@ export default { | 
		
	
		
			
				|  |  |           name: '玻璃体 vitreous' |  |  |           name: '玻璃体 vitreous' | 
		
	
		
			
				|  |  |         }, { |  |  |         }, { | 
		
	
		
			
				|  |  |           name: '玻璃体 vitreous', |  |  |           name: '玻璃体 vitreous', | 
		
	
		
			
				|  |  |           sort: 99, |  |  |  | 
		
	
		
			
				|  |  |           id: 19, |  |  |           id: 19, | 
		
	
		
			
				|  |  |           type: 'blit', |  |  |           type: 'blit', | 
		
	
		
			
				|  |  |           od: '', |  |  |           od: '', | 
		
	
	
		
			
				|  | @ -172,7 +167,6 @@ export default { | 
		
	
		
			
				|  |  |           name: '血管' |  |  |           name: '血管' | 
		
	
		
			
				|  |  |         }, { |  |  |         }, { | 
		
	
		
			
				|  |  |           name: '血管', |  |  |           name: '血管', | 
		
	
		
			
				|  |  |           sort: 99, |  |  |  | 
		
	
		
			
				|  |  |           id: 20, |  |  |           id: 20, | 
		
	
		
			
				|  |  |           type: 'began', |  |  |           type: 'began', | 
		
	
		
			
				|  |  |           od: '', |  |  |           od: '', | 
		
	
	
		
			
				|  | @ -181,7 +175,6 @@ export default { | 
		
	
		
			
				|  |  |           name: '巩膜' |  |  |           name: '巩膜' | 
		
	
		
			
				|  |  |         }, { |  |  |         }, { | 
		
	
		
			
				|  |  |           name: '巩膜', |  |  |           name: '巩膜', | 
		
	
		
			
				|  |  |           sort: 99, |  |  |  | 
		
	
		
			
				|  |  |           id: 21, |  |  |           id: 21, | 
		
	
		
			
				|  |  |           type: 'gong', |  |  |           type: 'gong', | 
		
	
		
			
				|  |  |           od: '', |  |  |           od: '', | 
		
	
	
		
			
				|  | @ -190,7 +183,6 @@ export default { | 
		
	
		
			
				|  |  |           name: '边缘 periphery' |  |  |           name: '边缘 periphery' | 
		
	
		
			
				|  |  |         }, { |  |  |         }, { | 
		
	
		
			
				|  |  |           name: '边缘 periphery', |  |  |           name: '边缘 periphery', | 
		
	
		
			
				|  |  |           sort: 99, |  |  |  | 
		
	
		
			
				|  |  |           id: 22, |  |  |           id: 22, | 
		
	
		
			
				|  |  |           type: 'banyan', |  |  |           type: 'banyan', | 
		
	
		
			
				|  |  |           od: '', |  |  |           od: '', | 
		
	
	
		
			
				|  | @ -248,9 +240,8 @@ export default { | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 添加数据集 |  |  |     // 添加数据集 | 
		
	
		
			
				|  |  |     addAfterData() { |  |  |     addAfterData() { | 
		
	
		
			
				|  |  |       if (!this.multipleSelection.length) return this.$message.warning('请勾选数据!') |  |  |  | 
		
	
		
			
				|  |  |       const data = this.multipleSelection.filter(item => { |  |  |       const data = this.multipleSelection.filter(item => { | 
		
	
		
			
				|  |  |         return item.type !== undefined |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         return item.id >= 1 | 
		
	
		
			
				|  |  |       }) |  |  |       }) | 
		
	
		
			
				|  |  |       eventBus.$emit('sendForData', data) |  |  |       eventBus.$emit('sendForData', data) | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
	
		
			
				|  | @ -269,12 +260,7 @@ export default { | 
		
	
		
			
				|  |  |             item.forEach(row => { |  |  |             item.forEach(row => { | 
		
	
		
			
				|  |  |               this.tableData.forEach(e => { |  |  |               this.tableData.forEach(e => { | 
		
	
		
			
				|  |  |                 if (e.type === row.type) { |  |  |                 if (e.type === row.type) { | 
		
	
		
			
				|  |  |                   e.data = item |  |  |  | 
		
	
		
			
				|  |  |                   const sort = item.sort |  |  |  | 
		
	
		
			
				|  |  |                   item.sort = '' |  |  |  | 
		
	
		
			
				|  |  |                   this.$nextTick(() => { |  |  |  | 
		
	
		
			
				|  |  |                     item.sort = sort |  |  |  | 
		
	
		
			
				|  |  |                   }) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |                   e.data = [row] | 
		
	
		
			
				|  |  |                 } |  |  |                 } | 
		
	
		
			
				|  |  |               }) |  |  |               }) | 
		
	
		
			
				|  |  |             }) |  |  |             }) | 
		
	
	
		
			
				|  | @ -292,24 +278,12 @@ export default { | 
		
	
		
			
				|  |  |         this.tableData.forEach(item => { |  |  |         this.tableData.forEach(item => { | 
		
	
		
			
				|  |  |           if (item.sort) { |  |  |           if (item.sort) { | 
		
	
		
			
				|  |  |             item.od = item.os |  |  |             item.od = item.os | 
		
	
		
			
				|  |  |             item.odValue = item.osValue |  |  |  | 
		
	
		
			
				|  |  |             const sort = item.sort |  |  |  | 
		
	
		
			
				|  |  |             item.sort = '' |  |  |  | 
		
	
		
			
				|  |  |             this.$nextTick(() => { |  |  |  | 
		
	
		
			
				|  |  |               item.sort = sort |  |  |  | 
		
	
		
			
				|  |  |             }) |  |  |  | 
		
	
		
			
				|  |  |           } |  |  |           } | 
		
	
		
			
				|  |  |         }) |  |  |         }) | 
		
	
		
			
				|  |  |       } else { |  |  |       } else { | 
		
	
		
			
				|  |  |         this.tableData.forEach(item => { |  |  |         this.tableData.forEach(item => { | 
		
	
		
			
				|  |  |           if (item.sort) { |  |  |           if (item.sort) { | 
		
	
		
			
				|  |  |             item.os = item.od |  |  |             item.os = item.od | 
		
	
		
			
				|  |  |             item.osValue = item.odValue |  |  |  | 
		
	
		
			
				|  |  |             const sort = item.sort |  |  |  | 
		
	
		
			
				|  |  |             item.sort = '' |  |  |  | 
		
	
		
			
				|  |  |             this.$nextTick(() => { |  |  |  | 
		
	
		
			
				|  |  |               item.sort = sort |  |  |  | 
		
	
		
			
				|  |  |             }) |  |  |  | 
		
	
		
			
				|  |  |           } |  |  |           } | 
		
	
		
			
				|  |  |         }) |  |  |         }) | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
	
		
			
				|  | @ -321,20 +295,15 @@ export default { | 
		
	
		
			
				|  |  |       } else { |  |  |       } else { | 
		
	
		
			
				|  |  |         this.tableData[value.index].os = value.row |  |  |         this.tableData[value.index].os = value.row | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |       const sort = this.tableData[index].sort |  |  |  | 
		
	
		
			
				|  |  |       this.tableData[index].sort = '' |  |  |  | 
		
	
		
			
				|  |  |       this.$nextTick(() => { |  |  |  | 
		
	
		
			
				|  |  |         this.tableData[index].sort = sort |  |  |  | 
		
	
		
			
				|  |  |       }) |  |  |  | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 保存后段检查 |  |  |     // 保存后段检查 | 
		
	
		
			
				|  |  |     async saveAfter() { |  |  |     async saveAfter() { | 
		
	
		
			
				|  |  |       const params = { |  |  |       const params = { | 
		
	
		
			
				|  |  |         flag: '3', // 1病史采集2前段检查3后段检查4专科检查 |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         flag: 3, // 1病史采集2前段检查3后段检查4专科检查 | 
		
	
		
			
				|  |  |         jsonText: JSON.stringify(this.tableData), |  |  |         jsonText: JSON.stringify(this.tableData), | 
		
	
		
			
				|  |  |         name: '后段检查', |  |  |         name: '后段检查', | 
		
	
		
			
				|  |  |         patientId: this.patientId, |  |  |         patientId: this.patientId, | 
		
	
		
			
				|  |  |         platform: '1' |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         platform: 1 | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |       let url = '' |  |  |       let url = '' | 
		
	
		
			
				|  |  |       if (this.collectId) { |  |  |       if (this.collectId) { | 
		
	
	
		
			
				|  | @ -372,7 +341,7 @@ export default { | 
		
	
		
			
				|  |  |       const params = { |  |  |       const params = { | 
		
	
		
			
				|  |  |         doctorId: this.doctorId, |  |  |         doctorId: this.doctorId, | 
		
	
		
			
				|  |  |         name: this.form.name, |  |  |         name: this.form.name, | 
		
	
		
			
				|  |  |         flag: this.treeFlag, // 1公共树,2个人树 |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         flag: 1, // 1公共树,2个人树 | 
		
	
		
			
				|  |  |         type: this.type, |  |  |         type: this.type, | 
		
	
		
			
				|  |  |         parentId: this.parentId, |  |  |         parentId: this.parentId, | 
		
	
		
			
				|  |  |         platform: 1 |  |  |         platform: 1 | 
		
	
	
		
			
				|  | @ -454,13 +423,18 @@ export default { | 
		
	
		
			
				|  |  |       if (data && data.caseJson) { |  |  |       if (data && data.caseJson) { | 
		
	
		
			
				|  |  |         this.tableData = JSON.parse(data.caseJson) |  |  |         this.tableData = JSON.parse(data.caseJson) | 
		
	
		
			
				|  |  |         // 回显表格复选框 |  |  |         // 回显表格复选框 | 
		
	
		
			
				|  |  |  |  |  |         this.$nextTick(() => { | 
		
	
		
			
				|  |  |  |  |  |           this.tableData.forEach(item => { | 
		
	
		
			
				|  |  |  |  |  |             this.$refs.multipleTable.toggleRowSelection(item, true) | 
		
	
		
			
				|  |  |  |  |  |           }) | 
		
	
		
			
				|  |  |  |  |  |         }) | 
		
	
		
			
				|  |  |       } else { |  |  |       } else { | 
		
	
		
			
				|  |  |         this.tableData = _.cloneDeep(this.sourceData) |  |  |         this.tableData = _.cloneDeep(this.sourceData) | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 点击保存模板后弹框 |  |  |     // 点击保存模板后弹框 | 
		
	
		
			
				|  |  |     handleTemplate() { |  |  |     handleTemplate() { | 
		
	
		
			
				|  |  |       // if (!this.multipleSelection.length) return this.$message.warning('请勾选模板内容!') |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       if (!this.multipleSelection.length) return this.$message.warning('请勾选模板内容!') | 
		
	
		
			
				|  |  |       this.form.name = '' |  |  |       this.form.name = '' | 
		
	
		
			
				|  |  |       this.queryTemplate() |  |  |       this.queryTemplate() | 
		
	
		
			
				|  |  |       this.templateFlag = true |  |  |       this.templateFlag = true | 
		
	
	
		
			
				|  | @ -471,9 +445,8 @@ export default { | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 保存模板树 |  |  |     // 保存模板树 | 
		
	
		
			
				|  |  |     async saveTreeTemplete() { |  |  |     async saveTreeTemplete() { | 
		
	
		
			
				|  |  |       if (!this.treeId) return this.$message.warning('请选择节点!') |  |  |  | 
		
	
		
			
				|  |  |       const params = { |  |  |       const params = { | 
		
	
		
			
				|  |  |         caseJson: JSON.stringify(this.tableData), |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         caseJson: JSON.stringify(this.multipleSelection), | 
		
	
		
			
				|  |  |         doctorId: this.doctorId, |  |  |         doctorId: this.doctorId, | 
		
	
		
			
				|  |  |         name: this.form.name, |  |  |         name: this.form.name, | 
		
	
		
			
				|  |  |         type: 3, // 2前段检查 3后段检查 |  |  |         type: 3, // 2前段检查 3后段检查 | 
		
	
	
		
			
				|  | @ -482,7 +455,7 @@ export default { | 
		
	
		
			
				|  |  |       const { data: res } = await this.$http.post('/treetemplate/addTreeCase', params) |  |  |       const { data: res } = await this.$http.post('/treetemplate/addTreeCase', params) | 
		
	
		
			
				|  |  |       if (res.code === 0) { |  |  |       if (res.code === 0) { | 
		
	
		
			
				|  |  |         this.templateFlag = false |  |  |         this.templateFlag = false | 
		
	
		
			
				|  |  |         await this.queryTreeCase() |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         this.queryTreeCase() | 
		
	
		
			
				|  |  |         this.$message.success('保存成功') |  |  |         this.$message.success('保存成功') | 
		
	
		
			
				|  |  |       } else { |  |  |       } else { | 
		
	
		
			
				|  |  |         this.$message.error(res.msg) |  |  |         this.$message.error(res.msg) | 
		
	
	
		
			
				|  | @ -544,8 +517,8 @@ export default { | 
		
	
		
			
				|  |  |       const { data: res } = await this.$http.post(url, params) |  |  |       const { data: res } = await this.$http.post(url, params) | 
		
	
		
			
				|  |  |       if (res.code === 0) { |  |  |       if (res.code === 0) { | 
		
	
		
			
				|  |  |         this.$message.success('删除成功') |  |  |         this.$message.success('删除成功') | 
		
	
		
			
				|  |  |         await this.queryTreeCase() |  |  |  | 
		
	
		
			
				|  |  |         await this.getforeList('3') |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         this.queryTreeCase() | 
		
	
		
			
				|  |  |  |  |  |         this.getforeList('2') | 
		
	
		
			
				|  |  |       } else { |  |  |       } else { | 
		
	
		
			
				|  |  |         this.$message.error(res.msg) |  |  |         this.$message.error(res.msg) | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
	
		
			
				|  | @ -603,6 +576,7 @@ export default { | 
		
	
		
			
				|  |  |       }) |  |  |       }) | 
		
	
		
			
				|  |  |       if (res.code === 0) { |  |  |       if (res.code === 0) { | 
		
	
		
			
				|  |  |         this.treeCaseList = this.fn(res.data) |  |  |         this.treeCaseList = this.fn(res.data) | 
		
	
		
			
				|  |  |  |  |  |         console.log(this.treeCaseList) | 
		
	
		
			
				|  |  |       } else { |  |  |       } else { | 
		
	
		
			
				|  |  |         this.$message.error(res.msg) |  |  |         this.$message.error(res.msg) | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
	
		
			
				|  | 
 |