Browse Source

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

杨青 1 year ago
parent
commit
a77949210c
47 changed files with 9435 additions and 3592 deletions
  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 View File

403
     params: params
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 View File

78
     dialysisSolution: 'dialysisSolution',
78
     dialysisSolution: 'dialysisSolution',
79
     inspection: 'Inspection',
79
     inspection: 'Inspection',
80
     home: 'home',
80
     home: 'home',
81
+    infor:'infor',
81
     weight: 'weight',
82
     weight: 'weight',
82
     dialysisRecord: 'dialysisRecord',
83
     dialysisRecord: 'dialysisRecord',
83
     scheduling: 'scheduling',
84
     scheduling: 'scheduling',

+ 4 - 2
src/lang/zh.js View File

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

+ 5 - 2
src/router/index.js View File

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

+ 1 - 0
src/router/index_路由未分离前.js View File

40
       meta: { title: 'home', icon: 'dashboard', noCache: true }
40
       meta: { title: 'home', icon: 'dashboard', noCache: true }
41
     }]
41
     }]
42
   },
42
   },
43
+ 
43
   {
44
   {
44
     path: '/service',
45
     path: '/service',
45
     component: Layout,
46
     component: Layout,

+ 16 - 1
src/router/modules/device.js View File

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
       path: '/device/waterformprint',
105
       path: '/device/waterformprint',
93
       component: () => import('@/xt_pages/management/components/waterFormPrint'),
106
       component: () => import('@/xt_pages/management/components/waterFormPrint'),
99
         noCache: true,
112
         noCache: true,
100
         
113
         
101
       }
114
       }
102
-    }
115
+    },
116
+
117
+  
103
 
118
 
104
   ]
119
   ]
105
 }
120
 }

+ 9 - 0
src/router/modules/dialysis.js View File

815
         noCache: true
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 View File

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

+ 1 - 1
src/xt_pages/device/airDisinfectTwo.vue View File

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

+ 13 - 3
src/xt_pages/device/objectTableDisinfectTwo.vue View File

129
               style="margin-top:20px;float: right"
129
               style="margin-top:20px;float: right"
130
               layout="total, sizes, prev, pager, next, jumper"
130
               layout="total, sizes, prev, pager, next, jumper"
131
               :total="total"
131
               :total="total"
132
+              @size-change="handleSizeChange"
133
+              @current-change="handleCurrentChange"
132
           >
134
           >
133
-          <!-- @size-change="handleSizeChange"
134
-              @current-change="handleCurrentChange" -->
135
+            
135
           </el-pagination>
136
           </el-pagination>
136
          </div>
137
          </div>
137
 
138
 
1149
           start_time:[{required:true,message:"请选择开始时间",trigger:"blur"}],
1150
           start_time:[{required:true,message:"请选择开始时间",trigger:"blur"}],
1150
           end_time:[{required:true,message:"请选择结束时间",trigger:"blur"}]
1151
           end_time:[{required:true,message:"请选择结束时间",trigger:"blur"}]
1151
          },
1152
          },
1152
-         limit:20,
1153
+         limit:10,
1153
          page:1,
1154
          page:1,
1154
          total:0,
1155
          total:0,
1155
          tableData: [],
1156
          tableData: [],
1590
            // return ''
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 View File

894
                       style="padding: 2px 0; line-height: 23px; display: flex"
894
                       style="padding: 2px 0; line-height: 23px; display: flex"
895
                     >
895
                     >
896
                       <div class="inline_block" style="flex: 1"
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
                         <div
899
                         <div
900
                           class="under_line"
900
                           class="under_line"
918
                         </div>
918
                         </div>
919
                         kg
919
                         kg
920
                       </div>
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
                       <div class="inline_block" style="flex: 1">
936
                       <div class="inline_block" style="flex: 1">
922
                         透前体重:
937
                         透前体重:
923
                         <div
938
                         <div
938
                         </div>
953
                         </div>
939
                         kg
954
                         kg
940
                       </div>
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
                         <div
958
                         <div
944
                           class="under_line"
959
                           class="under_line"
954
                          <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">ml</span> 
969
                          <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">ml</span> 
955
                          <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471">L</span>
970
                          <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471">L</span>
956
                       </div>
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
                       <div class="inline_block" style="flex: 1">
988
                       <div class="inline_block" style="flex: 1">
958
                         干体重:
989
                         干体重:
959
                         <div
990
                         <div
1295
                           <td
1326
                           <td
1296
                             width="50"
1327
                             width="50"
1297
                             v-if="
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
                             SpO₂<br />(%)
1332
                             SpO₂<br />(%)
1302
                           </td>
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
                           <td width="50" v-if="org_id != 0 && org_id != 3877 && org_id != 10449">超滤量<br />(ml)</td>
1342
                           <td width="50" v-if="org_id != 0 && org_id != 3877 && org_id != 10449">超滤量<br />(ml)</td>
1304
                           <td width="50" v-if="org_id ==0 || org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1343
                           <td width="50" v-if="org_id ==0 || org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1305
                           <td
1344
                           <td
1414
                             v-if="
1453
                             v-if="
1415
                               org_id != 9538 &&
1454
                               org_id != 9538 &&
1416
                               org_id != 10121 &&
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
 
1467
 
1428
                           <td
1468
                           <td
1429
                             v-if="
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
                             }}
1477
                             }}
1438
                           </td>
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
                           <td v-if="org_id == 9538">
1492
                           <td v-if="org_id == 9538">
1441
                             {{
1493
                             {{
1442
                               monitor_record.sodium_concentration
1494
                               monitor_record.sodium_concentration

+ 4 - 0
src/xt_pages/dialysis/components/consumablesDialog.vue View File

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

+ 4 - 0
src/xt_pages/dialysis/components/dialysisDrugsDialog.vue View File

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

+ 4 - 0
src/xt_pages/dialysis/components/dialysisParametersDialog.vue View File

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

+ 1 - 1
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue View File

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

29
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
           <el-col :span="8" v-if="isShow('实际超滤量')">
30
             <el-form-item
30
             <el-form-item
31
               label="实际超滤量(ml): " :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')"
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
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
               <el-input v-model="form.actual_ultrafiltration"></el-input>
34
             </el-form-item>
34
             </el-form-item>
35
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">
35
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">

+ 2 - 2
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

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

+ 76 - 6
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

239
                 org_id == 9555 
239
                 org_id == 9555 
240
                 || org_id == 10432
240
                 || org_id == 10432
241
                 || org_id == 10445
241
                 || org_id == 10445
242
-                || org_id == 10410) &&
242
+                || org_id == 10410 ||
243
+                org_id == 10495 ||
244
+                org_id == 10485) &&
243
                 org_id!=10387
245
                 org_id!=10387
244
             "
246
             "
245
           >
247
           >
307
               org_id!= 10210 &&
309
               org_id!= 10210 &&
308
               org_id != 9555 
310
               org_id != 9555 
309
               && org_id!=10432 && org_id!=10445
311
               && org_id!=10432 && org_id!=10445
310
-              && org_id!=10410)
312
+              && org_id!=10410 && org_id!=10495 &&
313
+               org_id!=10485 )
311
               || org_id == 10387
