Przeglądaj źródła

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

杨青 1 rok temu
rodzic
commit
a77949210c
47 zmienionych plików z 9435 dodań i 3592 usunięć
  1. 37 0
      src/api/dialysis.js
  2. 1 0
      src/lang/en.js
  3. 4 2
      src/lang/zh.js
  4. 5 2
      src/router/index.js
  5. 1 0
      src/router/index_路由未分离前.js
  6. 16 1
      src/router/modules/device.js
  7. 9 0
      src/router/modules/dialysis.js
  8. 1 0
      src/store/getters.js
  9. 1 1
      src/xt_pages/device/airDisinfectTwo.vue
  10. 13 3
      src/xt_pages/device/objectTableDisinfectTwo.vue
  11. 58 6
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  12. 4 0
      src/xt_pages/dialysis/components/consumablesDialog.vue
  13. 4 0
      src/xt_pages/dialysis/components/dialysisDrugsDialog.vue
  14. 4 0
      src/xt_pages/dialysis/components/dialysisParametersDialog.vue
  15. 1 1
      src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue
  16. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  17. 2 2
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  18. 76 6
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  19. 2 2
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  20. 998 0
      src/xt_pages/dialysis/dialysisFlow.vue
  21. 45 9
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  22. 17 1
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  23. 49 6
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  24. 4051 0
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue
  25. 61 11
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue
  26. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  27. 2 1
      src/xt_pages/home/index.vue
  28. 11 8
      src/xt_pages/hospitalStation/index.vue
  29. 52 5
      src/xt_pages/hospitalStation/summary.vue
  30. 14 5
      src/xt_pages/management/components/UserForm.vue
  31. 228 44
      src/xt_pages/outpatientCharges/components/registerDialog.vue
  32. 92 4
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  33. 4 4
      src/xt_pages/outpatientCharges/statementPrint.vue
  34. 3399 3398
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  35. 3 5
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  36. 1 1
      src/xt_pages/outpatientDoctorStation/recordTemplate/printFour.vue
  37. 6 6
      src/xt_pages/stock/detail/print.vue
  38. 3 3
      src/xt_pages/stock/detail/stockOutDetail.vue
  39. 35 2
      src/xt_pages/stock/inventoryTransfer/Addtrans.vue
  40. 31 0
      src/xt_pages/stock/inventoryTransfer/transEdit.vue
  41. 1 1
      src/xt_pages/stock/stockOutOrder.vue
  42. 35 18
      src/xt_pages/user/components/PatientDetail.vue
  43. 3 3
      src/xt_pages/user/components/PatientForm.vue
  44. 12 2
      src/xt_pages/user/ktv.vue
  45. 1 1
      src/xt_pages/user/sickHistory.vue
  46. 27 13
      src/xt_pages/workforce/template.vue
  47. 13 13
      src/xt_permission.js

+ 37 - 0
src/api/dialysis.js Wyświetl plik

@@ -403,3 +403,40 @@ export function getDialysisAdviceToday(params) {
403 403
     params: params
404 404
   })
405 405
 }
406
+
407
+
408
+export function SaveDialysisInformationSetting(params) {
409
+  return request({
410
+    url: '/api/patient/savedialysisInformationsetting',
411
+    method: 'get',
412
+    params: params
413
+  })
414
+}
415
+
416
+export function getDialysisInformationSetting(params){
417
+  
418
+  return request({
419
+    url:"/api/patient/getdialyisinformationsetting",
420
+    method:"get",
421
+    params:params
422
+  })
423
+}
424
+
425
+export function checkDialysisInformation(params){
426
+  
427
+  return request({
428
+    url:"/api/patient/checkdialysisinformation",
429
+    method:"Get",
430
+    params:params
431
+  })
432
+}
433
+
434
+
435
+
436
+export function getSchedualPatientFlow(params) {
437
+  return request({
438
+    url: '/api/dialysis/patientsflow',
439
+    method: 'get',
440
+    params: params
441
+  })
442
+}

+ 1 - 0
src/lang/en.js Wyświetl plik

@@ -78,6 +78,7 @@ export default {
78 78
     dialysisSolution: 'dialysisSolution',
79 79
     inspection: 'Inspection',
80 80
     home: 'home',
81
+    infor:'infor',
81 82
     weight: 'weight',
82 83
     dialysisRecord: 'dialysisRecord',
83 84
     scheduling: 'scheduling',

+ 4 - 2
src/lang/zh.js Wyświetl plik

@@ -81,6 +81,7 @@ export default {
81 81
     template: '数据模版',
82 82
     druguse: '医嘱模版',
83 83
     watch: '透析监测',
84
+    flow:'透析流程',
84 85
     addAdmin: '新增用户',
85 86
     editAdmin: '编辑用户信息',
86 87
     setupPerview: '设置权限',
@@ -92,6 +93,7 @@ export default {
92 93
     dialysisSolution: '透析处方',
93 94
     inspection: '检验检查',
94 95
     home: '透析首页',
96
+    infor:'信息归档',
95 97
     weight: '干体重',
96 98
     dialysisRecord: '透析记录',
97 99
     scheduling: '排班信息',
@@ -102,6 +104,7 @@ export default {
102 104
     deviceManage: '院感管理',
103 105
     modemanagement: '型号配置',
104 106
     dialysisMachineManage: '设备管理',
107
+    
105 108
     workforce: '患者排班',
106 109
     appointment: '排班管理',
107 110
     sign: '治疗签到',
@@ -398,7 +401,7 @@ export default {
398 401
     manage_ment: '设备管理',
399 402
     nursing_record: '透析护理记录',
400 403
     special_record: '特殊记录',
401
-    template_summary: '治疗小结',
404
+    template_summary: '阶段小结',
402 405
     template_plan: '个性化方案',
403 406
     admitting_diagnosis: '入院诊断',
404 407
     discharge_diagnosis: '出院诊断',
@@ -414,6 +417,5 @@ export default {
414 417
     diagnostic_basis: '诊断依据',
415 418
     differential_diagnosis: '鉴别诊断',
416 419
     treatment_plan: '诊疗计划'
417
-
418 420
   }
419 421
 }

+ 5 - 2
src/router/index.js Wyświetl plik

@@ -12,6 +12,7 @@ import role from './modules/role'
12 12
 import stock from './modules/stock'
13 13
 import weight_sign from './modules/weight_sign'
14 14
 import workforce from './modules/workforce'
15
+
15 16
 import service from './modules/service'
16 17
 import org from './modules/org'
17 18
 import systems from './modules/systems'
@@ -59,7 +60,7 @@ import bedManagement from './modules/bedManagement'
59 60
 import dictionaryManagement from './modules/dictionaryManagement'
60 61
 import templateManagement from './modules/templateManagement'
61 62
 import DepartManage from './modules/DepartManage'
62
-import basicConfig from './modules/basicConfig'
63
+import basicConfig from './modules/basicConfig' 
63 64
 
64 65
 Vue.use(Router)
65 66
 
@@ -119,6 +120,7 @@ var _constant_router_map = [{
119 120
     }
120 121
   }]
121 122
 },
123
+
122 124
 {
123 125
   path: '/kuyiShopping',
124 126
   component: Layout,
@@ -199,7 +201,8 @@ var _asy_router_map = [
199 201
   hisTool,
200 202
   integration,
201 203
   basicConfig,
202
-  supply
204
+  supply,
205
+ 
203 206
 ]
204 207
 
205 208
 var is_asy_router = process.env.NODE_ENV === 'production' // true; 设置为 true 强制进行路由验证

+ 1 - 0
src/router/index_路由未分离前.js Wyświetl plik

@@ -40,6 +40,7 @@ export const xt_constantRouterMap = [
40 40
       meta: { title: 'home', icon: 'dashboard', noCache: true }
41 41
     }]
42 42
   },
43
+ 
43 44
   {
44 45
     path: '/service',
45 46
     component: Layout,

+ 16 - 1
src/router/modules/device.js Wyświetl plik

@@ -88,6 +88,19 @@ export default {
88 88
 
89 89
       }
90 90
     },
91
+
92
+
93
+    {
94
+      path: '/infor/index',
95
+      component: () => import('@/xt_pages/infor/index'),
96
+      name: 'infor',
97
+     
98
+      meta: {
99
+        title: 'infor',
100
+        noCache: true,
101
+      }
102
+    },
103
+
91 104
     {
92 105
       path: '/device/waterformprint',
93 106
       component: () => import('@/xt_pages/management/components/waterFormPrint'),
@@ -99,7 +112,9 @@ export default {
99 112
         noCache: true,
100 113
         
101 114
       }
102
-    }
115
+    },
116
+
117
+  
103 118
 
104 119
   ]
105 120
 }

+ 9 - 0
src/router/modules/dialysis.js Wyświetl plik

@@ -815,5 +815,14 @@ export default {
815 815
         noCache: true
816 816
       }
817 817
     },
818
+    {
819
+      path: '/dialysis/flow',
820
+      component: () => import('@/xt_pages/dialysis/dialysisFlow'),
821
+      name: 'flow',
822
+      meta: {
823
+        title: 'flow',
824
+        noCache: true
825
+      }
826
+    },
818 827
   ]
819 828
 }

+ 1 - 0
src/store/getters.js Wyświetl plik

@@ -2,6 +2,7 @@ const getters = {
2 2
   sidebar: state => state.app.sidebar,
3 3
   language: state => state.app.language,
4 4
   device: state => state.app.device,
5
+  information:state => state.app.information,
5 6
   visitedViews: state => state.tagsView.visitedViews,
6 7
   cachedViews: state => state.tagsView.cachedViews,
7 8
   token: state => state.user.token,

+ 1 - 1
src/xt_pages/device/airDisinfectTwo.vue Wyświetl plik

@@ -910,7 +910,7 @@
910 910
           start_time:[{required:true,message:"请选择开始时间",trigger:"blur"}],
911 911
           end_time:[{required:true,message:"请选择结束时间",trigger:"blur"}]
912 912
          },
913
-         limit:20,
913
+         limit:10,
914 914
          page:1,
915 915
          total:0,
916 916
          tableData: [],

+ 13 - 3
src/xt_pages/device/objectTableDisinfectTwo.vue Wyświetl plik

@@ -129,9 +129,10 @@
129 129
               style="margin-top:20px;float: right"
130 130
               layout="total, sizes, prev, pager, next, jumper"
131 131
               :total="total"
132
+              @size-change="handleSizeChange"
133
+              @current-change="handleCurrentChange"
132 134
           >
133
-          <!-- @size-change="handleSizeChange"
134
-              @current-change="handleCurrentChange" -->
135
+            
135 136
           </el-pagination>
136 137
          </div>
137 138
 
@@ -1149,7 +1150,7 @@
1149 1150
           start_time:[{required:true,message:"请选择开始时间",trigger:"blur"}],
1150 1151
           end_time:[{required:true,message:"请选择结束时间",trigger:"blur"}]
1151 1152
          },
1152
-         limit:20,
1153
+         limit:10,
1153 1154
          page:1,
1154 1155
          total:0,
1155 1156
          tableData: [],
@@ -1590,6 +1591,15 @@
1590 1591
            // return ''
1591 1592
            // }
1592 1593
        },
1594
+
1595
+       handleSizeChange(val) {
1596
+        this.limit = val;
1597
+        this.getObjectTableDisInfectList()
1598
+      },
1599
+      handleCurrentChange(val) {
1600
+        this.page = val;
1601
+        this.getObjectTableDisInfectList()
1602
+      },
1593 1603
         
1594 1604
       }
1595 1605
     }

+ 58 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Wyświetl plik

@@ -894,7 +894,7 @@
894 894
                       style="padding: 2px 0; line-height: 23px; display: flex"
895 895
                     >
896 896
                       <div class="inline_block" style="flex: 1"
897
-                        v-if="org_id!=10440 && org_id !=0">
897
+                        v-if="org_id!=10440 && org_id!=0 && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495">
898 898
                         上次透后体重:
899 899
                         <div
900 900
                           class="under_line"
@@ -918,6 +918,21 @@
918 918
                         </div>
919 919
                         kg
920 920
                       </div>
921
+
922
+                      <div class="inline_block" style="flex: 1"
923
+                        v-if="org_id==10440 && org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495">
924
+                        上次透后体重:
925
+                        <div
926
+                          class="under_line"
927
+                          style="width: 100px; text-align: center"
928
+                        >
929
+                          <span>{{
930
+                            record.lastafterweight.weight_after
931
+                          }}</span>
932
+                       
933
+                        </div>
934
+                        kg
935
+                      </div>
921 936
                       <div class="inline_block" style="flex: 1">
