@@ -94,7 +77,7 @@ export default {
id: "id",
children: "children",
}, //树形组件的数据结构
- newQuery: 0, // 0 表示新查询,新查询不执行 selectionChangeDes 的取消查询动作
+
};
},
//
@@ -108,6 +91,14 @@ export default {
tableHeight() {
return this.mainHeight - 120 - 80 - 80;
},
+
+ decLineCount(){
+ return this.refParams.from == 'dcm' ? 14:16
+ },
+
+ conLineCount(){
+ return this.refParams.from == 'dcm' ? 7:8
+ }
},
//创建组件后
created() {
@@ -128,14 +119,82 @@ export default {
this.btnClear()
this.description = []
this.result = this.refParams.result || ''
- this.summary = this.refParams.summary || ''
+ this.summary = this.refParams.summary || ''
+ console.log('init')
+ },
+
+ //勾选节点
+ handleCheckChange(data, checked, indeterminate) {
+ // console.log('data, checked, indeterminate,this.menuInfoSet',data, checked, indeterminate,this.menuInfoSet);
+
+ this.description = []
+ this.conclusion = []
+ postapi('/api/app/BigtextResultTemplate/GetBigtextResultTemplateDetail', { bigtextResultTemplateIds: [data.id] })
+ .then(res => {
+ if (res.code > -1) {
+ this.description = res.data.descriptionDetail
+ this.conclusion = res.data.conclusionDetail
+ let opraType = false
+ if(checked){
+ // 勾选
+ opraType = true
+ }else if(!indeterminate){
+ // 取消勾选
+ opraType = false
+ }
+ this.chooseDescription(opraType)
+ this.chooseConclusion(opraType)
+ }
+ });
},
//树过滤
filterNode(value, data) {
//console.log(value,data)
- if (!value) return true;
- return data['displayName'].indexOf(value) > -1;
+ if (!value) return true;
+ return data['displayName'].indexOf(value) > -1 || data['simpleCode'].indexOf(value.toUpperCase()) > -1;
+ },
+
+ // 选择true或取消false 描述
+ chooseDescription(opraType){
+ let bfind = false
+ this.description.forEach(e => {
+ bfind = this.result.includes(e.description)
+ if(opraType){
+ if(!bfind){
+ if(this.result){
+ this.result += ";" + e.description
+ }else{
+ this.result = e.description
+ }
+ }
+ }else{
+ if(bfind) this.result = this.result.replaceAll(e.description + ';','').replaceAll(e.description,'')
+ }
+ });
+ },
+
+ // 选择true或取消false 描述
+ chooseConclusion(opraType){
+ let lfind = 0
+ let summarys = this.summary.split(';')
+ this.conclusion.forEach(e => {
+ lfind = summarys.indexOf(e.conclusion)
+ if(opraType){
+ if(lfind == -1) summarys.push(e.conclusion)
+ }else{
+ if(lfind > -1) summarys.splice(lfind,1)
+ }
+ });
+ let summary = ''
+ summarys.forEach(e => {
+ if(summary){
+ summary += ';' + e
+ }else{
+ summary = e
+ }
+ });
+ this.summary = summary
},
//获取pacs结果模板
@@ -146,6 +205,9 @@ export default {
.then(res => {
if (res.code > -1) {
resultType = res.data
+ resultType.forEach(e => {
+ e.disabled = true
+ });
return postapi('/api/app/BigtextResultTemplate/GetList', {})
}
})
@@ -160,133 +222,7 @@ export default {
}
})
},
-
- //点击树节点
- handleNode(data, node, prop) {
- let ids = getTreeAllChildIdsById(this.pacsTemplateTree, "children", "id", data.id)
- ids.unshift(data.id) // 加入自身节点
-
- // hadoopPost('pacsApi', '/api/app/BigtextResultTemplate/GetBigtextResultTemplateDetail', { bigtextResultTemplateIds: ids })
- postapi('/api/app/BigtextResultTemplate/GetBigtextResultTemplateDetail', { bigtextResultTemplateIds: ids })
- .then(res => {
- if (res.code > -1) {
- this.newQuery = 0
- this.description = res.data.descriptionDetail
- this.conclusion = res.data.conclusionDetail
- let lfind = -1
- this.description.forEach((e, i) => {
- let conclusion = this.conclusion.filter(c => {
- return c.bigtextResultTemplateId == e.bigtextResultTemplateId
- })
- e["conclusion"] = ""
- e["conclusionList"] = []
- conclusion.forEach(c => {
- e["conclusionList"].push(c)
- });
- if (conclusion.length == 1) e["conclusion"] = conclusion[0].conclusion
-
- // 初始选中状态
- lfind = arrayExistObj(this.descriptionChoosed, "description", e.description)
- if (lfind > -1) {
- // console.log('this.descriptionChoosed refresh', deepCopy(this.descriptionChoosed))
- this.$nextTick(() => {
- this.$refs['ref_description'].toggleRowSelection(this.description[i], true)
- })
- }
- });
- }
- })
-
- },
-
-
- // 选择描述
- selectionChangeDes(v) {
- this.newQuery++
- let lfind = 0
- v.forEach(e => {
- lfind = arrayExistObj(this.descriptionChoosed, "description", e.description)
- if (lfind == -1) {
- this.descriptionChoosed.push(e)
- }
-
- e.conclusionList.forEach(c => {
- lfind = arrayExistObj(this.conclusionAll, "conclusion", c.conclusion)
- if (lfind == -1) this.conclusionAll.push(c)
- });
- // 单个结论时,直接选中结论,多个则将结论添加至待选结论
- if (e.conclusion) {
- lfind = arrayExistObj(this.conclusionAll, "conclusion", e.conclusion)
- // console.log(lfind, e)
- if (lfind > -1) {
- this.$refs['ref_conclusion'].toggleRowSelection(this.conclusionAll[lfind], true)
- }
- }
-
- if (this.result) {
- if (!this.result.includes(e.description)) this.result += ';' + e.description
- } else {
- this.result = e.description
- }
- });
-
- // 这一次没选中的在上一次的选中当中,说明取消选择
- if (this.newQuery > 1) {
- let unChooseed = arrayReduce(deepCopy(this.description), v, "description=description")
- // console.log('this.descriptionChoosedPre,unChooseed', deepCopy(this.descriptionChoosedPre), unChooseed)
- unChooseed.forEach(e => {
- lfind = arrayExistObj(this.descriptionChoosedPre, "description", e.description)
- if (lfind > -1) {
- lfind = arrayExistObj(this.descriptionChoosed, "description", e.description)
- if (lfind > -1) this.descriptionChoosed.splice(lfind, 1)
-
- if (this.result.includes(e.description)) this.result = this.result.replaceAll(e.description + ";", "").replaceAll(e.description, "")
- if (e.conclusion) {
- lfind = arrayExistObj(this.conclusionAll, "conclusion", e.conclusion)
- if (lfind > -1) this.$refs['ref_conclusion'].toggleRowSelection(this.conclusionAll[lfind], false)
- }
- }
- });
- }
- this.descriptionChoosedPre = deepCopy(v)
- if (this.result) {
- if (this.result.substring(this.result.length - 1, this.result.length) == ";") this.result = this.result.substring(0, this.result.length - 1)
- }
- },
-
- // 选择结论(取消选择)
- selectionChangeCon(v) {
- let summarys = []
- v.forEach(e => {
- if (this.summary) {
- summarys = this.summary.split(";")
- if (summarys.indexOf(e.conclusion) == -1) this.summary += ';' + e.conclusion
- } else {
- this.summary = e.conclusion
- }
- });
- // if(this.summary && this.summary.substring())
-
- // 取消选择时
- let lfind = -1
- let unChooseed = arrayReduce(deepCopy(this.conclusionAll), v, "conclusion=conclusion")
- unChooseed.forEach(e => {
- if (this.summary) {
- summarys = this.summary.split(";")
- lfind = summarys.indexOf(e.conclusion)
- if (lfind > -1) summarys.splice(lfind, 1)
- this.summary = ''
- summarys.forEach((c, i) => {
- if (i == 0) {
- this.summary = c
- } else {
- this.summary += ";" + c
- }
- });
- }
- });
- },
-
+
btnTest() {
console.log('this.descriptionChoosed', this.descriptionChoosed)
console.log('this.conclusionChoosed', this.conclusionChoosed)
@@ -294,14 +230,9 @@ export default {
// 清除所选描述与结论
btnClear() {
+ console.log('btnClear')
this.result = ''
- this.summary = ''
- this.descriptionChoosed = []
- this.$refs['ref_description'].clearSelection();
-
- this.conclusionChoosed = []
- this.conclusionAll = []
- this.$refs['ref_conclusion'].clearSelection();
+ this.summary = ''
},
// 默认结果
@@ -323,23 +254,10 @@ export default {
if (newVal != oldVal) this.$refs['ref_tree'].filter(newVal);
},
- "refParams.row.itemId"(newVal, oldVal) {
- if (newVal != oldVal) this.init();
- },
-
- "refParams.result"(newVal, oldVal) {
- if (newVal != oldVal){
- console.log("refParams.result",newVal, oldVal)
- this.result = newVal
- }
+ "refParams.refresh"(newVal, oldVal) {
+ if (newVal && newVal != oldVal) this.init();
},
- "refParams.summary"(newVal, oldVal) {
- if (newVal != oldVal){
- console.log("refParams.summary",newVal, oldVal)
- this.summary = newVal
- }
- },
},
};
diff --git a/src/components/doctorCheck/PacsTemplateBak.vue b/src/components/doctorCheck/PacsTemplateBak.vue
new file mode 100644
index 0000000..8b45cd3
--- /dev/null
+++ b/src/components/doctorCheck/PacsTemplateBak.vue
@@ -0,0 +1,356 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ node.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 检查结果:
+
+
+
+
+
+
+
+ 清除
+ 默认结果
+ 确定
+
+
+
+
+
+
+
diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue
index 2275202..3d08d75 100644
--- a/src/components/patientRegister/PatientRegisterList.vue
+++ b/src/components/patientRegister/PatientRegisterList.vue
@@ -313,6 +313,7 @@ import {
arrayExistObj,
deepCopy, setPrStatusColor
} from "../../utlis/proFunc";
+import { savePeoplePhoto } from "../../utlis/proApi";
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue";
import Camera from "../../components/patientRegister/Camera.vue";
@@ -1149,21 +1150,36 @@ export default {
};
// console.log("/api/app/patientregister/getlistinfilter", body);
+ let upPhoto = "patient_register_read_idno_upPhoto" // 是否读身份证查询更新照片
+ let upPhotoParam = await postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: upPhoto })
+ let photo = this.patientRegister.photo
+ this.patientRegister.photo = ''
postapi("/api/app/patientregister/getlistinfilter", body)
- .then(res => {
+ .then(async (res) => {
if (res.code > -1) {
// 刷新最大记录数
this.loadOpts.totalCount = res.data.totalCount
let curLoad = res.data.items
+
// let oldCount = 0
- // 处理分组/套餐 排序混乱的问题
+ // 处理:
+ // 1、分组/套餐 排序混乱的问题
+ // 2、扫身份证查询时,无照片自动更新照片(参数控制)
curLoad.forEach(e => {
+ // 1、分组/套餐 排序混乱的问题
if (e.customerOrgId == this.dict.personOrgId) {
e.groupPack = e.medicalPackageId
} else {
e.groupPack = e.customerOrgGroupId
}
+
+ // 2、扫身份证查询时,无照片自动更新照片(参数控制)
+ if (upPhotoParam != 'N' && photo) {
+ if (!e.photo) {
+ savePeoplePhoto(e.id, photo)
+ }
+ }
});
if (body.skipCount == 0) { //查询
diff --git a/src/components/patientRegister/patientRegisterQuery.vue b/src/components/patientRegister/patientRegisterQuery.vue
index b4aaccb..6aaaef7 100644
--- a/src/components/patientRegister/patientRegisterQuery.vue
+++ b/src/components/patientRegister/patientRegisterQuery.vue
@@ -288,7 +288,8 @@ export default {
// this.form.nationId = idNos.nationId
// this.form.idNo = idNos.IDCode
// this.form.address = idNos.Address
- // this.patientRegister.photo = 'data:image/bmp;base64,' + idNos.Photo
+ this.patientRegister.photo = 'data:image/bmp;base64,' + idNos.Photo //批量导入人员无照片,读身份证查询时,可以控制更新
+
this.patientRegister.query.patientName = idNos.Name
this.patientRegister.query.sex = idNos.sexId
this.patientRegister.query.idCardNo = idNos.IDCode
diff --git a/src/router/index.js b/src/router/index.js
index 7352401..da063f9 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -477,6 +477,12 @@ const routes = [{
component: () =>
import ("../views/doctorCheck/sumDoctorCheck.vue"),
},
+ {
+ path: "/pacsBrower",
+ name: "pacs看图",
+ component: () =>
+ import ("../components/doctorCheck/PacsDcmList.vue"),
+ },
{
path: "/checkPicImport",
name: "批量导入图片",