|
@@ -9,13 +9,14 @@
|
9
|
9
|
<el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
|
10
|
10
|
<el-date-picker
|
11
|
11
|
v-model="value1"
|
|
12
|
+ @change="changeTime"
|
12
|
13
|
style="margin-right:10px;"
|
13
|
14
|
type="daterange"
|
14
|
15
|
range-separator="-"
|
15
|
16
|
start-placeholder="开始日期"
|
16
|
17
|
end-placeholder="结束日期">
|
17
|
18
|
</el-date-picker>
|
18
|
|
- <label class="title"><span class="name">挂号类型</span> : </label>
|
|
19
|
+ <!-- <label class="title"><span class="name">挂号类型</span> : </label>
|
19
|
20
|
<el-select v-model="value" placeholder="请选择" style="width:150px;">
|
20
|
21
|
<el-option
|
21
|
22
|
v-for="item in options"
|
|
@@ -23,55 +24,62 @@
|
23
|
24
|
:label="item.label"
|
24
|
25
|
:value="item.value">
|
25
|
26
|
</el-option>
|
26
|
|
- </el-select>
|
|
27
|
+ </el-select> -->
|
27
|
28
|
</div>
|
28
|
29
|
<el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
29
|
30
|
<el-table-column align="center" type="index" label="序号" width="60">
|
30
|
31
|
</el-table-column>
|
31
|
32
|
<el-table-column align="center" prop="name" label="时间" width="100">
|
32
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
|
33
|
+ <template slot-scope="scope">{{ scope.row.create_time }}</template>
|
33
|
34
|
</el-table-column>
|
34
|
35
|
<el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
|
35
|
|
- <template slot-scope="scope">{{scope.row.name}}</template>
|
|
36
|
+ <template slot-scope="scope">{{scope.row.name }}</template>
|
36
|
37
|
</el-table-column>
|
37
|
38
|
<el-table-column align="center" prop="name" label="科室" width="80">
|
38
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
39
|
+ <template slot-scope="scope">{{ scope.row.department }}</template>
|
39
|
40
|
</el-table-column>
|
40
|
41
|
<el-table-column align="center" prop="name" label="挂号类型" width="90">
|
41
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
42
|
+ <template slot-scope="scope">
|
|
43
|
+ <span v-if="scope.row.register == 1">普通</span>
|
|
44
|
+ <span v-if="scope.row.register == 2">主治</span>
|
|
45
|
+ <span v-if="scope.row.register == 3">主任</span>
|
|
46
|
+ <span v-if="scope.row.register == 4">免收诊金</span>
|
|
47
|
+ <span v-if="scope.row.register == 5">专家</span>
|
|
48
|
+ </template>
|
42
|
49
|
</el-table-column>
|
43
|
50
|
<el-table-column align="center" prop="name" label="就诊号" width="80">
|
44
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
51
|
+ <template slot-scope="scope"></template>
|
45
|
52
|
</el-table-column>
|
46
|
53
|
<el-table-column align="center" prop="name" label="证件号">
|
47
|
|
- <template slot-scope="scope">782319204827282917</template>
|
|
54
|
+ <template slot-scope="scope">{{ scope.row.idCard }}</template>
|
48
|
55
|
</el-table-column>
|
49
|
|
- <el-table-column align="center" prop="name" label="患者保险类型" width="80">
|
50
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
56
|
+ <el-table-column align="center" label="患者保险类型" width="80">
|
|
57
|
+ <!-- <template slot-scope="scope">{{ scope.row.name }}</template> -->
|
51
|
58
|
</el-table-column>
|
52
|
59
|
<el-table-column align="center" prop="name" label="医生" width="80">
|
53
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
60
|
+ <template slot-scope="scope">{{ scope.row.doctor }}</template>
|
54
|
61
|
</el-table-column>
|
55
|
62
|
<el-table-column align="center" prop="name" label="挂号费" width="70">
|
56
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
63
|
+ <template slot-scope="scope">{{ scope.row.registrationFee }}</template>
|
57
|
64
|
</el-table-column>
|
58
|
65
|
<el-table-column align="center" prop="name" label="诊疗费" width="70">
|
59
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
66
|
+ <template slot-scope="scope">{{ scope.row.medicalExpenses }}</template>
|
60
|
67
|
</el-table-column>
|
61
|
68
|
<el-table-column align="center" prop="name" label="工本费" width="70">
|
62
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
69
|
+ <template slot-scope="scope">{{ scope.row.cost }}</template>
|
63
|
70
|
</el-table-column>
|
64
|
71
|
<el-table-column align="center" prop="name" label="操作人" width="70">
|
65
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
72
|
+ <template slot-scope="scope">{{ $store.getters.xt_user.org.org_name }}</template>
|
66
|
73
|
</el-table-column>
|
67
|
74
|
<el-table-column align="center" prop="name" label="操作" width="80">
|
68
|
75
|
<template slot-scope="scope">
|
69
|
|
- <el-button size="mini" type="primary">编辑</el-button>
|
|
76
|
+ <!-- <el-button size="mini" type="primary">编辑</el-button> -->
|
|
77
|
+ <span>已就诊</span>
|
70
|
78
|
</template>
|
71
|
79
|
</el-table-column>
|
72
|
80
|
</el-table>
|
73
|
81
|
|
74
|
|
- <el-pagination
|
|
82
|
+ <!-- <el-pagination
|
75
|
83
|
@size-change="handleSizeChange"
|
76
|
84
|
@current-change="handleCurrentChange"
|
77
|
85
|
:page-sizes="[10, 50, 100]"
|
|
@@ -81,12 +89,13 @@
|
81
|
89
|
layout="total, sizes, prev, pager, next, jumper"
|
82
|
90
|
:total="total"
|
83
|
91
|
>
|
84
|
|
- </el-pagination>
|
|
92
|
+ </el-pagination> -->
|
85
|
93
|
</div>
|
86
|
94
|
</div>
|
87
|
95
|
</template>
|
88
|
96
|
|
89
|
97
|
<script>
|
|
98
|
+const moment = require('moment')
|
90
|
99
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
91
|
100
|
export default {
|
92
|
101
|
components:{
|
|
@@ -98,6 +107,7 @@ export default {
|
98
|
107
|
{ path: false, name: '门诊挂号' },
|
99
|
108
|
{ path: false, name: '挂号历史' }
|
100
|
109
|
],
|
|
110
|
+ search_input:'',
|
101
|
111
|
value1:'',
|
102
|
112
|
tableData: [{
|
103
|
113
|
date: '2016-05-02',
|
|
@@ -117,6 +127,48 @@ export default {
|
117
|
127
|
address: '上海市普陀区金沙江路 1516 弄'
|
118
|
128
|
}]
|
119
|
129
|
}
|
|
130
|
+ },
|
|
131
|
+ created(){
|
|
132
|
+ let a = JSON.parse(localStorage.getItem("temp"))
|
|
133
|
+ a.map(item => {
|
|
134
|
+ item.create_time = moment(item.create_time * 1000).format('YYYY-MM-DD')
|
|
135
|
+ })
|
|
136
|
+ console.log('aaaaaaaaaaaaaa',a)
|
|
137
|
+ this.tableData = a
|
|
138
|
+ },
|
|
139
|
+ methods:{
|
|
140
|
+ searchAction(){
|
|
141
|
+ let arr = this.tableData
|
|
142
|
+ let a = []
|
|
143
|
+ arr.map(item => {
|
|
144
|
+ if(item.name.indexOf(this.search_input) > -1){
|
|
145
|
+ a.push(item)
|
|
146
|
+ }
|
|
147
|
+ })
|
|
148
|
+ this.tableData = a
|
|
149
|
+ },
|
|
150
|
+ changeTime(val){
|
|
151
|
+ let arr = JSON.parse(localStorage.getItem("temp"))
|
|
152
|
+ arr.map(item => {
|
|
153
|
+ item.create_time = moment(item.create_time * 1000).format('YYYY-MM-DD')
|
|
154
|
+ })
|
|
155
|
+ this.tableData = arr
|
|
156
|
+ console.log(new Date(val[0]).getTime() / 1000)
|
|
157
|
+ console.log(new Date(val[1]).getTime() / 1000)
|
|
158
|
+ let arr1 = this.tableData
|
|
159
|
+ let a = []
|
|
160
|
+ arr1.map(item => {
|
|
161
|
+ // if(new Date(val[0]).getTime() / 1000){
|
|
162
|
+ // a.push(item)
|
|
163
|
+ // }
|
|
164
|
+ if(new Date(item.create_time).getTime() / 1000 > new Date(val[0]).getTime() / 1000 && new Date(item.create_time).getTime() / 1000 < new Date(val[1]).getTime() / 1000){
|
|
165
|
+ a.push(item)
|
|
166
|
+ }
|
|
167
|
+ console.log()
|
|
168
|
+ })
|
|
169
|
+ this.tableData = a
|
|
170
|
+ }
|
|
171
|
+
|
120
|
172
|
}
|
121
|
173
|
}
|
122
|
174
|
</script>
|