314
               || org_id == 10387
312
             "
315
             "
313
           >
316
           >
359
                 template_id == 60 ||
362
                 template_id == 60 ||
360
                 org_id == 10432 ||
363
                 org_id == 10432 ||
361
                 org_id == 10445 ||
364
                 org_id == 10445 ||
362
-                org_id == 10410)
365
+                org_id == 10410 ||
366
+                org_id == 10495)
363
                 && org_id!=10387
367
                 && org_id!=10387
364
             "
368
             "
365
           >
369
           >
410
               template_id != 60 &&
414
               template_id != 60 &&
411
               org_id!=10432 &&
415
               org_id!=10432 &&
412
               org_id!=10445 &&
416
               org_id!=10445 &&
413
-              org_id!=10410) || 
417
+              org_id!=10410 && org_id!=10495) || 
414
               org_id == 10387
418
               org_id == 10387
415
             "
419
             "
416
           >
420
           >
851
             </template>
855
             </template>
852
           </el-table-column>
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
           <el-table-column
882
           <el-table-column
855
             prop="heparin"
883
             prop="heparin"
856
             align="center"
884
             align="center"
1203
                 org_id == 10340 ||
1231
                 org_id == 10340 ||
1204
                 org_id == 10432 ||
1232
                 org_id == 10432 ||
1205
                 org_id == 10445 ||
1233
                 org_id == 10445 ||
1206
-                org_id == 10410) 
1234
+                org_id == 10410 ||
1235
+                org_id == 10495 ||
1236
+                org_id == 10485) 
1207
                 && org_id!=10387
1237
                 && org_id!=10387
1208
             "
1238
             "
1209
           >
1239
           >
1257
               org_id != 9555 &&
1287
               org_id != 9555 &&
1258
               org_id!=10432 && 
1288
               org_id!=10432 && 
1259
               org_id!=10445 && 
1289
               org_id!=10445 && 
1260
-              org_id!=10410)
1290
+              org_id!=10410 &&
1291
+              org_id!=10495 &&
1292
+              org_id!=10485
1293
+              )
1261
               || org_id == 10387
1294
               || org_id == 10387
1262
             "
1295
             "
1263
           >
1296
           >
1568
             </el-form-item>
1601
             </el-form-item>
1569
           </el-col>
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
           <el-col :span="8" v-if="isShow('滤前压')">
1618
           <el-col :span="8" v-if="isShow('滤前压')">
1572
             <el-form-item label="滤前压(mmHg):">
1619
             <el-form-item label="滤前压(mmHg):">
1573
               <el-input v-model="form.filter_pressure"></el-input>
1620
               <el-input v-model="form.filter_pressure"></el-input>
1789
         heparin_amount: "", //肝素量
1836
         heparin_amount: "", //肝素量
1790
         dehydration: "",
1837
         dehydration: "",
1791
         filter_pressure:"",
1838
         filter_pressure:"",
1839
+        replacement_speed:"",
1840
+        dicarbonate:"",
1792
       },
1841
       },
1793
 
1842
 
1794
       table_current_row: null,
1843
       table_current_row: null,
2497
         parseFloat(this.form.dehydration) == NaN
2546
         parseFloat(this.form.dehydration) == NaN
2498
           ? 0
2547
           ? 0
2499
           : parseFloat(this.form.dehydration);
2548
           : parseFloat(this.form.dehydration);
2549
+        
2500
       this.form.filter_pressure = this.form.filter_pressure?this.form.filter_pressure:""
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
       let mode = "1";
2561
       let mode = "1";
2502
       if (this.form.id > 0) {
2562
       if (this.form.id > 0) {
2503
         mode = "2";
2563
         mode = "2";
2656
               parseFloat(this.form.heparin_amount) == NaN
2716
               parseFloat(this.form.heparin_amount) == NaN
2657
                 ? 0
2717
                 ? 0
2658
                 : parseFloat(this.form.heparin_amount);
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
             this.$message.error(resp.msg);
2729
             this.$message.error(resp.msg);
2660
           }
2730
           }
2661
         }
2731
         }

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
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
           <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>
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
           <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>
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
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>

File diff suppressed because it is too large
+ 998 - 0
src/xt_pages/dialysis/dialysisFlow.vue


+ 45 - 9
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

105
       </template>
105
       </template>
106
       <template
106
       <template
107
         v-if="
107
         v-if="
108
-          org_template_info.template_id == 6 ||
108
+          (org_template_info.template_id == 6 ||
109
           org_template_info.template_id == 10 ||
109
           org_template_info.template_id == 10 ||
110
           org_template_info.template_id == 11 ||
110
           org_template_info.template_id == 11 ||
111
           org_template_info.template_id == 50 ||
111
           org_template_info.template_id == 50 ||
112
           org_template_info.template_id == 52 ||
112
           org_template_info.template_id == 52 ||
113
           org_template_info.template_id == 53  ||
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
       <div>
118
       <div>
798
         </div>
798
         </div>
799
       </template>
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
     </div>
814
     </div>
802
     <div class="app-container" style="min-height: 0">
815
     <div class="app-container" style="min-height: 0">
803
       <!--<div class="order-print-btn"-->
816
       <!--<div class="order-print-btn"-->
934
           <DialysisPrintOrderTwo
947
           <DialysisPrintOrderTwo
935
             v-bind:childResponse="childResponse"
948
             v-bind:childResponse="childResponse"
936
             v-if="
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
           ></DialysisPrintOrderTwo>
952
           ></DialysisPrintOrderTwo>
941
 
953
 
959
                                   
971
                                   
960
           <DialysisPrintOrderSix
972
           <DialysisPrintOrderSix
961
             v-bind:childResponse="childResponse"
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
           </DialysisPrintOrderSix>
976
           </DialysisPrintOrderSix>
965
 
977
 
1245
             v-if="org_template_info.template_id == 64">
1257
             v-if="org_template_info.template_id == 64">
1246
 
1258
 
1247
           </DialysisPrintOrderSixtyfour>
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
         </div>
1266
         </div>
1249
       </el-container>
1267
       </el-container>
1250
     </div>
1268
     </div>
1327
 import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
1345
 import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
1328
 // import DialysisPrintOrderSixtyThree from "./template/DialysisPrintOrderSixtyThree"
1346
 // import DialysisPrintOrderSixtyThree from "./template/DialysisPrintOrderSixtyThree"
1329
 import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
1347
 import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
1348
+import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive.vue"
1330
 export default {
1349
 export default {
1331
   name: "dialysisPrintOrder",
1350
   name: "dialysisPrintOrder",
1332
   components: {
1351
   components: {
1394
     DialysisPrintOrderEight,
1413
     DialysisPrintOrderEight,
1395
     DialysisPrintOrderNine,
1414
     DialysisPrintOrderNine,
1396
     DialysisPrintOrderSixtyfour,
1415
     DialysisPrintOrderSixtyfour,
1416
+    DialysisPrintOrderSixtyFive,
1397
     LabelBox,
1417
     LabelBox,
1398
     BreadCrumb,
1418
     BreadCrumb,
1399
-  },
1419
+    DialysisPrintOrderSixtyFive
1420
+},
1400
   data() {
1421
   data() {
1401
     return {
1422
     return {
1402
       crumbs: [
1423
       crumbs: [
1546
       return "";
1567
       return "";
1547
     },
1568
     },
1548
     printThisPage() {
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
       var ptime = Math.round(new Date().getTime() / 1000);
1575
       var ptime = Math.round(new Date().getTime() / 1000);
1550
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
1576
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
1551
 
1577
 
1638
         // this.org_template_info.template_id == 51 ||
1664
         // this.org_template_info.template_id == 51 ||
1639
         this.org_template_info.template_id == 58 ||
1665
         this.org_template_info.template_id == 58 ||
1640
         this.org_template_info.template_id == 60 ||
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
         printJS({
1671
         printJS({
1645
           printable: "dialysis-print-box-1",
1672
           printable: "dialysis-print-box-1",
1954
           scanStyles: false,
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
       }else if (
1993
       }else if (
1958
         this.org_template_info.template_id == 53
1994
         this.org_template_info.template_id == 53
1959
       ) {
1995
       ) {

+ 17 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue View File

227
                   </tbody>
227
                   </tbody>
228
                 </table>
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
                   <tbody>
247
                   <tbody>
232
                     <tr>
248
                     <tr>
233
                       <td width="40">内瘘:</td>
249
                       <td width="40">内瘘:</td>

+ 49 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

684
                       >
684
                       >
685
                         血浆胆红素吸附
685
                         血浆胆红素吸附
686
                       </div>
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
                       <div
709
                       <div
688
                         class="under_line"
710
                         class="under_line"
689
                         style="
711
                         style="
915
                     class="row"
937
                     class="row"
916
                     style="padding: 2px 0; line-height: 23px; display: flex"
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
                       <div
942
                       <div
921
                         class="under_line"
943
                         class="under_line"
922
                         style="width: 100px; text-align: center"
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
                           lastafterdialysis.weight_after
947
                           lastafterdialysis.weight_after
926
                         }}</span>
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
                           predialysis.weight_after_last_transparency
950
                           predialysis.weight_after_last_transparency
929
                             ? predialysis.weight_after_last_transparency
951
                             ? predialysis.weight_after_last_transparency
930
                             : "未称重"
952
                             : "未称重"
961
                       </div>
983
                       </div>
962
                       kg
984
                       kg
963
                     </div>
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
                       <div
988
                       <div
967
                         class="under_line"
989
                         class="under_line"
976
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">ml</span> 
998
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">ml</span> 
977
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">L</span>
999
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">L</span>
978
                     </div>
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
                     <div class="inline_block" style="flex: 1">
1017
                     <div class="inline_block" style="flex: 1">
980
                       干体重:
1018
                       干体重:
981
                       <div
1019
                       <div
1408
                         <td width="60" v-if="org_id == 9919">血温(°C)</td>
1446
                         <td width="60" v-if="org_id == 9919">血温(°C)</td>
1409
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1447
                         <td width="60" v-if="org_id == 9671">血温(°C)</td>
1410
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
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
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1453
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1413
                         <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 0">超滤量<br />(ml)</td>
1454
                         <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 0">超滤量<br />(ml)</td>
1414
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 || org_id ==0">累计超滤量<br />(ml)</td>
1455
                         <td width="50" v-if="org_id ==3877 || org_id == 10449 || org_id ==0">累计超滤量<br />(ml)</td>
1501
 
1542
 
1502
 
1543
 
1503
                         <td v-if="org_id != 9538 &&org_id != 10121">
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
                         </td>
1548
                         </td>
1506
 
1549
 
1507
                       
1550
                       

File diff suppressed because it is too large
+ 4051 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue


+ 61 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

210
                         : "/"
210
                         : "/"
211
                     }}&nbsp;ml/min
211
                     }}&nbsp;ml/min
212
                   </div>
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
                      &nbsp;L
216
                      &nbsp;L
217
-                  </div>
217
+                  </div> -->
218
                   <div style="margin-left:70px ; display: inline-block;">
218
                   <div style="margin-left:70px ; display: inline-block;">
219
                     医师签名:
219
                     医师签名:
220
 
220
 
349
                     <!-- border-bottom: 1px solid gray; border-right: 1px solid gray;-->
349
                     <!-- border-bottom: 1px solid gray; border-right: 1px solid gray;-->
350
                       <tr style="">
350
                       <tr style="">
351
                         <td rowspan="2" style=" ">时间</td>
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
                       </tr>
355
                       </tr>
356
                       <tr style="">
356
                       <tr style="">
357
                         <td style=" ">TMP<br />mmHg</td>
357
                         <td style=" ">TMP<br />mmHg</td>
358
                         <td style=" ">静脉压<br />mmHg</td>
358
                         <td style=" ">静脉压<br />mmHg</td>
359
                         <td style=" ">血流量<br />ml/min</td>
359
                         <td style=" ">血流量<br />ml/min</td>
360
-                        <td style="">脱水量<br />L</td>
360
+                        <td style="">脱水量<br />ml</td>
361
                         <td style=" ">T<br />ºC</td>
361
                         <td style=" ">T<br />ºC</td>
362
                         <td style=" ">HR<br />bpm</td>
362
                         <td style=" ">HR<br />bpm</td>
363
                         <td style=" ">R<br />bpm</td>
363
                         <td style=" ">R<br />bpm</td>
364
                         <td style=" ">BP<br />mmHg</td>
364
                         <td style=" ">BP<br />mmHg</td>
365
                         <!-- <td style=" ">时间</td> -->
365
                         <!-- <td style=" ">时间</td> -->
366
                         <td style=" ">记录</td>
366
                         <td style=" ">记录</td>
367
-                        <td >护士签名</td>
367
+                        <!-- <td >护士签名</td> -->
368
                       </tr>
368
                       </tr>
369
                     
369
                     
370
                       <tr style="" v-for="(monitor, monindex) in monitors" :key="monindex" >
370
                       <tr style="" v-for="(monitor, monindex) in monitors" :key="monindex" >
449
                               {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
449
                               {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
450
                           </span>
450
                           </span>
451
                         </td>
451
                         </td>
452
-                        <td>
452
+                        <!-- <td>
453
                           <span v-if="
453
                           <span v-if="
454
                             setAdminUserES(
454
                             setAdminUserES(
455
                               dialysisOrder == null
455
                               dialysisOrder == null
479
                             srcset=""
479
                             srcset=""
480
                             v-else
480
                             v-else
481
                           />
481
                           />
482
-                        </td>
482
+                        </td> -->
483
                       </tr>
483
                       </tr>
484
                     
484
                     
485
                   </table>
485
                   </table>
550
                       </td>
550
                       </td>
551
                       <!-- 执行时间 -->
551
                       <!-- 执行时间 -->
552
                       <td width="130" style="">
552
                       <td width="130" style="">
553
-                        {{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}
553
+                        {{ getTime(advice.execution_time, "{h}:{i}") }}
554
                       </td>
554
                       </td>
555
                       <!-- 执行 -->
555
                       <!-- 执行 -->
556
                       <td width="110" style="">
556
                       <td width="110" style="">
623
                       <td v-if="advice_index > 5" width="150" style=""></td>
623
                       <td v-if="advice_index > 5" width="150" style=""></td>
624
                       <td v-if="advice_index > 5" width="110"></td>
624
                       <td v-if="advice_index > 5" width="110"></td>
625
                     </tr>
625
                     </tr>
626
+                  
626
                   </table>
627
                   </table>
627
                 </td>
628
                 </td>
628
               </tr>
629
               </tr>
630
+     
629
               <tr>
631
               <tr>
630
                 <td colspan="3">
632
                 <td colspan="3">
631
                   <!-- <div style="display: inline-block;">
633
                   <!-- <div style="display: inline-block;">
701
                   </div>
703
                   </div>
702
                 </td>
704
                 </td>
703
               </tr>
705
               </tr>
706
+
707
+           
704
             </table>
708
             </table>
705
           </div>
709
           </div>
706
         </div>
710
         </div>
761
       adminUser: [],
765
       adminUser: [],
762
       bloodAccessParOpera: {},
766
       bloodAccessParOpera: {},
763
       lastafterdialysis: {},
767
       lastafterdialysis: {},
768
+      projects:[]
764
     };
769
     };
765
   },
770
   },
766
   computed: {},
771
   computed: {},
974
           advices.push(item);
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
         var tableAdvice = this.advices;
1022
         var tableAdvice = this.advices;
978
 
1023
 
1024
+
1025
+
979
         if (tableAdvice.length === 0) {
1026
         if (tableAdvice.length === 0) {
980
           var obj = { advice_name: "", start_time: "" };
1027
           var obj = { advice_name: "", start_time: "" };
981
           var obj1 = { advice_name: "", start_time: "" };
1028
           var obj1 = { advice_name: "", start_time: "" };
1051
           this.advices = tableAdvice;
1098
           this.advices = tableAdvice;
1052
         }
1099
         }
1053
 
1100
 
1101
+ 
1102
+         
1103
+
1054
         // this.loading = false;
1104
         // this.loading = false;
1055
         // console.log(this.advice_groups);
1105
         // console.log(this.advice_groups);
1056
         } else {
1106
         } else {

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

239
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
239
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
240
                       </div>
240
                       </div>
241
                     </div>
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
                       <div class="under_line" style="min-width: 120px;text-align: center">
244
                       <div class="under_line" style="min-width: 120px;text-align: center">
245
                         {{ predialysis.point_puncture ? predialysis.point_puncture : "/" }}
245
                         {{ predialysis.point_puncture ? predialysis.point_puncture : "/" }}

+ 2 - 1
src/xt_pages/home/index.vue View File

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

+ 11 - 8
src/xt_pages/hospitalStation/index.vue View File

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

+ 52 - 5
src/xt_pages/hospitalStation/summary.vue View File

115
                       <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
115
                       <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
116
 
116
 
117
                     </el-popover> -->
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
         </div>
121
         </div>
122
       </div>
122
       </div>
123
       <el-table
123
       <el-table
129
           backgroundColor: 'rgb(245, 247, 250)',
129
           backgroundColor: 'rgb(245, 247, 250)',
130
           color: '#606266',
130
           color: '#606266',
131
         }"
131
         }"
132
+        @selection-change="handleSelectionChange"
132
         highlight-current-row
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
         <el-table-column
142
         <el-table-column
135
           prop="date"
143
           prop="date"
136
           label="序号"
144
           label="序号"
357
                 :visible.sync="settlementVisible">
365
                 :visible.sync="settlementVisible">
358
             <settlement-print ref="print" :paramsObj='orderObj'></settlement-print>
366
             <settlement-print ref="print" :paramsObj='orderObj'></settlement-print>
359
         </el-dialog> -->
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
   </div>
381
   </div>
361
 </template>
382
 </template>
362
 
383
 
382
 import invoicePrint from "./invoicePrint";
403
 import invoicePrint from "./invoicePrint";
383
 import statementPrint from "./statementPrint";
404
 import statementPrint from "./statementPrint";
384
 import ShouJuPrint from "./shouJuPrint";
405
 import ShouJuPrint from "./shouJuPrint";
406
+import BatchStatementPrint from '../outpatientCharges/batchStatementPrint.vue'
407
+import HospitalBatchStatementPrint from './hospitalBatchStatementPrint.vue'
385
 
408
 
386
 // import settlementPrint from './settlementPrint'
409
 // import settlementPrint from './settlementPrint'
387
 
410
 
388
 export default {
411
 export default {
389
   components: {
412
   components: {
413
+    HospitalBatchStatementPrint,
414
+    BatchStatementPrint,
390
     ShouJuPrint,
415
     ShouJuPrint,
391
     NewStatementPrintTwo,
416
     NewStatementPrintTwo,
392
     NewStatementPrint,
417
     NewStatementPrint,
399
   },
424
   },
400
   data() {
425
   data() {
401
     return {
426
     return {
427
+      batchParams:{},
428
+      selecting_schs:[],
429
+      batchStatementVisible:false,
402
       loading1: true,
430
       loading1: true,
403
       orderObj: {},
431
       orderObj: {},
404
       statementVisible: false,
432
       statementVisible: false,
478
   },
506
   },
479
 
507
 
480
   methods: {
508
   methods: {
509
+    handleSelectionChange(val) {
510
+      this.selecting_schs = val
511
+    },
481
     confirmUploadInfo(row){
512
     confirmUploadInfo(row){
482
       var that = this;
513
       var that = this;
483
       axios
514
       axios
975
     },
1006
     },
976
     settlementPrint() {
1007
     settlementPrint() {
977
       this.settlementVisible = true;
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
       let params = {
1027
       let params = {
981
         start_time: this.start_time,
1028
         start_time: this.start_time,
982
         end_time: this.end_time,
1029
         end_time: this.end_time,

+ 14 - 5
src/xt_pages/management/components/UserForm.vue View File

788
             <div class="order_title">设备使用记录清单</div>
788
             <div class="order_title">设备使用记录清单</div>
789
           </div>
789
           </div>
790
           <div>
790
           <div>
791
-            <div class="printClass">打印日期:{{ nowTime }}</div>
791
+            <div class="printClass" v-if="org_id!=10340">打印日期:{{ nowTime }}</div>
792
             <table
792
             <table
793
               border="1"
793
               border="1"
794
               style="width:100%"
794
               style="width:100%"
854
                 <td
854
                 <td
855
                   :rowspan="2"
855
                   :rowspan="2"
856
                   style="text-align:center;min-width:40px;font-size:15px"
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
                 </td>
861
                 </td>
860
                 <td
862
                 <td
861
                   :rowspan="2"
863
                   :rowspan="2"
862
                   style="text-align:center;width:80px;font-size:15px"
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
                 </td>
868
                 </td>
866
                 <td
869
                 <td
867
                   :rowspan="2"
870
                   :rowspan="2"
868
                   style="text-align:center;width:80px;font-size:15px"
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
                 </td>
875
                 </td>
961
                 <td style="text-align:center;font-size:15px;height:30px">
965
                 <td style="text-align:center;font-size:15px;height:30px">
962
                   {{ item.disinfection_residue }}
966
                   {{ item.disinfection_residue }}
963
                 </td>
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
                    {{item.dialysis_checked }}
970
                    {{item.dialysis_checked }}
966
                 </td>
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
                   {{item.germ_checked }}
974
                   {{item.germ_checked }}
969
                 </td>
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
                   {{item.clean}}
978
                   {{item.clean}}
972
                 </td>
979
                 </td>
973
 
980
 
1190
       bed: "",
1197
       bed: "",
1191
       bedNumberTwo: [],
1198
       bedNumberTwo: [],
1192
       four: true,
1199
       four: true,
1193
-      showone: false
1200
+      showone: false,
1201
+      org_id:0,
1194
     };
1202
     };
1195
   },
1203
   },
1196
   methods: {
1204
   methods: {
2590
     this.getAllSubregion();
2598
     this.getAllSubregion();
2591
     // this.getInformationData();
2599
     // this.getInformationData();
2592
     this.getAllOrganization();
2600
     this.getAllOrganization();
2601
+    this.org_id = this.$store.getters.xt_user.template_info.org_id;
2593
   },
2602
   },
2594
   watch: {
2603
   watch: {
2595
     userdata(newvalue, oldvalue) {
2604
     userdata(newvalue, oldvalue) {

+ 228 - 44
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

214
     data() {
214
     data() {
215
 
215
 
216
       return {
216
       return {
217
+        ws:null,
217
         registers: [
218
         registers: [
218
           { value: 11, label: '普通门诊' },
219
           { value: 11, label: '普通门诊' },
219
           { value: 1102, label: '新冠门诊' },
220
           { value: 1102, label: '新冠门诊' },
632
           'admin_user_id': this.$store.getters.xt_user.user.id,
633
           'admin_user_id': this.$store.getters.xt_user.user.id,
633
           'certificates':this.form.certificates,
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
       getDictionaryDataConfig(module, filed_name) {
868
       getDictionaryDataConfig(module, filed_name) {
685
         return getDictionaryDataConfig(module, filed_name)
869
         return getDictionaryDataConfig(module, filed_name)
686
       },
870
       },

+ 92 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

455
 
455
 
456
                             <div>
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
                               <el-button
466
                               <el-button
459
                                   v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.curMonthPrescriptions.order.id == 0)"
467
                                   v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.curMonthPrescriptions.order.id == 0)"
460
                                   size="small"
468
                                   size="small"
1018
   },
1026
   },
1019
   data() {
1027
   data() {
1020
     return {
1028
     return {
1029
+      ws:null,
1021
       fapiaoCodeDialogVisible:false,
1030
       fapiaoCodeDialogVisible:false,
1022
       fapiao_code:"",
1031
       fapiao_code:"",
1023
       monthChargePatientTableData: [],
1032
       monthChargePatientTableData: [],
1086
         { value: '9933', label: '门诊特殊病(9933)' },
1095
         { value: '9933', label: '门诊特殊病(9933)' },
1087
         { value: '990602', label: '门诊特殊病(990602)' },
1096
         { value: '990602', label: '门诊特殊病(990602)' },
1088
         { value: '1402', label: '门诊特殊病(1402)' },
1097
         { value: '1402', label: '门诊特殊病(1402)' },
1098
+        { value: '1401', label: '门诊慢性病(1401)' },
1099
+
1089
         { value: '1111', label: '精一' },
1100
         { value: '1111', label: '精一' },
1090
         { value: '1112', label: '精二' },
1101
         { value: '1112', label: '精二' },
1091
         { value: '0', label: '自费' }
1102
         { value: '0', label: '自费' }
1099
         { value: '9933', label: '门诊特殊病(9933)' },
1110
         { value: '9933', label: '门诊特殊病(9933)' },
1100
         { value: '990602', label: '门诊特殊病(990602)' },
1111
         { value: '990602', label: '门诊特殊病(990602)' },
1101
         { value: '1402', label: '门诊特殊病(1402)' },
1112
         { value: '1402', label: '门诊特殊病(1402)' },
1113
+        { value: '1401', label: '门诊慢性病(1401)' },
1114
+
1102
         { value: '0', label: '自费' }
1115
         { value: '0', label: '自费' }
1103
 
1116
 
1104
       ],
1117
       ],
3359
           })
3372
           })
3360
         }
3373
         }
3361
       } else if (index == 6) {
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
           this.$refs.register9504.show()
3376
           this.$refs.register9504.show()
3364
         } else {
3377
         } else {
3365
           this.$refs.register.show(this.doctors, this.department)
3378
           this.$refs.register.show(this.doctors, this.department)
3645
           "admin_user_id":this.$store.getters.xt_user.user.id,
3658
           "admin_user_id":this.$store.getters.xt_user.user.id,
3646
           'his_patient_id': this.hisPatientInfo.id,
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
             .then(function(response) {
3735
             .then(function(response) {
3652
               if (response.data.state == 0) {
3736
               if (response.data.state == 0) {
3653
                 that.$message.error(response.data.msg)
3737
                 that.$message.error(response.data.msg)
3669
             })
3753
             })
3670
             .catch(function(error) {
3754
             .catch(function(error) {
3671
             })
3755
             })
3756
+        }
3672
       }
3757
       }
3673
     },
3758
     },
3674
      getName(admin_user_id) {
3759
      getName(admin_user_id) {
4661
         case 1402:
4746
         case 1402:
4662
           return '门诊特殊病(1402)' + '处方' + index
4747
           return '门诊特殊病(1402)' + '处方' + index
4663
           break
4748
           break
4749
+        case 1401:
4750
+          return '门诊慢性病(1401)' + '处方' + index
4751
+          break
4664
         case 9922:
4752
         case 9922:
4665
           return '家庭通道' + '处方' + index
4753
           return '家庭通道' + '处方' + index
4666
           break
4754
           break

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

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

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


+ 3 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

660
       if (this.org_id == 10138 || this.org_id == 10278 ) {
660
       if (this.org_id == 10138 || this.org_id == 10278 ) {
661
         const style =
661
         const style =
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%;}}}'
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
           printJS({
664
           printJS({
665
           printable: 'printMain',
665
           printable: 'printMain',
666
           type: 'html',
666
           type: 'html',
667
           style: style,
667
           style: style,
668
           scanStyles: false
668
           scanStyles: false
669
         })
669
         })
670
-      } 
670
+      }
671
       else {
671
       else {
672
         const style =
672
         const style =
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;}}'
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
           }else{
1441
           }else{
1442
             this.diagnoses = []
1442
             this.diagnoses = []
1443
           }
1443
           }
1444
-         
1444
+
1445
           this.additions = response.data.data.additions
1445
           this.additions = response.data.data.additions
1446
 
1446
 
1447
         }
1447
         }
3224
                       groupno: prescription.advices[b].groupno,
3224
                       groupno: prescription.advices[b].groupno,
3225
                       hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3225
                       hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3226
                       execution_state: prescription.advices[b].execution_state
3226
                       execution_state: prescription.advices[b].execution_state
3227
-
3228
-
3229
                     }
3227
                     }
3230
                     tempAdvice.push(obj)
3228
                     tempAdvice.push(obj)
3231
                   }
3229
                   }

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordTemplate/printFour.vue View File

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

+ 6 - 6
src/xt_pages/stock/detail/print.vue View File

51
               <td style="line-height: 50px">
51
               <td style="line-height: 50px">
52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
53
                 <span v-if="type == 2">
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
                     <!-- {{getStockCount(item.good_id) }} -->
55
                     <!-- {{getStockCount(item.good_id) }} -->
56
                     {{getMySelfCount(item.good_id) }}
56
                     {{getMySelfCount(item.good_id) }}
57
                   </span>
57
                   </span>
58
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
58
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
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>
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
                 </span>
61
                 </span>
62
 
62
 
63
                 <span v-if="type == 4"> {{ item.count }}</span>
63
                 <span v-if="type == 4"> {{ item.count }}</span>
78
               <td style="line-height:50px">
78
               <td style="line-height:50px">
79
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
79
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
80
                 <span v-if="type == 2">
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
                     <!-- {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}} -->
82
                     <!-- {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}} -->
83
                      {{(getMySelfCount(item.good_id) * item.buy_price).toFixed(2)}}
83
                      {{(getMySelfCount(item.good_id) * item.buy_price).toFixed(2)}}
84
                      
84
                      
85
                   </span>
85
                   </span>
86
                   <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
86
                   <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
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>
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
                 </span>
89
                 </span>
90
                 <span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
90
                 <span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
91
               </td>
91
               </td>
106
               <td style="line-height: 50px"  width="80">
106
               <td style="line-height: 50px"  width="80">
107
                 <span v-if="type == 1">{{getWareInfoTotal().toFixed(2)}}</span>
107
                 <span v-if="type == 1">{{getWareInfoTotal().toFixed(2)}}</span>
108
                 <span v-if="type == 2">
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
                   <span v-if="org_id == 10265 || org_id == 10215">{{getWareOutTotalSix().toFixed(2)}}</span>
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
                  </span>
112
                  </span>
113
                 <span v-if="type == 4">{{getWareOutTotal().toFixed(2)}}</span>
113
                 <span v-if="type == 4">{{getWareOutTotal().toFixed(2)}}</span>
114
               </td>
114
               </td>

+ 3 - 3
src/xt_pages/stock/detail/stockOutDetail.vue View File

