Browse Source

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

XMLWAN 3 years ago
parent
commit
ca93ebc8d7

+ 1 - 1
src/lang/zh.js View File

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

+ 1 - 1
src/router/index.js View File

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

+ 42 - 42
src/router/modules/hospitalStation.js View File

@@ -8,7 +8,7 @@ export default {
8 8
   alwaysShow: true,
9 9
   meta: {
10 10
     title: 'hospitalStation',
11
-    icon: 'outpatientDoctorStation',
11
+    icon: 'hospitalStation',
12 12
     isChild: true
13 13
   },
14 14
   children: [
@@ -37,46 +37,46 @@ export default {
37 37
     //   name: 'outpatientDoctorStationTemplateManagement',
38 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 View File

@@ -12,11 +12,31 @@ export default {
12 12
     isChild: true
13 13
   },
14 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
 }

+ 9 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFive.vue View File

@@ -191,7 +191,15 @@
191 191
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉') > -1 ? true : false" showValue="临时颈内静脉导管"></label-box>&nbsp;
192 192
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1 ? true : false" showValue="临时股静脉导管"></label-box>&nbsp;
193 193
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('移植血管') > -1 ? true : false" showValue="其他"></label-box>&nbsp;
194
-              <span style="width:50px;display: inline-block;"></span>
194
+              
195
+              穿刺方式:
196
+              <span style="width:60px;display: inline-block;">
197
+                {{ predialysis.puncture_way ? predialysis.puncture_way : "" }}
198
+              </span>
199
+              位点:
200
+              <span style="width:60px;display: inline-block;">
201
+                {{ predialysis.pinholing ? predialysis.pinholing : "" }}
202
+              </span>
195 203
               穿刺者:
196 204
               <span style="width:50px;display: inline-block;">
197 205
                 <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">

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

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

+ 14 - 1
src/xt_pages/hospitalStation/index.vue View File

@@ -133,6 +133,7 @@
133 133
 
134 134
           <el-form-item label="入院时间:" prop="start_time" :validate-event="is_Name">
135 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 137
                             placeholder="请选择入院时间">
137 138
             </el-date-picker>
138 139
 
@@ -170,6 +171,7 @@
170 171
     },
171 172
     data() {
172 173
       return {
174
+        record_date:"",
173 175
         loadingone: false,
174 176
         read_loading: false,
175 177
         registers: [
@@ -497,6 +499,16 @@
497 499
             if (this.form.id_card_no == '') {
498 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 513
             var params = {
502 514
               id: this.form.id,
@@ -509,7 +521,8 @@
509 521
               phone: this.form.phone,
510 522
               med_type: this.form.med_type,
511 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 527
             params['record_time'] = this.record_date;
515 528
             params['admin_user_id'] = this.$store.getters.xt_user.user.id;

+ 98 - 24
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

@@ -59,16 +59,24 @@
59 59
                 <div class="mainCell fixedCell" style="margin-bottom:10px;">
60 60
 
61 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 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 74
                                    @click="open(2)"
67 75
                                    type="primary">出院
68 76
                         </el-button>
69 77
 
70 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 80
                                    size="small"
73 81
                                    @click="open(3)"
74 82
                                    type="primary">收费
@@ -82,6 +90,12 @@
82 90
                         >结算单
83 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 99
                       <el-button
86 100
                         v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
87 101
                         size="small" @click="open(6)" type="primary"
@@ -545,23 +559,10 @@
545 559
         })
546 560
 
547 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 564
         form['admin_user_id'] = this.$store.getters.xt_user.user.id;
552 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 566
         if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504) {
566 567
           var that = this;
567 568
           axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
@@ -594,9 +595,9 @@
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 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 601
             params: form,
601 602
             headers: {
602 603
               'Permission': 5
@@ -1399,8 +1400,8 @@
1399 1400
                   if (response.data.data.failed_code == -10) {
1400 1401
                     that.$message.error(response.data.data.msg)
1401 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,7 +1582,7 @@
1581 1582
                   if (response.data.data.failed_code == -10) {
1582 1583
                     that.$message.error(response.data.data.msg)
1583 1584
                   } else {
1584
-                    this.changeRadio(1);
1585
+                    that.changeRadio(1);
1585 1586
 
1586 1587
                     that.$message({ message: '撤销出院成功', type: 'success', duration: 5000 })
1587 1588
                   }
@@ -1624,7 +1625,7 @@
1624 1625
                   if (response.data.data.failed_code == -10) {
1625 1626
                     that.$message.error(response.data.data.msg)
1626 1627
                   } else {
1627
-                    this.changeRadio(1);
1628
+                    that.changeRadio(1);
1628 1629
 
1629 1630
                     that.$message({ message: '撤销入院成功', type: 'success', duration: 5000 })
1630 1631
                   }
@@ -1930,6 +1931,79 @@
1930 1931
           } else {
1931 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
 

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

@@ -13,7 +13,8 @@
13 13
     </template>
14 14
 
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne :info="info" :p_admin="p_admin" :charge_admin="charge_admin"></printOne>
16
+      <printOne v-if="org_id != 9990" :info="info" :p_admin="p_admin" :charge_admin="charge_admin"></printOne>
17
+      <printOne v-if="org_id == 9990" :info="info" :p_admin="p_admin" :charge_admin="charge_admin"></printOne>
17 18
     </div>
18 19
   </div>
19 20
 </template>
@@ -59,6 +60,7 @@
59 60
         info:null,
60 61
         p_admin:{},
61 62
         charge_admin:{},
63
+        org_id:''
62 64
       };
63 65
     },
64 66
     methods:{
@@ -226,7 +228,9 @@
226 228
     },
227 229
 
228 230
     created() {
231
+      this.org_id = this.$store.getters.xt_user.org_id
229 232
       this.getInfo(this.paramsObj.order_id)
233
+      
230 234
     },
231 235
     watch:{
232 236
       paramsObj:{//深度监听,可监听到对象、数组的变化

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

@@ -104,7 +104,7 @@
104 104
                             结算单
105 105
                         </el-button>
106 106
                         <el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
107
-                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
107
+                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
108 108
                             退费
109 109
                         </el-button>
110 110
                         <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>

File diff suppressed because it is too large
+ 392 - 392
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue


+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -378,16 +378,16 @@
378 378
 
379 379
       },
380 380
       getSingleDose(scope){
381
-        // this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
381
+        this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
382 382
       },
383 383
       getDay(scope){
384
-        // this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
384
+        this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
385 385
       },
386 386
       getProjectSingleDose(scope){
387
-        // this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
387
+        this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
388 388
       },
389 389
       getProjectDay(scope){
390
-        // this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
390
+        this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
391 391
       }
392 392
     },mounted(){
393 393
       this.getInitData()

File diff suppressed because it is too large
+ 326 - 326
src/xt_pages/outpatientRegistration/index.vue