|
@@ -43,13 +43,13 @@
|
43
|
43
|
</template>
|
44
|
44
|
</el-table-column>
|
45
|
45
|
<el-table-column align="center" prop="name" label="时间" width="100">
|
46
|
|
- <template slot-scope="scope">{{ scope.row.record_date }}</template>
|
|
46
|
+ <template slot-scope="scope">{{getTime(scope.row.record_date,"{y}-{m}-{d}")}}</template>
|
47
|
47
|
</el-table-column>
|
48
|
48
|
<el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
|
49
|
49
|
<template slot-scope="scope">{{scope.row.name }}</template>
|
50
|
50
|
</el-table-column>
|
51
|
51
|
<el-table-column align="center" prop="name" label="科室" width="80">
|
52
|
|
- <template slot-scope="scope">{{ scope.row.departments }}</template>
|
|
52
|
+ <template slot-scope="scope">{{getDepartMent(scope.row.departments)}}</template>
|
53
|
53
|
</el-table-column>
|
54
|
54
|
<el-table-column align="center" prop="name" label="挂号类型" width="90">
|
55
|
55
|
<template slot-scope="scope">
|
|
@@ -69,10 +69,10 @@
|
69
|
69
|
<template slot-scope="scope">{{ scope.row.id_card_no }}</template>
|
70
|
70
|
</el-table-column>
|
71
|
71
|
<el-table-column align="center" label="患者保险类型" width="80">
|
72
|
|
- <template slot-scope="scope">{{ scope.row.id_type }}</template>
|
|
72
|
+ <template slot-scope="scope">{{getMedicalTreatment(scope.row.medical_treatment_type)}}</template>
|
73
|
73
|
</el-table-column>
|
74
|
74
|
<el-table-column align="center" prop="name" label="医生" width="80">
|
75
|
|
- <template slot-scope="scope">{{ scope.row.admin_user_id }}</template>
|
|
75
|
+ <template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>
|
76
|
76
|
</el-table-column>
|
77
|
77
|
<el-table-column align="center" prop="name" label="挂号费" width="70">
|
78
|
78
|
<template slot-scope="scope">{{ scope.row.register_cost }}</template>
|
|
@@ -84,17 +84,18 @@
|
84
|
84
|
<template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
|
85
|
85
|
</el-table-column>
|
86
|
86
|
<el-table-column align="center" prop="name" label="操作人" width="70">
|
87
|
|
- <template slot-scope="scope">{{ $store.getters.xt_user.org.org_name }}</template>
|
|
87
|
+ <template slot-scope="scope">{{getDoctor(scope.row.admin_user_id) }}</template>
|
88
|
88
|
</el-table-column>
|
89
|
89
|
<el-table-column align="center" prop="name" label="操作" width="80">
|
90
|
90
|
<template slot-scope="scope">
|
91
|
|
- <!-- <el-button size="mini" type="primary">编辑</el-button> -->
|
92
|
|
- <span>已就诊</span>
|
|
91
|
+ <el-button size="mini" type="primary" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)" >退号</el-button>
|
|
92
|
+ <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
|
|
93
|
+ <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" :disabled="true">已就诊</el-button>
|
93
|
94
|
</template>
|
94
|
95
|
</el-table-column>
|
95
|
96
|
</el-table>
|
96
|
97
|
|
97
|
|
- <!-- <el-pagination
|
|
98
|
+ <el-pagination
|
98
|
99
|
@size-change="handleSizeChange"
|
99
|
100
|
@current-change="handleCurrentChange"
|
100
|
101
|
:page-sizes="[10, 50, 100]"
|
|
@@ -104,7 +105,7 @@
|
104
|
105
|
layout="total, sizes, prev, pager, next, jumper"
|
105
|
106
|
:total="total"
|
106
|
107
|
>
|
107
|
|
- </el-pagination> -->
|
|
108
|
+ </el-pagination>
|
108
|
109
|
</div>
|
109
|
110
|
</div>
|
110
|
111
|
</template>
|
|
@@ -112,7 +113,8 @@
|
112
|
113
|
<script>
|
113
|
114
|
const moment = require('moment')
|
114
|
115
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
115
|
|
-import { getHisPatientHistory } from "@/api/project/project"
|
|
116
|
+import { getHisPatientHistory,changePatient } from "@/api/project/project"
|
|
117
|
+import { uParseTime } from "@/utils/tools";
|
116
|
118
|
export default {
|
117
|
119
|
components:{
|
118
|
120
|
BreadCrumb
|
|
@@ -139,6 +141,32 @@ export default {
|
139
|
141
|
end_time:"",
|
140
|
142
|
limit:20,
|
141
|
143
|
page:1,
|
|
144
|
+ total:0,
|
|
145
|
+ departMent:[],
|
|
146
|
+ doctorList:[],
|
|
147
|
+ medicalCare: [{
|
|
148
|
+ id: 1,
|
|
149
|
+ name: '职工基本医疗保险'
|
|
150
|
+ }, {
|
|
151
|
+ id: 2,
|
|
152
|
+ name: "公务员医疗补助"
|
|
153
|
+ },{
|
|
154
|
+ id: 3,
|
|
155
|
+ name: "大额医疗费用补助"
|
|
156
|
+ },{
|
|
157
|
+ id: 4,
|
|
158
|
+ name: "离休人员医疗"
|
|
159
|
+ },{
|
|
160
|
+ id: 5,
|
|
161
|
+ name: "城乡居民基本医疗保险"
|
|
162
|
+ },{
|
|
163
|
+ id: 6,
|
|
164
|
+ name: "城乡居民大病医疗保险"
|
|
165
|
+ },
|
|
166
|
+ {
|
|
167
|
+ id: 7,
|
|
168
|
+ name: "生育保险"
|
|
169
|
+ }],
|
142
|
170
|
}
|
143
|
171
|
},
|
144
|
172
|
created(){
|
|
@@ -152,19 +180,13 @@ export default {
|
152
|
180
|
|
153
|
181
|
// })
|
154
|
182
|
// this.tableData = arr
|
|
183
|
+
|
155
|
184
|
this.getlist()
|
156
|
185
|
},
|
157
|
186
|
methods:{
|
158
|
|
- // searchAction(){
|
159
|
|
- // let arr = this.tableData
|
160
|
|
- // let a = []
|
161
|
|
- // arr.map(item => {
|
162
|
|
- // if(item.name.indexOf(this.search_input) > -1 && item.org_id == this.$store.getters.xt_user.org_id){
|
163
|
|
- // a.push(item)
|
164
|
|
- // }
|
165
|
|
- // })
|
166
|
|
- // this.tableData = a
|
167
|
|
- // },
|
|
187
|
+ searchAction(){
|
|
188
|
+ this.getlist()
|
|
189
|
+ },
|
168
|
190
|
// changeTime(val){
|
169
|
191
|
// let arr = JSON.parse(localStorage.getItem("temp"))
|
170
|
192
|
// arr.map(item => {
|
|
@@ -191,6 +213,14 @@ export default {
|
191
|
213
|
changeRegister(val){
|
192
|
214
|
|
193
|
215
|
},
|
|
216
|
+ handleSizeChange(val) {
|
|
217
|
+ this.limit = val
|
|
218
|
+ this.getList()
|
|
219
|
+ },
|
|
220
|
+ handleCurrentChange(val) {
|
|
221
|
+ this.page = val
|
|
222
|
+ this.getList()
|
|
223
|
+ },
|
194
|
224
|
getlist(){
|
195
|
225
|
var params = {
|
196
|
226
|
keyword:this.search_input,
|
|
@@ -208,15 +238,68 @@ export default {
|
208
|
238
|
this.tableData = history
|
209
|
239
|
var total = response.data.data.total
|
210
|
240
|
console.log("total",total)
|
|
241
|
+ this.total = total
|
211
|
242
|
var department = response.data.data.department
|
212
|
243
|
console.log("department",department)
|
213
|
|
-
|
|
244
|
+ this.departMent = department
|
|
245
|
+ var doctor = response.data.data.doctor
|
|
246
|
+ console.log("doctor",doctor)
|
|
247
|
+ this.doctorList = doctor
|
214
|
248
|
}
|
215
|
249
|
})
|
216
|
250
|
|
|
251
|
+ },
|
|
252
|
+ getDepartMent(id){
|
|
253
|
+ var name = ""
|
|
254
|
+ for(let i=0;i<this.departMent.length;i++){
|
|
255
|
+ if(id == this.departMent[i].id){
|
|
256
|
+ name = this.departMent[i].name
|
|
257
|
+ }
|
|
258
|
+ }
|
|
259
|
+ return name
|
|
260
|
+ },
|
|
261
|
+ getDoctor(id){
|
|
262
|
+ var user_name = ""
|
|
263
|
+ for(let i=0;i<this.doctorList.length;i++){
|
|
264
|
+ if(id == this.doctorList[i].admin_user_id){
|
|
265
|
+ user_name = this.doctorList[i].user_name
|
|
266
|
+ }
|
|
267
|
+ }
|
|
268
|
+ return user_name
|
|
269
|
+ },
|
|
270
|
+ getMedicalTreatment(id){
|
|
271
|
+ var name = ""
|
|
272
|
+ for(let i=0;i<this.medicalCare.length;i++){
|
|
273
|
+ if(this.medicalCare[i].id == id){
|
|
274
|
+ name = this.medicalCare[i].name
|
|
275
|
+ }
|
|
276
|
+ }
|
|
277
|
+ return name
|
|
278
|
+ },
|
|
279
|
+ getTime(value, temp) {
|
|
280
|
+ if (value != undefined) {
|
|
281
|
+ return uParseTime(value, temp);
|
|
282
|
+ }
|
|
283
|
+ return "";
|
|
284
|
+ },
|
|
285
|
+ toReturnPatient(id){
|
|
286
|
+ this.$confirm("确认退号吗?", "退号", {
|
|
287
|
+ confirmButtonText: "确 定",
|
|
288
|
+ cancelButtonText: "取 消",
|
|
289
|
+ type: "warning"
|
|
290
|
+ }).then(() => {
|
|
291
|
+ changePatient(id).then(response => {
|
|
292
|
+ if (response.data.state == 1) {
|
|
293
|
+ var msg = response.data.data.msg
|
|
294
|
+ this.$message.success("退号成功");
|
|
295
|
+ this.getlist()
|
|
296
|
+ } else {
|
|
297
|
+ this.$message.error("患者已就诊,退号失败")
|
|
298
|
+ }
|
|
299
|
+ });
|
|
300
|
+ })
|
|
301
|
+ .catch(() => {});
|
217
|
302
|
}
|
218
|
|
-
|
219
|
|
-
|
220
|
303
|
}
|
221
|
304
|
}
|
222
|
305
|
</script>
|