From 0c56292b36761627f88a142cf19fe11e58d459b7 Mon Sep 17 00:00:00 2001
From: pengjun <158915633@qq.com>
Date: Mon, 5 Aug 2024 17:24:29 +0800
Subject: [PATCH] dj
---
.../patientRegister/PatientRegisterEdit.vue | 73 +++++++++++++++++--
.../patientRegister/PatientRegisterList.vue | 2 +-
.../patientRegister/customerOrgTreeAll.vue | 17 ++++-
src/store/index.js | 3 +-
4 files changed, 83 insertions(+), 12 deletions(-)
diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue
index 0d70855..1ee9e8d 100644
--- a/src/components/patientRegister/PatientRegisterEdit.vue
+++ b/src/components/patientRegister/PatientRegisterEdit.vue
@@ -25,6 +25,10 @@
同步团检预约
+
+ 分诊排队
+
@@ -587,12 +591,14 @@
+
+ :props="{ ...customerOrg.treeprops, lazyLoad: lazyLoad, lazy: true, leaf: 'isLeaf' }"
+ size="small">
+
+
+
+
+
@@ -658,9 +670,9 @@ import { getTreeNode } from "../../utlis/tree"
import {
getPagePriv, checkPagePriv, objCopy, setNull, dddw, checkIDCode, parseID,
birthdayToAge, ageToBirthday, deepCopy, arrayFilter, arrayReduce, parsIcCardtoLocal,
- arrayExistObj, isValidMobileNumber
+ reMadeOrgTree, arrayExistObj, isValidMobileNumber
} from "../../utlis/proFunc";
-import { getTreePids } from "../../utlis/tree";
+import { getTreePids,madeTree } from "../../utlis/tree";
import { photoParse, savePeoplePhoto, } from "../../utlis/proApi";
import Camera from "./Camera.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 PatientPacsRequest from "../../components/patientRegister/PatientPacsRequest.vue";
+import Queue from "../../components/queue/Queue.vue";
export default {
components: {
@@ -688,6 +701,7 @@ export default {
PatientLisRequest,
PatientPacsRequest,
WebBooking,
+ Queue
},
// isDoctor: '0:标准人员登记/1:医生诊台登记(可修改单位)'
props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'],
@@ -716,6 +730,7 @@ export default {
immediateToHisCharge: true, // 人员登记保存后,立即发送收费申请
findPatientByName: true, // 人员登记,启有人名查询
printGuideLabel: ["guide", "pacs", "lis"], // 保存后打印指引单与条码
+ dispCustomerOrgCode: 'N', // 人员登记列表--单位树是否显示 customerOrgCode
},
},
brushTimes: 0,
@@ -861,7 +876,8 @@ export default {
poisonList: [],
thirdInterfaceId: '', // 网上预约用到
-
+ queueParams: {}, // 分诊排队参数
+
};
},
@@ -886,6 +902,7 @@ export default {
this.LocalConfig.patientRegister.findPatientByName = false
}
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) {
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() {
let customerOrgId = ''
@@ -1318,7 +1372,14 @@ export default {
})
},
-
+ // 分诊排队
+ fnQueue(row) {
+ this.queueParams = {
+ patientRegisterId: row.id
+ }
+ this.dataTransOpts.plus.queue++
+ this.dialogWin.queue = true
+ },
//修改单位体检次数
changeMedicalTimes() {
@@ -1692,7 +1753,7 @@ export default {
this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
e.total = e.amount * e.chargePrice
});
-
+
//一般读身份证照片时,会出现这种情况
if (this.peoplePhoto && this.peoplePhoto.indexOf("data:image") > -1) await savePeoplePhoto(res.data.id, this.peoplePhoto);
diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue
index 7249c7d..fca66d7 100644
--- a/src/components/patientRegister/PatientRegisterList.vue
+++ b/src/components/patientRegister/PatientRegisterList.vue
@@ -233,7 +233,7 @@
-
+
diff --git a/src/components/patientRegister/customerOrgTreeAll.vue b/src/components/patientRegister/customerOrgTreeAll.vue
index 5dd6e5d..4622f6b 100644
--- a/src/components/patientRegister/customerOrgTreeAll.vue
+++ b/src/components/patientRegister/customerOrgTreeAll.vue
@@ -29,7 +29,8 @@