pengjun 2 years ago
parent
commit
97759b4bda
  1. 15
      src/components/doctorCheck/PatientRegisterBase.vue
  2. 2
      src/components/patientRegister/PatientRegisterEdit.vue
  3. 18
      src/components/patientRegister/patientRegisterQuery.vue
  4. 6
      src/components/sumDoctorCheck/CheckDetails.vue
  5. 4
      src/components/sumDoctorCheck/SumAsbItemStatus.vue
  6. 4
      src/components/sumDoctorCheck/SumHistory.vue
  7. 6
      src/components/sumDoctorCheck/SumItems.vue
  8. 5
      src/components/sumDoctorCheck/SumSug.vue
  9. 3
      src/store/index.js
  10. 6
      src/utlis/proApi.js
  11. 24
      src/views/doctorCheck/sumDoctorCheck.vue

15
src/components/doctorCheck/PatientRegisterBase.vue

@ -296,20 +296,29 @@ export default {
switch (placeholder) {
case '条码号':
if (input.value) this.onQueryByPatientRegisterNo()
input.select()
break;
case '档案号':
if (input.value) this.onQueryByPatientNo()
input.select()
break;
case '姓名':
if (input.value) this.getlistinfilterByName(input.value)
input.select()
break;
}
input.select()
}
});
input.addEventListener('click', (event) => {
input.select()
input.addEventListener('click', (event) => {
let placeholder = input.getAttribute('placeholder')
switch (placeholder) {
case '条码号':
case '档案号':
case '姓名':
input.select()
break;
}
});
});

2
src/components/patientRegister/PatientRegisterEdit.vue

@ -848,7 +848,7 @@ export default {
this.form.medicalCenterId = this.peisid; //
this.form.customerOrgId = this.preCustomerOrgId || this.dict.personOrgId //
this.form.customerOrgParentId = await this.getParentCustomerOrgId(this.form.customerOrgId) //
this.dataTransOpts.refresh.register_check_asbitem.D++ //
} else {
// let res = await getapi(`/api/app/patient-register/${patientRegisterId}`)
let res = await postapi('/api/app/patientregister/getinfoorpatient', { patientRegisterId })

18
src/components/patientRegister/patientRegisterQuery.vue

@ -223,14 +223,24 @@ export default {
case '预约手机号':
case '身份证号':
if(input.value) this.patientRegister.query.times++;
input.select()
break;
}
input.select()
}
}
});
input.addEventListener('click', (event) => {
input.select()
input.addEventListener('click', (event) => {
let placeholder = input.getAttribute('placeholder')
switch (placeholder) {
case '条码号':
case '档案号':
case '姓名':
case '预约手机号':
case '身份证号':
if(input.value) this.patientRegister.query.times++;
input.select()
break;
}
});
});
});

6
src/components/sumDoctorCheck/CheckDetails.vue

