|
@@ -1,27 +1,32 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="patient-container">
|
3
|
|
- <!-- <fast-patients-sidebar
|
4
|
|
- :id="patientID"
|
5
|
|
- v-on:patient="patientInfoClick()"
|
6
|
|
- v-on:inspection="inspectionClick()"
|
7
|
|
- ></fast-patients-sidebar> -->
|
8
|
|
- <!-- <fast-upload-detail v-if="isShow == 1" :id="patientID" :is-edit='true' :class='panelClass'></fast-upload-detail> -->
|
|
3
|
+
|
9
|
4
|
<el-container>
|
10
|
5
|
<div style="width:170px">
|
11
|
|
- <el-form :inline="true" :model="listQuery">
|
|
6
|
+ <el-form :inline="true" @submit.native.prevent>
|
12
|
7
|
<el-form-item label style="margin-bottom:0;">
|
13
|
|
- <el-input v-model.trim="searchVal" placeholder="姓名/透析号" style="width:70%"></el-input>
|
|
8
|
+ <el-input v-model.trim="searchVal" @keyup.enter.native='onSearch' placeholder="姓名/透析号" style="width:70%"></el-input>
|
14
|
9
|
<el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>
|
15
|
10
|
</el-form-item>
|
16
|
11
|
</el-form>
|
17
|
12
|
<div style="width:170px">
|
18
|
13
|
<div class="tableTitle">患者列表</div>
|
19
|
|
- <el-table :data="tableData" border style="width: 100%;" height="500">
|
20
|
|
- <el-table-column prop="date" label="日期" width="80"></el-table-column>
|
21
|
|
- <el-table-column prop="name" label="姓名" width="90"></el-table-column>
|
|
14
|
+ <el-table :data="patientData" border style="width: 100%;" height="500" @row-click='handleSelect'>
|
|
15
|
+ <el-table-column prop="date" label="透析号" width="80" align="center">
|
|
16
|
+ <template slot-scope="scope">
|
|
17
|
+ {{ scope.row.dialysis_no }}
|
|
18
|
+ </template>
|
|
19
|
+ </el-table-column>
|
|
20
|
+ <el-table-column prop="name" label="姓名" width="90" align="center"></el-table-column>
|
22
|
21
|
</el-table>
|
23
|
22
|
</div>
|
24
|
23
|
</div>
|
|
24
|
+ <!-- <fast-patients-sidebar
|
|
25
|
+ :id="patientID"
|
|
26
|
+ v-on:patient="patientInfoClick()"
|
|
27
|
+ v-on:inspection="inspectionClick()"
|
|
28
|
+ ></fast-patients-sidebar> -->
|
|
29
|
+ <!-- <fast-upload-detail v-if="isShow == 1" :id="patientID" :is-edit='true' :class='panelClass'></fast-upload-detail> -->
|
25
|
30
|
|
26
|
31
|
<div style="margin-left:20px;flex:1;" >
|
27
|
32
|
<div class="cell clearfix">
|
|
@@ -36,8 +41,8 @@
|
36
|
41
|
</ul>
|
37
|
42
|
</div>
|
38
|
43
|
</div>
|
39
|
|
- <one ref="one" v-if="wayType == 0" :patientID="patientID" :is-edit='true' style="margin-top:28px;" @></one>
|
40
|
|
- <two ref="two" v-if="wayType == 1" :id="patientID" :is-edit="true" style="margin-top:28px;"></two>
|
|
44
|
+ <one ref="one" v-show="wayType == 0" :patientID="patientID" :is-edit='true' style="margin-top:28px;" @></one>
|
|
45
|
+ <two ref="two" v-show="wayType == 1 && patientID != 0" :id="patientID" :is-edit="true" style="margin-top:28px;"></two>
|
41
|
46
|
</div>
|
42
|
47
|
</el-container>
|
43
|
48
|
</div>
|
|
@@ -68,62 +73,14 @@
|
68
|
73
|
id: 0
|
69
|
74
|
},
|
70
|
75
|
isShow: 1,
|
71
|
|
- tableData: [
|
72
|
|
- {
|
73
|
|
- date: "2016",
|
74
|
|
- name: "王小虎"
|
75
|
|
- },
|
76
|
|
- {
|
77
|
|
- date: "2016",
|
78
|
|
- name: "王小虎"
|
79
|
|
- },
|
80
|
|
- {
|
81
|
|
- date: "2016",
|
82
|
|
- name: "王小虎"
|
83
|
|
- },
|
84
|
|
- {
|
85
|
|
- date: "2016",
|
86
|
|
- name: "王小虎"
|
87
|
|
- },
|
88
|
|
- {
|
89
|
|
- date: "2016",
|
90
|
|
- name: "王小虎"
|
91
|
|
- },
|
92
|
|
- {
|
93
|
|
- date: "2016",
|
94
|
|
- name: "王小虎"
|
95
|
|
- },
|
96
|
|
- {
|
97
|
|
- date: "2016",
|
98
|
|
- name: "王小虎"
|
99
|
|
- },
|
100
|
|
- {
|
101
|
|
- date: "2016",
|
102
|
|
- name: "王小虎"
|
103
|
|
- },
|
104
|
|
- {
|
105
|
|
- date: "2016",
|
106
|
|
- name: "王小虎"
|
107
|
|
- },
|
108
|
|
- {
|
109
|
|
- date: "2016",
|
110
|
|
- name: "王小虎"
|
111
|
|
- },
|
112
|
|
- {
|
113
|
|
- date: "2016",
|
114
|
|
- name: "王小虎"
|
115
|
|
- },
|
116
|
|
- {
|
117
|
|
- date: "2016",
|
118
|
|
- name: "王小虎"
|
119
|
|
- }
|
120
|
|
- ],
|
121
|
76
|
searchVal:'',
|
122
|
77
|
way: [
|
123
|
78
|
{ value: 0, label: "基本信息", state: 0 },
|
124
|
79
|
{ value: 1, label: "检验检查", state: 1 },
|
125
|
80
|
],
|
126
|
81
|
wayType: 0,
|
|
82
|
+ patientsList:[],
|
|
83
|
+ patientData:[]
|
127
|
84
|
}
|
128
|
85
|
},
|
129
|
86
|
created() {
|
|
@@ -144,6 +101,7 @@
|
144
|
101
|
fetchAllList().then(response => {
|
145
|
102
|
if (response.data.state == 1) {
|
146
|
103
|
this.patientsList = response.data.data.patients
|
|
104
|
+ this.patientData = response.data.data.patients
|
147
|
105
|
if (type == 1) {
|
148
|
106
|
this.patientID = this.patientsList[0].id
|
149
|
107
|
|
|
@@ -233,6 +191,26 @@
|
233
|
191
|
var monthEndDate = new Date(nowYear, myMonth + 1, 1)
|
234
|
192
|
var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
|
235
|
193
|
return days
|
|
194
|
+ },
|
|
195
|
+ handleSelect(val) {
|
|
196
|
+ this.$router.push("/upload/fast?id=" + val.id);
|
|
197
|
+ },
|
|
198
|
+ onSearch(){
|
|
199
|
+ if(this.searchVal != ''){
|
|
200
|
+ let arr = []
|
|
201
|
+ this.patientsList.map(item => {
|
|
202
|
+
|
|
203
|
+ if(item.name.includes(this.searchVal)){
|
|
204
|
+ console.log('hhhh')
|
|
205
|
+ arr.push(item)
|
|
206
|
+ }
|
|
207
|
+ })
|
|
208
|
+ console.log(arr)
|
|
209
|
+ this.patientData = arr
|
|
210
|
+ }else if(this.searchVal == ''){
|
|
211
|
+ this.patientData = this.patientsList
|
|
212
|
+ }
|
|
213
|
+
|
236
|
214
|
}
|
237
|
215
|
|
238
|
216
|
}
|