Browse Source

20250302

master
nicky 5 months ago
parent
commit
efb8668f6f
  1. 7
      src/views/document/components/detail.vue
  2. 2
      src/views/document/index.vue
  3. 8
      src/views/thrombolysis/components/throm-result-baseInfo.vue
  4. 26
      src/views/thrombolysis/components/throm-result-firstInfo.vue

7
src/views/document/components/detail.vue

@ -3,8 +3,8 @@
@cancel="close">
<a-card :tab-list="tabList" :active-tab-key="activeKey" @tabChange="key => onTabChange(key)">
<div class="doc-detail-content" >
<throm-result-baseInfo v-if="activeKey == 'base'" :patientId="patientId"></throm-result-baseInfo>
<throm-result-firstInfo v-else-if="activeKey == 'first'" :patientId="patientId"></throm-result-firstInfo>
<throm-result-baseInfo v-if="activeKey == 'base'" :patientId="patientId" @ok="handleOk"></throm-result-baseInfo>
<throm-result-firstInfo v-else-if="activeKey == 'first'" :patientId="patientId" @ok="handleOk"></throm-result-firstInfo>
</div>
</a-card>
@ -56,6 +56,9 @@
onTabChange(key) {
this.activeKey = key;
},
handleOk(){
this.$emit('ok')
}
}
}
</script>

2
src/views/document/index.vue

@ -46,7 +46,7 @@
<DocInspect ref="docInspect"></DocInspect>
<PatientDdit ref='patientddit' :patientId="patientId" @on-success="onSearch(pageNum)" :carList="carList"
:carNo="carNo"></PatientDdit>
<doc-detail ref='patientDetail'></doc-detail>
<doc-detail ref='patientDetail' @ok="getData"></doc-detail>
</div>
</template>

8
src/views/thrombolysis/components/throm-result-baseInfo.vue

@ -347,18 +347,16 @@
await this.home.updateAidCode({
codeAndAnswerList
}, false)
this.$emit('next')
}else{
// const res = await updateFirstAid({
// codeAndAnswerList,
// ...params
// })
const res = await saveAidRecord({
codeAndAnswerList,
...params
});
this.$message.success(res.msg)
this.$emit('ok')
}
this.$emit('next')
})
})
},

26
src/views/thrombolysis/components/throm-result-firstInfo.vue

@ -555,33 +555,19 @@
codeAndAnswerList,
finishStatus
}, false)
if(finishStatus === 1) {
// console.log('firstinfo', firstAidId)
this.$emit('next', {firstAidId})
}
}else{
console.log('3902390293023', this.patientId)
// var res = await updateFirstAid(params)
// const res = await updateFirstAid({
// firstAidId,
// codeAndAnswerList,
// ...params
// })
const res = await saveAidRecord({
firstAidId,
codeAndAnswerList,
...params
})
this.$message.success(res.msg)
}
// await this.home.updateAidCode({
// ...params,
// codeAndAnswerList,
// finishStatus
// },
// false
// );
// this.$message.success("")
if(finishStatus === 1) {
console.log('firstinfo', firstAidId)
this.$emit('next', {firstAidId})
// this.setPatientData({})
this.$emit('ok')
}
});

Loading…
Cancel
Save