Browse Source

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 years ago
parent
commit
b7111a605d

+ 7 - 4
src/api/his/his.js View File

143
 
143
 
144
 
144
 
145
 
145
 
146
-
147
-
148
-
149
-
146
+export function Refund(params) {
147
+  return request({
148
+    url: "/api/refund/post",
149
+    method: "post",
150
+    params:params,
151
+  });
152
+}
150
 
153
 
151
 
154
 
152
 
155
 

+ 12 - 2
src/xt_pages/data/specialDictionary.vue View File

26
           <dealer></dealer>
26
           <dealer></dealer>
27
         </el-tab-pane>
27
         </el-tab-pane>
28
 
28
 
29
-        <el-tab-pane label="门诊大病" name="7">
29
+        <el-tab-pane label="疾病类型" name="7">
30
           <!--<manufacturer></manufacturer>-->
30
           <!--<manufacturer></manufacturer>-->
31
           <diagnosis></diagnosis>
31
           <diagnosis></diagnosis>
32
         </el-tab-pane>
32
         </el-tab-pane>
33
-        <el-tab-pane label="配置项字典" name="8">
33
+
34
+        <el-tab-pane label="医疗类别" name="8">
35
+          <!--<manufacturer></manufacturer>-->
36
+          <diagnosis></diagnosis>
37
+        </el-tab-pane>
38
+
39
+        <el-tab-pane label="附加收费配置" name="9">
40
+          <!--<manufacturer></manufacturer>-->
41
+          <diagnosis></diagnosis>
42
+        </el-tab-pane>
43
+        <el-tab-pane label="配置项字典" name="10">
34
           <configure></configure>
44
           <configure></configure>
35
         </el-tab-pane>
45
         </el-tab-pane>
36
       </el-tabs>
46
       </el-tabs>

+ 149 - 66
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

6
     <div class="app-container" style="display:flex;flex: 1;padding: 20px 20px 0px 20px;">
6
     <div class="app-container" style="display:flex;flex: 1;padding: 20px 20px 0px 20px;">
7
       <div class="mainLeft">
7
       <div class="mainLeft">
8
         <div class="mainCell" style="justify-content: space-between;">
8
         <div class="mainCell" style="justify-content: space-between;">
9
-        <p>未就诊:<span>1</span>人</p>
10
-        <p>已就诊:<span>0</span>人</p>
9
+          <p style="color: red">未收费:<span>{{cal_one}}</span>人</p>
10
+          <p style="color: red">已收费:<span>{{cal_two}}</span>人</p>
11
+          <p style="color: red">已退费:<span>{{cal_three}}</span>人</p>
12
+
11
         </div>
13
         </div>
12
         <div class="mainCell">
14
         <div class="mainCell">
13
-        <el-radio-group v-model="radio" @change="changeRadio">
14
-        <el-radio :label=1>未就诊</el-radio>
15
-        <el-radio :label=2>已就诊</el-radio>
16
-        <el-radio :label=3>全部</el-radio>
17
-        </el-radio-group>
15
+          <el-radio-group v-model="radio" @change="changeRadio">
16
+            <el-radio :label=1>未收费</el-radio>
17
+            <el-radio :label=2>已收费</el-radio>
18
+            <el-radio :label=3>已退费</el-radio>
19
+            <el-radio :label=4>全部</el-radio>
20
+
21
+          </el-radio-group>
18
         </div>
22
         </div>
19
         <div class="mainCell" style="margin-bottom:10px;">
23
         <div class="mainCell" style="margin-bottom:10px;">
20
           <el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
24
           <el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
23
           </el-button>
27
           </el-button>
24
         </div>
28
         </div>
25
         <div>
29
         <div>
26
-          <el-table :data="patientTableData" :height="tableHeight" border style="width: 100%;" :row-style="{ color: '#303133' }"
30
+          <el-table :data="patientTableData" :height="tableHeight" border style="width: 100%;"
31
+                    :row-style="{ color: '#303133' }"
27
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
32
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
28
                     highlight-current-row ref="tab"
33
                     highlight-current-row ref="tab"
29
                     @current-change="handleCurrentChange">
34
                     @current-change="handleCurrentChange">
