浏览代码

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

see999 4 年前
父节点
当前提交
17d68802b2

+ 1 - 1
src/lang/zh.js 查看文件

218
     outpatientCharges:'门诊收费',
218
     outpatientCharges:'门诊收费',
219
     outpatientChargesManagement:'门诊收费管理',
219
     outpatientChargesManagement:'门诊收费管理',
220
     outpatientInvoice:'门诊发票',
220
     outpatientInvoice:'门诊发票',
221
-    outpatientRecord:'门诊备案',
221
+    outpatientRecord:'住院工作站',
222
     advancePayment:'预交金',
222
     advancePayment:'预交金',
223
     labelPrinting:'标签打印',
223
     labelPrinting:'标签打印',
224
     summary:'项目消费明细汇总',
224
     summary:'项目消费明细汇总',

+ 1 - 1
src/router/index.js 查看文件

169
   dataDruguse,
169
   dataDruguse,
170
   dataShowconfig,
170
   dataShowconfig,
171
   dataPrint,
171
   dataPrint,
172
-  hospitalStation,
173
   outpatientRegistration,
172
   outpatientRegistration,
174
   outpatientDoctorStation,
173
   outpatientDoctorStation,
175
   outpatientCharges,
174
   outpatientCharges,
176
   outpatientPharmacy,
175
   outpatientPharmacy,
177
   outpatientRecord,
176
   outpatientRecord,
177
+  hospitalStation,
178
   // kuyiShopping,
178
   // kuyiShopping,
179
   integration,
179
   integration,
180
   basicConfig
180
   basicConfig

+ 41 - 41
src/router/modules/hospitalStation.js 查看文件

37
     //   name: 'outpatientDoctorStationTemplateManagement',
37
     //   name: 'outpatientDoctorStationTemplateManagement',
38
     //   meta: { title: 'outpatientDoctorStationTemplateManagement', noCache: true }
38
     //   meta: { title: 'outpatientDoctorStationTemplateManagement', noCache: true }
39
     // },
39
     // },
40
-    {
41
-      path: '/hospitalStation/print',
42
-      component: () => import('@/xt_pages/hospitalStation/print'),
43
-      hidden: true,
44
-      is_menu: false,
45
-      name: 'outpatientDoctorStationPrint',
46
-      meta: { title: 'outpatientDoctorStationPrint', noCache: true }
47
-    },
48
-    {
49
-      path: '/hospitalStation/printtwo',
50
-      component: () => import('@/xt_pages/hospitalStation/printtwo'),
51
-      hidden: true,
52
-      is_menu: false,
53
-      name: 'outpatientDoctorStationPrint',
54
-      meta: { title: 'outpatientDoctorStationPrint', noCache: true }
55
-    },
56
-    {
57
-      path: '/hospitalStation/recordPrint',
58
-      component: () => import('@/xt_pages/hospitalStation/recordPrint'),
59
-      hidden: true,
60
-      is_menu: false,
61
-      name: 'outpatientDoctorStationRecordPrint',
62
-      meta: { title: 'outpatientDoctorStationRecordPrint', noCache: true }
63
-    },
64
-    {
65
-      path: '/hospitalStation/treatPrint',
66
-      component: () => import('@/xt_pages/hospitalStation/treatPrint'),
67
-      hidden: true,
68
-      is_menu: false,
69
-      name: 'outpatientDoctorStationTreatPrint',
70
-      meta: { title: 'outpatientDoctorStationTreatPrint', noCache: true }
71
-    },
72
-
73
-    {
74
-      path: '/hospitalStation/printone',
75
-      component: () => import('@/xt_pages/hospitalStation/template/printOne'),
76
-      hidden: true,
77
-      is_menu: false,
78
-      name: 'outpatientDoctorStationPrint',
79
-      meta: { title: 'outpatientDoctorStationPrint', noCache: true }
80
-    },
40
+    // {
41
+    //   path: '/hospitalStation/print',
42
+    //   component: () => import('@/xt_pages/hospitalStation/print'),
43
+    //   hidden: true,
44
+    //   is_menu: false,
45
+    //   name: 'outpatientDoctorStationPrint',
46
+    //   meta: { title: 'outpatientDoctorStationPrint', noCache: true }
47
+    // },
48
+    // {
49
+    //   path: '/hospitalStation/printtwo',
50
+    //   component: () => import('@/xt_pages/hospitalStation/printtwo'),
51
+    //   hidden: true,
52
+    //   is_menu: false,
53
+    //   name: 'outpatientDoctorStationPrint',
54
+    //   meta: { title: 'outpatientDoctorStationPrint', noCache: true }
55
+    // },
56
+    // {
57
+    //   path: '/hospitalStation/recordPrint',
58
+    //   component: () => import('@/xt_pages/hospitalStation/recordPrint'),
59
+    //   hidden: true,
60
+    //   is_menu: false,
61
+    //   name: 'outpatientDoctorStationRecordPrint',
62
+    //   meta: { title: 'outpatientDoctorStationRecordPrint', noCache: true }
63
+    // },
64
+    // {
65
+    //   path: '/hospitalStation/treatPrint',
66
+    //   component: () => import('@/xt_pages/hospitalStation/treatPrint'),
67
+    //   hidden: true,
68
+    //   is_menu: false,
69
+    //   name: 'outpatientDoctorStationTreatPrint',
70
+    //   meta: { title: 'outpatientDoctorStationTreatPrint', noCache: true }
71
+    // },
72
+    //
73
+    // {
74
+    //   path: '/hospitalStation/printone',
75
+    //   component: () => import('@/xt_pages/hospitalStation/template/printOne'),
76
+    //   hidden: true,
77
+    //   is_menu: false,
78
+    //   name: 'outpatientDoctorStationPrint',
79
+    //   meta: { title: 'outpatientDoctorStationPrint', noCache: true }
80
+    // },
81
   ]
