|  |  | @ -25,6 +25,18 @@ | 
			
		
	
		
			
				
					|  |  |  |               @change="dateChange" | 
			
		
	
		
			
				
					|  |  |  |             /> | 
			
		
	
		
			
				
					|  |  |  |           </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |           <el-form-item prop="dateRange" label="预约时间" class="form-item-date"> | 
			
		
	
		
			
				
					|  |  |  |             <el-date-picker | 
			
		
	
		
			
				
					|  |  |  |               v-model="nextVisitTime" | 
			
		
	
		
			
				
					|  |  |  |               size="small" | 
			
		
	
		
			
				
					|  |  |  |               type="daterange" | 
			
		
	
		
			
				
					|  |  |  |               range-separator="-" | 
			
		
	
		
			
				
					|  |  |  |               start-placeholder="开始日期" | 
			
		
	
		
			
				
					|  |  |  |               end-placeholder="结束日期" | 
			
		
	
		
			
				
					|  |  |  |               value-format="yyyy-MM-dd" | 
			
		
	
		
			
				
					|  |  |  |               @change="dateChange" | 
			
		
	
		
			
				
					|  |  |  |             /> | 
			
		
	
		
			
				
					|  |  |  |           </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |           <el-form-item style="flex:1"> | 
			
		
	
		
			
				
					|  |  |  |             <el-button type="primary" icon="el-icon-getDataListInitial" size="small" @click="getDataListInitial()">查询</el-button> | 
			
		
	
		
			
				
					|  |  |  |           </el-form-item> | 
			
		
	
	
		
			
				
					|  |  | @ -32,7 +44,7 @@ | 
			
		
	
		
			
				
					|  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  |       <div style="display: flex;justify-content: space-between;background-color: white;padding: 16px 16px 0"> | 
			
		
	
		
			
				
					|  |  |  |         <div> | 
			
		
	
		
			
				
					|  |  |  |           <el-select v-model="dataForm.searchType" placeholder="请选择" style="width:120px;float: left;margin-right: 16px" size="small" @change="getDataListInitial"> | 
			
		
	
		
			
				
					|  |  |  |           <el-select v-model="dataForm.searchType" style="width:120px;float: left;margin-right: 16px" size="small" @change="getDataListInitial"> | 
			
		
	
		
			
				
					|  |  |  |             <el-option | 
			
		
	
		
			
				
					|  |  |  |               v-for="item in options" | 
			
		
	
		
			
				
					|  |  |  |               :key="item.value" | 
			
		
	
	
		
			
				
					|  |  | @ -41,6 +53,15 @@ | 
			
		
	
		
			
				
					|  |  |  |             /> | 
			
		
	
		
			
				
					|  |  |  |           </el-select> | 
			
		
	
		
			
				
					|  |  |  |           <el-button v-for="(item,index) in typeList" :key="index" :class="[curIndex === index ? 'active' : '']" style="margin-left: 0px" size="small" color="white" @click="handleType(item.value, index)">{{ item.label }}</el-button> | 
			
		
	
		
			
				
					|  |  |  |           <span style="margin-left: 16px">项目名称:</span> | 
			
		
	
		
			
				
					|  |  |  |           <el-select v-model="dataForm.projectCode" placeholder="项目名称" size="small" @change="getDataListInitial"> | 
			
		
	
		
			
				
					|  |  |  |             <el-option | 
			
		
	
		
			
				
					|  |  |  |               v-for="item in projectList" | 
			
		
	
		
			
				
					|  |  |  |               :key="item.itemId" | 
			
		
	
		
			
				
					|  |  |  |               :label="item.itemName" | 
			
		
	
		
			
				
					|  |  |  |               :value="item.itemId" | 
			
		
	
		
			
				
					|  |  |  |             /> | 
			
		
	
		
			
				
					|  |  |  |           </el-select> | 
			
		
	
		
			
				
					|  |  |  |         </div> | 
			
		
	
		
			
				
					|  |  |  |         <div> | 
			
		
	
		
			
				
					|  |  |  |           <el-button type="primary" size="small" icon="el-icon-plus" @click="addOrUpdateHandle('','','新增患者')">新增</el-button> | 
			
		
	
	
		
			
				
					|  |  | @ -72,6 +93,14 @@ | 
			
		
	
		
			
				
					|  |  |  |           </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |           <el-table-column prop="zlEye" label="眼别" header-align="center" align="center" width="100"> | 
			
		
	
		
			
				
					|  |  |  |             <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |               <el-select v-model="scope.row.zlEye" placeholder="" size="small" @change="value=>changeEyeType(value,scope)"> | 
			
		
	
		
			
				
					|  |  |  |                 <el-option | 
			
		
	
		
			
				
					|  |  |  |                   v-for="item in eyeList" | 
			
		
	
		
			
				
					|  |  |  |                   :key="item.value" | 
			
		
	
		
			
				
					|  |  |  |                   :label="item.label" | 
			
		
	
		
			
				
					|  |  |  |                   :value="item.value" | 
			
		
	
		
			
				
					|  |  |  |                 /> | 
			
		
	
		
			
				
					|  |  |  |               </el-select> | 
			
		
	
		
			
				
					|  |  |  |               {{ scope.row.zlEye === 'os' ? '左眼' : ( scope.row.zlEye === 'od' ? '右眼' : '') }} | 
			
		
	
		
			
				
					|  |  |  |             </template> | 
			
		
	
		
			
				
					|  |  |  |           </el-table-column> | 
			
		
	
	
		
			
				
					|  |  | @ -88,6 +117,7 @@ | 
			
		
	
		
			
				
					|  |  |  |           </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |           <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="appointDate" label="预约时间" header-align="center" align="center" width="165" /> | 
			
		
	
		
			
				
					|  |  |  |           <!--          <el-table-column prop="callSort" label="分诊序号" header-align="center" align="center" />--> | 
			
		
	
		
			
				
					|  |  |  |           <!--          <el-table-column prop="patientSex" label="叫号状态" header-align="center" align="center">--> | 
			
		
	
		
			
				
					|  |  |  |           <!--            <template slot-scope="scope">--> | 
			
		
	
	
		
			
				
					|  |  | @ -213,6 +243,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           value: '400', | 
			
		
	
		
			
				
					|  |  |  |           label: '已诊' | 
			
		
	
		
			
				
					|  |  |  |         }], | 
			
		
	
		
			
				
					|  |  |  |       eyeList: [{ | 
			
		
	
		
			
				
					|  |  |  |         value: 'OD', | 
			
		
	
		
			
				
					|  |  |  |         label: 'OD' | 
			
		
	
		
			
				
					|  |  |  |       }, { | 
			
		
	
		
			
				
					|  |  |  |         value: 'OS', | 
			
		
	
		
			
				
					|  |  |  |         label: 'OS' | 
			
		
	
		
			
				
					|  |  |  |       }, { | 
			
		
	
		
			
				
					|  |  |  |         value: 'OU', | 
			
		
	
		
			
				
					|  |  |  |         label: 'OU' | 
			
		
	
		
			
				
					|  |  |  |       }], | 
			
		
	
		
			
				
					|  |  |  |       nextVisitTime: [], | 
			
		
	
		
			
				
					|  |  |  |       onlyRead: false, | 
			
		
	
		
			
				
					|  |  |  |       detailViewVisible: false, | 
			
		
	
	
		
			
				
					|  |  | @ -223,10 +263,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         beginDate: '', | 
			
		
	
		
			
				
					|  |  |  |         endDate: '', | 
			
		
	
		
			
				
					|  |  |  |         searchType: '0', | 
			
		
	
		
			
				
					|  |  |  |         projectCode: '', | 
			
		
	
		
			
				
					|  |  |  |         patientName: '', | 
			
		
	
		
			
				
					|  |  |  |         patientStatus: '', | 
			
		
	
		
			
				
					|  |  |  |         patientIdNumber: '' | 
			
		
	
		
			
				
					|  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |       projectList: [], | 
			
		
	
		
			
				
					|  |  |  |       patientId: '', | 
			
		
	
		
			
				
					|  |  |  |       patientIdNumber: '' | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  | @ -239,8 +281,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |     this.isShowPatient = !(this.$route.matched.length > 2) | 
			
		
	
		
			
				
					|  |  |  |     this.queryProjectList() | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |     // 展示列表项目列 | 
			
		
	
		
			
				
					|  |  |  |     getYLProject(list) { | 
			
		
	
		
			
				
					|  |  |  |       if (!list.length) { | 
			
		
	
		
			
				
					|  |  |  |         return | 
			
		
	
	
		
			
				
					|  |  | @ -251,12 +295,36 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     getHisData(val) { | 
			
		
	
		
			
				
					|  |  |  |       this.addOrUpdateHandle('', { ...val }, 'HIS引入') | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 展示列表操作者列 | 
			
		
	
		
			
				
					|  |  |  |     getOperator(list) { | 
			
		
	
		
			
				
					|  |  |  |       if (!list.length) { | 
			
		
	
		
			
				
					|  |  |  |         return '' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       return list[0].finishUserName | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 获取项目列表 | 
			
		
	
		
			
				
					|  |  |  |     queryProjectList() { | 
			
		
	
		
			
				
					|  |  |  |       this.$http.get('/patient/getZlItemDict', { params: { category: 'T' }}).then(data => { | 
			
		
	
		
			
				
					|  |  |  |         this.projectList = data.data.data | 
			
		
	
		
			
				
					|  |  |  |         this.projectList.unshift({ | 
			
		
	
		
			
				
					|  |  |  |           caseName: '', | 
			
		
	
		
			
				
					|  |  |  |           enable: 1, | 
			
		
	
		
			
				
					|  |  |  |           itemId: '', | 
			
		
	
		
			
				
					|  |  |  |           itemName: '全部项目' | 
			
		
	
		
			
				
					|  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     changeEyeType(value, scope) { | 
			
		
	
		
			
				
					|  |  |  |       const idList = scope.row.zlProjectList.map(item => item.id) | 
			
		
	
		
			
				
					|  |  |  |       this.$http.post('/patient/updateProjectEyeType', { | 
			
		
	
		
			
				
					|  |  |  |         ids: idList, | 
			
		
	
		
			
				
					|  |  |  |         zlEye: value | 
			
		
	
		
			
				
					|  |  |  |       }).then(res => { | 
			
		
	
		
			
				
					|  |  |  |         if (res.data.data) { | 
			
		
	
		
			
				
					|  |  |  |           this.$message.error(res.data.data) | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 日期改变时 | 
			
		
	
		
			
				
					|  |  |  |     dateChange(e) { | 
			
		
	
		
			
				
					|  |  |  |       this.dataForm.beginDate = e ? e[0] : '' | 
			
		
	
	
		
			
				
					|  |  | 
 |