Bläddra i källkod

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

csx 3 år sedan
förälder
incheckning
5e8267513c

+ 5 - 2
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Visa fil

@@ -945,7 +945,8 @@
945 945
           'his_patient_id':val.his_patient.id,
946 946
           'record_date': val,
947 947
           'patient_id': this.patientInfo.id,
948
-          'type': this.radio
948
+          'type': this.radio,
949
+          'p_type': 1,
949 950
         };
950 951
         GetHisHospitalChargePatientInfo(params).then(response => {
951 952
           if (response.data.state == 0) {
@@ -2471,7 +2472,9 @@
2471 2472
           'number': batch_number,
2472 2473
           'start_time': this.other_start_time,
2473 2474
           'end_time': this.other_end_time,
2474
-          'type': this.radio
2475
+          'type': this.radio,
2476
+          'p_type': 1,
2477
+
2475 2478
 
2476 2479
         };
2477 2480
         this.loading = true;

+ 5 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Visa fil

@@ -979,7 +979,8 @@
979 979
         let params = {
980 980
           'record_date': val,
981 981
           'patient_id': this.patientInfo.id,
982
-          'type': this.radio
982
+          'type': this.radio,
983
+          'p_type':2,
983 984
         };
984 985
         getChargeHisPatientInfo(params).then(response => {
985 986
           if (response.data.state == 0) {
@@ -2386,7 +2387,9 @@
2386 2387
           'number': batch_number,
2387 2388
           'start_time': this.other_start_time,
2388 2389
           'end_time': this.other_end_time,
2389
-          'type': this.radio
2390
+          'type': this.radio,
2391
+          'p_type':2,
2392
+
2390 2393
 
2391 2394
         };
2392 2395
         this.loading = true;

+ 46 - 46
src/xt_pages/outpatientCharges/summary.vue Visa fil

@@ -247,8 +247,8 @@
247 247
         }
248 248
 
249 249
       },toRefund(row){
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
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 || this.$store.getters.xt_user.org_id == 9990) {
251
+          var that = this;
252 252
           this.$confirm('是否退费', '退费', {
253 253
             confirmButtonText: '确 定',
254 254
             cancelButtonText: '取 消',
@@ -259,19 +259,19 @@
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) {
272 272
                     that.$message.error(response.data.data.msg)
273 273
                   } else {
274
-                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
274
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 });
275 275
                     that.getHisOrderList()
276 276
 
277 277
                   }
@@ -293,13 +293,13 @@
293 293
               'patient_id': this.patientInfo.id,
294 294
               'record_time': this.record_date
295 295
 
296
-            }
296
+            };
297 297
             Refund(params).then(response => {
298 298
               if (response.data.state == 0) {
299
-                this.$message.error(response.data.msg)
299
+                this.$message.error(response.data.msg);
300 300
                 return false
301 301
               } else {
302
-                this.$message({ message: '退费成功', type: 'success' })
302
+                this.$message({ message: '退费成功', type: 'success' });
303 303
                 this.getHisOrderList()
304 304
               }
305 305
             })
@@ -309,51 +309,51 @@
309 309
       },
310 310
       toPrint(row) {
311 311
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
312
-          this.statementVisible9504 = true
312
+          this.statementVisible9504 = true;
313 313
           let obj = {
314 314
             order_id: row.id,
315 315
             patient_id: row.patient_id,
316 316
             record_time: this.getTimes(row.settle_accounts_date),
317 317
             admin_user_id: this.$store.getters.xt_user.user.id
318
-          }
318
+          };
319 319
           this.orderObj9504 = obj
320 320
         } else {
321
-          this.statementVisible = true
321
+          this.statementVisible = true;
322 322
           let obj = {
323 323
             order_id: row.id
324
-          }
324
+          };
325 325
           this.orderObj = obj
326 326
         }
327 327
 
328 328
       },
329 329
       settlementPrint(row){
330
-        this.settlementVisible = true
330
+        this.settlementVisible = true;
331 331
         let obj = {
332 332
           order_id: row.id
333
-        }
333
+        };
334 334
         this.settlementObj = obj
335 335
       },
