| 
					
					
						
							
						
					
					
				 | 
				@ -25,6 +25,10 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				              <el-button type="primary" class="commonbutton" @click="btnDownOrg" | 
				 | 
				 | 
				              <el-button type="primary" class="commonbutton" @click="btnDownOrg" | 
			
		
		
	
		
			
				 | 
				 | 
				                :disabled="(form.customerOrgId == dict.personOrgId) || !form.id">同步团检预约</el-button> | 
				 | 
				 | 
				                :disabled="(form.customerOrgId == dict.personOrgId) || !form.id">同步团检预约</el-button> | 
			
		
		
	
		
			
				 | 
				 | 
				            </div> | 
				 | 
				 | 
				            </div> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            <div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '分诊排队')"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              <el-button type="primary" class="commonbutton" @click="fnQueue(form)" | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                :disabled="!form.id">分诊排队</el-button> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            </div> | 
			
		
		
	
		
			
				 | 
				 | 
				          </div> | 
				 | 
				 | 
				          </div> | 
			
		
		
	
		
			
				 | 
				 | 
				        </div> | 
				 | 
				 | 
				        </div> | 
			
		
		
	
		
			
				 | 
				 | 
				        <div> | 
				 | 
				 | 
				        <div> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -587,12 +591,14 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				        <WebBooking /> | 
				 | 
				 | 
				        <WebBooking /> | 
			
		
		
	
		
			
				 | 
				 | 
				      </el-dialog> | 
				 | 
				 | 
				      </el-dialog> | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      <!-- checkStrictly: true, expandTrigger: 'hover', --> | 
			
		
		
	
		
			
				 | 
				 | 
				      <el-dialog title="选择单位" :visible.sync="dialogOrg" width="800px" :close-on-click-modal="false" | 
				 | 
				 | 
				      <el-dialog title="选择单位" :visible.sync="dialogOrg" width="800px" :close-on-click-modal="false" | 
			
		
		
	
		
			
				 | 
				 | 
				        :append-to-body="true"> | 
				 | 
				 | 
				        :append-to-body="true"> | 
			
		
		
	
		
			
				 | 
				 | 
				        <div style="height: 320px;"> | 
				 | 
				 | 
				        <div style="height: 320px;"> | 
			
		
		
	
		
			
				 | 
				 | 
				          <el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" | 
				 | 
				 | 
				          <el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" | 
			
		
		
	
		
			
				 | 
				 | 
				            filterable popper-class="example" :show-all-levels="false" | 
				 | 
				 | 
				            filterable popper-class="example" :show-all-levels="false" | 
			
		
		
	
		
			
				 | 
				 | 
				            :props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" size="small"> | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            :props="{ ...customerOrg.treeprops, lazyLoad: lazyLoad, lazy: true, leaf: 'isLeaf' }" | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            size="small"> | 
			
		
		
	
		
			
				 | 
				 | 
				          </el-cascader> | 
				 | 
				 | 
				          </el-cascader> | 
			
		
		
	
		
			
				 | 
				 | 
				        </div> | 
				 | 
				 | 
				        </div> | 
			
		
		
	
		
			
				 | 
				 | 
				        <span slot="footer" class="dialog-footer"> | 
				 | 
				 | 
				        <span slot="footer" class="dialog-footer"> | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -646,6 +652,12 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				        :close-on-click-modal="false" :append-to-body="true" @close="closeDialogCharge"> | 
				 | 
				 | 
				        :close-on-click-modal="false" :append-to-body="true" @close="closeDialogCharge"> | 
			
		
		
	
		
			
				 | 
				 | 
				        <AsbChargeRequest :patientRegister="form" /> | 
				 | 
				 | 
				        <AsbChargeRequest :patientRegister="form" /> | 
			
		
		
	
		
			
				 | 
				 | 
				      </el-dialog> | 
				 | 
				 | 
				      </el-dialog> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      <!-- 分诊排队 --> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      <el-dialog title="分诊排队" :visible.sync="dialogWin.queue" width="800px" :append-to-body="true" | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        :close-on-click-modal="false"> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        <Queue :refParams="queueParams" /> | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      </el-dialog> | 
			
		
		
	
		
			
				 | 
				 | 
				    </div> | 
				 | 
				 | 
				    </div> | 
			
		
		
	
		
			
				 | 
				 | 
				  </div> | 
				 | 
				 | 
				  </div> | 
			
		
		
	
		
			
				 | 
				 | 
				</template> | 
				 | 
				 | 
				</template> | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -658,9 +670,9 @@ import { getTreeNode } from "../../utlis/tree" | 
			
		
		
	
		
			
				 | 
				 | 
				import { | 
				 | 
				 | 
				import { | 
			
		
		
	
		
			
				 | 
				 | 
				  getPagePriv, checkPagePriv, objCopy, setNull, dddw, checkIDCode, parseID, | 
				 | 
				 | 
				  getPagePriv, checkPagePriv, objCopy, setNull, dddw, checkIDCode, parseID, | 
			
		
		
	
		
			
				 | 
				 | 
				  birthdayToAge, ageToBirthday, deepCopy, arrayFilter, arrayReduce, parsIcCardtoLocal, | 
				 | 
				 | 
				  birthdayToAge, ageToBirthday, deepCopy, arrayFilter, arrayReduce, parsIcCardtoLocal, | 
			
		
		
	
		
			
				 | 
				 | 
				  arrayExistObj, isValidMobileNumber | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  reMadeOrgTree, arrayExistObj, isValidMobileNumber | 
			
		
		
	
		
			
				 | 
				 | 
				} from "../../utlis/proFunc"; | 
				 | 
				 | 
				} from "../../utlis/proFunc"; | 
			
		
		
	
		
			
				 | 
				 | 
				import { getTreePids } from "../../utlis/tree"; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				import { getTreePids,madeTree } from "../../utlis/tree"; | 
			
		
		
	
		
			
				 | 
				 | 
				import { photoParse, savePeoplePhoto, } from "../../utlis/proApi"; | 
				 | 
				 | 
				import { photoParse, savePeoplePhoto, } from "../../utlis/proApi"; | 
			
		
		
	
		
			
				 | 
				 | 
				import Camera from "./Camera.vue"; | 
				 | 
				 | 
				import Camera from "./Camera.vue"; | 
			
		
		
	
		
			
				 | 
				 | 
				import PatientRegisterItem from "./PatientRegisterItem.vue"; | 
				 | 
				 | 
				import PatientRegisterItem from "./PatientRegisterItem.vue"; | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -674,6 +686,7 @@ import WebBooking from "../../components/webBooking/WebBooking.vue" | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				import PatientLisRequest from "../../components/patientRegister/PatientLisRequest.vue"; | 
				 | 
				 | 
				import PatientLisRequest from "../../components/patientRegister/PatientLisRequest.vue"; | 
			
		
		
	
		
			
				 | 
				 | 
				import PatientPacsRequest from "../../components/patientRegister/PatientPacsRequest.vue"; | 
				 | 
				 | 
				import PatientPacsRequest from "../../components/patientRegister/PatientPacsRequest.vue"; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				import Queue from "../../components/queue/Queue.vue"; | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				export default { | 
				 | 
				 | 
				export default { | 
			
		
		
	
		
			
				 | 
				 | 
				  components: { | 
				 | 
				 | 
				  components: { | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -688,6 +701,7 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				    PatientLisRequest, | 
				 | 
				 | 
				    PatientLisRequest, | 
			
		
		
	
		
			
				 | 
				 | 
				    PatientPacsRequest, | 
				 | 
				 | 
				    PatientPacsRequest, | 
			
		
		
	
		
			
				 | 
				 | 
				    WebBooking, | 
				 | 
				 | 
				    WebBooking, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    Queue | 
			
		
		
	
		
			
				 | 
				 | 
				  }, | 
				 | 
				 | 
				  }, | 
			
		
		
	
		
			
				 | 
				 | 
				  // isDoctor: '0:标准人员登记/1:医生诊台登记(可修改单位)'  | 
				 | 
				 | 
				  // isDoctor: '0:标准人员登记/1:医生诊台登记(可修改单位)'  | 
			
		
		
	
		
			
				 | 
				 | 
				  props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'], | 
				 | 
				 | 
				  props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'], | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -716,6 +730,7 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				          immediateToHisCharge: true,  // 人员登记保存后,立即发送收费申请 | 
				 | 
				 | 
				          immediateToHisCharge: true,  // 人员登记保存后,立即发送收费申请 | 
			
		
		
	
		
			
				 | 
				 | 
				          findPatientByName: true, // 人员登记,启有人名查询 | 
				 | 
				 | 
				          findPatientByName: true, // 人员登记,启有人名查询 | 
			
		
		
	
		
			
				 | 
				 | 
				          printGuideLabel: ["guide", "pacs", "lis"], // 保存后打印指引单与条码 | 
				 | 
				 | 
				          printGuideLabel: ["guide", "pacs", "lis"], // 保存后打印指引单与条码 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          dispCustomerOrgCode: 'N', // 人员登记列表--单位树是否显示 customerOrgCode | 
			
		
		
	
		
			
				 | 
				 | 
				        }, | 
				 | 
				 | 
				        }, | 
			
		
		
	
		
			
				 | 
				 | 
				      }, | 
				 | 
				 | 
				      }, | 
			
		
		
	
		
			
				 | 
				 | 
				      brushTimes: 0, | 
				 | 
				 | 
				      brushTimes: 0, | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -861,6 +876,7 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				      poisonList: [], | 
				 | 
				 | 
				      poisonList: [], | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				      thirdInterfaceId: '', // 网上预约用到 | 
				 | 
				 | 
				      thirdInterfaceId: '', // 网上预约用到 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      queueParams: {}, // 分诊排队参数 | 
			
		
		
	
		
			
				 | 
				 | 
				       | 
				 | 
				 | 
				       | 
			
		
		
	
		
			
				 | 
				 | 
				    }; | 
				 | 
				 | 
				    }; | 
			
		
		
	
		
			
				 | 
				 | 
				  }, | 
				 | 
				 | 
				  }, | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -886,6 +902,7 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				          this.LocalConfig.patientRegister.findPatientByName = false | 
				 | 
				 | 
				          this.LocalConfig.patientRegister.findPatientByName = false | 
			
		
		
	
		
			
				 | 
				 | 
				        } | 
				 | 
				 | 
				        } | 
			
		
		
	
		
			
				 | 
				 | 
				        if (LocalConfig.patientRegister.printGuideLabel) this.LocalConfig.patientRegister.printGuideLabel = deepCopy(LocalConfig.patientRegister.printGuideLabel) | 
				 | 
				 | 
				        if (LocalConfig.patientRegister.printGuideLabel) this.LocalConfig.patientRegister.printGuideLabel = deepCopy(LocalConfig.patientRegister.printGuideLabel) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        if (LocalConfig.patientRegister.dispCustomerOrgCode) this.LocalConfig.patientRegister.dispCustomerOrgCode = LocalConfig.patientRegister.dispCustomerOrgCode | 
			
		
		
	
		
			
				 | 
				 | 
				      } | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				    } catch (error) { | 
				 | 
				 | 
				    } catch (error) { | 
			
		
		
	
		
			
				 | 
				 | 
				      console.log("window.localStorage.getItem('LocalConfig')", error) | 
				 | 
				 | 
				      console.log("window.localStorage.getItem('LocalConfig')", error) | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -1100,6 +1117,43 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				      } | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				    }, | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    getCustomerOrgChild(parentId) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      return new Promise((resolve, reject) => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        postapi('/api/app/CustomerOrg/GetCustomerOrgByParentId', { parentId }) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          .then(res => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            if (res.code > -1) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              res.data.forEach(e => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                e.isLeaf = e.isChild == 'Y' ? false : true | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              }); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              // console.log('this.patientRegister.customerOrgs', this.patientRegister.customerOrgs) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              let treeData = reMadeOrgTree(deepCopy(res.data), this.LocalConfig.patientRegister.dispCustomerOrgCode); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              treeData.forEach(e => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                if (arrayExistObj(this.patientRegister.customerOrgs, 'id', e.id) == -1) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                  this.patientRegister.customerOrgs.push(e) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              }); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              this.patientRegister.customerOrgTreeAll = madeTree(this.patientRegister.customerOrgs,'treeChildren','parentId','id',null) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              // console.log('this.patientRegister.customerOrgTreeAll', this.patientRegister.customerOrgTreeAll) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				              resolve(treeData) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          }) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          .catch(err => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            reject(err) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          }) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      }) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    lazyLoad(node, resolve) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      if (node && node.data && node.data.id) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        this.getCustomerOrgChild(node.data.id).then(res => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          resolve(res) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        }).catch(err => { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				          resolve([]) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        }) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				    // 确定选中企业 | 
				 | 
				 | 
				    // 确定选中企业 | 
			
		
		
	
		
			
				 | 
				 | 
				    btnOkOrg() { | 
				 | 
				 | 
				    btnOkOrg() { | 
			
		
		
	
		
			
				 | 
				 | 
				      let customerOrgId = '' | 
				 | 
				 | 
				      let customerOrgId = '' | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -1318,7 +1372,14 @@ export default { | 
			
		
		
	
		
			
				 | 
				 | 
				      }) | 
				 | 
				 | 
				      }) | 
			
		
		
	
		
			
				 | 
				 | 
				    }, | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    // 分诊排队 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    fnQueue(row) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      this.queueParams = { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        patientRegisterId: row.id | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      this.dataTransOpts.plus.queue++ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				      this.dialogWin.queue = true | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				    }, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				    //修改单位体检次数 | 
				 | 
				 | 
				    //修改单位体检次数 | 
			
		
		
	
		
			
				 | 
				 | 
				    changeMedicalTimes() { | 
				 | 
				 | 
				    changeMedicalTimes() { | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |