|  |  | @ -75,13 +75,14 @@ | 
			
		
	
		
			
				
					|  |  |  |             </template> | 
			
		
	
		
			
				
					|  |  |  |           </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |           <el-table-column prop="mzDoctorName" label="门诊医师" header-align="center" align="center" width="100" /> | 
			
		
	
		
			
				
					|  |  |  |           <el-table-column prop="sgDoctorName" label="视光师" header-align="center" align="center" width="100" /> | 
			
		
	
		
			
				
					|  |  |  |           <el-table-column prop="zlPorject" label="医疗项目" header-align="center" align="center"> | 
			
		
	
		
			
				
					|  |  |  | <!--          <el-table-column prop="sgDoctorName" label="视光师" header-align="center" align="center" width="100" />--> | 
			
		
	
		
			
				
					|  |  |  |           <el-table-column label="常规检查" header-align="center" align="center"> | 
			
		
	
		
			
				
					|  |  |  |             <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |               {{ getYLProject(scope.row.zlProjectList) }} | 
			
		
	
		
			
				
					|  |  |  | <!--              {{ scope.row.createTime}}--> | 
			
		
	
		
			
				
					|  |  |  |               <el-button class="copyBtn" type="primary" plain style="width: 48%" size="small" :data-clipboard-text="scope.row.createTime" @click="onCopy">复制</el-button> | 
			
		
	
		
			
				
					|  |  |  |             </template> | 
			
		
	
		
			
				
					|  |  |  |           </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |           <el-table-column prop="remark" label="备注" header-align="center" align="center" /> | 
			
		
	
		
			
				
					|  |  |  | <!--          <el-table-column prop="remark" label="备注" header-align="center" align="center" />--> | 
			
		
	
		
			
				
					|  |  |  |           <el-table-column prop="updateDate" label="就诊时间" header-align="center" align="center" width="165" /> | 
			
		
	
		
			
				
					|  |  |  |           <!--          <el-table-column prop="callSort" label="分诊序号" header-align="center" align="center" />--> | 
			
		
	
		
			
				
					|  |  |  |           <!--          <el-table-column prop="callStatus" label="叫号状态" header-align="center" align="center">--> | 
			
		
	
	
		
			
				
					|  |  | @ -127,6 +128,7 @@ import tableAutoHeight from '@/mixins/tableAutoHeight' | 
			
		
	
		
			
				
					|  |  |  | import AddOrUpdate from './patient-add-or-update' | 
			
		
	
		
			
				
					|  |  |  | import hisAdd from './HIS-add' | 
			
		
	
		
			
				
					|  |  |  | import detailView from '@/components/360View/index' // 360试图 | 
			
		
	
		
			
				
					|  |  |  | import Clipboard from 'clipboard' | 
			
		
	
		
			
				
					|  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |   components: { | 
			
		
	
		
			
				
					|  |  |  |     hisAdd, | 
			
		
	
	
		
			
				
					|  |  | @ -169,6 +171,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         getDataListIsPage: true | 
			
		
	
		
			
				
					|  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |       curIndex: 0, | 
			
		
	
		
			
				
					|  |  |  |       clipboard: null, | 
			
		
	
		
			
				
					|  |  |  |       options: [ | 
			
		
	
		
			
				
					|  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |           value: '0', | 
			
		
	
	
		
			
				
					|  |  | @ -228,7 +231,15 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   destroyed() { | 
			
		
	
		
			
				
					|  |  |  |     this.clipboard && this.clipboard.destroy() | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   mounted() { | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |     reFresh() { | 
			
		
	
		
			
				
					|  |  |  |       this.pageCurrentChangeHandle(this.page) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 医疗项目拼接 | 
			
		
	
		
			
				
					|  |  |  |     getYLProject(list) { | 
			
		
	
		
			
				
					|  |  |  |       if (!list.length) { | 
			
		
	
	
		
			
				
					|  |  | @ -237,6 +248,21 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       const projects = list.map(item => item.porjectName).join('、') | 
			
		
	
		
			
				
					|  |  |  |       return projects | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 复制 | 
			
		
	
		
			
				
					|  |  |  |     onCopy() { | 
			
		
	
		
			
				
					|  |  |  |       if (JSON.stringify(this.clipboard) !== '{}') { | 
			
		
	
		
			
				
					|  |  |  |         this.clipboard && this.clipboard.destroy() | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       this.clipboard = new Clipboard('.copyBtn') | 
			
		
	
		
			
				
					|  |  |  |       const self = this | 
			
		
	
		
			
				
					|  |  |  |       this.clipboard.on('success', function(e) { | 
			
		
	
		
			
				
					|  |  |  |         self.$message.success('复制成功!') | 
			
		
	
		
			
				
					|  |  |  |         e.clearSelection() | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |       this.clipboard.on('error', function(e) { | 
			
		
	
		
			
				
					|  |  |  |         self.$message.warning('复制失败!') | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // HIS引入事件 | 
			
		
	
		
			
				
					|  |  |  |     getHisData(val) { | 
			
		
	
		
			
				
					|  |  |  |       this.addOrUpdateHandle('', { ...val }, 'HIS引入') | 
			
		
	
	
		
			
				
					|  |  | @ -254,8 +280,25 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       this.dataForm.patientStatus = value | 
			
		
	
		
			
				
					|  |  |  |       this.getDataListInitial() | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     async receiveTreat(item) { | 
			
		
	
		
			
				
					|  |  |  |       const { data: res } = await this.$http.get('/patient/updateSGDoctorAndJzStatus', { | 
			
		
	
		
			
				
					|  |  |  |         params: { | 
			
		
	
		
			
				
					|  |  |  |           patientId: item.patientId, | 
			
		
	
		
			
				
					|  |  |  |           jzNumber: item.jzNumber, | 
			
		
	
		
			
				
					|  |  |  |           risNo: item.risNo, | 
			
		
	
		
			
				
					|  |  |  |           platform: 1 | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |       if (res.code === 0) { | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.error(res.msg) | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 查看详情 | 
			
		
	
		
			
				
					|  |  |  |     showDetail(scopeRow, index) { | 
			
		
	
		
			
				
					|  |  |  |       if (index === 1) { | 
			
		
	
		
			
				
					|  |  |  |         this.receiveTreat(scopeRow) | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       this.onlyRead = index !== 1 | 
			
		
	
		
			
				
					|  |  |  |       this.detailViewVisible = true | 
			
		
	
		
			
				
					|  |  |  |       this.patientId = scopeRow.patientId | 
			
		
	
	
		
			
				
					|  |  | 
 |