922 937
                         透前体重:
923 938
                         <div
@@ -938,7 +953,7 @@
938 953
                         </div>
939 954
                         kg
940 955
                       </div>
941
-                      <div class="inline_block" style="flex: 1">
956
+                      <div class="inline_block" style="flex: 1" v-if="org_id!=0 && org_id!=10469">
942 957
                         计划超滤量:
943 958
                         <div
944 959
                           class="under_line"
@@ -954,6 +969,22 @@
954 969
                          <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">ml</span> 
955 970
                          <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471">L</span>
956 971
                       </div>
972
+
973
+                      <div class="inline_block" style="flex: 1" v-if="org_id==0 || org_id == 10469">
974
+                        处方脱水量:
975
+                        <div
976
+                          class="under_line"
977
+                          style="width: 100px; text-align: center"
978
+                        >
979
+                          {{
980
+                            record.prescription &&
981
+                            record.prescription.prescription_water
982
+                              ? record.prescription.prescription_water
983
+                              : "/"
984
+                          }}
985
+                        </div>
986
+                        ml
987
+                      </div>
957 988
                       <div class="inline_block" style="flex: 1">
958 989
                         干体重:
959 990
                         <div
@@ -1295,11 +1326,19 @@
1295 1326
                           <td
1296 1327
                             width="50"
1297 1328
                             v-if="
1298
-                              org_id == 10121 || org_id == 9675 || org_id == 0
1329
+                              org_id == 10121 || org_id == 9675 
1299 1330
                             "
1300 1331
                           >
1301 1332
                             SpO₂<br />(%)
1302 1333
                           </td>
1334
+                          <td
1335
+                            width="50"
1336
+                            v-if="
1337
+                              org_id == 0 || org_id ==  10469
1338
+                            "
1339
+                          >
1340
+                            钠浓度<br />(mmol/L)
1341
+                          </td>
1303 1342
                           <td width="50" v-if="org_id != 0 && org_id != 3877 && org_id != 10449">超滤量<br />(ml)</td>
1304 1343
                           <td width="50" v-if="org_id ==0 || org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1305 1344
                           <td
@@ -1414,8 +1453,9 @@
1414 1453
                             v-if="
1415 1454
                               org_id != 9538 &&
1416 1455
                               org_id != 10121 &&
1417
-                              org_id != 9675 &&
1418
-                              org_id != 0
1456
+                              org_id != 9675 && 
1457
+                              org_id!=0
1458
+                             
1419 1459
                             "
1420 1460
                           >
1421 1461
                             {{
@@ -1427,7 +1467,7 @@
1427 1467
 
1428 1468
                           <td
1429 1469
                             v-if="
1430
-                              org_id == 10121 || org_id == 9675 || org_id == 0
1470
+                              org_id == 10121 || org_id == 9675 
1431 1471
                             "
1432 1472
                           >
1433 1473
                             {{
@@ -1437,6 +1477,18 @@
1437 1477
                             }}
1438 1478
                           </td>
1439 1479
 
1480
+                          <td
1481
+                            v-if="
1482
+                              org_id == 0 || org_id == 10469 
1483
+                            "
1484
+                          >
1485
+                            {{
1486
+                              monitor_record.sodium_concentration
1487
+                                ? monitor_record.sodium_concentration
1488
+                                : ""
1489
+                            }}
1490
+                          </td>
1491
+
1440 1492
                           <td v-if="org_id == 9538">
1441 1493
                             {{
1442 1494
                               monitor_record.sodium_concentration

+ 4 - 0
src/xt_pages/dialysis/components/consumablesDialog.vue Wyświetl plik

@@ -10,6 +10,8 @@
10 10
         style="width:150px;margin-right:10px"
11 11
         v-model="startTime"
12 12
         type="date"
13
+        format="yyyy-MM-dd"
14
+        value-format="yyyy-MM-dd"
13 15
         placeholder="选择日期"
14 16
         @change="selectStartime">
15 17
       </el-date-picker>
@@ -17,6 +19,8 @@
17 19
         style="width:150px;margin-right:10px"
18 20
         v-model="endTime"
19 21
         type="date"
22
+        format="yyyy-MM-dd"
23
+        value-format="yyyy-MM-dd"
20 24
         placeholder="选择日期"
21 25
         @change="selectEndtime">
22 26
       </el-date-picker>

+ 4 - 0
src/xt_pages/dialysis/components/dialysisDrugsDialog.vue Wyświetl plik

@@ -10,6 +10,8 @@
10 10
         style="width:140px;margin-right:10px"
11 11
         v-model="startTime"
12 12
         type="date"
13
+        format="yyyy-MM-dd"
14
+        value-format="yyyy-MM-dd"
13 15
         placeholder="选择日期"
14 16
         @change="changeStartTime">
15 17
         </el-date-picker>
@@ -17,6 +19,8 @@
17 19
         style="width:140px;margin-right:10px"
18 20
         v-model="endTime"
19 21
         type="date"
22
+        format="yyyy-MM-dd"
23
+        value-format="yyyy-MM-dd"
20 24
         placeholder="选择日期"
21 25
         @change="changeEndTime">
22 26
         </el-date-picker>

+ 4 - 0
src/xt_pages/dialysis/components/dialysisParametersDialog.vue Wyświetl plik

@@ -11,12 +11,16 @@
11 11
         v-model="startTime"
12 12
         type="date"
13 13
         placeholder="选择日期"
14
+        format="yyyy-MM-dd"
15
+        value-format="yyyy-MM-dd"
14 16
         @change="selectStartime">
15 17
         </el-date-picker>
16 18
         <el-date-picker
17 19
         style="width:150px;margin-right:10px"
18 20
         v-model="endTime"
19 21
         type="date"
22
+        format="yyyy-MM-dd"
23
+        value-format="yyyy-MM-dd"
20 24
         placeholder="选择日期">
21 25
         </el-date-picker>
22 26
         <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>

+ 1 - 1
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue Wyświetl plik

@@ -28,7 +28,7 @@
28 28
                 <td width="50">序号</td>
29 29
                 <td width="100">透析机号</td>
30 30
                 <td width="100">姓名</td>
31
-                <td width="100">透析号</td>
31
+                <td width="100">透析号</td>
32 32
                 <td width="200" v-for="(item,index) in rowList" :key="index">
33 33
                   {{item.filed_name_cn}} 
34 34
                 </td>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Wyświetl plik

@@ -29,7 +29,7 @@
29 29
           <el-col :span="8" v-if="isShow('实际超滤量')">
30 30
             <el-form-item
31 31
               label="实际超滤量(ml): " :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')"
32
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410"  >
32
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 ||  this.$store.getters.xt_user.template_info.org_id == 10485"  >
33 33
               <el-input v-model="form.actual_ultrafiltration"></el-input>
34 34
             </el-form-item>
35 35
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">

+ 2 - 2
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Wyświetl plik

@@ -1326,12 +1326,12 @@
1326 1326
               }
1327 1327
 
1328 1328
               if(msg == 2){
1329
-                this.$message.error("库存不足,请入库")
1329
+                this.$message.error("执行失败,库存不足,请入库")
1330 1330
                 this.execTimeDialogVisible = false
1331 1331
                 return false
1332 1332
               }
1333 1333
               if(msg == 3){
1334
-                this.$message.error("无库存,请入库")
1334
+                this.$message.error("执行失败,无库存,请入库")
1335 1335
                 this.execTimeDialogVisible = false
1336 1336
                 return false
1337 1337
               }

+ 76 - 6
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Wyświetl plik

@@ -239,7 +239,9 @@
239 239
                 org_id == 9555 
240 240
                 || org_id == 10432
241 241
                 || org_id == 10445
242
-                || org_id == 10410) &&
242
+                || org_id == 10410 ||
243
+                org_id == 10495 ||
244
+                org_id == 10485) &&
243 245
                 org_id!=10387
244 246
             "
245 247
           >
@@ -307,7 +309,8 @@
307 309
               org_id!= 10210 &&
308 310
               org_id != 9555 
309 311
               && org_id!=10432 && org_id!=10445
310
-              && org_id!=10410)
312
+              && org_id!=10410 && org_id!=10495 &&
313
+               org_id!=10485 )
311 314
               || org_id == 10387
312 315
             "
313 316
           >
@@ -359,7 +362,8 @@
359 362
                 template_id == 60 ||
360 363
                 org_id == 10432 ||
361 364
                 org_id == 10445 ||
362
-                org_id == 10410)
365
+                org_id == 10410 ||
366
+                org_id == 10495)
363 367
                 && org_id!=10387
364 368
             "
365 369
           >
@@ -410,7 +414,7 @@
410 414
               template_id != 60 &&
411 415
               org_id!=10432 &&
412 416
               org_id!=10445 &&
413
-              org_id!=10410) || 
417
+              org_id!=10410 && org_id!=10495) || 
414 418
               org_id == 10387
415 419
             "
416 420
           >
@@ -851,6 +855,30 @@
851 855
             </template>
852 856
           </el-table-column>
853 857
 
858
+          <el-table-column
859
+            prop="heparin"
860
+            align="center"
861
+            label="置换液速度(ml/h)"
862
+            width="140"
863
+            v-if="isShow('置换液速度')"
864
+          >
865
+            <template slot-scope="scope">
866
+              {{ scope.row.replacement_speed }}
867
+            </template>
868
+          </el-table-column>
869
+
870
+          <el-table-column
871
+            prop="heparin"
872
+            align="center"
873
+            label="碳酸氢钠用量(ml)"
874
+            width="140"
875
+            v-if="isShow('碳酸氢钠用量')"
876
+          >
877
+            <template slot-scope="scope">
878
+              {{ scope.row.dicarbonate }}
879
+            </template>
880
+          </el-table-column>
881
+
854 882
           <el-table-column
855 883
             prop="heparin"
856 884
             align="center"
@@ -1203,7 +1231,9 @@
1203 1231
                 org_id == 10340 ||
1204 1232
                 org_id == 10432 ||
1205 1233
                 org_id == 10445 ||
1206
-                org_id == 10410) 
1234
+                org_id == 10410 ||
1235
+                org_id == 10495 ||
1236
+                org_id == 10485) 
1207 1237
                 && org_id!=10387
1208 1238
             "
1209 1239
           >
@@ -1257,7 +1287,10 @@
1257 1287
               org_id != 9555 &&
1258 1288
               org_id!=10432 && 
1259 1289
               org_id!=10445 && 
1260
-              org_id!=10410)
1290
+              org_id!=10410 &&
1291
+              org_id!=10495 &&
1292
+              org_id!=10485
1293
+              )
1261 1294
               || org_id == 10387
1262 1295
             "
1263 1296
           >
@@ -1568,6 +1601,20 @@
1568 1601
             </el-form-item>
1569 1602
           </el-col>
1570 1603
 
1604
+          <el-col :span="8" v-if="isShow('置换液速度')">
1605
+            <el-form-item label="置换液速度(ml/h):" :prop="isName('置换液速度')"
1606
+              :rules="isCheckmust('置换液速度')">
1607
+              <el-input v-model="form.replacement_speed"></el-input>
1608
+            </el-form-item>
1609
+          </el-col>
1610
+
1611
+          <el-col :span="8" v-if="isShow('碳酸氢钠用量')">
1612
+            <el-form-item label="碳酸氢钠用量(ml):" :prop="isName('碳酸氢钠用量')"
1613
+              :rules="isCheckmust('碳酸氢钠用量')">
1614
+              <el-input v-model="form.dicarbonate"></el-input>
1615
+            </el-form-item>
1616
+          </el-col>
1617
+
1571 1618
           <el-col :span="8" v-if="isShow('滤前压')">
1572 1619
             <el-form-item label="滤前压(mmHg):">
1573 1620
               <el-input v-model="form.filter_pressure"></el-input>
@@ -1789,6 +1836,8 @@ export default {
1789 1836
         heparin_amount: "", //肝素量
1790 1837
         dehydration: "",
1791 1838
         filter_pressure:"",
1839
+        replacement_speed:"",
1840
+        dicarbonate:"",
1792 1841
       },
1793 1842
 
1794 1843
       table_current_row: null,