42
           <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
47
           <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
43
           <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button>
48
           <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button>
44
           <el-button size="small" @click="open(3)" type="primary">打印</el-button>
49
           <el-button size="small" @click="open(3)" type="primary">打印</el-button>
45
-          <el-button v-loading="loadingone"  size="small"
50
+          <el-button v-loading="loadingone" size="small"
46
                      @click="open(6)"
51
                      @click="open(6)"
52
+                     v-if="this.hisPatientInfo && this.hisPatientInfo.id == 0"
47
                      type="primary">挂号
53
                      type="primary">挂号
48
           </el-button>
54
           </el-button>
49
           <el-button v-loading="loadingtwo" v-if="this.info.prescription_status == 1" size="small"
55
           <el-button v-loading="loadingtwo" v-if="this.info.prescription_status == 1" size="small"
50
                      @click="open(4)"
56
                      @click="open(4)"
51
                      type="primary">收费
57
                      type="primary">收费
52
           </el-button>
58
           </el-button>
53
-          <el-button size="small" @click="open(5)" type="primary" v-if="this.info && this.info.prescription_status == 3">退费</el-button>
59
+          <el-button size="small" @click="open(5)" type="primary"
60
+                     v-if="this.info && this.info.prescription_status == 3">退费
61
+          </el-button>
54
         </div>
62
         </div>
55
 
63
 
56
         <div class="mainCenter">
64
         <div class="mainCenter">
211
   import prescriptionTable from './components/prescriptionTable'
219
   import prescriptionTable from './components/prescriptionTable'
212
   import additionalCharges from './components/additionalCharges'
220
   import additionalCharges from './components/additionalCharges'
213
   import { getPatientInformation, getPatientList } from '@/api/project/project'
221
   import { getPatientInformation, getPatientList } from '@/api/project/project'
214
-  import { getPatientInfo, getSchedulePatientList, register, upload } from '@/api/his/his'
222
+  import { getPatientInfo, getSchedulePatientList, register, upload,Refund } from '@/api/his/his'
215
 
223
 
216
   const moment = require('moment')
224
   const moment = require('moment')
217
   export default {
225
   export default {
229
           { path: false, name: '门诊收费' },
237
           { path: false, name: '门诊收费' },
230
           { path: false, name: '门诊收费管理' }
238
           { path: false, name: '门诊收费管理' }
231
         ],
239
         ],
232
-        tableHeight:'',
240
+        cal_one:'',
241
+        cal_two:'',
242
+        cal_three:'',
243
+        tableHeight: '',
233
         fullHeight: document.documentElement.clientHeight,
244
         fullHeight: document.documentElement.clientHeight,
234
         activeName: 'first',
245
         activeName: 'first',
235
         info: {},
246
         info: {},
258
         radioStatus: 1,
269
         radioStatus: 1,
259
         search_input: '',
270
         search_input: '',
260
         start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
271
         start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
261
-        patient_id:0,
262
-        prescription_id:0
272
+        patient_id: 0,
273
+        prescription_id: 0,
274
+        all_table_data:[],
275
+        order:{},
263
       }
276
       }
264
     },
277
     },
265
     created() {
278
     created() {
365
 
378
 
366
       },
379
       },
367
       tabclickEvent(val) {
380
       tabclickEvent(val) {
368
-        console.log("val",val.name)
381
+        console.log('val', val.name)
369
         for (let i = 0; i < this.prescriptions.length; i++) {
382
         for (let i = 0; i < this.prescriptions.length; i++) {
370
           if (this.prescriptions[i].name == val.name) {
383
           if (this.prescriptions[i].name == val.name) {
371
             this.curPrescriptions = {}
384
             this.curPrescriptions = {}
373
             this.curPrescriptions = temp
386
             this.curPrescriptions = temp
374
           }
387
           }
375
         }
388
         }
376
-        console.log("9999",this.curPrescriptions)
389
+        console.log('9999', this.curPrescriptions)
377
         this.prescription_id = this.curPrescriptions.id
390
         this.prescription_id = this.curPrescriptions.id
378
         this.total = 0
391
         this.total = 0
379
         this.total = this.getTotalOne()
392
         this.total = this.getTotalOne()
380
-       
381
-
382
-
383
 
393
 
384
       }, deepClone(source) {
394
       }, deepClone(source) {
385
         if (!source && typeof source !== 'object') {
395
         if (!source && typeof source !== 'object') {
394
           }
404
           }
395
         })
