|
@@ -3,7 +3,7 @@
|
|
|
<div style="display: flex; width: 100%; height: 100%;">
|
|
|
<div style="width: 330px;height: 100%; padding: 0 12px; border-right: 1px solid lightgray">
|
|
|
<div class="flex-header">
|
|
|
- <el-input v-model="patNo" placeholder="住院号" clearable style="width: 160px"></el-input>
|
|
|
+ <el-input v-model="currentPatNo" placeholder="住院号" clearable style="width: 160px"></el-input>
|
|
|
<el-button type="primary" icon="Search" style="margin-left: 20px" @click="fetchOverview">查询</el-button>
|
|
|
</div>
|
|
|
<div style="width: 336px">
|
|
@@ -144,6 +144,8 @@ export default {
|
|
|
const chargeListMap = ref({})
|
|
|
const sumsMap = ref({})
|
|
|
|
|
|
+ const currentPatNo = ref('')
|
|
|
+
|
|
|
const chargeListBoxStyle = {
|
|
|
height: window.innerHeight - 180 + 'px',
|
|
|
width: '100%',
|
|
@@ -151,7 +153,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
const fetchOverview = () => {
|
|
|
- if (!props.patNo) {
|
|
|
+ if (!currentPatNo.value) {
|
|
|
ElMessage({
|
|
|
message: '住院号不能为空!',
|
|
|
type: 'warning',
|
|
@@ -160,7 +162,7 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- selectPatOverviews(props.patNo).then(res => {
|
|
|
+ selectPatOverviews(currentPatNo.value).then(res => {
|
|
|
patList.value = res
|
|
|
})
|
|
|
}
|
|
@@ -222,6 +224,7 @@ export default {
|
|
|
onMounted(() => {
|
|
|
initLodop()
|
|
|
if (props.patNo && props.times) {
|
|
|
+ currentPatNo.value = props.patNo
|
|
|
selectPatOverviews(props.patNo).then(res => {
|
|
|
patList.value = res
|
|
|
})
|
|
@@ -232,6 +235,7 @@ export default {
|
|
|
ctx.emit('close')
|
|
|
}
|
|
|
return {
|
|
|
+ currentPatNo,
|
|
|
tableHeight,
|
|
|
patList,
|
|
|
briefPatInfo,
|