diff --git a/src/components/sumDoctorCheck/CheckDetails.vue b/src/components/sumDoctorCheck/CheckDetails.vue index 546f956..8ebf1c9 100644 --- a/src/components/sumDoctorCheck/CheckDetails.vue +++ b/src/components/sumDoctorCheck/CheckDetails.vue @@ -60,8 +60,10 @@ export default { created() { }, //挂载完成 - mounted() { - + mounted() { + if(this.sumDoctorCheck.sumPREdit.id){ + this.CheckDetails(this.sumDoctorCheck.sumPREdit.id); + } }, computed: { @@ -99,7 +101,7 @@ export default { "sumDoctorCheck.sumPREdit.id"(newVal, oldVal) { console.log("watch sumDoctorCheck.sumPREdit.id newVal:", newVal, " oldVal:", oldVal); if (newVal != oldVal && newVal != '') { - this.CheckDetails(newVal) + this.CheckDetails(newVal); } }, }, diff --git a/src/components/sumDoctorCheck/SumAsbItemStatus.vue b/src/components/sumDoctorCheck/SumAsbItemStatus.vue index 79c9e7a..2e2e07b 100644 --- a/src/components/sumDoctorCheck/SumAsbItemStatus.vue +++ b/src/components/sumDoctorCheck/SumAsbItemStatus.vue @@ -2,26 +2,29 @@
未检组合项目:
-
- {{item}} +
+ {{ item }}
弃检组合项目:
- {{item}} + {{ item }}
组合项目已检但无值的明细项目:
- {{item}} + {{ item }}
组合项目已检但弃检的明细项目:
- {{item}} + {{ item }}
@@ -33,35 +36,38 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api"; export default { components: {}, - props:['patientRegisterId'], + props: ['patientRegisterId'], data() { return { - data:{ - unCheckedAsbitem:['未检项目1','未检项目2','未检项目3','未检项目4','未检项目5','未检项目6','未检项目7','未检项目8'], - checkedAsbitem:['弃检1','弃检2'], - checkedNullValueItem:['无果1','无果2'], - checkedGiveUpItem:['弃检明细1','弃检明细2'], - } + data: { + unCheckedAsbitem: [],//['未检项目1','未检项目2','未检项目3','未检项目4','未检项目5','未检项目6','未检项目7','未检项目8'], + giveUpAsbitem: [],//['弃检1','弃检2'], + checkedNullValueItem: [],//['无果1','无果2'], + checkedGiveUpItem: [],//['弃检明细1','弃检明细2'], + } }; }, - created() {}, + created() { }, //挂载完成 mounted() { - if(this.patientRegisterId){ + if (this.patientRegisterId) { this.getSumAsbItemStatus(this.patientRegisterId); } }, computed: { - ...mapState(["dict", "doctorCheck","sumDoctorCheck"]), + ...mapState(["dict", "doctorCheck", "sumDoctorCheck"]), }, - methods: { - getSumAsbItemStatus(PatientRegisterId){ - getapi(`/api/app/patientregister/getpatientregisteritemstatus?PatientRegisterId=${PatientRegisterId}`).then(res =>{ - if(res.code != -1){ - this.data = res.data; + methods: { + getSumAsbItemStatus(PatientRegisterId) { + getapi(`/api/app/patientregister/getpatientregisteritemstatus?PatientRegisterId=${PatientRegisterId}`).then(res => { + if (res.code != -1) { + this.data.unCheckedAsbitem = res.data.unCheckedAsbitem; + this.data.giveUpAsbitem = res.data.giveUpAsbitem; + this.data.checkedNullValueItem = res.data.checkedNullValueItem; + this.data.checkedGiveUpItem = res.data.checkedGiveUpItem; } }); } @@ -69,11 +75,11 @@ export default { //监听事件 watch: { - //检查项目切换 + //人员ID切换 "patientRegisterId"(newVal, oldVal) { console.log("watch patientRegisterId newVal:", newVal, " oldVal:", oldVal); if (newVal != oldVal && newVal != '') { - this.getSumAsbItemStatus(newVal); + this.getSumAsbItemStatus(newVal); } }, }, @@ -82,18 +88,19 @@ export default { + height: 52px; + margin-top: 2px; + font-size: 8x; +} diff --git a/src/components/sumDoctorCheck/SumHistory.vue b/src/components/sumDoctorCheck/SumHistory.vue index eccfb62..2f0c221 100644 --- a/src/components/sumDoctorCheck/SumHistory.vue +++ b/src/components/sumDoctorCheck/SumHistory.vue @@ -39,7 +39,9 @@ export default { //挂载完成 mounted() { - + if(this.sumDoctorCheck.sumPREdit.patientId){ + this.SumHistory(this.sumDoctorCheck.sumPREdit.patientId); + } }, computed: { diff --git a/src/components/sumDoctorCheck/SumItems.vue b/src/components/sumDoctorCheck/SumItems.vue index 87af5dc..5a49be5 100644 --- a/src/components/sumDoctorCheck/SumItems.vue +++ b/src/components/sumDoctorCheck/SumItems.vue @@ -41,7 +41,9 @@ export default { //挂载完成 mounted() { - + if(this.sumDoctorCheck.sumPREdit.patientId){ + this.registerCheckList(this.sumDoctorCheck.sumPREdit.patientId); + } }, computed: { diff --git a/src/components/sumDoctorCheck/SumItemsType.vue b/src/components/sumDoctorCheck/SumItemsType.vue index 2d495ad..99f5b22 100644 --- a/src/components/sumDoctorCheck/SumItemsType.vue +++ b/src/components/sumDoctorCheck/SumItemsType.vue @@ -29,7 +29,9 @@ export default { //挂载完成 mounted() { - + if(this.sumDoctorCheck.sumPREdit.patientId){ + this.SumItems(this.sumDoctorCheck.sumPREdit.patientId); + } }, computed: { diff --git a/src/components/sumDoctorCheck/SumSug.vue b/src/components/sumDoctorCheck/SumSug.vue index 7e08275..3123eaf 100644 --- a/src/components/sumDoctorCheck/SumSug.vue +++ b/src/components/sumDoctorCheck/SumSug.vue @@ -90,7 +90,12 @@ export default { //挂载完成 mounted() { this.rowDrop(); - this.rowDropSuggestion() + this.rowDropSuggestion(); + + if(this.sumDoctorCheck.sumPREdit.id){ + this.summaryList(this.sumDoctorCheck.sumPREdit.id); + this.suggestionList(this.sumDoctorCheck.sumPREdit.id); + } }, computed: {