405
         })
396
         return targetObj
406
         return targetObj
397
-      },getTotalOne(){
407
+      }, getTotalOne() {
398
         var total = 0
408
         var total = 0
399
-          if(this.curPrescriptions.type == 1) {
400
-            if (this.curPrescriptions.advices != null) {
401
-              for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
402
-                console.log(this.curPrescriptions.advices[a].retail_price)
403
-                console.log(this.curPrescriptions.advices[a].prescribing_number)
409
+        if (this.curPrescriptions.type == 1) {
410
+          if (this.curPrescriptions.advices != null) {
411
+            for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
412
+              console.log(this.curPrescriptions.advices[a].retail_price)
413
+              console.log(this.curPrescriptions.advices[a].prescribing_number)
404
 
414
 
405
-                total = total + this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number
406
-              }
415
+              total = total + this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number
407
             }
416
             }
408
-            return total
409
-
410
-          }else{
411
-            var total = 0
412
-            if (this.curPrescriptions.project != null) {
413
-              for (let b = 0; b < this.curPrescriptions.project.length; b++) {
414
-                console.log(this.curPrescriptions.project[b].price )
415
-                console.log(this.curPrescriptions.project[b].total )
416
-                total = total + this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total
417
-              }
417
+          }
418
+          return total
419
+
420
+        } else {
421
+          var total = 0
422
+          if (this.curPrescriptions.project != null) {
423
+            for (let b = 0; b < this.curPrescriptions.project.length; b++) {
424
+              console.log(this.curPrescriptions.project[b].price)
425
+              console.log(this.curPrescriptions.project[b].total)
426
+              total = total + this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total
418
             }
427
             }
419
-            return total
420
-
421
           }
428
           }
429
+          return total
422
 
430
 
423
-
431
+        }
424
 
432
 
425
       },
433
       },
426
       getTotal() {
434
       getTotal() {
445
         }
453
         }
446
       },
454
       },
