dev
This commit is contained in:
parent
d9dac5d824
commit
57486f8c6a
|
|
@ -19,6 +19,7 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="诊断">
|
||||
<DiagnosisSearchInput
|
||||
ref="diagnosisSearchRef"
|
||||
:disabled="disabled"
|
||||
:request-api="diagnosisSearchApi"
|
||||
:show-config="diagnosisShowConfig"
|
||||
|
|
@ -59,7 +60,7 @@
|
|||
</Panel>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import {computed, ref} from "vue";
|
||||
import {computed, nextTick, ref} from "vue";
|
||||
import {
|
||||
mainAppealList,
|
||||
nowMedicalHistoryList,
|
||||
|
|
@ -107,7 +108,13 @@ const diagnosisSelect = (list: any) => {
|
|||
formDate.value.diagnosisDetail = JSON.stringify(list)
|
||||
formDate.value.diagnosisSummary = diagnosisNames
|
||||
}
|
||||
defineExpose({diagnosisSelect})
|
||||
const diagnosisSearchRef= ref()
|
||||
const initDiagnosisSearch = (list:any,nList:any)=>{
|
||||
nextTick(()=>{
|
||||
diagnosisSearchRef.value?.init(list,nList);
|
||||
})
|
||||
}
|
||||
defineExpose({initDiagnosisSearch})
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.content {
|
||||
|
|
|
|||
|
|
@ -159,9 +159,10 @@ watch([() => goodsList.value, itemList], ([newGoodsList, newItemList]) => {
|
|||
const caseRef= ref<any>("")
|
||||
const copyForm=(item:any) => {
|
||||
formData.value = item.diagnosisMedicalRecord
|
||||
const diagnosisNames =JSON.parse(item.diagnosisMedicalRecord.diagnosisDetail)
|
||||
const diagnosisList =JSON.parse(item.diagnosisMedicalRecord.diagnosisDetail)
|
||||
const nList = item.diagnosisMedicalRecord.diagnosisSummary.split(',')
|
||||
nextTick(()=>{
|
||||
caseRef.value?.diagnosisSelect(diagnosisNames)
|
||||
caseRef.value?.initDiagnosisSearch(diagnosisList,nList)
|
||||
})
|
||||
}
|
||||
const copyItemList=(item:any) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue