|
@@ -3,7 +3,223 @@
|
3
|
3
|
<div class="position">
|
4
|
4
|
<bread-crumb :crumbs='crumbs'></bread-crumb>
|
5
|
5
|
</div>
|
6
|
|
- <div class="app-container">
|
|
6
|
+ <div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 0" class="app-container">
|
|
7
|
+ <div class="cell clearfix">
|
|
8
|
+ <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
|
|
9
|
+ <el-autocomplete
|
|
10
|
+ style="margin:16px 5px"
|
|
11
|
+ popper-class="my-autocomplete"
|
|
12
|
+ v-model.trim="search_input"
|
|
13
|
+ :fetch-suggestions="querySearchAsync"
|
|
14
|
+ :trigger-on-focus="false"
|
|
15
|
+ placeholder="病人名字或者透析号"
|
|
16
|
+ @select="handleSelect"
|
|
17
|
+ >
|
|
18
|
+ <i class="el-icon-search el-input__icon" slot="suffix"> </i>
|
|
19
|
+ <template slot-scope="{ item }">
|
|
20
|
+ <div class="name">{{ item.name }}</div>
|
|
21
|
+ </template>
|
|
22
|
+ </el-autocomplete>
|
|
23
|
+ <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
|
|
24
|
+ <!-- <el-date-picker
|
|
25
|
+ v-model="value1"
|
|
26
|
+ @change="changeTime"
|
|
27
|
+ style="margin-right:10px;"
|
|
28
|
+ type="daterange"
|
|
29
|
+ range-separator="-"
|
|
30
|
+ start-placeholder="开始日期"
|
|
31
|
+ end-placeholder="结束日期">
|
|
32
|
+ </el-date-picker> -->
|
|
33
|
+ <el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
34
|
+ placeholder="选择时间" v-model="start_time" style="width:200px"
|
|
35
|
+ @change="changeStart"
|
|
36
|
+ >
|
|
37
|
+ </el-date-picker> -
|
|
38
|
+ <el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
39
|
+ placeholder="选择时间" v-model="end_time" style="width:200px"
|
|
40
|
+ @change="changeEnd"
|
|
41
|
+ >
|
|
42
|
+ </el-date-picker>
|
|
43
|
+ <label class="title"><span class="name">挂号类型</span> : </label>
|
|
44
|
+ <el-select v-model="register_type" placeholder="请选择" style="width:150px;" @change="changeRegister">
|
|
45
|
+ <el-option
|
|
46
|
+ v-for="item in register"
|
|
47
|
+ :key="item.value"
|
|
48
|
+ :label="item.label"
|
|
49
|
+ :value="item.value">
|
|
50
|
+ </el-option>
|
|
51
|
+ </el-select>
|
|
52
|
+ </div>
|
|
53
|
+ <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>
|
|
54
|
+ <el-table-column align="center" type="index" label="序号" width="60">
|
|
55
|
+ </el-table-column>
|
|
56
|
+ <el-table-column align="center" prop="name" label="时间" width="100">
|
|
57
|
+ <template slot-scope="scope">{{getTime(scope.row.ctime,"{y}-{m}-{d} {h}:{i}:{s}")}}</template>
|
|
58
|
+ </el-table-column>
|
|
59
|
+ <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
|
|
60
|
+ <template slot-scope="scope">{{scope.row.name }}</template>
|
|
61
|
+ </el-table-column>
|
|
62
|
+ <el-table-column align="center" prop="name" label="科室" width="80">
|
|
63
|
+ <template slot-scope="scope">{{getDepartMent(scope.row.departments)}}</template>
|
|
64
|
+ </el-table-column>
|
|
65
|
+ <el-table-column align="center" prop="name" label="挂号类型" width="90">
|
|
66
|
+ <template slot-scope="scope">
|
|
67
|
+ <span v-if="scope.row.register_type == 1">普通</span>
|
|
68
|
+ <span v-if="scope.row.register_type == 2">主治</span>
|
|
69
|
+ <span v-if="scope.row.register_type == 3">主任</span>
|
|
70
|
+ <span v-if="scope.row.register_type == 4">免收诊金</span>
|
|
71
|
+ <span v-if="scope.row.register_type == 5">专家</span>
|
|
72
|
+ </template>
|
|
73
|
+ </el-table-column>
|
|
74
|
+ <el-table-column align="center" prop="name" label="就诊号" width="80">
|
|
75
|
+ <template slot-scope="scope">
|
|
76
|
+ {{scope.row.number}}
|
|
77
|
+ </template>
|
|
78
|
+ </el-table-column>
|
|
79
|
+ <el-table-column align="center" prop="name" label="证件号" width='180'>
|
|
80
|
+ <template slot-scope="scope">{{ scope.row.id_card_no }}</template>
|
|
81
|
+ </el-table-column>
|
|
82
|
+ <el-table-column align="center" label="社保类型">
|
|
83
|
+ <template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>
|
|
84
|
+ </el-table-column>
|
|
85
|
+ <el-table-column align="center" prop="name" label="医生" width="80">
|
|
86
|
+ <template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>
|
|
87
|
+ </el-table-column>
|
|
88
|
+ <el-table-column align="center" prop="name" label="挂号费" width="70">
|
|
89
|
+ <template slot-scope="scope">{{ scope.row.register_cost }}</template>
|
|
90
|
+ </el-table-column>
|
|
91
|
+ <el-table-column align="center" prop="name" label="诊疗费" width="70">
|
|
92
|
+ <template slot-scope="scope">{{ scope.row.treatment_cost }}</template>
|
|
93
|
+ </el-table-column>
|
|
94
|
+ <el-table-column align="center" prop="name" label="工本费" width="70">
|
|
95
|
+ <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
|
|
96
|
+ </el-table-column>
|
|
97
|
+ <el-table-column align="center" prop="name" label="结算类型" width="70">
|
|
98
|
+ <template slot-scope="scope">{{getBanlance(scope.row.balance_accounts_type) }}</template>
|
|
99
|
+ </el-table-column>
|
|
100
|
+ <el-table-column align="center" prop="name" label="操作人" width="70">
|
|
101
|
+ <template slot-scope="scope">{{creator}}</template>
|
|
102
|
+ </el-table-column>
|
|
103
|
+ <el-table-column align="center" prop="name" label="操作" width="180">
|
|
104
|
+ <template slot-scope="scope">
|
|
105
|
+ <!--<el-button size="mini" type="primary" v-if=" scope.row.record_date < startUnix" :disabled="true">已过号</el-button>-->
|
|
106
|
+ <el-button size="mini" type="primary" v-if="scope.row.status == 1" @click ="toReturnSZPatient(scope.row)">退号</el-button>
|
|
107
|
+ <el-button size="mini" type="primary" :disabled="true" v-if="scope.row.status == 0" >已退号</el-button>
|
|
108
|
+
|
|
109
|
+ <!--<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>-->
|
|
110
|
+ <!--<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>-->
|
|
111
|
+ <!--<el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>-->
|
|
112
|
+ </template>
|
|
113
|
+ </el-table-column>
|
|
114
|
+ </el-table>
|
|
115
|
+
|
|
116
|
+ <el-pagination
|
|
117
|
+ @size-change="handleSizeChange"
|
|
118
|
+ @current-change="handleCurrentChange"
|
|
119
|
+ :page-sizes="[10, 50, 100]"
|
|
120
|
+ :page-size="10"
|
|
121
|
+ background
|
|
122
|
+ style="margin-top:20px;float: right"
|
|
123
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
124
|
+ :total="total"
|
|
125
|
+ >
|
|
126
|
+ </el-pagination>
|
|
127
|
+ <el-dialog
|
|
128
|
+ title="挂号历史详情"
|
|
129
|
+ :visible.sync="dialogVisible"
|
|
130
|
+ width="1100px"
|
|
131
|
+ :before-close="handleClose">
|
|
132
|
+ <div>
|
|
133
|
+ <div class="formMain">
|
|
134
|
+ <el-form class="basicForm" :model="form" ref="form" label-width="130px">
|
|
135
|
+ <el-form-item label="患者姓名:" prop="name">
|
|
136
|
+ <div>{{ form.name }}</div>
|
|
137
|
+ </el-form-item>
|
|
138
|
+
|
|
139
|
+ <el-form-item label="性别:" prop="gender">
|
|
140
|
+ <div v-if="form.gender == 1">男</div>
|
|
141
|
+ <div v-if="form.gender == 2">女</div>
|
|
142
|
+ </el-form-item>
|
|
143
|
+
|
|
144
|
+ <el-form-item label="年龄:" prop="age">
|
|
145
|
+ <div>{{ form.age }}</div>
|
|
146
|
+ </el-form-item>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+ <el-form-item label="出生日期:" prop="birthday">
|
|
150
|
+ <div>{{ getTime(form.birthday,"{y}-{m}-{d}") }}</div>
|
|
151
|
+ </el-form-item>
|
|
152
|
+
|
|
153
|
+ <el-form-item label="手机号码:" prop="phone">
|
|
154
|
+ <div>{{ form.phone }}</div>
|
|
155
|
+ </el-form-item>
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+ <el-form-item label="医疗类别:">
|
|
159
|
+ <div>{{ getDictionaryDataConfig(form.medical_treatment_type) }}</div>
|
|
160
|
+ </el-form-item>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+ <el-form-item label="证件类型:">
|
|
164
|
+ <div>{{ getCertificates(form.id_type) }}</div>
|
|
165
|
+ </el-form-item>
|
|
166
|
+
|
|
167
|
+ <el-form-item label="证件号码:" prop="idCard">
|
|
168
|
+ {{ form.id_card_no }}
|
|
169
|
+ </el-form-item>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+ <el-form-item label="结算类型:">
|
|
173
|
+ {{ getSettlement(form.balance_accounts_type) }}
|
|
174
|
+ </el-form-item>
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+ <el-form-item label="社保类型:">
|
|
178
|
+ <div>{{ getMedicalCare(form.social_type) }}</div>
|
|
179
|
+ </el-form-item>
|
|
180
|
+ <el-form-item class="specialFormItem" style="width:66.5%;" label="医保卡号:">
|
|
181
|
+ <div>{{ form.medical_insurance_number }}</div>
|
|
182
|
+ </el-form-item>
|
|
183
|
+ <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
|
|
184
|
+ <div>{{ getRegister(form.register_type) }}</div>
|
|
185
|
+ </el-form-item>
|
|
186
|
+ <el-form-item label="医生:" prop="doctor" :validate-event="is_Name" >
|
|
187
|
+ <div>{{ getDoctor(form.doctor) }}</div>
|
|
188
|
+ </el-form-item>
|
|
189
|
+ <el-form-item label="科室:" prop="department" :validate-event="is_Name">
|
|
190
|
+ <div>{{ getDepartMent(form.departments) }}</div>
|
|
191
|
+ </el-form-item>
|
|
192
|
+ <!-- <el-form-item label="是否需要工本费:">
|
|
193
|
+ <div v-if="form.is_need_cost_of_production == 1">是</div>
|
|
194
|
+ <div v-else>否</div>
|
|
195
|
+ </el-form-item> -->
|
|
196
|
+
|
|
197
|
+ <el-form-item label="挂号费:">
|
|
198
|
+ <div>{{ form.register_cost }}</div>
|
|
199
|
+ </el-form-item>
|
|
200
|
+ <el-form-item label="诊疗费:">
|
|
201
|
+ <div>{{ form.treatment_cost }}</div>
|
|
202
|
+ </el-form-item>
|
|
203
|
+ <el-form-item label="工本费:">
|
|
204
|
+ <div>{{ form.cost_of_production }}</div>
|
|
205
|
+ </el-form-item>
|
|
206
|
+ <el-form-item label="合计:">
|
|
207
|
+ <div>{{ form.total }}</div>
|
|
208
|
+ </el-form-item>
|
|
209
|
+ <el-form-item>
|
|
210
|
+ <!-- <el-input v-model="form.name"></el-input> -->
|
|
211
|
+ </el-form-item>
|
|
212
|
+ </el-form>
|
|
213
|
+ </div>
|
|
214
|
+ </div>
|
|
215
|
+ <span slot="footer" class="dialog-footer">
|
|
216
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
217
|
+ <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
218
|
+ </span>
|
|
219
|
+ </el-dialog>
|
|
220
|
+ </div>
|
|
221
|
+
|
|
222
|
+ <div v-else class="app-container">
|
7
|
223
|
<div class="cell clearfix">
|
8
|
224
|
<!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
|
9
|
225
|
<el-autocomplete
|
|
@@ -225,6 +441,7 @@ import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
225
|
441
|
import { getHisPatientHistory,changePatient,getHisPatient } from "@/api/project/project"
|
226
|
442
|
import { uParseTime } from "@/utils/tools";
|
227
|
443
|
import { getDictionaryDataConfig } from '@/utils/data'
|
|
444
|
+import axios from 'axios'
|
228
|
445
|
|
229
|
446
|
export default {
|
230
|
447
|
components:{
|
|
@@ -478,8 +695,42 @@ export default {
|
478
|
695
|
return uParseTime(value, temp);
|
479
|
696
|
}
|
480
|
697
|
return "";
|
481
|
|
- },
|
482
|
|
- toReturnPatient(id){
|
|
698
|
+ }, toReturnSZPatient(val){
|
|
699
|
+ var that = this
|
|
700
|
+ this.$confirm('是否退号', '退号', {
|
|
701
|
+ confirmButtonText: '确 定',
|
|
702
|
+ cancelButtonText: '取 消',
|
|
703
|
+ type: 'warning'
|
|
704
|
+ }).then(() => {
|
|
705
|
+ axios.get('http://127.0.0.1:9532/sz/api/refundnumber/get', {
|
|
706
|
+ params: {
|
|
707
|
+ order_id: 0,
|
|
708
|
+ record_time: this.getTime(val.record_date,"{y}-{m}-{d}"),
|
|
709
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
710
|
+ patient_id: val.patient_id
|
|
711
|
+ }
|
|
712
|
+ })
|
|
713
|
+ .then(function(response) {
|
|
714
|
+ if (response.data.state == 0) {
|
|
715
|
+ that.$message.error(response.data.msg)
|
|
716
|
+ return false
|
|
717
|
+ } else {
|
|
718
|
+ if (response.data.data.failed_code == -10) {
|
|
719
|
+ that.$message.error(response.data.data.msg)
|
|
720
|
+
|
|
721
|
+ } else {
|
|
722
|
+ this.getlist()
|
|
723
|
+ that.$message({ message: '退号成功', type: 'success' })
|
|
724
|
+ }
|
|
725
|
+ }
|
|
726
|
+ })
|
|
727
|
+ .catch(function(error) {
|
|
728
|
+ })
|
|
729
|
+ }).catch(() => {
|
|
730
|
+ })
|
|
731
|
+ },
|
|
732
|
+
|
|
733
|
+ toReturnPatient(id){
|
483
|
734
|
this.$confirm("确认退号吗?", "退号", {
|
484
|
735
|
confirmButtonText: "确 定",
|
485
|
736
|
cancelButtonText: "取 消",
|