447
       open(index) {
455
       open(index) {
448
-        console.log("index",index)
456
+        console.log('index', index)
449
         if (index == 1) {
457
         if (index == 1) {
450
 
458
 
451
         } else if (index == 2) {
459
         } else if (index == 2) {
452
-           
453
-           this.$router.push("/outpatientDoctorStation/printtwo?record="+this.record_date)
454
-        
455
-        } else if(index == 3){
456
-            this.$router.push("/outpatientCharges/treatPrint?record_date="+this.record_date+"&patient_id="+this.patient_id+"&prescription_id="+this.prescription_id)
460
+
461
+          this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
462
+
463
+        } else if (index == 3) {
464
+          this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
457
         } else if (index == 4) {
465
         } else if (index == 4) {
458
 
466
 
459
           let params = {
467
           let params = {
478
           this.$message({ message: '收费成功', type: 'success' })
486
           this.$message({ message: '收费成功', type: 'success' })
479
         } else if (index == 5) {
487
         } else if (index == 5) {
480
           let params = {
488
           let params = {
481
-            'id': this.patientInfo.id,
482
-            'record_time': this.record_date
489
+            'order_id': this.order.id,
490
+            'number': this.order.number,
483
           }
491
           }
484
           Refund(params).then(response => {
492
           Refund(params).then(response => {
485
             if (response.data.state == 0) {
493
             if (response.data.state == 0) {
494
             }
502
             }
495
           })
503
           })
496
 
504
 
497
-
498
-
499
-
500
           this.$message({ message: '退费成功', type: 'success' })
505
           this.$message({ message: '退费成功', type: 'success' })
501
         } else if (index == 6) {
506
         } else if (index == 6) {
502
 
507
 
531
         this.getPatientList()
536
         this.getPatientList()
532
       },
537
       },
533
       changeRadio(id) {
538
       changeRadio(id) {
534
-        console.log(id)
535
-        this.radioStatus = id
536
-        this.getPatientList()
539
+        // console.log(id)
540
+        // this.radioStatus = id
541
+        // this.getPatientList()
542
+
543
+        switch (id) {
544
+          case 1:
545
+                this.patientTableData = []
546
+
547
+            for (let i = 0; i < this.all_table_data.length; i++){
548
+              if(this.all_table_data[i].info.prescription_status == 0 || this.all_table_data[i].info.prescription_status == 1 || this.all_table_data[i].info.prescription_status == 2 ){
549
+                this.patientTableData.push(this.all_table_data[i])
550
+              }
551
+
552
+            }
553
+            break
554
+          case 2:
555
+            this.patientTableData = []
556
+            for (let i = 0; i < this.all_table_data.length; i++){
557
+              if(this.all_table_data[i].info.prescription_status == 3){
558
+                this.patientTableData.push(this.all_table_data[i])
559
+              }
560
+
561
+
562
+            }
563
+            break
564
+          case 3:
565
+            this.patientTableData = []
566
+
567
+            for (let i = 0; i < this.all_table_data.length; i++){
568
+
569
+              if(this.all_table_data[i].info.prescription_status == 4){
570
+                this.patientTableData.push(this.all_table_data[i])
571
+              }
572
+
573
+            }
574
+            break
575
+          case 4:
576
+            this.patientTableData = []
577
+            this.patientTableData = this.all_table_data
578
+            break
579
+
580
+        }
581
+
582
+
583
+
584
+
537
       },
585
       },
538
 
586
 
539
       //患者列表
587
       //患者列表
547
             return false
595
             return false
548
           } else {
596
           } else {
549
             this.patientTableData = []
597
             this.patientTableData = []
598
+            this.all_table_data = []
599
+            let one_count = 0
600
+            let two_count = 0
601
+            let three_count = 0
550
             for (let i = 0; i < response.data.data.list.length; i++) {
602
             for (let i = 0; i < response.data.data.list.length; i++) {
551
-               console.log("99999999",response.data.data.list)
603
+              // console.log('99999999', response.data.data.list)
604
+
605
+              if(response.data.data.list[i].info.prescription_status == 0 || response.data.data.list[i].info.prescription_status == 1 ||response.data.data.list[i].info.prescription_status == 2 ){
606
+                if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
607
+                  one_count = one_count + 1
608
+                  this.patientTableData.push(response.data.data.list[i])
609
+                }
610
+              }
611
+
612
+              if(response.data.data.list[i].info.prescription_status == 3){
613
+                if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
614
+
615
+                  two_count = two_count + 1
616
+                }
617
+              }
618
+
619
+              if(response.data.data.list[i].info.prescription_status == 4){
620
+                if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
621
+                  three_count = three_count + 1
622
+                }
623
+              }
624
+
552
               if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
625
               if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
553
-                this.patientTableData.push(response.data.data.list[i])
626
+                this.all_table_data.push(response.data.data.list[i])
554
               }
627
               }
555
             }
628
             }
629
+
630
+            this.cal_one = one_count
631
+            this.cal_two = two_count
632
+            this.cal_three = three_count
633
+
634
+            this.$refs.tab.setCurrentRow(this.patientTableData[0])
635
+            this.getPatientInformation(this.patientTableData[0].patients.id,"")
636
+
556
           }
637
           }
557
         })
638
         })
558
       },
639
       },
563
       },
644
       },
564
       handleCurrentChange(val) {
645
       handleCurrentChange(val) {
565
         console.log('val', val)
646
         console.log('val', val)
566
-        this.getPatientInformation(val.patients.id)
647
+        this.getPatientInformation(val.patients.id, val.info.batch_number)
567
         this.patient_id = val.patients.id
648
         this.patient_id = val.patients.id
568
       },
649
       },
569
 
650
 
570
       //获取患者的基本信息
651
       //获取患者的基本信息
