Kaynağa Gözat

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

csx 4 yıl önce
ebeveyn
işleme
ea1e2b6fe0
50 değiştirilmiş dosya ile 15975 ekleme ve 9525 silme
  1. 1 0
      .gitignore
  2. 2 3
      config/dev.env.js
  3. 2 2
      config/index.js
  4. 12 31
      package-lock.json
  5. 29 50
      src/api/dialysis_record.js
  6. 3 0
      src/store/getters.js
  7. 4 4
      src/store/modules/globalConfig.js
  8. 21 0
      src/store/modules/xt_user.js
  9. 3 0
      src/utils/data.js
  10. 4 4
      src/utils/tools.js
  11. 1 1
      src/xt_pages/data/printTemplate.vue
  12. 402 12
      src/xt_pages/dialysis/PatientBox.vue
  13. 1342 1342
      src/xt_pages/dialysis/batch_print/batch_print_order_fifteen.vue
  14. 240 232
      src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue
  15. 1 1
      src/xt_pages/dialysis/bloodPresssWatch.vue
  16. 32 29
      src/xt_pages/dialysis/details/BasicInfor.vue
  17. 163 250
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  18. 318 276
      src/xt_pages/dialysis/details/assessmentAfter.vue
  19. 138 124
      src/xt_pages/dialysis/details/assessmentBefore.vue
  20. 403 387
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  21. 75 76
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  22. 2121 1980
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  23. 351 530
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  24. 151 104
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  25. 41 174
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  26. 1255 420
      src/xt_pages/dialysis/details/index.vue
  27. 624 95
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  28. 310 31
      src/xt_pages/dialysis/schedualPatient.vue
  29. 490 494
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  30. 33 32
      src/xt_pages/dialysis/template/DialysisPrintOrderEighteen.vue
  31. 1265 1265
      src/xt_pages/dialysis/template/DialysisPrintOrderFifteen.vue
  32. 2114 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue
  33. 61 51
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue
  34. 345 347
      src/xt_pages/dialysis/template/DialysisPrintOrderSixteen.vue
  35. 473 456
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  36. 110 8
      src/xt_pages/upload/fast/FastCountry.vue
  37. 7 4
      src/xt_pages/upload/fast/FastPatientsSidebar.vue
  38. 744 28
      src/xt_pages/upload/fast/FastProvince.vue
  39. 4 4
      src/xt_pages/upload/fast/One.vue
  40. 6 6
      src/xt_pages/upload/fast/Two.vue
  41. 253 0
      src/xt_pages/upload/fast/basicInfo.vue
  42. 593 0
      src/xt_pages/upload/fast/dialysisParams.vue
  43. 110 0
      src/xt_pages/upload/fast/dialysisSummary.vue
  44. 173 0
      src/xt_pages/upload/fast/rescueRecord.vue
  45. 467 0
      src/xt_pages/upload/fast/treatInfo.vue
  46. 3 3
      src/xt_pages/upload/fast_upload.vue
  47. 103 100
      src/xt_pages/user/components/PatientSidebar.vue
  48. 562 563
      src/xt_pages/user/dialysisSolution.vue
  49. 9 5
      src/xt_pages/user/patients.vue
  50. 1 1
      src/xt_pages/workforce/remind_print.vue

+ 1 - 0
.gitignore Dosyayı Görüntüle

@@ -1 +1,2 @@
1 1
 node_modules/
2
+dist/

+ 2 - 3
config/dev.env.js Dosyayı Görüntüle

@@ -7,11 +7,10 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API:'"http://localhost:9531"',
11
-  // BASE_API:'"http://api.xt.test.sgjyun.com"',
10
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
12 11
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 12
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 13
   XT_HOST: '"http://xt.test.sgjyun.com"',
15 14
   MIRCO_MALL_HOST: '"http://mall.test.sgjyun.com"',
16 15
   CDM_HOST: '"http://cdm.test.sgjyun.com"'
17
-};
16
+}

+ 2 - 2
config/index.js Dosyayı Görüntüle

@@ -20,7 +20,7 @@ module.exports = {
20 20
     //  host: 'xt.test.sgjyun.com',
21 21
     //  host: 'xt.kuyicloud.com',
22 22
     // host: 'xt.test.sgjyun.com',
23
-    host:'localhost',
23
+    host: 'localhost',
24 24
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
25 25
     autoOpenBrowser: true,
26 26
     errorOverlay: true,
@@ -53,7 +53,7 @@ module.exports = {
53 53
     // (https://github.com/webpack/css-loader#sourcemaps)
54 54
     // In our experience, they generally work as expected,
55 55
     // just be aware of this issue when enabling this option.
56
-    cssSourceMap: false,
56
+    cssSourceMap: false
57 57
   },
58 58
 
59 59
   build: {

+ 12 - 31
package-lock.json Dosyayı Görüntüle

@@ -4740,8 +4740,7 @@
4740 4740
         "ansi-regex": {
4741 4741
           "version": "2.1.1",
4742 4742
           "bundled": true,
4743
-          "dev": true,
4744
-          "optional": true
4743
+          "dev": true
4745 4744
         },
4746 4745
         "aproba": {
4747 4746
           "version": "1.2.0",
@@ -4764,15 +4763,13 @@
4764 4763
         "balanced-match": {
4765 4764
           "version": "1.0.0",
4766 4765
           "bundled": true,
4767
-          "dev": true,
4768
-          "optional": true
4766
+          "dev": true
4769 4767
         },
4770 4768
         "brace-expansion": {
4771 4769
           "version": "1.1.11",
4772 4770
           "resolved": false,
4773 4771
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4774 4772
           "dev": true,
4775
-          "optional": true,
4776 4773
           "requires": {
4777 4774
             "balanced-match": "^1.0.0",
4778 4775
             "concat-map": "0.0.1"
@@ -4788,22 +4785,19 @@
4788 4785
         "code-point-at": {
4789 4786
           "version": "1.1.0",
4790 4787
           "bundled": true,
4791
-          "dev": true,
4792
-          "optional": true
4788
+          "dev": true
4793 4789
         },
4794 4790
         "concat-map": {
4795 4791
           "version": "0.0.1",
4796 4792
           "resolved": false,
4797 4793
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4798
-          "dev": true,
4799
-          "optional": true
4794
+          "dev": true
4800 4795
         },
4801 4796
         "console-control-strings": {
4802 4797
           "version": "1.1.0",
4803 4798
           "resolved": false,
4804 4799
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4805
-          "dev": true,
4806
-          "optional": true
4800
+          "dev": true
4807 4801
         },
4808 4802
         "core-util-is": {
4809 4803
           "version": "1.0.2",
@@ -4933,8 +4927,7 @@
4933 4927
         "inherits": {
4934 4928
           "version": "2.0.3",
4935 4929
           "bundled": true,
4936
-          "dev": true,
4937
-          "optional": true
4930
+          "dev": true
4938 4931
         },
4939 4932
         "ini": {
4940 4933
           "version": "1.3.5",
@@ -4948,7 +4941,6 @@
4948 4941
           "resolved": false,
4949 4942
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4950 4943
           "dev": true,
4951
-          "optional": true,
4952 4944
           "requires": {
4953 4945
             "number-is-nan": "^1.0.0"
4954 4946
           }
@@ -4965,7 +4957,6 @@
4965 4957
           "resolved": false,
4966 4958
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4967 4959
           "dev": true,
4968
-          "optional": true,
4969 4960
           "requires": {
4970 4961
             "brace-expansion": "^1.1.7"
4971 4962
           }
@@ -4973,15 +4964,13 @@
4973 4964
         "minimist": {
4974 4965
           "version": "0.0.8",
4975 4966
           "bundled": true,
4976
-          "dev": true,
4977
-          "optional": true
4967
+          "dev": true
4978 4968
         },
4979 4969
         "minipass": {
4980 4970
           "version": "2.3.5",
4981 4971
           "resolved": false,
4982 4972
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4983 4973
           "dev": true,
4984
-          "optional": true,
4985 4974
           "requires": {
4986 4975
             "safe-buffer": "^5.1.2",
4987 4976
             "yallist": "^3.0.0"
@@ -5002,7 +4991,6 @@
5002 4991
           "resolved": false,
5003 4992
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
5004 4993
           "dev": true,
5005
-          "optional": true,
5006 4994
           "requires": {
5007 4995
             "minimist": "0.0.8"
5008 4996
           }
@@ -5090,8 +5078,7 @@
5090 5078
         "number-is-nan": {
5091 5079
           "version": "1.0.1",
5092 5080
           "bundled": true,
5093
-          "dev": true,
5094
-          "optional": true
5081
+          "dev": true
5095 5082
         },
5096 5083
         "object-assign": {
5097 5084
           "version": "4.1.1",
@@ -5105,7 +5092,6 @@
5105 5092
           "resolved": false,
5106 5093
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5107 5094
           "dev": true,
5108
-          "optional": true,
5109 5095
           "requires": {
5110 5096
             "wrappy": "1"
5111 5097
           }
@@ -5200,8 +5186,7 @@
5200 5186
         "safe-buffer": {
5201 5187
           "version": "5.1.2",
5202 5188
           "bundled": true,
5203
-          "dev": true,
5204
-          "optional": true
5189
+          "dev": true
5205 5190
         },
5206 5191
         "safer-buffer": {
5207 5192
           "version": "2.1.2",
@@ -5243,7 +5228,6 @@
5243 5228
           "resolved": false,
5244 5229
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5245 5230
           "dev": true,
5246
-          "optional": true,
5247 5231
           "requires": {
5248 5232
             "code-point-at": "^1.0.0",
5249 5233
             "is-fullwidth-code-point": "^1.0.0",
@@ -5265,7 +5249,6 @@
5265 5249
           "resolved": false,
5266 5250
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5267 5251
           "dev": true,
5268
-          "optional": true,
5269 5252
           "requires": {
5270 5253
             "ansi-regex": "^2.0.0"
5271 5254
           }
@@ -5313,15 +5296,13 @@
5313 5296
         "wrappy": {
5314 5297
           "version": "1.0.2",
5315 5298
           "bundled": true,
5316
-          "dev": true,
5317
-          "optional": true
5299
+          "dev": true
5318 5300
         },
5319 5301
         "yallist": {
5320 5302
           "version": "3.0.3",
5321 5303
           "resolved": false,
5322 5304
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5323
-          "dev": true,
5324
-          "optional": true
5305
+          "dev": true
5325 5306
         }
5326 5307
       }
5327 5308
     },
@@ -7943,7 +7924,7 @@
7943 7924
     },
7944 7925
     "normalize-wheel": {
7945 7926
       "version": "1.0.1",
7946
-      "resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
7927
+      "resolved": "http://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
7947 7928
       "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
7948 7929
     },
7949 7930
     "normalize.css": {

+ 29 - 50
src/api/dialysis_record.js Dosyayı Görüntüle

@@ -30,23 +30,23 @@ export function getDialysisScheduleDetail(patient_id, ymd) {
30 30
   })
31 31
 }
32 32
 
33
-export function editMonitor(patient_id, schedule_date, data,mode) {
33
+export function editMonitor(patient_id, schedule_date, data, mode) {
34 34
   var params = {
35 35
     patient_id: patient_id,
36 36
     schedule_date: schedule_date,
37
-    mode:mode
37
+    mode: mode
38 38
   }
39 39
   return request({
40 40
     url: '/api/dislysis/monitor/edit',
41 41
     method: 'post',
42 42
     params: params,
43 43
     data: data,
44
-    headers:{"Permission":2},
44
+    headers: { 'Permission': 2 }
45 45
 
46 46
   })
47 47
 }
48 48
 
49
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time,schedual_type,mode) {
49
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode) {
50 50
   var params = {
51 51
     patient_id: patient_id,
52 52
     date: schedule_date,
@@ -55,31 +55,31 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
55 55
     puncture_nurse: puncture_nurse_id,
56 56
     start_time: start_time,
57 57
     lood_drawing: lood_drawing,
58
-    schedual_type:schedual_type,
59
-    mode:mode,
58
+    schedual_type: schedual_type,
59
+    mode: mode
60 60
   }
61 61
   return request({
62 62
     url: '/api/dialysis/start_record',
63 63
     method: 'post',
64 64
     params: params,
65
-    headers:{"Permission":2},
65
+    headers: { 'Permission': 2 }
66 66
 
67 67
   })
68 68
 }
69 69
 
70
-export function finishDialysis(patient_id, schedule_date,end_time, nurse_id,mode) {
70
+export function finishDialysis(patient_id, schedule_date, end_time, nurse_id, mode) {
71 71
   var params = {
72 72
     patient_id: patient_id,
73 73
     date: schedule_date,
74 74
     nurse: nurse_id,
75
-    end_time:end_time,
76
-    mode:mode,
75
+    end_time: end_time,
76
+    mode: mode
77 77
   }
78 78
   return request({
79 79
     url: '/api/dialysis/finish',
80 80
     method: 'post',
81 81
     params: params,
82
-    headers:{"Permission":2},
82
+    headers: { 'Permission': 2 }
83 83
 
84 84
   })
85 85
 }
@@ -89,73 +89,52 @@ export function postDelMonitorInfo(params) {
89 89
     url: '/api/dialysis/monitor/del',
90 90
     method: 'post',
91 91
     params: params,
92
-    headers:{"Permission":2},
92
+    headers: { 'Permission': 2 }
93 93
 
94 94
   })
95 95
 }
96 96
 
97
-
98
-
99
-
100
-
101 97
 export function getLongAdvice(params) {
102 98
   return request({
103
-    url:'/api/dialysis/advice_remind',
104
-    method:'Get',
105
-    params:params,
99
+    url: '/api/dialysis/advice_remind',
100
+    method: 'Get',
101
+    params: params
106 102
   })
107 103
 }
108 104
 
109
-
110 105
 export function GetSchedualNumber(params) {
111 106
   return request({
112
-    url:'/api/schedule/get',
113
-    method:'Get',
114
-    params:params,
107
+    url: '/api/schedule/get',
108
+    method: 'Get',
109
+    params: params
115 110
   })
116 111
 }
117 112
 
118
-
119
-
120 113
 export function PostModifyStartDialysis(params) {
121 114
   return request({
122
-    url:'/api/start_dialysis/modify',
123
-    method:'Post',
124
-    params:params,
125
-    headers:{"Permission":2},
115
+    url: '/api/start_dialysis/modify',
116
+    method: 'Post',
117
+    params: params,
118
+    headers: { 'Permission': 2 }
126 119
 
127 120
   })
128 121
 }
129 122
 
130
-
131
-
132
-
133
-
134
-
135
-
136 123
 export function PostModifyFinishDialysis(params) {
137 124
   return request({
138
-    url:'/api/finish_dialysis/modify',
139
-    method:'Post',
140
-    params:params,
141
-    headers:{"Permission":2},
125
+    url: '/api/finish_dialysis/modify',
126
+    method: 'Post',
127
+    params: params,
128
+    headers: { 'Permission': 2 }
142 129
 
143 130
   })
144 131
 }
145 132
 
146
-
147
-
148 133
 export function getTodayMonitor(params) {
149 134
   return request({
150
-    url:'/api/today_monitor/get',
151
-    method:'Get',
152
-    params:params,
135
+    url: '/api/today_monitor/get',
136
+    method: 'Get',
137
+    params: params
153 138
   })
154 139
 }
155 140
 
156
-
157
-
158
-
159
-
160
-
161
-

+ 3 - 0
src/store/getters.js Dosyayı Görüntüle

@@ -22,6 +22,9 @@ const getters = {
22 22
   xt_user: state => state.xt_user,
23 23
   schedule_type_selected: state => state.xt_user.schedule_type_selected,
24 24
   zone_selected: state => state.xt_user.zone_selected,
25
+  patient_state_selected: state => state.xt_user.patient_state_selected,
26
+  treat_state_selected: state => state.xt_user.treat_state_selected,
27
+  selected_date: state => state.xt_user.selected_date,
25 28
 
26 29
   xt_role_temps: state => state.xt_role_temps,
27 30
 

+ 4 - 4
src/store/modules/globalConfig.js Dosyayı Görüntüle

@@ -529,7 +529,7 @@ const global_config = {
529 529
         gaijiliang_unit: ''
530 530
       },
531 531
       3: {
532
-        id: 7,
532
+        id: 3,
533 533
         name: '低分子肝素',
534 534
         type: 1,
535 535
         shouji: 1,
@@ -537,9 +537,9 @@ const global_config = {
537 537
         zongliang: 1,
538 538
         gaimingcheng: -1,
539 539
         gaijiliang: -1,
540
-        shouji_unit: 'iu',
541
-        weichi_unit: 'iu/h',
542
-        zongliang_unit: 'iu',
540
+        shouji_unit: 'IU',
541
+        weichi_unit: 'IU',
542
+        zongliang_unit: 'IU',
543 543
         gaimingcheng_unit: '',
544 544
         gaijiliang_unit: ''
545 545
       },

+ 21 - 0
src/store/modules/xt_user.js Dosyayı Görüntüle

@@ -9,6 +9,9 @@ const xt_user = {
9 9
     org_id: 0,
10 10
     schedule_type_selected: 0,
11 11
     zone_selected: 0,
12
+    patient_state_selected: 0,
13
+    treat_state_selected: 0,
14
+    selected_date:new Date(),
12 15
     app_id: 0,
13 16
     user: {
14 17
       id: 0,
@@ -60,6 +63,15 @@ const xt_user = {
60 63
     SET_ZONE_SELECTED: (state, zone_selected) => {
61 64
       state.zone_selected = zone_selected
62 65
     },
66
+    SET_PAtIENT_STATE_SELECTED: (state, patient_state_selected) => {
67
+      state.patient_state_selected = patient_state_selected
68
+    },
69
+    SET_TREAT_STATE_SELECTED: (state, treat_state_selected) => {
70
+      state.treat_state_selected = treat_state_selected
71
+    },
72
+    SET_SELECTED_DATE: (state, selected_date) => {
73
+      state.selected_date = selected_date
74
+    },
63 75
     SET_FILEDS_LIST: (state, configlist) => {
64 76
       state.fileds = configlist
65 77
     },
@@ -174,6 +186,15 @@ const xt_user = {
174 186
     SetZoneSelected({ commit }, zone_selected) {
175 187
       commit('SET_ZONE_SELECTED', zone_selected)
176 188
     },
189
+    SetPatientStateSelected({ commit }, patient_state_selected) {
190
+      commit('SET_PAtIENT_STATE_SELECTED', patient_state_selected)
191
+    },
192
+    SetTreatStateSelected({ commit }, treat_state_selected) {
193
+      commit('SET_TREAT_STATE_SELECTED', treat_state_selected)
194
+    },
195
+    SetSelectedDate({ commit }, selected_date) {
196
+      commit('SET_SELECTED_DATE', selected_date)
197
+    },
177 198
     SetSubscibePatients({
178 199
       commit,
179 200
       state

+ 3 - 0
src/utils/data.js Dosyayı Görüntüle

@@ -3,6 +3,9 @@ import store from '@/store'
3 3
 export function getDataConfig(module, field) {
4 4
   var storeConfigList = store.getters.configlist
5 5
   var moduleConfig = storeConfigList[module]
6
+  if (moduleConfig == undefined) {
7
+    return false
8
+  }
6 9
   if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
7 10
     var Aresult = []
8 11
     for (var j = 0; j < moduleConfig.length; j++) {

+ 4 - 4
src/utils/tools.js Dosyayı Görüntüle

@@ -118,7 +118,7 @@ export function uParseTime(time, cFormat) {
118 118
   if (time === 0) {
119 119
     return ''
120 120
   }
121
- 
121
+
122 122
   if (arguments.length === 0) {
123 123
     return null
124 124
   }
@@ -166,9 +166,9 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
166 166
   } else {
167 167
     return 0
168 168
   }
169
-  shouji = parseFloat(shouji)
170
-  shichang = parseFloat(shichang)
171
-  weichi = parseFloat(weichi)
169
+  shouji = parseFloat(shouji) ? parseFloat(shouji) : 0
170
+  shichang = parseFloat(shichang) ? parseFloat(shichang) : 0
171
+  weichi = parseFloat(weichi) ? parseFloat(weichi) : 0
172 172
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
173 173
     return 0
174 174
   }

+ 1 - 1
src/xt_pages/data/printTemplate.vue Dosyayı Görüntüle

@@ -285,7 +285,7 @@ export default {
285 285
               // 同步
286 286
               // console.log(response.data.data.fileds)
287 287
               this.loading = false;
288
-              // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
288
+              store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
289 289
               this.$message({
290 290
                 type: "success",
291 291
                 message: "切换成功"

+ 402 - 12
src/xt_pages/dialysis/PatientBox.vue Dosyayı Görüntüle

@@ -6,7 +6,7 @@
6 6
       v-for="schedule in schedules"
7 7
       v-if="schedule.patient"
8 8
       :class="borderColor(schedule)"
9
-      @click="detailAction(schedule)"
9
+      @click.stop="detailAction(schedule)"
10 10
       :key="schedule.id"
11 11
     >
12 12
       <div class="kehu">
@@ -19,6 +19,7 @@
19 19
             "
20 20
             alt=""
21 21
           />
22
+          <div>
22 23
           <div class="right">
23 24
             <h3 class="name">
24 25
               {{ schedule.patient.name
@@ -28,9 +29,23 @@
28 29
               >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
29 30
             >
30 31
           </div>
32
+          <div style="margin-top:5px;text-align:left;height:24px;">
33
+              <span class="tip1" v-if="schedule.prescription == null || schedule.prescription.creater == 0" @click.stop="open(schedule)">
34
+                开处方
35
+              </span>
36
+              <span class="tip2" v-if="schedule.treatment_summary == null || schedule.treatment_summary.dialysis_summary == ''" @click.stop="open1(schedule)">
37
+                开小结
38
+              </span>
39
+            </div>
31 40
         </div>
32
-        <div class="online" v-show="computeState(schedule) != 4">
33
-          <p :class="stateColor(schedule)">{{ stateText(schedule) }}</p>
41
+        </div>
42
+        <div>
43
+          <div style="height:24px;margin-right: 10px;">
44
+            <div class="online" v-show="computeState(schedule) != 4">
45
+              <p :class="stateColor(schedule)">{{ stateText(schedule) }}</p>
46
+            </div>
47
+          </div>
48
+          <div style="margin-top:13px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div>
34 49
         </div>
35 50
       </div>
36 51
       <div class="function" :class="functionColor(schedule)">
@@ -56,15 +71,65 @@
56 71
       </div>
57 72
     </div>
58 73
     <!-- </router-link> -->
74
+    <dialysis-prescription-dialog
75
+      title="透析处方"
76
+      ref="prescription"
77
+      :patient="patient"
78
+      :prescription="prescription"
79
+      :solution="solution"
80
+      @advice="adviceFunc"
81
+      :niprocart_info="niprocart_info"
82
+      :jms_info="jms_info"
83
+      :fistula_needle_set_info="fistula_needle_set_info"
84
+      :fistula_needle_set_16_info="fistula_needle_set_16_info"
85
+      :hemoperfusion_info="hemoperfusion_info"
86
+      :dialyser_sterilised_info="dialyser_sterilised_info"
87
+      :filtryzer_info="filtryzer_info"
88
+      :dialyzers_info="dialyzers_info"
89
+      :injector_info="injector_info"
90
+      :bloodlines_info="bloodlines_info"
91
+      :tubingHemodialysis_info="tubingHemodialysis_info"
92
+      :safe_package_info="safe_package_info"
93
+      :aliquid_info="aliquid_info"
94
+      :config="config"
95
+      :admin_users="admin_users"
96
+      :targetAdvices="longAdvices"
97
+      :waitUploadAdvices="waitUploadAdvices"
98
+      :is_open="is_open"
99
+      :predialysis="predialysis_evaluation"
100
+      :last_predialysis="lastPredialysisEvaluation"
101
+      :record="assessment_after_dislysis"
102
+      :last_record="lastAssessmentAfterDislysis"
103
+      :last_prescription="lastDialysisPrescribe"
104
+      :dry_weight="lastDryWeightDislysis"
105
+      :schedual="temp_schedual"
106
+      :date='date'
107
+    ></dialysis-prescription-dialog>
108
+    <treatment-summary-dialog
109
+      title="治疗小结"
110
+      ref="treatmentSummary"
111
+      :patient="patient"
112
+      :treatment_summary="treatment_summary"
113
+    ></treatment-summary-dialog>
59 114
   </div>
60 115
 </template>
61 116
 
62 117
 <script>
63 118
 import { parseTime } from "@/utils";
64 119
 import { jsGetAge } from "@/utils/tools";
120
+import dialysisPrescriptionDialog from "../dialysis/details/dialog/dialysisPrescriptionDialog";
121
+import treatmentSummaryDialog from "../dialysis/details/dialog/treatmentSummaryDialog";
122
+import {
123
+  getDialysisScheduleDetail,
124
+  getLongAdvice,
125
+} from "@/api/dialysis_record";
65 126
 
66 127
 export default {
67 128
   name: "PatientBox",
129
+  components:{
130
+    dialysisPrescriptionDialog,
131
+    treatmentSummaryDialog
132
+  },
68 133
   data() {
69 134
     return {
70 135
       patients: [
@@ -96,13 +161,64 @@ export default {
96 161
           sex: "女",
97 162
           age: 90
98 163
         }
99
-      ]
164
+      ],
165
+      //
166
+      longAdvices: [],
167
+      waitUploadAdvices: [],
168
+      is_open: 0,
169
+      targetAdvices: [],
170
+
171
+      patient: { id: 0 }, // 患者信息
172
+      schedual: { id: 0 }, // 患者排班信息
173
+      prescription: { id: 0 }, // 透析处方
174
+      solution: { id: 0 }, // 透析方案
175
+      system_prescribe: { id: 0 },
176
+      receiver_treatment_access: { id: 0 }, // 接诊评估
177
+      predialysis_evaluation: { id: 0 }, // 透前评估
178
+      doctor_advices: [], // 临时医嘱
179
+      double_check: { id: 0 }, // 双人核对
180
+      assessment_after_dislysis: { id: 0 }, // 透后评估
181
+      treatment_summary: { id: 0 }, // 治疗小结
182
+      monitor_records: [], // 透析监测
183
+      dialysis_order: { id: 0 }, // 透析记录
184
+      admin_users: [], // 系统用户列表
185
+      devices: [], // 设备
186
+      device_numbers: [], // 床位号
187
+
188
+      admin_user_map: {}, // {user_id: admin_user object}
189
+      device_map: {}, // {device_id: device}
190
+      device_number_map: {}, // {device_number_id: device_number}
191
+
192
+      niprocart_info: [],
193
+      jms_info: [],
194
+      fistula_needle_set_info: [],
195
+      fistula_needle_set_16_info: [],
196
+      hemoperfusion_info: [],
197
+      dialyser_sterilised_info: [],
198
+      filtryzer_info: [],
199
+      dialyzers_info: [],
200
+      injector_info: [],
201
+      bloodlines_info: [],
202
+      tubingHemodialysis_info: [],
203
+      safe_package_info: [],
204
+      aliquid_info: [],
205
+      config: {},
206
+
207
+      lastPredialysisEvaluation: { id: 0 },
208
+      lastMonitorRecord: { id: 0 },
209
+      lastAssessmentAfterDislysis: { id: 0 },
210
+      lastDryWeightDislysis: { id: 0 },
211
+      headNurses: [],
212
+      lastDialysisPrescribe: { id: 0 },
213
+      temp_schedual: null,
214
+      date:''
100 215
     };
101 216
   },
102 217
   props: {
103 218
     schedules: {
104 219
       type: Array
105
-    }
220
+    },
221
+    patientStateVal:Number
106 222
   },
107 223
   methods: {
108 224
     stateColor: function(schedual) {
@@ -252,8 +368,252 @@ export default {
252 368
           patient_name: schedual.patient.name
253 369
         }
254 370
       });
371
+    },
372
+    //
373
+    getScheduleDetail: function() {
374
+      var dateStr = parseTime(this.date, "{y}-{m}-{d}");
375
+      this.doctor_advices = [];
376
+      getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
377
+        var resp = rs.data;
378
+        if (resp.state == 1) {
379
+          var patient = resp.data.patient; // 患者信息
380
+          console.log("患者信息",patient)
381
+          var schedual = resp.data.schedual; // 患者排班信息
382
+          var prescription = resp.data.prescription; // 透析处方
383
+          if(prescription!=null){
384
+              if(prescription.body_fluid == -2 ){
385
+                 prescription.body_fluid = 0
386
+             }
387
+          }
388
+          console.log("透析处方",prescription)
389
+          var solution = resp.data.solution; // 透析方案
390
+          var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
391
+          console.log("receiver_treatment_access",receiver_treatment_access)
392
+          var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
393
+          console.log("透前评估",predialysis_evaluation)
394
+           if(predialysis_evaluation !=null){
395
+             if(predialysis_evaluation.blood_access_part_id == -2){
396
+                predialysis_evaluation.blood_access_part_id = 0
397
+             }
398
+           }
399
+          var doctor_advices = resp.data.doctor_advices; // 临时医嘱
400
+          //console.log("力气-------", doctor_advices);
401
+          var double_check = resp.data.double_check; // 双人核对
402
+          var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
403
+          //console.log("透后品谷数", assessment_after_dislysis);
404
+          var treatment_summary = resp.data.treatment_summary; // 治疗小结
405
+          var monitor_records = resp.data.monitor_records; // 透析监测
406
+          var dialysis_order = resp.data.dialysis_order; // 透析记录
407
+
408
+          var niprocart_info = resp.data.niprocart_info;
409
+          var jms_info = resp.data.jms_info;
410
+          var fistula_needle_set_info = resp.data.fistula_needle_set_info;
411
+          var fistula_needle_set_16_info = resp.data.fistula_needle_set_16_info;
412
+          var hemoperfusion_info = resp.data.hemoperfusion_info;
413
+          var dialyser_sterilised_info = resp.data.dialyser_sterilised_info;
414
+          var filtryzer_info = resp.data.filtryzer_info;
415
+          var dialyzers_info = resp.data.dialyzers_info;
416
+          var injector_info = resp.data.injector_info;
417
+          var bloodlines_info = resp.data.bloodlines_info;
418
+          var tubingHemodialysis_info = resp.data.tubingHemodialysis_info;
419
+          var safe_package_info = resp.data.safe_package_info;
420
+          var aliquid_info = resp.data.aliquid_info;
421
+
422
+          var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation;
423
+          console.log("上次透前评估",lastPredialysisEvaluation)
424
+          if(lastPredialysisEvaluation !=null){
425
+             if(lastPredialysisEvaluation.blood_access_part_id == -2){
426
+               lastPredialysisEvaluation.blood_access_part_id = 0
427
+             }
428
+          }
429
+          var lastMonitorRecord = resp.data.lastMonitorRecord;
430
+          var lastAssessmentAfterDislysis =
431
+            resp.data.lastAssessmentAfterDislysis;
432
+          var lastDialysisPrescribe = resp.data.lastDialysisPrescribe;
433
+          var lastDryWeightDislysis = resp.data.lastDryWeightDislysis;
434
+
435
+          var system_prescribe = resp.data.system_prescribe;
436
+
437
+          
438
+          this.$refs.prescription.setLastRecord(
439
+            schedual,
440
+            lastAssessmentAfterDislysis,
441
+            lastPredialysisEvaluation,
442
+            lastDialysisPrescribe,
443
+            lastDryWeightDislysis,
444
+            system_prescribe
445
+          );
446
+
447
+          var headNurses = resp.data.headNurse;
448
+
449
+          var config = resp.data.config;
450
+          this.lastPredialysisEvaluation = lastPredialysisEvaluation;
451
+          this.lastMonitorRecord = lastMonitorRecord;
452
+          this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis;
453
+          this.lastDialysisPrescribe = lastDialysisPrescribe;
454
+          this.lastDryWeightDislysis = lastDryWeightDislysis;
455
+          this.headNurses = headNurses;
456
+          this.system_prescribe = system_prescribe;
457
+
458
+          this.niprocart_info = niprocart_info;
459
+          this.jms_info = jms_info;
460
+          this.fistula_needle_set_info = fistula_needle_set_info;
461
+          this.fistula_needle_set_16_info = fistula_needle_set_16_info;
462
+          this.hemoperfusion_info = hemoperfusion_info;
463
+          this.dialyser_sterilised_info = dialyser_sterilised_info;
464
+          this.filtryzer_info = filtryzer_info;
465
+          this.dialyzers_info = dialyzers_info;
466
+          this.injector_info = injector_info;
467
+          this.bloodlines_info = bloodlines_info;
468
+          this.tubingHemodialysis_info = tubingHemodialysis_info;
469
+          this.safe_package_info = safe_package_info;
470
+          this.aliquid_info = aliquid_info;
471
+          this.config = config;
472
+
473
+          this.patient = patient;
474
+          this.schedual = schedual == null ? { id: 0 } : schedual;
475
+          this.prescription = prescription == null ? { id: 0 } : prescription;
476
+          console.log('this.prescription',this.prescription)
477
+          this.solution = solution == null ? { id: 0 } : solution;
478
+          console.log('this.solution',this.solution)
479
+          this.receiver_treatment_access =
480
+            receiver_treatment_access == null
481
+              ? { id: 0 }
482
+              : receiver_treatment_access;
483
+          this.predialysis_evaluation =
484
+            predialysis_evaluation == null ? { id: 0 } : predialysis_evaluation;
485
+          this.doctor_advices = doctor_advices == null ? [] : doctor_advices;
486
+          this.double_check = double_check == null ? { id: 0 } : double_check;
487
+          this.assessment_after_dislysis =
488
+            assessment_after_dislysis == null
489
+              ? { id: 0 }
490
+              : assessment_after_dislysis;
491
+          this.treatment_summary =
492
+            treatment_summary == null ? { id: 0 } : treatment_summary;
493
+          this.monitor_records = monitor_records == null ? [] : monitor_records;
494
+          this.dialysis_order =
495
+            dialysis_order == null ? { id: 0 } : dialysis_order;
496
+
497
+          // this.$refs.stat_order.setAdvices(this.doctor_advices)
498
+          // this.$refs.monitoring.setRecords(this.monitor_records)
499
+
500
+          this.admin_users = resp.data.doctors;
501
+          this.devices = resp.data.devices;
502
+          this.device_numbers = resp.data.device_numbers;
503
+
504
+          
505
+
506
+          var device_map = {};
507
+          for (let index = 0; index < this.devices.length; index++) {
508
+            const device = this.devices[index];
509
+            device_map[device.id] = device;
510
+          }
511
+          this.device_map = device_map;
512
+
513
+          var admin_map = {};
514
+          for (let index = 0; index < this.admin_users.length; index++) {
515
+            const admin = this.admin_users[index];
516
+            admin_map[admin.id] = admin;
517
+          }
518
+          this.admin_user_map = admin_map;
519
+
520
+          var device_number_map = {};
521
+          for (let index = 0; index < this.device_numbers.length; index++) {
522
+            const device_number = this.device_numbers[index];
523
+            device_number_map[device_number.id] = device_number;
524
+          }
525
+          this.device_number_map = device_number_map;
526
+        } else {
527
+          this.$message.error(resp.msg);
528
+        }
529
+
530
+        if (this.lastDialysisPrescribe != null) {
531
+          delete this.lastDialysisPrescribe.target_ultrafiltration;
532
+        }
533
+        if (this.solution != null) {
534
+          delete this.solution.target_ultrafiltration;
535
+        }
536
+      });
537
+    },
538
+    getLongAdvice() {
539
+      let params = {
540
+        patient_id: this.patient_id
541
+      };
542
+      getLongAdvice(params).then(rs => {
543
+        var resp = rs.data;
544
+        if (resp.state == 1) {
545
+          var status = parseInt(resp.data.status);
546
+
547
+          switch (status) {
548
+            case 2:
549
+              var totalAdvice = resp.data.advices;
550
+              var longAdvicesTwo = resp.data.advices_two;
551
+              var waitUploadAdvices = [];
552
+              for (let i = 0; i < totalAdvice.length; i++) {
553
+                totalAdvice[i]["isCheck"] = 1;
554
+              }
555
+
556
+              for (let i = 0; i < totalAdvice.length; i++) {
557
+                for (let a = 0; a < longAdvicesTwo.length; a++) {
558
+                  if (
559
+                    totalAdvice[i].template_id ==
560
+                      longAdvicesTwo[a].template_id &&
561
+                    totalAdvice[i].frequency_type ==
562
+                      longAdvicesTwo[a].frequency_type
563
+                  ) {
564
+                    totalAdvice[i]["isCheck"] = 0;
565
+                  }
566
+                }
567
+              }
568
+
569
+              for (let i = 0; i < totalAdvice.length; i++) {
570
+                if (totalAdvice[i].isCheck == 1) {
571
+                  waitUploadAdvices.push(totalAdvice[i]);
572
+                }
573
+              }
574
+
575
+              this.is_open = resp.data.is_open_remind;
576
+              this.longAdvices = totalAdvice;
577
+              this.waitUploadAdvices = waitUploadAdvices;
578
+              break;
579
+          }
580
+        } else {
581
+          this.$message.error(resp.msg);
582
+        }
583
+      });
584
+    },
585
+    adviceFunc: function() {
586
+      this.$emit("advice");
587
+    },
588
+    open(schedual){
589
+      this.date = schedual.schedule_date
590
+      this.patient_id = schedual.patient_id
591
+      this.getScheduleDetail()
592
+      this.getLongAdvice()
593
+      this.$refs.prescription.show(this.prescription);
594
+      
595
+    },
596
+    open1(schedual){
597
+      this.date = schedual.schedule_date
598
+      this.patient_id = schedual.patient_id
599
+      this.getScheduleDetail()
600
+      this.getLongAdvice()
601
+      this.$refs.treatmentSummary.show(this.treatment_summary,this.date);
602
+      
603
+    },
604
+    getTime(date){
605
+      date = new Date(date * 1000)
606
+      var Y = date.getFullYear() + '-';
607
+      var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
608
+      var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
609
+      var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
610
+      var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
611
+      var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
612
+      
613
+      let strDate = h  + ':' + m;
614
+      return strDate;
255 615
     }
256
-  }
616
+  },
257 617
 };
258 618
 </script>
259 619
 
@@ -292,14 +652,15 @@ export default {
292 652
   }
293 653
   .kehu {
294 654
     @include display-flex;
295
-    @include align-items-center;
655
+    // @include align-items-center;
296 656
     @include text-align;
297 657
     @include justify-content-between;
298 658
     border-bottom: 1px #e5e5e5 solid;
299 659
     padding: 0 0 10px 20px;
300 660
     .tx {
301 661
       @include display-flex;
302
-      @include align-items-center;
662
+      // @include align-items-center;
663
+      width: 60%;
303 664
       img {
304 665
         width: 45px;
305 666
         height: 45px;
@@ -308,14 +669,18 @@ export default {
308 669
         margin: 0 15px 0 0;
309 670
       }
310 671
       .right {
311
-        float: left;
312
-        text-align: left;
672
+        // float: left;
673
+        // text-align: left;
674
+        display:flex;
675
+        align-items: center;
676
+        margin-top: 6px;
313 677
         .name {
314 678
           font-size: 15px;
315 679
           color: #34495e;
316 680
           font-weight: bold;
317 681
           height: 20px;
318 682
           line-height: 20px;
683
+          margin-right:10px;
319 684
           .yc {
320 685
             background: #ff7979;
321 686
             color: #fff;
@@ -334,12 +699,36 @@ export default {
334 699
           color: #7b8a97;
335 700
         }
336 701
       }
702
+      .tip1{
703
+        background: #4fc7cb;
704
+        border-radius: 5px;
705
+        text-align: center;
706
+        font-size: 12px;
707
+        display: inline-block;
708
+        width: 60px;
709
+        color: #fff;
710
+        width: 65px;
711
+        height: 24px;
712
+        line-height: 24px;
713
+      }
714
+      .tip2{
715
+        background: #7bce91;
716
+        border-radius: 5px;
717
+        text-align: center;
718
+        font-size: 12px;
719
+        display: inline-block;
720
+        width: 60px;
721
+        color: #fff;
722
+        width: 65px;
723
+        height: 24px;
724
+        line-height: 24px;
725
+      }
337 726
     }
338 727
 
339 728
     .online {
340 729
       text-align: center;
341
-      width: 50%;
342
-      border-left: 1px #e5e5e5 solid;
730
+      width: 30%;
731
+      // border-left: 1px #e5e5e5 solid;
343 732
       p {
344 733
         background: #c6cdd2;
345 734
         color: #fff;
@@ -349,6 +738,7 @@ export default {
349 738
         border-radius: 4px;
350 739
         margin: 0 auto;
351 740
         font-size: 12px;
741
+        margin-top:4px;
352 742
       }
353 743
       .blue {
354 744
         background: $main-color;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1342 - 1342
src/xt_pages/dialysis/batch_print/batch_print_order_fifteen.vue


+ 240 - 232
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue Dosyayı Görüntüle

@@ -337,7 +337,7 @@
337 337
                         <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
338 338
                         <td>&nbsp;
339 339
                             <span v-if="monitor.operate_time">
340
-                                {{ record.prescription.dialysate_flow ? record.prescription.dialysate_flow : "" }}
340
+                                {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }}
341 341
                             </span>
342 342
                         </td>
343 343
                         <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
@@ -353,14 +353,14 @@
353 353
                 <table class="print-table" border="1">
354 354
                     <tbody>
355 355
                     <tr>
356
-                        <td width="50" style="padding-left:5px;border:none;border-right:1px solid #000;">
356
+                        <td width="40" style="padding-left:5px;border:none;border-right:1px solid #000;">
357 357
                         透后评估
358 358
                         </td>
359 359
 
360
-                        <td width="30" style="border:none;padding-left:5px;">
360
+                        <td width="25" style="border:none;padding-left:5px;">
361 361
                         体温:
362 362
                         </td>
363
-                        <td width="50" style="text-align:left;border:none;">
363
+                        <td width="30" style="text-align:left;border:none;">
364 364
                         <div>
365 365
                             <span class="under_line" style="width:50px;display:inline-block;">
366 366
                             {{ record.assessment_after_dislysis.temperature ? record.assessment_after_dislysis.temperature : "" }}
@@ -369,8 +369,8 @@
369 369
                         </td>
370 370
                         <!-- <td width="10" style="border:none;"></td> -->
371 371
 
372
-                        <td width="30" style="border:none;padding-left:5px;">血压:</td>
373
-                        <td width="100" style="text-align:left;border:none;line-height: 30px;">
372
+                        <td width="25" style="border:none;padding-left:5px;">血压:</td>
373
+                        <td width="70" style="text-align:left;border:none;line-height: 30px;">
374 374
                         <div>
375 375
                             <span class="under_line" style="width:100px;display:inline-block">
376 376
                             {{ record.assessment_after_dislysis.systolic_blood_pressure ? record.assessment_after_dislysis.systolic_blood_pressure : "" }}/
@@ -378,16 +378,24 @@
378 378
                             </span>mmHg
379 379
                         </div>
380 380
                         </td>
381
-                        <td width="30" style="border:none;padding-left:5px">脉搏:</td>
382
-                        <td width="50" style="text-align:left;border:none;">
381
+                        <td width="25" style="border:none;padding-left:5px">脉搏:</td>
382
+                        <td width="55" style="text-align:left;border:none;">
383 383
                         <div>
384 384
                             <span class="under_line" style="width:50px;display:inline-block">
385 385
                             {{ record.assessment_after_dislysis.pulse_frequency ? record.assessment_after_dislysis.pulse_frequency : "" }}
386 386
                             </span>次/分
387 387
                         </div>
388 388
                         </td>
389
+                        <td width="50" style="border:none;padding-left:5px">实际置换量:</td>
390
+                        <td width="30" style="text-align:left;border:none;">
391
+                        <div>
392
+                            <span class="under_line" style="width:50px;display:inline-block">
393
+                            {{ record.assessment_after_dislysis.actual_displacement ? record.assessment_after_dislysis.actual_displacement : "" }}
394
+                            </span>次/分
395
+                        </div>
396
+                        </td>
389 397
                         <td width="50" style="border:none;padding-left:5px">透析器凝血:</td>
390
-                        <td width="120" style="text-align:left;border:none;">
398
+                        <td width="110" style="text-align:left;border:none;">
391 399
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-0度') > -1 ? true : false) : false" showValue="0"></label-box>
392 400
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false) : false" showValue="+"></label-box>
393 401
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) : false" showValue="+ +"></label-box>
@@ -445,19 +453,19 @@
445 453
 </template>
446 454
 
447 455
 <script>
448
-import CheckBox from "./option_check_box";
449
-import LabelBox from "../printItem/LabelBox";
456
+import CheckBox from './option_check_box'
457
+import LabelBox from '../printItem/LabelBox'
450 458
 import {
451 459
   GetBatchPrintDialysisData,
452 460
   getLastAfterWeight
453
-} from "@/api/print_data";
454
-import { jsGetAge, uParseTime } from "@/utils/tools";
455
-import { getDataConfig } from "@/utils/data";
456
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
461
+} from '@/api/print_data'
462
+import { jsGetAge, uParseTime } from '@/utils/tools'
463
+import { getDataConfig } from '@/utils/data'
464
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
457 465
 import print from 'print-js'
458 466
 
459 467
 export default {
460
-  name: "BatchPrintOrderSeven",
468
+  name: 'BatchPrintOrderSeven',
461 469
   components: {
462 470
     CheckBox,
463 471
     BreadCrumb,
@@ -469,8 +477,8 @@ export default {
469 477
       consciousness_arr: [],
470 478
       isShowZero: false,
471 479
       crumbs: [
472
-        { path: false, name: "透析管理" },
473
-        { path: false, name: "批量打印" }
480
+        { path: false, name: '透析管理' },
481
+        { path: false, name: '批量打印' }
474 482
       ],
475 483
       records: [
476 484
         // 模拟有多条数据
@@ -484,11 +492,11 @@ export default {
484 492
         // },
485 493
       ],
486 494
       queryParams: {
487
-        xtdate: "",
488
-        xtno: ""
495
+        xtdate: '',
496
+        xtno: ''
489 497
       },
490 498
       loading: false,
491
-      orgname: "",
499
+      orgname: '',
492 500
       bloodAccessParOpera: {},
493 501
       anticoagulantsConfit: {},
494 502
       dialysateFormulationOptions: {},
@@ -503,134 +511,134 @@ export default {
503 511
       blood_access_part: [],
504 512
       posture_arr: [],
505 513
       complications: [
506
-        "低血压",
507
-        "高血压",
508
-        "心律失常",
509
-        "头晕",
510
-        "头痛",
511
-        "呕吐",
512
-        "抽搐",
513
-        "出血",
514
-        "心衰",
515
-        "腹痛"
514
+        '低血压',
515
+        '高血压',
516
+        '心律失常',
517
+        '头晕',
518
+        '头痛',
519
+        '呕吐',
520
+        '抽搐',
521
+        '出血',
522
+        '心衰',
523
+        '腹痛'
516 524
       ],
517 525
       allName: [],
518 526
       NameStatus: 0,
519 527
       advices: [],
520
-      docotorId: "",
521
-      lastAfterWeight: "",
528
+      docotorId: '',
529
+      lastAfterWeight: '',
522 530
       appetite_arr: [],
523 531
       precaution_arr: [],
524 532
       showOne: false,
525 533
       showTwo: false
526
-    };
534
+    }
527 535
   },
528 536
   created() {
529
-    var xtuser = this.$store.getters.xt_user;
537
+    var xtuser = this.$store.getters.xt_user
530 538
     // console.log('xtuser', xtuser)
531
-    this.orgname = xtuser.org.org_name;
539
+    this.orgname = xtuser.org.org_name
532 540
     //   this.orgname = "遂溪方济医院";
533
-    this.modeOptions = this.$store.getters.treatment_mode;
541
+    this.modeOptions = this.$store.getters.treatment_mode
534 542
     //   this.replacementWays = this.$store.getters.replacement_ways;
535 543
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
536
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
537
-    this.way_arr = getDataConfig("hemodialysis", "way");
538
-    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
539
-    this.posture_arr = getDataConfig("hemodialysis", "posture");
544
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
545
+    this.way_arr = getDataConfig('hemodialysis', 'way')
546
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
547
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
540 548
     var bloodAccessParOpera = getDataConfig(
541
-      "hemodialysis",
542
-      "vascular_access_desc"
543
-    );
549
+      'hemodialysis',
550
+      'vascular_access_desc'
551
+    )
544 552
     for (var key in bloodAccessParOpera) {
545 553
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
546
-        bloodAccessParOpera[key];
554
+        bloodAccessParOpera[key]
547 555
     }
548 556
 
549
-    this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
557
+    this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
550 558
 
551 559
     var dialysateFormulationOptions = getDataConfig(
552
-      "hemodialysis",
553
-      "dialysate_formulation"
554
-    );
560
+      'hemodialysis',
561
+      'dialysate_formulation'
562
+    )
555 563
     for (var key in dialysateFormulationOptions) {
556 564
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
557
-        dialysateFormulationOptions[key];
565
+        dialysateFormulationOptions[key]
558 566
     }
559
-    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
560
-    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
567
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
568
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
561 569
   },
562 570
   mounted() {
563
-    console.log(this.records);
564
-    this.loading = true;
565
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
571
+    console.log(this.records)
572
+    this.loading = true
573
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
566 574
     if (ids.length == 0) {
567
-      this.$router.back(-1);
568
-      return;
575
+      this.$router.back(-1)
576
+      return
569 577
     }
570
-    GetBatchPrintDialysisData(ids.join(","))
578
+    GetBatchPrintDialysisData(ids.join(','))
571 579
       .then(rs => {
572
-        var resp = rs.data;
580
+        var resp = rs.data
573 581
         if (resp.state == 1) {
574
-          this.org_template_info = resp.data.templateInfo;
582
+          this.org_template_info = resp.data.templateInfo
575 583
 
576
-          this.records = this.records.concat(resp.data.schedules);
584
+          this.records = this.records.concat(resp.data.schedules)
577 585
 
578
-          console.log("记录", this.records);
586
+          console.log('记录', this.records)
579 587
 
580 588
           for (const recordIndex in this.records) {
581
-            var dlegh = 0;
589
+            var dlegh = 0
582 590
             if (
583 591
               this.records[recordIndex].monitor_records &&
584 592
               this.records[recordIndex].monitor_records.length < 8
585 593
             ) {
586
-              dlegh = 8 - this.records[recordIndex].monitor_records.length;
594
+              dlegh = 8 - this.records[recordIndex].monitor_records.length
587 595
             } else {
588
-              dlegh = 0;
596
+              dlegh = 0
589 597
             }
590 598
             if (dlegh > 0) {
591 599
               if (
592 600
                 typeof this.records[recordIndex].monitor_records ===
593
-                  "undefined" ||
601
+                  'undefined' ||
594 602
                 this.records[recordIndex].monitor_records == null
595 603
               ) {
596
-                this.records[recordIndex].monitor_records = [];
604
+                this.records[recordIndex].monitor_records = []
597 605
               }
598 606
               for (let index = 0; index < dlegh; index++) {
599
-                this.records[recordIndex].monitor_records.push([]);
607
+                this.records[recordIndex].monitor_records.push([])
600 608
               }
601 609
             }
602 610
 
603
-            this.records[recordIndex].isShowZero = false;
611
+            this.records[recordIndex].isShowZero = false
604 612
             if (this.records[recordIndex].patient.user_org_id == 9535) {
605
-              this.records[recordIndex].isShowZero = true;
613
+              this.records[recordIndex].isShowZero = true
606 614
             }
607 615
 
608
-            var delghTwo = 0;
616
+            var delghTwo = 0
609 617
             if (
610 618
               this.records[recordIndex].advices &&
611 619
               this.records[recordIndex].advices.length < 14
612 620
             ) {
613
-              delghTwo = 14 - this.records[recordIndex].advices.length;
621
+              delghTwo = 14 - this.records[recordIndex].advices.length
614 622
             } else {
615
-              delghTwo = 0;
623
+              delghTwo = 0
616 624
             }
617 625
 
618 626
             if (delghTwo > 0) {
619 627
               if (
620
-                typeof this.records[recordIndex].advices === "undefined" ||
628
+                typeof this.records[recordIndex].advices === 'undefined' ||
621 629
                 this.records[recordIndex].advices == null
622 630
               ) {
623
-                this.records[recordIndex].advices = [];
631
+                this.records[recordIndex].advices = []
624 632
               }
625 633
               for (let index = 0; index < delghTwo; index++) {
626
-                this.records[recordIndex].advices.push([]);
634
+                this.records[recordIndex].advices.push([])
627 635
               }
628 636
             }
629 637
 
630
-            var childMap = {};
638
+            var childMap = {}
631 639
             for (const index in this.records[recordIndex].advices) {
632 640
               if (this.records[recordIndex].advices[index].parent_id == 0) {
633
-                continue;
641
+                continue
634 642
               }
635 643
               if (
636 644
                 !(
@@ -639,285 +647,285 @@ export default {
639 647
               ) {
640 648
                 childMap[
641 649
                   this.records[recordIndex].advices[index].parent_id
642
-                ] = [];
650
+                ] = []
643 651
               }
644 652
               childMap[this.records[recordIndex].advices[index].parent_id].push(
645 653
                 this.records[recordIndex].advices[index]
646
-              );
654
+              )
647 655
             }
648 656
 
649
-            var advices = [];
657
+            var advices = []
650 658
             for (const index in this.records[recordIndex].advices) {
651 659
               if (this.records[recordIndex].advices[index].parent_id > 0) {
652
-                continue;
660
+                continue
653 661
               }
654
-              var item = this.records[recordIndex].advices[index];
662
+              var item = this.records[recordIndex].advices[index]
655 663
               if (item.id in childMap) {
656
-                item.children = childMap[item.id];
664
+                item.children = childMap[item.id]
657 665
               } else {
658
-                item.children = [];
666
+                item.children = []
659 667
               }
660
-              advices.push(item);
668
+              advices.push(item)
661 669
             }
662 670
 
663
-            var leftAdvice = [];
664
-            var rightAdvice = [];
665
-            var adlen = advices.length;
671
+            var leftAdvice = []
672
+            var rightAdvice = []
673
+            var adlen = advices.length
666 674
 
667
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
675
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
668 676
             for (var i = 0; i < halfLen; i++) {
669
-              leftAdvice.push(advices[i]);
670
-              var rightIndex = i + halfLen;
677
+              leftAdvice.push(advices[i])
678
+              var rightIndex = i + halfLen
671 679
               rightAdvice.push(
672 680
                 rightIndex in advices ? advices[i + halfLen] : []
673
-              );
681
+              )
674 682
             }
675 683
             if (halfLen < 5) {
676
-              var nl = 5 - leftAdvice.length;
684
+              var nl = 5 - leftAdvice.length
677 685
               for (let index = 0; index < nl; index++) {
678
-                leftAdvice.push([]);
686
+                leftAdvice.push([])
679 687
               }
680
-              var nl = 5 - rightAdvice.length;
688
+              var nl = 5 - rightAdvice.length
681 689
               for (let index = 0; index < nl; index++) {
682
-                rightAdvice.push([]);
690
+                rightAdvice.push([])
683 691
               }
684 692
             }
685 693
 
686
-            this.records[recordIndex].advices = [];
694
+            this.records[recordIndex].advices = []
687 695
             for (var i = 0; i < halfLen; i++) {
688
-              var item = [];
689
-              item.push(leftAdvice[i]);
690
-              item.push(rightAdvice[i]);
691
-              this.records[recordIndex].advices.push(item);
696
+              var item = []
697
+              item.push(leftAdvice[i])
698
+              item.push(rightAdvice[i])
699
+              this.records[recordIndex].advices.push(item)
692 700
             }
693 701
           }
694 702
 
695
-          console.log(" this.records[recordIndex].advices", this.records);
696
-          this.operators = resp.data.medical_staffs;
703
+          console.log(' this.records[recordIndex].advices', this.records)
704
+          this.operators = resp.data.medical_staffs
697 705
           if (this.operators.length > 0) {
698
-            var operatorsLen = this.operators.length;
706
+            var operatorsLen = this.operators.length
699 707
             for (var index = 0; index < operatorsLen; index++) {
700 708
               this.$set(
701 709
                 this.operatorMaps,
702 710
                 this.operators[index].id,
703 711
                 this.operators[index]
704
-              );
712
+              )
705 713
             }
706 714
           }
707 715
 
708
-          this.adminUser = resp.data.users;
709
-          console.log("adminUser", this.adminUser);
710
-          var name = resp.data.name;
711
-          this.adminSign = name;
712
-          console.log("name是", name);
713
-          this.loading = false;
716
+          this.adminUser = resp.data.users
717
+          console.log('adminUser', this.adminUser)
718
+          var name = resp.data.name
719
+          this.adminSign = name
720
+          console.log('name是', name)
721
+          this.loading = false
714 722
         } else {
715
-          this.loading = false;
716
-          this.$message.error(resp.msg);
723
+          this.loading = false
724
+          this.$message.error(resp.msg)
717 725
         }
718 726
       })
719 727
       .catch(err => {
720
-        this.$message.error(err);
721
-      });
728
+        this.$message.error(err)
729
+      })
722 730
   },
723 731
   methods: {
724
-    getNewNumber(name,number){
725
-      if(name.indexOf("区") > -1){
726
-          return (
727
-            name + number
728
-          );
729
-        } else {
730
-          return (
731
-            name + "区" + number
732
-            
733
-          );
734
-        }
732
+    getNewNumber(name, number) {
733
+      if (name.indexOf('区') > -1) {
734
+        return (
735
+          name + number
736
+        )
737
+      } else {
738
+        return (
739
+          name + '区' + number
740
+
741
+        )
742
+      }
735 743
     },
736 744
     getNewAge(UUserCard) {
737 745
       if (UUserCard != null && UUserCard != '') {
738
-        //获取年龄
739
-        var myDate = new Date();
740
-        var month = myDate.getMonth() + 1;
741
-        var day = myDate.getDate();
742
-        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
746
+        // 获取年龄
747
+        var myDate = new Date()
748
+        var month = myDate.getMonth() + 1
749
+        var day = myDate.getDate()
750
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
743 751
         if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
744
-        age++;
752
+          age++
745 753
         }
746
-        return age;
754
+        return age
747 755
       }
748 756
     },
749
-    getIsCheckDataConfig(pName, cName, targetName){
750
-        var arr = getDataConfig(pName,cName)
751
-        console.log(arr)
752
-        for (let i = 0; i < arr.length; i++){
753
-            if (arr[i].name == targetName){
754
-            return arr[i].id
755
-            }
757
+    getIsCheckDataConfig(pName, cName, targetName) {
758
+      var arr = getDataConfig(pName, cName)
759
+      console.log(arr)
760
+      for (let i = 0; i < arr.length; i++) {
761
+        if (arr[i].name == targetName) {
762
+          return arr[i].id
756 763
         }
764
+      }
757 765
     },
758 766
     getUnit: function(val) {
759 767
       if (val.assessment_after_dislysis == null) {
760
-        return "";
768
+        return ''
761 769
       } else if (val.assessment_after_dislysis != null) {
762 770
         switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
763 771
           case 1:
764
-            return "g";
765
-            break;
772
+            return 'g'
773
+            break
766 774
           case 2:
767
-            return "ml";
768
-            break;
775
+            return 'ml'
776
+            break
769 777
         }
770 778
       }
771 779
     },
772 780
     QueryPartById: function(val) {
773
-      let vascular_access_part_name = "/";
774
-      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
781
+      let vascular_access_part_name = '/'
782
+      const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
775 783
 
776 784
       for (let i = 0; i < vascular_access.length; i++) {
777 785
         if (vascular_access[i].id == val) {
778
-          vascular_access_part_name = vascular_access[i].name;
786
+          vascular_access_part_name = vascular_access[i].name
779 787
         }
780 788
       }
781
-      return vascular_access_part_name;
789
+      return vascular_access_part_name
782 790
     },
783 791
     printThisPage() {
784
-      var ptime = Math.round(new Date().getTime() / 1000);
785
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
792
+      var ptime = Math.round(new Date().getTime() / 1000)
793
+      this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
786 794
 
787 795
       const style =
788
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
796
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
789 797
       const style2 =
790
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
798
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
791 799
       const style3 =
792
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}';
800
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}'
793 801
       printJS({
794
-        printable: "print_content",
795
-        type: "html",
796
-        documentTitle: "  ",
802
+        printable: 'print_content',
803
+        type: 'html',
804
+        documentTitle: '  ',
797 805
         style: style3,
798 806
         scanStyles: false
799
-      });
807
+      })
800 808
     },
801 809
 
802 810
     complicationsOther: function(record) {
803
-      if (record == null || typeof record === "undefined") {
804
-        return "";
811
+      if (record == null || typeof record === 'undefined') {
812
+        return ''
805 813
       }
806 814
       if (record.complication.length == 0) {
807
-        return "";
815
+        return ''
808 816
       }
809
-      var complications = record.complication.split(",");
810
-      var complicationOthers = [];
817
+      var complications = record.complication.split(',')
818
+      var complicationOthers = []
811 819
       for (const index in complications) {
812 820
         if (
813 821
           this.complications.indexOf(complications[index]) < 0 &&
814 822
           complicationOthers.indexOf(complications[index]) < 0
815 823
         ) {
816
-          complicationOthers.push(complications[index]);
824
+          complicationOthers.push(complications[index])
817 825
         }
818 826
       }
819
-      return complicationOthers.join(",");
827
+      return complicationOthers.join(',')
820 828
     },
821 829
     modeName(mode_id) {
822 830
       if (mode_id in this.modeOptions) {
823
-        return this.modeOptions[mode_id].name;
831
+        return this.modeOptions[mode_id].name
824 832
       }
825
-      return "";
833
+      return ''
826 834
     },
827 835
     anticoagulantName: function(key) {
828
-      if (key == null || typeof key === "undefined") {
829
-        return "";
836
+      if (key == null || typeof key === 'undefined') {
837
+        return ''
830 838
       }
831
-      var id = key.anticoagulant;
839
+      var id = key.anticoagulant
832 840
       if (id in this.anticoagulantsConfit) {
833
-        return this.anticoagulantsConfit[id].name;
841
+        return this.anticoagulantsConfit[id].name
834 842
       }
835
-      return "";
843
+      return ''
836 844
     },
837 845
     bloodAccessParOperaName(id) {
838 846
       if (id in this.bloodAccessParOpera) {
839
-        return this.bloodAccessParOpera[id].name;
847
+        return this.bloodAccessParOpera[id].name
840 848
       }
841
-      return "";
849
+      return ''
842 850
     },
843 851
     isBbloodAccessParOperaCheck(key, value) {
844
-      if (key == null || typeof key === "undefined") {
845
-        return false;
852
+      if (key == null || typeof key === 'undefined') {
853
+        return false
846 854
       }
847
-      var id = key.blood_access_part_opera_id;
855
+      var id = key.blood_access_part_opera_id
848 856
       if (id in this.bloodAccessParOpera) {
849
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
857
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
850 858
       }
851
-      return false;
859
+      return false
852 860
     },
853 861
     isdialysateFormulatioCheck(key, value) {
854
-      if (key == null || typeof key === "undefined") {
855
-        return false;
862
+      if (key == null || typeof key === 'undefined') {
863
+        return false
856 864
       }
857
-      var id = key.dialysate_formulation;
865
+      var id = key.dialysate_formulation
858 866
       if (id in this.dialysateFormulationOptions) {
859
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
867
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
860 868
       }
861
-      return false;
869
+      return false
862 870
     },
863 871
     isValueIndexOfCheck: function(record, key, value) {
864 872
       if (record == null || record == undefined) {
865
-        return false;
873
+        return false
866 874
       } else {
867
-        return record[key].indexOf(value) > -1;
875
+        return record[key].indexOf(value) > -1
868 876
       }
869 877
     },
870 878
     setAdminUserES(key, id) {
871 879
       if (
872
-        typeof key === "undefined" ||
880
+        typeof key === 'undefined' ||
873 881
         key == null ||
874
-        typeof key[id] === "undefined"
882
+        typeof key[id] === 'undefined'
875 883
       ) {
876
-        return "";
884
+        return ''
877 885
       }
878 886
       if (key[id] == 0) {
879
-        return "";
887
+        return ''
880 888
       }
881 889
       if (key[id] in this.operatorMaps) {
882
-        return this.operatorMaps[key[id]].es_url;
890
+        return this.operatorMaps[key[id]].es_url
883 891
       } else {
884
-        return "";
892
+        return ''
885 893
       }
886 894
     },
887 895
     getFloat: function(x) {
888
-      if (x != ".") {
889
-        var f = Math.round(x * 100) / 100;
890
-        var s = f.toString();
891
-        var rs = s.indexOf(".");
896
+      if (x != '.') {
897
+        var f = Math.round(x * 100) / 100
898
+        var s = f.toString()
899
+        var rs = s.indexOf('.')
892 900
         if (rs <= 0) {
893
-          rs = s.length;
894
-          s += ".";
901
+          rs = s.length
902
+          s += '.'
895 903
         }
896 904
         while (s.length <= rs + 1) {
897
-          s += "0";
905
+          s += '0'
898 906
         }
899
-        return s;
907
+        return s
900 908
       } else {
901
-        return "0.0";
909
+        return '0.0'
902 910
       }
903 911
     },
904 912
     getAdminUser(key, id) {
905 913
       if (
906
-        typeof key === "undefined" ||
914
+        typeof key === 'undefined' ||
907 915
         key == null ||
908
-        typeof key[id] === "undefined"
916
+        typeof key[id] === 'undefined'
909 917
       ) {
910
-        return "";
918
+        return ''
911 919
       }
912 920
       if (key[id] === 0) {
913
-        return "";
921
+        return ''
914 922
       }
915 923
       if (key[id] === undefined) {
916
-        return "";
924
+        return ''
917 925
       }
918 926
       for (let i = 0; i < this.adminUser.length; i++) {
919 927
         if (this.adminUser[i].id === key[id]) {
920
-          return this.adminUser[i].name;
928
+          return this.adminUser[i].name
921 929
         }
922 930
       }
923 931
     },
@@ -925,47 +933,47 @@ export default {
925 933
     getName(id) {
926 934
       for (let i = 0; i < this.adminSign.length; i++) {
927 935
         if (this.adminSign[i].id === id) {
928
-          if (this.adminSign[i].url === "") {
929
-            this.showOne = true;
930
-            this.showTwo = false;
931
-            return this.adminSign[i].name;
936
+          if (this.adminSign[i].url === '') {
937
+            this.showOne = true
938
+            this.showTwo = false
939
+            return this.adminSign[i].name
932 940
           } else {
933
-            this.showOne = false;
934
-            this.showTwo = true;
935
-            return this.adminSign[i].url;
941
+            this.showOne = false
942
+            this.showTwo = true
943
+            return this.adminSign[i].url
936 944
           }
937 945
         }
938 946
       }
939 947
     },
940 948
     jsGetAge: function(agetime) {
941 949
       if (agetime === 0) {
942
-        return "";
950
+        return ''
943 951
       }
944
-      return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
952
+      return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
945 953
     },
946 954
     getTime(value, temp) {
947 955
       if (value != undefined) {
948
-        return uParseTime(value, temp);
956
+        return uParseTime(value, temp)
949 957
       }
950
-      return "";
958
+      return ''
951 959
     },
952 960
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
953 961
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
954 962
     isCheckBoxChecked: function(record, key, target_value) {
955 963
       if (record == null || record == undefined) {
956
-        return false;
964
+        return false
957 965
       } else {
958
-        return record[key] == target_value;
966
+        return record[key] == target_value
959 967
       }
960 968
     },
961 969
     getAge: function(val) {
962 970
       if (val.age == 0) {
963 971
         if (val.birthday == 0) {
964
-          return "";
972
+          return ''
965 973
         }
966
-        return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
974
+        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
967 975
       } else {
968
-        return val.age;
976
+        return val.age
969 977
       }
970 978
     },
971 979
     newAdviceGroupObject: function() {
@@ -975,7 +983,7 @@ export default {
975 983
           group_no: 0,
976 984
           advices: []
977 985
         }
978
-      );
986
+      )
979 987
     },
980 988
     // getNumber: function(record) {
981 989
     //   console.log(record);
@@ -985,26 +993,26 @@ export default {
985 993
         return (
986 994
           this.patientInfo.DialysisSchedule.device_zone.name +
987 995
           this.dialysisOrder.DeviceNumber.number
988
-        );
996
+        )
989 997
       } else {
990 998
         return (
991 999
           this.patientInfo.DialysisSchedule.device_zone.name +
992 1000
           this.patientInfo.DialysisSchedule.device_number.number
993
-        );
1001
+        )
994 1002
       }
995 1003
     },
996 1004
     getLastAfterWeight(id, assessmentDate) {
997 1005
       getLastAfterWeight(id, assessmentDate).then(response => {
998 1006
         if (response.data.state === 1) {
999
-          var weight = response.data.data.weight;
1007
+          var weight = response.data.data.weight
1000 1008
 
1001
-          this.lastAfterWeight = weight.weight_after.toFixed(1);
1002
-          console.log("weight", weight);
1009
+          this.lastAfterWeight = weight.weight_after.toFixed(1)
1010
+          console.log('weight', weight)
1003 1011
         }
1004
-      });
1012
+      })
1005 1013
     }
1006 1014
   }
1007
-};
1015
+}
1008 1016
 </script>
1009 1017
 
1010 1018
 <style scoped>

+ 1 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue Dosyayı Görüntüle

@@ -665,7 +665,7 @@ export default {
665 665
         this.$router.push({ path: "/dialysis/print/batch/twelve" });
666 666
       } else if (this.template_id == 13) {
667 667
         this.$router.push({ path: "/dialysis/print/batch/thirteen" });
668
-      }else if (this.template_id == 15) {
668
+      } else if (this.template_id == 15) {
669 669
         this.$router.push({ path: "/dialysis/print/batch/fifteen" });
670 670
       }
671 671
     },

+ 32 - 29
src/xt_pages/dialysis/details/BasicInfor.vue Dosyayı Görüntüle

@@ -57,15 +57,15 @@
57 57
 </template>
58 58
 
59 59
 <script>
60
-const moment = require("moment");
61
-import { parseTime } from "@/utils";
62
-import { jsGetAge, uParseTime } from "@/utils/tools";
60
+const moment = require('moment')
61
+import { parseTime } from '@/utils'
62
+import { jsGetAge, uParseTime } from '@/utils/tools'
63 63
 
64 64
 export default {
65
-  name: "BasicInfor",
65
+  name: 'BasicInfor',
66 66
   data() {
67 67
     return {
68
-      title: "基本信息",
68
+      title: '基本信息',
69 69
       dialysis_time: 0
70 70
       // steps: [
71 71
       //   { title: "透析处方" },
@@ -79,13 +79,13 @@ export default {
79 79
       //   { title: "透后评估" },
80 80
       //   { title: "治疗小结" }
81 81
       // ]
82
-    };
82
+    }
83 83
   },
84 84
   props: {
85 85
     patient: {
86 86
       type: Object,
87 87
       default: function() {
88
-        return { id: 0 };
88
+        return { id: 0 }
89 89
       }
90 90
     },
91 91
     device_number: {
@@ -94,50 +94,53 @@ export default {
94 94
     steps: {
95 95
       type: Array,
96 96
       default: function() {
97
-        return [];
97
+        return []
98 98
       }
99 99
     }
100 100
   },
101 101
   computed: {
102 102
     created_time: function() {
103 103
       if (this.patient.id == 0) {
104
-        return "";
104
+        return ''
105 105
       } else {
106
-        return parseTime(this.patient.created_time, "{y}-{m}-{d}");
106
+        return parseTime(this.patient.created_time, '{y}-{m}-{d}')
107 107
       }
108 108
     },
109 109
     source: function() {
110
-      return this.patient.source == 1 ? "门诊" : "住院";
110
+      return this.patient.source == 1 ? '门诊' : '住院'
111 111
     }
112 112
   },
113 113
   methods: {
114 114
     getAge: function(val) {
115
-      var thisLen = val.id_card_no.length;
116
-      var birth = "";
117
-      if (thisLen == 15) {
118
-        birth = "19" + val.id_card_no.substr(6, 6);
119
-      } else {
120
-        birth = val.id_card_no.substr(6, 8);
121
-      }
122
-      var birthtwo =
123
-        birth.substr(0, 4) +
124
-        "-" +
125
-        birth.substr(4, 2) +
126
-        "-" +
127
-        birth.substr(6, 2);
115
+      if (val.id_card_no) {
116
+        var thisLen = val.id_card_no.length
128 117
 
129
-      var age = jsGetAge(birthtwo, "-");
130
-      return age;
118
+        var birth = ''
119
+        if (thisLen == 15) {
120
+          birth = '19' + val.id_card_no.substr(6, 6)
121
+        } else {
122
+          birth = val.id_card_no.substr(6, 8)
123
+        }
124
+        var birthtwo =
125
+          birth.substr(0, 4) +
126
+          '-' +
127
+          birth.substr(4, 2) +
128
+          '-' +
129
+          birth.substr(6, 2)
130
+
131
+        var age = jsGetAge(birthtwo, '-')
132
+        return age
133
+      }
131 134
     },
132 135
 
133 136
     stepState: function() {
134
-      return parseInt(Math.random() * 1000 + "") % 2 == 1;
137
+      return parseInt(Math.random() * 1000 + '') % 2 == 1
135 138
     }
136 139
   },
137 140
   created() {
138
-    this.dialysis_time = parseTime(this.$route.query.date, "{y}-{m}-{d}");
141
+    this.dialysis_time = parseTime(this.$route.query.date, '{y}-{m}-{d}')
139 142
   }
140
-};
143
+}
141 144
 </script>
142 145
 
143 146
 <style style="stylesheet/scss" lang="scss" scoped>

+ 163 - 250
src/xt_pages/dialysis/details/DialysisPrescription.vue Dosyayı Görüntüle

@@ -38,48 +38,18 @@
38 38
           <span class="content">{{ anticoagulant }}</span>
39 39
         </li>
40 40
 
41
-        <li
42
-          v-if="
43
-            isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5
44
-          "
45
-        >
41
+        <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
46 42
           <label>总量: </label>
47
-          <span
48
-            class="content"
49
-            v-if="getValueStr('anticoagulant', 'anticoagulant') != 1"
50
-            >{{
51
-              anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""
52
-            }}</span
53
-          >
54
-          <span
55
-            class="content"
56
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
57
-          ></span>
58
-          <span
59
-            class="unit"
60
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 2"
61
-            >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span
62
-          >
63
-          <span
64
-            class="unit"
65
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 3"
66
-            >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span
67
-          >
68
-          <span
69
-            class="unit"
70
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
71
-            >{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span
72
-          >
73
-          <span
74
-            class="unit"
75
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 4"
76
-            >{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span
77
-          >
78
-          <span
79
-            class="unit"
80
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
81
-            >{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span
82
-          >
43
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
44
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
45
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
46
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id == 13">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
47
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
48
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
49
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
50
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span>
51
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
52
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
83 53
         </li>
84 54
 
85 55
         <li v-if="isShow('透析器/灌流器')">
@@ -107,9 +77,8 @@
107 77
           <span class="content">{{
108 78
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
109 79
           }}</span>
110
-          <span class="unit">{{
111
-            target_ultrafiltration != "0" ? "L" : ""
112
-          }}</span>
80
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
81
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
113 82
         </li>
114 83
         <li v-if="isShow('葡萄糖')">
115 84
           <label>葡萄糖 : </label>
@@ -133,46 +102,18 @@
133 102
           }}</span>
134 103
         </li>
135 104
 
136
-        <li
137
-          v-if="
138
-            isShow('首剂') && getValueStr('anticoagulant', 'anticoagulant') != 5
139
-          "
140
-        >
105
+        <li v-if=" isShow('首剂') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
141 106
           <label>首剂 : </label>
142
-          <span
143
-            class="content"
144
-            v-if="getValueStr('anticoagulant', 'anticoagulant') != 1"
145
-            >{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span
146
-          >
147
-          <span
148
-            class="content"
149
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
150
-          ></span>
151
-          <span
152
-            class="unit"
153
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 2"
154
-            >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span
155
-          >
156
-          <span
157
-            class="unit"
158
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 3"
159
-            >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span
160
-          >
161
-          <span
162
-            class="unit"
163
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
164
-            >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span
165
-          >
166
-          <span
167
-            class="unit"
168
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 4"
169
-            >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span
170
-          >
171
-          <span
172
-            class="unit"
173
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
174
-            >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span
175
-          >
107
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
108
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
109
+          <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
110
+          <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id == 13" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
111
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
112
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
113
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
114
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
115
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span >
116
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
176 117
         </li>
177 118
 
178 119
         <li v-if="isShow('钙')">
@@ -249,46 +190,18 @@
249 190
           <span class="unit">{{ dialysate_flow != "0" ? "ml/min" : "" }}</span>
250 191
         </li>
251 192
 
252
-        <li
253
-          v-if="
254
-            isShow('维持') && getValueStr('anticoagulant', 'anticoagulant') != 5
255
-          "
256
-        >
193
+        <li v-if="isShow('维持') && getValueStr('anticoagulant', 'anticoagulant') != 5">
257 194
           <label>维持 : </label>
258
-          <span
259
-            class="content"
260
-            v-if="getValueStr('anticoagulant', 'anticoagulant') != 1"
261
-            >{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span
262
-          >
263
-          <span
264
-            class="content"
265
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
266
-          ></span>
267
-          <span
268
-            class="unit"
269
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 2"
270
-            >{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span
271
-          >
272
-          <span
273
-            class="unit"
274
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 3"
275
-            >{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span
276
-          >
277
-          <span
278
-            class="unit"
279
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"
280
-            >{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span
281
-          >
282
-          <span
283
-            class="unit"
284
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 4"
285
-            >{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span
286
-          >
287
-          <span
288
-            class="unit"
289
-            v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
290
-            >{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span
291
-          >
195
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
196
+          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
197
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
198
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id == 13">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
199
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
200
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
201
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
202
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span>
203
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
204
+          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
292 205
         </li>
293 206
 
294 207
         <li
@@ -356,19 +269,19 @@
356 269
 </template>
357 270
 
358 271
 <script>
359
-import { getDataConfig } from "@/utils/data";
360
-import store from "@/store";
272
+import { getDataConfig } from '@/utils/data'
273
+import store from '@/store'
361 274
 
362 275
 export default {
363
-  name: "DialysisPrescription",
276
+  name: 'DialysisPrescription',
364 277
   data() {
365 278
     return {
366
-      title: "透析处方",
279
+      title: '透析处方',
367 280
       perfusion_apparatus_map: {},
368 281
       dialysateFormulationMap: {},
369 282
       blood_access_part: [],
370 283
       blood_access_part_opera: []
371
-    };
284
+    }
372 285
   },
373 286
   props: {
374 287
     prescription: {
@@ -384,288 +297,288 @@ export default {
384 297
   computed: {
385 298
     target_ultrafiltration: function() {
386 299
       var v = this.getValueStr(
387
-        "target_ultrafiltration",
388
-        "target_ultrafiltration"
389
-      );
390
-      return v.length == 0 ? "0" : v;
300
+        'target_ultrafiltration',
301
+        'target_ultrafiltration'
302
+      )
303
+      return v.length == 0 ? '0' : v
391 304
     },
392 305
     dialysis_mode: function() {
393
-      var mode = this.getValueStr("mode_id", "mode_id");
306
+      var mode = this.getValueStr('mode_id', 'mode_id')
394 307
       if (mode.length == 0) {
395
-        return "";
308
+        return ''
396 309
       }
397 310
       if (this.$store.getters.treatment_mode[mode] != undefined) {
398
-        return this.$store.getters.treatment_mode[mode].name;
311
+        return this.$store.getters.treatment_mode[mode].name
399 312
       }
400
-      return "";
313
+      return ''
401 314
     },
402 315
     perfusion_apparatus: function() {
403
-      var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
316
+      var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
404 317
       if (v.length == 0) {
405
-        return "";
318
+        return ''
406 319
       }
407 320
       if (this.perfusion_apparatus_map[v] != undefined) {
408
-        return this.perfusion_apparatus_map[v].name;
321
+        return this.perfusion_apparatus_map[v].name
409 322
       }
410
-      return "";
323
+      return ''
411 324
     },
412 325
     displace_liqui: function() {
413
-      var v = this.getValueStr("displace_liqui", "displace_liqui");
414
-      return v.length == 0 ? "0" : v;
326
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
327
+      return v.length == 0 ? '0' : v
415 328
     },
416 329
     anticoagulant_shouji: function() {
417
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
418
-      return v.length == 0 ? "0" : v;
330
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
331
+      return v.length == 0 ? '0' : v
419 332
     },
420 333
     kalium: function() {
421
-      var v = this.getValueStr("kalium", "kalium");
422
-      return v.length == 0 ? "0" : v;
334
+      var v = this.getValueStr('kalium', 'kalium')
335
+      return v.length == 0 ? '0' : v
423 336
     },
424 337
     replacement_total: function() {
425
-      var v = this.getValueStr("replacement_total", "replacement_total");
426
-      return v.length == 0 ? "0" : v;
338
+      var v = this.getValueStr('replacement_total', 'replacement_total')
339
+      return v.length == 0 ? '0' : v
427 340
     },
428 341
     bicarbonate: function() {
429
-      var v = this.getValueStr("bicarbonate", "bicarbonate");
430
-      return v.length == 0 ? "0" : v;
342
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
343
+      return v.length == 0 ? '0' : v
431 344
     },
432 345
     dialysate_flow: function() {
433
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
434
-      return v.length == 0 ? "0" : v;
346
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
347
+      return v.length == 0 ? '0' : v
435 348
     },
436 349
     dialysis_duration: function() {
437 350
       var dialysis_duration_hour = this.getValueStr(
438
-        "dialysis_duration_hour",
439
-        "dialysis_duration_hour"
440
-      );
351
+        'dialysis_duration_hour',
352
+        'dialysis_duration_hour'
353
+      )
441 354
       var dialysis_duration_minute = this.getValueStr(
442
-        "dialysis_duration_minute",
443
-        "dialysis_duration_minute"
444
-      );
355
+        'dialysis_duration_minute',
356
+        'dialysis_duration_minute'
357
+      )
445 358
       if (
446 359
         dialysis_duration_hour.length == 0 &&
447 360
         dialysis_duration_minute.length == 0
448 361
       ) {
449
-        return "0";
362
+        return '0'
450 363
       } else {
451 364
         var time =
452
-          dialysis_duration_hour + "h" + dialysis_duration_minute + "min";
453
-        return time.length == 0 ? "0" : time;
365
+          dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
366
+        return time.length == 0 ? '0' : time
454 367
       }
455 368
     },
456 369
     blood_flow_volume: function() {
457
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
458
-      return v.length == 0 ? "0" : v;
370
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
371
+      return v.length == 0 ? '0' : v
459 372
     },
460 373
     replacement_way: function() {
461
-      return this.getValueStr("replacement_way", "replacement_way");
374
+      return this.getValueStr('replacement_way', 'replacement_way')
462 375
     },
463 376
     anticoagulant_weichi: function() {
464
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
465
-      return v.length == 0 ? "0" : v;
377
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
378
+      return v.length == 0 ? '0' : v
466 379
     },
467 380
     sodium: function() {
468
-      var v = this.getValueStr("sodium", "sodium");
469
-      return v.length == 0 ? "0" : v;
381
+      var v = this.getValueStr('sodium', 'sodium')
382
+      return v.length == 0 ? '0' : v
470 383
     },
471 384
     glucose: function() {
472
-      var v = this.getValueStr("glucose", "glucose");
473
-      return v.length == 0 ? "0" : v;
385
+      var v = this.getValueStr('glucose', 'glucose')
386
+      return v.length == 0 ? '0' : v
474 387
     },
475 388
     dialysate_temperature: function() {
476 389
       var v = this.getValueStr(
477
-        "dialysate_temperature",
478
-        "dialysate_temperature"
479
-      );
480
-      return v.length == 0 ? "0" : v;
390
+        'dialysate_temperature',
391
+        'dialysate_temperature'
392
+      )
393
+      return v.length == 0 ? '0' : v
481 394
     },
482 395
     dialyzer: function() {
483
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
396
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
484 397
       if (v.length == 0) {
485
-        return "";
398
+        return ''
486 399
       }
487 400
       if (this.device_number_map[v] != undefined) {
488
-        return this.device_number_map[v].name;
401
+        return this.device_number_map[v].name
489 402
       }
490
-      return "";
403
+      return ''
491 404
     },
492 405
     dialysate_formulation: function() {
493 406
       var v = this.getValueStr(
494
-        "dialysate_formulation",
495
-        "dialysate_formulation"
496
-      );
407
+        'dialysate_formulation',
408
+        'dialysate_formulation'
409
+      )
497 410
       if (v.length == 0) {
498
-        return "";
411
+        return ''
499 412
       }
500 413
       if (v in this.dialysateFormulationMap) {
501
-        return this.dialysateFormulationMap[v].name;
414
+        return this.dialysateFormulationMap[v].name
502 415
       }
503
-      return "";
416
+      return ''
504 417
     },
505 418
     prescription_dewatering: function() {
506
-      var v = this.getValueStr("prescription_dewatering", "dewater");
507
-      return v.length == 0 ? "0" : v;
419
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
420
+      return v.length == 0 ? '0' : v
508 421
     },
509 422
     anticoagulant: function() {
510
-      var v = this.getValueStr("anticoagulant", "anticoagulant");
423
+      var v = this.getValueStr('anticoagulant', 'anticoagulant')
511 424
       if (v.length == 0) {
512
-        return "";
425
+        return ''
513 426
       }
514 427
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
515
-        return this.$store.getters.anticoagulants_confit[v].name;
428
+        return this.$store.getters.anticoagulants_confit[v].name
516 429
       }
517
-      return "";
430
+      return ''
518 431
     },
519 432
     anticoagulant_zongliang: function() {
520 433
       var v = this.getValueStr(
521
-        "anticoagulant_zongliang",
522
-        "anticoagulant_zongliang"
523
-      );
524
-      return v.length == 0 ? "0" : v;
434
+        'anticoagulant_zongliang',
435
+        'anticoagulant_zongliang'
436
+      )
437
+      return v.length == 0 ? '0' : v
525 438
     },
526 439
     calcium: function() {
527
-      var v = this.getValueStr("calcium", "calcium");
528
-      return v.length == 0 ? "0" : v;
440
+      var v = this.getValueStr('calcium', 'calcium')
441
+      return v.length == 0 ? '0' : v
529 442
     },
530 443
 
531 444
     conductivity: function() {
532
-      var v = this.getValueStr("conductivity", "conductivity");
533
-      return v.length == 0 ? "0" : v;
445
+      var v = this.getValueStr('conductivity', 'conductivity')
446
+      return v.length == 0 ? '0' : v
534 447
     },
535 448
     dialyzer_perfusion_apparatus: function() {
536 449
       return this.getValueStr(
537
-        "dialyzer_perfusion_apparatus",
538
-        "dialyzer_perfusion_apparatus"
539
-      );
450
+        'dialyzer_perfusion_apparatus',
451
+        'dialyzer_perfusion_apparatus'
452
+      )
540 453
     },
541 454
     body_fluid: function() {
542
-      var id = this.getValueStr("body_fluid", "body_fluid");
455
+      var id = this.getValueStr('body_fluid', 'body_fluid')
543 456
       if (id == 0) {
544
-        return "";
457
+        return ''
545 458
       }
546
-      var bodyFluidOptions = this.$store.getters.body_fluid;
459
+      var bodyFluidOptions = this.$store.getters.body_fluid
547 460
       for (let i = 0; i < bodyFluidOptions.length; i++) {
548 461
         if (bodyFluidOptions[i].id == id) {
549
-          return bodyFluidOptions[i].name;
462
+          return bodyFluidOptions[i].name
550 463
         }
551 464
       }
552 465
     },
553 466
     special_medicine: function() {
554
-      var id = this.getValueStr("special_medicine", "special_medicine");
467
+      var id = this.getValueStr('special_medicine', 'special_medicine')
555 468
       if (id == 0) {
556
-        return "";
469
+        return ''
557 470
       }
558
-      var special_medicine = this.$store.getters.special_medicine;
471
+      var special_medicine = this.$store.getters.special_medicine
559 472
       for (let i = 0; i < special_medicine.length; i++) {
560 473
         if (special_medicine[i].id == id) {
561
-          return special_medicine[i].name;
474
+          return special_medicine[i].name
562 475
         }
563 476
       }
564 477
     },
565 478
     special_medicine_other: function() {
566 479
       return this.getValueStr(
567
-        "special_medicine_other",
568
-        "special_medicine_other"
569
-      );
480
+        'special_medicine_other',
481
+        'special_medicine_other'
482
+      )
570 483
     },
571 484
     blood_access: function() {
572
-      var id = this.getValueStr("blood_access", "blood_access");
573
-      console.log("id", id);
485
+      var id = this.getValueStr('blood_access', 'blood_access')
486
+      console.log('id', id)
574 487
       if (id == 0) {
575
-        return "";
488
+        return ''
576 489
       }
577 490
       // var blood_access = this.$store.getters.blood_access_internal_fistula;
578
-      var blood_access = getDataConfig("hemodialysis", "vascular_access_desc");
491
+      var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
579 492
       for (let i = 0; i < blood_access.length; i++) {
580 493
         if (blood_access[i].id == id) {
581
-          return blood_access[i].name;
494
+          return blood_access[i].name
582 495
         }
583 496
       }
584 497
     },
585 498
     displace_liqui: function() {
586
-      var id = this.getValueStr("displace_liqui_part", "displace_liqui_part");
499
+      var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
587 500
       var displace_liqui_value = this.getValueStr(
588
-        "displace_liqui_value",
589
-        "displace_liqui_value"
590
-      );
591
-      var displace_liqui_part = "";
592
-      var displace_liqui = this.$store.getters.displace_liqui;
501
+        'displace_liqui_value',
502
+        'displace_liqui_value'
503
+      )
504
+      var displace_liqui_part = ''
505
+      var displace_liqui = this.$store.getters.displace_liqui
593 506
       for (let i = 0; i < displace_liqui.length; i++) {
594 507
         if (displace_liqui[i].id == id) {
595
-          displace_liqui_part = displace_liqui[i].name;
508
+          displace_liqui_part = displace_liqui[i].name
596 509
         }
597 510
       }
598
-      return displace_liqui_part + displace_liqui_value;
511
+      return displace_liqui_part + displace_liqui_value
599 512
     },
600 513
     ultrafiltration: function() {
601
-      var v = this.getValueStr("ultrafiltration", "ultrafiltration");
602
-      return v.length == 0 ? "0" : v;
514
+      var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
515
+      return v.length == 0 ? '0' : v
603 516
     },
604 517
     body_fluid_other: function() {
605
-      return this.getValueStr("body_fluid_other", "body_fluid_others");
518
+      return this.getValueStr('body_fluid_other', 'body_fluid_others')
606 519
     },
607 520
     target_ktv: function() {
608
-      var v = this.getValueStr("target_ktv", "target_ktv");
609
-      return v.length == 0 ? "0" : v;
521
+      var v = this.getValueStr('target_ktv', 'target_ktv')
522
+      return v.length == 0 ? '0' : v
610 523
     }
611 524
   },
612 525
   created() {
613
-    var perfusion_apparatus = this.$store.getters.perfusion_apparatus;
614
-    var map = {};
526
+    var perfusion_apparatus = this.$store.getters.perfusion_apparatus
527
+    var map = {}
615 528
     for (let index = 0; index < perfusion_apparatus.length; index++) {
616
-      const p = perfusion_apparatus[index];
617
-      map[p.id] = p;
529
+      const p = perfusion_apparatus[index]
530
+      map[p.id] = p
618 531
     }
619
-    this.perfusion_apparatus_map = map;
532
+    this.perfusion_apparatus_map = map
620 533
 
621 534
     var dialysateFormulationOptions = getDataConfig(
622
-      "hemodialysis",
623
-      "dialysate_formulation"
624
-    );
535
+      'hemodialysis',
536
+      'dialysate_formulation'
537
+    )
625 538
 
626 539
     for (var index in dialysateFormulationOptions) {
627 540
       this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
628
-        dialysateFormulationOptions[index];
541
+        dialysateFormulationOptions[index]
629 542
     }
630 543
   },
631 544
   methods: {
632 545
     getValueStr(pkey, skey) {
633 546
       if (
634
-        (this.prescription == null || this.prescription.id == "") &&
635
-        (this.solution == null || this.solution.id == "")
547
+        (this.prescription == null || this.prescription.id == '') &&
548
+        (this.solution == null || this.solution.id == '')
636 549
       ) {
637
-        return "";
638
-      } else if (this.prescription != null && this.prescription.id != "") {
550
+        return ''
551
+      } else if (this.prescription != null && this.prescription.id != '') {
639 552
         if (
640 553
           this.prescription[pkey] == null ||
641 554
           this.prescription[pkey] == undefined
642 555
         ) {
643
-          return "";
556
+          return ''
644 557
         }
645
-        return this.prescription[pkey] + "";
558
+        return this.prescription[pkey] + ''
646 559
       } else {
647 560
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
648
-          return "";
561
+          return ''
649 562
         }
650 563
 
651
-        return this.solution[skey] + "";
564
+        return this.solution[skey] + ''
652 565
       }
653 566
     },
654 567
     isShow(name) {
655
-      var filedList = store.getters.xt_user.fileds;
568
+      var filedList = store.getters.xt_user.fileds
656 569
       for (let i = 0; i < filedList.length; i++) {
657 570
         if (
658 571
           filedList[i].module == 1 &&
659 572
           filedList[i].filed_name_cn == name &&
660 573
           filedList[i].is_show == 1
661 574
         ) {
662
-          return true;
575
+          return true
663 576
         }
664 577
       }
665
-      return false;
578
+      return false
666 579
     }
667 580
   }
668
-};
581
+}
669 582
 </script>
670 583
 
671 584
 <style rel="stylesheet/scss" lang="scss" scoped></style>

+ 318 - 276
src/xt_pages/dialysis/details/assessmentAfter.vue Dosyayı Görüntüle

@@ -17,22 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span
21
-            class="unit"
22
-            v-if="
23
-              actual_ultrafiltration != '0' &&
24
-                this.$store.getters.xt_user.template_info.template_id == 6
25
-            "
26
-            >ml</span
27
-          >
28
-          <span
29
-            class="unit"
30
-            v-if="
31
-              actual_ultrafiltration != '0' &&
32
-                this.$store.getters.xt_user.template_info.template_id != 6
33
-            "
34
-            >L</span
35
-          >
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 17) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 " >L</span>
36 22
         </li>
37 23
         <li v-if="isShow('导管')">
38 24
           <label>导管 : </label>
@@ -95,9 +81,7 @@
95 81
 
96 82
         <li v-if="isShow('动脉管道')">
97 83
           <label for="xgtlcz">动脉管道: </label>
98
-          <span id="xgtlcz" class="content">{{
99
-            getArterialTubeName(this.record.arterial_tube)
100
-          }}</span>
84
+          <span id="xgtlcz" class="content">{{ getArterialTubeName(this.record.arterial_tube) }}</span>
101 85
         </li>
102 86
 
103 87
         <li v-if="isShow('透析期间进食')">
@@ -105,6 +89,33 @@
105 89
           <span id="bzh" class="content">{{ eat_name }}</span>
106 90
         </li>
107 91
 
92
+        <li v-if="isShow('回血')">
93
+          <label>回血: </label>
94
+          <span class="content" >{{ this.record.return_blood ? this.record.return_blood : ""  }}</span>
95
+          <span class="unit">{{ this.record.return_blood ? "ml" : "" }}</span>
96
+        </li>
97
+
98
+        <li v-if="isShow('补液量')">
99
+          <label>补液量: </label>
100
+          <span class="content" >{{ this.record.rehydration_volume ? this.record.rehydration_volume : ""  }}</span>
101
+          <span class="unit">{{ this.record.rehydration_volume ? "ml" : "" }}</span>
102
+        </li>
103
+
104
+        <li v-if="isShow('血流量')">
105
+          <label>血流量: </label>
106
+          <span id="xgtlcz" class="content">{{ getBloodFlowName(this.record.blood_flow) }}</span>
107
+        </li>
108
+
109
+        <li v-if="isShow('封管液配置')">
110
+          <label>封管液配置: </label>
111
+          <span class="content">{{ getSealingFluidDisposeName(this.record.sealing_fluid_dispose) }}</span>
112
+        </li>
113
+
114
+        <li v-if="isShow('封管液特殊') && getSealingFluidDisposeName(this.record.sealing_fluid_dispose) == '特殊'">
115
+          <label>封管液配置(特殊): </label>
116
+          <span class="content">{{ sealing_fluid_special }}</span>
117
+        </li>
118
+
108 119
         <!-- <li style="height: 0.6rem;">
109 120
           <label></label>
110 121
       </li> -->
@@ -156,9 +167,7 @@
156 167
 
157 168
         <li v-if="isShow('内瘘管拔针后压迫止血时间')">
158 169
           <label for="ml">内瘘管拔针后压迫止血时间 : </label>
159
-          <span id="ml" class="content" v-if="this.record.hemostasis_minute"
160
-            >{{ this.record.hemostasis_minute }}min</span
161
-          >
170
+          <span id="ml" class="content" v-if="this.record.hemostasis_minute">{{ this.record.hemostasis_minute }}min</span>
162 171
           <span id="ml" class="content" v-else>-min</span>
163 172
         </li>
164 173
 
@@ -175,13 +184,17 @@
175 184
             getIntravenousTubeName(this.record.intravenous_tube)
176 185
           }}</span>
177 186
         </li>
187
+
188
+        <li v-if="isShow('透析中进食')">
189
+          <label>透析中进食: </label>
190
+          <span class="content" >{{ this.record.dialysis_during ? this.record.dialysis_during : ""  }}</span>
191
+          <span class="unit">{{ this.record.dialysis_during ? "ml" : "" }}</span>
192
+        </li>
178 193
       </ul>
179 194
       <ul>
180 195
         <li v-if="isShow('透后称重')">
181 196
           <label>透后称重 : </label>
182
-          <span class="content" v-if="weight_after != '0'">{{
183
-            weight_after
184
-          }}</span>
197
+          <span class="content" v-if="weight_after != '0'">{{ weight_after }}</span>
185 198
           <span class="unit" v-if="weight_after != '0'">kg</span>
186 199
         </li>
187 200
         <li v-if="isShow('内瘘')">
@@ -273,11 +286,14 @@
273 286
         </li>
274 287
         <li v-if="isShow('中心静脉封管(肝素-V端)')">
275 288
           <label for="bzh">中心静脉封管(肝素-V端): </label>
276
-          <span class="content" id="tzjs">{{
277
-            this.record.cvc_v ? this.record.cvc_v : ""
278
-          }}</span>
289
+          <span class="content" id="tzjs">{{ this.record.cvc_v ? this.record.cvc_v : "" }}</span>
279 290
           <span class="unit">{{ this.record.cvc_v ? "ml" : "" }}</span>
280 291
         </li>
292
+        <li v-if="isShow('出量')">
293
+          <label>出量: </label>
294
+          <span class="content" >{{ this.record.stroke_volume ? this.record.stroke_volume : ""  }}</span>
295
+          <span class="unit">{{ this.record.stroke_volume ? "ml" : "" }}</span>
296
+        </li>
281 297
       </ul>
282 298
     </div>
283 299
     <div class="note">
@@ -288,14 +304,15 @@
288 304
 </template>
289 305
 
290 306
 <script>
291
-import store from "@/store";
307
+import store from '@/store'
308
+import { getDataConfig } from '@/utils/data'
292 309
 
293 310
 export default {
294
-  name: "DialysisPrescription",
311
+  name: 'DialysisPrescription',
295 312
   data() {
296 313
     return {
297
-      title: "透后评估 "
298
-    };
314
+      title: '透后评估 '
315
+    }
299 316
   },
300 317
   props: {
301 318
     record: {
@@ -305,431 +322,456 @@ export default {
305 322
   computed: {
306 323
     weight_after: function() {
307 324
       if (this.record.id == 0) {
308
-        return "-";
325
+        return '-'
309 326
       }
310
-      return this.record.weight_after;
327
+      return this.record.weight_after
311 328
     },
312 329
     systolic_blood_pressure: function() {
313 330
       if (this.record.id == 0) {
314
-        return "-";
331
+        return '-'
315 332
       }
316
-      return this.record.systolic_blood_pressure;
333
+      return this.record.systolic_blood_pressure
317 334
     },
318 335
     actual_ultrafiltration: function() {
319 336
       if (this.record.id == 0) {
320
-        return "-";
337
+        return '-'
321 338
       }
322
-      return this.record.actual_ultrafiltration;
339
+      return this.record.actual_ultrafiltration
323 340
     },
324 341
     cruor: function() {
325 342
       if (this.record.id == 0) {
326
-        return "-";
343
+        return '-'
327 344
       }
328
-      return this.record.cruor;
345
+      return this.record.cruor
329 346
     },
330 347
     internal_fistula: function() {
331
-      if (this.record == null || this.record.id == "") {
332
-        return "-";
348
+      if (this.record == null || this.record.id == '') {
349
+        return '-'
333 350
       }
334
-      return this.record.internal_fistula;
351
+      return this.record.internal_fistula
335 352
     },
336 353
     weight_loss: function() {
337 354
       if (this.record.id == 0) {
338
-        return "-";
355
+        return '-'
339 356
       }
340
-      return this.record.weight_loss;
357
+      return this.record.weight_loss
341 358
     },
342 359
     inpatient_department: function() {
343 360
       if (this.record.id == 0) {
344
-        return "-";
361
+        return '-'
345 362
       }
346
-      return this.record.inpatient_department;
363
+      return this.record.inpatient_department
347 364
     },
348 365
     patient_gose: function() {
349 366
       if (this.record.id == 0) {
350
-        return 0;
367
+        return 0
351 368
       }
352
-      return this.record.patient_gose;
369
+      return this.record.patient_gose
353 370
     },
354 371
     diastolic_blood_pressure: function() {
355 372
       if (this.record.id == 0) {
356
-        return "-";
373
+        return '-'
357 374
       }
358
-      return this.record.diastolic_blood_pressure;
375
+      return this.record.diastolic_blood_pressure
359 376
     },
360 377
     actual_displacement: function() {
361 378
       if (this.record.id == 0) {
362
-        return "-";
379
+        return '-'
363 380
       }
364
-      return this.record.actual_displacement;
381
+      return this.record.actual_displacement
365 382
     },
366 383
     symptom_after_dialysis: function() {
367 384
       if (this.record.id == 0) {
368
-        return "-";
385
+        return '-'
369 386
       }
370
-      return this.record.symptom_after_dialysis;
387
+      return this.record.symptom_after_dialysis
371 388
     },
372 389
     blood_access_part: function() {
373 390
       if (this.record.id == 0) {
374
-        return "-";
391
+        return '-'
375 392
       }
376
-      const vascular_access = this.$store.getters.vascular_access;
377
-      const valen = vascular_access.length;
378
-      let name = "-";
393
+      const vascular_access = this.$store.getters.vascular_access
394
+      const valen = vascular_access.length
395
+      let name = '-'
379 396
 
380 397
       for (var index in vascular_access) {
381 398
         if (vascular_access[index].id == this.record.blood_access_part_id) {
382
-          name = vascular_access[index].name;
383
-          break;
399
+          name = vascular_access[index].name
400
+          break
384 401
         }
385 402
       }
386
-      return name;
403
+      return name
387 404
     },
388 405
     puncture_point_oozing_blood_name: function() {
389 406
       if (this.record.id == 0) {
390
-        return "-";
407
+        return '-'
391 408
       }
392 409
       switch (this.record.puncture_point_oozing_blood) {
393 410
         case 1:
394
-          return "有";
395
-          break;
411
+          return '有'
412
+          break
396 413
         case 2:
397
-          return "无";
398
-          break;
414
+          return '无'
415
+          break
399 416
 
400 417
         default:
401
-          return "-";
402
-          break;
418
+          return '-'
419
+          break
403 420
       }
404 421
     },
405 422
     eat_name: function() {
406
-      if (this.record == null || this.record.id == "") {
407
-        return "-";
423
+      if (this.record == null || this.record.id == '') {
424
+        return '-'
408 425
       }
409 426
       switch (this.record.is_eat) {
410 427
         case 1:
411
-          return "有";
412
-          break;
428
+          return '有'
429
+          break
413 430
         case 2:
414
-          return "无";
415
-          break;
431
+          return '无'
432
+          break
416 433
 
417 434
         default:
418
-          return "-";
419
-          break;
435
+          return '-'
436
+          break
420 437
       }
421 438
     },
422 439
     patient_gose_name: function() {
423 440
       if (this.record.id == 0) {
424
-        return "-";
441
+        return '-'
425 442
       }
426 443
       switch (this.record.patient_gose) {
427 444
         case 1:
428
-          return "离院";
429
-          break;
445
+          return '离院'
446
+          break
430 447
         case 2:
431
-          return "留观";
432
-          break;
448
+          return '留观'
449
+          break
433 450
         case 3:
434
-          return "住院";
435
-          break;
451
+          return '住院'
452
+          break
436 453
         case 4:
437
-          return "门诊";
438
-          break;
439
-
454
+          return '门诊'
455
+          break
440 456
         default:
441
-          return "-";
442
-          break;
457
+          return '-'
458
+          break
443 459
       }
444 460
     },
445 461
     blood_access_opera: function() {
446 462
       if (this.record.id == 0) {
447
-        return "-";
463
+        return '-'
448 464
       }
449
-      const vascular_access = this.$store.getters.vascular_access_desc;
465
+      const vascular_access = this.$store.getters.vascular_access_desc
450 466
       // console.log(vascular_access);
451
-      let name = "-";
467
+      let name = '-'
452 468
       for (var index in vascular_access) {
453 469
         if (
454 470
           vascular_access[index].id == this.record.blood_access_part_opera_id
455 471
         ) {
456
-          name = vascular_access[index].name;
457
-          break;
472
+          name = vascular_access[index].name
473
+          break
458 474
         }
459 475
       }
460
-      return name;
476
+      return name
461 477
     },
462 478
     catheter: function() {
463 479
       if (this.record.id == 0) {
464
-        return "-";
480
+        return '-'
465 481
       }
466
-      return this.record.catheter;
482
+      return this.record.catheter
467 483
     },
468 484
     puncture_point_haematoma_name: function() {
469 485
       if (this.record.id == 0) {
470
-        return;
486
+        return
471 487
       }
472 488
       switch (this.record.puncture_point_haematoma) {
473 489
         case 1:
474
-          return "有";
475
-          break;
490
+          return '有'
491
+          break
476 492
         case 2:
477
-          return "无";
478
-          break;
493
+          return '无'
494
+          break
479 495
         default:
480
-          return "-";
481
-          break;
496
+          return '-'
497
+          break
482 498
       }
483
-    }
484
-  },
485
-  breathing_rate: function() {
486
-    if (this.record.id == 0) {
487
-      return "-";
488
-    }
489
-    return this.record.breathing_rate;
490
-  },
491
-  temperature: function() {
492
-    if (this.record.id == 0) {
493
-      return "-";
494
-    }
495
-    return this.record.temperature;
496
-  },
497
-  pulse_frequency: function() {
498
-    if (this.record.id == 0) {
499
-      return "-";
500
-    }
501
-    return this.record.pulse_frequency;
502
-  },
503
-  actual_treatment_hour: function() {
504
-    if (this.record.id == 0) {
505
-      return "-";
506
-    }
507
-    return this.record.actual_treatment_hour;
508
-  },
509
-  actual_treatment_minute: function() {
510
-    if (this.record.id == 0) {
511
-      return "-";
512
-    }
513
-    return this.record.actual_treatment_minute;
514
-  },
499
+    },
500
+    breathing_rate: function() {
501
+      if (this.record.id == 0) {
502
+        return '-'
503
+      }
504
+      return this.record.breathing_rate
505
+    },
506
+    temperature: function() {
507
+      if (this.record.id == 0) {
508
+        return '-'
509
+      }
510
+      return this.record.temperature
511
+    },
512
+    pulse_frequency: function() {
513
+      if (this.record.id == 0) {
514
+        return '-'
515
+      }
516
+      return this.record.pulse_frequency
517
+    },
518
+    actual_treatment_hour: function() {
519
+      if (this.record.id == 0) {
520
+        return '-'
521
+      }
522
+      return this.record.actual_treatment_hour
523
+    },
524
+    actual_treatment_minute: function() {
525
+      if (this.record.id == 0) {
526
+        return '-'
527
+      }
528
+      return this.record.actual_treatment_minute
529
+    },
515 530
 
516
-  observation_content_other: function() {
517
-    if (this.record.id == 0) {
518
-      return "-";
519
-    }
520
-    return this.record.observation_content_other;
521
-  },
522
-  observation_content: function() {
523
-    if (this.record.id == 0) {
524
-      return "-";
525
-    }
526
-    return this.record.observation_content;
527
-  },
528
-  complication: function() {
529
-    if (this.record.id == 0) {
530
-      return "-";
531
-    }
532
-    return this.record.complication;
533
-  },
531
+    observation_content_other: function() {
532
+      if (this.record.id == 0) {
533
+        return '-'
534
+      }
535
+      return this.record.observation_content_other
536
+    },
537
+    observation_content: function() {
538
+      if (this.record.id == 0) {
539
+        return '-'
540
+      }
541
+      return this.record.observation_content
542
+    },
543
+    complication: function() {
544
+      if (this.record.id == 0) {
545
+        return '-'
546
+      }
547
+      return this.record.complication
548
+    },
534 549
 
535
-  temperature: function() {
536
-    if (this.record.id == 0) {
537
-      return "-";
538
-    }
539
-    return this.record.temperature;
540
-  },
541
-  pulse_frequency: function() {
542
-    if (this.record.id == 0) {
543
-      return "-";
544
-    }
545
-    return this.record.pulse_frequency;
546
-  },
547
-  actual_treatment_hour: function() {
548
-    if (this.record.id == 0) {
549
-      return "-";
550
-    }
551
-    return this.record.actual_treatment_hour;
552
-  },
553
-  actual_treatment_minute: function() {
554
-    if (this.record.id == 0) {
555
-      return "-";
556
-    }
557
-    return this.record.actual_treatment_minute;
558
-  },
559
-  dialysis_intakes: function() {
560
-    if (this.record.id == 0) {
561
-      return "-";
562
-    }
563
-    return this.record.dialysis_intakes;
564
-  },
565
-  observation_content_other: function() {
566
-    if (this.record.id == 0) {
567
-      return "-";
568
-    }
569
-    return this.record.observation_content_other;
570
-  },
571
-  observation_content: function() {
572
-    if (this.record.id == 0) {
573
-      return "-";
574
-    }
575
-    return this.record.observation_content;
576
-  },
577
-  complication: function() {
578
-    if (this.record.id == 0) {
579
-      return "-";
580
-    }
581
-    return this.record.complication;
582
-  },
550
+    temperature: function() {
551
+      if (this.record.id == 0) {
552
+        return '-'
553
+      }
554
+      return this.record.temperature
555
+    },
556
+    pulse_frequency: function() {
557
+      if (this.record.id == 0) {
558
+        return '-'
559
+      }
560
+      return this.record.pulse_frequency
561
+    },
562
+    actual_treatment_hour: function() {
563
+      if (this.record.id == 0) {
564
+        return '-'
565
+      }
566
+      return this.record.actual_treatment_hour
567
+    },
568
+    actual_treatment_minute: function() {
569
+      if (this.record.id == 0) {
570
+        return '-'
571
+      }
572
+      return this.record.actual_treatment_minute
573
+    },
574
+    dialysis_intakes: function() {
575
+      if (this.record.id == 0) {
576
+        return '-'
577
+      }
578
+      return this.record.dialysis_intakes
579
+    },
580
+    observation_content_other: function() {
581
+      if (this.record.id == 0) {
582
+        return '-'
583
+      }
584
+      return this.record.observation_content_other
585
+    },
586
+    observation_content: function() {
587
+      if (this.record.id == 0) {
588
+        return '-'
589
+      }
590
+      return this.record.observation_content
591
+    },
592
+    complication: function() {
593
+      if (this.record.id == 0) {
594
+        return '-'
595
+      }
596
+      return this.record.complication
597
+    },
583 598
 
584
-  remark: function() {
585
-    if (this.record.id == 0) {
586
-      return "";
587
-    }
588
-    return this.record.remark;
589
-  },
590
-  in_advance_minute: function() {
591
-    if (this.record == null || this.record.id == "") {
592
-      return "";
593
-    }
594
-    return this.record.in_advance_minute;
595
-  },
596
-  in_advance_reason: function() {
597
-    if (this.record == null || this.record.id == "") {
598
-      return "";
599
-    }
600
-    return (
601
-      this.record.in_advance_reason + "," + this.record.in_advance_reason_other
602
-    );
603
-  },
604
-  hemostasis_minute: function() {
605
-    if (this.record == null || this.record.id == "") {
606
-      return "";
607
-    }
599
+    remark: function() {
600
+      if (this.record.id == 0) {
601
+        return ''
602
+      }
603
+      return this.record.remark
604
+    },
605
+    sealing_fluid_special: function() {
606
+      if (this.record.id == 0) {
607
+        return ''
608
+      }
609
+      return this.record.sealing_fluid_special
610
+    },
611
+    in_advance_minute: function() {
612
+      if (this.record == null || this.record.id == '') {
613
+        return ''
614
+      }
615
+      return this.record.in_advance_minute
616
+    },
617
+    in_advance_reason: function() {
618
+      if (this.record == null || this.record.id == '') {
619
+        return ''
620
+      }
621
+      return (
622
+        this.record.in_advance_reason + ',' + this.record.in_advance_reason_other
623
+      )
624
+    },
625
+    hemostasis_minute: function() {
626
+      if (this.record == null || this.record.id == '') {
627
+        return ''
628
+      }
608 629
 
609
-    return this.record.hemostasis_minute;
610
-  },
611
-  in_advance_reason_other: function() {
612
-    if (this.record == null || this.record.id == "") {
613
-      return "";
630
+      return this.record.hemostasis_minute
631
+    },
632
+    in_advance_reason_other: function() {
633
+      if (this.record == null || this.record.id == '') {
634
+        return ''
635
+      }
636
+      return this.record.in_advance_reason_other
614 637
     }
615
-    return this.record.in_advance_reason_other;
616 638
   },
617 639
   methods: {
618 640
     getInternal: function() {
619 641
       if (this.record.id == 0) {
620
-        return "-";
642
+        return '-'
621 643
       }
622 644
       switch (this.record.internal_fistula_tremor_ac) {
623 645
         case 1:
624
-          return "存在";
625
-          break;
646
+          return '存在'
647
+          break
626 648
         case 2:
627
-          return "减弱";
628
-          break;
649
+          return '减弱'
650
+          break
629 651
         case 3:
630
-          return "无";
631
-          break;
652
+          return '无'
653
+          break
632 654
         default:
633
-          return "-";
655
+          return '-'
634 656
       }
635 657
     },
636 658
     getOpera: function(id) {
637
-      var hemostasis_opera = this.$store.getters.hemostasis_opera;
638
-      var hemostasisOperaName = "";
659
+      var hemostasis_opera = this.$store.getters.hemostasis_opera
660
+      var hemostasisOperaName = ''
639 661
       for (let i = 0; i < hemostasis_opera.length; i++) {
640 662
         if (hemostasis_opera[i].id == id) {
641
-          hemostasisOperaName = hemostasis_opera[i].name;
663
+          hemostasisOperaName = hemostasis_opera[i].name
642 664
         }
643 665
       }
644
-      return hemostasisOperaName;
666
+      return hemostasisOperaName
645 667
     },
646 668
     getTremorNoise: function(id) {
647
-      var tremor_noise = this.$store.getters.tremor_noise;
648
-      var tremorNoiseName = "";
669
+      var tremor_noise = this.$store.getters.tremor_noise
670
+      var tremorNoiseName = ''
649 671
       for (let i = 0; i < tremor_noise.length; i++) {
650 672
         if (tremor_noise[i].id == id) {
651
-          tremorNoiseName = tremor_noise[i].name;
673
+          tremorNoiseName = tremor_noise[i].name
652 674
         }
653 675
       }
654
-      return tremorNoiseName;
676
+      return tremorNoiseName
655 677
     },
656 678
     getUnit: function(val) {
657 679
       switch (val) {
658 680
         case 1:
659
-          return "g";
660
-          break;
681
+          return 'g'
682
+          break
661 683
         case 2:
662
-          return "ml";
663
-          break;
684
+          return 'ml'
685
+          break
686
+      }
687
+    },
688
+    getSealingFluidDisposeName: function(id) {
689
+      var sealing_fluid_dispose_arr = getDataConfig('hemodialysis', 'sealing_fluid_dispose')
690
+      var sealing_fluid_dispose_name = ''
691
+      for (let i = 0; i < sealing_fluid_dispose_arr.length; i++) {
692
+        if (sealing_fluid_dispose_arr[i].id == id) {
693
+          sealing_fluid_dispose_name = sealing_fluid_dispose_arr[i].name
694
+        }
664 695
       }
696
+      return sealing_fluid_dispose_name
665 697
     },
666 698
     getDisequilibriumSyndrome: function(id) {
667
-      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome;
668
-      var disequilibriumSyndromeName = "";
699
+      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
700
+      var disequilibriumSyndromeName = ''
669 701
       for (let i = 0; i < disequilibrium_syndrome.length; i++) {
670 702
         if (disequilibrium_syndrome[i].id == id) {
671
-          disequilibriumSyndromeName = disequilibrium_syndrome[i].name;
703
+          disequilibriumSyndromeName = disequilibrium_syndrome[i].name
672 704
         }
673 705
       }
674
-      return disequilibriumSyndromeName;
706
+      return disequilibriumSyndromeName
675 707
     },
676 708
     getDisequilibriumSyndromeOptionName: function(id) {
677 709
       var disequilibrium_syndrome_option = this.$store.getters
678
-        .disequilibrium_syndrome_option;
679
-      var disequilibriumSyndromeOptionName = "";
710
+        .disequilibrium_syndrome_option
711
+      var disequilibriumSyndromeOptionName = ''
680 712
       for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
681 713
         if (disequilibrium_syndrome_option[i].id == id) {
682 714
           disequilibriumSyndromeOptionName =
683
-            disequilibrium_syndrome_option[i].name;
715
+            disequilibrium_syndrome_option[i].name
684 716
         }
685 717
       }
686
-      return disequilibriumSyndromeOptionName;
718
+      return disequilibriumSyndromeOptionName
687 719
     },
688 720
     getArterialTubeName: function(id) {
689
-      var arterial_tube = this.$store.getters.arterial_tube;
690
-      var arterialTubeName = "";
721
+      var arterial_tube = this.$store.getters.arterial_tube
722
+      var arterialTubeName = ''
691 723
       for (let i = 0; i < arterial_tube.length; i++) {
692 724
         if (arterial_tube[i].id == id) {
693
-          arterialTubeName = arterial_tube[i].name;
725
+          arterialTubeName = arterial_tube[i].name
726
+        }
727
+      }
728
+      return arterialTubeName
729
+    },
730
+    getBloodFlowName: function(id) {
731
+      var BloodFloowArr = getDataConfig('hemodialysis', 'blood_flow')
732
+      var BloodFloowArrName = ''
733
+      for (let i = 0; i < BloodFloowArr.length; i++) {
734
+        if (BloodFloowArr[i].id == id) {
735
+          BloodFloowArrName = BloodFloowArr[i].name
694 736
         }
695 737
       }
696
-      return arterialTubeName;
738
+      return BloodFloowArrName
697 739
     },
698 740
     getIntravenousTubeName: function(id) {
699
-      var intravenous_tube = this.$store.getters.intravenous_tube;
700
-      var intravenousTubeName = "";
741
+      var intravenous_tube = this.$store.getters.intravenous_tube
742
+      var intravenousTubeName = ''
701 743
       for (let i = 0; i < intravenous_tube.length; i++) {
702 744
         if (intravenous_tube[i].id == id) {
703
-          intravenousTubeName = intravenous_tube[i].name;
745
+          intravenousTubeName = intravenous_tube[i].name
704 746
         }
705 747
       }
706
-      return intravenousTubeName;
748
+      return intravenousTubeName
707 749
     },
708 750
     getDialyzer: function(id) {
709
-      var dialyzer = this.$store.getters.dialyzer;
710
-      var dialyzerName = "";
751
+      var dialyzer = this.$store.getters.dialyzer
752
+      var dialyzerName = ''
711 753
       for (let i = 0; i < dialyzer.length; i++) {
712 754
         if (dialyzer[i].id == id) {
713
-          dialyzerName = dialyzer[i].name;
755
+          dialyzerName = dialyzer[i].name
714 756
         }
715 757
       }
716
-      return dialyzerName;
758
+      return dialyzerName
717 759
     },
718 760
     isShow(name) {
719
-      var filedList = store.getters.xt_user.fileds;
761
+      var filedList = store.getters.xt_user.fileds
720 762
       for (let i = 0; i < filedList.length; i++) {
721 763
         if (
722 764
           filedList[i].module == 5 &&
723 765
           filedList[i].filed_name_cn == name &&
724 766
           filedList[i].is_show == 1
725 767
         ) {
726
-          return true;
768
+          return true
727 769
         }
728 770
       }
729
-      return false;
771
+      return false
730 772
     }
731 773
   }
732
-};
774
+}
733 775
 </script>
734 776
 
735 777
 <style rel="stylesheet/scss" lang="scss" scoped></style>

+ 138 - 124
src/xt_pages/dialysis/details/assessmentBefore.vue Dosyayı Görüntüle

@@ -65,6 +65,11 @@
65 65
           <span class="unit"> </span>
66 66
         </li>
67 67
 
68
+        <li v-if="isShow('体液过多症状')">
69
+          <label>体液过多症状 : </label>
70
+          <span class="content">{{ getHumorExcessiveSymptom(this.record.humor_excessive_symptom) }}</span>
71
+        </li>
72
+
68 73
         <li v-if="isShow('其他感染情况')">
69 74
           <label>其他感染情况:</label>
70 75
           <span class="content">{{ infect_other }}</span>
@@ -284,15 +289,15 @@
284 289
 </template>
285 290
 
286 291
 <script>
287
-import store from "@/store";
288
-import { getDataConfig } from "@/utils/data";
292
+import store from '@/store'
293
+import { getDataConfig } from '@/utils/data'
289 294
 
290 295
 export default {
291
-  name: "assessmentBefore",
296
+  name: 'assessmentBefore',
292 297
   data() {
293 298
     return {
294
-      title: "透前评估 "
295
-    };
299
+      title: '透前评估 '
300
+    }
296 301
   },
297 302
   props: {
298 303
     record: {
@@ -302,319 +307,328 @@ export default {
302 307
   computed: {
303 308
     weight_before: function() {
304 309
       if (this.record.id == 0) {
305
-        return "-";
310
+        return '-'
306 311
       }
307
-      return this.record.weight_before;
312
+      return this.record.weight_before
308 313
     },
309 314
     additional_weight: function() {
310 315
       if (this.record.id == 0) {
311
-        return "-";
316
+        return '-'
312 317
       }
313
-      return this.record.additional_weight;
318
+      return this.record.additional_weight
314 319
     },
315 320
     systolic_blood_pressure: function() {
316 321
       if (this.record.id == 0) {
317
-        return "-";
322
+        return '-'
318 323
       }
319
-      return this.record.systolic_blood_pressure;
324
+      return this.record.systolic_blood_pressure
320 325
     },
321 326
     last_post_dialysis: function() {
322 327
       if (this.record.id == 0) {
323
-        return "-";
328
+        return '-'
324 329
       }
325
-      return this.record.last_post_dialysis;
330
+      return this.record.last_post_dialysis
326 331
     },
327 332
     dry_weight: function() {
328 333
       if (this.record.id == 0) {
329
-        return "-";
334
+        return '-'
330 335
       }
331
-      return this.record.dry_weight;
336
+      return this.record.dry_weight
332 337
     },
333 338
     diastolic_blood_pressure: function() {
334 339
       if (this.record.id == 0) {
335
-        return "-";
340
+        return '-'
336 341
       }
337
-      return this.record.diastolic_blood_pressure;
342
+      return this.record.diastolic_blood_pressure
338 343
     },
339 344
     dialysis_interphase: function() {
340 345
       if (this.record.id == 0) {
341
-        return "-";
346
+        return '-'
342 347
       }
343
-      return this.record.dialysis_interphase;
348
+      return this.record.dialysis_interphase
344 349
     },
345 350
     catheter: function() {
346 351
       if (this.record.id == 0) {
347
-        return "-";
352
+        return '-'
348 353
       }
349
-      return this.record.catheter;
350
-      console.log("导管", this.record.catheter);
354
+      return this.record.catheter
355
+      console.log('导管', this.record.catheter)
351 356
     },
352 357
 
353 358
     temperature: function() {
354 359
       if (this.record.id == 0) {
355
-        return "-";
360
+        return '-'
356 361
       }
357
-      return this.record.temperature;
362
+      return this.record.temperature
358 363
     },
359 364
     pulse_frequency: function() {
360 365
       if (this.record.id == 0) {
361
-        return "-";
366
+        return '-'
362 367
       }
363
-      return this.record.pulse_frequency;
368
+      return this.record.pulse_frequency
364 369
     },
365 370
     machine_type: function() {
366 371
       if (this.record.id == 0) {
367
-        return "-";
372
+        return '-'
368 373
       }
369
-      return this.record.machine_type;
374
+      return this.record.machine_type
370 375
     },
371 376
     breathing_rate: function() {
372 377
       if (this.record.id == 0) {
373
-        return "-";
378
+        return '-'
374 379
       }
375
-      return this.record.breathing_rate;
380
+      return this.record.breathing_rate
376 381
     },
377 382
     symptom_before_dialysis: function() {
378 383
       if (this.record.id == 0) {
379
-        return "-";
384
+        return '-'
380 385
       }
381
-      return this.record.symptom_before_dialysis;
386
+      return this.record.symptom_before_dialysis
382 387
     },
383 388
     complication: function() {
384 389
       if (this.record.id == 0) {
385
-        return "-";
390
+        return '-'
386 391
       }
387
-      return this.record.complication;
392
+      return this.record.complication
388 393
     },
389 394
     internal_fistula: function() {
390 395
       if (this.record.id == 0) {
391
-        return "-";
396
+        return '-'
392 397
       }
393
-      return this.record.internal_fistula;
394
-     
398
+      return this.record.internal_fistula
395 399
     },
396 400
 
397 401
     internal_fistula_skin: function() {
398 402
       if (this.record.id == 0) {
399
-        return "-";
403
+        return '-'
400 404
       }
401
-      return this.record.internal_fistula_skin;
405
+      return this.record.internal_fistula_skin
402 406
     },
403 407
 
404 408
     is_hemorrhage: function() {
405 409
       if (this.record.id == 0) {
406
-        return false;
410
+        return false
407 411
       }
408
-      return this.record.is_hemorrhage == 1;
412
+      return this.record.is_hemorrhage == 1
409 413
     },
410 414
     hemorrhage: function() {
411 415
       if (this.record.id == 0) {
412
-        return "-";
416
+        return '-'
413 417
       }
414
-      return this.record.hemorrhage;
418
+      return this.record.hemorrhage
415 419
     },
416 420
     hemorrhage_other: function() {
417 421
       if (this.record.id == 0) {
418
-        return "-";
422
+        return '-'
419 423
       }
420
-      return this.record.hemorrhage_other;
424
+      return this.record.hemorrhage_other
421 425
     },
422 426
 
423 427
     remark: function() {
424 428
       if (this.record.id == 0) {
425
-        return "";
429
+        return ''
426 430
       }
427
-      return this.record.remark;
431
+      return this.record.remark
428 432
     },
429 433
     dialysis_count: function() {
430
-      if (this.record == null || this.record.id == "") {
431
-        return "-";
434
+      if (this.record == null || this.record.id == '') {
435
+        return '-'
432 436
       }
433
-      return this.record.dialysis_count;
437
+      return this.record.dialysis_count
434 438
     },
435 439
     internal_fistula_other: function() {
436
-      if (this.record == null || this.record.id == "") {
437
-        return "-";
440
+      if (this.record == null || this.record.id == '') {
441
+        return '-'
438 442
       }
439
-      return this.record.internal_fistula_other;
443
+      return this.record.internal_fistula_other
440 444
     },
441 445
     venous_catheterization_part_other: function() {
442
-      if (this.record == null || this.record.id == "") {
443
-        return "-";
446
+      if (this.record == null || this.record.id == '') {
447
+        return '-'
444 448
       }
445
-      return this.record.venous_catheterization_part_other;
449
+      return this.record.venous_catheterization_part_other
446 450
     },
447 451
     emergency_treatment_other: function() {
448
-      if (this.record == null || this.record.id == "") {
449
-        return "-";
452
+      if (this.record == null || this.record.id == '') {
453
+        return '-'
450 454
       }
451
-      return this.record.emergency_treatment_other;
455
+      return this.record.emergency_treatment_other
452 456
     },
453 457
     blood_access_internal_fistula: function() {
454
-      var name1 = "";
455
-      var name2 = "";
458
+      var name1 = ''
459
+      var name2 = ''
456 460
 
457
-      if (this.record == null || this.record.id == "") {
458
-        return "-";
461
+      if (this.record == null || this.record.id == '') {
462
+        return '-'
459 463
       }
460 464
       if (this.record.blood_access_internal_fistula == undefined) {
461
-        name1 = "";
465
+        name1 = ''
462 466
       } else {
463
-        name1 = this.record.blood_access_internal_fistula + ",";
467
+        name1 = this.record.blood_access_internal_fistula + ','
464 468
       }
465 469
       if (this.record.internal_fistula_other == undefined) {
466
-        name2 = "";
470
+        name2 = ''
467 471
       } else {
468
-        name2 = this.record.internal_fistula_other;
472
+        name2 = this.record.internal_fistula_other
469 473
       }
470 474
 
471
-      return name1 + name2;
475
+      return name1 + name2
472 476
     },
473 477
     ductus_arantii_other: function() {
474
-      if (this.record == null || this.record.id == "") {
475
-        return "-";
478
+      if (this.record == null || this.record.id == '') {
479
+        return '-'
476 480
       }
477
-      return this.record.ductus_arantii_other;
481
+      return this.record.ductus_arantii_other
478 482
     },
479 483
     infect_other: function() {
480
-      if (this.record == null || this.record.id == "") {
481
-        return "-";
484
+      if (this.record == null || this.record.id == '') {
485
+        return '-'
482 486
       }
483
-      return this.record.infect_other;
487
+      return this.record.infect_other
484 488
     },
485 489
     skin_other: function() {
486
-      if (this.record == null || this.record.id == "") {
487
-        return "-";
490
+      if (this.record == null || this.record.id == '') {
491
+        return '-'
488 492
       }
489
-      return this.record.skin_other;
493
+      return this.record.skin_other
490 494
     }
491 495
   },
492 496
   methods: {
493 497
     getBloodAccessPart: function(id) {
494
-      var BloodAccessPart = getDataConfig("hemodialysis", "vascular_access");
495
-      var BloodAccessPartName = "";
498
+      var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
499
+      var BloodAccessPartName = ''
496 500
       for (let i = 0; i < BloodAccessPart.length; i++) {
497 501
         if (BloodAccessPart[i].id == id) {
498
-          BloodAccessPartName = BloodAccessPart[i].name;
502
+          BloodAccessPartName = BloodAccessPart[i].name
499 503
         }
500 504
       }
501
-      return BloodAccessPartName;
505
+      return BloodAccessPartName
502 506
     },
503 507
     getBloodAccessOpera: function(id) {
504 508
       var BloodAccessOpera = getDataConfig(
505
-        "hemodialysis",
506
-        "vascular_access_desc"
507
-      );
508
-      var BloodAccessOperaName = "";
509
+        'hemodialysis',
510
+        'vascular_access_desc'
511
+      )
512
+      var BloodAccessOperaName = ''
509 513
       for (let i = 0; i < BloodAccessOpera.length; i++) {
510 514
         if (BloodAccessOpera[i].id == id) {
511
-          BloodAccessOperaName = BloodAccessOpera[i].name;
515
+          BloodAccessOperaName = BloodAccessOpera[i].name
512 516
         }
513 517
       }
514
-      return BloodAccessOperaName;
518
+      return BloodAccessOperaName
515 519
     },
516 520
 
517 521
     getBloodAccessInternalFistula: function(id) {
518 522
       var BloodAccessInternalFistulaOptions = this.$store.getters
519
-        .blood_access_internal_fistula;
520
-      var BloodAccessInternalFistulaName = "";
523
+        .blood_access_internal_fistula
524
+      var BloodAccessInternalFistulaName = ''
521 525
       for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
522 526
         if (BloodAccessInternalFistulaOptions[i].id == id) {
523 527
           BloodAccessInternalFistulaName =
524
-            BloodAccessInternalFistulaOptions[i].name;
528
+            BloodAccessInternalFistulaOptions[i].name
525 529
         }
526 530
       }
527
-      return BloodAccessInternalFistulaName;
531
+      return BloodAccessInternalFistulaName
528 532
     },
529 533
     getBloodAccessNoise: function(id) {
530
-      var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
531
-      var BloodAccessNoiseName = "";
534
+      var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise
535
+      var BloodAccessNoiseName = ''
532 536
       for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
533 537
         if (BloodAccessNoiseOptions[i].id == id) {
534
-          BloodAccessNoiseName = BloodAccessNoiseOptions[i].name;
538
+          BloodAccessNoiseName = BloodAccessNoiseOptions[i].name
535 539
         }
536 540
       }
537
-      return BloodAccessNoiseName;
541
+      return BloodAccessNoiseName
538 542
     },
539 543
     getVenousCatheterization: function(id) {
540 544
       var VenousCatheterizationOptions = this.$store.getters
541
-        .venous_catheterization;
542
-      var VenousCatheterizationName = "";
545
+        .venous_catheterization
546
+      var VenousCatheterizationName = ''
543 547
       for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
544 548
         if (VenousCatheterizationOptions[i].id == id) {
545
-          VenousCatheterizationName = VenousCatheterizationOptions[i].name;
549
+          VenousCatheterizationName = VenousCatheterizationOptions[i].name
546 550
         }
547 551
       }
548
-      return VenousCatheterizationName;
552
+      return VenousCatheterizationName
549 553
     },
550 554
     getWay: function(id) {
551
-      var PunctureWayOptions = this.$store.getters.puncture_way;
552
-      var PunctureWayOptionsName = "";
555
+      var PunctureWayOptions = getDataConfig('hemodialysis', 'puncture_method')
556
+      var PunctureWayOptionsName = ''
553 557
       for (let i = 0; i < PunctureWayOptions.length; i++) {
554 558
         if (PunctureWayOptions[i].id == id) {
555
-          PunctureWayOptionsName = PunctureWayOptions[i].name;
559
+          PunctureWayOptionsName = PunctureWayOptions[i].name
560
+        }
561
+      }
562
+      return PunctureWayOptionsName
563
+    },
564
+    getHumorExcessiveSymptom: function(id) {
565
+      var HumorExcessiveSymptoms = getDataConfig('hemodialysis', 'humor_excessive_symptom')
566
+      var HumorExcessiveSymptomName = ''
567
+      for (let i = 0; i < HumorExcessiveSymptoms.length; i++) {
568
+        if (HumorExcessiveSymptoms[i].id == id) {
569
+          HumorExcessiveSymptomName = HumorExcessiveSymptoms[i].name
556 570
         }
557 571
       }
558
-      return PunctureWayOptionsName;
572
+      return HumorExcessiveSymptomName
559 573
     },
560 574
     getVenousCatheterizationPart: function(id) {
561 575
       var venousCatheterizationPartOptions = this.$store.getters
562
-        .venous_catheterization_part;
563
-      var venousCatheterizationPartName = "";
576
+        .venous_catheterization_part
577
+      var venousCatheterizationPartName = ''
564 578
       for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
565 579
         if (venousCatheterizationPartOptions[i].id == id) {
566 580
           venousCatheterizationPartName =
567
-            venousCatheterizationPartOptions[i].name;
581
+            venousCatheterizationPartOptions[i].name
568 582
         }
569 583
       }
570
-      return venousCatheterizationPartName;
584
+      return venousCatheterizationPartName
571 585
     },
572 586
     getDuctusArantii: function(id) {
573
-      var ductusArantiiOptions = this.$store.getters.ductus_arantii;
574
-      var ductusArantiiOptionsName = "";
587
+      var ductusArantiiOptions = this.$store.getters.ductus_arantii
588
+      var ductusArantiiOptionsName = ''
575 589
       for (let i = 0; i < ductusArantiiOptions.length; i++) {
576 590
         if (ductusArantiiOptions[i].id == id) {
577
-          ductusArantiiOptionsName = ductusArantiiOptions[i].name;
591
+          ductusArantiiOptionsName = ductusArantiiOptions[i].name
578 592
         }
579 593
       }
580
-      return ductusArantiiOptionsName;
594
+      return ductusArantiiOptionsName
581 595
     },
582 596
     getEmergencyTreatment: function(id) {
583
-      var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
584
-      var emergencyTreatmentName = "";
597
+      var emergencyTreatmentOptions = this.$store.getters.emergency_treatment
598
+      var emergencyTreatmentName = ''
585 599
       for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
586 600
         if (emergencyTreatmentOptions[i].id == id) {
587
-          emergencyTreatmentName = emergencyTreatmentOptions[i].name;
601
+          emergencyTreatmentName = emergencyTreatmentOptions[i].name
588 602
         }
589 603
       }
590
-      return emergencyTreatmentName;
604
+      return emergencyTreatmentName
591 605
     },
592 606
     isShow(name) {
593
-      var filedList = store.getters.xt_user.fileds;
594
-      var arr = [];
607
+      var filedList = store.getters.xt_user.fileds
608
+      var arr = []
595 609
       for (let i = 0; i < filedList.length; i++) {
596 610
         if (
597 611
           filedList[i].module == 3 &&
598 612
           filedList[i].filed_name_cn == name &&
599 613
           filedList[i].is_show == 1
600 614
         ) {
601
-          return true;
615
+          return true
602 616
         }
603 617
       }
604
-      return false;
618
+      return false
605 619
     },
606 620
     getSkin: function(id) {
607
-      var skinOptions = this.$store.getters.skin;
608
-      var skinName = "";
621
+      var skinOptions = this.$store.getters.skin
622
+      var skinName = ''
609 623
       for (let i = 0; i < skinOptions.length; i++) {
610 624
         if (skinOptions[i].id == id) {
611
-          skinName = skinOptions[i].name;
625
+          skinName = skinOptions[i].name
612 626
         }
613 627
       }
614
-      return skinName;
628
+      return skinName
615 629
     }
616 630
   }
617
-};
631
+}
618 632
 </script>
619 633
 
620 634
 <style rel="stylesheet/scss" lang="scss" scoped></style>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 403 - 387
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue


+ 75 - 76
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Dosyayı Görüntüle

@@ -98,6 +98,15 @@
98 98
             </el-form-item>
99 99
           </el-col>
100 100
 
101
+          <el-col :span="8">
102
+            <el-form-item label="体液过多症状: " v-if="isShow('体液过多症状')">
103
+              <el-select v-model="assessmentBeforeDislysis.humor_excessive_symptom">
104
+                <el-option :key="0" label="请选择" :value="0"></el-option>
105
+                <el-option v-for="item in humor_excessive_symptom_array" :label="item.name" :value="item.id"
106
+                           :key="item.id"></el-option>
107
+              </el-select>
108
+            </el-form-item>
109
+          </el-col>
101 110
 
102 111
           <el-col :span="8">
103 112
             <el-form-item label="血管通路: " v-if="isShow('血管通路')">
@@ -241,7 +250,7 @@
241 250
               <el-select v-model="assessmentBeforeDislysis.puncture_way">
242 251
                 <el-option :key="0" label="请选择" :value="0"></el-option>
243 252
 
244
-                <el-option v-for="item in this.$store.getters.puncture_way" :label="item.name" :value="item.id"
253
+                <el-option v-for="item in this.puncture_ways" :label="item.name" :value="item.id"
245 254
                            :key="item.id"></el-option>
246 255
               </el-select>
247 256
             </el-form-item>
@@ -498,7 +507,7 @@
498 507
 <script>
499 508
   import multiSelectBox from './MultiSelectBox'
500 509
   import { getDataConfig } from '@/utils/data'
501
-  import { postAssessmentBeforeDislysis,CreateDryWeight } from '@/api/dialysis'
510
+  import { postAssessmentBeforeDislysis, CreateDryWeight } from '@/api/dialysis'
502 511
   import store from '@/store'
503 512
   import { uParseTime } from '@/utils/tools'
504 513
 
@@ -511,15 +520,15 @@
511 520
     name: 'assessment-after-dislysis-dialog',
512 521
     data() {
513 522
       return {
514
-        showTxt:'',
515
-        hasPermission:true,
523
+        showTxt: '',
524
+        hasPermission: true,
516 525
         weight_adjust: {
517 526
           weight: '',
518 527
           doctor: '',
519 528
           remark: ''
520 529
 
521 530
         },
522
-        lastPredialysisEvaluation:null,
531
+        lastPredialysisEvaluation: null,
523 532
         lastDryWeightDislysis: null,
524 533
         doctorOptions: [],
525 534
         isVisibility: false,
@@ -536,6 +545,7 @@
536 545
         hemorrhage: [],
537 546
         blood_access_part: [],
538 547
         blood_access_part_opera: [],
548
+        humor_excessive_symptom_array: [],
539 549
         internal_fistula: [],
540 550
         internal_fistula_skin: [],
541 551
         puncture_method: [],
@@ -557,6 +567,7 @@
557 567
           catheter: '',
558 568
           complication: '',
559 569
           remark: '',
570
+          humor_excessive_symptom: '',
560 571
           blood_access_part_id: '',
561 572
           blood_access_part_opera_id: '',
562 573
           internal_fistula: '',
@@ -593,7 +604,8 @@
593 604
           titles: '',
594 605
           type: '' // 不同弹框类型,用来匹配数据
595 606
         },
596
-        machineType:[],
607
+        machineType: [],
608
+        puncture_ways: ''
597 609
 
598 610
       }
599 611
     },
@@ -620,11 +632,9 @@
620 632
 
621 633
     },
622 634
     methods: {
623
-      setLastRecord(lastPredialysisEvaluation,lastDryWeightDislysis){
635
+      setLastRecord(lastPredialysisEvaluation, lastDryWeightDislysis) {
624 636
         this.lastPredialysisEvaluation = lastPredialysisEvaluation
625 637
         this.lastDryWeightDislysis = lastDryWeightDislysis
626
-
627
-
628 638
       },
629 639
       isShow(name) {
630 640
         var filedList = store.getters.xt_user.fileds
@@ -637,7 +647,7 @@
637 647
       },
638 648
       show(assessment) {
639 649
         this.assessment = assessment
640
-        console.log("透前",assessment)
650
+        console.log('透前', assessment)
641 651
         this.getPermission()
642 652
         this.isVisibility = true
643 653
         for (let i = 0; i < this.admin_users.length; i++) {
@@ -649,22 +659,19 @@
649 659
           this.weight_adjust.doctor = this.$store.getters.xt_user.user.id
650 660
         }
651 661
 
652
-
653
-        if (this.predialysis_evaluation.id == 0){
654
-          if (this.lastDryWeightDislysis != null){
662
+        if (this.predialysis_evaluation.id == 0) {
663
+          if (this.lastDryWeightDislysis != null) {
655 664
             this.weight_adjust.weight = this.lastDryWeightDislysis.dry_weight
656 665
             this.assessmentBeforeDislysis.dry_weight = this.lastDryWeightDislysis.dry_weight
657
-
658
-          }else{
659
-            if(this.lastPredialysisEvaluation != null){
666
+          } else {
667
+            if (this.lastPredialysisEvaluation != null) {
660 668
               this.weight_adjust.weight = this.lastPredialysisEvaluation.dry_weight
661 669
               this.assessmentBeforeDislysis.dry_weight = this.lastPredialysisEvaluation.dry_weight
662 670
             }
663 671
           }
664
-        }else{
672
+        } else {
665 673
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
666 674
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
667
-
668 675
         }
669 676
       },
670 677
       hide() {
@@ -817,36 +824,32 @@
817 824
       }, innerDialogCancle: function() {
818 825
         this.InnerDialogProps.visibility = false
819 826
       }, handleComfirm: function() {
820
-         var arr = this.assessmentBeforeDislysis
821
-         for(let i=0;i<this.machineType.length;i++){
822
-           if(arr.machine_type == this.machineType[i].id){
823
-                arr.machine_type = this.machineType[i].name
824
-           }
825
-         }
826
-         console.log("arr",arr)
827
+        var arr = this.assessmentBeforeDislysis
828
+        for (let i = 0; i < this.machineType.length; i++) {
829
+          if (arr.machine_type == this.machineType[i].id) {
830
+            arr.machine_type = this.machineType[i].name
831
+          }
832
+        }
833
+        console.log('arr', arr)
827 834
         const ParamsQuery = arr
828
-        console.log("paramsquery",ParamsQuery)
835
+        console.log('paramsquery', ParamsQuery)
829 836
         ParamsQuery['patient'] = this.patient.id
830 837
         ParamsQuery['record_date'] = this.record_date
831
-        ParamsQuery['mode'] = "1"
838
+        ParamsQuery['mode'] = '1'
832 839
 
833 840
         console.log(this.predialysis_evaluation)
834 841
 
835
-        if(this.predialysis_evaluation.id == 0){
836
-          ParamsQuery['mode'] = "1"
837
-
838
-        }else{
839
-          if (this.predialysis_evaluation.creater == 0){
840
-            ParamsQuery['mode'] = "1"
841
-          }else{
842
-            ParamsQuery['mode'] = "2"
843
-            if (this.predialysis_evaluation.creater != this.$store.getters.xt_user.user.id){
844
-              ParamsQuery['mode'] = "3"
842
+        if (this.predialysis_evaluation.id == 0) {
843
+          ParamsQuery['mode'] = '1'
844
+        } else {
845
+          if (this.predialysis_evaluation.creater == 0) {
846
+            ParamsQuery['mode'] = '1'
847
+          } else {
848
+            ParamsQuery['mode'] = '2'
849
+            if (this.predialysis_evaluation.creater != this.$store.getters.xt_user.user.id) {
850
+              ParamsQuery['mode'] = '3'
845 851
             }
846
-
847 852
           }
848
-
849
-
850 853
         }
851 854
 
852 855
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
@@ -876,21 +879,19 @@
876 879
         this.isVisibility = false
877 880
       }, showDryWeightDialog: function() {
878 881
         if (this.$store.getters.xt_user.user.user_type == 3) {
879
-          this.$message.error("您没有权限调整干体重")
880
-          return;
882
+          this.$message.error('您没有权限调整干体重')
883
+          return
881 884
         }
882 885
         this.dialogFormVisible = true
883 886
         this.isVisibility = false
884
-
885 887
       }, submitDryWeight() {
886
-
887
-        let params = {
888
-          id:this.patient.id,
888
+        const params = {
889
+          id: this.patient.id,
889 890
           dry_weight: this.weight_adjust.weight,
890 891
           remark: this.weight_adjust.remark,
891 892
           doctor_id: this.weight_adjust.doctor,
892
-          mode : "1",
893
-        };
893
+          mode: '1'
894
+        }
894 895
         CreateDryWeight(params).then(response => {
895 896
           if (response.data.state == 0) {
896 897
             this.$message.error(response.data.msg)
@@ -902,41 +903,41 @@
902 903
             this.isVisibility = true
903 904
           }
904 905
         })
905
-      },cancleDryWeight(){
906
+      }, cancleDryWeight() {
906 907
         this.dialogFormVisible = false
907 908
         this.isVisibility = true
908 909
       },
909
-      getPermission(){
910
-        request.get("/api/func_per/get",{
911
-          params:{
912
-            create_url:"/api/dialysis/assessmentbeforedislysis?mode=1",
913
-            modify_url:"/api/dialysis/assessmentbeforedislysis?mode=2",
914
-            modify_other_url:"/api/dialysis/assessmentbeforedislysis?mode=3",
915
-            module:3
910
+      getPermission() {
911
+        request.get('/api/func_per/get', {
912
+          params: {
913
+            create_url: '/api/dialysis/assessmentbeforedislysis?mode=1',
914
+            modify_url: '/api/dialysis/assessmentbeforedislysis?mode=2',
915
+            modify_other_url: '/api/dialysis/assessmentbeforedislysis?mode=3',
916
+            module: 3
916 917
           }
917 918
         }).then(res => {
918 919
           console.log(res)
919
-          console.log("透前",this.patient_prop)
920
-          console.log("透前",this.assessment)
921
-          if(res.data.state == 0){
920
+          console.log('透前', this.patient_prop)
921
+          console.log('透前', this.assessment)
922
+          if (res.data.state == 0) {
922 923
             this.hasPermission = false
923
-          }else if(res.data.state == 1){
924
-            if(this.assessment.id != "" && this.assessment.creater != 0){//有数据
925
-              if(this.assessment.creater == this.$store.getters.xt_user.user.id){//创建人是自己
926
-                if(res.data.data.is_has_modify == false){
924
+          } else if (res.data.state == 1) {
925
+            if (this.assessment.id != '' && this.assessment.creater != 0) { // 有数据
926
+              if (this.assessment.creater == this.$store.getters.xt_user.user.id) { // 创建人是自己
927
+                if (res.data.data.is_has_modify == false) {
927 928
                   this.hasPermission = false
928
-                  this.showTxt = "你没有修改透前评估权限"
929
+                  this.showTxt = '你没有修改透前评估权限'
929 930
                 }
930
-              }else{//创建人不是自己
931
-                if(res.data.data.is_has_modify_other == false){
931
+              } else { // 创建人不是自己
932
+                if (res.data.data.is_has_modify_other == false) {
932 933
                   this.hasPermission = false
933
-                  this.showTxt = "你没有修改他人透前评估权限"
934
+                  this.showTxt = '你没有修改他人透前评估权限'
934 935
                 }
935 936
               }
936
-            }else if(this.assessment.id == "" || this.assessment.creater == 0){
937
-              if(res.data.data.is_has_create  == false){
937
+            } else if (this.assessment.id == '' || this.assessment.creater == 0) {
938
+              if (res.data.data.is_has_create == false) {
938 939
                 this.hasPermission = false
939
-                this.showTxt = "你没有新增透前评估权限"
940
+                this.showTxt = '你没有新增透前评估权限'
940 941
               }
941 942
             }
942 943
           }
@@ -950,21 +951,21 @@
950 951
       this.catheter = getDataConfig('hemodialysis', 'catheter')
951 952
       this.complication = getDataConfig('hemodialysis', 'complication')
952 953
       this.hemorrhage = getDataConfig('hemodialysis', 'hemorrhage')
954
+      this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
953 955
       this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
954 956
       this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
955
-      //console.log("血管通路部位",this.blood_access_part_opera)
957
+      this.humor_excessive_symptom_array = getDataConfig('hemodialysis', 'humor_excessive_symptom')
958
+      // console.log("血管通路部位",this.blood_access_part_opera)
956 959
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
957 960
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
958 961
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
959
-      this.machineType = getDataConfig('hemodialysis','machine_type')
962
+      this.machineType = getDataConfig('hemodialysis', 'machine_type')
960 963
       this.blood_access_noise = this.$store.getters.blood_access_noise
961 964
       var date = this.$route.query && this.$route.query.date
962 965
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
963 966
 
964
-
965 967
       // this.weight_adjust.weight = this.dry_weight.dry_weight
966 968
 
967
-
968 969
       // if(this.predialysis_evaluation.id == 0){
969 970
       //
970 971
       //
@@ -977,13 +978,11 @@
977 978
       //   }
978 979
       //
979 980
       // }
980
-
981 981
     }, watch: {
982 982
       isVisibility(val) {
983 983
 
984 984
       },
985 985
       'predialysis_evaluation.id': function() {
986
-
987 986
         console.log(this.last_predialysis)
988 987
 
989 988
         if (this.predialysis_evaluation.id > 0) {

Dosya farkı çok büyük olduğundan ihmal edildi
+ 2121 - 1980
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 351 - 530
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue


+ 151 - 104
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Dosyayı Görüntüle

@@ -125,230 +125,239 @@
125 125
 </template>
126 126
 
127 127
 <script>
128
-import { getDataConfig } from "@/utils/data";
129
-import { postTreatmentsummary } from "@/api/dialysis";
130
-import { uParseTime } from "@/utils/tools";
131
-import store from "@/store";
132
-import request from "@/utils/request";
128
+import { getDataConfig } from '@/utils/data'
129
+import { postTreatmentsummary } from '@/api/dialysis'
130
+import { uParseTime } from '@/utils/tools'
131
+import store from '@/store'
132
+import request from '@/utils/request'
133 133
 
134 134
 export default {
135
-  name: "treatmentSummaryDialog",
135
+  name: 'treatmentSummaryDialog',
136 136
 
137 137
   props: {
138 138
     treatment_summary: {
139 139
       // 治疗小结
140 140
       type: Object,
141 141
       default: () => {
142
-        return { id: 0 };
142
+        return { id: 0 }
143 143
       }
144 144
     },
145 145
     patient: {
146 146
       // 患者信息
147 147
       type: Object,
148 148
       default: () => {
149
-        return { id: 0 };
149
+        return { id: 0 }
150 150
       }
151
-    }
151
+    },
152 152
   },
153 153
   data() {
154 154
     return {
155
-      showTxt: "",
155
+      showTxt: '',
156 156
       hasPermission: true,
157
-      value: "",
158
-      value2: "",
159
-      value3: "",
160
-      value4: "",
157
+      value: '',
158
+      value2: '',
159
+      value3: '',
160
+      value4: '',
161 161
       isVisibility: false,
162
-      record_date: "",
162
+      record_date: '',
163 163
       education: [],
164 164
       summary: [],
165 165
       nursingRecord: [],
166 166
       specialRecord: [],
167 167
       treatmentSummary: {
168
-        mission: "",
169
-        dialysis_summary: "",
170
-        sj_nurse: "",
171
-        zl_nurse: "",
172
-        hd_nurse: "",
173
-        xj_nurse: "",
174
-        zl_doctor: "",
175
-        nursing_record: "",
176
-        special_record: ""
177
-      }
178
-    };
168
+        mission: '',
169
+        dialysis_summary: '',
170
+        sj_nurse: '',
171
+        zl_nurse: '',
172
+        hd_nurse: '',
173
+        xj_nurse: '',
174
+        zl_doctor: '',
175
+        nursing_record: '',
176
+        special_record: ''
177
+      },
178
+      //
179
+      date:''
180
+    }
179 181
   },
180 182
   methods: {
181
-    show(record) {
182
-      this.isVisibility = true;
183
-      this.record = record;
184
-      console.log("治疗小结", record);
185
-      this.getPermission();
183
+    show(record,date) {
184
+      this.isVisibility = true
185
+      this.record = record
186
+      console.log(111111111111111,date)
187
+      if(date){
188
+        this.date = date
189
+        this.record_date = uParseTime(this.date, '{y}-{m}-{d}')
190
+        console.log(22222222222,this.record_date)
191
+      }
192
+      
193
+      console.log('治疗小结', record)
194
+      this.getPermission()
186 195
     },
187 196
     hide() {
188
-      this.isVisibility = false;
197
+      this.isVisibility = false
189 198
     },
190 199
     dialysisAfterTeachSelectChange: function(values) {
191
-      if (this.treatmentSummary.mission == "") {
192
-        this.treatmentSummary.mission = values;
200
+      if (this.treatmentSummary.mission == '') {
201
+        this.treatmentSummary.mission = values
193 202
       } else {
194 203
         if (this.treatmentSummary.mission.indexOf(values) == -1) {
195 204
           if (
196 205
             this.treatmentSummary.mission
197 206
               .charAt(this.treatmentSummary.mission.length - 1)
198
-              .indexOf("。") == -1
207
+              .indexOf('。') == -1
199 208
           ) {
200 209
             this.treatmentSummary.mission =
201
-              this.treatmentSummary.mission + "," + values;
210
+              this.treatmentSummary.mission + ',' + values
202 211
           } else {
203 212
             this.treatmentSummary.mission =
204
-              this.treatmentSummary.mission + values;
213
+              this.treatmentSummary.mission + values
205 214
           }
206 215
         }
207 216
       }
208 217
     },
209 218
     dialysisSummarySelectChange: function(values) {
210
-      if (this.treatmentSummary.dialysis_summary == "") {
211
-        this.treatmentSummary.dialysis_summary = values;
219
+      if (this.treatmentSummary.dialysis_summary == '') {
220
+        this.treatmentSummary.dialysis_summary = values
212 221
       } else {
213 222
         if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
214 223
           if (
215 224
             this.treatmentSummary.dialysis_summary
216 225
               .charAt(this.treatmentSummary.dialysis_summary.length - 1)
217
-              .indexOf("。") == -1
226
+              .indexOf('。') == -1
218 227
           ) {
219 228
             this.treatmentSummary.dialysis_summary =
220
-              this.treatmentSummary.dialysis_summary + "," + values;
229
+              this.treatmentSummary.dialysis_summary + ',' + values
221 230
           } else {
222 231
             this.treatmentSummary.dialysis_summary =
223
-              this.treatmentSummary.dialysis_summary + "," + values;
232
+              this.treatmentSummary.dialysis_summary + ',' + values
224 233
             this.treatmentSummary.dialysis_summary =
225
-              this.treatmentSummary.dialysis_summary + values;
234
+              this.treatmentSummary.dialysis_summary + values
226 235
           }
227 236
         }
228 237
       }
229 238
     },
230 239
     dialysisNusingRecordSelectChange: function(values) {
231
-      if (this.treatmentSummary.nursing_record == "") {
232
-        this.treatmentSummary.nursing_record = values;
240
+      if (this.treatmentSummary.nursing_record == '') {
241
+        this.treatmentSummary.nursing_record = values
233 242
       } else {
234 243
         if (this.treatmentSummary.nursing_record.indexOf(values) == -1) {
235 244
           if (
236 245
             this.treatmentSummary.nursing_record
237 246
               .charAt(this.treatmentSummary.nursing_record.length - 1)
238
-              .indexOf("。") == -1
247
+              .indexOf('。') == -1
239 248
           ) {
240 249
             this.treatmentSummary.nursing_record =
241
-              this.treatmentSummary.nursing_record + "," + values;
250
+              this.treatmentSummary.nursing_record + ',' + values
242 251
           } else {
243 252
             this.treatmentSummary.nursing_record =
244
-              this.treatmentSummary.nursing_record + "," + values;
253
+              this.treatmentSummary.nursing_record + ',' + values
245 254
             this.treatmentSummary.nursing_record =
246
-              this.treatmentSummary.nursing_record + values;
255
+              this.treatmentSummary.nursing_record + values
247 256
           }
248 257
         }
249 258
       }
250 259
     },
251 260
     dialysisSpecialRecordSelectChange(values) {
252
-      if (this.treatmentSummary.special_record == "") {
253
-        this.treatmentSummary.special_record = values;
261
+      if (this.treatmentSummary.special_record == '') {
262
+        this.treatmentSummary.special_record = values
254 263
       } else {
255 264
         if (this.treatmentSummary.special_record.indexOf(values) == -1) {
256 265
           if (
257 266
             this.treatmentSummary.special_record
258 267
               .charAt(this.treatmentSummary.special_record.length - 1)
259
-              .indexOf("。") == -1
268
+              .indexOf('。') == -1
260 269
           ) {
261 270
             this.treatmentSummary.special_record =
262
-              this.treatmentSummary.special_record + "," + values;
271
+              this.treatmentSummary.special_record + ',' + values
263 272
           } else {
264 273
             this.treatmentSummary.special_record =
265
-              this.treatmentSummary.special_record + "," + values;
274
+              this.treatmentSummary.special_record + ',' + values
266 275
             this.treatmentSummary.special_record =
267
-              this.treatmentSummary.special_record + values;
276
+              this.treatmentSummary.special_record + values
268 277
           }
269 278
         }
270 279
       }
271 280
     },
272 281
     handleCancle: function() {
273
-      this.isVisibility = false;
282
+      this.isVisibility = false
274 283
     },
275 284
     handleComfirm: function() {
276
-      const ParamsQuery = this.treatmentSummary;
277
-      ParamsQuery["patient"] = this.patient.id;
278
-      ParamsQuery["record_date"] = this.record_date;
279
-      ParamsQuery["mode"] = "1";
285
+      const ParamsQuery = this.treatmentSummary
286
+      ParamsQuery['patient'] = this.patient.id
287
+      ParamsQuery['record_date'] = this.record_date
288
+      ParamsQuery['mode'] = '1'
280 289
       if (this.treatment_summary.id > 0) {
281
-        ParamsQuery["mode"] = "2";
290
+        ParamsQuery['mode'] = '2'
282 291
         if (
283 292
           this.treatment_summary.creater != this.$store.getters.xt_user.user.id
284 293
         ) {
285
-          ParamsQuery["mode"] = "3";
294
+          ParamsQuery['mode'] = '3'
286 295
         }
287 296
       }
288 297
       postTreatmentsummary(ParamsQuery).then(response => {
289 298
         if (response.data.state == 0) {
290
-          this.$message.error(response.data.msg);
291
-          return false;
299
+          this.$message.error(response.data.msg)
300
+          return false
292 301
         } else {
293 302
           this.$notify({
294
-            title: "成功",
295
-            message: "提交成功",
296
-            type: "success",
303
+            title: '成功',
304
+            message: '提交成功',
305
+            type: 'success',
297 306
             duration: 2000
298
-          });
307
+          })
299 308
 
300
-          const summary_resp = response.data.data.summary;
309
+          const summary_resp = response.data.data.summary
301 310
           // prop
302
-          var treatment_summary = this.treatment_summary;
311
+          var treatment_summary = this.treatment_summary
303 312
           for (var index in summary_resp) {
304 313
             // treatment_summary[index] = summary_resp[index];
305
-            this.$set(treatment_summary, index, summary_resp[index]);
314
+            this.$set(treatment_summary, index, summary_resp[index])
306 315
           }
307 316
 
308
-          this.hide();
317
+          this.hide()
309 318
         }
310
-      });
319
+      })
311 320
     },
312 321
     getPermission() {
313 322
       request
314
-        .get("/api/func_per/get", {
323
+        .get('/api/func_per/get', {
315 324
           params: {
316
-            create_url: "/api/dialysis/treatmentsummary?mode=1",
317
-            modify_url: "/api/dialysis/treatmentsummary?mode=2",
318
-            modify_other_url: "/api/dialysis/treatmentsummary?mode=3",
325
+            create_url: '/api/dialysis/treatmentsummary?mode=1',
326
+            modify_url: '/api/dialysis/treatmentsummary?mode=2',
327
+            modify_other_url: '/api/dialysis/treatmentsummary?mode=3',
319 328
             module: 9
320 329
           }
321 330
         })
322 331
         .then(res => {
323 332
           if (res.data.state == 0) {
324
-            this.hasPermission = false;
333
+            this.hasPermission = false
325 334
           } else if (res.data.state == 1) {
326
-            if (this.record.id != "" && this.record.creater != 0) {
327
-              //有数据
335
+            if (this.record.id != '' && this.record.creater != 0) {
336
+              // 有数据
328 337
               if (this.record.creater == this.$store.getters.user.admin.id) {
329
-                //创建人是自己
338
+                // 创建人是自己
330 339
                 if (res.data.data.is_has_modify == false) {
331
-                  this.hasPermission = false;
332
-                  this.showTxt = "你没有修改治疗小结权限";
340
+                  this.hasPermission = false
341
+                  this.showTxt = '你没有修改治疗小结权限'
333 342
                 }
334 343
               } else {
335
-                //创建人不是自己
344
+                // 创建人不是自己
336 345
                 if (res.data.data.is_has_modify_other == false) {
337
-                  this.hasPermission = false;
338
-                  this.showTxt = "你没有修改他人治疗小结权限";
346
+                  this.hasPermission = false
347
+                  this.showTxt = '你没有修改他人治疗小结权限'
339 348
                 }
340 349
               }
341
-            } else if (this.record.id == "" || this.record.creater == 0) {
350
+            } else if (this.record.id == '' || this.record.creater == 0) {
342 351
               if (res.data.data.is_has_create == false) {
343
-                this.hasPermission = false;
344
-                this.showTxt = "你没有新增治疗小结权限";
352
+                this.hasPermission = false
353
+                this.showTxt = '你没有新增治疗小结权限'
345 354
               }
346 355
             }
347 356
           }
348
-        });
357
+        })
349 358
     },
350 359
     isShow(name) {
351
-      var filedList = store.getters.xt_user.fileds;
360
+      var filedList = store.getters.xt_user.fileds
352 361
 
353 362
       for (let i = 0; i < filedList.length; i++) {
354 363
         if (
@@ -356,34 +365,72 @@ export default {
356 365
           filedList[i].filed_name_cn == name &&
357 366
           filedList[i].is_show == 1
358 367
         ) {
359
-          return true;
368
+          return true
360 369
         }
361 370
       }
362
-      return false;
371
+      return false
363 372
     }
364 373
   },
365 374
   watch: {
366 375
     isVisibility(val) {},
367
-    "treatment_summary.id": function() {
368
-      if (this.treatment_summary.id > 0) {
369
-        for (var index in this.treatmentSummary) {
370
-          this.treatmentSummary[index] = this.treatment_summary[index];
376
+    'treatment_summary.id': {
377
+      immediate: true,
378
+      deep:true,
379
+      handler(oldVal,newVal) {
380
+        if(oldVal == newVal){
381
+          for (var index in this.treatmentSummary) {
382
+            this.treatmentSummary[index] = this.treatment_summary[index]
383
+          }
384
+        }
385
+        if (this.treatment_summary.id > 0) {
386
+          for (var index in this.treatmentSummary) {
387
+            this.value = ''
388
+            this.value2 = ''
389
+            this.value3 = ''
390
+            this.value4 = ''
391
+            this.treatmentSummary[index] = this.treatment_summary[index]
392
+          }
393
+        }else if(this.treatment_summary.id == 0){
394
+          for (var index in this.treatmentSummary) {
395
+            // this.treatmentSummary[index] = this.treatment_summary[index]
396
+            this.value = ''
397
+            this.value2 = ''
398
+            this.value3 = ''
399
+            this.value4 = ''
400
+            this.treatmentSummary = {
401
+              mission: '',
402
+              dialysis_summary: '',
403
+              sj_nurse: '',
404
+              zl_nurse: '',
405
+              hd_nurse: '',
406
+              xj_nurse: '',
407
+              zl_doctor: '',
408
+              nursing_record: '',
409
+              special_record: ''
410
+            }
411
+          }
412
+          
371 413
         }
372 414
       }
373 415
     }
374 416
   },
375 417
   created() {
376
-    this.education = getDataConfig("education", "education");
377
-    this.summary = getDataConfig("summary", "summary");
418
+    this.education = getDataConfig('education', 'education')
419
+    this.summary = getDataConfig('summary', 'summary')
378 420
 
379
-    this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
421
+    this.nursingRecord = getDataConfig('nursing_record', 'nursing_record')
380 422
 
381
-    this.specialRecord = getDataConfig("special_record", "special_record");
423
+    this.specialRecord = getDataConfig('special_record', 'special_record')
382 424
 
383
-    var date = this.$route.query && this.$route.query.date;
384
-    this.record_date = uParseTime(date, "{y}-{m}-{d}");
425
+    // var date = this.$route.query && this.$route.query.date
426
+    // this.record_date = uParseTime(date, '{y}-{m}-{d}')
427
+
428
+    if(this.$route.query && this.$route.query.date){
429
+      var date = this.$route.query && this.$route.query.date
430
+      this.record_date = uParseTime(date, '{y}-{m}-{d}')
431
+    }
385 432
   }
386
-};
433
+}
387 434
 </script>
388 435
 
389 436
 <style scoped>

+ 41 - 174
src/xt_pages/dialysis/details/dialysisMonitoring.vue Dosyayı Görüntüle

@@ -14,174 +14,45 @@
14 14
           <th width="76px">静脉压/动脉压(mmHg)</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmhg)</th>
17
-          <th
18
-            v-if="
19
-              isShow('超滤量') &&
20
-                (template_id == 6 || template_id == 10 || template_id == 11)
21
-            "
22
-            width="76px"
23
-          >
24
-            超滤量(ml)
25
-          </th>
26
-          <th
27
-            v-if="
28
-              isShow('超滤量') &&
29
-                template_id != 6 &&
30
-                template_id != 10 &&
31
-                template_id != 11
32
-            "
33
-            width="76px"
34
-          >
35
-            超滤量(L)
36
-          </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18"  width="76px"> 超滤量(L) </th>
37 19
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
38 20
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
39
-          <th
40
-            v-if="
41
-              isShow('置换率') &&
42
-                (template_id == 6 || template_id == 10 || template_id == 11)
43
-            "
44
-            width="92px"
45
-          >
46
-            置换率(ml/min)
47
-          </th>
48
-          <th
49
-            v-if="
50
-              isShow('置换率') &&
51
-                template_id != 6 &&
52
-                template_id != 10 &&
53
-                template_id != 11
54
-            "
55
-            width="92px"
56
-          >
57
-            置换率(L/h)
58
-          </th>
59
-
60
-          <th
61
-            v-if="
62
-              isShow('置换量') &&
63
-                (template_id == 6 || template_id == 10 || template_id == 11)
64
-            "
65
-            width="92px"
66
-          >
67
-            置换量(ml)
68
-          </th>
69
-          <th
70
-            v-if="
71
-              isShow('置换量') &&
72
-                template_id != 6 &&
73
-                template_id != 10 &&
74
-                template_id != 10
75
-            "
76
-            width="92px"
77
-          >
78
-            置换量(L)
79
-          </th>
80
-          <th
81
-            v-if="
82
-              isShow('SpO₂') &&
83
-                template_id != 6 &&
84
-                template_id != 10 &&
85
-                template_id != 11
86
-            "
87
-            width="92px"
88
-          >
89
-            SpO₂(%)
90
-          </th>
21
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11) " width="92px" > 置换率(ml/min) </th>
22
+          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 " width="92px" > 置换率(L/h)  </th>
23
+          <th v-if=" isShow('置换量') && (template_id == 6 || template_id == 10 || template_id == 11) " width="92px"  > 置换量(ml)  </th>
24
+          <th v-if=" isShow('置换量') && template_id != 6 && template_id != 10 && template_id != 10 " width="92px" > 置换量(L) </th>
25
+          <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
91 26
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
92 27
           <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
28
+          <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
29
+          <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)" width="50px"> 超滤率 <br />(ml/h) </th>
30
+          <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" width="50px"> 超滤率 <br />(L/h) </th>
93 31
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
94
-
95 32
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
96 33
           <th v-if="isShow('处理')" width="92px">处理</th>
97 34
           <th v-if="isShow('结果')" width="92px">结果</th>
98 35
         </tr>
99 36
         <tr v-for="(monitor, index) in monitores" :key="index">
100
-          <td v-if="isShow('监测时间')">
101
-            {{ parseTime(monitor.operate_time, "{y}-{m}-{d} {h}:{i}") }}
102
-          </td>
103
-          <td v-if="isShow('体温')">
104
-            {{ monitor.temperature ? monitor.temperature : "" }}
105
-          </td>
106
-          <td v-if="isShow('血压')">
107
-            {{
108
-              monitor.systolic_blood_pressure
109
-                ? monitor.systolic_blood_pressure
110
-                : ""
111
-            }}/{{
112
-              monitor.diastolic_blood_pressure
113
-                ? monitor.diastolic_blood_pressure
114
-                : ""
115
-            }}
116
-          </td>
117
-          <td v-if="isShow('脉搏')">
118
-            {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
119
-          </td>
120
-          <td v-if="isShow('呼吸频率')">
121
-            {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
122
-          </td>
123
-          <td>
124
-            {{ monitor.venous_pressure ? monitor.venous_pressure : "" }} /{{
125
-              monitor.arterial_pressure ? monitor.arterial_pressure : ""
126
-            }}
127
-          </td>
128
-          <td v-if="isShow('血流量')">
129
-            {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
130
-          </td>
131
-          <td v-if="isShow('跨膜压')">
132
-            {{
133
-              monitor.transmembrane_pressure
134
-                ? monitor.transmembrane_pressure
135
-                : ""
136
-            }}
137
-          </td>
138
-          <td v-if="isShow('超滤量')">
139
-            {{
140
-              monitor.ultrafiltration_volume
141
-                ? monitor.ultrafiltration_volume
142
-                : ""
143
-            }}
144
-          </td>
145
-          <td v-if="isShow('钠浓度')">
146
-            {{
147
-              monitor.sodium_concentration ? monitor.sodium_concentration : ""
148
-            }}
149
-          </td>
150
-          <td v-if="isShow('透析液温度')">
151
-            {{
152
-              monitor.dialysate_temperature ? monitor.dialysate_temperature : ""
153
-            }}
154
-          </td>
155
-          <td v-if="isShow('置换率')">
156
-            {{ monitor.replacement_rate ? monitor.replacement_rate : "" }}
157
-          </td>
158
-          <td v-if="isShow('置换量')">
159
-            {{
160
-              monitor.displacement_quantity ? monitor.displacement_quantity : ""
161
-            }}
162
-          </td>
163
-          <td v-if="isShow('SpO₂')">
164
-            {{
165
-              monitor.blood_oxygen_saturation
166
-                ? monitor.blood_oxygen_saturation
167
-                : ""
168
-            }}
169
-          </td>
170
-          <td v-if="isShow('电导度')">
171
-            {{ monitor.conductivity ? monitor.conductivity : "" }}
172
-          </td>
173
-          <th v-if="isShow('置换液流量')">
174
-            {{
175
-              monitor.displacement_flow_quantity
176
-                ? monitor.displacement_flow_quantity
177
-                : ""
178
-            }}
179
-          </th>
180
-
181
-          <th v-if="isShow('肝素用量余量')">
182
-            {{ monitor.heparin ? monitor.heparin : "" }}
183
-          </th>
184
-
37
+          <td v-if="isShow('监测时间')"> {{ parseTime(monitor.operate_time, "{y}-{m}-{d} {h}:{i}") }} </td>
38
+          <td v-if="isShow('体温')"> {{ monitor.temperature ? monitor.temperature : "" }} </td>
39
+          <td v-if="isShow('血压')"> {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/{{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }} </td>
40
+          <td v-if="isShow('脉搏')"> {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }} </td>
41
+          <td v-if="isShow('呼吸频率')"> {{ monitor.breathing_rate ? monitor.breathing_rate : "" }} </td>
42
+          <td> {{ monitor.venous_pressure ? monitor.venous_pressure : "" }} /{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}  </td>
43
+          <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
44
+          <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
45
+          <td v-if="isShow('超滤量')"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }} </td>
46
+          <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
47
+          <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
48
+          <td v-if="isShow('置换率')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "" }} </td>
49
+          <td v-if="isShow('置换量')"> {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }} </td>
50
+          <td v-if="isShow('SpO₂')"> {{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }} </td>
51
+          <td v-if="isShow('电导度')"> {{ monitor.conductivity ? monitor.conductivity : "" }} </td>
52
+          <th v-if="isShow('置换液流量')"> {{ monitor.displacement_flow_quantity  ? monitor.displacement_flow_quantity : "" }} </th>
53
+          <th v-if="isShow('透析液流量')"> {{ monitor.dialysate_flow  ? monitor.dialysate_flow : "" }} </th>
54
+          <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
55
+          <th v-if="isShow('肝素用量余量')"> {{ monitor.heparin ? monitor.heparin : "" }} </th>
185 56
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
186 57
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
187 58
           <td v-if="isShow('结果')">{{ monitor.result }}</td>
@@ -193,17 +64,17 @@
193 64
 </template>
194 65
 
195 66
 <script>
196
-import store from "@/store";
67
+import store from '@/store'
197 68
 
198
-import { parseTime } from "@/utils";
69
+import { parseTime } from '@/utils'
199 70
 
200 71
 export default {
201
-  name: "statOrder",
72
+  name: 'statOrder',
202 73
   data() {
203 74
     return {
204
-      title: "透析监测 ",
75
+      title: '透析监测 ',
205 76
       template_id: 0
206
-    };
77
+    }
207 78
   },
208 79
   props: {
209 80
     monitores: {
@@ -211,27 +82,23 @@ export default {
211 82
     }
212 83
   },
213 84
   created() {
214
-    this.template_id = this.$store.getters.xt_user.template_info.template_id;
85
+    this.template_id = this.$store.getters.xt_user.template_info.template_id
215 86
   },
216 87
   methods: {
217 88
     parseTime(time, layout) {
218
-      return parseTime(time, layout);
89
+      return parseTime(time, layout)
219 90
     },
220 91
     isShow(name) {
221
-      var filedList = store.getters.xt_user.fileds;
92
+      var filedList = store.getters.xt_user.fileds
222 93
       for (let i = 0; i < filedList.length; i++) {
223
-        if (
224
-          filedList[i].module == 4 &&
225
-          filedList[i].filed_name_cn == name &&
226
-          filedList[i].is_show == 1
227
-        ) {
228
-          return true;
94
+        if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show === 1) {
95
+          return true
229 96
         }
230 97
       }
231
-      return false;
98
+      return false
232 99
     }
233 100
   }
234
-};
101
+}
235 102
 </script>
236 103
 
237 104
 <style rel="stylesheet/scss" lang="scss" scoped>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1255 - 420
src/xt_pages/dialysis/details/index.vue


+ 624 - 95
src/xt_pages/dialysis/dialysisPrintOrder.vue Dosyayı Görüntüle

@@ -160,6 +160,39 @@
160 160
           >打印</el-button
161 161
         >
162 162
       </template>
163
+      <template
164
+        v-if="
165
+          org_template_info.template_id == 14 ||
166
+            org_template_info.template_id == 0
167
+        "
168
+      >
169
+      <div>
170
+          <el-button
171
+            :loading="loading"
172
+            size="small"
173
+            icon="el-icon-printer"
174
+            @click="printThisPage"
175
+            type="primary"
176
+            >打印全部</el-button
177
+          >
178
+          <el-button
179
+            :loading="loading"
180
+            size="small"
181
+            icon="el-icon-printer"
182
+            @click="printThisOnePage"
183
+            type="primary"
184
+            >打印纪录单</el-button
185
+          >
186
+          <el-button
187
+            :loading="loading"
188
+            size="small"
189
+            icon="el-icon-printer"
190
+            @click="printThisTwoPage"
191
+            type="primary"
192
+            >打印医嘱单</el-button
193
+          >
194
+        </div>
195
+      </template>
163 196
       <template v-if="org_template_info.template_id == 15">
164 197
         <el-button
165 198
           :loading="loading"
@@ -170,10 +203,38 @@
170 203
           >打印</el-button
171 204
         >
172 205
       </template>
173
-
174
-      
206
+      <template v-if="org_template_info.template_id == 16">
207
+        <el-button
208
+          :loading="loading"
209
+          size="small"
210
+          icon="el-icon-printer"
211
+          @click="printThisPage"
212
+          type="primary"
213
+          >打印</el-button
214
+        >
215
+      </template>
216
+      <template v-if="org_template_info.template_id == 17">
217
+        <el-button
218
+          :loading="loading"
219
+          size="small"
220
+          icon="el-icon-printer"
221
+          @click="printThisPage"
222
+          type="primary"
223
+          >打印</el-button
224
+        >
225
+      </template>
226
+      <template v-if="org_template_info.template_id == 18">
227
+        <el-button
228
+          :loading="loading"
229
+          size="small"
230
+          icon="el-icon-printer"
231
+          @click="printThisPage"
232
+          type="primary"
233
+          >打印</el-button
234
+        >
235
+      </template>
175 236
     </div>
176
-    <div class="app-container ">
237
+    <div class="app-container" style="min-height:0;">
177 238
       <!--<div class="order-print-btn"-->
178 239
       <!--v-loading="loading"-->
179 240
       <!--element-loading-text="加载中"-->
@@ -183,101 +244,184 @@
183 244
       <!--</div>-->
184 245
 
185 246
       <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
247
+      <el-container class="newContainer">
248
+        <div style="width:270px;margin-right:20px;">
249
+            <div class="cell clearfix" style="margin-bottom:10px;">
250
+            <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 130px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
251
+            <el-input size="small" style="width:80px;" v-model.trim="search_input" class="filter-item"/>
252
+            <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
253
+          </div>
254
+          <div class="cell clearfix" style="margin-bottom:10px;">
255
+            <el-select v-model="patientStateVal" placeholder="全部患者状态" style="width:130px;margin-right:10px;" @change="handleStateChange">
256
+              <el-option
257
+                v-for="item in patient_state"
258
+                :key="item.value"
259
+                :label="item.label"
260
+                :value="item.value">
261
+              </el-option>
262
+            </el-select>
263
+            <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="width:130px;margin-right:10px;" @change="handleTreatChange">
264
+              <el-option
265
+                v-for="item in treat_state"
266
+                :key="item.value"
267
+                :label="item.label"
268
+                :value="item.value">
269
+              </el-option>
270
+            </el-select>
271
+          </div>
272
+          <div class="cell clearfix" style="margin-bottom:10px;">
273
+            <el-select v-model="scheduleStateVal" placeholder="班次" style="width:130px;margin-right:10px;" @change="handletimeType">
274
+              <el-option
275
+                v-for="item in schedule_options"
276
+                :key="item.value"
277
+                :label="item.label"
278
+                :value="item.value">
279
+              </el-option>
280
+            </el-select>
281
+            <el-select v-model="zoneVal" placeholder="分区" style="width:130px;margin-right:10px;" @change="handleZoneChange">
282
+              <el-option
283
+                v-for="item in zone_options"
284
+                :key="item.id"
285
+                :label="item.text"
286
+                :value="item.id">
287
+              </el-option>
288
+            </el-select>
289
+          </div>
290
+          <div style="padding-right:20px;">
291
+            <el-table
292
+              ref="tab"
293
+              @row-click="changePatient"
294
+              highlight-current-row
295
+              :data="tableData"
296
+              height="480"
297
+              border
298
+              style="width: 100%">
299
+              <el-table-column
300
+                prop="date"
301
+                label="患者"
302
+                >
303
+                <template slot-scope="scope">
304
+                  {{ scope.row.patient.name }}
305
+                </template>
306
+              </el-table-column>
307
+              <el-table-column
308
+                prop="name"
309
+                label="透析号"
310
+                >
311
+                <template slot-scope="scope">
312
+                  {{ scope.row.patient.dialysis_no }}
313
+                </template>
314
+              </el-table-column>
315
+            </el-table>
316
+          </div>
317
+        </div>
318
+        <div class='dialysisPage' style="height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
319
+          <DialysisPrintOrderOne
320
+            v-bind:childResponse="childResponse"
321
+            v-if="org_template_info.template_id == 1"
322
+          >
323
+          </DialysisPrintOrderOne>
186 324
 
187
-      <DialysisPrintOrderOne
188
-        v-bind:childResponse="childResponse"
189
-        v-if="org_template_info.template_id == 1"
190
-      >
191
-      </DialysisPrintOrderOne>
325
+          <DialysisPrintOrderTwo
326
+            v-bind:childResponse="childResponse"
327
+            v-if="
328
+              org_template_info.template_id == 2 ||
329
+                org_template_info.template_id == 0
330
+            "
331
+          ></DialysisPrintOrderTwo>
192 332
 
193
-      <DialysisPrintOrderTwo
194
-        v-bind:childResponse="childResponse"
195
-        v-if="
196
-          org_template_info.template_id == 2 ||
197
-            org_template_info.template_id == 0
198
-        "
199
-      ></DialysisPrintOrderTwo>
333
+          <DialysisPrintOrderThree
334
+            v-bind:childResponse="childResponse"
335
+            v-if="org_template_info.template_id == 3"
336
+          >
337
+          </DialysisPrintOrderThree>
200 338
 
201
-      <DialysisPrintOrderThree
202
-        v-bind:childResponse="childResponse"
203
-        v-if="org_template_info.template_id == 3"
204
-      >
205
-      </DialysisPrintOrderThree>
339
+          <DialysisPrintOrderFour
340
+            v-bind:childResponse="childResponse"
341
+            v-if="org_template_info.template_id == 4"
342
+          >
343
+          </DialysisPrintOrderFour>
206 344
 
207
-      <DialysisPrintOrderFour
208
-        v-bind:childResponse="childResponse"
209
-        v-if="org_template_info.template_id == 4"
210
-      >
211
-      </DialysisPrintOrderFour>
345
+          <DialysisPrintOrderFive
346
+            v-bind:childResponse="childResponse"
347
+            v-if="org_template_info.template_id == 5"
348
+          >
349
+          </DialysisPrintOrderFive>
212 350
 
213
-      <DialysisPrintOrderFive
214
-        v-bind:childResponse="childResponse"
215
-        v-if="org_template_info.template_id == 5"
216
-      >
217
-      </DialysisPrintOrderFive>
351
+          <DialysisPrintOrderSix
352
+            v-bind:childResponse="childResponse"
353
+            v-if="org_template_info.template_id == 6"
354
+          >
355
+          </DialysisPrintOrderSix>
218 356
 
219
-      <DialysisPrintOrderSix
220
-        v-bind:childResponse="childResponse"
221
-        v-if="org_template_info.template_id == 6"
222
-      >
223
-      </DialysisPrintOrderSix>
357
+          <DialysisPrintOrderSeven
358
+            v-bind:childResponse="childResponse"
359
+            v-if="org_template_info.template_id == 7"
360
+          >
361
+          </DialysisPrintOrderSeven>
224 362
 
225
-      <DialysisPrintOrderSeven
226
-        v-bind:childResponse="childResponse"
227
-        v-if="org_template_info.template_id == 7"
228
-      >
229
-      </DialysisPrintOrderSeven>
363
+          <DialysisPrintOrderEight
364
+            v-bind:childResponse="childResponse"
365
+            v-if="org_template_info.template_id == 8"
366
+          >
367
+          </DialysisPrintOrderEight>
230 368
 
231
-      <DialysisPrintOrderEight
232
-        v-bind:childResponse="childResponse"
233
-        v-if="org_template_info.template_id == 8"
234
-      >
235
-      </DialysisPrintOrderEight>
236
-
237
-      <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
238
-      <DialysisPrintOrderTen
239
-        v-bind:childResponse="childResponse"
240
-        v-if="org_template_info.template_id == 10"
241
-      ></DialysisPrintOrderTen>
242
-
243
-      <DialysisPrintOrderNine
244
-        v-bind:childResponse="childResponse"
245
-        v-if="org_template_info.template_id == 9"
246
-      ></DialysisPrintOrderNine>
247
-
248
-      <DialysisPrintOrderEleven
249
-        v-bind:childResponse="childResponse"
250
-        v-if="org_template_info.template_id == 11"
251
-      ></DialysisPrintOrderEleven>
252
-      <DialysisPrintOrderTwelve
253
-        v-bind:childResponse="childResponse"
254
-        v-if="org_template_info.template_id == 12"
255
-      ></DialysisPrintOrderTwelve>
256
-      <DialysisPrintOrderThirteen
257
-        v-bind:childResponse="childResponse"
258
-        v-if="org_template_info.template_id == 13"
259
-      ></DialysisPrintOrderThirteen>
260
-      <DialysisPrintOrderFifteen
261
-        v-bind:childResponse="childResponse"
262
-        v-if="org_template_info.template_id == 15"
263
-      ></DialysisPrintOrderFifteen>
264
-      <DialysisPrintOrderSixteen
265
-        v-bind:childResponse="childResponse"
266
-        v-if="org_template_info.template_id == 16"
267
-      ></DialysisPrintOrderSixteen>
268
-      <DialysisPrintOrderSeventeen
269
-         v-bind:childResponse="childResponse"
270
-         v-if="org_template_info.template_id == 17"
271
-      ></DialysisPrintOrderSeventeen>
272
-      <DialysisPrintOrderEighteen
369
+          <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
370
+          <DialysisPrintOrderTen
371
+            v-bind:childResponse="childResponse"
372
+            v-if="org_template_info.template_id == 10"
373
+          ></DialysisPrintOrderTen>
374
+
375
+          <DialysisPrintOrderNine
376
+            v-bind:childResponse="childResponse"
377
+            v-if="org_template_info.template_id == 9"
378
+          ></DialysisPrintOrderNine>
379
+
380
+          <DialysisPrintOrderEleven
381
+            v-bind:childResponse="childResponse"
382
+            v-if="org_template_info.template_id == 11"
383
+          ></DialysisPrintOrderEleven>
384
+          <DialysisPrintOrderTwelve
385
+            v-bind:childResponse="childResponse"
386
+            v-if="org_template_info.template_id == 12"
387
+          ></DialysisPrintOrderTwelve>
388
+          <DialysisPrintOrderThirteen
389
+            v-bind:childResponse="childResponse"
390
+            v-if="org_template_info.template_id == 13"
391
+          ></DialysisPrintOrderThirteen>
392
+          <DialysisPrintOrderFourteen
393
+            v-bind:childResponse="childResponse"
394
+            v-if="org_template_info.template_id == 14"
395
+          ></DialysisPrintOrderFourteen>
396
+          <DialysisPrintOrderFifteen
397
+            v-bind:childResponse="childResponse"
398
+            v-if="org_template_info.template_id == 15"
399
+          ></DialysisPrintOrderFifteen>
400
+          <DialysisPrintOrderSixteen
401
+            v-bind:childResponse="childResponse"
402
+            v-if="org_template_info.template_id == 16"
403
+          ></DialysisPrintOrderSixteen>
404
+          <DialysisPrintOrderSeventeen
405
+            v-bind:childResponse="childResponse"
406
+            v-if="org_template_info.template_id == 17"
407
+          ></DialysisPrintOrderSeventeen>
408
+          <DialysisPrintOrderEighteen
273 409
             v-bind:childResponse="childResponse"
274 410
             v-if="org_template_info.template_id == 18"
275
-      ></DialysisPrintOrderEighteen>
411
+          ></DialysisPrintOrderEighteen>
412
+        </div>
413
+      </el-container>
276 414
     </div>
277 415
   </div>
278 416
 </template>
279 417
 
280 418
 <script>
419
+
420
+import {
421
+  getDialysisRecordInitData,
422
+  getDialysisSchedules
423
+} from "@/api/dialysis_record";
424
+import { parseTime } from "@/utils";
281 425
 import { getDialysisRecord } from "@/api/dialysis";
282 426
 import { getDataConfig } from "@/utils/data";
283 427
 import { jsGetAge, uParseTime } from "@/utils/tools";
@@ -297,14 +441,20 @@ import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
297 441
 import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
298 442
 import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
299 443
 import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
444
+import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
300 445
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
301 446
 import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
302 447
 import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
303 448
 import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
449
+
304 450
 export default {
305 451
   name: "dialysisPrintOrder",
306 452
   components: {
307
-  DialysisPrintOrderFifteen,
453
+    DialysisPrintOrderEighteen,
454
+    DialysisPrintOrderSeventeen,
455
+    DialysisPrintOrderSixteen,
456
+    DialysisPrintOrderFifteen,
457
+    DialysisPrintOrderFourteen,
308 458
     DialysisPrintOrderThirteen,
309 459
     DialysisPrintOrderTwelve,
310 460
     DialysisPrintOrderEleven,
@@ -318,9 +468,6 @@ export default {
318 468
     DialysisPrintOrderSeven,
319 469
     DialysisPrintOrderEight,
320 470
     DialysisPrintOrderNine,
321
-    DialysisPrintOrderSixteen,
322
-    DialysisPrintOrderSeventeen,
323
-    DialysisPrintOrderEighteen,
324 471
     LabelBox,
325 472
     BreadCrumb
326 473
   },
@@ -416,7 +563,40 @@ export default {
416 563
         zongliang_unit: "mg",
417 564
         gaimingcheng_unit: "",
418 565
         gaijiliang_unit: ""
419
-      }
566
+      },
567
+
568
+
569
+      //
570
+      tableData: [],
571
+      selected_date: new Date(),
572
+      // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
573
+      search_keyword: '', // 确定用于搜索的关键字
574
+      search_input: '', // 输入中的关键字
575
+      patient_state:[
576
+          {value: 0,label: '全部'},
577
+          {value: 1,label: '已签到'},
578
+          {value: 2,label: '未签到'},
579
+          {value: 3,label: '已上机'},
580
+          {value: 4,label: '已下机'},
581
+      ],
582
+      patientStateVal: 0,
583
+      treat_state:[
584
+          {value: 0,label: '全部'},
585
+          {value: 1,label: '待开处方'},
586
+          {value: 2,label: '待开小结'},
587
+      ],
588
+      treatStateVal: 0,
589
+      schedule_options:[
590
+          {value: 0,label: '全部'},
591
+          {value: 1,label: '上午'},
592
+          {value: 2,label: '下午'},
593
+          {value: 3,label: '晚上'},
594
+      ],
595
+      scheduleStateVal: 0,
596
+      zone_options:[
597
+          { id: 0, text: '全部' }
598
+      ],
599
+      zoneVal:0,
420 600
     };
421 601
   },
422 602
   methods: {
@@ -458,6 +638,8 @@ export default {
458 638
 
459 639
       const style5 =
460 640
         '@media print {.dialysis-print-order {width: 960px; margin: 0 auto;}.dialysis-print-order .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.dialysis-print-order .order-title {  margin: auto;  font-weight: 600;  text-align: center;  font-size: 22px;  padding: 10px 20px 0px 20px;}.dialysis-print-order .table-box {  width: 100%;  line-height: 18px;  font-size: 14px;}.dialysis-print-order .print-table {  width: 100%;  text-align: center;  border-collapse: collapse;  line-height: 40px;  font-size: 14px;}.dialysis-print-order .print-table-no {  width: 100%;  text-align: center;  border-collapse: collapse;  font-size: 14px;}.dialysis-print-order .under-line {  border-bottom: 1px solid #999;  width: 95%;  text-align: center;  margin-left: 2px;}.dialysis-print-order .title-box {  text-align: center;  font-size: 16px;}.dialysis-print-order .radio-lebel-box {  font-weight: 400;  cursor: pointer;}.dialysis-print-order .radio-no {  opacity: 0;  outline: none;  position: absolute;  margin: 0;  width: 0;  height: 0;  z-index: -1;}.dialysis-print-order .radio-inner {  white-space: nowrap;  cursor: pointer;  outline: none;  display: inline-block;  line-height: 1;  position: relative;  vertical-align: middle;}.dialysis-print-order .radio-fang {  display: inline-block;  position: relative;  border: 1px solid #000;  box-sizing: border-box;  width: 14px;  height: 14px;  background-color: #fff;  z-index: 1;  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);}.dialysis-print-order .is-checked-radio::after {  content: "√";  font-size: 15px;}.dialysis-print-order .print-table-no tr td {  padding: 8px 5px;  line-height: 25px;}.dialysis-print-order .print-table tr td {  padding: 1px 1px;  /*line-height: 25px;*/}.es-img {  height: 25px;}.advice-name {  text-align: left;}.advice-children {  display: flex;}.title-box-pro {  border: 0 #fff;  line-height: 25px;  height: 25px;  text-align: left;  padding-left: 10px !important;}.title-box-pro-tr {  border: 0 #fff;}.text-align-left {  text-align: left !important;  padding-left: 10px !important;  font-size: 14px !important;  line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
641
+      const style6 =
642
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:16px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:16px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
461 643
 
462 644
       if (this.org_template_info.template_id == 1) {
463 645
         printJS({
@@ -543,28 +725,35 @@ export default {
543 725
           style: style3,
544 726
           scanStyles: false
545 727
         });
546
-      } else if (this.org_template_info.template_id == 15){
728
+      } else if (this.org_template_info.template_id == 14){
547 729
         printJS({
548 730
           printable: "dialysis-print-box",
549 731
           type: "html",
550 732
           style: style,
551 733
           scanStyles: false
552 734
         });
553
-      }else if (this.org_template_info.template_id == 16){
735
+      } else if (this.org_template_info.template_id == 15){
554 736
         printJS({
555 737
           printable: "dialysis-print-box",
556 738
           type: "html",
557 739
           style: style,
558 740
           scanStyles: false
559 741
         });
560
-      }else if (this.org_template_info.template_id == 17) {
742
+      } else if (this.org_template_info.template_id == 16){
561 743
         printJS({
562 744
           printable: "dialysis-print-box",
563 745
           type: "html",
564 746
           style: style,
565 747
           scanStyles: false
566 748
         });
567
-      }else if (this.org_template_info.template_id == 18) {
749
+      } else if (this.org_template_info.template_id == 17) {
750
+        printJS({
751
+          printable: "dialysis-print-box",
752
+          type: "html",
753
+          style: style6,
754
+          scanStyles: false
755
+        });
756
+      } else if (this.org_template_info.template_id == 18) {
568 757
         printJS({
569 758
           printable: "dialysis-print-box",
570 759
           type: "html",
@@ -592,7 +781,7 @@ export default {
592 781
       } else if (
593 782
         this.org_template_info.template_id == 2 ||
594 783
         this.org_template_info.template_id == 0 ||
595
-        this.org_template_info.template_id == 5
784
+        this.org_template_info.template_id == 5 
596 785
       ) {
597 786
         printJS({
598 787
           printable: "dialysis-print-box-1-1",
@@ -600,6 +789,13 @@ export default {
600 789
           style: style2,
601 790
           scanStyles: false
602 791
         });
792
+      } else if(this.org_template_info.template_id == 14){
793
+        printJS({
794
+          printable: "new-dialysis-1",
795
+          type: "html",
796
+          style: style,
797
+          scanStyles: false
798
+        });
603 799
       }
604 800
     },
605 801
     printThisTwoPage() {
@@ -629,6 +825,13 @@ export default {
629 825
           style: style2,
630 826
           scanStyles: false
631 827
         });
828
+      }else if(this.org_template_info.template_id == 14){
829
+        printJS({
830
+          printable: "new-dialysis-2",
831
+          type: "html",
832
+          style: style,
833
+          scanStyles: false
834
+        });
632 835
       }
633 836
     },
634 837
     getNumber() {
@@ -971,7 +1174,283 @@ export default {
971 1174
           // checker: 0,
972 1175
         }
973 1176
       );
974
-    }
1177
+    },
1178
+    //日期
1179
+        handleScheduleDateChange: function() {
1180
+            this.treatStateVal = 0
1181
+            this.patientStateVal = 0
1182
+            this.zoneVal = 0
1183
+            this.scheduleStateVal = 0
1184
+            this.search_keyword = this.search_input = ''
1185
+            // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
1186
+            //   zone: this.zone_selected,
1187
+            //   schedule_type: this.schedule_type_selected,
1188
+            //   schedule_date: this.selected_date,
1189
+            // })
1190
+            this.requestDialysisSchedules()
1191
+        },
1192
+        //初始化数据
1193
+        getInitData: function() {
1194
+            getDialysisRecordInitData().then(rs => {
1195
+                var resp = rs.data
1196
+                if (resp.state == 1) {
1197
+                var zones = resp.data.zones
1198
+                var schedules = resp.data.schedules
1199
+                var zone_options = [{ id: 0, text: '全部' }]
1200
+                for (let z_i = 0; z_i < zones.length; z_i++) {
1201
+                    const zone = zones[z_i]
1202
+                    zone_options.push({ id: zone.id, text: zone.name })
1203
+                }
1204
+                this.zone_options = zone_options
1205
+                this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1206
+                this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
1207
+                this.getData()
1208
+                } else {
1209
+                this.$message.error(resp.msg)
1210
+                }
1211
+            })
1212
+        },
1213
+        // 班次
1214
+        handletimeType: function(index) {
1215
+            this.scheduleStateVal = index
1216
+            // this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
1217
+            this.search_keyword = this.search_input = ''
1218
+            this.getData()
1219
+        },
1220
+        //分区
1221
+        handleZoneChange: function(index) {
1222
+            this.zoneVal = index
1223
+            // this.$store.dispatch('SetZoneSelected', { zone_selected: index })
1224
+            this.search_keyword = this.search_input = ''
1225
+            this.getData()
1226
+        },
1227
+        //患者状态
1228
+        handleStateChange: function(index) {
1229
+            this.patientStateVal = index
1230
+            // this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
1231
+            this.search_keyword = this.search_input = ''
1232
+            this.getData()
1233
+        },
1234
+        handleTreatChange: function(index) {
1235
+            this.treatStateVal = index
1236
+            // this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
1237
+            this.search_keyword = this.search_input = ''
1238
+            this.getData()
1239
+        },
1240
+        processedDialysisSchedules: function(schedules, zone_options) {
1241
+            var zoneMap = {}
1242
+            var scheduleMap = {}
1243
+            for (let z_i = 0; z_i < zone_options.length; z_i++) {
1244
+                const zone = zone_options[z_i]
1245
+                if (zone.id == 0) {
1246
+                continue
1247
+                }
1248
+                scheduleMap[zone.id] = []
1249
+            }
1250
+            for (let index = 0; index < schedules.length; index++) {
1251
+                const schedule = schedules[index]
1252
+                scheduleMap[schedule.device_number.zone.id].push(schedule)
1253
+            }
1254
+            var zone_schedules = []
1255
+            for (let index = 0; index < zone_options.length; index++) {
1256
+                const zone = zone_options[index]
1257
+                if (zone.id == 0) {
1258
+                continue
1259
+                }
1260
+                var schedules = scheduleMap[zone.id]
1261
+                zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
1262
+            }
1263
+            return zone_schedules
1264
+        },
1265
+        searchAction: function() {
1266
+            this.search_keyword = this.search_input
1267
+            this.scheduleStateVal = 0
1268
+            this.zoneVal = 0
1269
+            this.treatStateVal = 0
1270
+            this.patientStateVal = 0
1271
+            if(this.search_input != ''){
1272
+                let arr = []
1273
+                this.filtedSchedules.map(item => {
1274
+                arr.push(...item.schedules)
1275
+                })
1276
+                this.tableData = arr
1277
+                
1278
+            }else{
1279
+                this.getData()
1280
+            }
1281
+        },
1282
+        requestDialysisSchedules: function() {
1283
+            var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1284
+            getDialysisSchedules(ymd).then(rs => {
1285
+                var resp = rs.data
1286
+                if (resp.state == 1) {
1287
+                var schedules = resp.data.schedules
1288
+                this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1289
+                let newArr = []
1290
+                this.zone_schedules.map(item => {
1291
+                    newArr.push(...item.schedules)
1292
+                })
1293
+                this.tableData = newArr
1294
+                } else {
1295
+                this.$message.error(resp.msg)
1296
+                }
1297
+            })
1298
+        },
1299
+        changePatient(schedual){
1300
+              console.log(schedual)
1301
+              var xtdate = parseTime(schedual.schedule_date, '{y}-{m}-{d}')
1302
+              this.$router.push(
1303
+                '/dialysis/print?xtdate=' + xtdate + '&xtno=' + schedual.patient.dialysis_no
1304
+              )
1305
+            //   this.patient_id = schedual.patient_id;
1306
+            //   this.date = schedual.schedule_date;
1307
+            //   // this.getScheduleDetail();
1308
+            //   // this.getLongAdvice();
1309
+            
1310
+            //   var patient_id = schedual.patient_id;
1311
+            //   var date = schedual.schedule_date;
1312
+            //   this.$router.push({
1313
+            //     path: "/dialysis/details",
1314
+            //     query: {
1315
+            //       patient_id: patient_id,
1316
+            //       date: date,
1317
+            //       patient_name: schedual.patient.name
1318
+            //     }
1319
+            //   });
1320
+        },
1321
+        getData(){
1322
+            let patientArr = []
1323
+            patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1324
+            console.log('patientArr',patientArr)
1325
+            let arr1 = []
1326
+            if(this.patientStateVal == 0){
1327
+                arr1 = patientArr
1328
+                console.log(arr1)
1329
+            }else if(this.patientStateVal == 1){
1330
+                let arr = []
1331
+                arr = patientArr
1332
+                for (let i = 0; i <arr.length; i++) {
1333
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
1334
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis == null || (arr[i].schedules[j].assessment_before_dislysis.weight_before == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
1335
+                            // 删除元素后改变i的值
1336
+                            arr[i].schedules.splice(j--, 1);
1337
+                        }
1338
+                    }
1339
+                }
1340
+                console.log("执行1",arr)
1341
+                arr1 = arr
1342
+            }else if(this.patientStateVal == 2){
1343
+                let arr = []
1344
+                arr = patientArr
1345
+                for (let i = 0; i < arr.length; i++) {
1346
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
1347
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis != null && (arr[i].schedules[j].assessment_before_dislysis.weight_before != 0 || arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure != 0 || arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure != 0))) {
1348
+                            // 删除元素后改变i的值
1349
+                            console.log('几次')
1350
+                            arr[i].schedules.splice(j--, 1);
1351
+                        }
1352
+                    }
1353
+                }
1354
+                console.log("执行2",arr)
1355
+                arr1 = arr
1356
+            }else if(this.patientStateVal == 3){
1357
+                let arr = []
1358
+                arr = patientArr
1359
+                for (let i = 0; i <arr.length; i++) {
1360
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
1361
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1))) {
1362
+                            // 删除元素后改变i的值
1363
+                            arr[i].schedules.splice(j--, 1);
1364
+                        }
1365
+                    }
1366
+                }
1367
+                console.log("执行1",arr)
1368
+                arr1 = arr
1369
+            }else if(this.patientStateVal == 4){
1370
+                let arr = []
1371
+                arr = patientArr
1372
+                for (let i = 0; i < arr.length; i++) {
1373
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
1374
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2))) {
1375
+                            // 删除元素后改变i的值
1376
+                            arr[i].schedules.splice(j--, 1);
1377
+                        }
1378
+                    }
1379
+                }
1380
+                console.log("执行2",arr)
1381
+                arr1 = arr
1382
+            }
1383
+
1384
+            let arr2 = []
1385
+            if(this.treatStateVal == 0){
1386
+                arr2 = JSON.parse(JSON.stringify(arr1))
1387
+            }else if(this.treatStateVal == 1){
1388
+                let arr = []
1389
+                arr = JSON.parse(JSON.stringify(arr1))
1390
+                for (let i = 0; i < arr.length; i++) {
1391
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
1392
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].prescription != null || arr[i].schedules[j].prescription != null ? arr[i].schedules[j].prescription.creater != 0 : false)) {
1393
+                            // 删除元素后改变i的值
1394
+                            arr[i].schedules.splice(j--, 1);
1395
+                        }
1396
+                    }
1397
+                }
1398
+                arr2 = arr
1399
+            }else if(this.treatStateVal == 2){
1400
+                let arr = []
1401
+                arr = JSON.parse(JSON.stringify(arr1))
1402
+                for (let i = 0; i < arr.length; i++) {
1403
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
1404
+                        if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
1405
+                            // 删除元素后改变i的值
1406
+                            arr[i].schedules.splice(j--, 1);
1407
+                        }
1408
+                    }
1409
+                }
1410
+                arr2 = arr
1411
+            }
1412
+            
1413
+
1414
+            let arr3 = []
1415
+            if(this.scheduleStateVal == 0){
1416
+                arr3 = JSON.parse(JSON.stringify(arr2))
1417
+            }else{
1418
+                let arr = []
1419
+                arr = JSON.parse(JSON.stringify(arr2))
1420
+                for (let i = 0; i < arr.length; i++) {
1421
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
1422
+                        if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
1423
+                            // 删除元素后改变i的值
1424
+                            arr[i].schedules.splice(j--, 1);
1425
+                        }
1426
+                    }
1427
+                }
1428
+                arr3 = arr
1429
+                console.log("上午",arr)
1430
+            }
1431
+            
1432
+
1433
+            let arr4 = []
1434
+            if(this.zoneVal == 0){
1435
+                arr4 = JSON.parse(JSON.stringify(arr3))
1436
+            }else{
1437
+                let arr = []
1438
+                arr = JSON.parse(JSON.stringify(arr3))
1439
+                for (let i = 0; i < arr.length; i++) {
1440
+                    if (this.zoneVal != arr[i].zone_id) {
1441
+                    // 删除元素后改变i的值
1442
+                    arr.splice(i--, 1);
1443
+                    }
1444
+                }
1445
+                arr4 = arr
1446
+            }
1447
+            let newArr = []
1448
+            arr4.map(item => {
1449
+            newArr.push(...item.schedules)
1450
+            })
1451
+            this.tableData = newArr
1452
+            console.log('table',this.tableData)
1453
+        },
975 1454
   },
976 1455
   watch: {
977 1456
     "patientInfo.gender": function() {
@@ -1000,6 +1479,8 @@ export default {
1000 1479
     }
1001 1480
   },
1002 1481
   created() {
1482
+    this.getInitData();
1483
+
1003 1484
     var xtuser = this.$store.getters.xt_user;
1004 1485
     this.orgname = xtuser.org.org_name;
1005 1486
     // this.orgname = "遂溪方济医院";
@@ -1043,7 +1524,34 @@ export default {
1043 1524
       this.$message.error("参数不齐");
1044 1525
       return false;
1045 1526
     }
1046
-  }
1527
+  },
1528
+  computed:{
1529
+    filtedSchedules: function() {
1530
+      var search_keyword = this.search_keyword
1531
+      if (search_keyword.length > 0) {
1532
+        var schedules = []
1533
+        for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
1534
+        const scheduleInfo = this.zone_schedules[o_i]
1535
+        var originSchedules = scheduleInfo.schedules
1536
+        if (originSchedules.length == 0) {
1537
+            continue
1538
+        }
1539
+        var filtedSchedules = []
1540
+        for (let s_i = 0; s_i < originSchedules.length; s_i++) {
1541
+            const schedule = originSchedules[s_i]
1542
+            if (schedule.patient.name.indexOf(search_keyword) != -1) {
1543
+            filtedSchedules.push(schedule)
1544
+            // break
1545
+            }
1546
+        }
1547
+        if (filtedSchedules.length > 0) {
1548
+            schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
1549
+        }
1550
+        }
1551
+        return schedules
1552
+      }
1553
+    }
1554
+  },
1047 1555
 };
1048 1556
 </script>
1049 1557
 
@@ -1203,3 +1711,24 @@ export default {
1203 1711
   border-bottom: 1px solid #000;
1204 1712
 }
1205 1713
 </style>
1714
+
1715
+<style lang="scss">
1716
+
1717
+.newContainer{
1718
+  .dialysisPage::-webkit-scrollbar {
1719
+    height: 15px;
1720
+  }
1721
+  
1722
+  .el-date-editor{
1723
+    .el-input__inner{
1724
+      padding-right:0px;
1725
+    }
1726
+  }
1727
+  .el-table td, .el-table th{
1728
+    text-align: center;
1729
+  }
1730
+}
1731
+.newContainer::-webkit-scrollbar{
1732
+  height: 15px !important;
1733
+}
1734
+</style>

+ 310 - 31
src/xt_pages/dialysis/schedualPatient.vue Dosyayı Görüntüle

@@ -4,12 +4,12 @@
4 4
     <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
   </div>
6 6
   <div class="app-container">
7
-    <div class="cell clearfix">
8
-      <!-- <label class="title"><span class="name">病人查询</span> : </label> -->
7
+    <!-- <div class="cell clearfix">
8
+      <label class="title"><span class="name">病人查询</span> : </label>
9 9
       <el-input size="small" style="width: 280px;" v-model.trim="search_input" class="filter-item"/>
10 10
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
11
-    </div>
12
-    <div class="cell clearfix">
11
+    </div> -->
12
+    <!-- <div class="cell clearfix">
13 13
       <label class="title"><span class="name">日期查询</span> : </label>
14 14
       <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
15 15
     </div>
@@ -30,12 +30,54 @@
30 30
           </li>
31 31
         </ul>
32 32
       </div>
33
+    </div> -->
34
+    <div class="cell clearfix">
35
+      <label class="title"><span class="name">患者状态</span> : </label>
36
+      <div class="time ">
37
+        <ul class="">
38
+          <li v-for="option in patient_state" :key="option.value" @click="handleStateChange(option.value)" :class="patientStateVal == option.value ? 'active' : ''" >{{option.label}}
39
+          </li>
40
+        </ul>
41
+      </div>
42
+    </div>
43
+    <div class="cell clearfix">
44
+      <label class="title"><span class="name">治疗状态</span> : </label>
45
+      <div class="time ">
46
+        <ul class="">
47
+          <li v-for="option in treat_state" :key="option.value" @click="handleTreatChange(option.value)" :class="treatStateVal == option.value ? 'active' : ''" >{{option.label}}
48
+          </li>
49
+        </ul>
50
+      </div>
51
+    </div>
52
+    <div class="cell clearfix" style="margin-bottom:10px;">
53
+      <label class="title"><span class="name">其他查询</span> : </label>
54
+      <el-select v-model="schedule_type_selected" placeholder="班次" style="margin-right:10px;" @change="handletimeType">
55
+        <el-option
56
+          v-for="item in schedule_type_options"
57
+          :key="item.value"
58
+          :label="item.text"
59
+          :value="item.value">
60
+        </el-option>
61
+      </el-select>
62
+      <el-select v-model="zone_selected" placeholder="分区" style="margin-right:10px;" @change="handleZoneChange">
63
+        <el-option
64
+          v-for="item in zone_options"
65
+          :key="item.id"
66
+          :label="item.text"
67
+          :value="item.id">
68
+        </el-option>
69
+      </el-select>
70
+      <label class="title"><span class="name">日期查询</span> : </label>
71
+      <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
72
+      <el-input size="small" style="width: 180px;" v-model.trim="search_input" class="filter-item"/>
73
+      <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
33 74
     </div>
34 75
 
35 76
     <div class="PatientArea">
36
-      <div v-for="zone_schedule in filtedSchedules" :key="zone_schedule.zone_id" class="list clearfix">
37
-        <h3 class="title">{{zone_schedule.zone_name}}</h3>
38
-        <patient-box :schedules="zone_schedule.schedules"></patient-box>
77
+      <div v-for="zone_schedule in allPatient" :key="zone_schedule.zone_id" class="list clearfix">
78
+        <!-- <h3 style="width:40px;" class="title">{{zone_schedule.zone_name}}</h3> -->
79
+        <div v-if="zone_schedule.schedules.length > 0 && patientStateVal != 1" style="font-size:16px;font-weight: bold;color: #34495e;margin-right:10px;line-height:30px;">{{zone_schedule.zone_name}}</div>
80
+        <patient-box :schedules="zone_schedule.schedules" :patientStateVal='patientStateVal' style="flex:1"></patient-box>
39 81
       </div>
40 82
       <div class="NoData" v-show="filtedSchedules.length == 0">
41 83
         <img src="@/assets/img/data.jpg" alt="">
@@ -106,7 +148,24 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
106 148
 
107 149
         // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
108 150
         search_keyword: '', // 确定用于搜索的关键字
109
-        search_input: '' // 输入中的关键字
151
+        search_input: '', // 输入中的关键字
152
+
153
+        //
154
+        patient_state:[
155
+          {value: 0,label: '全部'},
156
+          {value: 1,label: '已签到'},
157
+          {value: 2,label: '未签到'},
158
+          {value: 3,label: '已上机'},
159
+          {value: 4,label: '已下机'},
160
+        ],
161
+        patientStateVal: 0,
162
+        treat_state:[
163
+          {value: 0,label: '全部'},
164
+          {value: 1,label: '待开处方'},
165
+          {value: 2,label: '待开小结'},
166
+        ],
167
+        treatStateVal: 0,
168
+        allPatient:[]
110 169
       }
111 170
     },
112 171
     computed: {
@@ -125,7 +184,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
125 184
               const schedule = originSchedules[s_i]
126 185
               if (schedule.patient.name.indexOf(search_keyword) != -1) {
127 186
                 filtedSchedules.push(schedule)
128
-                break
187
+                // break
129 188
               }
130 189
             }
131 190
             if (filtedSchedules.length > 0) {
@@ -187,50 +246,77 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
187 246
     created() {
188 247
       var schedule_type_selected = this.$store.getters.schedule_type_selected
189 248
       var zone_selected = this.$store.getters.zone_selected
249
+      var patient_state_selected = this.$store.getters.patient_state_selected
250
+      var treat_state_selected = this.$store.getters.treat_state_selected
251
+      var selected_date = this.$store.getters.selected_date
190 252
       if (schedule_type_selected) {
191 253
         this.schedule_type_selected = schedule_type_selected.schedule_type_selected
192 254
       }
193 255
       if (zone_selected) {
194 256
         this.zone_selected = zone_selected.zone_selected
195 257
       }
258
+      if (patient_state_selected) {
259
+        this.patientStateVal = patient_state_selected.patient_state_selected
260
+      }
261
+      if (treat_state_selected) {
262
+        this.treatStateVal = treat_state_selected.treat_state_selected
263
+      }
264
+      if(selected_date.selected_date){
265
+        this.selected_date = selected_date.selected_date
266
+      }
267
+      
196 268
       this.getInitData()
269
+      
197 270
     },
198 271
     methods: {
199
-      handletimeType: function(index) {
200
-        this.schedule_type_selected = index
201
-        this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
202
-        this.search_keyword = this.search_input = ''
203
-        // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
204
-        //   zone: this.zone_selected,
205
-        //   schedule_type: this.schedule_type_selected,
206
-        //   schedule_date: this.selected_date,
207
-        // })
208
-      },
209
-      handleZoneChange: function(index) {
210
-        this.zone_selected = index
211
-        this.$store.dispatch('SetZoneSelected', { zone_selected: index })
212
-        this.search_keyword = this.search_input = ''
213
-        // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
214
-        //   zone: this.zone_selected,
215
-        //   schedule_type: this.schedule_type_selected,
216
-        //   schedule_date: this.selected_date,
217
-        // })
218
-      },
219
-      handleScheduleDateChange: function() {
272
+      // handletimeType: function(index) {
273
+      //   this.schedule_type_selected = index
274
+      //   this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
275
+      //   this.search_keyword = this.search_input = ''
276
+      //   // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
277
+      //   //   zone: this.zone_selected,
278
+      //   //   schedule_type: this.schedule_type_selected,
279
+      //   //   schedule_date: this.selected_date,
280
+      //   // })
281
+      // },
282
+      // handleZoneChange: function(index) {
283
+      //   this.zone_selected = index
284
+      //   this.$store.dispatch('SetZoneSelected', { zone_selected: index })
285
+      //   this.search_keyword = this.search_input = ''
286
+      //   // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
287
+      //   //   zone: this.zone_selected,
288
+      //   //   schedule_type: this.schedule_type_selected,
289
+      //   //   schedule_date: this.selected_date,
290
+      //   // })
291
+      // },
292
+      handleScheduleDateChange: function(index) {
293
+        console.log("askdjlkas",index)
220 294
         this.zone_selected = 0
221 295
         this.schedule_type_selected = 0
296
+        this.patientStateVal = 0
297
+        this.treatStateVal = 0
222 298
         this.search_keyword = this.search_input = ''
223 299
         // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
224 300
         //   zone: this.zone_selected,
225 301
         //   schedule_type: this.schedule_type_selected,
226 302
         //   schedule_date: this.selected_date,
227 303
         // })
304
+        this.selected_date = index
305
+        this.$store.dispatch('SetSelectedDate', { selected_date: index })
228 306
         this.requestDialysisSchedules()
229 307
       },
230 308
       searchAction: function() {
231 309
         this.search_keyword = this.search_input
232 310
         this.schedule_type_selected = 0
233 311
         this.zone_selected = 0
312
+        this.treatStateVal = 0
313
+        this.patientStateVal = 0
314
+        if(this.search_input != ''){
315
+          this.allPatient = this.filtedSchedules
316
+        }else{
317
+          this.getData()
318
+        }
319
+        
234 320
       },
235 321
       getInitData: function() {
236 322
         getDialysisRecordInitData().then(rs => {
@@ -244,7 +330,10 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
244 330
               zone_options.push({ id: zone.id, text: zone.name })
245 331
             }
246 332
             this.zone_options = zone_options
247
-            this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
333
+            // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
334
+            this.requestDialysisSchedules()
335
+            
336
+            console.log(1111111111111,this.zone_schedules)
248 337
           } else {
249 338
             this.$message.error(resp.msg)
250 339
           }
@@ -257,6 +346,8 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
257 346
           if (resp.state == 1) {
258 347
             var schedules = resp.data.schedules
259 348
             this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
349
+            this.allPatient = this.filtedSchedules
350
+            this.getData()
260 351
           } else {
261 352
             this.$message.error(resp.msg)
262 353
           }
@@ -286,6 +377,194 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
286 377
           zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
287 378
         }
288 379
         return zone_schedules
380
+      },
381
+
382
+      //
383
+      handleStateChange: function(index) {
384
+        this.patientStateVal = index
385
+        this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
386
+        this.search_keyword = this.search_input = ''
387
+        this.getData()
388
+      },
389
+      handleTreatChange: function(index) {
390
+        this.treatStateVal = index
391
+        this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
392
+        this.search_keyword = this.search_input = ''
393
+        this.getData()
394
+      },
395
+      handletimeType: function(index) {
396
+        this.schedule_type_selected = index
397
+        this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
398
+        this.search_keyword = this.search_input = ''
399
+        this.getData()
400
+      },
401
+      //分区
402
+      handleZoneChange: function(index) {
403
+        this.zone_selected = index
404
+        this.$store.dispatch('SetZoneSelected', { zone_selected: index })
405
+        this.search_keyword = this.search_input = ''
406
+        this.getData()
407
+      },
408
+      getData(){
409
+    
410
+        let patientArr = []
411
+        patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
412
+        // for (let i = 0; i < patientArr.length; i++) {
413
+          
414
+        //   for (let j = 0; j < patientArr[i].schedules.length; j++) {
415
+        //     if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
416
+        //       // 删除元素后改变i的值
417
+              
418
+        //       console.log("候诊区",patientArr[i].schedules[j])
419
+        //       patientArr[i].schedules.splice(j--, 1);
420
+        //     }
421
+        //   }
422
+        // }
423
+        let arr1 = []
424
+        if(this.patientStateVal == 0){
425
+          arr1 = patientArr
426
+        }else if(this.patientStateVal == 1){
427
+          let arr = []
428
+          arr = patientArr
429
+          for (let i = 0; i <arr.length; i++) {
430
+            for (let j = 0; j < arr[i].schedules.length; j++) {
431
+              if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis == null || (arr[i].schedules[j].assessment_before_dislysis.weight_before == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
432
+                // 删除元素后改变i的值
433
+                arr[i].schedules.splice(j--, 1);
434
+              }
435
+            }
436
+          }
437
+          console.log("执行1",arr)
438
+          arr1 = arr
439
+        }else if(this.patientStateVal == 2){
440
+          let arr = []
441
+          arr = patientArr
442
+          for (let i = 0; i < arr.length; i++) {
443
+            for (let j = 0; j < arr[i].schedules.length; j++) {
444
+              if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis != null && (arr[i].schedules[j].assessment_before_dislysis.weight_before != 0 || arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure != 0 || arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure != 0))) {
445
+                // 删除元素后改变i的值
446
+                console.log('几次')
447
+                arr[i].schedules.splice(j--, 1);
448
+              }
449
+            }
450
+          }
451
+          console.log("执行2",arr)
452
+          arr1 = arr
453
+        }else if(this.patientStateVal == 3){
454
+          let arr = []
455
+          arr = patientArr
456
+          for (let i = 0; i <arr.length; i++) {
457
+            for (let j = 0; j < arr[i].schedules.length; j++) {
458
+              if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1))) {
459
+                // 删除元素后改变i的值
460
+                arr[i].schedules.splice(j--, 1);
461
+              }
462
+            }
463
+          }
464
+          console.log("执行1",arr)
465
+          arr1 = arr
466
+        }else if(this.patientStateVal == 4){
467
+          let arr = []
468
+          arr = patientArr
469
+          for (let i = 0; i < arr.length; i++) {
470
+            for (let j = 0; j < arr[i].schedules.length; j++) {
471
+              if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2))) {
472
+                // 删除元素后改变i的值
473
+                arr[i].schedules.splice(j--, 1);
474
+              }
475
+            }
476
+          }
477
+          console.log("执行2",arr)
478
+          arr1 = arr
479
+        }
480
+
481
+        let arr2 = []
482
+        if(this.treatStateVal == 0){
483
+          arr2 = JSON.parse(JSON.stringify(arr1))
484
+        }else if(this.treatStateVal == 1){
485
+          let arr = []
486
+          arr = JSON.parse(JSON.stringify(arr1))
487
+          for (let i = 0; i < arr.length; i++) {
488
+            for (let j = 0; j < arr[i].schedules.length; j++) {
489
+              if (arr[i].schedules.length > 0 && (arr[i].schedules[j].prescription != null || arr[i].schedules[j].prescription != null ? arr[i].schedules[j].prescription.creater != 0 : false)) {
490
+                // 删除元素后改变i的值
491
+                arr[i].schedules.splice(j--, 1);
492
+              }
493
+            }
494
+          }
495
+          arr2 = arr
496
+        }else if(this.treatStateVal == 2){
497
+          let arr = []
498
+          arr = JSON.parse(JSON.stringify(arr1))
499
+          for (let i = 0; i < arr.length; i++) {
500
+            for (let j = 0; j < arr[i].schedules.length; j++) {
501
+              if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
502
+                // 删除元素后改变i的值
503
+                arr[i].schedules.splice(j--, 1);
504
+              }
505
+            }
506
+          }
507
+          arr2 = arr
508
+        }
509
+        
510
+
511
+        let arr3 = []
512
+        if(this.schedule_type_selected == 0){
513
+          arr3 = JSON.parse(JSON.stringify(arr2))
514
+        }else{
515
+          let arr = []
516
+          arr = JSON.parse(JSON.stringify(arr2))
517
+          for (let i = 0; i < arr.length; i++) {
518
+            for (let j = 0; j < arr[i].schedules.length; j++) {
519
+              if (this.schedule_type_selected != arr[i].schedules[j].schedule_type) {
520
+                // 删除元素后改变i的值
521
+                arr[i].schedules.splice(j--, 1);
522
+              }
523
+            }
524
+          }
525
+          arr3 = arr
526
+        }
527
+        
528
+
529
+        let arr4 = []
530
+        if(this.zone_selected == 0){
531
+          arr4 = JSON.parse(JSON.stringify(arr3))
532
+        }else{
533
+          let arr = []
534
+          arr = JSON.parse(JSON.stringify(arr3))
535
+          for (let i = 0; i < arr.length; i++) {
536
+            if (this.zone_selected != arr[i].zone_id) {
537
+              // 删除元素后改变i的值
538
+              arr.splice(i--, 1);
539
+            }
540
+          }
541
+          arr4 = arr
542
+        }
543
+        
544
+        
545
+        if(this.patientStateVal == 1){
546
+          arr4.map((item,index) => {
547
+            if(index != 0){
548
+              arr4[0].schedules.push(...arr4[index].schedules)
549
+              arr4[index].schedules = []
550
+            }
551
+          })
552
+          arr4[0].schedules.map(item => {
553
+            item.created_time = item.assessment_before_dislysis.created_time
554
+          })
555
+          arr4[0].schedules.sort(this.compare('created_time'))
556
+          this.allPatient = arr4
557
+          console.log("arr4",arr4)
558
+        }else{
559
+          this.allPatient = arr4
560
+        }
561
+      },
562
+      compare(property){
563
+        return function(a,b){
564
+          var value1 = a[property];
565
+          var value2 = b[property];
566
+          return value1 - value2;
567
+        }
289 568
       }
290 569
     }
291 570
   }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 490 - 494
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


+ 33 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderEighteen.vue Dosyayı Görüntüle

@@ -95,8 +95,8 @@
95 95
             <td colspan="3" style="border-left:1px solid #000;padding-left:5px">
96 96
               治疗时间:
97 97
               <span>
98
-                &nbsp;{{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0" }}小时
99
-                {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0" }}分钟
98
+                &nbsp;{{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "0" }}小时
99
+                {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}分钟
100 100
               </span>
101 101
             </td>
102 102
           </tr>
@@ -163,14 +163,14 @@
163 163
               <span v-if="setAdminUserES(prescription.creater) == ''">
164 164
                 {{ getAdminUser(prescription.creater) }}
165 165
               </span>
166
-              <img class="es-img" :src="setAdminUserES(prescription.creater)" alt srcset v-else />
166
+              <img class="es-img" style="height:30px;" :src="setAdminUserES(prescription.creater)" alt srcset v-else />
167 167
             </td>
168 168
           </tr>
169 169
           <tr style="text-align:left">
170
-            <td colspan="2" style="padding-left:5px">
170
+            <!-- <td colspan="2" style="padding-left:5px">
171 171
               透析机:{{ predialysis.machine_type ? predialysis.machine_type : "" }}
172
-            </td>
173
-            <td colspan="2" style="padding-left:5px;border-left:1px solid #000;">
172
+            </td> -->
173
+            <td colspan="4" style="padding-left:5px;border-left:1px solid #000;">
174 174
               透析(滤)器:{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
175 175
             </td>
176 176
             <td colspan="7" style="padding-left:5px;border-left:1px solid #000;">
@@ -193,14 +193,15 @@
193 193
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时插管') > -1 ? true : false" showValue="临时插管"></label-box>&nbsp;
194 194
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期插管') > -1 ? true : false" showValue="长期插管"></label-box>&nbsp;
195 195
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('移植血管') > -1 ? true : false" showValue="移植血管"></label-box>&nbsp;
196
-              <label-box :isChecked="['自体内瘘','临时插管','长期插管','移植血管'].indexOf(predialysis.blood_access_part_opera_name) == -1 ? true : false" showValue="其他"></label-box>&nbsp;
196
+              <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1 ? true : false" showValue="直穿"></label-box>&nbsp;
197
+              <label-box :isChecked="['自体内瘘','临时插管','长期插管','移植血管','直穿'].indexOf(predialysis.blood_access_part_opera_name) == -1 ? true : false" showValue="其他"></label-box>&nbsp;
197 198
               <span style="width:50px;display: inline-block;"></span>
198 199
               穿刺者:
199 200
               <span style="width:50px;display: inline-block;">
200 201
                 <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
201 202
                   {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}
202 203
                 </span>
203
-                <img class="es-img" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt srcset v-else />
204
+                <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt srcset v-else />
204 205
               </span>
205 206
             </td>
206 207
           </tr>
@@ -396,19 +397,19 @@
396 397
       <table class="print-table" style="border:1px solid #000;border-top:none;border-bottom:none">
397 398
         <tr style="height:30px;line-height:30px;">
398 399
           <td width="70">血管通路:</td>
399
-          <td width="260">
400
+          <td width="250">
400 401
             <div>
401 402
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路出血') > -1 ? true : false" showValue='通路出血'></label-box>
402
-              &nbsp;
403
+              
403 404
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路良好') > -1 ? true : false" showValue='良好'></label-box>
404
-              &nbsp;
405
+              
405 406
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路欠佳') > -1 ? true : false" showValue='欠佳'></label-box>
406
-              &nbsp;
407
+              
407 408
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路不畅') > -1 ? true : false" showValue='不畅'></label-box>
408 409
             </div>
409 410
           </td>
410 411
 
411
-          <td></td>
412
+          <td width='10'></td>
412 413
           <td width="50">插管:</td>
413 414
           <td width="150">
414 415
             <div>
@@ -419,7 +420,7 @@
419 420
 
420 421
             </div>
421 422
           </td>
422
-          <td></td>
423
+          <td width='10'></td>
423 424
           <td width="70">出口皮肤:</td>
424 425
           <td width="240">
425 426
             <label-box :isChecked="afterdialysis.catheter.indexOf('良好') > -1 ? true : false" showValue='良好'></label-box>
@@ -436,36 +437,36 @@
436 437
       <table class="print-table" style="border:1px solid #000;border-top:none;border-bottom:none">
437 438
         <tr style="height:30px;line-height:30px;">
438 439
           <td width="70">内瘘情况:</td>
439
-          <td width="540">
440
-            <div>
440
+          <td width="520">
441
+            <div style="text-align:left">
441 442
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('有震颤') > -1 ? true : false" showValue='有'></label-box>
442
-              &nbsp;
443
+              
443 444
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('无震颤') > -1 ? true : false" showValue='无'></label-box>
444
-              &nbsp;
445
+             
445 446
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤减弱') > -1 ? true : false" showValue='震颤减弱'></label-box>
446
-              &nbsp;
447
+              
447 448
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('出血') > -1 ? true : false" showValue='出血'></label-box>
448
-              &nbsp;
449
+              
449 450
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('瘀斑') > -1 ? true : false" showValue='瘀斑'></label-box>
450
-              &nbsp;
451
+              
451 452
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('血痂') > -1 ? true : false" showValue='血痂'></label-box>
452
-              &nbsp;
453
+              
453 454
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('血管瘤') > -1 ? true : false" showValue='血管瘤'></label-box>
454
-              &nbsp;
455
+              
455 456
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('发红') > -1 ? true : false" showValue='发红'></label-box>
456
-              &nbsp;
457
+              
457 458
               <label-box :isChecked="afterdialysis.internal_fistula.indexOf('感染') > -1 ? true : false" showValue='感染'></label-box>
458 459
             </div>
459 460
           </td>
460 461
 
461 462
           <td></td>
462 463
           <td width="120">透析器凝血情况:</td>
463
-          <td width="200">
464
+          <td width="220">
464 465
             <div>
465
-              <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false):false" showValue="0级"></label-box>&nbsp;
466
-              <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false):false" showValue="1级"></label-box>&nbsp;
467
-              <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false):false" showValue="2级"></label-box>&nbsp;
468
-              <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false):false" showValue="3级"></label-box>&nbsp;
466
+              <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false):false" showValue="0级"></label-box>
467
+              <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false):false" showValue="1级"></label-box>
468
+              <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false):false" showValue="2级"></label-box>
469
+              <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false):false" showValue="3级"></label-box>
469 470
             </div>
470 471
           </td>
471 472
           <td></td>
@@ -487,7 +488,7 @@
487 488
               &nbsp;
488 489
               <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
489 490
               <span v-if="doctorForm.url !== ''">
490
-                <img class="es-img" :src="doctorForm.url" />
491
+                <img class="es-img" :src="doctorForm.url" style="height:30px;" />
491 492
               </span>
492 493
             </span>
493 494
             核对护士
@@ -496,7 +497,7 @@
496 497
               <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
497 498
                 {{ getAdminUser(check == null ? 0 : check.modifier) }}
498 499
               </span>
499
-              <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
500
+              <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
500 501
             </span>
501 502
             护士签名
502 503
             <span style="display: inline-block;width:100px;text-align: left;">
@@ -505,7 +506,7 @@
505 506
                 <span v-if="setAdminUserES(doctor_advices[0].execution_staff) == ''">
506 507
                   {{ getAdminUser(doctor_advices[0].execution_staff) }}
507 508
                 </span>
508
-                <img class="es-img" :src="setAdminUserES(doctor_advices[0].execution_staff)" alt srcset v-else />
509
+                <img class="es-img" style="height:30px;" :src="setAdminUserES(doctor_advices[0].execution_staff)" alt srcset v-else />
509 510
               </p>
510 511
             </span>
511 512
           </td>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1265 - 1265
src/xt_pages/dialysis/template/DialysisPrintOrderFifteen.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 2114 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue


+ 61 - 51
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue Dosyayı Görüntüle

@@ -5,12 +5,12 @@
5 5
       <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液净化治疗记录单</div>
6 6
       <table class="print-table" border="1" style="margin-top: 10px;">
7 7
         <tr>
8
-          <td style="text-align:left;">
8
+          <td style="text-align:left;width:150px;">
9 9
             <span style="display:inline-block;margin-left:15px;">
10 10
               {{getDatge(queryParams.xtdate)}}
11 11
             </span>
12 12
           </td>
13
-          <td style="text-align:center;">
13
+          <td style="text-align:center;width:140px;">
14 14
             姓名:
15 15
             <span style="display:inline-block;margin-left:10px;">
16 16
               {{patientInfo.name}}
@@ -76,7 +76,7 @@
76 76
           </td>
77 77
         </tr>
78 78
         <tr>
79
-          <td style="text-align:left;" colspan="2">
79
+          <td style="text-align:left;" colspan="3">
80 80
             <span style="display:inline-block;margin-left:15px;">治疗方式:</span>
81 81
             <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;
82 82
             <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
@@ -84,7 +84,7 @@
84 84
             <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>&nbsp;
85 85
             <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
86 86
           </td>
87
-          <td style="text-align:left;" colspan="5">
87
+          <td style="text-align:left;" colspan="4">
88 88
             <span style="display:inline-block;margin-left:15px;">诊断: {{ patientInfo.diagnose }}</span>
89 89
           </td>
90 90
         </tr>
@@ -95,14 +95,19 @@
95 95
               {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
96 96
             </span>
97 97
           </td>
98
-          <td style="text-align:left;" colspan="1">
98
+          <td style="text-align:left;" colspan="2">
99 99
             <span style="display:inline-block;margin-left:15px;">
100
-              电导率:{{
101
-              prescription.conductivity ? prescription.conductivity : "/"
102
-              }}&nbsp;(mS/cm)
100
+              透后净体重:{{
101
+              afterdialysis.weight_after
102
+              ? parseFloat(
103
+              afterdialysis.weight_after -
104
+              afterdialysis.additional_weight
105
+              ).toFixed(1)
106
+              : "/"
107
+              }}kg
103 108
             </span>
104 109
           </td>
105
-          <td style="text-align:left;" colspan="4">
110
+          <td style="text-align:left;" colspan="3">
106 111
             <span style="display:inline-block;margin-left:15px;">
107 112
               Na:
108 113
               {{
@@ -146,20 +151,17 @@
146 151
               prescription.target_ultrafiltration
147 152
               ? prescription.target_ultrafiltration
148 153
               : "/"
149
-              }}L
154
+              }}ml
150 155
             </span>
151 156
           </td>
152
-          <td style="text-align:left;" colspan="6">
153
-            <span style="display:inline-block;margin-left:15px;">
154
-              <label-box :isChecked="anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
155
-            </span>
156
-            <span style="display:inline-block;margin-left:15px;">
157
-              <label-box :isChecked="anticoagulant == 7 ? true : false" showValue="低分子肝素钠"></label-box>
157
+          <td style="text-align:left;padding-left:15px;" colspan="6">
158
+            
159
+            <span style="display:inline-block;">
160
+              <label-box :isChecked="anticoagulant == 7 ? true : false" showValue="低分子肝素钠"></label-box>:
158 161
             </span>
159
-            <span style="display:inline-block;margin-left:5px;">
160
-                :
162
+            <span style="display:inline-block;">
161 163
                 <div style="display:inline-block;width:30px;text-align:center">
162
-                    {{ anticoagulant == 7 && prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }}
164
+                    {{ anticoagulant == 7 && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
163 165
                 </div>
164 166
                 <span v-if="prescription.anticoagulant == 5">mg</span>
165 167
                 <span v-if="prescription.anticoagulant == 4">mg</span>
@@ -169,10 +171,10 @@
169 171
                 <span v-if="prescription.anticoagulant == 6">iu</span>
170 172
                 <span v-if="prescription.anticoagulant == 7">iu</span>
171 173
             </span>
172
-            <span style="display:inline-block;margin-left:15px;">
174
+            <span style="display:inline-block;">
173 175
                 <label-box :isChecked="anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
174 176
             </span>
175
-            <span style="display:inline-block;margin-left:5px;">
177
+            <span style="display:inline-block;">
176 178
                 首剂:
177 179
                 <div style="display:inline-block;width:30px;text-align:center">
178 180
                     {{ anticoagulant == 2 && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
@@ -185,7 +187,7 @@
185 187
                 <span v-if="prescription.anticoagulant == 6">iu</span>
186 188
                 <span v-if="prescription.anticoagulant == 7">iu</span>
187 189
             </span>
188
-            <span style="display:inline-block;margin-left:5px;">
190
+            <span style="display:inline-block;">
189 191
                 维持:
190 192
                 <div style="display:inline-block;width:30px;text-align:center">
191 193
                     {{ anticoagulant == 2 && prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "/" }}
@@ -198,30 +200,38 @@
198 200
                 <span v-if="prescription.anticoagulant == 6">iu/h</span>
199 201
                 <span v-if="prescription.anticoagulant == 7">iu/h</span>
200 202
             </span>
201
-            
203
+            <span style="display:inline-block;">
204
+                总量:
205
+                <div style="display:inline-block;width:30px;text-align:center">
206
+                    {{ anticoagulant == 2 && prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }}
207
+                </div>
208
+                <span v-if="prescription.anticoagulant == 5">mg</span>
209
+                <span v-if="prescription.anticoagulant == 4">mg</span>
210
+                <span v-if="prescription.anticoagulant == 3">iu</span>
211
+                <span v-if="prescription.anticoagulant == 2">mg</span>
212
+                <span v-if="prescription.anticoagulant == 1">mg</span>
213
+                <span v-if="prescription.anticoagulant == 6">iu</span>
214
+                <span v-if="prescription.anticoagulant == 7">iu</span>
215
+            </span>
216
+            <span style="display:inline-block;">
217
+              <label-box :isChecked="anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
218
+            </span>
202 219
           </td>
203 220
         </tr>
204 221
         <tr>
205 222
           <td style="text-align:left;" colspan="1">
206 223
             <span style="display:inline-block;margin-left:15px;">
207 224
               透后体重:
208
-              {{
209
-              afterdialysis.weight_after
210
-              ? parseFloat(
211
-              afterdialysis.weight_after -
212
-              afterdialysis.additional_weight
213
-              ).toFixed(1)
214
-              : "/"
215
-              }}kg
225
+              {{ afterdialysis.weight_after ? afterdialysis.weight_after : '/' }}kg
216 226
             </span>
217 227
           </td>
218 228
           <td style="text-align:left;" colspan="1">
219 229
             <span style="display:inline-block;margin-left:15px;">
220
-              实际脱水量:{{
230
+              净脱水量:{{
221 231
               afterdialysis.actual_ultrafiltration
222 232
               ? afterdialysis.actual_ultrafiltration
223 233
               : "/"
224
-              }}L
234
+              }}ml
225 235
             </span>
226 236
           </td>
227 237
           <td style="text-align:left;" colspan="2">
@@ -377,7 +387,7 @@
377 387
           </td>
378 388
         </tr>
379 389
         <tr>
380
-          <td colspan="2" style="text-align:left;">
390
+          <td colspan="3" style="text-align:left;">
381 391
             <span style="display:inline-block;margin-left:15px;">食欲:</span>
382 392
             <label-box
383 393
               :isChecked="receiverTreatmentAccess.appetite == 1 ? true : false"
@@ -400,7 +410,7 @@
400 410
               showValue="腹泻"
401 411
             ></label-box>&nbsp;
402 412
           </td>
403
-          <td colspan="2" style="text-align:left;">
413
+          <td colspan="1" style="text-align:left;">
404 414
             <span style="display:inline-block;margin-left:15px;">
405 415
               体温:{{
406 416
               predialysis.temperature ? predialysis.temperature : "/"
@@ -626,13 +636,13 @@
626 636
           <td style="text-align:left;" colspan="8">
627 637
             <span style="display:inline-block;margin-left:15px;">使用特殊药物:</span>
628 638
             <label-box :isChecked="prescription.special_medicine == 1 ? true : false" showValue="无"></label-box>
629
-            <label-box :isChecked="prescription.special_medicine == 2 ? true : false" showValue="有"></label-box>:
639
+            <label-box :isChecked="prescription.special_medicine != 1 && prescription.special_medicine != '' ? true : false" showValue="有"></label-box>:
630 640
             <label-box
631
-              :isChecked="prescription.special_medicine == 3 ? true : false"
641
+              :isChecked="prescription.special_medicine == 2 ? true : false"
632 642
               showValue="降压药"
633 643
             ></label-box>
634 644
             <label-box
635
-              :isChecked="prescription.special_medicine == 4 ? true : false"
645
+              :isChecked="prescription.special_medicine == 3 ? true : false"
636 646
               showValue="抗凝药"
637 647
             ></label-box>
638 648
             其他:{{ prescription.special_medicine_other }}
@@ -731,11 +741,11 @@
731 741
           </td>
732 742
           <td style="min-width:60px">
733 743
             超滤率
734
-            <br />L/h
744
+            <br />ml/h
735 745
           </td>
736 746
           <td style="min-width:60px">
737 747
             超滤量
738
-            <br />L
748
+            <br />ml
739 749
           </td>
740 750
           <!-- <td style="min-width:60px">
741 751
             NA⁺
@@ -914,7 +924,7 @@
914 924
               <label-box
915 925
                 showValue="存在"
916 926
                 :isChecked="
917
-                  afterdialysis.internal_fistula.indexOf('震颤-存在') > -1
927
+                  afterdialysis.internal_fistula.indexOf('存在') > -1
918 928
                     ? true
919 929
                     : false
920 930
                 "
@@ -922,15 +932,15 @@
922 932
               <label-box
923 933
                 showValue="减弱"
924 934
                 :isChecked="
925
-                  afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1
935
+                  afterdialysis.internal_fistula.indexOf('减弱') > -1
926 936
                     ? true
927 937
                     : false
928 938
                 "
929 939
               ></label-box>
930 940
               <label-box
931
-                showValue="不存在"
941
+                showValue="消失"
932 942
                 :isChecked="
933
-                  afterdialysis.internal_fistula.indexOf('震颤-无') > -1
943
+                  afterdialysis.internal_fistula.indexOf('消失') > -1
934 944
                     ? true
935 945
                     : false
936 946
                 "
@@ -938,10 +948,10 @@
938 948
             </span>&nbsp;
939 949
             <span>
940 950
               透析器及管路凝血情况:
941
-              <label-box showValue="0级" :isChecked="afterdialysis.cruor.indexOf('透析器-0') > -1"></label-box>
942
-              <label-box showValue="1级" :isChecked="afterdialysis.cruor.indexOf('透析器-1级') > -1"></label-box>
943
-              <label-box showValue="2级" :isChecked="afterdialysis.cruor.indexOf('透析器-2级') > -1"></label-box>
944
-              <label-box showValue="3级" :isChecked="afterdialysis.cruor.indexOf('透析器-3级') > -1"></label-box>
951
+              <label-box showValue="0级" :isChecked="afterdialysis.cruor.indexOf('透析器-0') > -1"></label-box>
952
+              <label-box showValue="1级" :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1"></label-box>
953
+              <label-box showValue="2级" :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1"></label-box>
954
+              <label-box showValue="3级" :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1"></label-box>
945 955
             </span>
946 956
           </td>
947 957
         </tr>
@@ -1060,7 +1070,7 @@
1060 1070
         </tr>
1061 1071
         <tr>
1062 1072
           <td style="text-align:left;" colspan="6">
1063
-            <span style="display:inline-block;margin-left:15px;">特殊记录:{{ special_record }}</span>
1073
+            <span style="display:inline-block;margin-left:15px;">特殊记录:{{ dialysis_summary ? dialysis_summary : "" }}</span>
1064 1074
           </td>
1065 1075
         </tr>
1066 1076
         <tr>
@@ -1265,7 +1275,7 @@ export default {
1265 1275
       vascularAccess: [],
1266 1276
       nursing_record: '',
1267 1277
       special_record: '',
1268
-      newTableAdvice:[]
1278
+      newTableAdvice: []
1269 1279
     }
1270 1280
   },
1271 1281
   methods: {
@@ -1453,7 +1463,7 @@ export default {
1453 1463
           var doctoradvce = response.data.data.doctorAdvice
1454 1464
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo
1455 1465
           this.newTableAdvice = response.data.data.doctorAdevieInfo
1456
-          console.log("哈哈哈哈哈哈哈哈哈",this.newTableAdvice)
1466
+          console.log('哈哈哈哈哈哈哈哈哈', this.newTableAdvice)
1457 1467
           var tableAdvice = doctorAdevieInfo
1458 1468
           console.log('tableAdvice', tableAdvice)
1459 1469
           // console.log('医生', tableAdvice.length)

Dosya farkı çok büyük olduğundan ihmal edildi
+ 345 - 347
src/xt_pages/dialysis/template/DialysisPrintOrderSixteen.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 473 - 456
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue


+ 110 - 8
src/xt_pages/upload/fast/FastCountry.vue Dosyayı Görüntüle

@@ -1,16 +1,45 @@
1 1
 <template>
2 2
   <div class="patient-container">
3
-    <fast-patients-sidebar
3
+    <!-- <fast-patients-sidebar
4 4
       :id="patientID"
5 5
       v-on:patient="patientInfoClick()"
6 6
       v-on:inspection="inspectionClick()"
7
-    ></fast-patients-sidebar>
7
+    ></fast-patients-sidebar> -->
8 8
     <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
9
-    <one ref="one" v-if="isShow == 1" :patientID="patientID" :is-edit='true' :class='panelClass' @></one>
10
-    <two ref="two" v-if="isShow == 2"
11
-         :id="patientID"
12
-         :is-edit="true"
13
-         :class="panelClass"></two>
9
+    <el-container>
10
+      <div style="width:170px">
11
+        <el-form :inline="true" :model="listQuery">
12
+          <el-form-item label style="margin-bottom:0;">
13
+            <el-input v-model.trim="searchVal" placeholder="姓名/透析号" style="width:70%"></el-input>
14
+            <el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>
15
+          </el-form-item>
16
+        </el-form>
17
+        <div style="width:170px">
18
+          <div class="tableTitle">患者列表</div>
19
+          <el-table :data="tableData" border style="width: 100%;" height="500">
20
+            <el-table-column prop="date" label="日期" width="80"></el-table-column>
21
+            <el-table-column prop="name" label="姓名" width="90"></el-table-column>
22
+          </el-table>
23
+        </div>
24
+      </div>
25
+      
26
+      <div style="margin-left:20px;flex:1;" >
27
+        <div class="cell clearfix">
28
+          <div class="time">
29
+            <ul class="newUl">
30
+              <li
31
+                :class="item.state == wayType ? 'active' : ''"
32
+                @click="chooseWay(item.state)"
33
+                v-for="item in way"
34
+                :key="item.value"
35
+              >{{ item.label }}</li>
36
+            </ul>
37
+          </div>
38
+        </div>
39
+        <one ref="one" v-if="wayType == 0" :patientID="patientID" :is-edit='true' style="margin-top:28px;" @></one>
40
+        <two ref="two" v-if="wayType == 1" :id="patientID" :is-edit="true" style="margin-top:28px;"></two>
41
+      </div>
42
+    </el-container>
14 43
   </div>
15 44
 </template>
16 45
 
@@ -38,7 +67,63 @@
38 67
         patientInfo: {
39 68
           id: 0
40 69
         },
41
-        isShow: 1
70
+        isShow: 1,
71
+        tableData: [
72
+          {
73
+              date: "2016",
74
+              name: "王小虎"
75
+          },
76
+          {
77
+              date: "2016",
78
+              name: "王小虎"
79
+          },
80
+          {
81
+              date: "2016",
82
+              name: "王小虎"
83
+          },
84
+          {
85
+              date: "2016",
86
+              name: "王小虎"
87
+          },
88
+          {
89
+              date: "2016",
90
+              name: "王小虎"
91
+          },
92
+          {
93
+              date: "2016",
94
+              name: "王小虎"
95
+          },
96
+          {
97
+              date: "2016",
98
+              name: "王小虎"
99
+          },
100
+          {
101
+              date: "2016",
102
+              name: "王小虎"
103
+          },
104
+          {
105
+              date: "2016",
106
+              name: "王小虎"
107
+          },
108
+          {
109
+              date: "2016",
110
+              name: "王小虎"
111
+          },
112
+          {
113
+              date: "2016",
114
+              name: "王小虎"
115
+          },
116
+          {
117
+              date: "2016",
118
+              name: "王小虎"
119
+          }
120
+        ],
121
+        searchVal:'',
122
+        way: [
123
+            { value: 0, label: "基本信息", state: 0 },
124
+            { value: 1, label: "检验检查", state: 1 },
125
+        ],
126
+        wayType: 0,
42 127
       }
43 128
     },
44 129
     created() {
@@ -52,6 +137,9 @@
52 137
       }
53 138
     },
54 139
     methods: {
140
+      chooseWay(way) {
141
+        this.wayType = way;
142
+      },
55 143
       getList(type) {
56 144
         fetchAllList().then(response => {
57 145
           if (response.data.state == 1) {
@@ -150,3 +238,17 @@
150 238
     }
151 239
   }
152 240
 </script>
241
+
242
+<style lang="scss" scoped>
243
+.tableTitle {
244
+  font-size: 16px;
245
+  color: #000;
246
+  font-weight: bold;
247
+  line-height: 40px;
248
+}
249
+.newUl{
250
+  li{
251
+    padding:10px 20px !important;
252
+  }
253
+}
254
+</style>

+ 7 - 4
src/xt_pages/upload/fast/FastPatientsSidebar.vue Dosyayı Görüntüle

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <!-- <div> -->
3 3
   <div class="patient-menu">
4
-    <el-autocomplete
4
+    <!-- <el-autocomplete
5 5
       style="margin:16px 5px"
6 6
       popper-class="my-autocomplete"
7 7
       v-model.trim="value"
@@ -38,8 +38,10 @@
38 38
       :default-expanded-keys="[defaultActive]"
39 39
       @node-click="handleNodeClick"
40 40
     >
41
-    </el-tree>
41
+    </el-tree> -->
42 42
     <!-- </div> -->
43
+
44
+    
43 45
   </div>
44 46
 </template>
45 47
 <script>
@@ -80,7 +82,8 @@ export default {
80 82
             }
81 83
           ]
82 84
         }
83
-      ]
85
+      ],
86
+      
84 87
     };
85 88
   },
86 89
   methods: {
@@ -162,7 +165,7 @@ export default {
162 165
 <style>
163 166
 .patient-menu {
164 167
   float: left;
165
-  width: 14%;
168
+  width: 170px;
166 169
 }
167 170
 .patient-menu .el-tree-node__content {
168 171
   font-size: 14px;

+ 744 - 28
src/xt_pages/upload/fast/FastProvince.vue Dosyayı Görüntüle

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div class="patient-container">
2
+  <div class="fastProvince">
3 3
     <el-dialog
4 4
       title="提示"
5 5
       :visible.sync="dialogVisible"
@@ -18,28 +18,136 @@
18 18
   </span>
19 19
     </el-dialog>
20 20
 
21
-    <div class="cell clearfix">
22
-      <el-form :model="form" ref="ruleForm" label-width="100px" class="demo-ruleForm" style="text-align: center">
23
-        <el-form-item label="地区">
24
-          <el-select v-model="form.province" clearable filterable placeholder="请选择" @change="changeProvince">
25
-            <el-option
26
-              v-for="item in provinces"
27
-              :key="item.id"
28
-              :label="item.name"
29
-              :value="item.id">
30
-            </el-option>
31
-          </el-select>
32
-          <el-select v-model="form.city" disabled filterable placeholder="请选择" >
33
-            <el-option
34
-              v-for="item in citys"
35
-              :key="item.id"
36
-              :label="item.name"
37
-              :value="item.id">
38
-            </el-option>
39
-          </el-select>
40
-        </el-form-item>
41
-      </el-form>
21
+    
22
+    
23
+    
24
+    <div style="flex:1">
25
+      <div class="newContainer">
26
+        <div style="width:270px">
27
+          <div class="cell clearfix">
28
+            <el-form :model="form" ref="ruleForm" class="demo-ruleForm" style="text-align: center">
29
+              <el-form-item>
30
+                <el-select v-model="form.province" clearable filterable placeholder="请选择省份" @change="changeProvince" style="width:270px;">
31
+                  <el-option
32
+                    v-for="item in provinces"
33
+                    :key="item.id"
34
+                    :label="item.name"
35
+                    :value="item.id">
36
+                  </el-option>
37
+                </el-select>
38
+              </el-form-item>
39
+            </el-form>
40
+          </div>
41
+          <div v-if="this.form.province == 13">
42
+            <div class="cell clearfix" style="margin-bottom:10px;" >
43
+              <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 130px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
44
+              <el-input size="small" style="width:80px;" v-model.trim="search_input" class="filter-item"/>
45
+              <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
46
+            </div>
47
+            <div class="cell clearfix" style="margin-bottom:10px;">
48
+              <el-select v-model="patientStateVal" placeholder="全部患者状态" style="width:130px;margin-right:10px;" @change="handleStateChange">
49
+                <el-option
50
+                  v-for="item in patient_state"
51
+                  :key="item.value"
52
+                  :label="item.label"
53
+                  :value="item.value">
54
+                </el-option>
55
+              </el-select>
56
+              <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="width:130px;" @change="handleTreatChange">
57
+                <el-option
58
+                  v-for="item in treat_state"
59
+                  :key="item.value"
60
+                  :label="item.label"
61
+                  :value="item.value">
62
+                </el-option>
63
+              </el-select>
64
+            </div>
65
+            <div class="cell clearfix" style="margin-bottom:10px;">
66
+              <el-select v-model="scheduleStateVal" placeholder="班次" style="width:130px;margin-right:10px;" @change="handletimeType">
67
+                <el-option
68
+                  v-for="item in schedule_options"
69
+                  :key="item.value"
70
+                  :label="item.label"
71
+                  :value="item.value">
72
+                </el-option>
73
+              </el-select>
74
+              <el-select v-model="zoneVal" placeholder="分区" style="width:130px;" @change="handleZoneChange">
75
+                <el-option
76
+                  v-for="item in zone_options"
77
+                  :key="item.id"
78
+                  :label="item.text"
79
+                  :value="item.id">
80
+                </el-option>
81
+              </el-select>
82
+            </div>
83
+            <div>
84
+              <el-table
85
+                ref="tab"
86
+                @row-click="changePatient"
87
+                highlight-current-row
88
+                :data="tableData"
89
+                height="300"
90
+                border
91
+                style="width: 100%"
92
+                :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
93
+                <el-table-column
94
+                  label="患者"
95
+                  >
96
+                  <template slot-scope="scope">
97
+                    {{ scope.row.patient ? scope.row.patient.name : '' }}
98
+                  </template>
99
+                </el-table-column>
100
+                <el-table-column
101
+                  label="透析号"
102
+                  >
103
+                  <template slot-scope="scope">
104
+                    {{ scope.row.patient ? scope.row.patient.dialysis_no : '' }}
105
+                  </template>
106
+                </el-table-column>
107
+              </el-table>
108
+            </div>
109
+          </div>
110
+        </div>
111
+        <div style="flex:1;width:0;margin-left:20px;height: calc(100vh - 178px);overflow-y: auto;" v-if="this.form.province == 13">
112
+          <!-- <div class="cell clearfix" style="margin-bottom:0px;">
113
+            <el-form :inline="true" :model="listQuery">
114
+              <el-form-item label>
115
+                <el-input v-model.trim="listQuery.search" placeholder="姓名/透析号" style="width:120px"></el-input>
116
+                <el-button type="primary" style="padding: 10px 6px;" @click="onSearch" icon="el-icon-search">搜索</el-button>
117
+              </el-form-item>
118
+            </el-form>
119
+            <div class="time" style="margin-left:40px;">
120
+              <ul class="newUl">
121
+                <li
122
+                  :class="item.state == wayType ? 'active' : ''"
123
+                  @click="chooseWay(item.state)"
124
+                  v-for="item in way"
125
+                  :key="item.value"
126
+                >{{ item.label }}</li>
127
+              </ul>
128
+            </div>
129
+          </div> -->
130
+          <el-tabs type="border-card">
131
+            <el-tab-pane label="基本信息">
132
+              <basic-info :patient='patient'></basic-info>
133
+            </el-tab-pane>
134
+            <el-tab-pane label="治疗信息">
135
+              <treat-info :patient='patient' :prescription='prescription' :predialysis_evaluation='predialysis_evaluation' :assessment_after_dislysis='assessment_after_dislysis' :monitor_records='monitor_records' :admin_users='admin_users' :dialysis_order="dialysis_order" :double_check="double_check" :selected_date='selected_date'></treat-info>
136
+            </el-tab-pane>
137
+            <el-tab-pane label="透析参数">
138
+              <dialysis-params :prescription='prescription' :doctor_advices='doctor_advices' :monitor_records='monitor_records' :patient='patient'></dialysis-params>
139
+            </el-tab-pane>
140
+            <el-tab-pane label="治疗小结">
141
+              <dialysis-summary :treatment_summary='treatment_summary' :patient='patient'></dialysis-summary>
142
+            </el-tab-pane>
143
+            <el-tab-pane label="抢救记录">
144
+              <rescue-record :doctor_advices='doctor_advices' :patient='patient' :prescription='prescription'></rescue-record>
145
+            </el-tab-pane>
146
+          </el-tabs>
147
+        </div>
148
+      </div>
42 149
     </div>
150
+    
43 151
 
44 152
   </div>
45 153
 </template>
@@ -47,9 +155,28 @@
47 155
 <script>
48 156
   import { GetDistrictsByUpid } from '@/api/district'
49 157
   import { getIsDocking } from '@/api/config'
158
+  import basicInfo from "../fast/basicInfo"
159
+  import treatInfo from "../fast/treatInfo"
160
+  import dialysisParams from "../fast/dialysisParams"
161
+  import dialysisSummary from "../fast/dialysisSummary"
162
+  import rescueRecord from "../fast/rescueRecord"
163
+
164
+  import {
165
+  getDialysisRecordInitData,
166
+  getDialysisSchedules,
167
+  getDialysisScheduleDetail,
168
+} from "@/api/dialysis_record";
169
+import { parseTime } from "@/utils";
50 170
 
51 171
   export default {
52 172
     name: 'FastProvince',
173
+    components:{
174
+      basicInfo,
175
+      treatInfo,
176
+      dialysisParams,
177
+      dialysisSummary,
178
+      rescueRecord
179
+    },
53 180
     data() {
54 181
       return {
55 182
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
@@ -61,10 +188,127 @@
61 188
         form: {
62 189
           province: '',
63 190
           city: ''
64
-        }
191
+        },
192
+        listQuery: {
193
+          start_time: "",
194
+          end_time: "",
195
+          page: 1,
196
+          limit: 10
197
+        },
198
+        way: [
199
+          { value: 0, label: "基本信息", state: 0 },
200
+          { value: 1, label: "治疗信息", state: 1 },
201
+          { value: 2, label: "透析参数", state: 2 },
202
+          { value: 3, label: "治疗小结", state: 3 },
203
+          { value: 4, label: "抢救记录", state: 4 },
204
+        ],
205
+        wayType: 0,
206
+
207
+        //
208
+        tableData: [],
209
+        selected_date: new Date(),
210
+        // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
211
+        search_keyword: '', // 确定用于搜索的关键字
212
+        search_input: '', // 输入中的关键字
213
+        patient_state:[
214
+            {value: 0,label: '全部'},
215
+            {value: 1,label: '已签到'},
216
+            {value: 2,label: '未签到'},
217
+            {value: 3,label: '已上机'},
218
+            {value: 4,label: '已下机'},
219
+        ],
220
+        patientStateVal: 0,
221
+        treat_state:[
222
+            {value: 0,label: '全部'},
223
+            {value: 1,label: '待开处方'},
224
+            {value: 2,label: '待开小结'},
225
+        ],
226
+        treatStateVal: 0,
227
+        schedule_options:[
228
+            {value: 0,label: '全部'},
229
+            {value: 1,label: '上午'},
230
+            {value: 2,label: '下午'},
231
+            {value: 3,label: '晚上'},
232
+        ],
233
+        scheduleStateVal: 0,
234
+        zone_options:[
235
+            { id: 0, text: '全部' }
236
+        ],
237
+        zoneVal:0,
238
+
239
+        patient: { id: 0 }, // 患者信息
240
+        schedual: { id: 0 }, // 患者排班信息
241
+        prescription: { id: 0 }, // 透析处方
242
+        solution: { id: 0 }, // 透析方案
243
+        system_prescribe: { id: 0 },
244
+        receiver_treatment_access: { id: 0 }, // 接诊评估
245
+        predialysis_evaluation: { id: 0 }, // 透前评估
246
+        doctor_advices: [], // 临时医嘱
247
+        double_check: { id: 0 }, // 双人核对
248
+        assessment_after_dislysis: { id: 0 }, // 透后评估
249
+        treatment_summary: { id: 0 }, // 治疗小结
250
+        monitor_records: [], // 透析监测
251
+        dialysis_order: { id: 0 }, // 透析记录
252
+        admin_users: [], // 系统用户列表
253
+        devices: [], // 设备
254
+        device_numbers: [], // 床位号
255
+
256
+        admin_user_map: {}, // {user_id: admin_user object}
257
+        device_map: {}, // {device_id: device}
258
+        device_number_map: {}, // {device_number_id: device_number}
259
+
260
+        niprocart_info: [],
261
+        jms_info: [],
262
+        fistula_needle_set_info: [],
263
+        fistula_needle_set_16_info: [],
264
+        hemoperfusion_info: [],
265
+        dialyser_sterilised_info: [],
266
+        filtryzer_info: [],
267
+        dialyzers_info: [],
268
+        injector_info: [],
269
+        bloodlines_info: [],
270
+        tubingHemodialysis_info: [],
271
+        safe_package_info: [],
272
+        aliquid_info: [],
273
+        config: {},
274
+
275
+        lastPredialysisEvaluation: { id: 0 },
276
+        lastMonitorRecord: { id: 0 },
277
+        lastAssessmentAfterDislysis: { id: 0 },
278
+        lastDryWeightDislysis: { id: 0 },
279
+        headNurses: [],
280
+        lastDialysisPrescribe: { id: 0 },
65 281
 
66 282
       }
67
-    }, created() {
283
+    }, 
284
+    computed:{
285
+      filtedSchedules: function() {
286
+        var search_keyword = this.search_keyword
287
+        if (search_keyword.length > 0) {
288
+          var schedules = []
289
+          for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
290
+            const scheduleInfo = this.zone_schedules[o_i]
291
+            var originSchedules = scheduleInfo.schedules
292
+            if (originSchedules.length == 0) {
293
+              continue
294
+            }
295
+            var filtedSchedules = []
296
+            for (let s_i = 0; s_i < originSchedules.length; s_i++) {
297
+              const schedule = originSchedules[s_i]
298
+              if (schedule.patient.name.indexOf(search_keyword) != -1) {
299
+                filtedSchedules.push(schedule)
300
+                // break
301
+              }
302
+            }
303
+            if (filtedSchedules.length > 0) {
304
+              schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
305
+            }
306
+          }
307
+          return schedules
308
+        }
309
+      }
310
+    },
311
+    created() {
68 312
       this.getDistricts()
69 313
       var province = sessionStorage.getItem('province')
70 314
       if (province == null) {
@@ -73,6 +317,10 @@
73 317
         this.form.province = parseInt(province)
74 318
       }
75 319
 
320
+      
321
+
322
+      this.getInitData()
323
+      
76 324
     }, methods: {
77 325
       getDistricts: function() {
78 326
         GetDistrictsByUpid({ id: 0 }).then(response => {
@@ -103,12 +351,480 @@
103 351
           }
104 352
         }).catch(e => {
105 353
         })
106
-      }
354
+      },
355
+      chooseWay(way) {
356
+        this.wayType = way;
357
+      },
358
+      onSearch(){},
359
+      //日期
360
+        handleScheduleDateChange: function() {
361
+            this.treatStateVal = 0
362
+            this.patientStateVal = 0
363
+            this.zoneVal = 0
364
+            this.scheduleStateVal = 0
365
+            this.search_keyword = this.search_input = ''
366
+            // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
367
+            //   zone: this.zone_selected,
368
+            //   schedule_type: this.schedule_type_selected,
369
+            //   schedule_date: this.selected_date,
370
+            // })
371
+            this.requestDialysisSchedules()
372
+        },
373
+        //初始化数据
374
+        getInitData: function() {
375
+          getDialysisRecordInitData().then(rs => {
376
+            var resp = rs.data
377
+            if (resp.state == 1) {
378
+            var zones = resp.data.zones
379
+            var schedules = resp.data.schedules
380
+            var zone_options = [{ id: 0, text: '全部' }]
381
+            for (let z_i = 0; z_i < zones.length; z_i++) {
382
+                const zone = zones[z_i]
383
+                zone_options.push({ id: zone.id, text: zone.name })
384
+            }
385
+            this.zone_options = zone_options
386
+            this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
387
+            this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
388
+            this.getData()
389
+            setTimeout(()=>{
390
+              this.$refs.tab.setCurrentRow(this.tableData[0]);
391
+            },10)
392
+            let id = this.tableData[0].patient_id
393
+            let date = this.tableData[0].schedule_date
394
+            this.getScheduleDetail(id,date);
395
+            } else {
396
+              this.$message.error(resp.msg)
397
+            }
398
+          })
399
+        },
400
+        // 班次
401
+        handletimeType: function(index) {
402
+            this.scheduleStateVal = index
403
+            // this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
404
+            this.search_keyword = this.search_input = ''
405
+            this.getData()
406
+        },
407
+        //分区
408
+        handleZoneChange: function(index) {
409
+            this.zoneVal = index
410
+            // this.$store.dispatch('SetZoneSelected', { zone_selected: index })
411
+            this.search_keyword = this.search_input = ''
412
+            this.getData()
413
+        },
414
+        //患者状态
415
+        handleStateChange: function(index) {
416
+            this.patientStateVal = index
417
+            // this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
418
+            this.search_keyword = this.search_input = ''
419
+            this.getData()
420
+        },
421
+        handleTreatChange: function(index) {
422
+            this.treatStateVal = index
423
+            // this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
424
+            this.search_keyword = this.search_input = ''
425
+            this.getData()
426
+        },
427
+        processedDialysisSchedules: function(schedules, zone_options) {
428
+            var zoneMap = {}
429
+            var scheduleMap = {}
430
+            for (let z_i = 0; z_i < zone_options.length; z_i++) {
431
+                const zone = zone_options[z_i]
432
+                if (zone.id == 0) {
433
+                continue
434
+                }
435
+                scheduleMap[zone.id] = []
436
+            }
437
+            for (let index = 0; index < schedules.length; index++) {
438
+                const schedule = schedules[index]
439
+                scheduleMap[schedule.device_number.zone.id].push(schedule)
440
+            }
441
+            var zone_schedules = []
442
+            for (let index = 0; index < zone_options.length; index++) {
443
+                const zone = zone_options[index]
444
+                if (zone.id == 0) {
445
+                continue
446
+                }
447
+                var schedules = scheduleMap[zone.id]
448
+                zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
449
+            }
450
+            return zone_schedules
451
+        },
452
+        searchAction: function() {
453
+            this.search_keyword = this.search_input
454
+            this.scheduleStateVal = 0
455
+            this.zoneVal = 0
456
+            this.treatStateVal = 0
457
+            this.patientStateVal = 0
458
+            if(this.search_input != ''){
459
+              let arr = []
460
+              this.filtedSchedules.map(item => {
461
+                arr.push(...item.schedules)
462
+              })
463
+              this.tableData = arr
464
+            }else{
465
+                this.getData()
466
+            }
467
+        },
468
+        requestDialysisSchedules: function() {
469
+            var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
470
+            getDialysisSchedules(ymd).then(rs => {
471
+                var resp = rs.data
472
+                if (resp.state == 1) {
473
+                var schedules = resp.data.schedules
474
+                this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
475
+                let newArr = []
476
+                this.zone_schedules.map(item => {
477
+                    newArr.push(...item.schedules)
478
+                })
479
+                this.tableData = newArr
480
+                } else {
481
+                this.$message.error(resp.msg)
482
+                }
483
+            })
484
+        },
485
+        changePatient(schedual){
486
+          let id = schedual.patient_id
487
+          let date = schedual.schedule_date
488
+          this.getScheduleDetail(id,date);
489
+        },
490
+        getData(){
491
+            let patientArr = []
492
+            patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
493
+            console.log('patientArr',patientArr)
494
+            let arr1 = []
495
+            if(this.patientStateVal == 0){
496
+                arr1 = patientArr
497
+                console.log(arr1)
498
+            }else if(this.patientStateVal == 1){
499
+                let arr = []
500
+                arr = patientArr
501
+                for (let i = 0; i <arr.length; i++) {
502
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
503
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis == null || (arr[i].schedules[j].assessment_before_dislysis.weight_before == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
504
+                            // 删除元素后改变i的值
505
+                            arr[i].schedules.splice(j--, 1);
506
+                        }
507
+                    }
508
+                }
509
+                console.log("执行1",arr)
510
+                arr1 = arr
511
+            }else if(this.patientStateVal == 2){
512
+                let arr = []
513
+                arr = patientArr
514
+                for (let i = 0; i < arr.length; i++) {
515
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
516
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis != null && (arr[i].schedules[j].assessment_before_dislysis.weight_before != 0 || arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure != 0 || arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure != 0))) {
517
+                            // 删除元素后改变i的值
518
+                            console.log('几次')
519
+                            arr[i].schedules.splice(j--, 1);
520
+                        }
521
+                    }
522
+                }
523
+                console.log("执行2",arr)
524
+                arr1 = arr
525
+            }else if(this.patientStateVal == 3){
526
+                let arr = []
527
+                arr = patientArr
528
+                for (let i = 0; i <arr.length; i++) {
529
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
530
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1))) {
531
+                            // 删除元素后改变i的值
532
+                            arr[i].schedules.splice(j--, 1);
533
+                        }
534
+                    }
535
+                }
536
+                console.log("执行1",arr)
537
+                arr1 = arr
538
+            }else if(this.patientStateVal == 4){
539
+                let arr = []
540
+                arr = patientArr
541
+                for (let i = 0; i < arr.length; i++) {
542
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
543
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2))) {
544
+                            // 删除元素后改变i的值
545
+                            arr[i].schedules.splice(j--, 1);
546
+                        }
547
+                    }
548
+                }
549
+                console.log("执行2",arr)
550
+                arr1 = arr
551
+            }
107 552
 
108
-    }
553
+            let arr2 = []
554
+            if(this.treatStateVal == 0){
555
+                arr2 = JSON.parse(JSON.stringify(arr1))
556
+            }else if(this.treatStateVal == 1){
557
+                let arr = []
558
+                arr = JSON.parse(JSON.stringify(arr1))
559
+                for (let i = 0; i < arr.length; i++) {
560
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
561
+                        if (arr[i].schedules.length > 0 && (arr[i].schedules[j].prescription != null || arr[i].schedules[j].prescription != null ? arr[i].schedules[j].prescription.creater != 0 : false)) {
562
+                            // 删除元素后改变i的值
563
+                            arr[i].schedules.splice(j--, 1);
564
+                        }
565
+                    }
566
+                }
567
+                arr2 = arr
568
+            }else if(this.treatStateVal == 2){
569
+                let arr = []
570
+                arr = JSON.parse(JSON.stringify(arr1))
571
+                for (let i = 0; i < arr.length; i++) {
572
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
573
+                        if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
574
+                            // 删除元素后改变i的值
575
+                            arr[i].schedules.splice(j--, 1);
576
+                        }
577
+                    }
578
+                }
579
+                arr2 = arr
580
+            }
581
+            
582
+
583
+            let arr3 = []
584
+            if(this.scheduleStateVal == 0){
585
+                arr3 = JSON.parse(JSON.stringify(arr2))
586
+            }else{
587
+                let arr = []
588
+                arr = JSON.parse(JSON.stringify(arr2))
589
+                for (let i = 0; i < arr.length; i++) {
590
+                    for (let j = 0; j < arr[i].schedules.length; j++) {
591
+                        if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
592
+                            // 删除元素后改变i的值
593
+                            arr[i].schedules.splice(j--, 1);
594
+                        }
595
+                    }
596
+                }
597
+                arr3 = arr
598
+                console.log("上午",arr)
599
+            }
600
+            
601
+
602
+            let arr4 = []
603
+            if(this.zoneVal == 0){
604
+                arr4 = JSON.parse(JSON.stringify(arr3))
605
+            }else{
606
+                let arr = []
607
+                arr = JSON.parse(JSON.stringify(arr3))
608
+                for (let i = 0; i < arr.length; i++) {
609
+                    if (this.zoneVal != arr[i].zone_id) {
610
+                    // 删除元素后改变i的值
611
+                    arr.splice(i--, 1);
612
+                    }
613
+                }
614
+                arr4 = arr
615
+            }
616
+            let newArr = []
617
+            arr4.map(item => {
618
+            newArr.push(...item.schedules)
619
+            })
620
+            this.tableData = newArr
621
+            console.log('table',this.tableData)
622
+        },
623
+        getScheduleDetail: function(id,date) {
624
+          var dateStr = parseTime(date, '{y}-{m}-{d}')
625
+          this.doctor_advices = []
626
+          getDialysisScheduleDetail(id, dateStr).then(rs => {
627
+            var resp = rs.data
628
+            if (resp.state == 1) {
629
+              var patient = resp.data.patient // 患者信息
630
+              var schedual = resp.data.schedual // 患者排班信息
631
+              var prescription = resp.data.prescription // 透析处方
632
+              if (prescription != null) {
633
+                if (prescription.body_fluid == -2) {
634
+                  prescription.body_fluid = 0
635
+                }
636
+
637
+              }
638
+              console.log('透析处方', prescription)
639
+              var solution = resp.data.solution // 透析方案
640
+              var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
641
+              console.log('receiver_treatment_access', receiver_treatment_access)
642
+              var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
643
+              console.log('透前评估', predialysis_evaluation)
644
+              if (predialysis_evaluation != null) {
645
+                if (predialysis_evaluation.blood_access_part_id == -2) {
646
+                  predialysis_evaluation.blood_access_part_id = 0
647
+                }
648
+              }
649
+              var doctor_advices = resp.data.doctor_advices // 临时医嘱
650
+              // console.log("力气-------", doctor_advices);
651
+              var double_check = resp.data.double_check // 双人核对
652
+              var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
653
+              // console.log("透后品谷数", assessment_after_dislysis);
654
+              var treatment_summary = resp.data.treatment_summary // 治疗小结
655
+              var monitor_records = resp.data.monitor_records // 透析监测
656
+              var dialysis_order = resp.data.dialysis_order // 透析记录
657
+
658
+              var niprocart_info = resp.data.niprocart_info
659
+              var jms_info = resp.data.jms_info
660
+              var fistula_needle_set_info = resp.data.fistula_needle_set_info
661
+              var fistula_needle_set_16_info = resp.data.fistula_needle_set_16_info
662
+              var hemoperfusion_info = resp.data.hemoperfusion_info
663
+              var dialyser_sterilised_info = resp.data.dialyser_sterilised_info
664
+              var filtryzer_info = resp.data.filtryzer_info
665
+              var dialyzers_info = resp.data.dialyzers_info
666
+              var injector_info = resp.data.injector_info
667
+              var bloodlines_info = resp.data.bloodlines_info
668
+              var tubingHemodialysis_info = resp.data.tubingHemodialysis_info
669
+              var safe_package_info = resp.data.safe_package_info
670
+              var aliquid_info = resp.data.aliquid_info
671
+
672
+              var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
673
+              console.log('上次透前评估', lastPredialysisEvaluation)
674
+              if (lastPredialysisEvaluation != null) {
675
+                if (lastPredialysisEvaluation.blood_access_part_id == -2) {
676
+                  lastPredialysisEvaluation.blood_access_part_id = 0
677
+                }
678
+              }
679
+              var lastMonitorRecord = resp.data.lastMonitorRecord
680
+              var lastAssessmentAfterDislysis =
681
+                resp.data.lastAssessmentAfterDislysis
682
+              var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
683
+              var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
684
+
685
+              var system_prescribe = resp.data.system_prescribe
686
+
687
+              // this.$refs.nav.setLastRecord(
688
+              //   lastPredialysisEvaluation,
689
+              //   lastMonitorRecord,
690
+              //   lastAssessmentAfterDislysis,
691
+              //   lastDialysisPrescribe,
692
+              //   lastDryWeightDislysis,
693
+              //   schedual,
694
+              //   system_prescribe
695
+              // )
696
+              
697
+
698
+              var headNurses = resp.data.headNurse
699
+
700
+              var config = resp.data.config
701
+              this.lastPredialysisEvaluation = lastPredialysisEvaluation
702
+              this.lastMonitorRecord = lastMonitorRecord
703
+              this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
704
+              this.lastDialysisPrescribe = lastDialysisPrescribe
705
+              this.lastDryWeightDislysis = lastDryWeightDislysis
706
+              this.headNurses = headNurses
707
+              this.system_prescribe = system_prescribe
708
+
709
+              this.niprocart_info = niprocart_info
710
+              this.jms_info = jms_info
711
+              this.fistula_needle_set_info = fistula_needle_set_info
712
+              this.fistula_needle_set_16_info = fistula_needle_set_16_info
713
+              this.hemoperfusion_info = hemoperfusion_info
714
+              this.dialyser_sterilised_info = dialyser_sterilised_info
715
+              this.filtryzer_info = filtryzer_info
716
+              this.dialyzers_info = dialyzers_info
717
+              this.injector_info = injector_info
718
+              this.bloodlines_info = bloodlines_info
719
+              this.tubingHemodialysis_info = tubingHemodialysis_info
720
+              this.safe_package_info = safe_package_info
721
+              this.aliquid_info = aliquid_info
722
+              this.config = config
723
+
724
+              this.patient = patient
725
+              this.schedual = schedual == null ? { id: 0 } : schedual
726
+              this.prescription = prescription == null ? { id: 0 } : prescription
727
+              this.solution = solution == null ? { id: 0 } : solution
728
+              this.receiver_treatment_access =
729
+                receiver_treatment_access == null
730
+                  ? { id: 0 }
731
+                  : receiver_treatment_access
732
+              this.predialysis_evaluation =
733
+                predialysis_evaluation == null ? { id: 0 } : predialysis_evaluation
734
+              this.doctor_advices = doctor_advices == null ? [] : doctor_advices
735
+              this.double_check = double_check == null ? { id: 0 } : double_check
736
+              this.assessment_after_dislysis =
737
+                assessment_after_dislysis == null
738
+                  ? { id: 0 }
739
+                  : assessment_after_dislysis
740
+              this.treatment_summary =
741
+                treatment_summary == null ? { id: 0 } : treatment_summary
742
+              this.monitor_records = monitor_records == null ? [] : monitor_records
743
+              this.dialysis_order =
744
+                dialysis_order == null ? { id: 0 } : dialysis_order
745
+
746
+              // this.$refs.stat_order.setAdvices(this.doctor_advices)
747
+              // this.$refs.monitoring.setRecords(this.monitor_records)
748
+
749
+              this.admin_users = resp.data.doctors
750
+              this.devices = resp.data.devices
751
+              this.device_numbers = resp.data.device_numbers
752
+
753
+              var device_map = {}
754
+              for (let index = 0; index < this.devices.length; index++) {
755
+                const device = this.devices[index]
756
+                device_map[device.id] = device
757
+              }
758
+              this.device_map = device_map
759
+
760
+              var admin_map = {}
761
+              for (let index = 0; index < this.admin_users.length; index++) {
762
+                const admin = this.admin_users[index]
763
+                admin_map[admin.id] = admin
764
+              }
765
+              this.admin_user_map = admin_map
766
+
767
+              var device_number_map = {}
768
+              for (let index = 0; index < this.device_numbers.length; index++) {
769
+                const device_number = this.device_numbers[index]
770
+                device_number_map[device_number.id] = device_number
771
+              }
772
+              this.device_number_map = device_number_map
773
+            } else {
774
+              this.$message.error(resp.msg)
775
+            }
776
+
777
+            if (this.lastDialysisPrescribe != null) {
778
+              delete this.lastDialysisPrescribe.target_ultrafiltration
779
+            }
780
+            if (this.solution != null) {
781
+              delete this.solution.target_ultrafiltration
782
+            }
783
+          })
784
+        },
785
+    },
109 786
   }
110 787
 </script>
111 788
 
112
-<style scoped>
113
-
789
+<style lang="scss" scoped>
790
+.fastProvince{
791
+  .newUl{
792
+    li{
793
+      padding:10px 20px !important;
794
+    }
795
+  }
796
+}
797
+.tableTitle {
798
+  font-size: 16px;
799
+  color: #000;
800
+  font-weight: bold;
801
+  line-height: 40px;
802
+}
803
+</style>
804
+<style lang="scss">
805
+.fastProvince{
806
+  .el-form-item{
807
+    margin-bottom: 0;
808
+  }
809
+  // .el-button--medium{
810
+  //   padding: 10px 6px;
811
+  // }
812
+}
813
+.newContainer{
814
+  display: flex;
815
+    .el-date-editor{
816
+        .el-input__inner{
817
+            padding-right:0px;
818
+        }
819
+    }
820
+    .el-table td, .el-table th{
821
+      text-align: center;
822
+    }
823
+    .el-tabs--border-card{
824
+      box-shadow:none;
825
+    }
826
+}
827
+.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{
828
+  font-weight: bold;
829
+}
114 830
 </style>

+ 4 - 4
src/xt_pages/upload/fast/One.vue Dosyayı Görüntüle

@@ -1,7 +1,7 @@
1 1
 <template>
2
-  <div class="app-container">
2
+  <!-- <div class="app-container"> -->
3 3
     <div class="basicInfo">
4
-      <div class="headline">基本资料</div>
4
+      <!-- <div class="headline">基本资料</div> -->
5 5
       <div class="information">
6 6
         <div class="row">
7 7
           <div class="rowOne">
@@ -424,7 +424,7 @@
424 424
               >复制</el-button
425 425
             >
426 426
           </div>
427
-          <div class="rowTwo">
427
+          <div class="rowOne">
428 428
             <p class="rowName1">固定电话 &ensp;&ensp;&ensp;&ensp;(电话):</p>
429 429
             <el-input
430 430
               placeholder="请输入内容"
@@ -471,7 +471,7 @@
471 471
         </div>
472 472
       </div>
473 473
     </div>
474
-  </div>
474
+  <!-- </div> -->
475 475
 </template>
476 476
 <script>
477 477
 import { getDataConfig } from "@/utils/data";

+ 6 - 6
src/xt_pages/upload/fast/Two.vue Dosyayı Görüntüle

@@ -1,6 +1,6 @@
1 1
 <template>
2
-  <div class="checkInspection" style="margin-top: -200px">
3
-    <div class="headline">检验检查</div>
2
+  <div class="checkInspection">
3
+    <!-- <div class="headline">检验检查</div> -->
4 4
     <div class="allCheck">
5 5
       <div class="example1">
6 6
         <div class="mainTitle">
@@ -1431,7 +1431,7 @@ export default {
1431 1431
 <style lang="scss">
1432 1432
 .checkInspection {
1433 1433
   float: left;
1434
-  width: 86%;
1434
+  width: 100%;
1435 1435
   padding-left: 20px;
1436 1436
   .headline {
1437 1437
     height: 30px;
@@ -1455,7 +1455,7 @@ export default {
1455 1455
   }
1456 1456
   .example3 {
1457 1457
     width: 100%;
1458
-    height: 950px;
1458
+    height: 900px;
1459 1459
     border-top: 1px solid #ccc;
1460 1460
     border-bottom: 1px solid #ccc;
1461 1461
     box-sizing: border-box;
@@ -1513,7 +1513,7 @@ export default {
1513 1513
   .left3 {
1514 1514
     float: left;
1515 1515
     width: 18%;
1516
-    height: 900px;
1516
+    height: 850px;
1517 1517
     border-right: 1px solid #ccc;
1518 1518
     padding-top: 10px;
1519 1519
   }
@@ -1606,7 +1606,7 @@ export default {
1606 1606
       margin-left: 151px;
1607 1607
     }
1608 1608
     .copy {
1609
-      float: left;
1609
+      // float: left;
1610 1610
       margin-left: 20px !important;
1611 1611
       margin-top: 6px;
1612 1612
     }

+ 253 - 0
src/xt_pages/upload/fast/basicInfo.vue Dosyayı Görüntüle

@@ -0,0 +1,253 @@
1
+<template>
2
+        <div class="page_basicInfo">
3
+            <div class="basicOne">
4
+                <p class="basicLable">患者姓名:</p>
5
+                <el-input placeholder="请输入内容" v-model="form.name" :disabled="true"></el-input>
6
+                <el-button type="primary" v-clipboard:copy="form.name" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
7
+            </div>
8
+            <div class="basicOne">
9
+                <p class="basicLable">透析编号:</p>
10
+                <el-input placeholder="请输入内容" v-model="form.dialysis_no" :disabled="true"></el-input>
11
+                <el-button type="primary" v-clipboard:copy="form.dialysis_no" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
12
+            </div>
13
+            <div class="basicOne">
14
+                <p class="basicLable">证件类型:</p>
15
+                <el-input placeholder="请输入内容" v-model="form.type" :disabled="true"></el-input>
16
+            </div>
17
+            <div class="basicOne">
18
+                <p class="basicLable">证件号码:</p>
19
+                <el-input style="width:170px;" placeholder="请输入内容" v-model="form.id_card_no" :disabled="true"></el-input>
20
+                <el-button type="primary" v-clipboard:copy="form.id_card_no" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
21
+            </div>
22
+            <div class="basicOne">
23
+                <p class="basicLable">首次透析时间:</p>
24
+                <el-input placeholder="请输入内容" v-model="form.first_dialysis_date" :disabled="true"></el-input>
25
+                <el-button type="primary" v-clipboard:copy="form.first_dialysis_date" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
26
+            </div>
27
+            <div class="basicOne">
28
+                <p class="basicLable">性别:</p>
29
+                <el-input placeholder="请输入内容" v-model="form.gender" :disabled="true"></el-input>
30
+            </div>
31
+            <div class="basicOne">
32
+                <p class="basicLable">生日:</p>
33
+                <el-input placeholder="请输入内容" v-model="form.birthday" :disabled="true"></el-input>
34
+                <el-button type="primary" v-clipboard:copy="form.birthday" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
35
+            </div>
36
+            <div class="basicOne">
37
+                <p class="basicLable">工作:</p>
38
+                <el-input placeholder="请输入内容" v-model="form.work_unit" :disabled="true"></el-input>
39
+            </div>
40
+            <div class="basicOne">
41
+                <p class="basicLable">婚姻:</p>
42
+                <el-input placeholder="请输入内容" v-model="form.marital_status" :disabled="true"></el-input>
43
+            </div>
44
+            <div class="basicOne">
45
+                <p class="basicLable">学历:</p>
46
+                <el-input placeholder="请输入内容" v-model="form.education_level" :disabled="true"></el-input>
47
+            </div>
48
+            <div class="basicOne">
49
+                <p class="basicLable">民族:</p>
50
+                <el-input placeholder="请输入内容" v-model="form.nation" :disabled="true"></el-input>
51
+            </div>
52
+            <div class="basicOne">
53
+                <p class="basicLable">工作电话:</p>
54
+                <el-input placeholder="请输入内容" v-model="form.relative_phone" :disabled="true"></el-input>
55
+                <el-button type="primary" v-clipboard:copy="form.relative_phone" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
56
+            </div>
57
+            <div class="basicOne">
58
+                <p class="basicLable">家庭地址:</p>
59
+                <el-input placeholder="请输入内容" v-model="form.home_address" :disabled="true"></el-input>
60
+                <el-button type="primary" v-clipboard:copy="form.home_address" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
61
+            </div>
62
+            <div class="basicOne">
63
+                <p class="basicLable">医保类型:</p>
64
+                <el-input placeholder="请输入内容" v-model="form.reimbursement_way_id" :disabled="true"></el-input>
65
+            </div>
66
+            <div class="basicOne">
67
+                <p class="basicLable">联系电话:</p>
68
+                <el-input placeholder="请输入内容" v-model="form.phone" :disabled="true"></el-input>
69
+                <el-button type="primary" v-clipboard:copy="form.phone" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
70
+            </div>
71
+            <div class="basicOne">
72
+                <p class="basicLable">姓名输入码:</p>
73
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
74
+            </div>
75
+            <div class="basicOne">
76
+                <p class="basicLable">随访号:</p>
77
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
78
+            </div>
79
+            <div class="basicOne">
80
+                <p class="basicLable">传染病检查结果:</p>
81
+                <el-input placeholder="请输入内容" v-model="form.is_infectious" :disabled="true"></el-input>
82
+                <el-button type="primary" v-clipboard:copy="form.is_infectious" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
83
+            </div>
84
+        </div>
85
+</template>
86
+
87
+<script>
88
+import { parseTime } from "@/utils";
89
+import { getDataConfig } from "@/utils/data";
90
+import { isNumber } from 'util';
91
+export default {
92
+    props:{
93
+        patient:Object
94
+    },
95
+    data(){
96
+      return{
97
+        input:'',
98
+        form:{
99
+            name:'',
100
+            dialysis_no:'',
101
+            type:'身份证',
102
+            id_card_no:'',
103
+            first_dialysis_date:'',
104
+            gender:'',
105
+            birthday:'',
106
+            work_unit:'',
107
+            marital_status:'',
108
+            education_level:'',
109
+            nation:'',
110
+            relative_phone:'',
111
+            home_address:'',
112
+            reimbursement_way_id:'',
113
+            phone:'',
114
+            is_infectious:''
115
+        },
116
+        educationOptions:[],
117
+        wayOptions:[]
118
+      }
119
+    },
120
+    created(){
121
+        console.log('patient',this.patient)
122
+        this.form = this.patient
123
+        this.getUpdate()
124
+    },
125
+    methods:{
126
+        getEducation(id){
127
+            this.educationOptions = getDataConfig("patient", "education_types")
128
+            let name = ''
129
+            this.educationOptions.map(item => {
130
+                if(item.id == id){
131
+                    name = item.name
132
+                }
133
+            })
134
+           
135
+            return name
136
+        },
137
+        getReimbursement(id){
138
+            this.wayOptions = getDataConfig("patient", "reimbursement_ways")
139
+            let name = ''
140
+            this.wayOptions.map(item => {
141
+                if(item.id == id){
142
+                    name = item.name
143
+                     
144
+                }
145
+            })
146
+            return name
147
+        },
148
+        getUpdate(){
149
+            this.$set(this.form, 'type', '身份证')
150
+            this.$forceUpdate()
151
+            if(isNumber(this.form.first_dialysis_date)){
152
+                this.form.first_dialysis_date = parseTime(this.form.first_dialysis_date, '{y}-{m}-{d}')
153
+            }
154
+            
155
+            if(this.form.gender == 1){
156
+                this.form.gender = '男'
157
+            }else if(this.form.gender == 2){
158
+                this.form.gender = '女'
159
+            }else if(this.form.gender == 0){
160
+                this.form.gender = ''
161
+            }
162
+            if(isNumber(this.form.birthday)){
163
+                this.form.birthday = parseTime(this.form.birthday, '{y}-{m}-{d}')
164
+            }
165
+            
166
+            if(this.form.marital_status == 1){
167
+                this.form.marital_status = '未婚'
168
+            }else if(this.form.marital_status == 2){
169
+                this.form.marital_status = '已婚'
170
+            }else if(this.form.marital_status == 3){
171
+                this.form.marital_status = '离异'
172
+            }else if(this.form.marital_status == 0){
173
+                this.form.marital_status = ''
174
+            }
175
+            if(isNumber(this.form.education_level)){
176
+                if(this.form.education_level == 0){
177
+                    this.form.education_level = ''
178
+                }else{
179
+                    this.form.education_level = this.getEducation(this.form.education_level)
180
+                }
181
+            }
182
+            if(isNumber(this.form.reimbursement_way_id)){
183
+                if(this.form.reimbursement_way_id == 0){
184
+                    this.form.reimbursement_way_id = ''
185
+                }else{
186
+                    this.form.reimbursement_way_id = this.getReimbursement(this.form.reimbursement_way_id)
187
+                }
188
+            }
189
+            
190
+        },
191
+        onCopy() {
192
+            this.$message.success("复制成功");
193
+        },
194
+        onError() {
195
+            this.$message.success("复制失败,请重试");
196
+        }
197
+    },
198
+    watch:{
199
+        patient:{
200
+            handler:function(val) {
201
+                console.log(1111111111111,val)
202
+                Object.keys(val).map((item,index) => {
203
+                    this.$set(this.form, item, val[item])
204
+                    this.$forceUpdate()
205
+                })
206
+                this.getUpdate()
207
+            }
208
+        },
209
+        // immediate:true,
210
+        deep:true,
211
+    }
212
+}
213
+</script>
214
+
215
+<style lang="scss" scoped>
216
+
217
+.page_basicInfo{
218
+    width: 100%;
219
+    padding-right: 20px;
220
+    margin-top: 10px;
221
+    display: flex;
222
+    flex-wrap: wrap;
223
+    .basicOne{
224
+        width: 380px;
225
+        margin-right: 10px;
226
+        margin-bottom: 10px;
227
+        display: flex;
228
+        align-items: center;
229
+        font-size: 14px;
230
+        color:rgb(48, 49, 51);
231
+        .basicLable{
232
+            width: 120px;
233
+            text-align: right;
234
+            margin-right: 10px;
235
+        }
236
+    }
237
+}
238
+</style>
239
+<style lang="scss">
240
+
241
+.page_basicInfo{
242
+    .el-input{
243
+        width: 150px;
244
+        margin-right: 10px;
245
+    }
246
+}
247
+.el-input.is-disabled .el-input__inner{
248
+    color:#909399;
249
+}
250
+.el-textarea.is-disabled .el-textarea__inner{
251
+    color:#909399;
252
+}
253
+</style>

+ 593 - 0
src/xt_pages/upload/fast/dialysisParams.vue Dosyayı Görüntüle

@@ -0,0 +1,593 @@
1
+<template>
2
+    <div class="page_dialysisParams">
3
+        <div class="cell clearfix" style="margin-top:10px;">
4
+            <!-- <label class="title">
5
+                <span class="name">治疗日期</span> :
6
+            </label>
7
+            <div class="time">
8
+                <ul class>
9
+                <li
10
+                    :class="item.state == dayType ? 'active' : ''"
11
+                    @click="chooseDay(item.state)"
12
+                    v-for="item in day"
13
+                    :key="item.value"
14
+                >{{ item.label }}</li>
15
+                </ul>
16
+            </div>
17
+            <el-date-picker
18
+                v-model="time"
19
+                prefix-icon="el-icon-date"
20
+                @change="changeTime"
21
+                :editable="false"
22
+                style="width: 150px;"
23
+                type="date"
24
+                placeholder="选择日期时间"
25
+                align="right"
26
+                format="yyyy-MM-dd"
27
+                value-format="yyyy-MM-dd"
28
+            ></el-date-picker> -->
29
+            <label class="title" style="margin-left:10px;">
30
+                <span class="name">患者信息</span> :
31
+            </label>
32
+            <div class="infoBox">
33
+                <span>姓名:{{ patient.name }}</span>&nbsp;|&nbsp;<span>透析编号:{{ patient.dialysis_no }}</span>
34
+            </div>
35
+        </div>
36
+        <div>
37
+            <el-table :data="monitor_records" style="width: 100%" border :span-method='objectSpanMethod' :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
38
+                <el-table-column fixed prop="date" label="时间" width="140">
39
+                    <template slot-scope="scope">
40
+                        <p>{{ scope.row.created_time ? uParseTime(scope.row.operate_time, '{y}-{m}-{d} {h}:{i}') : '' }}</p>
41
+                        <el-button size="mini" type="primary" v-clipboard:copy="uParseTime(scope.row.created_time, '{y}-{m}-{d} {h}:{i}')" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
42
+                    </template>
43
+                </el-table-column>
44
+                <el-table-column prop="name" :label="'静脉压\nmmHg'" width="120">
45
+                    <template slot-scope="scope">
46
+                        <p>{{ scope.row.venous_pressure }}</p>
47
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.venous_pressure" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
48
+                    </template>
49
+                </el-table-column>
50
+                <el-table-column prop="province" :label="'动脉压\nmmHg'" width="120">
51
+                    <template slot-scope="scope">
52
+                        <p>{{ scope.row.arterial_pressure }}</p>
53
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.arterial_pressure" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
54
+                    </template>
55
+                </el-table-column>
56
+                <el-table-column prop="city" :label="'电导度\nms/cm'" width="120">
57
+                    <template slot-scope="scope">
58
+                        <p>{{ scope.row.conductivity }}</p>
59
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.conductivity" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
60
+                    </template>
61
+                </el-table-column>
62
+                <el-table-column prop="address" :label="'血流量\nml/min'" width="120">
63
+                    <template slot-scope="scope">
64
+                        <p>{{ scope.row.blood_flow_volume }}</p>
65
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.blood_flow_volume" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
66
+                    </template>
67
+                </el-table-column>
68
+                <el-table-column prop="zip" :label="'透析液流量\nml/min'" width="120">
69
+                    <template slot-scope="scope">
70
+                        <p>{{ scope.row.dialysate_flow }}</p>
71
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.dialysate_flow" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
72
+                    </template>
73
+                </el-table-column>
74
+                <el-table-column prop="zip" :label="'超滤率\nml/h'" width="120">
75
+                    <template slot-scope="scope">
76
+                        <p>{{ scope.row.ultrafiltration_rate }}</p>
77
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.ultrafiltration_rate" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
78
+                    </template>
79
+                </el-table-column>
80
+                <el-table-column prop="zip" :label="'抗凝剂\n单位/h'" width="120">
81
+                </el-table-column>
82
+                <el-table-column prop="zip" :label="'体温\n℃'" width="120">
83
+                    <template slot-scope="scope">
84
+                        <p>{{ scope.row.temperature }}</p>
85
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.temperature" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
86
+                    </template>
87
+                </el-table-column>
88
+                <el-table-column prop="zip" :label="'脉搏\n次/分'" width="120">
89
+                    <template slot-scope="scope">
90
+                        <p>{{ scope.row.pulse_frequency }}</p>
91
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.pulse_frequency" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
92
+                    </template>
93
+                </el-table-column>
94
+                <el-table-column prop="zip" :label="'收缩压\nmmHg'" width="120">
95
+                    <template slot-scope="scope">
96
+                        <p>{{ scope.row.systolic_blood_pressure }}</p>
97
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.systolic_blood_pressure" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
98
+                    </template>
99
+                </el-table-column>
100
+                <el-table-column prop="zip" :label="'舒张压\nmmHg'" width="120">
101
+                    <template slot-scope="scope">
102
+                        <p>{{ scope.row.diastolic_blood_pressure }}</p>
103
+                        <el-button size="mini" type="primary" v-clipboard:copy="scope.row.diastolic_blood_pressure" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
104
+                    </template>
105
+                </el-table-column>
106
+                <el-table-column prop="zip" label="症状及处理" width="300">
107
+                    <template slot-scope="scope">
108
+                        <div v-if="scope.$index == 1">
109
+                        <div v-for="item in doctor" :key="item">
110
+                            <p>{{ item }}</p>
111
+                            <el-button size="mini" type="primary" v-clipboard:copy="item" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
112
+                        </div>
113
+                        </div>
114
+                    </template>
115
+                </el-table-column>
116
+            </el-table>
117
+
118
+            <!-- <div class="table">
119
+                <table class="fixedTable" border="1">
120
+                    <tr>
121
+                        <td style="height:60px;line-height:60px;border:none;border-bottom:1px solid #d0d3da;">时间</td>
122
+                        <td class="fixedColumn"></td>
123
+                        <td >静脉压<br />mmHg</td>
124
+                        <td >动脉压<br />mmHg</td>
125
+                        <td >电导度<br />ms/cm</td>
126
+                        <td >血流量<br />ml/min</td>
127
+                        <td >透析液流量<br />ml/min</td>
128
+                        <td >超滤率<br />ml/h</td>
129
+                        <td >抗凝剂<br />单位/h</td>
130
+                        <td >体温<br />℃</td>
131
+                        <td >脉搏<br />次/分</td>
132
+                        <td >收缩压<br />mmHg</td>
133
+                        <td >舒张压<br />mmHg</td>
134
+                        <td :rowspan="monitor_records.length + 1" style="width:300px;height:100%">
135
+                            <div>
136
+                                <div style="height:60px;line-height:60px;border-bottom:1px solid #d0d3da;">症状及处理</div>
137
+                                <div :style="{height: height}">
138
+                                    <div v-for="item in doctor" :key="item">
139
+                                        <p>{{ item }}</p>
140
+                                    </div>
141
+                                </div>
142
+                            </div>
143
+                        </td>
144
+                    </tr>
145
+                    <tr v-for="(item,index) in monitor_records" :key="index">
146
+                        <td style="border:none">{{  uParseTime(item.created_time, '{y}-{m}-{d} {h}:{i}') }}</td>
147
+                        <td class="fixedColumn"></td>
148
+                        <td>{{ item.venous_pressure }}</td>
149
+                        <td>{{ item.arterial_pressure }}</td>
150
+                        <td>{{ item.conductivity }}</td>
151
+                        <td>{{ item.blood_flow_volume }}</td>
152
+                        <td>{{ item.dialysate_flow }}</td>
153
+                        <td>{{ item.ultrafiltration_rate }}</td>
154
+                        <td></td>
155
+                        <td>{{ item.temperature }}</td>
156
+                        <td>{{ item.pulse_frequency }}</td>
157
+                        <td>{{ item.systolic_blood_pressure }}</td>
158
+                        <td>{{ item.diastolic_blood_pressure }}</td>
159
+                    </tr>
160
+                </table>
161
+            </div> -->
162
+        </div>
163
+    </div>
164
+</template>
165
+
166
+<script>
167
+import { parseTime } from "@/utils";
168
+export default {
169
+    props:{
170
+        monitor_records:Array,
171
+        patient:Object,
172
+        doctor_advices:Array,
173
+        prescription:Object,
174
+    },
175
+    data(){
176
+      return{
177
+        tableData: [
178
+          {
179
+              date: "2016",
180
+              name: "王小虎"
181
+          },
182
+          {
183
+              date: "2016",
184
+              name: "王小虎"
185
+          },
186
+          {
187
+              date: "2016",
188
+              name: "王小虎"
189
+          },
190
+          {
191
+              date: "2016",
192
+              name: "王小虎"
193
+          },
194
+          {
195
+              date: "2016",
196
+              name: "王小虎"
197
+          },
198
+          {
199
+              date: "2016",
200
+              name: "王小虎"
201
+          },
202
+          {
203
+              date: "2016",
204
+              name: "王小虎"
205
+          },
206
+          {
207
+              date: "2016",
208
+              name: "王小虎"
209
+          },
210
+          {
211
+              date: "2016",
212
+              name: "王小虎"
213
+          },
214
+          {
215
+              date: "2016",
216
+              name: "王小虎"
217
+          },
218
+          {
219
+              date: "2016",
220
+              name: "王小虎"
221
+          },
222
+          {
223
+              date: "2016",
224
+              name: "王小虎"
225
+          }
226
+        ],
227
+        tableData1: [
228
+            {
229
+            date: "2016-05-03",
230
+            name: "王小虎",
231
+            province: "上海",
232
+            city: "普陀区",
233
+            address: "上海市普陀区金沙江路 1518 弄",
234
+            zip: 200333
235
+            },
236
+            {
237
+            date: "2016-05-02",
238
+            name: "王小虎",
239
+            province: "上海",
240
+            city: "普陀区",
241
+            address: "上海市普陀区金沙江路 1518 弄",
242
+            zip: 200333
243
+            },
244
+            {
245
+            date: "2016-05-04",
246
+            name: "王小虎",
247
+            province: "上海",
248
+            city: "普陀区",
249
+            address: "上海市普陀区金沙江路 1518 弄",
250
+            zip: 200333
251
+            },
252
+            {
253
+            date: "2016-05-01",
254
+            name: "王小虎",
255
+            province: "上海",
256
+            city: "普陀区",
257
+            address: "上海市普陀区金沙江路 1518 弄",
258
+            zip: 200333
259
+            },
260
+            {
261
+            date: "2016-05-08",
262
+            name: "王小虎",
263
+            province: "上海",
264
+            city: "普陀区",
265
+            address: "上海市普陀区金沙江路 1518 弄",
266
+            zip: 200333
267
+            },
268
+            {
269
+            date: "2016-05-06",
270
+            name: "王小虎",
271
+            province: "上海",
272
+            city: "普陀区",
273
+            address: "上海市普陀区金沙江路 1518 弄",
274
+            zip: 200333
275
+            },
276
+            {
277
+            date: "2016-05-07",
278
+            name: "王小虎",
279
+            province: "上海",
280
+            city: "普陀区",
281
+            address: "上海市普陀区金沙江路 1518 弄",
282
+            zip: 200333
283
+            },
284
+            {
285
+            date: "2016-05-08",
286
+            name: "王小虎",
287
+            province: "上海",
288
+            city: "普陀区",
289
+            address: "上海市普陀区金沙江路 1518 弄",
290
+            zip: 200333
291
+            },
292
+            {
293
+            date: "2016-05-06",
294
+            name: "王小虎",
295
+            province: "上海",
296
+            city: "普陀区",
297
+            address: "上海市普陀区金沙江路 1518 弄",
298
+            zip: 200333
299
+            },
300
+            {
301
+            date: "2016-05-07",
302
+            name: "王小虎",
303
+            province: "上海",
304
+            city: "普陀区",
305
+            address: "上海市普陀区金沙江路 1518 弄",
306
+            zip: 200333
307
+            }
308
+        ],
309
+        day: [
310
+            { value: 0, label: "今天", state: 0 },
311
+            { value: 1, label: "昨天", state: 1 },
312
+            { value: 2, label: "前天", state: 2 },
313
+        ],
314
+        dayType: 0,
315
+        time:'',
316
+        textarea:'',
317
+        modeId:'',
318
+        advices:[],
319
+        height:''
320
+      }
321
+    },
322
+    created(){
323
+       
324
+        if(this.monitor_records.length > 5){
325
+            this.monitor_records = this.monitor_records
326
+        }else{
327
+            let num = 5 - this.monitor_records.length
328
+            for(let i = 0; i<num;i++){
329
+                this.monitor_records.push({id:0})
330
+            }
331
+            console.log(22222222222222222,this.monitor_records)
332
+        }
333
+        
334
+        if(this.prescription.mode_id){
335
+            this.modeId = this.getMode(this.prescription.mode_id)
336
+        }
337
+        if(this.doctor_advices.length > 0){
338
+            let str = ''
339
+            let arr = []
340
+            this.advices = this.doctor_advices
341
+            this.advices.map(item => {
342
+                str = item.advice_name + (item.advice_desc ? ('(' +  item.advice_desc + item.drug_spec_unit + ')') : '' )  + '  ' + item.prescribing_number + item.prescribing_number_unit + '  ' + 
343
+                item.single_dose + item.single_dose_unit + '  ' + item.delivery_way + item.execution_frequency + item.remark
344
+                arr.push(str)
345
+            })
346
+            this.doctor = arr
347
+            
348
+            // this.textarea = ''
349
+            // arr.map(item => {
350
+            //     this.textarea += item + "\n"
351
+            // })
352
+        }else if(this.doctor_advices.length == 0){
353
+            this.textarea = ''
354
+            this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
355
+                            '2.结束' + this.modeId + '治疗' + '\n' +
356
+                            '3.患者离开血透室'
357
+            let str = this.textarea
358
+            this.doctor = []
359
+            this.doctor.push(this.textarea)
360
+        }
361
+    },
362
+    methods:{
363
+        chooseDay(day) {
364
+            this.dayType = day;
365
+        },
366
+        uParseTime(time, cFormat) {
367
+            if (time === 0) {
368
+                return ''
369
+            }
370
+            
371
+            if (arguments.length === 0) {
372
+                return null
373
+            }
374
+            const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
375
+            let date
376
+            if (typeof time === 'object') {
377
+                date = time
378
+            } else {
379
+                if (('' + time).length !== 13) time = parseInt(time) * 1000
380
+                date = new Date(time)
381
+            }
382
+            const formatObj = {
383
+                y: date.getFullYear(),
384
+                m: date.getMonth() + 1,
385
+                d: date.getDate(),
386
+                h: date.getHours(),
387
+                i: date.getMinutes(),
388
+                s: date.getSeconds(),
389
+                a: date.getDay()
390
+            }
391
+            const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
392
+                let value = formatObj[key]
393
+                if (key === 'a') {
394
+                return ['一', '二', '三', '四', '五', '六', '日'][value - 1]
395
+                }
396
+                if (result.length > 0 && value < 10) {
397
+                value = '0' + value
398
+                }
399
+                return value || 0
400
+            })
401
+            return time_str
402
+        },
403
+        objectSpanMethod({ row, column, rowIndex, columnIndex }) {
404
+            if (columnIndex === 12) {
405
+                if (rowIndex > 0) {
406
+                    return {
407
+                    rowspan: this.monitor_records.length - 1 ,
408
+                    colspan: 1
409
+                    };
410
+                }else{
411
+                     return {
412
+                    rowspan: 0 ,
413
+                    colspan: 0
414
+                    };
415
+                }
416
+            }
417
+        },
418
+        getMode(id){
419
+            let name = ''
420
+            this.treatment_mode = Object.values(this.$store.getters.treatment_mode)
421
+            this.treatment_mode.map(item => {
422
+                if(item.id == id){
423
+                    name = item.name
424
+                }
425
+            })
426
+            return name
427
+        },
428
+        onCopy() {
429
+            this.$message.success("复制成功");
430
+        },
431
+        onError() {
432
+            this.$message.success("复制失败,请重试");
433
+        }
434
+    },
435
+    watch:{
436
+        monitor_records:{
437
+            handler:function(val) {
438
+                if(this.monitor_records.length > 5){
439
+                    this.monitor_records = this.monitor_records
440
+                }else{
441
+                    let num = 5 - this.monitor_records.length
442
+                    for(let i =0; i<num;i++){
443
+                        this.monitor_records.push({id:1})
444
+                    }
445
+                    console.log(333333333333,this.monitor_records)
446
+                }
447
+            }
448
+        },
449
+        patient:{
450
+            handler:function(val) {
451
+            }
452
+        },
453
+        doctor_advices:{
454
+            handler:function(val) {
455
+                if(this.doctor_advices.length > 0){
456
+                    let str = ''
457
+                    let arr = []
458
+                    this.advices = this.doctor_advices
459
+                    this.advices.map(item => {
460
+                        str = item.advice_name + (item.advice_desc ? ('(' +  item.advice_desc + item.drug_spec_unit + ')') : '' )  + '  ' + item.prescribing_number + item.prescribing_number_unit + '  ' + 
461
+                        item.single_dose + item.single_dose_unit + '  ' + item.delivery_way + item.execution_frequency + item.remark
462
+                        arr.push(str)
463
+                    })
464
+                    this.doctor = arr
465
+                    // this.textarea = ''
466
+                    // arr.map(item => {
467
+                    //     this.textarea += item + "\n"
468
+                    // })
469
+                }else if(this.doctor_advices.length == 0){
470
+                    this.textarea = ''
471
+                    this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
472
+                                    '2.结束' + this.modeId + '治疗' + '\n' +
473
+                                    '3.患者离开血透室'
474
+                    let str = this.textarea
475
+                    this.doctor = []
476
+                    this.doctor.push(this.textarea)
477
+                }
478
+            }
479
+        },
480
+        prescription:{
481
+          handler:function(val) {
482
+                if(this.prescription.mode_id){
483
+                    this.modeId = this.getMode(this.prescription.mode_id)
484
+                }
485
+                if(this.doctor_advices.length > 0){
486
+                    let str = ''
487
+                    let arr = []
488
+                    this.advices = this.doctor_advices
489
+                    this.advices.map(item => {
490
+                        str = item.advice_name + (item.advice_desc ? ('(' +  item.advice_desc + item.drug_spec_unit + ')') : '' )  + '  ' + item.prescribing_number + item.prescribing_number_unit + '  ' + 
491
+                        item.single_dose + item.single_dose_unit + '  ' + item.delivery_way + item.execution_frequency + item.remark
492
+                        arr.push(str)
493
+                    })
494
+                    this.doctor = arr
495
+                    // this.textarea = ''
496
+                    // arr.map(item => {
497
+                    //     this.textarea += item + "\n"
498
+                    // })
499
+                }else if(this.doctor_advices.length == 0){
500
+                    this.textarea = ''
501
+                    this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
502
+                                    '2.结束' + this.modeId + '治疗' + '\n' +
503
+                                    '3.患者离开血透室'
504
+                    let str = this.textarea
505
+                    this.doctor = []
506
+                    this.doctor.push(this.textarea)
507
+                }
508
+            }  
509
+        },
510
+        deep:true,
511
+    }
512
+}
513
+</script>
514
+
515
+<style lang="scss" scoped>
516
+.tableTitle {
517
+    font-size: 16px;
518
+    color: #000;
519
+    font-weight: bold;
520
+    line-height: 40px;
521
+}
522
+.page_dialysisParams{
523
+    // width: 76%;
524
+    padding-right: 10px;
525
+    .infoBox{
526
+        padding: 10px 20px;
527
+        border-radius: 20px;
528
+        border:1px solid #DCDFE6;
529
+        font-size: 14px;
530
+        color: #606266;
531
+        display: flex;
532
+        align-items: center;
533
+    }
534
+    .paramsTable{
535
+        // width: 1600px;
536
+        width:160%;
537
+        border: 1px solid #000;
538
+        border-spacing: 0px;
539
+        border-collapse: collapse;
540
+    }
541
+    .paramsTable td{
542
+        border:1px solid #000;
543
+        padding:5px;
544
+    }
545
+    .paramsTable th{
546
+        border:1px solid #000;
547
+        padding:5px;
548
+    }
549
+
550
+    // .paramsTable td:first-child{
551
+    //     position:absolute
552
+    // }
553
+    // .paramsTable th:first-child{
554
+    //     position:absolute
555
+    // }
556
+
557
+
558
+.table{width:100%;overflow-x: scroll;}
559
+
560
+.fixedTable{width:160%;text-align: center;color:#000;font-size:14px; border-collapse:collapse;background: #fff;}
561
+
562
+.fixedTable tr{line-height: 30px;border:1px solid #d0d3da;}
563
+
564
+// .fixedTable tr:first-child{height:40px;line-height: 40px;}
565
+
566
+.fixedTable td:first-child{position:absolute;width:140px;margin:0px 0px 0px 0px;background: #fff;}
567
+
568
+.fixedColumn{width:140px;}
569
+}
570
+
571
+</style>
572
+<style lang="scss">
573
+.page_dialysisParams{
574
+    .el-table td, .el-table th{
575
+        text-align: center;
576
+    }
577
+    .el-table .cell{
578
+        display: flex;
579
+        align-items: center;
580
+        flex-direction: column;
581
+        white-space: pre-line;
582
+        text-align: center;
583
+    }
584
+    ::-webkit-scrollbar{
585
+        height: 15px !important;
586
+    }
587
+}
588
+html, body {
589
+        width: 100% !important;
590
+        height: 100% !important;
591
+    }
592
+
593
+</style>

+ 110 - 0
src/xt_pages/upload/fast/dialysisSummary.vue Dosyayı Görüntüle

@@ -0,0 +1,110 @@
1
+<template>
2
+    <div class="page_summary">
3
+        <div class="cell clearfix" style="margin-top:10px;">
4
+            <!-- <label class="title">
5
+                <span class="name">治疗日期</span> :
6
+            </label>
7
+            <div class="time">
8
+                <ul class>
9
+                <li
10
+                    :class="item.state == dayType ? 'active' : ''"
11
+                    @click="chooseDay(item.state)"
12
+                    v-for="item in day"
13
+                    :key="item.value"
14
+                >{{ item.label }}</li>
15
+                </ul>
16
+            </div>
17
+            <el-date-picker
18
+                v-model="time"
19
+                prefix-icon="el-icon-date"
20
+                @change="changeTime"
21
+                :editable="false"
22
+                style="width: 150px;"
23
+                type="date"
24
+                placeholder="选择日期时间"
25
+                align="right"
26
+                format="yyyy-MM-dd"
27
+                value-format="yyyy-MM-dd"
28
+            ></el-date-picker> -->
29
+            <label class="title" style="margin-left:10px;">
30
+                <span class="name">患者信息</span> :
31
+            </label>
32
+            <div class="infoBox">
33
+                <span>姓名:{{ patient.name }}</span>&nbsp;|&nbsp;<span>透析编号:{{ patient.dialysis_no }}</span>
34
+            </div>
35
+        </div>
36
+        <div>
37
+            <el-input type="textarea" :disabled="true" :rows="4" placeholder="请输入内容" v-model="dialysis_summary"></el-input>
38
+            <el-button type="primary" v-clipboard:copy="dialysis_summary" v-clipboard:success="onCopy" v-clipboard:error="onError" style="margin-top:10px;float:right;">复制</el-button>
39
+        </div>
40
+    </div>
41
+</template>
42
+
43
+<script>
44
+export default {
45
+    props:{
46
+        treatment_summary:Object,
47
+        patient:Object
48
+    },
49
+    data(){
50
+      return{
51
+        day: [
52
+            { value: 0, label: "今天", state: 0 },
53
+            { value: 1, label: "昨天", state: 1 },
54
+            { value: 2, label: "前天", state: 2 },
55
+        ],
56
+        dayType: 0,
57
+        time:'',
58
+        dialysis_summary:''
59
+      }
60
+    },
61
+    created(){
62
+        this.dialysis_summary = this.treatment_summary.dialysis_summary
63
+    },
64
+    methods:{
65
+        chooseDay(day) {
66
+            this.dayType = day;
67
+        },
68
+        onCopy() {
69
+            this.$message.success("复制成功");
70
+        },
71
+        onError() {
72
+            this.$message.success("复制失败,请重试");
73
+        }
74
+    },
75
+    watch:{
76
+        treatment_summary:{
77
+            handler:function(val) {
78
+                this.dialysis_summary = this.treatment_summary.dialysis_summary
79
+            }
80
+        },
81
+        patient:{
82
+            handler:function(val) {
83
+            }
84
+        },
85
+        deep:true,
86
+    }
87
+}
88
+</script>
89
+
90
+<style lang="scss" scoped>
91
+.tableTitle {
92
+    font-size: 16px;
93
+    color: #000;
94
+    font-weight: bold;
95
+    line-height: 40px;
96
+}
97
+.page_summary{
98
+    width: 100%;
99
+    padding-right: 10px;
100
+    .infoBox{
101
+        padding: 10px 20px;
102
+        border-radius: 20px;
103
+        border:1px solid #DCDFE6;
104
+        font-size: 14px;
105
+        color: #606266;
106
+        display: flex;
107
+        align-items: center;
108
+    }
109
+}
110
+</style>

+ 173 - 0
src/xt_pages/upload/fast/rescueRecord.vue Dosyayı Görüntüle

@@ -0,0 +1,173 @@
1
+<template>
2
+        <div class="page_rescueRecord">
3
+            <div class="cell clearfix" style="margin-top:10px;">
4
+                <!-- <label class="title">
5
+                    <span class="name">治疗日期</span> :
6
+                </label>
7
+                <div class="time">
8
+                    <ul class>
9
+                    <li
10
+                        :class="item.state == dayType ? 'active' : ''"
11
+                        @click="chooseDay(item.state)"
12
+                        v-for="item in day"
13
+                        :key="item.value"
14
+                    >{{ item.label }}</li>
15
+                    </ul>
16
+                </div>
17
+                <el-date-picker
18
+                    v-model="time"
19
+                    prefix-icon="el-icon-date"
20
+                    @change="changeTime"
21
+                    :editable="false"
22
+                    style="width: 150px;"
23
+                    type="date"
24
+                    placeholder="选择日期时间"
25
+                    align="right"
26
+                    format="yyyy-MM-dd"
27
+                    value-format="yyyy-MM-dd"
28
+                ></el-date-picker> -->
29
+                <label class="title" style="margin-left:10px;">
30
+                    <span class="name">患者信息</span> :
31
+                </label>
32
+                <div class="infoBox">
33
+                    <span>姓名:{{ patient.name }}</span>&nbsp;|&nbsp;<span>透析编号:{{ patient.dialysis_no }}</span>
34
+                </div>
35
+            </div>
36
+            <div>
37
+                <el-input type="textarea" :disabled="true" :rows="4" placeholder="请输入内容" v-model="textarea"></el-input>
38
+                <el-button type="primary" v-clipboard:copy="textarea" v-clipboard:success="onCopy" v-clipboard:error="onError" style="margin-top:10px;float:right;">复制</el-button>
39
+            </div>
40
+        </div>
41
+</template>
42
+
43
+<script>
44
+export default {
45
+    props:{
46
+        doctor_advices:Array,
47
+        patient:Object,
48
+        prescription:Object,
49
+    },
50
+    data(){
51
+      return{
52
+        day: [
53
+            { value: 0, label: "今天", state: 0 },
54
+            { value: 1, label: "昨天", state: 1 },
55
+            { value: 2, label: "前天", state: 2 },
56
+        ],
57
+        dayType: 0,
58
+        time:'',
59
+        advices:[],
60
+        textarea:'',
61
+        modeId:''
62
+      }
63
+    },
64
+    created(){
65
+        console.log('patient',this.prescription)
66
+        if(this.prescription.mode_id){
67
+            this.modeId = this.getMode(this.prescription.mode_id)
68
+        }
69
+        
70
+        if(this.doctor_advices.length > 0){
71
+            let str = ''
72
+            let arr = []
73
+            this.advices = this.doctor_advices
74
+            this.advices.map(item => {
75
+                str = item.advice_name + (item.advice_desc ? ('(' +  item.advice_desc + item.drug_spec_unit + ')') : '' )  + '  ' + item.prescribing_number + item.prescribing_number_unit + '  ' + 
76
+                item.single_dose + item.single_dose_unit + '  ' + item.delivery_way + item.execution_frequency + item.remark
77
+                arr.push(str)
78
+            })
79
+            this.textarea = ''
80
+            arr.map(item => {
81
+                this.textarea += item + "\n"
82
+            })
83
+        }else if(this.doctor_advices.length == 0){
84
+            this.textarea = ''
85
+            this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
86
+                            '2.结束' + this.modeId + '治疗' + '\n' +
87
+                            '3.患者离开血透室'
88
+        }
89
+        
90
+        
91
+    },
92
+    methods:{
93
+        chooseDay(day) {
94
+            this.dayType = day;
95
+        },
96
+        getMode(id){
97
+            let name = ''
98
+            this.treatment_mode = Object.values(this.$store.getters.treatment_mode)
99
+            this.treatment_mode.map(item => {
100
+                if(item.id == id){
101
+                    name = item.name
102
+                }
103
+            })
104
+            return name
105
+        },
106
+        onCopy() {
107
+            this.$message.success("复制成功");
108
+        },
109
+        onError() {
110
+            this.$message.success("复制失败,请重试");
111
+        }
112
+    },
113
+    watch:{
114
+        doctor_advices:{
115
+            handler:function(val) {
116
+                if(this.doctor_advices.length > 0){
117
+                    let str = ''
118
+                    let arr = []
119
+                    this.advices = this.doctor_advices
120
+                    this.advices.map(item => {
121
+                        str = item.advice_name + (item.advice_desc ? ('(' +  item.advice_desc + item.drug_spec_unit + ')') : '' )  + '  ' + item.prescribing_number + item.prescribing_number_unit + '  ' + 
122
+                        item.single_dose + item.single_dose_unit + '  ' + item.delivery_way + item.execution_frequency + item.remark
123
+                        arr.push(str)
124
+                    })
125
+                    this.textarea = ''
126
+                    arr.map(item => {
127
+                        this.textarea += item + "\n"
128
+                    })
129
+                }else if(this.doctor_advices.length == 0){
130
+                    this.textarea = ''
131
+                    this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
132
+                                    '2.结束' + this.modeId + '治疗' + '\n' +
133
+                                    '3.患者离开血透室'
134
+                }
135
+            }
136
+        },
137
+        patient:{
138
+            handler:function(val) {
139
+            }
140
+        },
141
+        prescription:{
142
+          handler:function(val) {
143
+                if(this.prescription.mode_id){
144
+                    this.modeId = this.getMode(this.prescription.mode_id)
145
+                }
146
+            }  
147
+        },
148
+        deep:true,
149
+    }
150
+}
151
+</script>
152
+
153
+<style lang="scss" scoped>
154
+.tableTitle {
155
+    font-size: 16px;
156
+    color: #000;
157
+    font-weight: bold;
158
+    line-height: 40px;
159
+}
160
+.page_rescueRecord{
161
+    width: 100%;
162
+    padding-right: 10px;
163
+    .infoBox{
164
+        padding: 10px 20px;
165
+        border-radius: 20px;
166
+        border:1px solid #DCDFE6;
167
+        font-size: 14px;
168
+        color: #606266;
169
+        display: flex;
170
+        align-items: center;
171
+    }
172
+}
173
+</style>

+ 467 - 0
src/xt_pages/upload/fast/treatInfo.vue Dosyayı Görüntüle

@@ -0,0 +1,467 @@
1
+<template>
2
+    <div class="page_treatInfo">
3
+        <div class="cell clearfix" style="margin-top:10px;margin-left:70px;">
4
+            <!-- <label class="title">
5
+                <span class="name">治疗日期</span> :
6
+            </label>
7
+            <div class="time">
8
+                <ul class>
9
+                <li
10
+                    :class="item.state == dayType ? 'active' : ''"
11
+                    @click="chooseDay(item.state)"
12
+                    v-for="item in day"
13
+                    :key="item.value"
14
+                >{{ item.label }}</li>
15
+                </ul>
16
+            </div>
17
+            <el-date-picker
18
+                v-model="time"
19
+                prefix-icon="el-icon-date"
20
+                @change="changeTime"
21
+                :editable="false"
22
+                style="width: 150px;"
23
+                type="date"
24
+                placeholder="选择日期时间"
25
+                align="right"
26
+                format="yyyy-MM-dd"
27
+                value-format="yyyy-MM-dd"
28
+            ></el-date-picker> -->
29
+            <label class="title" style="margin-left:10px;">
30
+                <span class="name">患者信息</span> :
31
+            </label>
32
+            <div class="infoBox">
33
+                <span>姓名:{{ patient.name }}</span>&nbsp;|&nbsp;<span>透析编号:{{ patient.dialysis_no }}</span>
34
+            </div>
35
+        </div>
36
+        <div class="cell clearfix" style="margin-left:80px;">
37
+            <div class="commonTitle">透析方案</div>
38
+        </div>
39
+        <div class="treatInfoMain">
40
+            <div class="basicOne">
41
+                <p class="basicLable">治疗日期:</p>
42
+                <el-input placeholder="请输入内容" v-model="form.date" :disabled="true"></el-input>
43
+            </div>
44
+            <div class="basicOne">
45
+                <p class="basicLable">治疗方式:</p>
46
+                <el-input placeholder="请输入内容" v-model="form.mode_id" :disabled="true"></el-input>
47
+            </div>
48
+            <div class="basicOne">
49
+                <p class="basicLable">治疗时间(小时):</p>
50
+                <el-input placeholder="请输入内容" v-model="form.actual_treatment_hour" :disabled="true"></el-input>
51
+                <el-button type="primary" v-clipboard:copy="form.actual_treatment_hour" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
52
+            </div>
53
+            <div class="basicOne">
54
+                <p class="basicLable">治疗次数:</p>
55
+                <el-input placeholder="请输入内容" v-model="form.total" :disabled="true"></el-input>
56
+                <el-button type="primary" v-clipboard:copy="form.total" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
57
+            </div>
58
+            <div class="basicOne">
59
+                <p class="basicLable">透析器:</p>
60
+                <el-input placeholder="请输入内容" v-model="form.dialyzer_perfusion_apparatus" :disabled="true"></el-input>
61
+            </div>
62
+            <div class="basicOne">
63
+                <p class="basicLable">透析机:</p>
64
+                <el-input placeholder="请输入内容" v-model="form.machine_type" :disabled="true"></el-input>
65
+            </div>
66
+            <div class="basicOne">
67
+                <p class="basicLable">透析膜:</p>
68
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
69
+            </div>
70
+            <div class="basicOne">
71
+                <p class="basicLable">膜面积(㎡):</p>
72
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
73
+                <el-button type="primary" v-clipboard:copy="input" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
74
+            </div>
75
+            <div class="basicOne">
76
+                <p class="basicLable">血管通路:</p>
77
+                <el-input placeholder="请输入内容" v-model="form.blood_access_part_opera_id" :disabled="true"></el-input>
78
+            </div>
79
+            <div class="basicOne">
80
+                <p class="basicLable">血流量(ml/min):</p>
81
+                <el-input placeholder="请输入内容" v-model="form.blood_flow_volume" :disabled="true"></el-input>
82
+                <el-button type="primary" v-clipboard:copy="form.blood_flow_volume" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
83
+            </div>
84
+            <div class="basicOne">
85
+                <p class="basicLable">抗凝剂:</p>
86
+                <el-input placeholder="请输入内容" v-model="form.anticoagulant" :disabled="true"></el-input>
87
+            </div>
88
+            <div class="basicOne">
89
+                <p class="basicLable">首量:</p>
90
+                <el-input placeholder="请输入内容" v-model="form.anticoagulant_shouji" :disabled="true"></el-input>
91
+                <el-button type="primary" v-clipboard:copy="form.anticoagulant_shouji" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
92
+            </div>
93
+            <div class="basicOne">
94
+                <p class="basicLable">追加:</p>
95
+                <el-input placeholder="请输入内容" v-model="form.anticoagulant_weichi" :disabled="true"></el-input>
96
+                <el-button type="primary" v-clipboard:copy="form.anticoagulant_weichi" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
97
+            </div>
98
+            
99
+        </div>
100
+        <div class="cell clearfix" style="margin-left:11px;">
101
+            <div class="commonTitle">透析记录与透后评估</div>
102
+        </div>
103
+        <div class="treatInfoMain">
104
+            <div class="basicOne">
105
+                <p class="basicLable">置换液总量(L):</p>
106
+                <el-input placeholder="请输入内容" v-model="form.displace_liqui_value" :disabled="true"></el-input>
107
+                <el-button type="primary" v-clipboard:copy="form.displace_liqui_value" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
108
+            </div>
109
+            <div class="basicOne">
110
+                <p class="basicLable">滤出液实际值(L):</p>
111
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
112
+                <el-button type="primary" v-clipboard:copy="input" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
113
+            </div>
114
+            <div class="basicOne">
115
+                <p class="basicLable">透析中血浆总量(L):</p>
116
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
117
+                <el-button type="primary" v-clipboard:copy="input" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
118
+            </div>
119
+            <div class="basicOne">
120
+                <p class="basicLable">滤出血浆总量(L):</p>
121
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
122
+                <el-button type="primary" v-clipboard:copy="input" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
123
+            </div>
124
+            <div class="basicOne">
125
+                <p class="basicLable">干体重(kg):</p>
126
+                <el-input placeholder="请输入内容" v-model="form.dry_weight" :disabled="true"></el-input>
127
+                <el-button type="primary" v-clipboard:copy="form.dry_weight" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
128
+            </div>
129
+            <div class="basicOne">
130
+                <p class="basicLable">干体重备注:</p>
131
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
132
+            </div>
133
+            <div class="basicOne">
134
+                <p class="basicLable">透前体重(kg):</p>
135
+                <el-input placeholder="请输入内容" v-model="form.weight_before" :disabled="true"></el-input>
136
+                <el-button type="primary" v-clipboard:copy="form.weight_before" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
137
+            </div>
138
+            <div class="basicOne">
139
+                <p class="basicLable">透前体重备注:</p>
140
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
141
+            </div>
142
+            <div class="basicOne">
143
+                <p class="basicLable">透后体重(kg):</p>
144
+                <el-input placeholder="请输入内容" v-model="form.weight_after" :disabled="true"></el-input>
145
+                <el-button type="primary" v-clipboard:copy="form.weight_after" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
146
+            </div>
147
+            <div class="basicOne">
148
+                <p class="basicLable">预计脱水(kg):</p>
149
+                <el-input placeholder="请输入内容" v-model="form.target_ultrafiltration" :disabled="true"></el-input>
150
+                <el-button type="primary" v-clipboard:copy="form.target_ultrafiltration" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
151
+            </div>
152
+            <div class="basicOne">
153
+                <p class="basicLable">实际脱水(kg):</p>
154
+                <el-input placeholder="请输入内容" v-model="form.actual_ultrafiltration" :disabled="true"></el-input>
155
+                <el-button type="primary" v-clipboard:copy="form.actual_ultrafiltration" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
156
+            </div>
157
+            <div class="basicOne">
158
+                <p class="basicLable">其他方式:</p>
159
+                <el-input placeholder="请输入内容" v-model="input" :disabled="true"></el-input>
160
+            </div>
161
+            <div class="basicTwo">
162
+                <p class="basicTwoLable">抗凝剂使用:</p>
163
+                <el-input type="textarea" style="width:550px;" :disabled="true" :rows="3" placeholder="请输入内容" v-model="textarea"></el-input>
164
+            </div>
165
+            <div class="basicTwo">
166
+                <p class="basicTwoLable">特殊交代事项:</p>
167
+                <el-input type="textarea" style="width:550px;" :disabled="true" :rows="3" placeholder="请输入内容" v-model="textarea"></el-input>
168
+            </div>
169
+            <div class="basicTwo">
170
+                <p class="basicTwoLable">医生记录及医嘱:</p>
171
+                <el-input type="textarea" style="width:550px;" :disabled="true" :rows="3" placeholder="请输入内容" v-model="textarea"></el-input>
172
+            </div>
173
+            
174
+        </div>
175
+        <div class="cell clearfix" style="margin-left:79px;">
176
+            <div class="commonTitle">责任签名</div>
177
+        </div>
178
+        <div class="treatInfoMain">
179
+            <div class="basicOne">
180
+                <p class="basicLable">责任医生:</p>
181
+                <el-input placeholder="请输入内容" v-model="form.doctor" :disabled="true"></el-input>
182
+                <el-button type="primary" v-clipboard:copy="form.doctor" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
183
+            </div>
184
+            <div class="basicOne">
185
+                <p class="basicLable">责任护士:</p>
186
+                <el-input placeholder="请输入内容" v-model="form.responsibleNurse" :disabled="true"></el-input>
187
+                <el-button type="primary" v-clipboard:copy="form.responsibleNurse" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
188
+            </div>
189
+            <div class="basicOne">
190
+                <p class="basicLable">核对护士:</p>
191
+                <el-input placeholder="请输入内容" v-model="form.checkNurse" :disabled="true"></el-input>
192
+                <el-button type="primary" v-clipboard:copy="form.checkNurse" v-clipboard:success="onCopy" v-clipboard:error="onError">复制</el-button>
193
+            </div>
194
+        </div>
195
+    </div>
196
+</template>
197
+
198
+<script>
199
+import { parseTime } from "@/utils";
200
+import { getDataConfig } from "@/utils/data";
201
+import { isNumber } from 'util';
202
+export default {
203
+    props:{
204
+        prescription:Object,
205
+        predialysis_evaluation:Object,
206
+        assessment_after_dislysis:Object,
207
+        patient:Object,
208
+        monitor_records:Array,
209
+        admin_users:Array,
210
+        dialysis_order:Object,
211
+        double_check:Object,
212
+        selected_date:Date
213
+    },
214
+    data(){
215
+      return{
216
+        day: [
217
+            { value: 0, label: "今天", state: 0 },
218
+            { value: 1, label: "昨天", state: 1 },
219
+            { value: 2, label: "前天", state: 2 },
220
+        ],
221
+        dayType: 0,
222
+        time:'',
223
+
224
+        input:'',
225
+        textarea:'',
226
+        form:{
227
+            date:'',
228
+            mode_id:'',
229
+            actual_treatment_hour:'',
230
+            total:'',
231
+            dialyzer_perfusion_apparatus:'',
232
+            machine_type:'',
233
+            blood_access_part_opera_id:'',
234
+            blood_flow_volume:'',
235
+            anticoagulant:'',
236
+            anticoagulant_shouji:'',
237
+            anticoagulant_weichi:'',
238
+            displace_liqui_value:'',
239
+            dry_weight:'',
240
+            weight_before:'',
241
+            weight_after:'',
242
+            target_ultrafiltration:'',
243
+            actual_ultrafiltration:'',
244
+            doctor:'',
245
+            responsibleNurse:'',
246
+            checkNurse:''
247
+        }
248
+      }
249
+    },
250
+    created(){
251
+        this.prescription = this.prescription
252
+        this.predialysis_evaluation = this.predialysis_evaluation
253
+        this.assessment_after_dislysis = this.assessment_after_dislysis
254
+        this.patient = this.patient
255
+        this.monitor_records = this.monitor_records
256
+        this.admin_users = this.admin_users
257
+        this.dialysis_order = this.dialysis_order
258
+        this.double_check = this.double_check
259
+        this.getUpdate()
260
+    },
261
+    methods:{
262
+        chooseDay(day) {
263
+            this.dayType = day;
264
+        },
265
+        getMode(id){
266
+            let name = ''
267
+            this.treatment_mode = Object.values(this.$store.getters.treatment_mode)
268
+            this.treatment_mode.map(item => {
269
+                if(item.id == id){
270
+                    name = item.name
271
+                }
272
+            })
273
+            return name
274
+        },
275
+        getAnticoagulant(id){
276
+            let name = ''
277
+            this.anticoagulants_confit = Object.values(this.$store.getters.anticoagulants_confit)
278
+            this.anticoagulants_confit.map(item => {
279
+                if(item.id == id){
280
+                    name = item.name
281
+                }
282
+            })
283
+            return name
284
+        },
285
+        getBloodAccessPartOpera(id){
286
+            let name = ''
287
+            this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
288
+            this.blood_access_part_opera.map(item => {
289
+                if(item.id == id){
290
+                    name = item.name
291
+                }
292
+            })
293
+            return name
294
+        },
295
+        getAdminUser(id) {
296
+            this.adminUser = this.admin_users
297
+            if (id == 0) {
298
+                return "";
299
+            }
300
+            if (id == undefined) {
301
+                return "";
302
+            }
303
+            for (let i = 0; i < this.adminUser.length; i++) {
304
+                if (this.adminUser[i].id == id) {
305
+                return this.adminUser[i].name;
306
+                }
307
+            }
308
+        },
309
+        getUpdate(){
310
+            this.form.date = parseTime(parseInt(this.selected_date.getTime() / 1000), '{y}-{m}-{d}')
311
+            this.form.mode_id = this.prescription.mode_id
312
+            this.form.actual_treatment_hour = this.assessment_after_dislysis.actual_treatment_hour
313
+            this.form.total = this.patient.total_dialysis + this.patient.user_sys_before_count
314
+            this.form.dialyzer_perfusion_apparatus = this.prescription.dialyzer_perfusion_apparatus
315
+            this.form.machine_type = this.predialysis_evaluation.machine_type
316
+            this.form.blood_access_part_opera_id = this.predialysis_evaluation.blood_access_part_opera_id
317
+            if(this.monitor_records.length > 0){
318
+                this.form.blood_flow_volume = this.monitor_records[0].blood_flow_volume
319
+            }else{
320
+                this.form.blood_flow_volume = ''
321
+            }
322
+            
323
+            this.form.anticoagulant = this.getAnticoagulant(this.prescription.anticoagulant)
324
+            this.form.anticoagulant_shouji = this.prescription.anticoagulant_shouji
325
+            this.form.anticoagulant_weichi = this.prescription.anticoagulant_weichi
326
+            this.form.mode_id = this.getMode(this.form.mode_id)
327
+            this.form.blood_access_part_opera_id = this.getBloodAccessPartOpera(this.form.blood_access_part_opera_id)
328
+
329
+            this.form.displace_liqui_value = this.prescription.displace_liqui_value
330
+            this.form.dry_weight = this.predialysis_evaluation.dry_weight
331
+            this.form.weight_before = this.predialysis_evaluation.weight_before
332
+            this.form.weight_after = this.assessment_after_dislysis.weight_after
333
+            this.form.target_ultrafiltration = this.prescription.target_ultrafiltration
334
+            this.form.actual_ultrafiltration = this.assessment_after_dislysis.actual_ultrafiltration
335
+            this.form.doctor = this.getAdminUser(this.prescription.creater) 
336
+            this.form.responsibleNurse = this.getAdminUser(this.dialysis_order.start_nurse) 
337
+            if(this.double_check.creater == this.dialysis_order.start_nurse){
338
+                this.form.checkNurse = this.getAdminUser(this.double_check.modifier)
339
+            }else{
340
+                this.form.checkNurse = this.getAdminUser(this.double_check.creater)
341
+            }
342
+        },
343
+        onCopy() {
344
+            this.$message.success("复制成功");
345
+        },
346
+        onError() {
347
+            this.$message.success("复制失败,请重试");
348
+        }
349
+    },
350
+    watch:{
351
+        prescription:{
352
+            handler:function(val) {
353
+                this.getUpdate()
354
+            }
355
+        },
356
+        predialysis_evaluation:{
357
+           handler:function(val) {
358
+                this.getUpdate()
359
+            } 
360
+        },
361
+        assessment_after_dislysis:{
362
+           handler:function(val) {
363
+                this.getUpdate()
364
+            }  
365
+        },
366
+        patient:{
367
+           handler:function(val) {
368
+                this.getUpdate()
369
+            }  
370
+        },
371
+        monitor_records:{
372
+           handler:function(val) {
373
+                this.getUpdate()
374
+            }  
375
+        },
376
+        admin_users:{
377
+           handler:function(val) {
378
+                this.getUpdate()
379
+            }  
380
+        },
381
+        dialysis_order:{
382
+           handler:function(val) {
383
+                this.getUpdate()
384
+            }  
385
+        },
386
+        double_check:{
387
+           handler:function(val) {
388
+                this.getUpdate()
389
+            }  
390
+        },
391
+
392
+
393
+        // immediate:true,
394
+        deep:true,
395
+    }
396
+}
397
+</script>
398
+
399
+<style lang="scss" scoped>
400
+.tableTitle {
401
+    font-size: 16px;
402
+    color: #000;
403
+    font-weight: bold;
404
+    line-height: 40px;
405
+}
406
+.page_treatInfo{
407
+    width: 100%;
408
+    padding-right: 10px;
409
+    .infoBox{
410
+        padding: 10px 20px;
411
+        border-radius: 20px;
412
+        border:1px solid #DCDFE6;
413
+        font-size: 14px;
414
+        color: #606266;
415
+        display: flex;
416
+        align-items: center;
417
+    }
418
+    .commonTitle{
419
+        color:#409EFF;
420
+        font-weight: bold;
421
+        font-size: 14px;
422
+    }
423
+    .treatInfoMain{
424
+        display: flex;
425
+        flex-wrap: wrap;
426
+        padding-left: 18px;
427
+        .basicOne{
428
+            width: 380px;
429
+            margin-right: 20px;
430
+            margin-bottom: 10px;
431
+            display: flex;
432
+            align-items: center;
433
+            font-size: 14px;
434
+            color:rgb(48, 49, 51);
435
+            .basicLable{
436
+                width: 120px;
437
+                text-align: right;
438
+                margin-right: 10px;
439
+            }
440
+        }
441
+        .basicTwo{
442
+            width: 680px;
443
+            margin-right: 20px;
444
+            margin-bottom: 10px;
445
+            display: flex; 
446
+            font-size: 14px;
447
+            color:rgb(48, 49, 51);
448
+            .basicTwoLable{
449
+                width: 120px;
450
+                text-align: right;
451
+                margin-right: 10px;
452
+            }  
453
+        }
454
+    }
455
+    
456
+}
457
+</style>
458
+<style lang="scss">
459
+.page_treatInfo{
460
+    .treatInfoMain{
461
+        .el-input{
462
+            width: 150px;
463
+            margin-right: 10px;
464
+        }
465
+    }
466
+}
467
+</style>

+ 3 - 3
src/xt_pages/upload/fast_upload.vue Dosyayı Görüntüle

@@ -6,10 +6,10 @@
6 6
     <div class="app-container">
7 7
       <div class="service-box">
8 8
         <el-tabs v-model="activeName">
9
-          <el-tab-pane label="国家质控平台" name="first">
9
+          <!-- <el-tab-pane label="国家质控平台" name="first">
10 10
            <fast-country></fast-country>
11
-          </el-tab-pane>
12
-          <el-tab-pane label="省级质控平台">
11
+          </el-tab-pane> -->
12
+          <el-tab-pane label="省级质控平台" name="first">
13 13
             <fast-province></fast-province>
14 14
           </el-tab-pane>
15 15
           <el-tab-pane label="市级质控平台">

+ 103 - 100
src/xt_pages/user/components/PatientSidebar.vue Dosyayı Görüntüle

@@ -54,18 +54,18 @@
54 54
   </div>
55 55
 </template>
56 56
 <script>
57
-import { fetchAllList, PostSearch } from "@/api/patient";
58
-import { jsGetAge, uParseTime } from "@/utils/tools";
57
+import { fetchAllList, PostSearch } from '@/api/patient'
58
+import { jsGetAge, uParseTime } from '@/utils/tools'
59 59
 
60 60
 export default {
61
-  name: "patientSidebar",
62
-  value: "",
61
+  name: 'patientSidebar',
62
+  value: '',
63 63
   searchArray: [],
64 64
   props: {
65 65
     id: 0,
66 66
     defaultActive: {
67 67
       type: String,
68
-      default: "1-1"
68
+      default: '1-1'
69 69
     }
70 70
   },
71 71
   data() {
@@ -74,186 +74,189 @@ export default {
74 74
       patientsList: null,
75 75
       currentPatient: {},
76 76
       selectID: 0,
77
-      keyword: "",
78
-      value: "",
79
-      treeKey: "",
77
+      keyword: '',
78
+      value: '',
79
+      treeKey: '',
80 80
       treeData: [
81 81
         {
82
-          name: "1",
83
-          label: "电子病历",
82
+          name: '1',
83
+          label: '电子病历',
84 84
           children: [
85 85
             {
86
-              name: "1-1",
87
-              label: "基本信息"
86
+              name: '1-1',
87
+              label: '基本信息'
88 88
             },
89 89
             {
90
-              name: "1-4",
91
-              label: "医嘱管理"
90
+              name: '1-4',
91
+              label: '医嘱管理'
92 92
             },
93 93
             {
94
-              name: "1-6",
95
-              label: "干体重"
94
+              name: '1-6',
95
+              label: '干体重'
96 96
             },
97 97
             {
98
-              name: "1-2",
99
-              label: "病程管理"
98
+              name: '1-2',
99
+              label: '病程管理'
100 100
             },
101 101
             {
102
-              name: "1-3",
103
-              label: "检验检查"
102
+              name: '1-3',
103
+              label: '检验检查'
104 104
             },
105 105
             {
106
-              name: "1-5",
107
-              label: "抢救记录"
106
+              name: '1-5',
107
+              label: '抢救记录'
108 108
             }
109 109
           ]
110 110
         },
111 111
         {
112
-          name: "2",
113
-          label: "透析管理",
112
+          name: '2',
113
+          label: '透析管理',
114 114
           children: [
115 115
             {
116
-              name: "2-1",
117
-              label: "长期透析处方"
116
+              name: '2-1',
117
+              label: '长期透析处方'
118 118
             },
119 119
             {
120
-              name: "2-2",
121
-              label: "透析记录"
120
+              name: '2-2',
121
+              label: '透析记录'
122 122
             },
123 123
             {
124
-              name: "2-4",
125
-              label: "排班信息"
124
+              name: '2-4',
125
+              label: '排班信息'
126 126
             },
127 127
             {
128
-              name: "2-5",
129
-              label: "宣教信息"
128
+              name: '2-5',
129
+              label: '宣教信息'
130 130
             }
131 131
           ]
132 132
         }
133 133
       ]
134
-    };
134
+    }
135 135
   },
136 136
   methods: {
137 137
     handleNodeClick(data) {
138
-      var name = data.name;
139
-      if (name == "1-1") {
140
-        this.$router.push({ path: "/patients/patient/" + this.id });
141
-      } else if (name == "1-2") {
142
-        this.$router.push({ path: "/patients/course?id=" + this.id });
143
-      } else if (name == "1-3") {
144
-        this.$router.push({ path: "/patients/inspection?id=" + this.id });
145
-      } else if (name == "1-4") {
138
+      var name = data.name
139
+      if (name == '1-1') {
140
+        this.$router.push({ path: '/patients/patient/' + this.id })
141
+      } else if (name == '1-2') {
142
+        this.$router.push({ path: '/patients/course?id=' + this.id })
143
+      } else if (name == '1-3') {
144
+        this.$router.push({ path: '/patients/inspection?id=' + this.id })
145
+      } else if (name == '1-4') {
146 146
         this.$router.push({
147
-          path: "/patients/patient/" + this.id + "/doctorAdvice"
148
-        });
149
-      } else if (name == "1-6") {
147
+          path: '/patients/patient/' + this.id + '/doctorAdvice'
148
+        })
149
+      } else if (name == '1-6') {
150 150
         this.$router.push({
151
-          path: "/patients/patient/" + this.id + "/dryWeight"
152
-        });
153
-      } else if (name == "1-5") {
154
-        this.$router.push({ path: "/patients/rescue?id=" + this.id });
155
-      } else if (name == "2-1") {
151
+          path: '/patients/patient/' + this.id + '/dryWeight'
152
+        })
153
+      } else if (name == '1-5') {
154
+        this.$router.push({ path: '/patients/rescue?id=' + this.id })
155
+      } else if (name == '2-1') {
156 156
         this.$router.push({
157
-          path: "/patients/patient/" + this.id + "/dialysisSolution"
158
-        });
159
-      } else if (name == "2-2") {
157
+          path: '/patients/patient/' + this.id + '/dialysisSolution'
158
+        })
159
+      } else if (name == '2-2') {
160 160
         this.$router.push({
161
-          path: "/patients/patient/" + this.id + "/dialysisRecord"
162
-        });
163
-      } else if (name == "2-4") {
161
+          path: '/patients/patient/' + this.id + '/dialysisRecord'
162
+        })
163
+      } else if (name == '2-4') {
164 164
         this.$router.push({
165
-          path: "/patients/patient/" + this.id + "/scheduling"
166
-        });
167
-      } else if (name == "2-5") {
165
+          path: '/patients/patient/' + this.id + '/scheduling'
166
+        })
167
+      } else if (name == '2-5') {
168 168
         this.$router.push({
169
-          path: "/patients/patient/" + this.id + "/proeducation"
170
-        });
169
+          path: '/patients/patient/' + this.id + '/proeducation'
170
+        })
171 171
       }
172 172
     },
173 173
     changePatient(value) {
174
-      console.log(value);
175
-      this.$router.push("/patients/patient/" + value);
174
+      console.log(value)
175
+      this.$router.push('/patients/patient/' + value)
176 176
     },
177 177
     getList() {
178 178
       fetchAllList().then(response => {
179 179
         if (response.data.state == 1) {
180
-          this.patientsList = response.data.data.patients;
181
-          var len = this.patientsList.length;
180
+          this.patientsList = response.data.data.patients
181
+          var len = this.patientsList.length
182 182
           if (len > 0) {
183 183
             for (let index = 0; index < len; index++) {
184 184
               if (this.patientsList[index].id == this.id) {
185
-                this.currentPatient = this.patientsList[index];
186
-                //console.log("curr", this.currentPatient);
187
-                this.selectID = this.patientsList[index].id;
188
-                this.$emit("tran-patient", this.currentPatient);
189
-                break;
185
+                this.currentPatient = this.patientsList[index]
186
+                // console.log("curr", this.currentPatient);
187
+                this.selectID = this.patientsList[index].id
188
+                this.$emit('tran-patient', this.currentPatient)
189
+                break
190 190
               }
191 191
             }
192 192
           }
193 193
         }
194
-      });
194
+      })
195 195
     },
196 196
     tranAge(birthday) {
197
-      var birth = uParseTime(birthday, "{y}-{m}-{d}");
198
-      return jsGetAge(birth, "-");
197
+      var birth = uParseTime(birthday, '{y}-{m}-{d}')
198
+      return jsGetAge(birth, '-')
199 199
     },
200 200
     tranSex(gender) {
201
-      var sex = "未知";
201
+      var sex = '未知'
202 202
       switch (gender) {
203 203
         case 1:
204
-          sex = "男";
205
-          break;
204
+          sex = '男'
205
+          break
206 206
         case 2:
207
-          sex = "女";
208
-          break;
207
+          sex = '女'
208
+          break
209 209
         default:
210
-          break;
210
+          break
211 211
       }
212
-      return sex;
212
+      return sex
213 213
     },
214 214
     querySearchAsync(keyword, cb) {
215
-      let key = "";
215
+      let key = ''
216 216
       if (keyword != undefined) {
217
-        key = keyword;
217
+        key = keyword
218 218
       }
219
-      let searchArray = [];
219
+      let searchArray = []
220 220
       PostSearch(key).then(response => {
221 221
         if (response.data.state == 1) {
222
-          searchArray = response.data.data.patient;
223
-          cb(searchArray);
222
+          searchArray = response.data.data.patient
223
+          cb(searchArray)
224 224
         } else {
225
-          this.$message.error(response.data.msg);
226
-          cb([]);
225
+          this.$message.error(response.data.msg)
226
+          cb([])
227 227
         }
228
-      });
228
+      })
229 229
     },
230 230
     handleSelect(val) {
231
-      this.$router.push("/patients/patient/" + val.id);
231
+      this.$router.push('/patients/patient/' + val.id)
232 232
     },
233 233
     getAge: function(val) {
234
-      var thisLen = val.id_card_no.length;
235
-      var birth = "";
234
+      if (val.id_card_no == undefined) {
235
+        return false
236
+      }
237
+      var thisLen = val.id_card_no.length
238
+      var birth = ''
236 239
       if (thisLen == 15) {
237
-        birth = "19" + val.id_card_no.substr(6, 6);
240
+        birth = '19' + val.id_card_no.substr(6, 6)
238 241
       } else {
239
-        birth = val.id_card_no.substr(6, 8);
242
+        birth = val.id_card_no.substr(6, 8)
240 243
       }
241 244
       var birthtwo =
242 245
         birth.substr(0, 4) +
243
-        "-" +
246
+        '-' +
244 247
         birth.substr(4, 2) +
245
-        "-" +
246
-        birth.substr(6, 2);
248
+        '-' +
249
+        birth.substr(6, 2)
247 250
 
248
-      var age = jsGetAge(birthtwo, "-");
249
-      return age;
251
+      var age = jsGetAge(birthtwo, '-')
252
+      return age
250 253
     }
251 254
   },
252 255
   created() {
253
-    this.treeKey = this.defaultActive;
254
-    this.getList();
256
+    this.treeKey = this.defaultActive
257
+    this.getList()
255 258
   }
256
-};
259
+}
257 260
 </script>
258 261
 
259 262
 <style>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 562 - 563
src/xt_pages/user/dialysisSolution.vue


+ 9 - 5
src/xt_pages/user/patients.vue Dosyayı Görüntüle

@@ -98,7 +98,7 @@
98 98
 
99 99
 
100 100
       <div style="display:flex;align-items:center">
101
-        <upload-excel :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>
101
+        <upload-excel :on-success='handleSuccess' :before-upload="beforeUpload" v-if="isShow"></upload-excel>
102 102
         <el-link target="_blank" href="https://kuyi.shengws.com/patient_template.xlsx" :underline="false"
103 103
                  style="margin-left:15px">
104 104
           <el-button
@@ -597,6 +597,7 @@
597 597
         phoneVisible:false,
598 598
         idCardNoVisible:false,
599 599
         wechatbindimg: '',
600
+        isShow:true,
600 601
         active: true,
601 602
         schedulType: 0,
602 603
         lapsetoForm: {
@@ -1069,8 +1070,6 @@
1069 1070
                 return cur
1070 1071
               }, []) // 设置cur默认类型为数组,并且初始值为空的数组
1071 1072
 
1072
-
1073
-
1074 1073
               if (tempExportDateTwo.length < this.export_date.length){
1075 1074
                 this.idCardNoVisible = true
1076 1075
                 return
@@ -1083,6 +1082,7 @@
1083 1082
 
1084 1083
                 }
1085 1084
               });
1085
+              this.isShow = false
1086 1086
               let params = {
1087 1087
                 'patients': this.export_date
1088 1088
               }
@@ -1091,7 +1091,11 @@
1091 1091
                   if (response.data.state === 1) {
1092 1092
 
1093 1093
                     this.getList()
1094
+                    this.isShow = true
1095
+
1094 1096
                   } else {
1097
+                    this.isShow = true
1098
+
1095 1099
                     this.$message.error(response.data.msg)
1096 1100
                   }
1097 1101
                 }
@@ -1103,7 +1107,7 @@
1103 1107
 
1104 1108
       },
1105 1109
       getCount(row) {
1106
-        
1110
+
1107 1111
         return row.total_dialysis + row.user_sys_before_count
1108 1112
       },
1109 1113
       EditLapseto() {
@@ -1269,7 +1273,7 @@
1269 1273
             return false
1270 1274
           } else {
1271 1275
             var patient = response.data.data.patient
1272
-            // console.log('二维码病人信息', patient)
1276
+            console.log('二维码病人信息', patient)
1273 1277
             this.id = patient.id
1274 1278
             this.name = patient.name
1275 1279
             this.gender = patient.gender

+ 1 - 1
src/xt_pages/workforce/remind_print.vue Dosyayı Görüntüle

@@ -73,7 +73,7 @@
73 73
                   <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
74 74
                   <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
75 75
                 </td>
76
-                <td :width="td_4_width" >
76
+                <td :width="td_4_width" style="text-align:left" >
77 77
                   <span style="white-space: pre">{{getAdvice(main_collection.doctor_advice)}}</span>
78 78
                 </td>
79 79
               </tr>