81
   ]
82
 }
82
 }

+ 24 - 4
src/router/modules/outpatientRecord.js 查看文件

12
     isChild: true
12
     isChild: true
13
   },
13
   },
14
   children: [
14
   children: [
15
+    // {
16
+    //     path: '/outpatientRecord/outpatientRecord',
17
+    //     component: () => import('@/xt_pages/outpatientRecord/outpatientRecord'),
18
+    //     name: 'outpatientSickRecord',
19
+    //     meta: { title: 'outpatientSickRecord', noCache: true }
20
+    // },
15
     {
21
     {
16
-        path: '/outpatientRecord/outpatientRecord',
17
-        component: () => import('@/xt_pages/outpatientRecord/outpatientRecord'),
18
-        name: 'outpatientSickRecord',
19
-        meta: { title: 'outpatientSickRecord', noCache: true }
22
+      path: '/outpatientRecord/index',
23
+      component: () => import('@/xt_pages/hospitalStation/index'),
24
+      name: 'hospitalIndex',
25
+      meta: { title: 'hospitalIndex', noCache: true }
20
     },
26
     },
27
+    {
28
+      path: '/outpatientRecord/doctorDesk',
29
+      component: () => import('@/xt_pages/hospitalStation/doctorDesk'),
30
+      name: 'outpatientDoctorStationDoctorDesk',
31
+      meta: { title: 'outpatientDoctorStationDoctorDesk', noCache: true }
32
+    },
33
+    {
34
+      path: '/outpatientRecord/outpatientChargesManagement',
35
+      component: () => import('@/xt_pages/hospitalStation/outpatientChargesManagement'),
36
+      name: 'hospitalChargesManagement',
37
+      meta: { title: 'hospitalChargesManagement', noCache: true }
38
+    },
39
+
40
+
21
   ]
41
   ]
22
 }
42
 }

+ 4 - 1
src/xt_pages/hospitalStation/doctorDesk.vue 查看文件

283
       //   })
283
       //   })
284
       //
284
       //
285
       // },
285
       // },