@ -51,7 +51,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { arrayExistObj, getColorStr } from '@/utlis/proFunc';
export default {
components: {},
props: ["patientRegisterId"],
props: ["patientRegisterId","tabChoosed"],
data() {
return {
tableData: [],
@ -111,12 +111,12 @@ export default {
//
watch: {
// sumDoctor.M
// sumDoctor.M
"dataTransOpts.refresh.sumDoctor.M": {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检--检查明细结果 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`);
this.CheckDetails(this.dataTransOpts.tableS.patient_register.id);
if(newVal != oldVal && this.tabChoosed == '2') this.CheckDetails(this.dataTransOpts.tableS.patient_register.id);
}
},

4
src/components/sumDoctorCheck/SumAsbItemStatus.vue

@ -37,7 +37,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api";
export default {
components: {},
props: ['patientRegisterId'],
props: ['patientRegisterId','tabChoosed'],
data() {
return {
data: {
@ -99,7 +99,7 @@ export default {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检--检查状态汇总 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.patientRegisterId}`);
this.getSumAsbItemStatus(this.patientRegisterId);
if(newVal != oldVal && this.tabChoosed == '1') this.getSumAsbItemStatus(this.patientRegisterId);
}
},

4
src/components/sumDoctorCheck/SumHistory.vue

@ -33,7 +33,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { arrayExistObj } from '@/utlis/proFunc';
export default {
components: {},
props: ["patientId"],
props: ["patientId","tabChoosed"],
data() {
return {
tableData: [], //
@ -96,7 +96,7 @@ export default {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检--历次综述建议 newVal: ${newVal}, oldVal: ${oldVal} patientId: ${this.patientId}`);
this.SumHistory(this.patientId)
if(newVal != oldVal && this.tabChoosed == '6') this.SumHistory(this.patientId)
}
},

6
src/components/sumDoctorCheck/SumItems.vue

@ -77,7 +77,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { arrayExistObj, getColorStr } from '@/utlis/proFunc';
export default {
components: {},
props: ["patientId"],
props: ["patientId","tabChoosed"],
data() {
return {
RegisterCheckList: [],
@ -240,8 +240,8 @@ export default {
"dataTransOpts.refresh.sumDoctor.M": {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检--横向对比 newVal: ${newVal}, oldVal: ${oldVal} patientId: ${this.patientId}`);
this.registerCheckList(this.patientId)
console.log(`watch 总检--横向对比 newVal: ${newVal}, oldVal: ${oldVal} patientId: ${this.dataTransOpts.tableS.patient_register.id}`);
if(newVal != oldVal && this.tabChoosed == '5') this.registerCheckList(this.dataTransOpts.tableS.patient_register.id)
}
},
},

5
src/components/sumDoctorCheck/SumSug.vue

@ -226,7 +226,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from '../../utlis/proFunc';
export default {
components: {},
props: ["patientRegisterId"],
props: ["patientRegisterId","tabChoosed"],
data() {
return {
pagePriv: {
@ -431,6 +431,7 @@ export default {
summaryList.push({ id: `summary_${i}`, summaryTitle: ' ', details })
});
this.sumDoctorCheck.summaryList = deepCopy(summaryList)
//
setTimeout(() => {
this.sumDoctorCheck.summaryList = deepCopy(res.data);
@ -879,7 +880,7 @@ export default {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检--综述建议 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`);
this.getHaveSumData(this.dataTransOpts.tableS.patient_register.id)
if(newVal != oldVal && this.tabChoosed == '1') this.getHaveSumData(this.dataTransOpts.tableS.patient_register.id)
}
},
},

3
src/store/index.js

@ -315,7 +315,8 @@ export default new Vuex.Store({
role_menu_info: { S: 0, M: 0 }, // 角色对应的菜单
sum_diagnosis: { S: 0, M: 0 }, // 总检诊断
sumDoctor: { S: 0, M: 0 }, // 虚拟表 触发强制刷新 (sumDoctor.M 合并包含:综述、建议、对比、历史等,不包含总检诊断)
sumDoctor: { S: 0, M: 0 }, // 总检--综述 触发强制刷新 (sumDoctor.M 合并包含:综述、建议、对比、历史等,不包含总检诊断)
},
//表当前数据(单条记录 S--single)
tableS: {

6
src/utlis/proApi.js

@ -61,10 +61,10 @@ function photoParse(photo) {
//console.log(sysConfig,photo)
let lphoto = '' //data:image、UpLoad/、/pic/Photo.jpg
if (!photo) return '/pic/Photo.jpg'
if (photo.indexOf("UpLoad/") > - 1) {
lphoto = sysConfig.apiurl + '/' + photo + '?' + new Date().getTime()
} else {
if (photo.toLowerCase().indexOf("http") > - 1) {
lphoto = photo
} else {
lphoto = sysConfig.apiurl + '/' + photo + '?' + new Date().getTime()
}
//console.log(lphoto)
return lphoto

24
src/views/doctorCheck/sumDoctorCheck.vue

@ -28,25 +28,27 @@
<SumPREdit />
<!-- 检查情况 -->
<div style="margin-top: -6px;">
<SumAsbItemStatus :patientRegisterId="dataTransOpts.tableS.patient_register.id" />
<SumAsbItemStatus :patientRegisterId="dataTransOpts.tableS.patient_register.id" :tabChoosed="tabChoosed"/>
</div>
</div>
</el-tab-pane>
<el-tab-pane label="明细结果" name="2">
<CheckDetails :patientRegisterId="dataTransOpts.tableS.patient_register.id" />
<el-tab-pane label="明细结果" name="2">
<CheckDetails :patientRegisterId="dataTransOpts.tableS.patient_register.id" :tabChoosed="tabChoosed"/>
</el-tab-pane>
<!--
<el-tab-pane label="危急值" name="3"> </el-tab-pane>
<el-tab-pane label="项目对比" name="4">
<SumItemsType :patientId="dataTransOpts.tableS.patient_register.patientId" />
</el-tab-pane>
-->
-->
<el-tab-pane label="历次结果" name="5">
<SumItems :patientId="dataTransOpts.tableS.patient_register.patientId" />
<SumItems :patientId="dataTransOpts.tableS.patient_register.patientId" :tabChoosed="tabChoosed"/>
</el-tab-pane>
<el-tab-pane label="历次综述" name="6">
<SumHistory :patientId="dataTransOpts.tableS.patient_register.patientId" />
<SumHistory :patientId="dataTransOpts.tableS.patient_register.patientId" :tabChoosed="tabChoosed"/>
</el-tab-pane>
</el-tabs>
</div>
</div>
@ -221,11 +223,19 @@ export default {
console.log("dict", this.dict);
},
},
//()
watch: {
"tabChoosed":{
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检--历次综述建议 newVal: ${newVal}, oldVal: ${oldVal} `);
if(newVal != oldVal) this.dataTransOpts.refresh.sumDoctor.M++
}
},
},
};

Loading…
Cancel
Save