Browse Source

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

XMLWAN 4 years ago
parent
commit
4ba0b093b5

File diff suppressed because it is too large
+ 535 - 464
src/xt_pages/data/components/addDrugs.vue


+ 8 - 2
src/xt_pages/data/components/drugs.vue View File

@@ -264,8 +264,9 @@
264 264
           is_charge_predict: '',//是否收费预估项
265 265
           is_statistics_work: '',//是否统计工作量
266 266
           is_charge_use: '',//是否收费常用项
267
-          drug_code: ''
268
-
267
+          drug_code: '',
268
+          hosp_appr_flag:'',
269
+          lmt_used_flag:'',
269 270
         },
270 271
         tempFormValue: {
271 272
           drug_name: '',//药品名称
@@ -316,6 +317,8 @@
316 317
           social_security_directory_code:'',
317 318
           is_mark:'',
318 319
           prescription_mark:'',
320
+          hosp_appr_flag:'',
321
+          lmt_used_flag:'',
319 322
 
320 323
         },
321 324
 
@@ -602,6 +605,9 @@
602 605
               if(this.formValue.prescription_mark == 0){
603 606
                   this.formValue.prescription_mark = ""
604 607
               }
608
+              if(this.formValue.hosp_appr_flag == 0){
609
+                this.formValue.hosp_appr_flag = ""
610
+              }
605 611
               this.$refs.addDrugs.show(id, this.formValue)
606 612
 
607 613
             }

+ 19 - 3
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

@@ -182,7 +182,7 @@
182 182
 </template>
183 183
 
184 184
 <script>
185
-  import {uParseTime} from "@/utils/tools";
185
+  import {uParseTime,jsGetAge} from "@/utils/tools";
186 186
   import axios from 'axios'
187 187
   import {PostSearch} from '@/api/patient'
188 188
 
@@ -394,10 +394,23 @@
394 394
         this.form.id = val.id
395 395
         this.form.name = val.name
396 396
         this.form.gender = val.gender
397
-        this.form.age = val.age
398 397
         this.form.birthday = uParseTime(val.birthday, '{y}-{m}-{d}')
399 398
         this.form.phone = val.phone
400 399
         this.form.id_card = val.id_card_no
400
+        var thisLen =  this.form.id_card.length;
401
+        var birth = "";
402
+        if (thisLen == 15) {
403
+          birth = "19" + this.form.id_card.substr(6, 6);
404
+        } else {
405
+          birth = this.form.id_card.substr(6, 8);
406
+        }
407
+        var births =
408
+                birth.substr(0, 4) +
409
+                "-" +
410
+                birth.substr(4, 2) +
411
+                "-" +
412
+                birth.substr(6, 2);
413
+        this.form.age = jsGetAge(births, "-");
401 414
       },
402 415
       querySearchAsync(keyword, cb) {
403 416
         let key = ''
@@ -468,6 +481,10 @@
468 481
       },
469 482
       show: function () {
470 483
         this.form = Object.assign({}, this.resetForm)
484
+        this.form.p_type = 14
485
+        this.form.sick_type = this.sick[0].id
486
+        this.form.diagnosis = this.diagnoses[0].id
487
+
471 488
         // this.form.name = patientInfo.name
472 489
         // this.form.gender = patientInfo.gender
473 490
         // this.form.age = patientInfo.age
@@ -479,7 +496,6 @@
479 496
         // this.form.id_card_type = 1
480 497
         // if( this.form.social_type == 0){
481 498
         //   this.form.social_type = ""
482
-        //
483 499
         // }
484 500
         this.visibility = true
485 501
 

+ 1 - 1
src/xt_pages/outpatientCharges/costComparison.vue View File

@@ -213,7 +213,7 @@
213 213
 
214 214
           var that = this
215 215
 
216
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9671) {
216
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
217 217
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
218 218
               params: params
219 219
             })

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrint.vue View File

@@ -152,7 +152,7 @@
152 152
 
153 153
       },