@@ -2497,7 +2546,18 @@ export default {
2497 2546
         parseFloat(this.form.dehydration) == NaN
2498 2547
           ? 0
2499 2548
           : parseFloat(this.form.dehydration);
2549
+        
2500 2550
       this.form.filter_pressure = this.form.filter_pressure?this.form.filter_pressure:""
2551
+
2552
+      this.form.replacement_speed =
2553
+        parseFloat(this.form.replacement_speed) == NaN
2554
+          ? 0
2555
+          : parseFloat(this.form.replacement_speed);
2556
+
2557
+          this.form.dicarbonate =
2558
+        parseFloat(this.form.dicarbonate) == NaN
2559
+          ? 0
2560
+          : parseFloat(this.form.dicarbonate);
2501 2561
       let mode = "1";
2502 2562
       if (this.form.id > 0) {
2503 2563
         mode = "2";
@@ -2656,6 +2716,16 @@ export default {
2656 2716
               parseFloat(this.form.heparin_amount) == NaN
2657 2717
                 ? 0
2658 2718
                 : parseFloat(this.form.heparin_amount);
2719
+
2720
+                this.form.replacement_speed =
2721
+            parseFloat(this.form.replacement_speed) == NaN
2722
+          ? 0
2723
+          : parseFloat(this.form.replacement_speed);
2724
+
2725
+          this.form.dicarbonate =
2726
+        parseFloat(this.form.dicarbonate) == NaN
2727
+          ? 0
2728
+          : parseFloat(this.form.dicarbonate);
2659 2729
             this.$message.error(resp.msg);
2660 2730
           }
2661 2731
         }

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue Wyświetl plik

@@ -14,8 +14,8 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410) &&this.$store.getters.xt_user.template_info.org_id!=10387 " width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410) || this.$store.getters.xt_user.template_info.org_id == 10387"  width="76px"> 超滤量(L) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485) &&this.$store.getters.xt_user.template_info.org_id!=10387 " width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 && this.$store.getters.xt_user.template_info.org_id!=10485) || this.$store.getters.xt_user.template_info.org_id == 10387"  width="76px"> 超滤量(L) </th>
19 19
           <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410) && this.$store.getters.xt_user.template_info.org_id!=10387" width="50px"> 超滤率 <br />(ml/h) </th>
20 20
           <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
21 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>

Plik diff jest za duży
+ 998 - 0
src/xt_pages/dialysis/dialysisFlow.vue


+ 45 - 9
src/xt_pages/dialysis/dialysisPrintOrder.vue Wyświetl plik

@@ -105,14 +105,14 @@
105 105
       </template>
106 106
       <template
107 107
         v-if="
108
-          org_template_info.template_id == 6 ||
108
+          (org_template_info.template_id == 6 ||
109 109
           org_template_info.template_id == 10 ||
110 110
           org_template_info.template_id == 11 ||
111 111
           org_template_info.template_id == 50 ||
112 112
           org_template_info.template_id == 52 ||
113 113
           org_template_info.template_id == 53  ||
114
-          org_template_info.template_id == 64  ||
115
-          $store.getters.xt_user.org.id == 0 
114
+          org_template_info.template_id == 64)
115
+          && $store.getters.xt_user.org.id != 0
116 116
         "
117 117
       >
118 118
       <div>
@@ -798,6 +798,19 @@
798 798
         </div>
799 799
       </template>
800 800
 
801
+      <template v-if="org_template_info.template_id == 65  || $store.getters.xt_user.org.id == 0 ">
802
+        <div>
803
+          <el-button
804
+            :loading="loading"
805
+            size="small"
806
+            icon="el-icon-printer"
807
+            @click="printThisPage"
808
+            type="primary"
809
+            >打印</el-button
810
+          >
811
+        </div>
812
+      </template>
813
+
801 814
     </div>
802 815
     <div class="app-container" style="min-height: 0">
803 816
       <!--<div class="order-print-btn"-->
@@ -934,8 +947,7 @@
934 947
           <DialysisPrintOrderTwo
935 948
             v-bind:childResponse="childResponse"
936 949
             v-if="
937
-              org_template_info.template_id == 2 ||
938
-              org_template_info.template_id == 0
950
+              org_template_info.template_id == 2
939 951
             "
940 952
           ></DialysisPrintOrderTwo>
941 953
 
@@ -959,7 +971,7 @@
959 971
                                   
960 972
           <DialysisPrintOrderSix
961 973
             v-bind:childResponse="childResponse"
962
-            v-if="org_template_info.template_id == 6"
974
+            v-if="org_template_info.template_id == 6 && $store.getters.xt_user.org.id!=0"
963 975
           >
964 976
           </DialysisPrintOrderSix>
965 977
 
@@ -1245,6 +1257,12 @@
1245 1257
             v-if="org_template_info.template_id == 64">
1246 1258
 
1247 1259
           </DialysisPrintOrderSixtyfour>
1260
+
1261
+          <DialysisPrintOrderSixtyFive
1262
+              v-bind:childResponse="childResponse"
1263
+            v-if="org_template_info.template_id == 65 || $store.getters.xt_user.org.id ==0">
1264
+
1265
+          </DialysisPrintOrderSixtyFive>
1248 1266
         </div>
1249 1267
       </el-container>
1250 1268
     </div>
@@ -1327,6 +1345,7 @@ import DialysisPrintOrderSixtyOne from "./template/DialysisPrintOrderSixtyOne"
1327 1345
 import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
1328 1346
 // import DialysisPrintOrderSixtyThree from "./template/DialysisPrintOrderSixtyThree"
1329 1347
 import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