286
-      change() {
286
+      change(patient_id) {
287
         let params = {
287
         let params = {
288
           'record_date': this.record_date,
288
           'record_date': this.record_date,
289
           'type': this.radio
289
           'type': this.radio
301
             this.cal_two = response.data.data.total_two;
301
             this.cal_two = response.data.data.total_two;
302
             this.admin_info = response.data.data.info;
302
             this.admin_info = response.data.data.info;
303
 
303
 
304
+
305
+
306
+
304
             if (this.patientTableData.length > 0) {
307
             if (this.patientTableData.length > 0) {
305
               this.$refs.tab.setCurrentRow(this.patientTableData[0]);
308
               this.$refs.tab.setCurrentRow(this.patientTableData[0]);
306
               this.oldCurrentRow = this.patientTableData[0];
309
               this.oldCurrentRow = this.patientTableData[0];

+ 14 - 1
src/xt_pages/hospitalStation/index.vue 查看文件

133
 
133
 
134
           <el-form-item label="入院时间:" prop="start_time" :validate-event="is_Name">
134
           <el-form-item label="入院时间:" prop="start_time" :validate-event="is_Name">
135
             <el-date-picker v-model="form.start_time" type="datetime" format="yyyy-MM-dd HH:mm:ss"
135
             <el-date-picker v-model="form.start_time" type="datetime" format="yyyy-MM-dd HH:mm:ss"
136
+                            value-format="yyyy-MM-dd HH:mm:ss"
136
                             placeholder="请选择入院时间">
137
                             placeholder="请选择入院时间">
137
             </el-date-picker>
138
             </el-date-picker>
138
 
139
 
170
     },
171
     },
171
     data() {
172
     data() {
172
       return {
173
       return {
174
+        record_date:"",
173
         loadingone: false,
175
         loadingone: false,
174
         read_loading: false,
176
         read_loading: false,
175
         registers: [
177
         registers: [
497
             if (this.form.id_card_no == '') {
499
             if (this.form.id_card_no == '') {
498
               this.show = true
500
               this.show = true
499
             }
501
             }
502
+            var nowDate = new Date();
503
+            var nowYear = nowDate.getFullYear();
504
+            var nowMonth = nowDate.getMonth() + 1;
505
+            var nowDay = nowDate.getDate();
506
+            this.record_date =
507
+              nowYear +
508
+              '-' +
509
+              (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
510
+              '-' +
511
+              (nowDay < 10 ? '0' + nowDay : nowDay);
500
 
512
 
501
             var params = {
513
             var params = {
502
               id: this.form.id,
514
               id: this.form.id,
509
               phone: this.form.phone,
521
               phone: this.form.phone,
510
               med_type: this.form.med_type,
522
               med_type: this.form.med_type,
511
               diagnosis: this.form.diagnosis,
523
               diagnosis: this.form.diagnosis,
512
-              sick_type: this.form.sick_type
524
+              sick_type: this.form.sick_type,
525
+              start_time: this.form.start_time,
513
             };
526
             };
514
             params['record_time'] = this.record_date;
527
             params['record_time'] = this.record_date;
515
             params['admin_user_id'] = this.$store.getters.xt_user.user.id;
528
             params['admin_user_id'] = this.$store.getters.xt_user.user.id;

+ 98 - 24
src/xt_pages/hospitalStation/outpatientChargesManagement.vue 查看文件

59
                 <div class="mainCell fixedCell" style="margin-bottom:10px;">
59
                 <div class="mainCell fixedCell" style="margin-bottom:10px;">
60
 
60
 
61
                     <div>
61
                     <div>
62
-                        <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
62
+
63
+                      <el-button v-loading="loadingtwo"
64
+                                 v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"
65
+                                 size="small"
66
+                                 @click="open(8)"
67
+                                 type="primary">上传费用明细
68
+                      </el-button>
69
+
70
+                      <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
63
                         <el-button v-loading="loadingone" size="small"
71
                         <el-button v-loading="loadingone" size="small"
64
-                                   v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
72
+                                   v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.order_status == 1)"
65
 
73
 
66
                                    @click="open(2)"
74
                                    @click="open(2)"
67
                                    type="primary">出院
75
                                    type="primary">出院
68
                         </el-button>
76
                         </el-button>
69
 
77
 
70
                         <el-button v-loading="loadingtwo"
78
                         <el-button v-loading="loadingtwo"
71
-                                   v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.id == 0) || (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1)||   (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
79
+                                   v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1)||   (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
72
                                    size="small"
80
                                    size="small"
73
                                    @click="open(3)"
81
                                    @click="open(3)"
74
                                    type="primary">收费
82
                                    type="primary">收费
82
                         >结算单
90
                         >结算单
83
                         </el-button>
91
                         </el-button>
84
 
92
 
93
+                      <el-button
94
+                        v-if="(this.hisPatientInfo.id > 0 && this.order.order_status == 1) || (this.hisPatientInfo.id > 0 && this.order.order_status == 2) "
95
+                        size="small" @click="open(9)" type="primary"
96
+                      >撤销明细
97
+                      </el-button>
98
+
85
                       <el-button
99
                       <el-button
86
                         v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
100
                         v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
87
                         size="small" @click="open(6)" type="primary"
101
                         size="small" @click="open(6)" type="primary"
545
         })
559
         })
546
 
560
 
547
       }, chargeConfirm(form) {
561
       }, chargeConfirm(form) {
548
-
549
-        form['id'] = this.patientInfo.id;
550
-        form['record_time'] = this.record_date;
562
+        form['in_hospital_id'] = this.hisPatientInfo.id;
563
+        form['patient_id'] = this.patientInfo.id;
551
         form['admin_user_id'] = this.$store.getters.xt_user.user.id;
564
         form['admin_user_id'] = this.$store.getters.xt_user.user.id;
552
         form['order_id'] = this.order.id;
565
         form['order_id'] = this.order.id;
553
-        form['org_id'] = this.$store.getters.xt_user.org_id;
554
-
555
-        if (this.activeName == 'first') {
556
-          form['settle_accounts_type'] = 1
557
-
558
-        } else {
559
-          form['start_time'] = this.other_start_time;
560
-          form['end_time'] = this.other_end_time;
561
-          form['settle_accounts_type'] = 2
562
-
563
-        }
564
-
565
         if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504) {
566
         if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504) {
566
           var that = this;
567
           var that = this;
567
           axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
568
           axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
594
 
595
 
595
             })
596
             })
596
 
597
 
597
-        } else if (this.$store.getters.xt_user.org_id == 9990  ) {
598
+        } else if (this.$store.getters.xt_user.org_id == 9990 ||this.$store.getters.xt_user.org_id == 4 ) {
598
           var that = this;
599
           var that = this;
599
-          axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
600
+          axios.get('http://127.0.0.1:9532/zh/api/settle/get', {
600
             params: form,
601
             params: form,
601
             headers: {
602
             headers: {
602
               'Permission': 5
603
               'Permission': 5
1399
                   if (response.data.data.failed_code == -10) {
1400
                   if (response.data.data.failed_code == -10) {
1400
                     that.$message.error(response.data.data.msg)
1401
                     that.$message.error(response.data.data.msg)
1401
                   } else {
1402
                   } else {
1402
-                    this.changeRadio(1);
1403
-                    that.$message({ message: '出院成功', type: 'success', duration: 5000 })
1403
+                    that.$message.success("出院成功");
1404
+                    that.changeRadio(1);
1404
                   }
1405
                   }
1405
 
1406
 
1406
                 }
1407
                 }
1581
                   if (response.data.data.failed_code == -10) {
1582
                   if (response.data.data.failed_code == -10) {
1582
                     that.$message.error(response.data.data.msg)
1583
                     that.$message.error(response.data.data.msg)
1583
                   } else {
1584
                   } else {
1584
-                    this.changeRadio(1);
1585
+                    that.changeRadio(1);
1585
 
1586
 
1586
                     that.$message({ message: '撤销出院成功', type: 'success', duration: 5000 })
1587
                     that.$message({ message: '撤销出院成功', type: 'success', duration: 5000 })
1587
                   }
1588
                   }
1624
                   if (response.data.data.failed_code == -10) {
1625
                   if (response.data.data.failed_code == -10) {
1625
                     that.$message.error(response.data.data.msg)
1626
                     that.$message.error(response.data.data.msg)
1626
                   } else {
1627
                   } else {
1627
-                    this.changeRadio(1);
1628
+                    that.changeRadio(1);
1628
 
1629
 
1629
                     that.$message({ message: '撤销入院成功', type: 'success', duration: 5000 })
1630
                     that.$message({ message: '撤销入院成功', type: 'success', duration: 5000 })
1630
                   }
1631
                   }
1930
           } else {
1931
           } else {
1931
             this.$refs.charge.show(this.getTotalTwo())
1932
             this.$refs.charge.show(this.getTotalTwo())
1932
           }
1933
           }
1934
+        }else if(index == 8){
1935
+          var that = this;
1936
+          let params = {
1937
+            'in_hospital_id': that.hisPatientInfo.id,
1938
+            'id': that.patientInfo.id,
1939
+            'admin_user_id': that.$store.getters.xt_user.user.id,
1940
+            'record_time': that.record_date,
1941
+
1942
+          };
1943
+          if (this.activeName == 'first') {
1944
+            params['settle_accounts_type'] = 1
1945
+
1946
+          } else {
1947
+            params['start_time'] = that.other_start_time;
1948
+            params['end_time'] = that.other_end_time;
1949
+            params['settle_accounts_type'] = 2
1950
+
1951
+          }
1952
+          axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
1953
+            params: params
1954
+          })
1955
+            .then(function(response) {
1956
+              if (response.data.state == 0) {
1957
+                that.$message.error(response.data.msg);
1958
+                return false
1959
+              } else {
1960
+                if (response.data.data.failed_code == -10) {
1961
+                  that.$message.error(response.data.data.msg)
1962
+                } else {
1963
+                  that.$message.success("上传明细成功");
1964
+                  that.changeRadio(1);
1965
+                }
1966
+
1967
+              }
1968
+            })
1969
+            .catch(function(error) {
1970
+
1971
+            })
1972
+        }else if(index == 9){
1973
+          var that = this;
1974
+          this.$confirm('是否撤销明细', '撤销明细', {
1975
+            confirmButtonText: '确 定',
1976
+            cancelButtonText: '取 消',
1977
+            type: 'warning'
1978
+          }).then(() => {
1979
+            let params = {
1980
+              'order_id': this.order.id,
1981
+              'admin_user_id': this.$store.getters.xt_user.user.id,
1982
+            };
1983
+            axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
1984
+              params: params
1985
+            })
1986
+              .then(function(response) {
1987
+                if (response.data.state == 0) {
1988
+                  that.$message.error(response.data.msg);
1989
+                  that.loadingtwo = false;
1990
+                  return false
1991
+                } else {
1992
+                  if (response.data.data.failed_code == -10) {
1993
+                    that.$message.error(response.data.data.msg)
1994
+                  } else {
1995
+                    that.$message.success("撤销明细成功");
1996
+
1997
+                    that.changeRadio(1);
1998
+                  }
1999
+
2000
+                }
2001
+              })
2002
+              .catch(function(error) {
2003
+              })
2004
+
2005
+          }).catch(() => {
2006
+          })
1933
         }
2007
         }
1934
       },
2008
       },
1935
 
2009
 

文件差异内容过多而无法显示
+ 392 - 392
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue


文件差异内容过多而无法显示
+ 327 - 327
src/xt_pages/outpatientRegistration/index.vue


+ 1 - 1
src/xt_pages/qcd/basicInformationAnalysis.vue 查看文件

710
       //本月的结束时间
710
       //本月的结束时间
711
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
711
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
712
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
712
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
713
-      // console.log("本月最后一天",timeEnd)
713
+       console.log("本月最后一天",timeEnd)
714
       //本月
714
       //本月
715
       if(state == 0){
715
       if(state == 0){
716
        //统计透析总量
716
        //统计透析总量