154 154
       getInfo(order_id) {
155
-        if (this.$store.getters.xt_user.org_id == 3877 || 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) {
155
+        if (this.$store.getters.xt_user.org_id == 3877 || 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) {
156 156
 
157 157
           var that = this
158 158
 

+ 136 - 111
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -65,10 +65,10 @@
65 65
                         </el-button>
66 66
 
67 67
                         <el-button
68
-                                   v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1"
69
-                                   size="small"
70
-                                   @click="sz_open(3)"
71
-                                   type="primary">收费
68
+                                v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1"
69
+                                size="small"
70
+                                @click="sz_open(3)"
71
+                                type="primary">收费
72 72
                         </el-button>
73 73
 
74 74
                         <el-button size="small" @click="sz_open(11)" type="primary"
@@ -86,7 +86,7 @@
86 86
                         <el-button size="small" @click="sz_open(10)" type="primary">打印</el-button>
87 87
 
88 88
                         <!--<el-button-->
89
-                                <!--size="small" @click="sz_open(7)" type="primary"-->
89
+                        <!--size="small" @click="sz_open(7)" type="primary"-->
90 90
                         <!--&gt;撤销明细-->
91 91
                         <!--</el-button>-->
92 92
                     </div>
@@ -103,13 +103,10 @@
103 103
                     <!--</el-button>-->
104 104
 
105 105
 
106
-
107
-
108 106
                     <!-- <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
109 107
                     <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button> -->
110 108
 
111 109
 
112
-
113 110
                     <div v-if="this.$store.getters.xt_user.org_id != 9504 && this.$store.getters.xt_user.org_id != 10028">
114 111
                         <el-button size="small" @click="open(3)" type="primary">打印</el-button>
115 112
                         <el-button v-loading="loadingone" size="small"
@@ -136,16 +133,16 @@
136 133
                         </el-button>
137 134
 
138 135
                         <el-button
139
-                                v-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"
136
+                                v-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"
140 137
                                 size="small" @click="open(10)" type="primary"
141 138
                         >退号
142 139
                         </el-button>
143 140
 
144
-                        <el-button
145
-                                v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671"
146
-                                size="small" @click="open(11)" type="primary"
147
-                        >撤销明细
148
-                        </el-button>
141
+                        <!--<el-button-->
142
+                        <!--v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671  || this.$store.getters.xt_user.org_id == 10106"-->
143
+                        <!--size="small" @click="open(11)" type="primary"-->
144
+                        <!--&gt;撤销明细-->
145
+                        <!--</el-button>-->
149 146
 
150 147
                     </div>
151 148
                     <!--<el-button size="small" @click="query" type="primary"-->
@@ -340,7 +337,8 @@
340 337
         <register-dialog ref='register' :doctors="doctors" :department="department" :sick="sick" :diagnoses="diagnoses"
341 338
                          v-on:confirm="confirm" v-on:cancel="cancel"></register-dialog>
342 339
 
343
-        <register-dialog9504 ref='register9504' :doctors="doctors" :departments="department" :sick="sick" :diagnoses="diagnoses"
340
+        <register-dialog9504 ref='register9504' :doctors="doctors" :departments="department" :sick="sick"
341
+                             :diagnoses="diagnoses"
344 342
                              v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
345 343
 
346 344
         <charge-dialog ref='charge' v-on:confirm="chargeConfirm" v-on:cancel="chargeCancel"></charge-dialog>
@@ -496,7 +494,7 @@
496 494
         treatVisible: false,
497 495
         orderObj: {},
498 496
         paramsObj: {},
499
-        newOrderObj:{},
497
+        newOrderObj: {},
500 498
         statementVisible: false,
501 499
         newStatementVisible: false,
502 500
 
@@ -527,7 +525,7 @@
527 525
     },
528 526
     methods: {
529 527
       query() {
530
-        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) {
528
+        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 == 10106) {
531 529
           var that = this
532 530
           axios.get('http://127.0.0.1:9532/api/org/info', {
533 531
             params: {}
@@ -633,7 +631,7 @@
633 631
                   that.radio = 2
634 632
                   that.$refs.charge.hide()
635 633
                   that.state = '已收费'
636
-                  that.$message({ message: '收费成功', type: 'success'})
634
+                  that.$message({ message: '收费成功', type: 'success' })
637 635
                   that.loadingtwo = false
638 636
                   that.cal_one = this.cal_one - 1
639 637
                   that.cal_two = this.cal_two + 1
@@ -645,7 +643,7 @@
645 643
 
646 644
             })
647 645
 
648
-        } else 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) {
646
+        } else 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) {
649 647
           var that = this
650 648
           axios.get('http://127.0.0.1:9532/api/upload/get', {
651 649
             params: form,
@@ -660,17 +658,23 @@
660 658
                 that.$refs.charge.hide()
661 659
                 return false
662 660
               } else {
663
-                that.changeRadio(2)
664
-                that.radio = 2
661
+                if (response.data.data.failed_code == -10) {
665 662
 
666
-                that.$refs.charge.hide()
667
-                that.loadingtwo = false
668
-                that.state = '已收费'
669
-                that.$message({ message: '收费成功', type: 'success',duration:5000 })
670
-                that.loadingtwo = false
671
-                that.cal_one = this.cal_one - 1
672
-                that.cal_two = this.cal_two + 1
673
-                that.patientTableData.splice(this.current_index, 1)
663
+                  that.$message.error(response.data.data.msg)
664
+
665
+                } else {
666
+                  that.changeRadio(2)
667
+                  that.radio = 2
668
+
669
+                  that.$refs.charge.hide()
670
+                  that.loadingtwo = false
671
+                  that.state = '已收费'
672
+                  that.$message({ message: '收费成功', type: 'success', duration: 5000 })
673
+                  that.loadingtwo = false
674
+                  that.cal_one = this.cal_one - 1
675
+                  that.cal_two = this.cal_two + 1
676
+                  that.patientTableData.splice(this.current_index, 1)
677
+                }
674 678
               }
675 679
             })
676 680
             .catch(function(error) {
@@ -698,11 +702,10 @@
698 702
         }
699 703
       }, chargeCancel() {
700 704
         this.$refs.charge.hide()
701
-      },registerCancel(){
705
+      }, registerCancel() {
702 706
         this.$refs.register9504.hide()
703 707
 
704
-
705
-      },registerConfirm(forms){
708
+      }, registerConfirm(forms) {
706 709
         forms['record_time'] = this.record_date
707 710
         forms['admin_user_id'] = this.$store.getters.xt_user.user.id
708 711
         forms['org_id'] = this.$store.getters.xt_user.org_id
@@ -710,7 +713,7 @@
710 713
         this.loadingone = true
711 714
 
712 715
         var that = this
713
-        if ( this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
716
+        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
714 717
           axios.get('http://127.0.0.1:9532/sz/api/register/get', {
715 718
             params: forms,
716 719
             headers: {
@@ -794,7 +797,7 @@
794 797
 
795 798
         var that = this
796 799
 
797
-        if ( this.$store.getters.xt_user.org_id == 10028 ||  this.$store.getters.xt_user.org_id == 9504 ) {
800
+        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504) {
798 801
 
799 802
           axios.get('http://127.0.0.1:9532/sz/api/register/get', {
800 803
             params: forms,
@@ -867,7 +870,7 @@
867 870
 
868 871
             })
869 872
 
870
-        } else 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) {
873
+        } else 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) {
871 874
 
872 875
           axios.get('http://127.0.0.1:9532/api/register/get', {
873 876
             params: forms,
@@ -882,53 +885,58 @@
882 885
                 that.$refs.register.hide()
883 886
                 return false
884 887
               } else {
885
-                that.$refs.register.hide()
886
-                let params = {
887
-                  'record_date': that.record_date
888
-                }
889
-                getChargeHisPatientList(params).then(response => {
890
-                  if (response.data.state == 0) {
891
-                    that.$message.error(response.data.msg)
892
-                    return false
893
-                  } else {
894
-                    that.loadingone = false
895
-
896
-                    that.patientTableData = []
897
-                    that.all_table_data = []
898
-                    that.hisPatientDatas = []
899
-
900
-                    let one_count = 0
901
-                    let two_count = 0
902
-                    let three_count = 0
903
-                    for (let i = 0; i < response.data.data.list.length; i++) {
904
-                      that.all_table_data.push(response.data.data.list[i])
905
-                      if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
906
-                        one_count = one_count + 1
907
-                        that.patientTableData.push(response.data.data.list[i])
908
-                      }
909
-                      if (response.data.data.list[i].order.order_status == 2) {
910
-                        two_count = two_count + 1
911
-                        that.patientTableData.push(response.data.data.list[i])
888
+                if (response.data.data.failed_code == -10) {
889
+                  that.$message.error(response.data.data.msg)
890
+                  return
891
+                } else {
892
+                  that.$refs.register.hide()
893
+                  let params = {
894
+                    'record_date': that.record_date
895
+                  }
896
+                  getChargeHisPatientList(params).then(response => {
897
+                    if (response.data.state == 0) {
898
+                      that.$message.error(response.data.msg)
899
+                      return false
900
+                    } else {
901
+
902
+                      that.loadingone = false
903
+                      that.$message({ message: '挂号成功', type: 'success' })
904
+
905
+                      that.patientTableData = []
906
+                      that.all_table_data = []
907
+                      that.hisPatientDatas = []
908
+                      let one_count = 0
909
+                      let two_count = 0
910
+                      let three_count = 0
911
+                      for (let i = 0; i < response.data.data.list.length; i++) {
912
+                        that.all_table_data.push(response.data.data.list[i])
913
+                        if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
914
+                          one_count = one_count + 1
915
+                          that.patientTableData.push(response.data.data.list[i])
916
+                        }
917
+                        if (response.data.data.list[i].order.order_status == 2) {
918
+                          two_count = two_count + 1
919
+                          that.patientTableData.push(response.data.data.list[i])
920
+                        }
912 921
                       }
913
-                    }
914
-                    that.hisPatientDatas = response.data.data.list_two
915
-                    that.cal_one = one_count
916
-                    that.cal_two = two_count
917
-                    that.cal_three = three_count
918
-                    that.current_index = 0
919
-
920
-                    for (let i = 0; i < that.patientTableData.length; i++) {
921
-                      if (this.patientTableData[i].id == this.patientInfo.id) {
922
-                        that.$refs.tab.setCurrentRow(that.patientTableData[i])
923
-                        that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order.number)
922
+                      that.hisPatientDatas = response.data.data.list_two
923
+                      that.cal_one = one_count
924
+                      that.cal_two = two_count
925
+                      that.cal_three = three_count
926
+                      that.current_index = 0
927
+                      for (let i = 0; i < that.patientTableData.length; i++) {
928
+                        if (this.patientTableData[i].id == this.patientInfo.id) {
929
+                          that.$refs.tab.setCurrentRow(that.patientTableData[i])
930
+                          that.getPatientInformation(that.patientTableData[i].id, that.patientTableData[i].order.number)
931
+                        }
924 932
                       }
933
+                      var his_info = response.data.data.his_info
934
+                      that.hisPatientInfo = his_info
935
+
925 936
                     }
926
-                    that.$message({ message: '挂号成功', type: 'success' })
927
-                    that.loadingone = false
928
-                    var his_info = response.data.data.his_info
929
-                    that.hisPatientInfo = his_info
930
-                  }
931
-                })
937
+
938
+                  })
939
+                }
932 940
               }
933 941
             })
934 942
             .catch(function(error) {
@@ -943,7 +951,7 @@
943 951
               return false
944 952
             } else {
945 953
               this.getPatientList()
946
-              this.$message({ message: '挂号成功', type: 'success',duration:5000 })
954
+              this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
947 955
               this.$refs.register.hide()
948 956
               this.loadingone = false
949 957
               var his_info = response.data.data.his_info
@@ -1487,7 +1495,7 @@
1487 1495
           }
1488 1496
 
1489 1497
         } else if (index == 5) {
1490
-          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) {
1498
+          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) {
1491 1499
 
1492 1500
             var that = this
1493 1501
             this.$confirm('是否退费', '退费', {
@@ -1513,9 +1521,13 @@
1513 1521
                     that.loadingtwo = false
1514 1522
                     return false
1515 1523
                   } else {
1516
-                    that.changeRadio(1)
1517
-                    that.$message({ message: '退费成功', type: 'success',duration:5000 })
1518
-                    that.loadingtwo = false
1524
+                    if (response.data.data.failed_code == -10) {
1525
+                      that.$message.error(response.data.data.msg)
1526
+                    } else {
1527
+                      that.changeRadio(1)
1528
+                      that.$message({ message: '退费成功', type: 'success', duration: 5000 })
1529
+                      that.loadingtwo = false
1530
+                    }
1519 1531
 
1520 1532
                   }
1521 1533
                 })
@@ -1582,7 +1594,7 @@
1582 1594
 
1583 1595
           var that = this
1584 1596
 
1585
-          if (this.$store.getters.xt_user.org_id == 9919) {
1597
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
1586 1598
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
1587 1599
               params: params
1588 1600
             })
@@ -1632,27 +1644,40 @@
1632 1644
           // this.$refs.print.getInfo(this.order.id)
1633 1645
 
1634 1646
         } else if (index == 10) {
1635
-          let params = {
1647
+          var that = this
1648
+          this.$confirm('是否退号', '退号', {
1649
+            confirmButtonText: '确 定',
1650
+            cancelButtonText: '取 消',
1651
+            type: 'warning'
1652
+          }).then(() => {
1653
+            let params = {
1654
+              'patient_id': this.patientInfo.id,
1655
+              'record_time': this.record_date,
1656
+              'org_id': this.$store.getters.xt_user.org_id,
1657
+              'admin_user_id': this.$store.getters.xt_user.user.id
1658
+            }
1659
+            axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
1660
+              params: params
1661
+            })
1662
+              .then(function(response) {
1663
+                if (response.data.state == 0) {
1664
+                  that.$message.error(response.data.msg)
1665
+                  return false
1666
+                } else {
1667
+                  if (response.data.data.failed_code == -10) {
1668
+                    that.$message.error(response.data.data.msg)
1669
+                  } else {
1670
+                    that.radio = 1
1671
+                    that.changeRadio(1)
1672
+                    that.$message({ message: '退号成功', type: 'success', duration: 5000 })
1673
+                  }
1636 1674
 
1637
-            'patient_id': this.patientInfo.id,
1638
-            'record_time': this.record_date,
1639
-            'org_id': this.$store.getters.xt_user.org_id
1640
-          }
1641
-          axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
1642
-            params: params
1675
+                }
1676
+              })
1677
+              .catch(function(error) {
1678
+              })
1679
+          }).catch(() => {
1643 1680
           })
1644
-            .then(function(response) {
1645
-              if (response.data.state == 0) {
1646
-                that.$message.error(response.data.msg)
1647
-                that.loadingtwo = false
1648
-                return false
1649
-              } else {
1650
-                that.$message({ message: '退号成功', type: 'success' })
1651
-                that.loadingtwo = false
1652
-              }
1653
-            })
1654
-            .catch(function(error) {
1655
-            })
1656 1681
         } else if (index == 11) {
1657 1682
           let params = {
1658 1683
             'order_id': this.order.id,
@@ -1670,7 +1695,8 @@
1670 1695
                 that.loadingtwo = false
1671 1696
                 return false
1672 1697
               } else {
1673
-                that.$message({ message: '退号成功', type: 'success' })
1698
+                // that.$message({ message: '退号成功', type: 'success' })
1699
+                that.$message({ message: '退明细成功', type: 'success', duration: 5000 })
1674 1700
                 that.loadingtwo = false
1675 1701
               }
1676 1702
             })
@@ -1719,7 +1745,7 @@
1719 1745
             })
1720 1746
         } else if (index == 15) {
1721 1747
           var that = this
1722
-          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) {
1748
+          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 == 10106) {
1723 1749
 
1724 1750
             if (this.diagnosis.length || this.diagnosis == 0) {
1725 1751
               that.$message.error('诊断不能为空,请选择诊断内容')
@@ -1828,7 +1854,7 @@
1828 1854
 
1829 1855
           }
1830 1856
           this.loadingtwo = true
1831
-          if (this.$store.getters.xt_user.org_id == 9919 ) {
1857
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
1832 1858
             var that = this
1833 1859
             axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
1834 1860
               params: form
@@ -2528,7 +2554,7 @@
2528 2554
             axios.get('http://127.0.0.1:9532/sz/api/upload/get', {
2529 2555
               params: params,
2530 2556
               headers: {
2531
-                'Permission': 5,
2557
+                'Permission': 5
2532 2558
               }
2533 2559
             })
2534 2560
               .then(function(response) {
@@ -2640,8 +2666,7 @@
2640 2666
 
2641 2667
                   } else {
2642 2668
 
2643
-                      that.$message({ message: '明细撤销成功', type: 'success' })
2644
-
2669
+                    that.$message({ message: '明细撤销成功', type: 'success' })
2645 2670
 
2646 2671
                   }
2647 2672
                 }
@@ -2657,7 +2682,7 @@
2657 2682
               patient_id: this.patient_id,
2658 2683
               prescription_id: this.prescription_id,
2659 2684
               order_id: this.order.id,
2660
-              admin_user_id: this.$store.getters.xt_user.user.id,
2685
+              admin_user_id: this.$store.getters.xt_user.user.id
2661 2686
 
2662 2687
             }
2663 2688
             this.newOrderObj = obj

+ 2 - 2
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -150,8 +150,8 @@ export default {
150 150
 
151 151
     },
152 152
     getInfo(order_id) {
153
-      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671) {
154
-         
153
+      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4) {
154
+
155 155
         var that = this
156 156
 
157 157
         axios.get('http://127.0.0.1:9532/api/settle/query', {

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

@@ -96,7 +96,7 @@
96 96
         <el-table-column align="center" prop="name" label="操作">
97 97
           <template slot-scope="scope">
98 98
             <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
99
-            <el-button size="mini" type="primary" @click="toPrint(scope.row)" v-if="(scope.row.order_status == 2 || $store.getters.xt_user.org_id == 9504) && (scope.row.order_status == 2 || $store.getters.xt_user.org_id == 9919)">结算单</el-button>
99
+            <el-button size="mini" type="primary" @click="toPrint(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4)">结算单</el-button>
100 100
           </template>
101 101
         </el-table-column>
102 102
       </el-table>

+ 10 - 5
src/xt_pages/outpatientCharges/summaryDetail.vue View File

@@ -29,11 +29,6 @@
29 29
                         </el-table-column>
30 30
 
31 31
 
32
-                        <el-table-column align="center" prop="statistical_classification" width="100" label="组">
33
-                          <template slot-scope="scope">
34
-                            {{getGroup(scope.row.statistical_classification)}}
35
-                          </template>
36
-                        </el-table-column>
37 32
                         <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
38 33
                           <template slot-scope="scope">{{scope.row.single_dose}}&nbsp;&nbsp;{{scope.row.single_dose_unit}}</template>
39 34
 
@@ -65,6 +60,16 @@
65 60
 
66 61
                           </template>
67 62
                         </el-table-column>
63
+
64
+                          <el-table-column align="center" prop="name" width="60" label="总价">
65
+                              <template slot-scope="scope">
66
+                                  <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
67
+                                  {{scope.row.price}}元
68
+
69
+                              </template>
70
+                          </el-table-column>
71
+
72
+
68 73
                         <el-table-column align="center" prop="name" width="80" label="备注">
69 74
                           <template slot-scope="scope">
70 75
                             <!--<el-input v-model="scope.row.remark" readonly></el-input>-->

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

@@ -1584,6 +1584,11 @@
1584 1584
             this.allDrugs = response.data.data.drugs
1585 1585
             this.advices_template = response.data.data.advices_template
1586 1586
             this.doctors = response.data.data.doctors
1587
+            for (let i = 0; i < this.doctors.length; i++){
1588
+              if(this.doctors[i].user_type == 1){
1589
+                this.doctors.splice(i,1)
1590
+              }
1591
+            }
1587 1592
             this.department = response.data.data.department
1588 1593
             this.sick = response.data.data.sick
1589 1594
             this.diagnoses = response.data.data.diagnose
@@ -1699,6 +1704,11 @@
1699 1704
 
1700 1705
       },
1701 1706
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1707
+        for (let i = 0; i < doctors.length; i++){
1708
+          if(doctors[i].user_type == 1){
1709
+            doctors.splice(i,1)
1710
+          }
1711
+        }
1702 1712
 
1703 1713
         this.curMonthPrescriptions = {}
1704 1714
         this.curPrescriptions = {}

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

@@ -748,6 +748,11 @@
748 748
             this.doctors = response.data.data.doctors
749 749
             this.department = response.data.data.department
750 750
 
751
+            for (let i = 0; i < this.doctors.length; i++){
752
+              if(this.doctors[i].user_type == 1){
753
+                this.doctors.splice(i,1)
754
+              }
755
+            }
751 756
 
752 757
             var month_prescriptions = response.data.data.month_prescriptions
753 758
             this.setMonthPrescription(month_prescriptions)
@@ -898,7 +903,7 @@
898 903
       },
899 904
 
900 905
       choosePatient(val) {
901
-        
906
+
902 907
         var nowDate = new Date()
903 908
         var nowYear = nowDate.getFullYear()
904 909
         var nowMonth = nowDate.getMonth() + 1

+ 81 - 17
src/xt_pages/outpatientRecord/outpatientRecord.vue View File

@@ -12,6 +12,14 @@
12 12
                                @click="searchAction">
13 13
                         搜索
14 14
                     </el-button>
15
+                    <!--<el-select v-model="is_put_on_record" style="width:160px;" placeholder="请选择" @change="changeStatus">-->
16
+                        <!--<el-option-->
17
+                                <!--v-for="item,index in datas"-->
18
+                                <!--:key="index"-->
19
+                                <!--:label="item.name"-->
20
+                                <!--:value="item.id">-->
21
+                        <!--</el-option>-->
22
+                    <!--</el-select>-->
15 23
                 </div>
16 24
                 <!--<el-button size="small" type="primary" @click="dialogFormVisible = t 。rue">医保对账</el-button>-->
17 25
             </div>
@@ -31,7 +39,7 @@
31 39
                     <template slot-scope="scope">{{scope.row.record.trt_dcla_detl_sn}}</template>
32 40
                 </el-table-column>
33 41
                 <el-table-column align="center" prop="name" label="时间">
34
-                    <template slot-scope="scope" v-if="scope.row.ctime > 0">{{getTimes(scope.row.ctime)}}</template>
42
+                    <template slot-scope="scope" v-if="scope.row.record.ctime > 0">{{getTimes(scope.row.record.ctime)}}</template>
35 43
                 </el-table-column>
36 44
                 <el-table-column align="center" prop="name" label="姓名">
37 45
                     <template slot-scope="scope">{{scope.row.name}}</template>
@@ -84,13 +92,13 @@
84 92
 
85 93
                 <el-table-column align="center" prop="name" label="险种类型">
86 94
                     <template slot-scope="scope">
87
-                        <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
88
-                        <div v-if="scope.row.insutype == '320'">公务员医疗补助</div>
89
-                        <div v-if="scope.row.insutype == '330'">大额医疗费用补助</div>
90
-                        <div v-if="scope.row.insutype == '340'">离休人员医疗保障</div>
91
-                        <div v-if="scope.row.insutype == '390'">城乡居民基本医疗保险</div>
92
-                        <div v-if="scope.row.insutype == '392'">城乡居民大病医疗保险</div>
93
-                        <div v-if="scope.row.insutype == '510'">生育保险</div>
95
+                        <div v-if="scope.row.record.insutype == '310'">职工基本医疗保险</div>
96
+                        <div v-if="scope.row.record.insutype == '320'">公务员医疗补助</div>
97
+                        <div v-if="scope.row.record.insutype == '330'">大额医疗费用补助</div>
98
+                        <div v-if="scope.row.record.insutype == '340'">离休人员医疗保障</div>
99
+                        <div v-if="scope.row.record.insutype == '390'">城乡居民基本医疗保险</div>
100
+                        <div v-if="scope.row.record.insutype == '392'">城乡居民大病医疗保险</div>
101
+                        <div v-if="scope.row.record.insutype == '510'">生育保险</div>
94 102
                     </template>
95 103
                 </el-table-column>
96 104
 
@@ -109,9 +117,12 @@
109 117
 
110 118
                 <el-table-column prop="date" label="操作" width="80" align="center" fixed="right">
111 119
                     <template slot-scope="scope">
112
-                        <el-button type="primary" size="small" icon="el-icon-refresh-left">
113
-                            <span v-if="scope.row.record.is_cancel == 0 ||scope.row.record.is_cancel == 2" @click="putOnRecord(1,scope.row)">备案</span>
114
-                            <span v-if="scope.row.record.is_cancel == 1" @click="putOnRecord(2,scope.row)">撤消</span>
120
+                        <el-button type="primary" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 0 ||scope.row.record.is_cancel == 2" >
121
+                            <span @click="putOnRecord(1,scope.row)">备案</span>
122
+                        </el-button>
123
+
124
+                        <el-button type="danger" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 1" >
125
+                            <span @click="putOnRecord(2,scope.row)">撤消</span>
115 126
                         </el-button>
116 127
                     </template>
117 128
                 </el-table-column>
@@ -166,6 +177,19 @@
166 177
     },
167 178
     data() {
168 179
       return {
180
+        is_put_on_record:0,
181
+        datas: [
182
+          {
183
+            id: 0,
184
+            name: '全部'
185
+          }, {
186
+            id: 1,
187
+            name: '已备案'
188
+          }, {
189
+            id: 2,
190
+            name: '未备案'
191
+          }
192
+        ],
169 193
         currentObject: null,
170 194
         crumbs: [
171 195
           { path: false, name: '门诊收费' },
@@ -254,6 +278,10 @@
254 278
       }
255 279
     },
256 280
     methods: {
281
+      changeStatus(id){
282
+        this.keywords = ""
283
+        this.getList()
284
+      },
257 285
       getName(value){
258 286
         console.log(value)
259 287
         for(let i = 0; i < this.insutype_arr.length; i++){
@@ -295,6 +323,13 @@
295 323
                       obj.label = that.insutype_arr[b].label
296 324
                     }
297 325
                   }
326
+                  if(response.data.data.info.output.insuinfo[i].psn_insu_stas == 1){
327
+                    obj.label =  obj.label
328
+
329
+                  }else{
330
+                    obj.label =  obj.label +"(已暂停)"
331
+                  }
332
+
298 333
                   that.insutypes.push(obj)
299 334
 
300 335
                 }
@@ -318,7 +353,7 @@
318 353
             type: 'warning'
319 354
           }).then(() => {
320 355
             let params = {
321
-              'id': row.id,
356
+              'id': row.record.id,
322 357
               'admin_user_id': this.$store.getters.xt_user.user.id
323 358
 
324 359
             }
@@ -380,6 +415,26 @@
380 415
 
381 416
       },
382 417
       confirm() {
418
+        if(this.currentObject.record.doctor_id == '' || this.currentObject.record.doctor_id  == 0){
419
+          this.$message.error("请选择医生")
420
+          return
421
+        }
422
+
423
+        if(this.currentObject.record.department_id == '' || this.currentObject.record.department_id  == 0){
424
+          this.$message.error("请选择科室")
425
+          return
426
+        }
427
+
428
+        if(this.currentObject.record.sick_type == '' || this.currentObject.record.sick_type  == 0){
429
+          this.$message.error("请选择疾病类型")
430
+          return
431
+        }
432
+
433
+        if(this.currentObject.record.insutype_value == '' || this.currentObject.record.insutype_value  == 0){
434
+          this.$message.error("请选择险种")
435
+          return
436
+        }
437
+
383 438
         let params = {
384 439
           record_type: 0,
385 440
           patient_id: this.currentObject.id,
@@ -403,15 +458,19 @@
403 458
               if(response.data.data.failed_code == -10){
404 459
                 that.$message.error(response.data.data.msg)
405 460
               }else{
461
+                that.$message.success("备案成功")
462
+                that.dialogFormVisible = false
406 463
                 for (let i = 0; i < that.tableData.length; i++) {
407 464
                   if (that.tableData[i].id == that.currentObject.id) {
408
-                    that.tableData[i].record.is_cancel == 1
465
+                    that.tableData[i].record.is_cancel =response.data.data.result.is_cancel
466
+                    that.tableData[i].record.id = response.data.data.result.id
409 467
                     that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn
410
-
411 468
                     that.tableData[i].record.psn_no = response.data.data.result.psn_no
412 469
                     that.tableData[i].record.doctor_id = response.data.data.result.doctor_id
413
-                    that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn
414
-
470
+                    that.tableData[i].record.department_id = response.data.data.result.department_id
471
+                    that.tableData[i].record.ctime = response.data.data.result.ctime
472
+                    that.tableData[i].record.insutype = response.data.data.result.insutype
473
+                    that.tableData[i].record.sick_type = response.data.data.result.sick_type
415 474
 
416 475
                   }
417 476
                 }
@@ -449,7 +508,8 @@
449 508
         let params = {
450 509
           'page': this.page,
451 510
           'limit': this.limit,
452
-          'keywords': this.keywords
511
+          'keywords': this.keywords,
512
+          'is_put_on_record':this.is_put_on_record
453 513
         }
454 514
         this.tableData = []
455 515
         this.patientLoading = true
@@ -474,6 +534,10 @@
474 534
                 this.tableData[i].record.department_id = ''
475 535
               }
476 536
 
537
+              if (this.tableData[i].record.sick_type == 0) {
538
+                this.tableData[i].record.sick_type = ''
539
+              }
540
+
477 541
             }
478 542
 
479 543
           }

+ 31 - 13
src/xt_pages/outpatientRegistration/index.vue View File

@@ -427,7 +427,7 @@
427 427
     saveHisPatient
428 428
   } from '@/api/project/project'
429 429
   import { getDictionaryDataConfig } from '@/utils/data'
430
-  import { uParseTime } from '@/utils/tools'
430
+  import { uParseTime,jsGetAge } from '@/utils/tools'
431 431
   import { getInitData } from '@/api/his/his'
432 432
   import axios from 'axios'
433 433
 
@@ -655,6 +655,21 @@
655 655
         this.form.birthday = uParseTime(val.birthday, '{y}-{m}-{d}')
656 656
         this.form.phone = val.phone
657 657
         this.form.idCard = val.id_card_no
658
+
659
+        var thisLen =  this.form.idCard.length;
660
+        var birth = "";
661
+        if (thisLen == 15) {
662
+          birth = "19" + this.form.idCard.substr(6, 6);
663
+        } else {
664
+          birth = this.form.idCard.substr(6, 8);
665
+        }
666
+        var births =
667
+          birth.substr(0, 4) +
668
+          "-" +
669
+          birth.substr(4, 2) +
670
+          "-" +
671
+          birth.substr(6, 2);
672
+        this.form.age = jsGetAge(births, "-");
658 673
       },