571
-      getPatientInformation(id) {
652
+      getPatientInformation(id,batch_number) {
572
         let params = {
653
         let params = {
573
           'record_date': this.record_date,
654
           'record_date': this.record_date,
574
-          'patient_id': id
655
+          'patient_id': id,
656
+          'number':batch_number,
575
         }
657
         }
576
         getPatientInfo(params).then(response => {
658
         getPatientInfo(params).then(response => {
577
           if (response.data.state == 0) {
659
           if (response.data.state == 0) {
581
             this.patientInfo = response.data.data.xt_info
663
             this.patientInfo = response.data.data.xt_info
582
             this.hisPatientInfo = response.data.data.his_info
664
             this.hisPatientInfo = response.data.data.his_info
583
             this.info = response.data.data.info
665
             this.info = response.data.data.info
666
+            this.order = response.data.data.order
667
+
584
             this.prescriptions = []
668
             this.prescriptions = []
585
             for (let i = 0; i < response.data.data.prescription.length; i++) {
669
             for (let i = 0; i < response.data.data.prescription.length; i++) {
586
               var prescription = response.data.data.prescription[i]
670
               var prescription = response.data.data.prescription[i]
631
                 name: '处方' + index,
715
                 name: '处方' + index,
632
                 advices: tempAdvice,
716
                 advices: tempAdvice,
633
                 project: tempProject,
717
                 project: tempProject,
634
-                order_status:response.data.data.prescription[i].order_status,
718
+                order_status: response.data.data.prescription[i].order_status,
635
                 type: response.data.data.prescription[i].type
719
                 type: response.data.data.prescription[i].type
636
               }
720
               }
637
               this.prescriptions.push(obj)
721
               this.prescriptions.push(obj)
640
               this.total = this.getTotalOne()
724
               this.total = this.getTotalOne()
641
               console.log(this.total)
725
               console.log(this.total)
642
 
726
 
643
-
644
             }
727
             }
645
           }
728
           }
646
         })
729
         })
647
       }
730
       }
648
     },
731
     },
