|
@ -2,28 +2,37 @@ |
|
|
<div class="thrombolysis-container"> |
|
|
<div class="thrombolysis-container"> |
|
|
|
|
|
|
|
|
<div class="thrombolysis-box"> |
|
|
<div class="thrombolysis-box"> |
|
|
<a-steps v-model="current" type="navigation" size="small" :style="stepStyle"> |
|
|
<a-steps v-model="current" type="navigation" size="small" :style="stepStyle" @change="handleClickStep"> |
|
|
<a-step status="finish" title="创建患者" disabled /> |
|
|
<a-step status="finish" title="创建患者" disabled /> |
|
|
<a-step :status="current == 1 ? 'process' : current > 1 ? 'finish' : 'wait'" title="溶栓前" :disabled="!!firstAidId"> |
|
|
<a-step :status="current == 1 ? 'process' : current > 1 ? 'finish' : 'wait'" title="溶栓前" |
|
|
|
|
|
:disabled="!!firstAidId"> |
|
|
</a-step> |
|
|
</a-step> |
|
|
<template v-if="isrs && !isjr"> |
|
|
<template v-if="isrs && !isjr"> |
|
|
<a-step :status="current == 2 ? 'process' : current > 2 ? 'finish' : 'wait'" title="溶栓中" :disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 2 ? 'process' : current > 2 ? 'finish' : 'wait'" title="溶栓中" |
|
|
<a-step :status="current == 3 ? 'process' : current > 3 ? 'finish' : 'wait'" title="查看结果" :disabled="!!firstAidId" /> |
|
|
:disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 4 ? 'process' : current > 4 ? 'finish' : 'wait'" title="报告" disabled /> |
|
|
<a-step :status="current == 3 ? 'process' : current > 3 ? 'finish' : 'wait'" title="查看结果" |
|
|
|
|
|
:disabled="!!firstAidId" /> |
|
|
|
|
|
<a-step :status="current == 4 ? 'process' : current > 4 ? 'finish' : 'wait'" title="报告" disabled /> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="!isrs && isjr"> |
|
|
<template v-else-if="!isrs && isjr"> |
|
|
<a-step :status="current == 2 ? 'process' : current > 2 ? 'finish' : 'wait'" title="介入" :disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 2 ? 'process' : current > 2 ? 'finish' : 'wait'" title="介入" |
|
|
<a-step :status="current == 3 ? 'process' : current > 3 ? 'finish' : 'wait'" title="查看结果" :disabled="!!firstAidId" /> |
|
|
:disabled="!!firstAidId" /> |
|
|
|
|
|
<a-step :status="current == 3 ? 'process' : current > 3 ? 'finish' : 'wait'" title="查看结果" |
|
|
|
|
|
:disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 4 ? 'process' : current > 4 ? 'finish' : 'wait'" title="报告" disabled /> |
|
|
<a-step :status="current == 4 ? 'process' : current > 4 ? 'finish' : 'wait'" title="报告" disabled /> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="!isrs && !isjr"> |
|
|
<template v-else-if="!isrs && !isjr"> |
|
|
<a-step :status="current == 2 ? 'process' : current > 2 ? 'finish' : 'wait'" title="查看结果" :disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 2 ? 'process' : current > 2 ? 'finish' : 'wait'" title="查看结果" |
|
|
|
|
|
:disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 3 ? 'process' : current > 3 ? 'finish' : 'wait'" title="报告" disabled /> |
|
|
<a-step :status="current == 3 ? 'process' : current > 3 ? 'finish' : 'wait'" title="报告" disabled /> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<a-step :status="current == 2 ? 'process' : current > 2 ? 'finish' : 'wait'" title="溶栓中" :disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 2 ? 'process' : current > 2 ? 'finish' : 'wait'" title="溶栓中" |
|
|
<a-step :status="current == 3 ? 'process' : current > 3 ? 'finish' : 'wait'" title="介入" :disabled="!!firstAidId" /> |
|
|
:disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 4 ? 'process' : current > 4 ? 'finish' : 'wait'" title="查看结果" :disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 3 ? 'process' : current > 3 ? 'finish' : 'wait'" title="介入" |
|
|
|
|
|
:disabled="!!firstAidId" /> |
|
|
|
|
|
<a-step :status="current == 4 ? 'process' : current > 4 ? 'finish' : 'wait'" title="查看结果" |
|
|
|
|
|
:disabled="!!firstAidId" /> |
|
|
<a-step :status="current == 5 ? 'process' : current > 5 ? 'finish' : 'wait'" title="报告" disabled /> |
|
|
<a-step :status="current == 5 ? 'process' : current > 5 ? 'finish' : 'wait'" title="报告" disabled /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -75,10 +84,10 @@ |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapState('patient', ['patientData']), |
|
|
...mapState('patient', ['patientData']), |
|
|
isrs() { |
|
|
isrs() { |
|
|
return !(this.patientData?.recordValDict?.['JBXX-ISRS']?.[0]?.answer[0] == '否') |
|
|
return !(this.patientData?.recordValDict?.['JBXX-ISRS']?.[0]?.answer[0] == '否') |
|
|
}, |
|
|
}, |
|
|
isjr() { |
|
|
isjr() { |
|
|
return !(this.patientData?.recordValDict?.['JBXX-ISJR']?.[0]?.answer[0] == '否') |
|
|
return !(this.patientData?.recordValDict?.['JBXX-ISJR']?.[0]?.answer[0] == '否') |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -99,10 +108,10 @@ |
|
|
handler(to, o) { |
|
|
handler(to, o) { |
|
|
const cuIndex = to.query?.cu |
|
|
const cuIndex = to.query?.cu |
|
|
const chIndex = to.query?.ch |
|
|
const chIndex = to.query?.ch |
|
|
if(!!cuIndex && !isNaN(cuIndex) && !isNaN(Number(cuIndex))){ |
|
|
if (!!cuIndex && !isNaN(cuIndex) && !isNaN(Number(cuIndex))) { |
|
|
this.current = Number(to.query.cu) |
|
|
this.current = Number(to.query.cu) |
|
|
} |
|
|
} |
|
|
if(!!chIndex && !isNaN(chIndex) && !isNaN(Number(chIndex))){ |
|
|
if (!!chIndex && !isNaN(chIndex) && !isNaN(Number(chIndex))) { |
|
|
this.childIndex = Number(to.query.ch) |
|
|
this.childIndex = Number(to.query.ch) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -112,10 +121,10 @@ |
|
|
next((vm) => { |
|
|
next((vm) => { |
|
|
const cuIndex = to.query?.cu |
|
|
const cuIndex = to.query?.cu |
|
|
const chIndex = to.query?.ch |
|
|
const chIndex = to.query?.ch |
|
|
if(!!cuIndex && !isNaN(cuIndex) && !isNaN(Number(cuIndex))){ |
|
|
if (!!cuIndex && !isNaN(cuIndex) && !isNaN(Number(cuIndex))) { |
|
|
vm.current = Number(to.query.cu) |
|
|
vm.current = Number(to.query.cu) |
|
|
} |
|
|
} |
|
|
if(!!chIndex && !isNaN(chIndex) && !isNaN(Number(chIndex))){ |
|
|
if (!!chIndex && !isNaN(chIndex) && !isNaN(Number(chIndex))) { |
|
|
vm.childIndex = Number(to.query.ch) |
|
|
vm.childIndex = Number(to.query.ch) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@ -124,11 +133,15 @@ |
|
|
handleNext(data) { |
|
|
handleNext(data) { |
|
|
this.firstAidId = data?.firstAidId |
|
|
this.firstAidId = data?.firstAidId |
|
|
// console.log(firstAidId) |
|
|
// console.log(firstAidId) |
|
|
this.$nextTick(()=> { |
|
|
this.$nextTick(() => { |
|
|
this.current++ |
|
|
this.current++ |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
} |
|
|
}, |
|
|
|
|
|
handleClickStep(current) { |
|
|
|
|
|
console.log('handleClickStep', current) |
|
|
|
|
|
this.home.queryAid(this.patientData?.firstAidId, false) |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
@ -149,7 +162,8 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.throm-step{ |
|
|
|
|
|
margin-right:10px !important; |
|
|
.throm-step { |
|
|
|
|
|
margin-right: 10px !important; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |