| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -44,12 +44,12 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-row> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              <el-col :span="5"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <el-form-item label="姓名" prop="patientName"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  <el-input v-model="form.patientName" @blur="Query(form.patientName)" size="small"></el-input> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  <el-input v-model="form.patientName" @change="Query(form.patientName)" size="small" autocomplete="off"></el-input> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </el-form-item> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              </el-col> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              <el-col :span="5"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <el-form-item label="身份证号" prop="idNo"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  <el-input v-model="form.idNo" @change="changeIdNo" @blur="Query(form.idNo)" size="small"></el-input> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  <el-input v-model="form.idNo" @change="changeIdNo" size="small"></el-input> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </el-form-item> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              </el-col> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              <el-col :span="5"> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -61,7 +61,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              </el-col> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              <el-col :span="3"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <el-form-item label="年龄" prop="age"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  <el-input v-model="form.age" size="small"></el-input> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  <el-input v-model="form.age" size="small" @change="changeAge"></el-input> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </el-form-item> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              </el-col> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              <el-col :span="3"> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -397,7 +397,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <!-- 人员档案列表 --> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <el-dialog title="人员档案列表" :visible.sync="dialogVisible" width="800" :show-close="false" :close-on-click-modal="false" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <el-dialog title="人员档案列表" :visible.sync="dialogVisible" width="800px" :show-close="false" :close-on-click-modal="false" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      :append-to-body="true"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <el-table :data="patientList" border width="800" height="480" row-key="id" size="small" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        class="el-table__body-wrapper tbody" highlight-current-row @row-click="rowick" ref="patientList"> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -451,7 +451,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </el-dialog> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <!-- 体检人员记录列表 --> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <el-dialog title="体检人员列表" :visible.sync="registerVisible" width="800" :show-close="false" :close-on-click-modal="false" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <el-dialog title="体检人员列表" :visible.sync="registerVisible" width="800px" :show-close="false" :close-on-click-modal="false" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      :append-to-body="true"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <el-table :data="patientRegisters" border width="800" height="480" highlight-current-row | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        @row-click="registerRowClick" size="small">  | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -623,7 +623,7 @@ import { mapState, mapActions } from "vuex"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { getapi, postapi, putapi, deletapi } from "@/api/api"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import mm from "../../utlis/mm"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { objCopy, setNull, dddw, parseID, birthdayToAge, deepCopy, arrayFilter, parsIcCardtoLocal, photoParse, savePeoplePhoto, arrayExistObj } from "../../utlis/proFunc"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { objCopy, setNull, dddw,checkIDCode, parseID, birthdayToAge,ageToBirthday, deepCopy, arrayFilter, parsIcCardtoLocal, photoParse, savePeoplePhoto, arrayExistObj } from "../../utlis/proFunc"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import Camera from "./Camera.vue"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import PatientRegisterItem from "./PatientRegisterItem.vue"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import LisRequest from "./LisRequest.vue"; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -704,6 +704,7 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        "customerOrgId", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        "customerOrgGroupId", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        "medicalPackageId", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        "birthDate", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        "age", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        "medicalTypeId", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        "personnelTypeId", | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -913,8 +914,14 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.form.age = birthdayToAge(this.form.birthDate) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //修改出生日期 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    changeAge() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.form.birthDate = ageToBirthday(this.form.age) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //修改身份证,生成年龄、出生、性别 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    changeIdNo() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.Query(this.form.idNo) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      let ret = parseID(this.form.idNo) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (ret.age != -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        this.form.birthDate = new Date(ret.birthday) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -940,9 +947,14 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //编辑的时候不查重 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      if (this.form.id || !param) return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //console.log(param) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      getapi(`/api/app/patient/in-filter?Filter=${param}`).then((res) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (res.code == 1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //console.log(`/api/app/patient/in-filter?Filter=${param}`) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      let body = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        filter:param, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        maxResultCount:500 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					       | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      postapi('/api/app/patient/getlistinfilter',body).then((res) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (res.code != -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          console.log("查重 ", res); //有数据才显示 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (res.data.items && res.data.items.length > 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.patientList = res.data.items; | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -950,6 +962,7 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //列表选中 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -1066,18 +1079,26 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.$message.warning(fields[Object.keys(fields)[0]][0].message); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          return false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(this.form.customerOrgId != this.dict.personOrgId){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if(!this.form.customerOrgRegisterId){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.$message.warning("请填写单位体检次数!"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(this.form.idNo && checkIDCode(this.form.idNo) == false){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.$message.warning("身份证号填写不合法!"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          return false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }         | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //赋值 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let body = deepCopy(this.form); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (this.form.birthDate) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (this.form.birthDate && this.form.birthDate != "Invalid date") { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          body.birthDate = moment(this.form.birthDate).format("yyyy-MM-DD") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }else{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          body.birthDate = null | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -1096,9 +1117,9 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        delete body.isPhoneFollowBox; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        delete body.isLockBox; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        delete body.photo; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        setNull(body, this.defaultNull); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					         | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //日期转换 日期控件增加格式 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // console.log("body.birthDate", body.birthDate); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // if (body.birthDate) { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -1119,12 +1140,15 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(res.data.id, this.patientRegister.photo); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                objCopy(res.data, this.form); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // this.patientRegister.prList.push(res.data);  //列表添加记录 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                this.patientRegister.patientRegisterId = res.data.id;                   | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                this.patientRegister.patientRegisterRd = res.data; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                this.patientRegister.patientRegisterId = res.data.id;      | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                objCopy(this.form, this.patientRegister.patientRegisterRd);  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                this.patientRegister.prList.push(res.data) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新)放在窗口关闭事件中去 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                let curRow = deepCopy(this.patientRegister.patientRegisterRd) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                curRow.index = this.patientRegister.prList.length | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                this.patientRegister.prList.push(curRow) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //触发已选组合项目保存 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                this.patientRegister.patientRegisterAbs.forEach(e => { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -1143,10 +1167,10 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              if (msgTip) this.$message.success("更新 操作成功"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              //一般读身份证照片时,会出现这种情况 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              if (this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(this.form.id, this.patientRegister.photo); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              //this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              if(lfind > - 1) objCopy(this.form,this.patientRegister.prList[lfind]) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              objCopy(this.form, this.patientRegister.patientRegisterRd); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              // this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新) 放在窗口关闭事件中去                | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              // let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              // if(lfind > - 1) objCopy(this.form,this.patientRegister.prList[lfind]) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              //this.patientRegister.saveTimes++;  //更新保存时,无需触发组合项目保存 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |