|
@@ -5,32 +5,32 @@
|
5
|
5
|
</div>
|
6
|
6
|
<div class="app-container" style="display:flex;flex: 1;padding: 20px 20px 0px 20px;">
|
7
|
7
|
<div class="mainLeft">
|
8
|
|
- <!--<div class="mainCell" style="justify-content: space-between;">-->
|
9
|
|
- <!--<p>未就诊:<span>1</span>人</p>-->
|
10
|
|
- <!--<p>已就诊:<span>0</span>人</p>-->
|
11
|
|
- <!--</div>-->
|
12
|
|
- <!--<div class="mainCell">-->
|
13
|
|
- <!--<el-radio-group v-model="radio" @change="changeRadio">-->
|
14
|
|
- <!--<el-radio :label=1>未就诊</el-radio>-->
|
15
|
|
- <!--<el-radio :label=2>已就诊</el-radio>-->
|
16
|
|
- <!--<el-radio :label=3>全部</el-radio>-->
|
17
|
|
- <!--</el-radio-group>-->
|
18
|
|
- <!--</div>-->
|
|
8
|
+ <div class="mainCell" style="justify-content: space-between;">
|
|
9
|
+ <p>未就诊:<span>1</span>人</p>
|
|
10
|
+ <p>已就诊:<span>0</span>人</p>
|
|
11
|
+ </div>
|
|
12
|
+ <div class="mainCell">
|
|
13
|
+ <el-radio-group v-model="radio" @change="changeRadio">
|
|
14
|
+ <el-radio :label=1>未就诊</el-radio>
|
|
15
|
+ <el-radio :label=2>已就诊</el-radio>
|
|
16
|
+ <el-radio :label=3>全部</el-radio>
|
|
17
|
+ </el-radio-group>
|
|
18
|
+ </div>
|
19
|
19
|
<div class="mainCell" style="margin-bottom:10px;">
|
20
|
20
|
<el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
|
21
|
21
|
<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">
|
22
|
22
|
搜索
|
23
|
23
|
</el-button>
|
24
|
24
|
</div>
|
25
|
|
- <div style="flex:1;overflow-y:auto;">
|
26
|
|
- <el-table :data="patientTableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
|
|
25
|
+ <div>
|
|
26
|
+ <el-table :data="patientTableData" :height="tableHeight" border style="width: 100%;" :row-style="{ color: '#303133' }"
|
27
|
27
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
28
|
28
|
highlight-current-row ref="tab"
|
29
|
29
|
@current-change="handleCurrentChange">
|
30
|
|
- <el-table-column align="center" prop="name" label="患者姓名">
|
|
30
|
+ <el-table-column align="center" prop="name" label="姓名" wdith='89'>
|
31
|
31
|
<template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template>
|
32
|
32
|
</el-table-column>
|
33
|
|
- <el-table-column align="center" prop="name" label="就诊号" width="90">
|
|
33
|
+ <el-table-column align="center" prop="name" label="就诊号" width="110">
|
34
|
34
|
<template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}</template>
|
35
|
35
|
</el-table-column>
|
36
|
36
|
</el-table>
|
|
@@ -229,6 +229,8 @@
|
229
|
229
|
{ path: false, name: '门诊收费' },
|
230
|
230
|
{ path: false, name: '门诊收费管理' }
|
231
|
231
|
],
|
|
232
|
+ tableHeight:'',
|
|
233
|
+ fullHeight: document.documentElement.clientHeight,
|
232
|
234
|
activeName: 'first',
|
233
|
235
|
info: {},
|
234
|
236
|
curPrescriptions: {},
|
|
@@ -259,6 +261,8 @@
|
259
|
261
|
}
|
260
|
262
|
},
|
261
|
263
|
created() {
|
|
264
|
+ let tableHeight = document.body.clientHeight - 263
|
|
265
|
+ this.tableHeight = tableHeight
|
262
|
266
|
var nowDate = new Date()
|
263
|
267
|
var nowYear = nowDate.getFullYear()
|
264
|
268
|
var nowMonth = nowDate.getMonth() + 1
|
|
@@ -631,6 +635,29 @@
|
631
|
635
|
}
|
632
|
636
|
})
|
633
|
637
|
}
|
|
638
|
+ },
|
|
639
|
+ mounted(){
|
|
640
|
+ const that = this
|
|
641
|
+ window.onresize = () => {
|
|
642
|
+ return (() => {
|
|
643
|
+ window.fullHeight = document.documentElement.clientHeight
|
|
644
|
+ that.fullHeight = window.fullHeight
|
|
645
|
+ })()
|
|
646
|
+ }
|
|
647
|
+ },
|
|
648
|
+ watch: {
|
|
649
|
+ fullHeight (val) {
|
|
650
|
+ if(!this.timer) {
|
|
651
|
+ this.fullHeight = val
|
|
652
|
+ let tableHeight = val - 263
|
|
653
|
+ this.tableHeight = tableHeight
|
|
654
|
+ this.timer = true
|
|
655
|
+ let that = this
|
|
656
|
+ setTimeout(function (){
|
|
657
|
+ that.timer = false
|
|
658
|
+ },400)
|
|
659
|
+ }
|
|
660
|
+ }
|
634
|
661
|
}
|
635
|
662
|
}
|
636
|
663
|
</script>
|