浏览代码

HIS 系统提交

XMLWAN 4 年前
父节点
当前提交
5635cb9659

+ 1 - 1
src/api/patient.js 查看文件

373
 }
373
 }
374
 
374
 
375
 export function deleteDryWeight(id, data) {
375
 export function deleteDryWeight(id, data) {
376
-  console.log('id', id)
376
+ 
377
   return request({
377
   return request({
378
     url: '/api/patient/deletedryweight?id=' + id,
378
     url: '/api/patient/deletedryweight?id=' + id,
379
     method: 'delete',
379
     method: 'delete',

+ 11 - 1
src/api/project/project.js 查看文件

260
         methods:"get",
260
         methods:"get",
261
         params:params
261
         params:params
262
     })
262
     })
263
-}
263
+}
264
+
265
+
266
+export function changePatient(id,params){
267
+   
268
+    return request({
269
+      url:"/api/patient/changepatient?id="+id,
270
+      method:"get",
271
+      params:params
272
+    })
273
+  }

+ 3 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

373
             sick_history: this.state2,
373
             sick_history: this.state2,
374
             doctor: this.doctorValue,
374
             doctor: this.doctorValue,
375
             department: this.departmentValue,
375
             department: this.departmentValue,
376
-            record_date: this.record_date
376
+            record_date: this.record_date,
377
+            his_patient_id: this.hisPatientInfo.id
377
           }
378
           }
378
-
379
+         
379
           for (let i = 0; i < this.prescriptions.length; i++){
380
           for (let i = 0; i < this.prescriptions.length; i++){
380
             if(this.prescriptions[i].advices.length > 0 && this.prescriptions[i].project.length == 0){
381
             if(this.prescriptions[i].advices.length > 0 && this.prescriptions[i].project.length == 0){
381
               this.prescriptions[i]['type'] = 1
382
               this.prescriptions[i]['type'] = 1

+ 2 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

119
             return false
119
             return false
120
           } else {
120
           } else {
121
             this.patientTableData = response.data.data.list
121
             this.patientTableData = response.data.data.list
122
+            console.log("222",this.patientTableData)
122
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
123
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
123
             let cal_one = 0
124
             let cal_one = 0
124
             let cal_two = 0
125
             let cal_two = 0
200
               }
201
               }
201
               this.prescriptions.push(obj)
202
               this.prescriptions.push(obj)
202
             }
203
             }
203
-            console.log("中国22222222",this.prescriptions)
204
+           
204
             this.$refs.prescriptions.setData(this.prescriptions)
205
             this.$refs.prescriptions.setData(this.prescriptions)
205
           }
206
           }
206
         })
207
         })

+ 7 - 7
src/xt_pages/outpatientRegistration/index.vue 查看文件

192
                 label: "港澳地区身份证"
192
                 label: "港澳地区身份证"
193
             }],
193
             }],
194
             medicalCare: [{
194
             medicalCare: [{
195
-                value: 310,
195
+                value: 1,
196
                 label: '职工基本医疗保险'
196
                 label: '职工基本医疗保险'
197
                 }, {
197
                 }, {
198
-                value: 320,
198
+                value: 2,
199
                 label: "公务员医疗补助"
199
                 label: "公务员医疗补助"
200
                 },{
200
                 },{
201
-                value: 330,
201
+                value: 3,
202
                 label: "大额医疗费用补助"
202
                 label: "大额医疗费用补助"
203
                 },{
203
                 },{
204
-                value: 340,
204
+                value: 4,
205
                 label: "离休人员医疗"
205
                 label: "离休人员医疗"
206
                 },{
206
                 },{
207
-                value: 390,
207
+                value: 5,
208
                 label: "城乡居民基本医疗保险"
208
                 label: "城乡居民基本医疗保险"
209
                 },{
209
                 },{
210
-                value: 392,
210
+                value: 6,
211
                 label: "城乡居民大病医疗保险"
211
                 label: "城乡居民大病医疗保险"
212
                 },
212
                 },
213
                 {
213
                 {
214
-                value: 510,
214
+                value: 7,
215
                 label: "生育保险"
215
                 label: "生育保险"
216
             }],
216
             }],
