|
@@ -3,8 +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 :model-value="patNo" placeholder="住院号" @input="inputPatNo" 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">
|
|
@@ -137,7 +136,7 @@ export default {
|
|
|
default: true
|
|
|
}
|
|
|
},
|
|
|
- emits: ['close', 'update:patNo'],
|
|
|
+ emits: ['close'],
|
|
|
setup(props, ctx) {
|
|
|
const tableHeight = window.innerHeight - 72
|
|
|
const patList = ref([])
|
|
@@ -145,18 +144,16 @@ export default {
|
|
|
const chargeListMap = ref({})
|
|
|
const sumsMap = ref({})
|
|
|
|
|
|
+ const currentPatNo = ref('')
|
|
|
+
|
|
|
const chargeListBoxStyle = {
|
|
|
height: window.innerHeight - 180 + 'px',
|
|
|
width: '100%',
|
|
|
overflowY: 'scroll'
|
|
|
}
|
|
|
|
|
|
- const inputPatNo = (val) => {
|
|
|
- ctx.emits('update:patNo', val)
|
|
|
- }
|
|
|
-
|
|
|
const fetchOverview = () => {
|
|
|
- if (!props.patNo) {
|
|
|
+ if (!currentPatNo.value) {
|
|
|
ElMessage({
|
|
|
message: '住院号不能为空!',
|
|
|
type: 'warning',
|
|
@@ -165,7 +162,7 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- selectPatOverviews(props.patNo).then(res => {
|
|
|
+ selectPatOverviews(currentPatNo.value).then(res => {
|
|
|
patList.value = res
|
|
|
})
|
|
|
}
|
|
@@ -227,6 +224,7 @@ export default {
|
|
|
onMounted(() => {
|
|
|
initLodop()
|
|
|
if (props.patNo && props.times) {
|
|
|
+ currentPatNo.value = props.patNo
|
|
|
selectPatOverviews(props.patNo).then(res => {
|
|
|
patList.value = res
|
|
|
})
|
|
@@ -237,6 +235,7 @@ export default {
|
|
|
ctx.emit('close')
|
|
|
}
|
|
|
return {
|
|
|
+ currentPatNo,
|
|
|
tableHeight,
|
|
|
patList,
|
|
|
briefPatInfo,
|
|
@@ -250,7 +249,6 @@ export default {
|
|
|
selfpayUpload,
|
|
|
execPrint,
|
|
|
props,
|
|
|
- inputPatNo
|
|
|
}
|
|
|
},
|
|
|
}
|