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) { switch (placeholder) {
case '条码号': case '条码号':
if (input.value) this.onQueryByPatientRegisterNo() if (input.value) this.onQueryByPatientRegisterNo()
input.select()
break; break;
case '档案号': case '档案号':
if (input.value) this.onQueryByPatientNo() if (input.value) this.onQueryByPatientNo()
input.select()
break; break;
case '姓名': case '姓名':
if (input.value) this.getlistinfilterByName(input.value) if (input.value) this.getlistinfilterByName(input.value)
input.select()
break; 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.medicalCenterId = this.peisid; //
this.form.customerOrgId = this.preCustomerOrgId || this.dict.personOrgId // this.form.customerOrgId = this.preCustomerOrgId || this.dict.personOrgId //
this.form.customerOrgParentId = await this.getParentCustomerOrgId(this.form.customerOrgId) // this.form.customerOrgParentId = await this.getParentCustomerOrgId(this.form.customerOrgId) //
this.dataTransOpts.refresh.register_check_asbitem.D++ //
} else { } else {
// let res = await getapi(`/api/app/patient-register/${patientRegisterId}`) // let res = await getapi(`/api/app/patient-register/${patientRegisterId}`)
let res = await postapi('/api/app/patientregister/getinfoorpatient', { patientRegisterId }) let res = await postapi('/api/app/patientregister/getinfoorpatient', { patientRegisterId })

18
src/components/patientRegister/patientRegisterQuery.vue

@ -223,14 +223,24 @@ export default {
case '预约手机号': case '预约手机号':
case '身份证号': case '身份证号':
if(input.value) this.patientRegister.query.times++; if(input.value) this.patientRegister.query.times++;
input.select()
break; 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'; import { arrayExistObj, getColorStr } from '@/utlis/proFunc';
export default { export default {
components: {}, components: {},
props: ["patientRegisterId"],
props: ["patientRegisterId","tabChoosed"],
data() { data() {
return { return {
tableData: [], tableData: [],
@ -111,12 +111,12 @@ export default {
// //
watch: { watch: {
// sumDoctor.M
// sumDoctor.M
"dataTransOpts.refresh.sumDoctor.M": { "dataTransOpts.refresh.sumDoctor.M": {
// immediate:true, // immediate:true,
handler(newVal, oldVal) { handler(newVal, oldVal) {
console.log(`watch 总检--检查明细结果 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`); 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 { export default {
components: {}, components: {},
props: ['patientRegisterId'],
props: ['patientRegisterId','tabChoosed'],
data() { data() {
return { return {
data: { data: {
@ -99,7 +99,7 @@ export default {
// immediate:true, // immediate:true,
handler(newVal, oldVal) { handler(newVal, oldVal) {
console.log(`watch 总检--检查状态汇总 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.patientRegisterId}`); 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'; import { arrayExistObj } from '@/utlis/proFunc';
export default { export default {
components: {}, components: {},
props: ["patientId"],
props: ["patientId","tabChoosed"],
data() { data() {
return { return {
tableData: [], // tableData: [], //
@ -96,7 +96,7 @@ export default {
// immediate:true, // immediate:true,
handler(newVal, oldVal) { handler(newVal, oldVal) {
console.log(`watch 总检--历次综述建议 newVal: ${newVal}, oldVal: ${oldVal} patientId: ${this.patientId}`); 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'; import { arrayExistObj, getColorStr } from '@/utlis/proFunc';
export default { export default {
components: {}, components: {},
props: ["patientId"],
props: ["patientId","tabChoosed"],
data() { data() {
return { return {
RegisterCheckList: [], RegisterCheckList: [],
@ -240,8 +240,8 @@ export default {
"dataTransOpts.refresh.sumDoctor.M": { "dataTransOpts.refresh.sumDoctor.M": {
// immediate:true, // immediate:true,
handler(newVal, oldVal) { 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'; import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from '../../utlis/proFunc';
export default { export default {
components: {}, components: {},
props: ["patientRegisterId"],
props: ["patientRegisterId","tabChoosed"],
data() { data() {
return { return {
pagePriv: { pagePriv: {
@ -431,6 +431,7 @@ export default {
summaryList.push({ id: `summary_${i}`, summaryTitle: ' ', details }) summaryList.push({ id: `summary_${i}`, summaryTitle: ' ', details })
}); });
this.sumDoctorCheck.summaryList = deepCopy(summaryList) this.sumDoctorCheck.summaryList = deepCopy(summaryList)
// //
setTimeout(() => { setTimeout(() => {
this.sumDoctorCheck.summaryList = deepCopy(res.data); this.sumDoctorCheck.summaryList = deepCopy(res.data);
@ -879,7 +880,7 @@ export default {
// immediate:true, // immediate:true,
handler(newVal, oldVal) { handler(newVal, oldVal) {
console.log(`watch 总检--综述建议 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`); 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 }, // 角色对应的菜单 role_menu_info: { S: 0, M: 0 }, // 角色对应的菜单
sum_diagnosis: { 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) //表当前数据(单条记录 S--single)
tableS: { tableS: {

6
src/utlis/proApi.js

@ -61,10 +61,10 @@ function photoParse(photo) {
//console.log(sysConfig,photo) //console.log(sysConfig,photo)
let lphoto = '' //data:image、UpLoad/、/pic/Photo.jpg let lphoto = '' //data:image、UpLoad/、/pic/Photo.jpg
if (!photo) return '/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 lphoto = photo
} else {
lphoto = sysConfig.apiurl + '/' + photo + '?' + new Date().getTime()
} }
//console.log(lphoto) //console.log(lphoto)
return lphoto return lphoto

24
src/views/doctorCheck/sumDoctorCheck.vue

@ -28,25 +28,27 @@
<SumPREdit /> <SumPREdit />
<!-- 检查情况 --> <!-- 检查情况 -->
<div style="margin-top: -6px;"> <div style="margin-top: -6px;">
<SumAsbItemStatus :patientRegisterId="dataTransOpts.tableS.patient_register.id" />
<SumAsbItemStatus :patientRegisterId="dataTransOpts.tableS.patient_register.id" :tabChoosed="tabChoosed"/>
</div> </div>
</div> </div>
</el-tab-pane> </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>
<!-- <!--
<el-tab-pane label="危急值" name="3"> </el-tab-pane> <el-tab-pane label="危急值" name="3"> </el-tab-pane>
<el-tab-pane label="项目对比" name="4"> <el-tab-pane label="项目对比" name="4">
<SumItemsType :patientId="dataTransOpts.tableS.patient_register.patientId" /> <SumItemsType :patientId="dataTransOpts.tableS.patient_register.patientId" />
</el-tab-pane> </el-tab-pane>
-->
-->
<el-tab-pane label="历次结果" name="5"> <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>
<el-tab-pane label="历次综述" name="6"> <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-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
@ -221,11 +223,19 @@ export default {
console.log("dict", this.dict); console.log("dict", this.dict);
}, },
}, },
//() //()
watch: { 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