336 336
       export_detail() {
337 337
         let params = {
338 338
           start_time: this.start_time,
339 339
           end_time: this.end_time
340
-        }
340
+        };
341 341
         getExportConsumeDetailList(params).then(response => {
342 342
           if (response.data.state == 0) {
343
-            this.$message.error(response.data.msg)
343
+            this.$message.error(response.data.msg);
344 344
             return false
345 345
           } else {
346 346
 
347
-            let list = []
347
+            let list = [];
348 348
             for (let i = 0; i < response.data.data.order.length; i++) {
349
-              let order = response.data.data.order[i]
350
-              let number = ''
351
-              let name = ''
352
-              let department = ''
353
-              let doctor_name = ''
354
-              let balance_accounts = ''
349
+              let order = response.data.data.order[i];
350
+              let number = '';
351
+              let name = '';
352
+              let department = '';
353
+              let doctor_name = '';
354
+              let balance_accounts = '';
355 355
 
356
-              let order_status = ''
356
+              let order_status = '';
357 357
 
358 358
               if (order.his_patient != null && order.his_patient.number.length > 0) {
359 359
                 number = order.his_patient.number
@@ -414,13 +414,13 @@
414 414
                 '收费日期': '',
415 415
                 '收费状态': order_status,
416 416
                 '退费日期': ''
417
-              }
417
+              };
418 418
               list.push(obj)
419 419
             }
420 420
             import('@/vendor/Export2Excel').then(excel => {
421
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
422
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
423
-              const data = this.formatJson(filterVal, list)
421
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
422
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
423
+              const data = this.formatJson(filterVal, list);
424 424
               excel.export_json_to_excel({
425 425
                 header: tHeader,
426 426
                 data,
@@ -435,30 +435,30 @@
435 435
         return jsonData.map(v => filterVal.map(j => v[j]))
436 436
       },
437 437
       changeDoctor() {
438
-        this.page = 1
439
-        this.keywords = ''
438
+        this.page = 1;
439
+        this.keywords = '';
440 440
         this.getHisOrderList()
441 441
       },
442 442
       handleSizeChange(limit) {
443
-        this.limit = limit
443
+        this.limit = limit;
444 444
         this.getHisOrderList()
445 445
 
446 446
       }, handleCurrentChange(page) {
447
-        this.page = page
447
+        this.page = page;
448 448
         this.getHisOrderList()
449 449
 
450 450
       },
451 451
       handleStartTimeChange() {
452
-        this.page = 1
453
-        this.keywords = ''
452
+        this.page = 1;
453
+        this.keywords = '';
454 454
         this.getHisOrderList()
455 455
       }, handleEndTimeChange() {
456
-        this.page = 1
457
-        this.keywords = ''
456
+        this.page = 1;
457
+        this.keywords = '';
458 458
         this.getHisOrderList()
459 459
       },
460 460
       searchAction() {
461
-        this.page = 1
461
+        this.page = 1;
462 462
         this.getHisOrderList()
463 463
 
464 464
       },
@@ -480,13 +480,13 @@
480 480
           start_time: this.start_time,
481 481
           end_time: this.end_time,
482 482
           type: this.admin_user_id
483
-        }
483
+        };
484 484
         getHisOrderList(params).then(response => {
485 485
           if (response.data.state == 0) {
486
-            this.$message.error(response.data.msg)
486
+            this.$message.error(response.data.msg);
487 487
             return false
488 488
           } else {
489
-            this.tableData = response.data.data.order
489
+            this.tableData = response.data.data.order;
490 490
             this.total = response.data.data.total
491 491
           }
492 492
         })
@@ -494,7 +494,7 @@
494 494
       }, getDoctorList() {
495 495
         getDoctorList().then(response => {
496 496
           if (response.data.state == 0) {
497
-            this.$message.error(response.data.msg)
497
+            this.$message.error(response.data.msg);
498 498
             return false
499 499
           } else {
500 500
             this.doctors = response.data.data.doctors
@@ -509,7 +509,7 @@
509 509
         }
510 510
       },
511 511
       invoicePrint(obj){
512
-        console.log(obj)
512
+        console.log(obj);
513 513
         let paramsObj = {
514 514
           order_id: obj.id,
515 515
           patient_id: obj.patient_id,
@@ -517,15 +517,15 @@
517 517
           age:obj.age,
518 518
           gend:obj.gend,
519 519
           setl_time:obj.setl_time
520
-        }
521
-        this.invoiceParams = paramsObj
520
+        };
521
+        this.invoiceParams = paramsObj;
522 522
         this.invoiceVisible = true
523 523
       }
524 524
     }, created() {
525 525
 
526 526
 
527
-      this.fetchAllAdminUsers()
528
-      this.getDoctorList()
527
+      this.fetchAllAdminUsers();
528
+      this.getDoctorList();
529 529
       this.getHisOrderList()
530 530
 
531 531