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

2
src/views/document/index.vue

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

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

@ -347,18 +347,16 @@
await this.home.updateAidCode({ await this.home.updateAidCode({
codeAndAnswerList codeAndAnswerList
}, false) }, false)
this.$emit('next')
}else{ }else{
// const res = await updateFirstAid({
// codeAndAnswerList,
// ...params
// })
const res = await saveAidRecord({ const res = await saveAidRecord({
codeAndAnswerList, codeAndAnswerList,
...params ...params
}); });
this.$message.success(res.msg) 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, codeAndAnswerList,
finishStatus finishStatus
}, false) }, false)
if(finishStatus === 1) {
// console.log('firstinfo', firstAidId)
this.$emit('next', {firstAidId})
}
}else{ }else{
console.log('3902390293023', this.patientId)
// var res = await updateFirstAid(params)
// const res = await updateFirstAid({
// firstAidId,
// codeAndAnswerList,
// ...params
// })
const res = await saveAidRecord({ const res = await saveAidRecord({
firstAidId, firstAidId,
codeAndAnswerList, codeAndAnswerList,
...params ...params
}) })
this.$message.success(res.msg) this.$message.success(res.msg)
} this.$emit('ok')
// await this.home.updateAidCode({
// ...params,
// codeAndAnswerList,
// finishStatus
// },
// false
// );
// this.$message.success("")
if(finishStatus === 1) {
console.log('firstinfo', firstAidId)
this.$emit('next', {firstAidId})
// this.setPatientData({})
} }
}); });

Loading…
Cancel
Save