217
             register: [{
217
             register: [{

+ 106 - 23
src/xt_pages/outpatientRegistration/registrationHistory.vue 查看文件

43
                     </template>
43
                     </template>
44
                 </el-table-column>
44
                 </el-table-column>
45
                 <el-table-column align="center" prop="name" label="时间" width="100">
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
                 </el-table-column>
47
                 </el-table-column>
48
                 <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
48
                 <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
49
                     <template slot-scope="scope">{{scope.row.name }}</template>
49
                     <template slot-scope="scope">{{scope.row.name }}</template>
50
                 </el-table-column>
50
                 </el-table-column>
51
                 <el-table-column align="center" prop="name" label="科室" width="80">
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
                 </el-table-column>
53
                 </el-table-column>
54
                 <el-table-column align="center" prop="name" label="挂号类型" width="90">
54
                 <el-table-column align="center" prop="name" label="挂号类型" width="90">
55
                     <template slot-scope="scope">
55
                     <template slot-scope="scope">
69
                     <template slot-scope="scope">{{ scope.row.id_card_no }}</template>
69
                     <template slot-scope="scope">{{ scope.row.id_card_no }}</template>
70
                 </el-table-column>
70
                 </el-table-column>
71
                 <el-table-column align="center" label="患者保险类型" width="80">
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
                 </el-table-column>
73
                 </el-table-column>
74
                 <el-table-column align="center" prop="name" label="医生" width="80">
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
                 </el-table-column>
76
                 </el-table-column>
77
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
77
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
78
                     <template slot-scope="scope">{{ scope.row.register_cost }}</template>
78
                     <template slot-scope="scope">{{ scope.row.register_cost }}</template>
84
                     <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
84
                     <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
85
                 </el-table-column>
85
                 </el-table-column>
86
                 <el-table-column align="center" prop="name" label="操作人" width="70">
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
                 </el-table-column>
88
                 </el-table-column>
89
                 <el-table-column align="center" prop="name" label="操作" width="80">
89
                 <el-table-column align="center" prop="name" label="操作" width="80">
90
                     <template slot-scope="scope">
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
                     </template>
94
                     </template>
94
                 </el-table-column>
95
                 </el-table-column>
95
             </el-table>
96
             </el-table>
96
 
97
 
97
-            <!-- <el-pagination
98
+            <el-pagination
98
                 @size-change="handleSizeChange"
99
                 @size-change="handleSizeChange"
99
                 @current-change="handleCurrentChange"
100
                 @current-change="handleCurrentChange"
100
                 :page-sizes="[10, 50, 100]"
101
                 :page-sizes="[10, 50, 100]"
104
                 layout="total, sizes, prev, pager, next, jumper"
105
                 layout="total, sizes, prev, pager, next, jumper"
105
                 :total="total"
106
                 :total="total"
106
             >
107
             >
107
-            </el-pagination> -->
108
+            </el-pagination>
108
         </div>
109
         </div>
109
     </div>
110
     </div>
110
 </template>
111
 </template>
112
 <script>
113
 <script>
113
 const moment = require('moment')
114
 const moment = require('moment')
114
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
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
 export default {
118
 export default {
117
     components:{
119
     components:{
118
         BreadCrumb
120
         BreadCrumb
139
             end_time:"",
141
             end_time:"",
140
             limit:20,
142
             limit:20,
141
             page:1,
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
     created(){
172
     created(){
152
             
180
             
153
         // })
181
         // })
154
         // this.tableData = arr
182
         // this.tableData = arr
183
+     
155
        this.getlist()
184
        this.getlist()
156
     },
185
     },
157
     methods:{
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
         // changeTime(val){
190
         // changeTime(val){
169
         //     let arr = JSON.parse(localStorage.getItem("temp"))
191
         //     let arr = JSON.parse(localStorage.getItem("temp"))
170
         //     arr.map(item => {
192
         //     arr.map(item => {
191
         changeRegister(val){
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
         getlist(){
224
         getlist(){
195
           var params = {
225
           var params = {
196
                keyword:this.search_input,
226
                keyword:this.search_input,
208
                 this.tableData = history
238
                 this.tableData = history
209
                 var total =  response.data.data.total
239
                 var total =  response.data.data.total
210
                 console.log("total",total)
240
                 console.log("total",total)
241
+                this.total = total
211
                 var department =  response.data.data.department
242
                 var department =  response.data.data.department
212
                 console.log("department",department)
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
 </script>
305
 </script>