659 674
       querySearchAsync(keyword, cb) {
660 675
         let key = ''
@@ -900,11 +915,6 @@
900 915
           return
901 916
         }
902 917
 
903
-        // if (this.form.p_type == '') {
904
-        //   this.$message.error('处方类型不能为空')
905
-        //   this.is_Name = true
906
-        //   return
907
-        // }
908 918
 
909 919
         this.$refs[formName].validate((valid) => {
910 920
           if (valid) {
@@ -965,7 +975,7 @@
965 975
                 .catch(function(error) {
966 976
 
967 977
                 })
968
-            } else if (this.$store.getters.xt_user.org_id == 9919) {
978
+            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
969 979
               var that = this
970 980
 
971 981
               axios.get('http://127.0.0.1:9532/api/register/get', {
@@ -981,11 +991,15 @@
981 991
                     that.$refs.register.hide()
982 992
                     return false
983 993
                   } else {
984
-                    that.$refs.register.hide()
985
-                    that.getPatientList()
986
-                    that.$message({ message: '挂号成功', type: 'success' })
987
-                    that.loadingone = false
988
-
994
+                    if (response.data.data.failed_code == -10) {
995
+                      that.$message.error(response.data.data.msg)
996
+                      return
997
+                    } else {
998
+                      that.$refs.register.hide()
999
+                      that.getPatientList()
1000
+                      that.$message({ message: '挂号成功', type: 'success' })
1001
+                      that.loadingone = false
1002
+                    }
989 1003
                     // var his_info = response.data.data.his_info
990 1004
                     // that.hisPatientInfo = his_info
991 1005
                   }
@@ -1172,7 +1186,7 @@
1172 1186
                 .catch(function(error) {
1173 1187
 
1174 1188
                 })
1175
-            } else if (this.$store.getters.xt_user.org_id == 9919) {
1189
+            } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
1176 1190
               var that = this
1177 1191
 
1178 1192
               axios.get('http://127.0.0.1:9532/api/register/get', {
@@ -1302,6 +1316,10 @@
1302 1316
             this.sick = response.data.data.sick
1303 1317
             this.diagnoses = response.data.data.diagnose
1304 1318
 
1319
+            this.form.p_type = 14
1320
+            this.form.sick_type = this.sick[0].id
1321
+            this.form.diagnosis = this.diagnoses[0].id
1322
+
1305 1323
           }
1306 1324
         })
1307 1325
 

+ 0 - 15
src/xt_pages/user/patients.vue View File

@@ -453,21 +453,6 @@
453 453
               ></el-button>
454 454
             </el-tooltip>
455 455
 
456
-            <el-tooltip
457
-                    class="item"
458
-                    effect="dark"
459
-                    content="备案"
460
-                    placement="top"
461
-            >
462
-              <el-button
463
-                      type="danger"
464
-                      icon="el-icon-tickets"
465
-                      size="small"
466
-                      @click="
467
-                  putOnRecord(1,scope.row)
468
-                "
469
-              ></el-button>
470
-            </el-tooltip>
471 456
           </template>
472 457
         </el-table-column>
473 458
       </el-table>