649
-    mounted(){
732
+    mounted() {
650
       const that = this
733
       const that = this
651
       window.onresize = () => {
734
       window.onresize = () => {
652
         return (() => {
735
         return (() => {
656
       }
739
       }
657
     },
740
     },
658
     watch: {
741
     watch: {
659
-      fullHeight (val) {
660
-        if(!this.timer) {
742
+      fullHeight(val) {
743
+        if (!this.timer) {
661
           this.fullHeight = val
744
           this.fullHeight = val
662
           let tableHeight = val - 263
745
           let tableHeight = val - 263
663
           this.tableHeight = tableHeight
746
           this.tableHeight = tableHeight
664
           this.timer = true
747
           this.timer = true
665
           let that = this
748
           let that = this
666
-          setTimeout(function (){
749
+          setTimeout(function() {
667
             that.timer = false
750
             that.timer = false
668
-          },400)
751
+          }, 400)
669
         }
752
         }
670
       }
753
       }
671
     }
754
     }

+ 1 - 3
src/xt_pages/outpatientCharges/summary.vue View File

66
           <template slot-scope="scope">
66
           <template slot-scope="scope">
67
             <div v-if="scope.row.order_status == 1">待结算</div>
67
             <div v-if="scope.row.order_status == 1">待结算</div>
68
             <div v-if="scope.row.order_status == 2">已结算</div>
68
             <div v-if="scope.row.order_status == 2">已结算</div>
69
-            <div v-if="scope.row.order_status == 3">结算失败</div>
70
-            <div v-if="scope.row.order_status == 4">已退费</div>
71
-
69
+            <div v-if="scope.row.order_status == 3">已退费</div>
72
           </template>
70
           </template>
73
         </el-table-column>
71
         </el-table-column>
74
         <el-table-column align="center" prop="name" label="操作">
72
         <el-table-column align="center" prop="name" label="操作">

+ 10 - 10
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

22
           <!--<el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>-->
22
           <!--<el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>-->
23
           <!--</el-form-item>-->
23
           <!--</el-form-item>-->
24
           <el-form-item label="挂号类型: " prop="name">
24
           <el-form-item label="挂号类型: " prop="name">
25
-            <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
26
-              <el-option
27
-                v-for="(item,index) in this.register_types"
28
-                :key="index"
29
-                :label="item.name"
30
-                :value="item.name">
31
-              </el-option>
32
-            </el-select>
33
-          </el-form-item>
34
-          <el-form-item label="医疗类型: " prop="name">
35
             <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
25
             <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
36
               <el-option
26
               <el-option
37
                 v-for="(item,index) in getDictionaryDataConfig('system','register_type')"
27
                 v-for="(item,index) in getDictionaryDataConfig('system','register_type')"
41
               </el-option>
31
               </el-option>
42
             </el-select>
32
             </el-select>
43
           </el-form-item>
33
           </el-form-item>
34
+          <!--<el-form-item label="医疗类型: " prop="name">-->
35
+            <!--<el-select style="margin-right:5px;" v-model="register_type" placeholder="">-->
36
+              <!--<el-option-->
37
+                <!--v-for="(item,index) in getDictionaryDataConfig('system','register_type')"-->
38
+                <!--:key="index"-->
39
+                <!--:label="item.name"-->
40
+                <!--:value="item.name">-->
41
+              <!--</el-option>-->
42
+            <!--</el-select>-->
43
+          <!--</el-form-item>-->
44
           <el-form-item label="诊断:" prop="name">
44
           <el-form-item label="诊断:" prop="name">
45
 
45
 
46
             <el-select style="margin-right:5px;" v-model="state1" placeholder="">
46
             <el-select style="margin-right:5px;" v-model="state1" placeholder="">

+ 17 - 17
src/xt_pages/outpatientRegistration/index.vue View File

65
                     <el-form-item label="证件号码:" prop="idCard"  :validate-event="is_Name">
65
                     <el-form-item label="证件号码:" prop="idCard"  :validate-event="is_Name">
66
                         <el-input v-model="form.idCard"></el-input>
66
                         <el-input v-model="form.idCard"></el-input>
67
                     </el-form-item>
67
                     </el-form-item>
68
-   
68
+
69
                 </el-form>
69
                 </el-form>
70
             </div>
70
             </div>
71
             <div class="nameTitle">患者挂号信息:</div>
71
             <div class="nameTitle">患者挂号信息:</div>
122
                 </el-form>
122
                 </el-form>
123
                 <el-button style="float:right" @click="saveHisPatient('form')" type="primary">挂号</el-button>
123
                 <el-button style="float:right" @click="saveHisPatient('form')" type="primary">挂号</el-button>
124
             </div>
124
             </div>
125
-            
125
+
126
         </div>
126
         </div>
127
     </div>
127
     </div>
128
 </template>
128
 </template>
130
 <script>
130
 <script>
131
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
131
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
132
 import { basename } from 'path'
132
 import { basename } from 'path'
133
-import { getAllDoctorList,saveHisPatient,getTodaySchedulePatient } from "@/api/project/project"
133
+import { getAllDoctorList,saveHisPatient } from "@/api/project/project"
134
 const moment = require('moment')
134
 const moment = require('moment')
135
 export default {
135
 export default {
136
     components:{
136
     components:{
159
                 registrationFee:'',
159
                 registrationFee:'',
160
                 medicalExpenses:'',
160
                 medicalExpenses:'',
161
                 cost:'',
161
                 cost:'',
162
-                total: '' 
162
+                total: ''
163
             },
163
             },
164
             settlement: [{
164
             settlement: [{
165
                 value: 1,
165
                 value: 1,
260
     computed:{
260
     computed:{
261
         total(){
261
         total(){
262
             if(this.form.registrationFee || this.form.medicalExpenses || this.form.cost){
262
             if(this.form.registrationFee || this.form.medicalExpenses || this.form.cost){
263
-                return parseFloat(this.form.registrationFee ? this.form.registrationFee : 0) + parseFloat(this.form.medicalExpenses ? this.form.medicalExpenses : 0) + parseFloat(this.form.cost ? this.form.cost : 0) 
263
+                return parseFloat(this.form.registrationFee ? this.form.registrationFee : 0) + parseFloat(this.form.medicalExpenses ? this.form.medicalExpenses : 0) + parseFloat(this.form.cost ? this.form.cost : 0)
264
             }
264
             }
265
         }
265
         }
266
     },
266
     },
278
             console.log(date)
278
             console.log(date)
279
             let curTime = moment(new Date(date)).format('YYYY-MM-DD')
279
             let curTime = moment(new Date(date)).format('YYYY-MM-DD')
280
             console.log("curTime22222",curTime)
280
             console.log("curTime22222",curTime)
281
-           
281
+
282
             console.log(this.jsGetAge(curTime))
282
             console.log(this.jsGetAge(curTime))
283
 
283
 
284
             this.form.age = this.jsGetAge(curTime)
284
             this.form.age = this.jsGetAge(curTime)
346
                 this.$message({message: '添加成功',type: 'success'});
346
                 this.$message({message: '添加成功',type: 'success'});
347
             }
347
             }
348
         },
348
         },
349
-        
349
+
350
         getAllDoctorList(){
350
         getAllDoctorList(){
351
            getAllDoctorList().then(response=>{
351
            getAllDoctorList().then(response=>{
352
              if(response.data.state == 1){
352
              if(response.data.state == 1){
356
                console.log("department",department)
356
                console.log("department",department)
357
                this.departmentList = department
357
                this.departmentList = department
358
              }
358
              }
359
-           })   
359
+           })
360
         },
360
         },
361
-        saveHisPatient(formName){   
361
+        saveHisPatient(formName){
362
            if(this.form.name == ""){
362
            if(this.form.name == ""){
363
              this.$message.error("患者姓名不能为空")
363
              this.$message.error("患者姓名不能为空")
364
              this.is_Name = true
364
              this.is_Name = true
394
                 }
394
                 }
395
                 if(this.form.costChecked == false){
395
                 if(this.form.costChecked == false){
396
                 this.check = 2
396
                 this.check = 2
397
-                } 
397
+                }
398
                 if(this.form.idCard == ""){
398
                 if(this.form.idCard == ""){
399
                    this.show = true
399
                    this.show = true
400
                 }
400
                 }
403
                     medicalInsuranceCard:this.form.medicalInsuranceCard,
403
                     medicalInsuranceCard:this.form.medicalInsuranceCard,
404
                     name:this.form.name,
404
                     name:this.form.name,
405
                     sex:this.form.sex,
405
                     sex:this.form.sex,
406
-                    certificates:this.form.certificates, 
406
+                    certificates:this.form.certificates,
407
                     medicalCare:this.form.medicalCare,
407
                     medicalCare:this.form.medicalCare,
408
                     birthDay:moment(new Date(this.form.birthday)).format('YYYY-MM-DD'),
408
                     birthDay:moment(new Date(this.form.birthday)).format('YYYY-MM-DD'),
409
                     age:parseInt(this.form.age),
409
                     age:parseInt(this.form.age),
439
                      this.form.registrationFee = "",
439
                      this.form.registrationFee = "",
440
                      this.form.medicalExpenses = "",
440
                      this.form.medicalExpenses = "",
441
                      this.form.cost="",
441
                      this.form.cost="",
442
-                     this.form.total= "" 
443
-                   } 
442
+                     this.form.total= ""
443
+                   }
444
                 })
444
                 })
445
-             } 
445
+             }
446
           })
446
           })
447
         },
447
         },
448
        getTodaySchedulePatient(){
448
        getTodaySchedulePatient(){
451
                var patient =  response.data.data.patient
451
                var patient =  response.data.data.patient
452
                console.log("今日排班患者",patient)
452
                console.log("今日排班患者",patient)
453
              }
453
              }
454
-          }) 
454
+          })
455
        }
455
        }
456
     },
456
     },
457
     created(){
457
     created(){
458
       //获取当前机构有人员信息
458
       //获取当前机构有人员信息
459
-      this.getAllDoctorList()   
459
+      this.getAllDoctorList()
460
       //获取今日排班的患者
460
       //获取今日排班的患者
461
       this.getTodaySchedulePatient()
461
       this.getTodaySchedulePatient()
462
     }
462
     }
474
     margin: 0 auto;
474
     margin: 0 auto;
475
 }
475
 }
476
 .basicForm{
476
 .basicForm{
477
-    
477
+
478
     display: flex;
478
     display: flex;
479
     flex-wrap: wrap;
479
     flex-wrap: wrap;
480
     justify-content: space-between;
480
     justify-content: space-between;