Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 years ago
parent
commit
928bff8ef5

+ 2 - 2
src/api/his/his.js View File

@@ -410,9 +410,9 @@ export function GetHisHospitalChargePatientInfo (params) {
410 410
 
411 411
 
412 412
 
413
-export function GetHisHospitalPrescriptionList (params) {
413
+export function getHisHospitalPrescriptionList (params) {
414 414
   return request({
415
-    url: '/api/hospotalcharge/info',
415
+    url: '/api/hospitalprescription/list',
416 416
     method: 'get',
417 417
     params:params,
418 418
   })

+ 5 - 6
src/api/project/project.js View File

@@ -437,7 +437,7 @@ export function getTodaySchedulePatient(params){
437 437
 }
438 438
 
439 439
 export function getHisPatientDetail(params){
440
-  console.log("params99999",params)
440
+  console.log("params99999",params);
441 441
   return request({
442 442
     url:"/api/hispatient/gethispatientdetail",
443 443
     method:"Get",
@@ -454,12 +454,11 @@ export function getAllDePartmentList(params){
454 454
   })
455 455
 }
456 456
 
457
-export function getPrescriptionList(id,params){
457
+export function getPrescriptionList(id,p_type){
458 458
 
459 459
   return request({
460
-    url:"/api/hispatient/getprescription?patient_id="+id,
460
+    url:"/api/hispatient/getprescription?patient_id="+id+"&p_type="+p_type,
461 461
     method:"Get",
462
-    params:params
463 462
   })
464 463
 }
465 464
 
@@ -527,7 +526,7 @@ export function getUnRegisterHisPatientList (params) {
527 526
 
528 527
 
529 528
 export function postProjectInformation(params){
530
-  
529
+
531 530
   return request({
532 531
     url:"/api/postprojectinformation",
533 532
     method:"post",
@@ -541,4 +540,4 @@ export function getInvoice(params){
541 540
     method:"get",
542 541
     params:params
543 542
   })
544
-}
543
+}

+ 6 - 0
src/router/modules/outpatientRecord.js View File

@@ -41,6 +41,12 @@ export default {
41 41
       name: 'hospitalChargesManagement',
42 42
       meta: { title: 'hospitalChargesManagement', noCache: true }
43 43
     },
44
+    {
45
+      path: '/outpatientRecord/summary',
46
+      component: () => import('@/xt_pages/hospitalStation/summary'),
47
+      name: 'summary',
48
+      meta: { title: 'summary', noCache: true }
49
+    },
44 50
 
45 51
 
46 52
   ]

+ 1 - 1
src/xt_pages/hospitalStation/doctorDesk.vue View File

@@ -1934,7 +1934,7 @@
1934 1934
       },
1935 1935
 
1936 1936
       getPrescriptionList(id) {
1937
-        getPrescriptionList(id).then(response => {
1937
+        getPrescriptionList(id,1).then(response => {
1938 1938
           if (response.data.state == 1) {
1939 1939
             this.centerDialogVisible = true;
1940 1940
             var list = response.data.data.list;

+ 8 - 8
src/xt_pages/hospitalStation/pastInquiries.vue View File

@@ -22,24 +22,24 @@
22 22
           <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template>
23 23
         </el-table-column>
24 24
         <el-table-column align="center" prop="name" label="处方日期" width="200">
25
-          <template slot-scope="scope"> {{scope.row.info?getTimes(scope.row.info.ctime):''}}</template>
25
+          <template slot-scope="scope"> {{scope.row.ctime?getTimes(scope.row.ctime):''}}</template>
26 26
 
27 27
         </el-table-column>
28 28
         <!--<el-table-column align="center" prop="name" label="患者类型">-->
29 29
           <!--<template slot-scope="scope">{{}}</template>-->
30 30
         <!--</el-table-column>-->
31 31
         <el-table-column align="center" prop="name" label="处方号">
32
-          <template slot-scope="scope">{{scope.row.info?scope.row.info.prescription_number:''}}</template>
32
+          <template slot-scope="scope">{{scope.row.prescription_number?scope.row.prescription_number:''}}</template>
33 33
         </el-table-column>
34 34
         <el-table-column align="center" prop="name" label="开立医生">
35
-          <template slot-scope="scope">{{scope.row.info?scope.row.info.doctor:''}}</template>
35
+          <template slot-scope="scope">{{scope.row.doctor?scope.row.doctor:''}}</template>
36 36
         </el-table-column>
37 37
         <el-table-column align="center" prop="name" label="诊断">
38
-          <template slot-scope="scope">{{getDiagnosis(scope.row.info.diagnosis)}}</template>
38
+          <template slot-scope="scope">{{getDiagnosis(scope.row.diagnosis)}}</template>
39 39
         </el-table-column>
40 40
         <el-table-column align="center" prop="name" label="状态" width="100">
41 41
           <template slot-scope="scope">
42
-            <div v-if=" scope.row.info && scope.row.info.id > 0">已就诊</div>
42
+            <div v-if="  scope.row.id > 0">已就诊</div>
43 43
             <div v-else>未就诊</div>
44 44
           </template>
45 45
         </el-table-column>
@@ -121,11 +121,11 @@
121 121
         return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
122 122
       },
123 123
       handerShowDetail(row) {
124
-        if(row.info.id == 0){
124
+        if(row.id == 0){
125 125
           this.$message.error("未就诊");
126 126
           return
127 127
         }
128
-        this.$refs.inquiriesDetail.show(row.info.id)
128
+        this.$refs.inquiriesDetail.show(row.id)
129 129
       }, getHisPrescriptionList() {
130 130
         let params = {
131 131
           record_date:this.record_date,
@@ -133,7 +133,7 @@
133 133
           limit: this.limit,
134 134
           keywords: this.keywords,
135 135
         };
136
-        getHisPrescriptionList(params).then(response => {
136
+        getHisHospitalPrescriptionList(params).then(response => {
137 137
           if (response.data.state == 0) {
138 138
             this.$message.error(response.data.msg);
139 139
             return false

+ 8 - 9
src/xt_pages/hospitalStation/summary.vue View File

@@ -66,7 +66,7 @@
66 66
         >
67 67
         </el-table-column>
68 68
         <el-table-column align="center" prop="name" label="就诊号">
69
-          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
69
+          <template slot-scope="scope">{{ scope.row.mdtrt_id }}</template>
70 70
         </el-table-column>
71 71
         <el-table-column align="center" prop="name" label="患者名字">
72 72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
@@ -104,7 +104,7 @@
104 104
               结算单
105 105
             </el-button>
106 106
             <el-button size="mini" type="primary" @click="toRefund(scope.row)"
107
-                       v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106  || $store.getters.xt_user.org_id== 9990)">
107
+                       v-if="(scope.row.order_status == 2 || $store.getters.xt_user.org_id== 9990)">
108 108
               退费
109 109
             </el-button>
110 110
             <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
@@ -294,11 +294,9 @@
294 294
           }).then(() => {
295 295
             let params = {
296 296
               'order_id': row.id,
297
-              'patient_id': row.patient_id,
298
-              'record_time': that.getTimes(row.settle_accounts_date),
299
-              'admin_user_id': that.$store.getters.xt_user.user.id,
297
+              'admin_user_id': this.$store.getters.xt_user.user.id,
300 298
             };
301
-            axios.get('http://127.0.0.1:9532/api/refund/post', {
299
+            axios.get('http://127.0.0.1:9532/zh/api/refund', {
302 300
               params: params
303 301
             })
304 302
               .then(function (response) {
@@ -377,7 +375,8 @@
377 375
       export_detail() {
378 376
         let params = {
379 377
           start_time: this.start_time,
380
-          end_time: this.end_time
378
+          end_time: this.end_time,
379
+          p_type: 1,
381 380
         };
382 381
         getExportConsumeDetailList(params).then(response => {
383 382
           if (response.data.state == 0) {
@@ -534,7 +533,8 @@
534 533
           keywords: this.keywords,
535 534
           start_time: this.start_time,
536 535
           end_time: this.end_time,
537
-          type: this.admin_user_id
536
+          type: this.admin_user_id,
537
+          p_type: 1,
538 538
         };
539 539
         getHisOrderList(params).then(response => {
540 540
           if (response.data.state == 0) {
@@ -564,7 +564,6 @@
564 564
         }
565 565
       },
566 566
       invoicePrint(obj){
567
-        console.log(obj);
568 567
         let paramsObj = {
569 568
           order_id: obj.id,
570 569
           patient_id: obj.patient_id,

+ 29 - 15
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue View File

@@ -83,17 +83,18 @@
83 83
       </tr>
84 84
       <tr>
85 85
         <td>住院号</td>
86
-        <td></td>
86
+        <td>{{info.number}}</td>
87 87
         <td>科别</td>
88 88
         <td width="100"></td>
89 89
         <td>床号</td>
90 90
         <td></td>
91 91
         <td>入院日期</td>
92
-        <td></td>
92
+        <td>{{info.begndate}}</td>
93 93
         <td>出院日期</td>
94
-        <td width="100"></td>
94
+        <td width="100">{{info.enddate}}</td>
95 95
         <td>住院天数</td>
96
-        <td></td>
96
+        <td>{{getDay(info.begndate,info.enddate)}}</td>
97
+
97 98
       </tr>
98 99
       <tr>
99 100
         <td>险种</td>
@@ -278,11 +279,11 @@
278 279
       </tr>
279 280
       <tr>
280 281
         <td>收款人:</td>
281
-        <td colspan="2">{{charge_admin.user_name}}</td>
282
+        <td colspan="2">{{info.charge_admin.user_name}}</td>
282 283
         <td>审核人:</td>
283
-        <td colspan="2"></td>
284
+        <td colspan="2">{{info.p_admin.user_name}}</td>
284 285
         <td>制单人:</td>
285
-        <td colspan="2">{{p_admin.user_name}}</td>
286
+        <td colspan="2">{{info.p_admin.user_name}}</td>
286 287
         <td>打印日期</td>
287 288
         <td colspan="2">{{getNowTime()}}</td>
288 289
       </tr>
@@ -321,19 +322,32 @@
321 322
         }
322 323
       }
323 324
     },methods:{
325
+      getDay(dateString1,dateString2){
326
+          var  startDate = Date.parse(dateString1);
327
+          var  endDate = Date.parse(dateString2);
328
+          if (startDate>endDate){
329
+            return 0;
330
+          }
331
+          if (startDate==endDate){
332
+            return 1;
333
+          }
334
+          var days=(endDate - startDate)/(1*24*60*60*1000);
335
+          return  days;
336
+
337
+        },
324 338
       getNowTime: function () {
325
-        let dateTime
326
-        let yy = new Date().getFullYear()
327
-        let mm = new Date().getMonth() + 1
328
-        let dd = new Date().getDate()
329
-        let hh = new Date().getHours()
339
+        let dateTime;
340
+        let yy = new Date().getFullYear();
341
+        let mm = new Date().getMonth() + 1;
342
+        let dd = new Date().getDate();
343
+        let hh = new Date().getHours();
330 344
         let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
331 345
           :
332
-          new Date().getMinutes()
346
+          new Date().getMinutes();
333 347
         let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
334 348
           :
335
-          new Date().getSeconds()
336
-        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
349
+          new Date().getSeconds();
350
+        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
337 351
         return dateTime
338 352
       },
339 353
 

+ 50 - 48
src/xt_pages/outpatientCharges/summary.vue View File

@@ -104,7 +104,7 @@
104 104
                             结算单
105 105
                         </el-button>
106 106
                         <el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
107
-                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
107
+                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
108 108
                             退费
109 109
                         </el-button>
110 110
                         <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
@@ -248,7 +248,7 @@
248 248
 
249 249
       },toRefund(row){
250 250
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
251
-          var that = this
251
+          var that = this;
252 252
           this.$confirm('是否退费', '退费', {
253 253
             confirmButtonText: '确 定',
254 254
             cancelButtonText: '取 消',
@@ -259,13 +259,13 @@
259 259
               'patient_id': row.patient_id,
260 260
               'record_time': that.getTimes(row.settle_accounts_date),
261 261
               'admin_user_id': that.$store.getters.xt_user.user.id,
262
-            }
262
+            };
263 263
             axios.get('http://127.0.0.1:9532/api/refund/post', {
264 264
               params: params
265 265
             })
266 266
               .then(function(response) {
267 267
                 if (response.data.state == 0) {
268
-                  that.$message.error(response.data.msg)
268
+                  that.$message.error(response.data.msg);
269 269
                   return false
270 270
                 } else {
271 271
                   if (response.data.data.failed_code == -10) {
@@ -278,7 +278,7 @@
278 278
                     }).catch(() => {
279 279
                     })
280 280
                   } else {
281
-                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
281
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 });
282 282
                     that.getHisOrderList()
283 283
 
284 284
                   }
@@ -300,13 +300,13 @@
300 300
               'patient_id': this.patientInfo.id,
301 301
               'record_time': this.record_date
302 302
 
303
-            }
303
+            };
304 304
             Refund(params).then(response => {
305 305
               if (response.data.state == 0) {
306
-                this.$message.error(response.data.msg)
306
+                this.$message.error(response.data.msg);
307 307
                 return false
308 308
               } else {
309
-                this.$message({ message: '退费成功', type: 'success' })
309
+                this.$message({ message: '退费成功', type: 'success' });
310 310
                 this.getHisOrderList()
311 311
               }
312 312
             })
@@ -316,51 +316,52 @@
316 316
       },
317 317
       toPrint(row) {
318 318
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
319
-          this.statementVisible9504 = true
319
+          this.statementVisible9504 = true;
320 320
           let obj = {
321 321
             order_id: row.id,
322 322
             patient_id: row.patient_id,
323 323
             record_time: this.getTimes(row.settle_accounts_date),
324 324
             admin_user_id: this.$store.getters.xt_user.user.id
325
-          }
325
+          };
326 326
           this.orderObj9504 = obj
327 327
         } else {
328
-          this.statementVisible = true
328
+          this.statementVisible = true;
329 329
           let obj = {
330 330
             order_id: row.id
331
-          }
331
+          };
332 332
           this.orderObj = obj
333 333
         }
334 334
 
335 335
       },
336 336
       settlementPrint(row){
337
-        this.settlementVisible = true
337
+        this.settlementVisible = true;
338 338
         let obj = {
339 339
           order_id: row.id
340
-        }
340
+        };
341 341
         this.settlementObj = obj
342 342
       },
343 343
       export_detail() {
344 344
         let params = {
345 345
           start_time: this.start_time,
346
-          end_time: this.end_time
347
-        }
346
+          end_time: this.end_time,
347
+          p_type: 2,
348
+        };
348 349
         getExportConsumeDetailList(params).then(response => {
349 350
           if (response.data.state == 0) {
350
-            this.$message.error(response.data.msg)
351
+            this.$message.error(response.data.msg);
351 352
             return false
352 353
           } else {
353 354
 
354
-            let list = []
355
+            let list = [];
355 356
             for (let i = 0; i < response.data.data.order.length; i++) {
356
-              let order = response.data.data.order[i]
357
-              let number = ''
358
-              let name = ''
359
-              let department = ''
360
-              let doctor_name = ''
361
-              let balance_accounts = ''
357
+              let order = response.data.data.order[i];
358
+              let number = '';
359
+              let name = '';
360
+              let department = '';
361
+              let doctor_name = '';
362
+              let balance_accounts = '';
362 363
 
363
-              let order_status = ''
364
+              let order_status = '';
364 365
 
365 366
               if (order.his_patient != null && order.his_patient.number.length > 0) {
366 367
                 number = order.his_patient.number
@@ -421,13 +422,13 @@
421 422
                 '收费日期': '',
422 423
                 '收费状态': order_status,
423 424
                 '退费日期': ''
424
-              }
425
+              };
425 426
               list.push(obj)
426 427
             }
427 428
             import('@/vendor/Export2Excel').then(excel => {
428
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
429
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
430
-              const data = this.formatJson(filterVal, list)
429
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
430
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
431
+              const data = this.formatJson(filterVal, list);
431 432
               excel.export_json_to_excel({
432 433
                 header: tHeader,
433 434
                 data,
@@ -442,30 +443,30 @@
442 443
         return jsonData.map(v => filterVal.map(j => v[j]))
443 444
       },
444 445
       changeDoctor() {
445
-        this.page = 1
446
-        this.keywords = ''
446
+        this.page = 1;
447
+        this.keywords = '';
447 448
         this.getHisOrderList()
448 449
       },
449 450
       handleSizeChange(limit) {
450
-        this.limit = limit
451
+        this.limit = limit;
451 452
         this.getHisOrderList()
452 453
 
453 454
       }, handleCurrentChange(page) {
454
-        this.page = page
455
+        this.page = page;
455 456
         this.getHisOrderList()
456 457
 
457 458
       },
458 459
       handleStartTimeChange() {
459
-        this.page = 1
460
-        this.keywords = ''
460
+        this.page = 1;
461
+        this.keywords = '';
461 462
         this.getHisOrderList()
462 463
       }, handleEndTimeChange() {
463
-        this.page = 1
464
-        this.keywords = ''
464
+        this.page = 1;
465
+        this.keywords = '';
465 466
         this.getHisOrderList()
466 467
       },
467 468
       searchAction() {
468
-        this.page = 1
469
+        this.page = 1;
469 470
         this.getHisOrderList()
470 471
 
471 472
       },
@@ -486,14 +487,15 @@
486 487
           keywords: this.keywords,
487 488
           start_time: this.start_time,
488 489
           end_time: this.end_time,
489
-          type: this.admin_user_id
490
-        }
490
+          type: this.admin_user_id,
491
+          p_type: 2,
492
+        };
491 493
         getHisOrderList(params).then(response => {
492 494
           if (response.data.state == 0) {
493
-            this.$message.error(response.data.msg)
495
+            this.$message.error(response.data.msg);
494 496
             return false
495 497
           } else {
496
-            this.tableData = response.data.data.order
498
+            this.tableData = response.data.data.order;
497 499
             this.total = response.data.data.total
498 500
           }
499 501
         })
@@ -501,7 +503,7 @@
501 503
       }, getDoctorList() {
502 504
         getDoctorList().then(response => {
503 505
           if (response.data.state == 0) {
504
-            this.$message.error(response.data.msg)
506
+            this.$message.error(response.data.msg);
505 507
             return false
506 508
           } else {
507 509
             this.doctors = response.data.data.doctors
@@ -516,7 +518,7 @@
516 518
         }
517 519
       },
518 520
       invoicePrint(obj){
519
-        console.log(obj)
521
+        console.log(obj);
520 522
         let paramsObj = {
521 523
           order_id: obj.id,
522 524
           patient_id: obj.patient_id,
@@ -524,15 +526,15 @@
524 526
           age:obj.age,
525 527
           gend:obj.gend,
526 528
           setl_time:obj.setl_time
527
-        }
528
-        this.invoiceParams = paramsObj
529
+        };
530
+        this.invoiceParams = paramsObj;
529 531
         this.invoiceVisible = true
530 532
       }
531 533
     }, created() {
532 534
 
533 535
 
534
-      this.fetchAllAdminUsers()
535
-      this.getDoctorList()
536
+      this.fetchAllAdminUsers();
537
+      this.getDoctorList();
536 538
       this.getHisOrderList()
537 539
 
538 540
 

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -1938,7 +1938,7 @@
1938 1938
       },
1939 1939
 
1940 1940
       getPrescriptionList(id) {
1941
-        getPrescriptionList(id).then(response => {
1941
+        getPrescriptionList(id,2).then(response => {
1942 1942
           if (response.data.state == 1) {
1943 1943
             this.centerDialogVisible = true;
1944 1944
             var list = response.data.data.list;