809
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
809
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
810
         this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
810
         this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
811
         this.tableOut[i].ctime = this.getTime(this.tableOut[i].ctime)
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
           this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].buy_price).toFixed(2)
813
           this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].buy_price).toFixed(2)
814
           this.tableOut[i].packing_price = this.tableOut[i].buy_price
814
           this.tableOut[i].packing_price = this.tableOut[i].buy_price
815
         }else if(this.orgId == 10265){
815
         }else if(this.orgId == 10265){
834
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
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
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
839
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
840
         }
840
         }
842
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
842
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
843
           console.log("out_count232233232332",this.tableOut[i].out_count)
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
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
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 View File

59
               v-model="storehouse_in_id"
59
               v-model="storehouse_in_id"
60
               filterable
60
               filterable
61
               placeholder="请选择调入仓库"
61
               placeholder="请选择调入仓库"
62
+              @change="changeHouseInfoList"
62
             >
63
             >
63
               <el-option
64
               <el-option
64
                 v-for="(option, index) in houseList"
65
                 v-for="(option, index) in houseList"
156
                 <el-input
157
                 <el-input
157
                   v-model="scope.row.count"
158
                   v-model="scope.row.count"
158
                   style="width: 100px"
159
                   style="width: 100px"
160
+                  oninput="value=value.replace(/\D|^0/g,'')"
159
                   @input="