1348
+import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive.vue"
1330 1349
 export default {
1331 1350
   name: "dialysisPrintOrder",
1332 1351
   components: {
@@ -1394,9 +1413,11 @@ export default {
1394 1413
     DialysisPrintOrderEight,
1395 1414
     DialysisPrintOrderNine,
1396 1415
     DialysisPrintOrderSixtyfour,
1416
+    DialysisPrintOrderSixtyFive,
1397 1417
     LabelBox,
1398 1418
     BreadCrumb,
1399
-  },
1419
+    DialysisPrintOrderSixtyFive
1420
+},
1400 1421
   data() {
1401 1422
     return {
1402 1423
       crumbs: [
@@ -1546,6 +1567,11 @@ export default {
1546 1567
       return "";
1547 1568
     },
1548 1569
     printThisPage() {
1570
+      // console.log("this.org_template_info.template_id",this.org_template_info.template_id)
1571
+      // if(this.$store.getters.xt_user.org.id == 0){
1572
+      //   this.org_template_info.template_id = 65
1573
+      // }
1574
+       
1549 1575
       var ptime = Math.round(new Date().getTime() / 1000);
1550 1576
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
1551 1577
 
@@ -1638,8 +1664,9 @@ export default {
1638 1664
         // this.org_template_info.template_id == 51 ||
1639 1665
         this.org_template_info.template_id == 58 ||
1640 1666
         this.org_template_info.template_id == 60 ||
1641
-        this.org_template_info.template_id == 61  ||
1642
-        this.org_template_info.template_id ==0
1667
+        this.org_template_info.template_id == 61
1668
+      
1669
+       
1643 1670
       ) {
1644 1671
         printJS({
1645 1672
           printable: "dialysis-print-box-1",
@@ -1954,6 +1981,15 @@ export default {
1954 1981
           scanStyles: false,
1955 1982
         });
1956 1983
         
1984
+      }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
1985
+        console.log("进来")
1986
+        printJS({
1987
+          printable: "dialysis-print-box-65",
1988
+          type: "html",
1989
+          style: style12,
1990
+          scanStyles: false,
1991
+        });
1992
+        
1957 1993
       }else if (
1958 1994
         this.org_template_info.template_id == 53
1959 1995
       ) {

+ 17 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Wyświetl plik

@@ -227,7 +227,23 @@
227 227
                   </tbody>
228 228
                 </table>
229 229
 
230
-                <table class="table-box">
230
+                <table class="table-box" v-if="org_id==10394 || org_id == 0">
231
+                  <tbody>
232
+                    <tr>
233
+                      <td width="40">内瘘:</td>
234
+                      <td width="800">
235
+                        <div class="under-line">
236
+                          &nbsp;
237
+                          <span v-if="predialysis&&predialysis.internal_fistula!=undefined">{{ predialysis.internal_fistula }}</span>
238
+                        </div>
239
+                      </td>
240
+                     
241
+                     
242
+                     
243
+                    </tr>
244
+                  </tbody>
245
+                </table>
246
+                <table class="table-box" v-if="org_id!=10394 && org_id!=0">
231 247
                   <tbody>
232 248
                     <tr>
233 249
                       <td width="40">内瘘:</td>

+ 49 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Wyświetl plik

@@ -684,6 +684,28 @@
684 684
                       >
685 685
                         血浆胆红素吸附
686 686
                       </div>
687
+                      <div
688
+                        class="under_line"
689
+                        style="
690
+                          bwidth: 150px;
691
+                          text-align: center;
692
+                          font-weight: 600;
693
+                        "
694
+                        v-if="prescription.mode_id == 24"
695
+                      >
696
+                       I-HDF
697
+                      </div>
698
+                      <div
699
+                        class="under_line"
700
+                        style="
701
+                          bwidth: 150px;
702
+                          text-align: center;
703
+                          font-weight: 600;
704
+                        "
705
+                        v-if="prescription.mode_id == 25"
706
+                      >
707
+                       HD高通
708
+                      </div>
687 709
                       <div
688 710
                         class="under_line"
689 711
                         style="
@@ -915,16 +937,16 @@
915 937
                     class="row"
916 938
                     style="padding: 2px 0; line-height: 23px; display: flex"
917 939
                   >
918
-                    <div class="inline_block" style="flex: 1" v-if="org_id!=0 && org_id!=10440">
940
+                    <div class="inline_block" style="flex: 1" v-if="org_id!=10440">
919 941
                       上次透后体重:
920 942
                       <div
921 943
                         class="under_line"
922 944
                         style="width: 100px; text-align: center"
923 945
                       >
924
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 ">{{
946
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495">{{
925 947
                           lastafterdialysis.weight_after
926 948
                         }}</span>
927
-                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440">{{
949
+                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495">{{
928 950
                           predialysis.weight_after_last_transparency
929 951
                             ? predialysis.weight_after_last_transparency
930 952
                             : "未称重"
@@ -961,7 +983,7 @@
961 983
                       </div>
962 984
                       kg
963 985
                     </div>
964
-                    <div class="inline_block" style="flex: 1">
986
+                    <div class="inline_block" style="flex: 1" v-if="org_id!=10469 && org_id!=0">
965 987
                       计划超滤量: 
966 988
                       <div
967 989
                         class="under_line"
@@ -976,6 +998,22 @@
976 998
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">ml</span> 
977 999
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">L</span>
978 1000
                     </div>
1001
+
1002
+
1003
+                    <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 0">
1004
+                      处方脱水量: 
1005
+                      <div
1006
+                        class="under_line"
1007
+                        style="width: 100px; text-align: center"
1008
+                      >
1009
+                        {{
1010
+                          prescription.prescription_water
1011
+                            ? prescription.prescription_water
1012
+                            : "/"
1013
+                        }}
1014
+                      </div>
1015
+                       ml
1016
+                    </div>
979 1017
                     <div class="inline_block" style="flex: 1">
980 1018
                       干体重:
981 1019
                       <div
@@ -1408,7 +1446,10 @@
1408 1446
                         <td width="60" v-if="org_id == 9919">血温(°C)</td>
1409 1447
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1410 1448
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1411
-                        <td width="50" v-if="org_id != 10121">电导度<br />(ms/cm)</td>
1449
+                        <td width="50" v-if="org_id != 10121">
1450
+                          <span v-if="org_id != 0 && org_id !=10469"> 电导度<br />(ms/cm)</span> 
1451
+                          <span v-if="org_id == 0 || org_id ==10469"> 钠浓度<br />(mmol/L)</span> 
1452
+                        </td>
1412 1453
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1413 1454
                         <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 0">超滤量<br />(ml)</td>
1414 1455
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 || org_id ==0">累计超滤量<br />(ml)</td>
@@ -1501,7 +1542,9 @@
1501 1542
 
1502 1543
 
1503 1544
                         <td v-if="org_id != 9538 &&org_id != 10121">
1504
-                          {{ monitor.conductivity ? monitor.conductivity : "" }}
1545
+                          <span v-if="org_id!=0&&org_id!=10469"> {{ monitor.conductivity ? monitor.conductivity : "" }}</span>
1546
+                          <span v-if="org_id==0||org_id==10469"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</span>
1547
+                          
1505 1548
                         </td>
1506 1549
 
1507 1550
                       

Plik diff jest za duży
+ 4051 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue


+ 61 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue Wyświetl plik

@@ -210,11 +210,11 @@
210 210
                         : "/"
211 211
                     }}&nbsp;ml/min
212 212
                   </div>
213
-                  <div style="margin-left:70px ;display: inline-block;">
213
+                  <!-- <div style="margin-left:70px ;display: inline-block;">
214 214
                     实际预冲量:
215
-                    {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }} 
215
+                    {{ prescription.pre_impulse ? prescription.pre_impulse : "/" }} 
216 216
                      &nbsp;L
217
-                  </div>
217
+                  </div> -->
218 218
                   <div style="margin-left:70px ; display: inline-block;">
219 219
                     医师签名:
220 220
 
@@ -349,22 +349,22 @@
349 349
                     <!-- border-bottom: 1px solid gray; border-right: 1px solid gray;-->
350 350
                       <tr style="">
351 351
                         <td rowspan="2" style=" ">时间</td>
352
-                        <td colspan="5" style=" ">透析参数</td>
353
-                        <td colspan="3" style=" ">生命体征</td>
354
-                        <td colspan="3" style=" ">治疗中病情变化</td>
352
+                        <td colspan="4" style=" ">透析参数</td>
353
+                        <td colspan="4" style=" ">生命体征</td>
354
+                        <td colspan="2" style=" ">治疗中病情变化</td>
355 355
                       </tr>
356 356
                       <tr style="">
357 357
                         <td style=" ">TMP<br />mmHg</td>
358 358
                         <td style=" ">静脉压<br />mmHg</td>
359 359
                         <td style=" ">血流量<br />ml/min</td>
360
-                        <td style="">脱水量<br />L</td>
360
+                        <td style="">脱水量<br />ml</td>
361 361
                         <td style=" ">T<br />ºC</td>
362 362
                         <td style=" ">HR<br />bpm</td>
363 363
                         <td style=" ">R<br />bpm</td>
364 364
                         <td style=" ">BP<br />mmHg</td>
365 365
                         <!-- <td style=" ">时间</td> -->
366 366
                         <td style=" ">记录</td>
367
-                        <td >护士签名</td>
367
+                        <!-- <td >护士签名</td> -->
368 368
                       </tr>
369 369
                     
370 370
                       <tr style="" v-for="(monitor, monindex) in monitors" :key="monindex" >
@@ -449,7 +449,7 @@
449 449
                               {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
450 450
                           </span>
451 451
                         </td>
452
-                        <td>
452
+                        <!-- <td>
453 453
                           <span v-if="
454 454
                             setAdminUserES(
455 455
                               dialysisOrder == null
@@ -479,7 +479,7 @@
479 479
                             srcset=""
480 480
                             v-else
481 481
                           />
482
-                        </td>
482
+                        </td> -->
483 483
                       </tr>
484 484
                     
485 485
                   </table>
@@ -550,7 +550,7 @@
550 550
                       </td>
551 551
                       <!-- 执行时间 -->
552 552
                       <td width="130" style="">
553
-                        {{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}
553
+                        {{ getTime(advice.execution_time, "{h}:{i}") }}
554 554
                       </td>
555 555
                       <!-- 执行 -->
556 556
                       <td width="110" style="">
@@ -623,9 +623,11 @@
623 623
                       <td v-if="advice_index > 5" width="150" style=""></td>
624 624
                       <td v-if="advice_index > 5" width="110"></td>
625 625
                     </tr>
626
+                  
626 627
                   </table>
627 628
                 </td>
628 629
               </tr>
630
+     
629 631
               <tr>
630 632
                 <td colspan="3">
631 633
                   <!-- <div style="display: inline-block;">
@@ -701,6 +703,8 @@
701 703
                   </div>
702 704
                 </td>
703 705
               </tr>
706
+
707
+           
704 708
             </table>
705 709
           </div>
706 710
         </div>
@@ -761,6 +765,7 @@ export default {
761 765
       adminUser: [],
762 766
       bloodAccessParOpera: {},
763 767
       lastafterdialysis: {},
768
+      projects:[]
764 769
     };
765 770
   },
766 771
   computed: {},
@@ -974,8 +979,50 @@ export default {
974 979
           advices.push(item);
975 980
         }
976 981
 
982
+        let projects = [];
983
+        response.data.data.projects.map((item) => {
984
+          if (item.type == 2) {
985
+            projects.push(item);
986
+          }
987
+        });
988
+        this.projects = projects;
989
+        if (this.doctor_advices.length + this.projects.length <= 6) {
990
+          var nl = 6 - (this.doctor_advices.length + this.projects.length);
991
+          this.print_length = 6;
992
+
993
+          for (let index = 0; index < nl; index++) {
994
+            if (
995
+              this.projects[index] == undefined ||
996
+              this.projects[index].length <= 0
997
+            ) {
998
+              this.projects.push([]);
999
+            } else {
1000
+              continue;
1001
+            }
1002
+          }
1003
+        }
1004
+        console.log("advices",this.advices)
1005
+        console.log("this.projects", this.projects);
1006
+
1007
+        var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1008
+        if(this.projects!=null && this.projects.length >0){
1009
+           for(let i=0;i<this.projects.length;i++){
1010
+              if(this.projects[i].project_id ==  7620){
1011
+                 objProject.advice_name = this.projects[i].project.project_name
1012
+                 objProject.start_time = this.projects[i].start_time
1013
+                 objProject.single_dose = this.projects[i].single_dose
1014
+                 objProject.single_dose_unit = this.projects[i].unit
1015
+                 objProject.execution_time = this.projects[i].execution_time
1016
+                 objProject.execution_staff= this.projects[i].execution_staff
1017
+              }
1018
+           }
1019
+        }
1020
+        this.advices.push(objProject)
1021
+
977 1022
         var tableAdvice = this.advices;
978 1023
 
1024
+
1025
+
979 1026
         if (tableAdvice.length === 0) {
980 1027
           var obj = { advice_name: "", start_time: "" };
981 1028
           var obj1 = { advice_name: "", start_time: "" };
@@ -1051,6 +1098,9 @@ export default {
1051 1098
           this.advices = tableAdvice;
1052 1099
         }
1053 1100
 
1101
+ 
1102
+         
1103
+
1054 1104
         // this.loading = false;
1055 1105
         // console.log(this.advice_groups);
1056 1106
         } else {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Wyświetl plik

@@ -239,7 +239,7 @@
239 239
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
240 240
                       </div>
241 241
                     </div>
242
-                    <div class="inline_block" style="flex:4;" v-if="org_id == 10081">
242
+                    <div class="inline_block" style="flex:4;" v-if="org_id == 9779">
243 243
                       穿刺点:
244 244
                       <div class="under_line" style="min-width: 120px;text-align: center">
245 245
                         {{ predialysis.point_puncture ? predialysis.point_puncture : "/" }}

+ 2 - 1
src/xt_pages/home/index.vue Wyświetl plik

@@ -171,7 +171,8 @@ export default {
171 171
           imgUrl: require("../../assets/home/analyze.png"),
172 172
           name: "透析监控",
173 173
           link: "/dialysis/watch"
174
-        }
174
+        },
175
+      
175 176
       ],
176 177
       subscibe: {},
177 178
       subscibeBan: {

+ 11 - 8
src/xt_pages/hospitalStation/index.vue Wyświetl plik

@@ -240,7 +240,7 @@ export default {
240 240
       loadingone: false,
241 241
       read_loading: false,
242 242
       registers: [
243
-        { value: 11, label: '普通门诊' },
243
+        { value: 21, label: '普通住院' },
244 244
         // {value: 12, label: '门诊挂号'},
245 245
         // {value: 13, label: '急诊'},
246 246
         { value: 14, label: '门诊慢性病' }
@@ -346,6 +346,8 @@ export default {
346 346
         'id_card_type': this.form.id_card_type,
347 347
         'admin_user_id': this.$store.getters.xt_user.user.id,
348 348
         'certificates':this.form.certificates,
349
+        'is_settle':"0",
350
+
349 351
       }
350 352
       axios.get('http://127.0.0.1:9532/zh/api/readcard', {
351 353
         params: params
@@ -359,13 +361,11 @@ export default {
359 361
               if (that.form.id_card_type == 1) {
360 362
                 that.form.id = patient.id
361 363
                 that.form.name = patient.name
362
-                that.form.gender = patient.gender
364
+                that.form.sex = patient.gender
363 365
                 that.form.age = patient.age
364 366
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
365 367
                 that.form.phone = patient.phone
366 368
                 that.form.id_card_no = patient.id_card_no
367
-                that.form.medicalInsuranceCard = response.data.data.number
368
-
369 369
                 that.InsuplcAdmdvs = []
370 370
                 // console.log(parseNumber(response.data.data.info.output.insuinfo.psn_type))
371 371
                 // console.log(parseNumber(response.data.data.insutype))
@@ -380,21 +380,24 @@ export default {
380 380
                 that.form.social_type = parseInt(response.data.data.insutype)
381 381
 
382 382
               } else if (that.form.id_card_type == 2) {
383
+
384
+
383 385
                 that.form.id = patient.id
384 386
                 that.form.name = patient.name
385
-                that.form.gender = patient.gender
387
+                that.form.sex = patient.gender
386 388
                 that.form.age = patient.age
387 389
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
388 390
                 that.form.phone = patient.phone
389
-                that.form.id_card = patient.id_card_no
391
+                that.form.id_card_no = patient.id_card_no
392
+
390 393
               } else {
391 394
                 that.form.id = patient.id
392 395
                 that.form.name = patient.name
393
-                that.form.gender = patient.gender
396
+                that.form.sex = patient.gender
394 397
                 that.form.age = patient.age
395 398
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
396 399
                 that.form.phone = patient.phone
397
-                that.form.id_card = patient.id_card_no
400
+                that.form.id_card_no = patient.id_card_no
398 401
 
399 402
                 that.InsuplcAdmdvs = []
400 403
                 for (let i = 0; i < response.data.data.info.output.insuinfo.length; i++) {

+ 52 - 5
src/xt_pages/hospitalStation/summary.vue Wyświetl plik

@@ -115,9 +115,9 @@
115 115
                       <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
116 116
 
117 117
                     </el-popover> -->
118
-          <el-button size="small" type="primary" @click="export_detail"
119
-            >报表下载</el-button
120
-          >
118
+          <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
119
+
120
+          <el-button size="small" type="primary" @click="batch_print_settle" v-if="$store.getters.xt_user.org_id == 10215">批量打印结算单</el-button>
121 121
         </div>
122 122
       </div>
123 123
       <el-table
@@ -129,8 +129,16 @@
129 129
           backgroundColor: 'rgb(245, 247, 250)',
130 130
           color: '#606266',
131 131
         }"
132
+        @selection-change="handleSelectionChange"
132 133
         highlight-current-row
133 134
       >
135
+        <el-table-column
136
+          prop="date"
137
+          width="60"
138
+          align="center"
139
+          type="selection"
140
+        >
141
+        </el-table-column>
134 142
         <el-table-column
135 143
           prop="date"
136 144
           label="序号"
@@ -357,6 +365,19 @@
357 365
                 :visible.sync="settlementVisible">
358 366
             <settlement-print ref="print" :paramsObj='orderObj'></settlement-print>
359 367
         </el-dialog> -->
368
+
369
+
370
+    <el-dialog
371
+      class="centerDialog"
372
+      width="1200px"
373
+      title="打印"
374
+      :visible.sync="batchStatementVisible"
375
+    >
376
+      <hospital-batch-statement-print
377
+        ref="hospital_batch_print" :paramsObj="batchParams"
378
+      >
379
+      </hospital-batch-statement-print>
380
+    </el-dialog>
360 381
   </div>
361 382
 </template>
362 383
 
@@ -382,11 +403,15 @@ import axios from "axios";
382 403
 import invoicePrint from "./invoicePrint";
383 404
 import statementPrint from "./statementPrint";
384 405
 import ShouJuPrint from "./shouJuPrint";
406
+import BatchStatementPrint from '../outpatientCharges/batchStatementPrint.vue'
407
+import HospitalBatchStatementPrint from './hospitalBatchStatementPrint.vue'
385 408
 
386 409
 // import settlementPrint from './settlementPrint'
387 410
 
388 411
 export default {
389 412
   components: {
413
+    HospitalBatchStatementPrint,
414
+    BatchStatementPrint,
390 415
     ShouJuPrint,
391 416
     NewStatementPrintTwo,
392 417
     NewStatementPrint,
@@ -399,6 +424,9 @@ export default {
399 424
   },
400 425
   data() {
401 426
     return {
427
+      batchParams:{},
428
+      selecting_schs:[],
429
+      batchStatementVisible:false,
402 430
       loading1: true,
403 431
       orderObj: {},
404 432
       statementVisible: false,
@@ -478,6 +506,9 @@ export default {
478 506
   },
479 507
 
480 508
   methods: {
509
+    handleSelectionChange(val) {
510
+      this.selecting_schs = val
511
+    },
481 512
     confirmUploadInfo(row){
482 513
       var that = this;
483 514
       axios
@@ -975,8 +1006,24 @@ export default {
975 1006
     },
976 1007
     settlementPrint() {
977 1008
       this.settlementVisible = true;
978
-    },
979
-    export_detail() {
1009
+    },batch_print_settle(){
1010
+      if (this.selecting_schs.length === 0) {
1011
+        this.$message.error('请至少选择一条需要打印的内容')
1012
+        return false
1013
+      } else {
1014
+        var sch_ids = []
1015
+        for (let index = 0; index < this.selecting_schs.length; index++) {
1016
+          sch_ids.push(this.selecting_schs[index].id)
1017
+        }
1018
+        this.batchStatementVisible = true;
1019
+        let params = {
1020
+          order_ids: sch_ids.join(","),
1021
+          admin_user_id: this.$store.getters.xt_user.user.id,
1022
+        };
1023
+        this.batchParams = params
1024
+
1025
+      }
1026
+    },   export_detail() {
980 1027
       let params = {
981 1028
         start_time: this.start_time,
982 1029
         end_time: this.end_time,

+ 14 - 5
src/xt_pages/management/components/UserForm.vue Wyświetl plik

@@ -788,7 +788,7 @@
788 788
             <div class="order_title">设备使用记录清单</div>
789 789
           </div>
790 790
           <div>
791
-            <div class="printClass">打印日期:{{ nowTime }}</div>
791
+            <div class="printClass" v-if="org_id!=10340">打印日期:{{ nowTime }}</div>
792 792
             <table
793 793
               border="1"
794 794
               style="width:100%"
@@ -854,18 +854,22 @@
854 854
                 <td
855 855
                   :rowspan="2"
856 856
                   style="text-align:center;min-width:40px;font-size:15px"
857
+                  v-if="org_id!=0&&org_id!=10060&& org_id!=10340"
857 858
                 >
858 859
                  透析机消毒液(更换)
860
+                 
859 861
                 </td>
860 862
                 <td
861 863
                   :rowspan="2"
862 864
                   style="text-align:center;width:80px;font-size:15px"
865
+                  v-if="org_id!=0&&org_id!=10060&& org_id!=10340"
863 866
                 >
864 867
                  细菌过滤器(更换)
865 868
                 </td>
866 869
                 <td
867 870
                   :rowspan="2"
868 871
                   style="text-align:center;width:80px;font-size:15px"
872
+                  v-if="org_id!=0&&org_id!=10060&& org_id!=10340"
869 873
                 >
870 874
                  空气滤网
871 875
                 </td>
@@ -961,13 +965,16 @@
961 965
                 <td style="text-align:center;font-size:15px;height:30px">
962 966
                   {{ item.disinfection_residue }}
963 967
                 </td>
964
-                <td style="text-align:center;font-size:15px;height:30px">
968
+                <td style="text-align:center;font-size:15px;height:30px"
969
+                v-if="org_id!=0&&org_id!=10060 && org_id!=10340">
965 970
                    {{item.dialysis_checked }}
966 971
                 </td>
967
-                <td style="text-align:center;font-size:15px;height:30px">
972
+                <td style="text-align:center;font-size:15px;height:30px"
973
+                v-if="org_id!=0&&org_id!=10060&& org_id!=10340">
968 974
                   {{item.germ_checked }}
969 975
                 </td>
970
-                <td style="text-align:center;font-size:15px;height:30px">
976
+                <td style="text-align:center;font-size:15px;height:30px"
977
+                v-if="org_id!=0&&org_id!=10060&& org_id!=10340">
971 978
                   {{item.clean}}
972 979
                 </td>
973 980
 
@@ -1190,7 +1197,8 @@ export default {
1190 1197
       bed: "",
1191 1198
       bedNumberTwo: [],
1192 1199
       four: true,
1193
-      showone: false
1200
+      showone: false,
1201
+      org_id:0,
1194 1202
     };
1195 1203
   },
1196 1204
   methods: {
@@ -2590,6 +2598,7 @@ export default {
2590 2598
     this.getAllSubregion();
2591 2599
     // this.getInformationData();
2592 2600
     this.getAllOrganization();
2601
+    this.org_id = this.$store.getters.xt_user.template_info.org_id;
2593 2602
   },
2594 2603
   watch: {
2595 2604
     userdata(newvalue, oldvalue) {

+ 228 - 44
src/xt_pages/outpatientCharges/components/registerDialog.vue Wyświetl plik

@@ -214,6 +214,7 @@
214 214
     data() {
215 215
 
216 216
       return {
217
+        ws:null,
217 218
         registers: [
218 219
           { value: 11, label: '普通门诊' },
219 220
           { value: 1102, label: '新冠门诊' },
@@ -632,55 +633,238 @@
632 633
           'admin_user_id': this.$store.getters.xt_user.user.id,
633 634
           'certificates':this.form.certificates,
634 635
         }
635
-        axios.defaults.retry = 0
636
-        axios.get('http://127.0.0.1:9532/api/readcard', {
637
-          params: params
638
-        })
639
-          .then(function(response) {
640
-            if (response.data.state == 0) {
641
-              that.$message.error(response.data.msg)
642
-              return false
643
-            } else {
644
-              var patient = response.data.data.patient
645
-
646
-              if (that.form.id_card_type == 1) {
647
-                that.form.id = patient.id
648
-                that.form.name = patient.name
649
-                that.form.gender = patient.gender
650
-                that.form.age = patient.age
651
-                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
652
-                that.form.phone = patient.phone
653
-                that.form.id_card = patient.id_card_no
654
-                that.form.medical_insurance_card = response.data.data.number
655
-                that.form.social_type = parseInt(response.data.data.insutype)
656
-
657
-
658
-              } else if (that.form.id_card_type == 2) {
659
-                that.form.id = patient.id
660
-                that.form.name = patient.name
661
-                that.form.gender = patient.gender
662
-                that.form.age = patient.age
663
-                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
664
-                that.form.phone = patient.phone
665
-                that.form.id_card = patient.id_card_no
666
-              } else {
667
-                that.form.id = patient.id
668
-                that.form.name = patient.name
669
-                that.form.gender = patient.gender
670
-                that.form.age = patient.age
671
-                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
672
-                that.form.phone = patient.phone
673
-                that.form.id_card = patient.id_card_no
674
-                that.form.social_type = parseInt(response.data.data.insutype)
675 636
 
676
-              }
677
-              that.$message({ message: '读卡成功', type: 'success' })
637
+        if ((this.$store.getters.xt_user.org_id == 10387 && this.form.id_card_type ==  4) || (this.$store.getters.xt_user.org_id == 4 && this.form.id_card_type ==  4) || (this.$store.getters.xt_user.org_id == 10318 && this.form.id_card_type ==  4) ){
638
+          try {
639
+            //检测当前浏览器是否支持websocket模式
640
+            window.WebSocket = window.WebSocket || window.MozWebSocket;
641
+            if (!window.WebSocket){
642
+              alert("WebSocket not supported by this browser");
643
+              return;
678 644
             }
679
-          })
680
-          .catch(function(error) {
645
+            this.ws = new WebSocket("ws://127.0.0.1:8899");//连接服务器
646
+            var that = this
647
+            this.ws.onopen = function(event){
648
+              if (that.$store.getters.xt_user.org_id == 10387){
649
+                that.ws.send("{\"url\":\"http://10.93.33.243:20001/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01101\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"罗佳菊\",\"orgId\":\"H43082200408\"},\"orgId\":\"H43082200408\",\"transType\":\"ec.query\"}}");
650
+              }else if(that.$store.getters.xt_user.org_id == 10318){
651
+                that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01101\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");
652
+              }else if(that.$store.getters.xt_user.org_id == 4){
653
+                that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01101\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");
654
+              }
655
+            };
656
+
657
+            this.ws.onmessage = function(event){
658
+              // alert("接收到服务器发送的数据:\r\n"+event.data);
659
+              var newParams =  JSON.parse(event.data)
660
+              console.log(newParams)
661
+              console.log(newParams.data)
662
+              console.log(newParams.data)
663
+              console.log(newParams.data.ecToken)
664
+              console.log(newParams.data.idNo)
665
+              console.log(newParams.data.userName)
666
+              console.log(newParams.data.insuOrg)
667
+
668
+              newParams['ecToken'] = newParams.data.ecToken
669
+              newParams['idNo'] = newParams.data.idNo
670
+              newParams['userName'] = newParams.data.userName
671
+              newParams['insuOrg'] = newParams.data.insuOrg
672
+
673
+              newParams['id_card_type'] =  that.form.id_card_type
674
+              newParams['admin_user_id'] = that.$store.getters.xt_user.user.id
675
+              newParams['certificates'] = that.form.certificates
676
+              axios.get('http://127.0.0.1:9532/api/readcard', {
677
+                params: newParams
678
+              })
679
+                .then(function(response) {
680
+                  if (response.data.state == 0) {
681
+                    that.$message.error(response.data.msg)
682
+                    return false
683
+                  } else {
684
+                    var patient = response.data.data.patient
685
+
686
+                    if (that.form.id_card_type == 1) {
687
+                      that.form.id = patient.id
688
+                      that.form.name = patient.name
689
+                      that.form.gender = patient.gender
690
+                      that.form.age = patient.age
691
+                      that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
692
+                      that.form.phone = patient.phone
693
+                      that.form.id_card = patient.id_card_no
694
+                      that.form.medical_insurance_card = response.data.data.number
695
+                      that.form.social_type = parseInt(response.data.data.insutype)
696
+
697
+
698
+                    } else if (that.form.id_card_type == 2) {
699
+                      that.form.id = patient.id
700
+                      that.form.name = patient.name
701
+                      that.form.gender = patient.gender
702
+                      that.form.age = patient.age
703
+                      that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
704
+                      that.form.phone = patient.phone
705
+                      that.form.id_card = patient.id_card_no
706
+                    } else {
707
+                      that.form.id = patient.id
708
+                      that.form.name = patient.name
709
+                      that.form.gender = patient.gender
710
+                      that.form.age = patient.age
711
+                      that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
712
+                      that.form.phone = patient.phone
713
+                      that.form.id_card = patient.id_card_no
714
+                      that.form.social_type = parseInt(response.data.data.insutype)
715
+
716
+                    }
717
+                    that.$message({ message: '读卡成功', type: 'success' })
718
+                  }
719
+                })
720
+                .catch(function(error) {
721
+
722
+                })
723
+
724
+
725
+            };
726
+            this.ws.onclose = function(event){
727
+              // alert("已经与服务器断开连接\r\n当前连接状态:"+this.readyState);
728
+            };
729
+            this.ws.onerror = function(event){
730
+              // if (this.flag!=1)
731
+              // alert("WebSocket接收异常!");
732
+            };
733
+          } catch (ex) {
734
+            alert(ex.message);
735
+          }
681 736
 
737
+        }else{
738
+          axios.get('http://127.0.0.1:9532/api/readcard', {
739
+            params: params
682 740
           })
741
+            .then(function(response) {
742
+              if (response.data.state == 0) {
743
+                that.$message.error(response.data.msg)
744
+                return false
745
+              } else {
746
+                var patient = response.data.data.patient
747
+
748
+                if (that.form.id_card_type == 1) {
749
+                  that.form.id = patient.id
750
+                  that.form.name = patient.name
751
+                  that.form.gender = patient.gender
752
+                  that.form.age = patient.age
753
+                  that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
754
+                  that.form.phone = patient.phone
755
+                  that.form.id_card = patient.id_card_no
756
+                  that.form.medical_insurance_card = response.data.data.number
757
+                  that.form.social_type = parseInt(response.data.data.insutype)
758
+
759
+
760
+                } else if (that.form.id_card_type == 2) {
761
+                  that.form.id = patient.id
762
+                  that.form.name = patient.name
763
+                  that.form.gender = patient.gender
764
+                  that.form.age = patient.age
765
+                  that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
766
+                  that.form.phone = patient.phone
767
+                  that.form.id_card = patient.id_card_no
768
+                } else {
769
+                  that.form.id = patient.id
770
+                  that.form.name = patient.name
771
+                  that.form.gender = patient.gender
772
+                  that.form.age = patient.age
773
+                  that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
774
+                  that.form.phone = patient.phone
775
+                  that.form.id_card = patient.id_card_no
776
+                  that.form.social_type = parseInt(response.data.data.insutype)
777
+
778
+                }
779
+                that.$message({ message: '读卡成功', type: 'success' })
780
+              }
781
+            })
782
+            .catch(function(error) {
783
+
784
+            })
785
+        }
683 786
       },
787
+      // reading() {
788
+      //   var that = this
789
+      //   if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
790
+      //     this.$message.error('请先选择读卡类型')
791
+      //     return
792
+      //   }
793
+      //   let params = {
794
+      //     'id_card_type': this.form.id_card_type,
795
+      //     'admin_user_id': this.$store.getters.xt_user.user.id,
796
+      //     'certificates':this.form.certificates,
797
+      //   }
798
+      //   axios.defaults.retry = 0
799
+      //
800
+      //   if(this.$store.getters.xt_user.org_id == 10387){
801
+      //
802
+      //     // 创建WebSocket实例并指定服务器地址
803
+      //     this.socket = new WebSocket("ws://localhost:8899");
804
+      //
805
+      //     // 监听WebSocket事件
806
+      //     this.socket.onopen = () => {
807
+      //       console.log("WebSocket连接已建立");
808
+      //     };
809
+      //
810
+      //     this.socket.onmessage = (event) => {
811
+      //       console.log("收到消息:", event.data);
812
+      //     };
813
+      //
814
+      //     this.socket.onclose = () => {
815
+      //       console.log("WebSocket连接已关闭");
816
+      //     };
817
+      //   }
818
+      //
819
+      //
820
+      //   axios.get('http://127.0.0.1:9532/api/readcard', {
821
+      //     params: params
822
+      //   })
823
+      //     .then(function(response) {
824
+      //       if (response.data.state == 0) {
825
+      //         that.$message.error(response.data.msg)
826
+      //         return false
827
+      //       } else {
828
+      //         var patient = response.data.data.patient
829
+      //
830
+      //         if (that.form.id_card_type == 1) {
831
+      //           that.form.id = patient.id
832
+      //           that.form.name = patient.name
833
+      //           that.form.gender = patient.gender
834
+      //           that.form.age = patient.age
835
+      //           that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
836
+      //           that.form.phone = patient.phone
837
+      //           that.form.id_card = patient.id_card_no
838
+      //           that.form.medical_insurance_card = response.data.data.number
839
+      //           that.form.social_type = parseInt(response.data.data.insutype)
840
+      //
841
+      //
842
+      //         } else if (that.form.id_card_type == 2) {
843
+      //           that.form.id = patient.id
844
+      //           that.form.name = patient.name
845
+      //           that.form.gender = patient.gender
846
+      //           that.form.age = patient.age
847
+      //           that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
848
+      //           that.form.phone = patient.phone
849
+      //           that.form.id_card = patient.id_card_no
850
+      //         } else {
851
+      //           that.form.id = patient.id
852
+      //           that.form.name = patient.name
853
+      //           that.form.gender = patient.gender
854
+      //           that.form.age = patient.age
855
+      //           that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
856
+      //           that.form.phone = patient.phone
857
+      //           that.form.id_card = patient.id_card_no
858
+      //           that.form.social_type = parseInt(response.data.data.insutype)
859
+      //
860
+      //         }
861
+      //         that.$message({ message: '读卡成功', type: 'success' })
862
+      //       }
863
+      //     })
864
+      //     .catch(function(error) {
865
+      //
866
+      //     })
867
+      // },
684 868
       getDictionaryDataConfig(module, filed_name) {
685 869
         return getDictionaryDataConfig(module, filed_name)
686 870
       },

+ 92 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

@@ -455,6 +455,14 @@
455 455
 
456 456
                             <div>
457 457
 
458
+                              <el-button
459
+                                v-if="(hisPatientInfo.id_card_type == 4 && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0  && org_id != 10340)"
460
+                                size="small"
461
+                                @click="open(50,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
462
+                                type="primary"
463
+                              >读电子凭证
464
+                              </el-button>
465
+
458 466
                               <el-button
459 467
                                   v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.curMonthPrescriptions.order.id == 0)"
460 468
                                   size="small"
@@ -1018,6 +1026,7 @@ export default {
1018 1026
   },
1019 1027
   data() {
1020 1028
     return {
1029
+      ws:null,
1021 1030
       fapiaoCodeDialogVisible:false,
1022 1031
       fapiao_code:"",
1023 1032
       monthChargePatientTableData: [],
@@ -1086,6 +1095,8 @@ export default {
1086 1095
         { value: '9933', label: '门诊特殊病(9933)' },
1087 1096
         { value: '990602', label: '门诊特殊病(990602)' },
1088 1097
         { value: '1402', label: '门诊特殊病(1402)' },
1098
+        { value: '1401', label: '门诊慢性病(1401)' },
1099
+
1089 1100
         { value: '1111', label: '精一' },
1090 1101
         { value: '1112', label: '精二' },
1091 1102
         { value: '0', label: '自费' }
@@ -1099,6 +1110,8 @@ export default {
1099 1110
         { value: '9933', label: '门诊特殊病(9933)' },
1100 1111
         { value: '990602', label: '门诊特殊病(990602)' },
1101 1112
         { value: '1402', label: '门诊特殊病(1402)' },
1113
+        { value: '1401', label: '门诊慢性病(1401)' },
1114
+
1102 1115
         { value: '0', label: '自费' }
1103 1116
 
1104 1117
       ],
@@ -3359,7 +3372,7 @@ export default {
3359 3372
           })
3360 3373
         }
3361 3374
       } else if (index == 6) {
3362
-        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10088 || this.$store.getters.xt_user.org_id == 10278) {
3375
+        if (this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10088 || this.$store.getters.xt_user.org_id == 10278) {
3363 3376
           this.$refs.register9504.show()
3364 3377
         } else {
3365 3378
           this.$refs.register.show(this.doctors, this.department)
@@ -3645,9 +3658,80 @@ export default {
3645 3658
           "admin_user_id":this.$store.getters.xt_user.user.id,
3646 3659
           'his_patient_id': this.hisPatientInfo.id,
3647 3660
         }
3648
-        axios.get('http://127.0.0.1:9532/api/readele', {
3649
-          params: params
3650
-        })
3661
+        if ((this.$store.getters.xt_user.org_id == 10387) || (this.$store.getters.xt_user.org_id == 10318)){
3662
+          try {
3663
+            //检测当前浏览器是否支持websocket模式
3664
+            window.WebSocket = window.WebSocket || window.MozWebSocket;
3665
+            if (!window.WebSocket){
3666
+              alert("WebSocket not supported by this browser");
3667
+              return;
3668
+            }
3669
+            this.ws = new WebSocket("ws://127.0.0.1:8899");//连接服务器
3670
+            var that = this
3671
+            this.ws.onopen = function(event){
3672
+              if (that.$store.getters.xt_user.org_id == 10387){
3673
+                that.ws.send("{\"url\":\"http://10.93.33.243:20001/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"罗佳菊\",\"orgId\":\"H43082200408\"},\"orgId\":\"H43082200408\",\"transType\":\"ec.query\"}}");
3674
+              }else if(that.$store.getters.xt_user.org_id == 10318){
3675
+                that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");
3676
+              }else if(that.$store.getters.xt_user.org_id == 4){
3677
+                that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");
3678
+              }
3679
+            };
3680
+
3681
+            this.ws.onmessage = function(event){
3682
+              // alert("接收到服务器发送的数据:\r\n"+event.data);
3683
+              var newParams =  JSON.parse(event.data)
3684
+              newParams['ecToken'] = newParams.data.ecToken
3685
+              newParams['idNo'] = newParams.data.idNo
3686
+              newParams['userName'] = newParams.data.userName
3687
+              newParams['insuOrg'] = newParams.data.insuOrg
3688
+              newParams['id_card_type'] =  that.form.id_card_type
3689
+              newParams['admin_user_id'] = that.$store.getters.xt_user.user.id
3690
+              newParams['certificates'] = that.form.certificates
3691
+              axios.get('http://127.0.0.1:9532/api/readele', {
3692
+                params: newParams
3693
+              })
3694
+                .then(function(response) {
3695
+                  if (response.data.state == 0) {
3696
+                    that.$message.error(response.data.msg)
3697
+                    return false
3698
+                  } else {
3699
+                    if (response.data.data.failed_code == -10) {
3700
+                      // that.$message.error(response.data.data.msg)
3701
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
3702
+                        confirmButtonText: '确 定',
3703
+                        type: 'warning'
3704
+                      }).then(() => {
3705
+
3706
+                      }).catch(() => {
3707
+                      })
3708
+                    }else{
3709
+                      that.$message({ message: response.data.data.msg, type: 'success', duration: 5000 })
3710
+                    }
3711
+                  }
3712
+                })
3713
+                .catch(function(error) {
3714
+
3715
+                })
3716
+
3717
+
3718
+            };
3719
+            this.ws.onclose = function(event){
3720
+              alert("已经与服务器断开连接\r\n当前连接状态:"+this.readyState);
3721
+            };
3722
+            this.ws.onerror = function(event){
3723
+              if (this.flag!=1)
3724
+                alert("WebSocket接收异常!");
3725
+            };
3726
+          } catch (ex) {
3727
+            alert(ex.message);
3728
+          }
3729
+
3730
+        }else{
3731
+
3732
+          axios.get('http://127.0.0.1:9532/api/readele', {
3733
+            params: params
3734
+          })
3651 3735
             .then(function(response) {
3652 3736
               if (response.data.state == 0) {
3653 3737
                 that.$message.error(response.data.msg)
@@ -3669,6 +3753,7 @@ export default {
3669 3753
             })
3670 3754
             .catch(function(error) {
3671 3755
             })
3756
+        }
3672 3757
       }
3673 3758
     },
3674 3759
      getName(admin_user_id) {
@@ -4661,6 +4746,9 @@ export default {
4661 4746
         case 1402:
4662 4747
           return '门诊特殊病(1402)' + '处方' + index
4663 4748
           break
4749
+        case 1401:
4750
+          return '门诊慢性病(1401)' + '处方' + index
4751
+          break
4664 4752
         case 9922:
4665 4753
           return '家庭通道' + '处方' + index
4666 4754
           break

+ 4 - 4
src/xt_pages/outpatientCharges/statementPrint.vue Wyświetl plik

@@ -23,7 +23,7 @@
23 23
           org_id == 10138 ||
24 24
           org_id == 9504 ||
25 25
           org_id == 10028 ||
26
-          org_id == 4 ||
26
+          org_id == 0 ||
27 27
           org_id == 10278
28 28
         "
29 29
       >
@@ -32,7 +32,7 @@
32 32
           :info="info"
33 33
           :paramsObj="paramsObj"
34 34
           :balanceAccounts="balanceAccounts"
35
-          v-if="org_id == 10138 || org_id == 4 || org_id == 10278"
35
+          v-if="org_id == 10138 || org_id == 0 || org_id == 10278  "
36 36
         ></printThree>
37 37
         <printFour
38 38
           v-if="org_id == 9504 || org_id == 10028 || org_id == 10088"
@@ -64,7 +64,7 @@
64 64
             org_id != 10138 &&
65 65
             org_id != 9504 &&
66 66
             org_id != 10028 &&
67
-            org_id != 4 &&
67
+            org_id != 0 &&
68 68
             org_id != 10278 && org_id != 10387 && org_id != 0 && org_id != 10191 &&org_id != 10210"></printOne>
69 69
 
70 70
     </div>
@@ -406,7 +406,7 @@
406 406
             };
407 407
             if (
408 408
               this.org_id == 10138 ||
409
-              this.$store.getters.xt_user.org_id == 4 ||
409
+              this.$store.getters.xt_user.org_id == 0 ||
410 410
               this.org_id == 10278
411 411
             ) {
412 412
               getPrivateExpenses(params).then((response) => {

Plik diff jest za duży
+ 3399 - 3398
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue


+ 3 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Wyświetl plik

@@ -660,14 +660,14 @@ export default {
660 660
       if (this.org_id == 10138 || this.org_id == 10278 ) {
661 661
         const style =
662 662
             '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 87%;}}}'
663
-            
663
+
664 664
           printJS({
665 665
           printable: 'printMain',
666 666
           type: 'html',
667 667
           style: style,
668 668
           scanStyles: false
669 669
         })
670
-      } 
670
+      }
671 671
       else {
672 672
         const style =
673 673
             '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.doctorBoxtwo{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
@@ -1441,7 +1441,7 @@ export default {
1441 1441
           }else{
1442 1442
             this.diagnoses = []
1443 1443
           }
1444
-         
1444
+
1445 1445
           this.additions = response.data.data.additions
1446 1446
 
1447 1447
         }
@@ -3224,8 +3224,6 @@ export default {
3224 3224
                       groupno: prescription.advices[b].groupno,
3225 3225
                       hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3226 3226
                       execution_state: prescription.advices[b].execution_state
3227
-
3228
-
3229 3227
                     }
3230 3228
                     tempAdvice.push(obj)
3231 3229
                   }

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordTemplate/printFour.vue Wyświetl plik

@@ -216,7 +216,7 @@
216 216
     
217 217
         },
218 218
         created(){
219
-            this.educationOptions = getDataConfig("patient", "education_types");
219
+            this.educationOptions = getDataConfig("patient", "profession_options");
220 220
             this.getAllDoctorList()
221 221
             this.getPatientCaseHistory()
222 222
     

+ 6 - 6
src/xt_pages/stock/detail/print.vue Wyświetl plik

@@ -51,13 +51,13 @@
51 51
               <td style="line-height: 50px">
52 52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
53 53
                 <span v-if="type == 2">
54
-                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583 || org_id == 0">
54
+                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583 || org_id == 0 || org_id == 10402">
55 55
                     <!-- {{getStockCount(item.good_id) }} -->
56 56
                     {{getMySelfCount(item.good_id) }}
57 57
                   </span>
58 58
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
59 59
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{getWarehouseOut(item.good_id)}}</span>
60
-                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191 && org_id!=0">{{getStockCount(item.good_id) }}</span>
60
+                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191 && org_id!=0 && org_id!=10402">{{getStockCount(item.good_id) }}</span>
61 61
                 </span>
62 62
 
63 63
                 <span v-if="type == 4"> {{ item.count }}</span>
@@ -78,14 +78,14 @@
78 78
               <td style="line-height:50px">
79 79
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
80 80
                 <span v-if="type == 2">
81
-                  <span v-if="org_id == 3907 || org_id ==9919 || org_id == 0">
81
+                  <span v-if="org_id == 3907 || org_id ==9919 || org_id == 0 || org_id ==10402">
82 82
                     <!-- {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}} -->
83 83
                      {{(getMySelfCount(item.good_id) * item.buy_price).toFixed(2)}}
84 84
                      
85 85
                   </span>
86 86
                   <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
87 87
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{(getWarehouseOut(item.good_id)*item.packing_price).toFixed(2)}}</span>
88
-                  <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919&&org_id!=10215&&org_id!=9671 && org_id!=9675 && org_id!=9679 && org_id!=10188 && org_id!=10217 && org_id!= 9956 && org_id!=10191">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
88
+                  <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919&&org_id!=10215&&org_id!=9671 && org_id!=9675 && org_id!=9679 && org_id!=10188 && org_id!=10217 && org_id!= 9956 && org_id!=10191 && org_id!=10402&& org_id!=0">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
89 89
                 </span>
90 90
                 <span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
91 91
               </td>
@@ -106,9 +106,9 @@
106 106
               <td style="line-height: 50px"  width="80">
107 107
                 <span v-if="type == 1">{{getWareInfoTotal().toFixed(2)}}</span>
108 108
                 <span v-if="type == 2">
109
-                  <span v-if="org_id == 3907 || org_id == 9919">{{getWareOutTotalOne().toFixed(2)}}</span>
109
+                  <span v-if="org_id == 3907 || org_id == 9919 || org_id == 10402">{{getWareOutTotalOne().toFixed(2)}}</span>
110 110
                   <span v-if="org_id == 10265 || org_id == 10215">{{getWareOutTotalSix().toFixed(2)}}</span>
111
-                  <span v-if="org_id!=3907 && org_id!=9919 && org_id!=10265 && org_id!=10215"> {{getWareOutTotal().toFixed(2)}}</span>
111
+                  <span v-if="org_id!=3907 && org_id!=9919 && org_id!=10265 && org_id!=10215 && org_id!=10402"> {{getWareOutTotal().toFixed(2)}}</span>
112 112
                  </span>
113 113
                 <span v-if="type == 4">{{getWareOutTotal().toFixed(2)}}</span>
114 114
               </td>

+ 3 - 3
src/xt_pages/stock/detail/stockOutDetail.vue Wyświetl plik

@@ -809,7 +809,7 @@ export default {
809 809
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
810 810
         this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
811 811
         this.tableOut[i].ctime = this.getTime(this.tableOut[i].ctime)
812
-        if(this.orgId == 9919){
812
+        if(this.orgId == 9919 || this.orgId == 10402 || this.orgId == 0){
813 813
           this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].buy_price).toFixed(2)
814 814
           this.tableOut[i].packing_price = this.tableOut[i].buy_price
815 815
         }else if(this.orgId == 10265){
@@ -834,7 +834,7 @@ export default {
834 834
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
835 835
         }
836 836
 
837
-        if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 0){
837
+        if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 0 || this.orgId == 10402){
838 838
 
839 839
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
840 840
         }
@@ -842,7 +842,7 @@ export default {
842 842
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
843 843
           console.log("out_count232233232332",this.tableOut[i].out_count)
844 844
         }
845
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0){
845
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402){
846 846
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
847 847
         }
848 848
        }

+ 35 - 2
src/xt_pages/stock/inventoryTransfer/Addtrans.vue Wyświetl plik

@@ -59,6 +59,7 @@
59 59
               v-model="storehouse_in_id"
60 60
               filterable
61 61
               placeholder="请选择调入仓库"
62
+              @change="changeHouseInfoList"
62 63
             >
63 64
               <el-option
64 65
                 v-for="(option, index) in houseList"
@@ -156,6 +157,7 @@
156 157
                 <el-input
157 158
                   v-model="scope.row.count"
158 159
                   style="width: 100px"
160
+                  oninput="value=value.replace(/\D|^0/g,'')"
159 161
                   @input="
160 162
                     selectCount(
161 163
                       scope.row.project_id,
@@ -315,7 +317,7 @@ export default {
315 317
       var array = [];
316 318
       array.push(this.id);
317 319
       var ids = array.join(",");
318
-
320
+      
319 321
       checkSecondOrder(ids).then((response) => {
320 322
         if (response.data.state == 1) {
321 323
           var msg = response.data.data.msg;
@@ -459,7 +461,10 @@ export default {
459 461
       this.$refs["tableForm"].validate((valid) => {
460 462
         if (valid) {
461 463
           const array = this.recordInfo.recordData;
462
-
464
+          if(array!=null && array.length ==0 ){
465
+             this.$message.error("请新增药品或者耗材")
466
+             return false
467
+          }
463 468
           for (let i = 0; i < array.length; i++) {
464 469
             array[i].count = parseInt(array[i].count);
465 470
             array[i].second_total = array[i].second_total.toString();
@@ -562,10 +567,38 @@ export default {
562 567
       }
563 568
       return total_count;
564 569
     },
570
+    changeHouseInfoList(){
571
+      if(this.storehouse_in_id == this.storehouse_out_id){
572
+         this.$message.error("调出仓库和调入仓库不能是同一个仓库!")
573
+         this.storehouse_in_id = ""
574
+         return false
575
+      }
576
+    },
565 577
     changeHouseList() {
578
+      const tempObj = {};
579
+      tempObj["id"] = 0;
580
+      tempObj["name"] = "";
581
+      tempObj["project_name"] = "";
582
+      tempObj["project_type"] = "";
583
+      tempObj["second_specification_name"] = "";
584
+      tempObj["sencond_unit"] = "";
585
+      tempObj["count"] = "";
586
+      tempObj["second_total"] = "";
587
+      tempObj["is_source"] = 0;
588
+      tempObj["remake"] = "";
589
+      tempObj["project_id"] = 0;
590
+      tempObj["min_price"] = 0;
591
+      this.recordInfo.recordData = []
592
+      this.recordInfo.recordData.push(tempObj);
593
+      if(this.storehouse_in_id == this.storehouse_out_id){
594
+         this.$message.error("调出仓库和调入仓库不能是同一个仓库!")
595
+         this.storehouse_out_id = ""
596
+         return false
597
+      }
566 598
       var params = {
567 599
         storehouse_out_id: this.storehouse_out_id,
568 600
       };
601
+
569 602
       this.tabList = [];
570 603
       getStoreHouseGoodList(params).then((response) => {
571 604
         var drugList = response.data.data.drugList;

+ 31 - 0
src/xt_pages/stock/inventoryTransfer/transEdit.vue Wyświetl plik

@@ -63,6 +63,7 @@
63 63
               filterable
64 64
               placeholder="请选择调入仓库"
65 65
               :disabled="store_disabled"
66
+              @change="changeHouseInfoList"
66 67
             >
67 68
               <el-option
68 69
                 v-for="(option, index) in houseList"
@@ -154,6 +155,7 @@
154 155
               <el-form-item
155 156
                 style="padding-top: 20px"
156 157
                 :prop="'recordData.' + scope.$index + '.count'"
158
+                oninput="value=value.replace(/\D|^0/g,'')"
157 159
                 :rules="tableRules.count"
158 160
               >
159 161
                 <el-input
@@ -747,6 +749,10 @@ export default {
747 749
           });
748 750
           this.loading = true;
749 751
           const array = this.recordInfo.recordData;
752
+          if(array!=null && array.length ==0){
753
+             this.$message.error("请新增药品或者耗材")
754
+             return false
755
+          }
750 756
           if (this.storehouse_in_id <= 0) {
751 757
             this.$message.error("调入仓库不能为空!");
752 758
             this.loading = false;
@@ -819,8 +825,33 @@ export default {
819 825
         }
820 826
       });
821 827
     },
828
+    changeHouseInfoList(){
829
+      if(this.storehouse_in_id == this.storehouse_out_id){
830
+         this.$message.error("调出仓库和调入仓库不能是同一个仓库!")
831
+         this.storehouse_in_id = ""
832
+         return false
833
+      }
834
+    },
822 835
 
823 836
     changeHouseList() {
837
+      const tempObj = {};
838
+      tempObj["id"] = 0;
839
+      tempObj["name"] = "";
840
+      tempObj["project_name"] = "";
841
+      tempObj["project_type"] = "";
842
+      tempObj["second_specification_name"] = "";
843
+      tempObj["sencond_unit"] = "";
844
+      tempObj["count"] = "";
845
+      tempObj["second_total"] = "";
846
+      tempObj["is_source"] = 0;
847
+      tempObj["remake"] = "";
848
+      tempObj["project_id"] = 0;
849
+      tempObj["min_price"] = 0;
850
+      if(this.storehouse_in_id == this.storehouse_out_id){
851
+         this.$message.error("调出仓库和调入仓库不能是同一个仓库!")
852
+         this.storehouse_out_id = ""
853
+         return false
854
+      }
824 855
       var params = {
825 856
         storehouse_out_id: this.storehouse_out_id,
826 857
       };

+ 1 - 1
src/xt_pages/stock/stockOutOrder.vue Wyświetl plik

@@ -338,7 +338,7 @@
338 338
                <tr style="background: none" v-for="(item,index) in scope.row.childOne" :key="index">
339 339
                   <td style="border-right: none; border-inline-end: none;text-align: center">
340 340
                       <!-- {{(getAllStockCount(scope.row.child,item.warehousing_id) * getAllStockCountPrice(scope.row.child,item.warehousing_id)).toFixed(2)}} -->
341
-                       {{(getAllStockCount(scope.row.child,item.warehousing_id) - getCancelInfo(item.warehousing_id,item.good_id)) *  getAllStockCountPrice(scope.row.child,item.warehousing_id)}}
341
+                       {{((getAllStockCount(scope.row.child,item.warehousing_id) - getCancelInfo(item.warehousing_id,item.good_id)) *  getAllStockCountPrice(scope.row.child,item.warehousing_id)).toFixed(2)}}
342 342
                   </td>
343 343
                </tr>
344 344
             </template>

+ 35 - 18
src/xt_pages/user/components/PatientDetail.vue Wyświetl plik

@@ -160,7 +160,7 @@
160 160
               </el-form-item>
161 161
             </el-col>
162 162
 
163
-            <el-col :span="8">
163
+            <el-col :span="8" v-if="org_id!=0 && org_id!=10138 && org_id!=10278">
164 164
               <el-form-item
165 165
                 label="首次肾脏治疗时间 : "
166 166
                 label-width="150px"
@@ -179,6 +179,21 @@
179 179
               </el-form-item>
180 180
             </el-col>
181 181
 
182
+            <el-col :span="6" :style="isEdit ? 'width:380px' : ''" v-if="org_id==0||org_id == 10138 || org_id == 10278">
183
+                <el-form-item
184
+                  label="首次进入本院时间:"
185
+                  prop="firstDialysisDate"
186
+                  label-width="150px"
187
+                >
188
+                  <el-date-picker
189
+                    v-model="form.firstDialysisDate"
190
+                    type="date"
191
+                    format="yyyy-MM-dd"
192
+                    value-format="yyyy-MM-dd"
193
+                  ></el-date-picker>
194
+                </el-form-item>
195
+              </el-col>
196
+
182 197
             <el-col :span="8">
183 198
               <el-form-item label="本人电话: " class="is-required" prop="phone">
184 199
                 <el-input
@@ -206,8 +221,8 @@
206 221
                 ></el-input>
207 222
               </el-form-item>
208 223
             </el-col>
209
-            
210
-        
224
+
225
+
211 226
             <el-col :span="6">
212 227
               <el-form-item
213 228
                 label="本院首次透析 : "
@@ -301,7 +316,7 @@
301 316
                 ></el-date-picker>
302 317
               </el-form-item>
303 318
             </el-col>
304
-   
319
+
305 320
             <el-col :span="8" style="height: 59px">
306 321
               <el-form-item
307 322
                 label="患者来源 : "
@@ -790,14 +805,14 @@
790 805
         </el-col> -->
791 806
       </el-row>
792 807
 
793
-      <el-col :span="24">
808
+      <!-- <el-col :span="24">
794 809
         <el-form-item>
795 810
           <el-button type="text" @click="treat_info_fold = !treat_info_fold"
796 811
             >{{ treat_info_fold ? "更多治疗信息" : "收起"
797 812
             }}<i class="el-icon--right" :class="treat_fold_icon"></i
798 813
           ></el-button>
799 814
         </el-form-item>
800
-      </el-col>
815
+      </el-col> -->
801 816
 
802 817
       <el-col :span="24">
803 818
         <el-form-item label="登记人员 : ">
@@ -807,7 +822,7 @@
807 822
 
808 823
        <el-col :span="6">
809 824
         <el-form-item label="医生 : ">
810
-       
825
+
811 826
            <el-select v-model="form.doctor"    disabled>
812 827
               <el-option
813 828
                 v-for="item in adminUserOptions"
@@ -930,7 +945,7 @@
930 945
                     <div class="td_proj_title">现<br />病<br />史</div>
931 946
                   </td>
932 947
                   <td colspan="7">
933
-                    <div 
948
+                    <div
934 949
                       class="td_proj_content td_align_left"
935 950
                       v-html="patientPrint.present_history"
936 951
                     ></div>
@@ -1034,7 +1049,7 @@
1034 1049
         </div>
1035 1050
       </div>
1036 1051
     </div>
1037
-    
1052
+
1038 1053
     <div hidden="hidden">
1039 1054
       <div id="print-card-info">
1040 1055
         <div
@@ -1272,7 +1287,7 @@ export default {
1272 1287
     this.org_id = this.$store.getters.xt_user.org.id;
1273 1288
     this.form.doctor = this.$store.getters.xt_user.user.id
1274 1289
     console.log("owowow",this.$store.getters.xt_user.user.id)
1275
-  
1290
+
1276 1291
     this.styleOptions = this.$store.getters.patient_types;
1277 1292
     // this.partitionOptions = this.$store.getters.partitions;
1278 1293
     this.maritalOptions = getDataConfig("patient", "marital_options");
@@ -1365,9 +1380,9 @@ export default {
1365 1380
             if(this.form.doctor == 0){
1366 1381
               this.form.doctor = ""
1367 1382
             }
1368
-            if (patietInfo.is_infectious == 1) {
1369
-              this.form.remind_cycle = 0;
1370
-            }
1383
+            // if (patietInfo.is_infectious == 1) {
1384
+            //   this.form.remind_cycle = 0;
1385
+            // }
1371 1386
             console.log("222222", this.form.remind_cycle);
1372 1387
             this.form.user_sys_before_count = patietInfo.user_sys_before_count;
1373 1388
 
@@ -1875,7 +1890,7 @@ export default {
1875 1890
         }
1876 1891
       }
1877 1892
     }
1878
-  
1893
+
1879 1894
     return url
1880 1895
    },
1881 1896
    getDcotorNameOne(admin_user_id){
@@ -1982,10 +1997,12 @@ export default {
1982 1997
       });
1983 1998
     },
1984 1999
     checkIdCardNo() {
1985
-      if (!isCardNo(this.form.idCardNo)) {
1986
-        this.$message.error("身份证号码信息有误!");
1987
-        this.form.birth = "";
1988
-        return false;
2000
+      if(this.$store.getters.xt_user.org_id != 10278 && this.$store.getters.xt_user.org_id != 10138) {
2001
+        if (!isCardNo(this.form.idCardNo)) {
2002
+          this.$message.error("身份证号码信息有误!");
2003
+          this.form.birth = "";
2004
+          return false;
2005
+        }
1989 2006
       }
1990 2007
       var thisLen = this.form.idCardNo.length;
1991 2008
       var birth = "";

+ 3 - 3
src/xt_pages/user/components/PatientForm.vue Wyświetl plik

@@ -1823,9 +1823,9 @@ export default {
1823 1823
            
1824 1824
             this.form.is_infectious = patietInfo.is_infectious;
1825 1825
             console.log("哈哈哈哈",patietInfo.is_infectious)
1826
-            if(this.form.is_infectious == 1){
1827
-              this.form.remind_cycle = 0
1828
-            }
1826
+            // if(this.form.is_infectious == 1){
1827
+            //   this.form.remind_cycle = 0
1828
+            // }
1829 1829
             this.form.tell_phone = patietInfo.tell_phone;
1830 1830
             this.form.dialysis_age = patietInfo.dialysis_age;
1831 1831
             this.form.contact_name = patietInfo.contact_name;

+ 12 - 2
src/xt_pages/user/ktv.vue Wyświetl plik

@@ -162,7 +162,7 @@
162 162
               <el-form-item
163 163
                 :label="item.item_name"
164 164
                 :key="item.item_id"
165
-                :rules="item.item_name != 'URR(%)'?[
165
+                :rules="item.item_name != 'URR(%)' || item.item_name != 'KT/V' ?[
166 166
                 { required: true, message: '请输入数值', trigger: 'blur' }
167 167
               ]:[]"
168 168
                 :prop="'formItem.' + index + '.value'"
@@ -172,6 +172,7 @@
172 172
                   v-model="item.value"
173 173
                   style="width:95%"
174 174
                   type="number"
175
+                  :disabled="item.item_name == 'URR(%)' || item.item_name == 'KT/V'"
175 176
                   @input='changeInput(item)'
176 177
                 >
177 178
                   <template slot="append" v-if="item.item_name == 'URR(%)'"><el-button style="background-color: #409eff; color: #000;" type="primary" @click="calURR(form.formItem,item.value)">点击计算URR</el-button></template>
@@ -783,7 +784,16 @@ export default {
783 784
       })
784 785
     },
785 786
     submitNew(formName) {
786
-
787
+      let valueSix = 0
788
+      for(let i = 0; i < items.length; i++){
789
+        if(items[i].item_name == "KT/V"){
790
+          valueSix = items[i].value
791
+        }
792
+      }
793
+      if(valueSix.length == 0){
794
+        this.$message.error("KT/V不能为空")
795
+        return
796
+      }
787 797
 
788 798
 
789 799
       this.$refs[formName].validate(valid => {

+ 1 - 1
src/xt_pages/user/sickHistory.vue Wyświetl plik

@@ -393,7 +393,7 @@ export default {
393 393
         id:this.edit_current_id,
394 394
         patient_id: this.patient_id,
395 395
         content: this.edit_new_content,
396
-        record_time: this.edit_sick_history_time,
396
+        record_time: this.edit_sick_history_time + " 00:00:00",
397 397
         title: this.edit_title,
398 398
         is_shenyizhishi:this.edit_is_shenyizhishi,
399 399
         is_fumotouxishi:this.edit_is_fumotouxishi,

+ 27 - 13
src/xt_pages/workforce/template.vue Wyświetl plik

@@ -112,7 +112,7 @@
112 112
       <!-- </el-col> -->
113 113
     </div>
114 114
     <div class="app-container">
115
-      
115
+
116 116
       <!-- <el-tabs v-model="activeName" tab-position="top" @tab-click="handleClick"> -->
117 117
 <!--        <el-tab-pane name="schedules">-->
118 118
 <!--          <span slot="label"> 排班信息 </span>-->
@@ -178,8 +178,8 @@
178 178
 
179 179
       <!-- </el-tabs> -->
180 180
       <template-table  v-loading="dataloading"  ref="table"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="template"
181
-                        :modes="modes"  :patients="patients" @cancel_sch="refresh" :data="data"  :template_mode="template_mode" 
182
-                         @cur_info="cur_info" @saveData="saveData" @event1="changeZone" @saveSuccessTwo="refresh" 
181
+                        :modes="modes"  :patients="patients" @cancel_sch="refresh" :data="data"  :template_mode="template_mode"
182
+                         @cur_info="cur_info" @saveData="saveData" @event1="changeZone" @saveSuccessTwo="refresh"
183 183
                          @setTemplate="setTemplate" @changeLoading="changeLoading">
184 184
             <div class="position">
185 185
               <div>
@@ -192,6 +192,18 @@
192 192
              <span v-if="schedule.mode ==1">(本周)</span>
193 193
              <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>
194 194
              <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>
195
+
196
+             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==0">(下下周)</span>
197
+             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==1">(下周)</span>
198
+             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==2">(本周)</span>
199
+
200
+
201
+             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==0">(下下周)</span>
202
+             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==1">(下周)</span>
203
+             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==2">(本周)</span>
204
+             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==3">(上周)</span>
205
+
206
+
195 207
           </span>
196 208
 
197 209
         </el-tab-pane>
@@ -202,6 +214,17 @@
202 214
 
203 215
               <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(本周)</span>
204 216
              <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(下一周)</span>
217
+
218
+             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==0">(本周)</span>
219
+             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==1">(下周)</span>
220
+             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==2">(下下周)</span>
221
+
222
+
223
+              <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==0">(下下周)</span>
224
+             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==1">(下周)</span>
225
+             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==2">(本周)</span>
226
+             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==3">(上周)</span>
227
+
205 228
           </span>
206 229
         </el-tab-pane>
207 230
 
@@ -485,19 +508,15 @@ export default {
485 508
         if(templates.length > 1){
486 509
           this.secondWeekData = templates[1].items
487 510
           this.second_template = templates[1]
488
-
489 511
         }
490 512
         if(templates.length > 2){
491 513
           this.thirdWeekData = templates[2].items
492 514
           this.third_template = templates[2]
493
-
494 515
         }
495 516
         if(templates.length > 3){
496 517
           this.fourWeekData = templates[3].items
497 518
           this.four_template = templates[3]
498
-
499 519
         }
500
-
501 520
         var patients = resp.data.patients
502 521
         this.template_mode = mode
503 522
         this.origin_mode = mode.mode
@@ -505,17 +524,12 @@ export default {
505 524
         this.patients = patients
506 525
         this.tar_template = this.first_template
507 526
         this.$refs.table.setEditData(this.patients,this.first_template,this.device_numbers,this.templates,  this.activeName)
508
-
509 527
         var fakeTemplateItems = []
510
-
511 528
         this.this_week_schedules.items = fakeTemplateItems
512
-
513 529
       } else {
514 530
         this.$message(resp.msg)
515 531
       }
516 532
     })
517
-
518
-
519 533
   },
520 534
   methods: {
521 535
     changeLoading(){
@@ -3472,7 +3486,7 @@ export default {
3472 3486
         this.schedulingTableVisible=false
3473 3487
         this.$message.success("保存成功")
3474 3488
         this.$router.back()
3475
-        
3489
+
3476 3490
       }
3477 3491
 
3478 3492
     },

+ 13 - 13
src/xt_permission.js Wyświetl plik

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))