161
                   @input="
160
                     selectCount(
162
                     selectCount(
161
                       scope.row.project_id,
163
                       scope.row.project_id,
315
       var array = [];
317
       var array = [];
316
       array.push(this.id);
318
       array.push(this.id);
317
       var ids = array.join(",");
319
       var ids = array.join(",");
318
-
320
+      
319
       checkSecondOrder(ids).then((response) => {
321
       checkSecondOrder(ids).then((response) => {
320
         if (response.data.state == 1) {
322
         if (response.data.state == 1) {
321
           var msg = response.data.data.msg;
323
           var msg = response.data.data.msg;
459
       this.$refs["tableForm"].validate((valid) => {
461
       this.$refs["tableForm"].validate((valid) => {
460
         if (valid) {
462
         if (valid) {
461
           const array = this.recordInfo.recordData;
463
           const array = this.recordInfo.recordData;
462
-
464
+          if(array!=null && array.length ==0 ){
465
+             this.$message.error("请新增药品或者耗材")
466
+             return false
467
+          }
463
           for (let i = 0; i < array.length; i++) {
468
           for (let i = 0; i < array.length; i++) {
464
             array[i].count = parseInt(array[i].count);
469
             array[i].count = parseInt(array[i].count);
465
             array[i].second_total = array[i].second_total.toString();
470
             array[i].second_total = array[i].second_total.toString();
562
       }
567
       }
563
       return total_count;
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
     changeHouseList() {
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
       var params = {
598
       var params = {
567
         storehouse_out_id: this.storehouse_out_id,
599
         storehouse_out_id: this.storehouse_out_id,
568
       };
600
       };
601
+
569
       this.tabList = [];
602
       this.tabList = [];
570
       getStoreHouseGoodList(params).then((response) => {
603
       getStoreHouseGoodList(params).then((response) => {
571
         var drugList = response.data.data.drugList;
604
         var drugList = response.data.data.drugList;

+ 31 - 0
src/xt_pages/stock/inventoryTransfer/transEdit.vue View File

63
               filterable
63
               filterable
64
               placeholder="请选择调入仓库"
64
               placeholder="请选择调入仓库"
65
               :disabled="store_disabled"
65
               :disabled="store_disabled"
66
+              @change="changeHouseInfoList"
66
             >
67
             >
67
               <el-option
68
               <el-option
68
                 v-for="(option, index) in houseList"
69
                 v-for="(option, index) in houseList"
154
               <el-form-item
155
               <el-form-item
155
                 style="padding-top: 20px"
156
                 style="padding-top: 20px"
156
                 :prop="'recordData.' + scope.$index + '.count'"
157
                 :prop="'recordData.' + scope.$index + '.count'"
158
+                oninput="value=value.replace(/\D|^0/g,'')"
157
                 :rules="tableRules.count"
159
                 :rules="tableRules.count"
158
               >
160
               >
159
                 <el-input
161
                 <el-input
747
           });
749
           });
748
           this.loading = true;
750
           this.loading = true;
749
           const array = this.recordInfo.recordData;
751
           const array = this.recordInfo.recordData;
752
+          if(array!=null && array.length ==0){
753
+             this.$message.error("请新增药品或者耗材")
754
+             return false
755
+          }
750
           if (this.storehouse_in_id <= 0) {
756
           if (this.storehouse_in_id <= 0) {
751
             this.$message.error("调入仓库不能为空!");
757
             this.$message.error("调入仓库不能为空!");
752
             this.loading = false;
758
             this.loading = false;
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
     changeHouseList() {
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
       var params = {
855
       var params = {
825
         storehouse_out_id: this.storehouse_out_id,
856
         storehouse_out_id: this.storehouse_out_id,
826
       };
857
       };

+ 1 - 1
src/xt_pages/stock/stockOutOrder.vue View File

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

+ 35 - 18
src/xt_pages/user/components/PatientDetail.vue View File

160
               </el-form-item>
160
               </el-form-item>
161
             </el-col>
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
               <el-form-item
164
               <el-form-item
165
                 label="首次肾脏治疗时间 : "
165
                 label="首次肾脏治疗时间 : "
166
                 label-width="150px"
166
                 label-width="150px"
179
               </el-form-item>
179
               </el-form-item>
180
             </el-col>
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
             <el-col :span="8">
197
             <el-col :span="8">
183
               <el-form-item label="本人电话: " class="is-required" prop="phone">
198
               <el-form-item label="本人电话: " class="is-required" prop="phone">
184
                 <el-input
199
                 <el-input
206
                 ></el-input>
221
                 ></el-input>
207
               </el-form-item>
222
               </el-form-item>
208
             </el-col>
223
             </el-col>
209
-            
210
-        
224
+
225
+
211
             <el-col :span="6">
226
             <el-col :span="6">
212
               <el-form-item
227
               <el-form-item
213
                 label="本院首次透析 : "
228
                 label="本院首次透析 : "
301
                 ></el-date-picker>
316
                 ></el-date-picker>
302
               </el-form-item>
317
               </el-form-item>
303
             </el-col>
318
             </el-col>
304
-   
319
+
305
             <el-col :span="8" style="height: 59px">
320
             <el-col :span="8" style="height: 59px">
306
               <el-form-item
321
               <el-form-item
307
                 label="患者来源 : "
322
                 label="患者来源 : "
790
         </el-col> -->
805
         </el-col> -->
791
       </el-row>
806
       </el-row>
792
 
807
 
793
-      <el-col :span="24">
808
+      <!-- <el-col :span="24">
794
         <el-form-item>
809
         <el-form-item>
795
           <el-button type="text" @click="treat_info_fold = !treat_info_fold"
810
           <el-button type="text" @click="treat_info_fold = !treat_info_fold"
796
             >{{ treat_info_fold ? "更多治疗信息" : "收起"
811
             >{{ treat_info_fold ? "更多治疗信息" : "收起"
797
             }}<i class="el-icon--right" :class="treat_fold_icon"></i
812
             }}<i class="el-icon--right" :class="treat_fold_icon"></i
798
           ></el-button>
813
           ></el-button>
799
         </el-form-item>
814
         </el-form-item>
800
-      </el-col>
815
+      </el-col> -->
801
 
816
 
802
       <el-col :span="24">
817
       <el-col :span="24">
803
         <el-form-item label="登记人员 : ">
818
         <el-form-item label="登记人员 : ">
807
 
822
 
808
        <el-col :span="6">
823
        <el-col :span="6">
809
         <el-form-item label="医生 : ">
824
         <el-form-item label="医生 : ">
810
-       
825
+
811
            <el-select v-model="form.doctor"    disabled>
826
            <el-select v-model="form.doctor"    disabled>
812
               <el-option
827
               <el-option
813
                 v-for="item in adminUserOptions"
828
                 v-for="item in adminUserOptions"
930
                     <div class="td_proj_title">现<br />病<br />史</div>
945
                     <div class="td_proj_title">现<br />病<br />史</div>
931
                   </td>
946
                   </td>
932
                   <td colspan="7">
947
                   <td colspan="7">
933
-                    <div 
948
+                    <div
934
                       class="td_proj_content td_align_left"
949
                       class="td_proj_content td_align_left"
935
                       v-html="patientPrint.present_history"
950
                       v-html="patientPrint.present_history"
936
                     ></div>
951
                     ></div>
1034
         </div>
1049
         </div>
1035
       </div>
1050
       </div>
1036
     </div>
1051
     </div>
1037
-    
1052
+
1038
     <div hidden="hidden">
1053
     <div hidden="hidden">
1039
       <div id="print-card-info">
1054
       <div id="print-card-info">
1040
         <div
1055
         <div
1272
     this.org_id = this.$store.getters.xt_user.org.id;
1287
     this.org_id = this.$store.getters.xt_user.org.id;
1273
     this.form.doctor = this.$store.getters.xt_user.user.id
1288
     this.form.doctor = this.$store.getters.xt_user.user.id
1274
     console.log("owowow",this.$store.getters.xt_user.user.id)
1289
     console.log("owowow",this.$store.getters.xt_user.user.id)
1275
-  
1290
+
1276
     this.styleOptions = this.$store.getters.patient_types;
1291
     this.styleOptions = this.$store.getters.patient_types;
1277
     // this.partitionOptions = this.$store.getters.partitions;
1292
     // this.partitionOptions = this.$store.getters.partitions;
1278
     this.maritalOptions = getDataConfig("patient", "marital_options");
1293
     this.maritalOptions = getDataConfig("patient", "marital_options");
1365
             if(this.form.doctor == 0){
1380
             if(this.form.doctor == 0){
1366
               this.form.doctor = ""
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
             console.log("222222", this.form.remind_cycle);
1386
             console.log("222222", this.form.remind_cycle);
1372
             this.form.user_sys_before_count = patietInfo.user_sys_before_count;
1387
             this.form.user_sys_before_count = patietInfo.user_sys_before_count;
1373
 
1388
 
1875
         }
1890
         }
1876
       }
1891
       }
1877
     }
1892
     }
1878
-  
1893
+
1879
     return url
1894
     return url
1880
    },
1895
    },
1881
    getDcotorNameOne(admin_user_id){
1896
    getDcotorNameOne(admin_user_id){
1982
       });
1997
       });
1983
     },
1998
     },
1984
     checkIdCardNo() {
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
       var thisLen = this.form.idCardNo.length;
2007
       var thisLen = this.form.idCardNo.length;
1991
       var birth = "";
2008
       var birth = "";

+ 3 - 3
src/xt_pages/user/components/PatientForm.vue View File

1823
            
1823
            
1824
             this.form.is_infectious = patietInfo.is_infectious;
1824
             this.form.is_infectious = patietInfo.is_infectious;
1825
             console.log("哈哈哈哈",patietInfo.is_infectious)
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
             this.form.tell_phone = patietInfo.tell_phone;
1829
             this.form.tell_phone = patietInfo.tell_phone;
1830
             this.form.dialysis_age = patietInfo.dialysis_age;
1830
             this.form.dialysis_age = patietInfo.dialysis_age;
1831
             this.form.contact_name = patietInfo.contact_name;
1831
             this.form.contact_name = patietInfo.contact_name;

+ 12 - 2
src/xt_pages/user/ktv.vue View File

162
               <el-form-item
162
               <el-form-item
163
                 :label="item.item_name"
163
                 :label="item.item_name"
164
                 :key="item.item_id"
164
                 :key="item.item_id"
165
-                :rules="item.item_name != 'URR(%)'?[
165
+                :rules="item.item_name != 'URR(%)' || item.item_name != 'KT/V' ?[
166
                 { required: true, message: '请输入数值', trigger: 'blur' }
166
                 { required: true, message: '请输入数值', trigger: 'blur' }
167
               ]:[]"
167
               ]:[]"
168
                 :prop="'formItem.' + index + '.value'"
168
                 :prop="'formItem.' + index + '.value'"
172
                   v-model="item.value"
172
                   v-model="item.value"
173
                   style="width:95%"
173
                   style="width:95%"
174
                   type="number"
174
                   type="number"
175
+                  :disabled="item.item_name == 'URR(%)' || item.item_name == 'KT/V'"
175
                   @input='changeInput(item)'
176
                   @input='changeInput(item)'
176
                 >
177
                 >
177
                   <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>
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
       })
784
       })
784
     },
785
     },
785
     submitNew(formName) {
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
       this.$refs[formName].validate(valid => {
799
       this.$refs[formName].validate(valid => {

+ 1 - 1
src/xt_pages/user/sickHistory.vue View File

393
         id:this.edit_current_id,
393
         id:this.edit_current_id,
394
         patient_id: this.patient_id,
394
         patient_id: this.patient_id,
395
         content: this.edit_new_content,
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
         title: this.edit_title,
397
         title: this.edit_title,
398
         is_shenyizhishi:this.edit_is_shenyizhishi,
398
         is_shenyizhishi:this.edit_is_shenyizhishi,
399
         is_fumotouxishi:this.edit_is_fumotouxishi,
399
         is_fumotouxishi:this.edit_is_fumotouxishi,

+ 27 - 13
src/xt_pages/workforce/template.vue View File

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

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))