Parcourir la source

添加新功能

csx il y a 4 ans
Parent
révision
731135cb3b
27 fichiers modifiés avec 2512 ajouts et 686 suppressions
  1. 51 0
      src/api/integration.js
  2. 2 0
      src/lang/zh.js
  3. 5 0
      src/router/index.js
  4. 24 0
      src/router/modules/integration.js
  5. 2 2
      src/xt_pages/data/druguseTemplate.vue
  6. 140 115
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  7. 145 28
      src/xt_pages/dialysis/batch_print/batch_print_order_five.vue
  8. 127 24
      src/xt_pages/dialysis/batch_print/batch_print_order_five_one.vue
  9. 35 3
      src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue
  10. 88 29
      src/xt_pages/dialysis/batch_print/batch_print_order_four.vue
  11. 126 23
      src/xt_pages/dialysis/batch_print/batch_print_order_other.vue
  12. 111 21
      src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue
  13. 37 3
      src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue
  14. 107 60
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  15. 97 29
      src/xt_pages/dialysis/batch_print/batch_print_order_three.vue
  16. 12 4
      src/xt_pages/dialysis/bulletinBoard.vue
  17. 91 61
      src/xt_pages/dialysis/details/acceptsAssessment.vue
  18. 165 84
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  19. 70 40
      src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue
  20. 57 32
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  21. 90 60
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  22. 58 31
      src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue
  23. 55 17
      src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue
  24. 47 20
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  25. 328 0
      src/xt_pages/integration/his/adminHisConfig.vue
  26. 386 0
      src/xt_pages/integration/his/patientHisConfig.vue
  27. 56 0
      src/xt_pages/integration/his_config.vue

+ 51 - 0
src/api/integration.js Voir le fichier

@@ -0,0 +1,51 @@
1
+import request from '@/utils/request'
2
+
3
+export function fetchPatientList(params) {
4
+  return request({
5
+    url: '/api/integration/patients',
6
+    method: 'get',
7
+    params: params
8
+  })
9
+}
10
+
11
+
12
+export function fetchAdminList(params) {
13
+  return request({
14
+    url: '/api/integration/admin',
15
+    method: 'get',
16
+    params: params
17
+  })
18
+}
19
+
20
+
21
+export function createPatientHis(params) {
22
+  return request({
23
+    url: '/api/patienthis/create',
24
+    method: 'post',
25
+    params: params
26
+  })
27
+}
28
+export function editPatientHis(params) {
29
+  return request({
30
+    url: '/api/patienthis/edit',
31
+    method: 'post',
32
+    params: params
33
+  })
34
+}
35
+
36
+
37
+
38
+export function createAdminHis(params) {
39
+  return request({
40
+    url: '/api/adminhis/create',
41
+    method: 'post',
42
+    params: params
43
+  })
44
+}
45
+export function editAdminHis(params) {
46
+  return request({
47
+    url: '/api/adminhis/edit',
48
+    method: 'post',
49
+    params: params
50
+  })
51
+}

+ 2 - 0
src/lang/zh.js Voir le fichier

@@ -167,6 +167,8 @@ export default {
167 167
     quality_control: '质控上报',
168 168
     remind_print: '排版提醒打印',
169 169
     system_prescription:"透析方案",
170
+    integration_config: "集成配置",
171
+    his_config:"HIS集成配置",
170 172
 
171 173
   },
172 174
   navbar: {

+ 5 - 0
src/router/index.js Voir le fichier

@@ -16,6 +16,10 @@ import service from './modules/service'
16 16
 import org from './modules/org'
17 17
 import systems from './modules/systems'
18 18
 import data_upload from './modules/data_upload'
19
+import integration from './modules/integration'
20
+
21
+
22
+
19 23
 
20 24
 
21 25
 
@@ -100,6 +104,7 @@ var _asy_router_map = [
100 104
   device,
101 105
   org,
102 106
   data_upload,
107
+  integration,
103 108
   systems,
104 109
 ]
105 110
 

+ 24 - 0
src/router/modules/integration.js Voir le fichier

@@ -0,0 +1,24 @@
1
+import Layout from '@/views/layout/Layout'
2
+
3
+export default {
4
+  path: '/integration/',
5
+  component: Layout,
6
+  redirect: 'noredirect',
7
+  name: 'integration_config',
8
+  alwaysShow: true,
9
+  meta: {
10
+    title: 'integration_config',
11
+    icon: 'excel'
12
+  },
13
+  children: [
14
+    {
15
+      path: '/integration/his',
16
+      component: () => import('@/xt_pages/integration/his_config'),
17
+      name: 'his_config',
18
+      meta: {
19
+        title: 'his_config'
20
+      }
21
+    },
22
+
23
+  ]
24
+}

+ 2 - 2
src/xt_pages/data/druguseTemplate.vue Voir le fichier

@@ -1540,8 +1540,8 @@
1540 1540
             this.$message.success('添加模版成功')
1541 1541
 
1542 1542
             var template = response.data.data.template
1543
-            if (template.advice_templates.length > 0) {
1544
-              for (let i = 0; i < template.advice_templates.length; i++) {
1543
+            if (template.DoctorAdviceTemplate.length > 0) {
1544
+              for (let i = 0; i < template.DoctorAdviceTemplate.length; i++) {
1545 1545
                 const object = {}
1546 1546
                 const DoctorAdviceTemplate = template.DoctorAdviceTemplate[i]
1547 1547
                 for (const key in DoctorAdviceTemplate) {

+ 140 - 115
src/xt_pages/dialysis/batch_print/batch_print_order.vue Voir le fichier

@@ -94,88 +94,92 @@
94 94
                       <div class="inline_block">
95 95
                         入院方式:
96 96
                         <check-box
97
-                          text="步行"
98
-                          :checked="
99
-                            isCheckBoxChecked(
100
-                              record.receive_assessment,
101
-                              'way',
102
-                              1
103
-                            )
104
-                          "
105
-                        ></check-box>
106
-                        <check-box
107
-                          text="扶行"
108
-                          :checked="
109
-                            isCheckBoxChecked(
110
-                              record.receive_assessment,
111
-                              'way',
112
-                              2
113
-                            )
114
-                          "
115
-                        ></check-box>
116
-                        <check-box
117
-                          text="轮椅"
118
-                          :checked="
119
-                            isCheckBoxChecked(
120
-                              record.receive_assessment,
121
-                              'way',
122
-                              3
123
-                            )
124
-                          "
125
-                        ></check-box>
126
-                        <check-box
127
-                          text="平车"
97
+                          v-for="(item, index) in way_arr"
98
+                          :key="index"
99
+                          :text="item.name"
128 100
                           :checked="
129 101
                             isCheckBoxChecked(
130 102
                               record.receive_assessment,
131 103
                               'way',
132
-                              4
133
-                            )
134
-                          "
135
-                        ></check-box>
104
+                              item.id
105
+                            )
106
+                          "
107
+                        ></check-box>
108
+                        <!--<check-box-->
109
+                          <!--text="扶行"-->
110
+                          <!--:checked="-->
111
+                            <!--isCheckBoxChecked(-->
112
+                              <!--record.receive_assessment,-->
113
+                              <!--'way',-->
114
+                              <!--2-->
115
+                            <!--)-->
116
+                          <!--"-->
117
+                        <!--&gt;</check-box>-->
118
+                        <!--<check-box-->
119
+                          <!--text="轮椅"-->
120
+                          <!--:checked="-->
121
+                            <!--isCheckBoxChecked(-->
122
+                              <!--record.receive_assessment,-->
123
+                              <!--'way',-->
124
+                              <!--3-->
125
+                            <!--)-->
126
+                          <!--"-->
127
+                        <!--&gt;</check-box>-->
128
+                        <!--<check-box-->
129
+                          <!--text="平车"-->
130
+                          <!--:checked="-->
131
+                            <!--isCheckBoxChecked(-->
132
+                              <!--record.receive_assessment,-->
133
+                              <!--'way',-->
134
+                              <!--4-->
135
+                            <!--)-->
136
+                          <!--"-->
137
+                        <!--&gt;</check-box>-->
136 138
                       </div>
137 139
                       <div class="inline_block" style="margin-left: 15px;">
138 140
                         意识:
139 141
                         <check-box
140
-                          text="清醒"
141
-                          :checked="
142
-                            isCheckBoxChecked(
143
-                              record.receive_assessment,
144
-                              'consciousness',
145
-                              1
146
-                            )
147
-                          "
148
-                        ></check-box>
149
-                        <check-box
150
-                          text="嗜睡"
151
-                          :checked="
152
-                            isCheckBoxChecked(
153
-                              record.receive_assessment,
154
-                              'consciousness',
155
-                              2
156
-                            )
157
-                          "
158
-                        ></check-box>
159
-                        <check-box
160
-                          text="昏迷"
161
-                          :checked="
162
-                            isCheckBoxChecked(
163
-                              record.receive_assessment,
164
-                              'consciousness',
165
-                              3
166
-                            )
167
-                          "
168
-                        ></check-box>
169
-                        <check-box
170
-                          text="模糊"
142
+                          v-for="(item, index) in consciousness_arr" :key="index"
143
+                          :text="item.name"
144
+
171 145
                           :checked="
172 146
                             isCheckBoxChecked(
173 147
                               record.receive_assessment,
174 148
                               'consciousness',
175
-                              4
176
-                            )
177
-                          "
178
-                        ></check-box>
149
+                              item.id
150
+                            )
151
+                          "
152
+                        ></check-box>
153
+                        <!--<check-box-->
154
+                          <!--text="嗜睡"-->
155
+                          <!--:checked="-->
156
+                            <!--isCheckBoxChecked(-->
157
+                              <!--record.receive_assessment,-->
158
+                              <!--'consciousness',-->
159
+                              <!--2-->
160
+                            <!--)-->
161
+                          <!--"-->
162
+                        <!--&gt;</check-box>-->
163
+                        <!--<check-box-->
164
+                          <!--text="昏迷"-->
165
+                          <!--:checked="-->
166
+                            <!--isCheckBoxChecked(-->
167
+                              <!--record.receive_assessment,-->
168
+                              <!--'consciousness',-->
169
+                              <!--3-->
170
+                            <!--)-->
171
+                          <!--"-->
172
+                        <!--&gt;</check-box>-->
173
+                        <!--<check-box-->
174
+                          <!--text="模糊"-->
175
+                          <!--:checked="-->
176
+                            <!--isCheckBoxChecked(-->
177
+                              <!--record.receive_assessment,-->
178
+                              <!--'consciousness',-->
179
+                              <!--4-->
180
+                            <!--)-->
181
+                          <!--"-->
182
+                        <!--&gt;</check-box>-->
179 183
                       </div>
180 184
                       <div class="inline_block" style="margin-left: 30px;">
181 185
                         体温:
@@ -193,55 +197,56 @@
193 197
                       <div class="inline_block">
194 198
                         体位:
195 199
                         <check-box
196
-                          text="自动体位"
197
-                          :checked="
198
-                            isCheckBoxChecked(
199
-                              record.receive_assessment,
200
-                              'posture',
201
-                              1
202
-                            )
203
-                          "
204
-                        ></check-box>
205
-                        <check-box
206
-                          text="平卧位"
207
-                          :checked="
208
-                            isCheckBoxChecked(
209
-                              record.receive_assessment,
210
-                              'posture',
211
-                              2
212
-                            )
213
-                          "
214
-                        ></check-box>
215
-                        <check-box
216
-                          text="半卧位"
217
-                          :checked="
218
-                            isCheckBoxChecked(
219
-                              record.receive_assessment,
220
-                              'posture',
221
-                              3
222
-                            )
223
-                          "
224
-                        ></check-box>
225
-                        <check-box
226
-                          text="端坐位"
227
-                          :checked="
228
-                            isCheckBoxChecked(
229
-                              record.receive_assessment,
230
-                              'posture',
231
-                              4
232
-                            )
233
-                          "
234
-                        ></check-box>
235
-                        <check-box
236
-                          text="躁动不安"
200
+                          v-for="(item, index) in posture_arr" :key="index"
201
+                          :text="item.name"
237 202
                           :checked="
238 203
                             isCheckBoxChecked(
239 204
                               record.receive_assessment,
240 205
                               'posture',
241
-                              5
242
-                            )
243
-                          "
244
-                        ></check-box>
206
+                              item.id
207
+                            )
208
+                          "
209
+                        ></check-box>
210
+                        <!--<check-box-->
211
+                          <!--text="平卧位"-->
212
+                          <!--:checked="-->
213
+                            <!--isCheckBoxChecked(-->
214
+                              <!--record.receive_assessment,-->
215
+                              <!--'posture',-->
216
+                              <!--2-->
217
+                            <!--)-->
218
+                          <!--"-->
219
+                        <!--&gt;</check-box>-->
220
+                        <!--<check-box-->
221
+                          <!--text="半卧位"-->
222
+                          <!--:checked="-->
223
+                            <!--isCheckBoxChecked(-->
224
+                              <!--record.receive_assessment,-->
225
+                              <!--'posture',-->
226
+                              <!--3-->
227
+                            <!--)-->
228
+                          <!--"-->
229
+                        <!--&gt;</check-box>-->
230
+                        <!--<check-box-->
231
+                          <!--text="端坐位"-->
232
+                          <!--:checked="-->
233
+                            <!--isCheckBoxChecked(-->
234
+                              <!--record.receive_assessment,-->
235
+                              <!--'posture',-->
236
+                              <!--4-->
237
+                            <!--)-->
238
+                          <!--"-->
239
+                        <!--&gt;</check-box>-->
240
+                        <!--<check-box-->
241
+                          <!--text="躁动不安"-->
242
+                          <!--:checked="-->
243
+                            <!--isCheckBoxChecked(-->
244
+                              <!--record.receive_assessment,-->
245
+                              <!--'posture',-->
246
+                              <!--5-->
247
+                            <!--)-->
248
+                          <!--"-->
249
+                        <!--&gt;</check-box>-->
245 250
                       </div>
246 251
                     </div>
247 252
                     <div class="row" style="padding: 2px 0;">
@@ -1890,6 +1895,16 @@ export default {
1890 1895
         //     advices: [],
1891 1896
         // },
1892 1897
       ],
1898
+
1899
+      way_arr: [],
1900
+      consciousness_arr: [],
1901
+      appetite_arr: [],
1902
+      posture_arr: [],
1903
+      sick_condition_arr: [],
1904
+      precaution_arr: [],
1905
+      intake_arr: [],
1906
+      nutrition_arr: [],
1907
+
1893 1908
       loading: false,
1894 1909
       orgname: "",
1895 1910
       org_template_info: {},
@@ -1924,6 +1939,16 @@ export default {
1924 1939
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1925 1940
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1926 1941
 
1942
+    this.way_arr = getDataConfig('hemodialysis', 'way')
1943
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1944
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1945
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
1946
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1947
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1948
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
1949
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1950
+
1951
+
1927 1952
     var bloodAccessParOpera = getDataConfig(
1928 1953
       "hemodialysis",
1929 1954
       "vascular_access_desc"

+ 145 - 28
src/xt_pages/dialysis/batch_print/batch_print_order_five.vue Voir le fichier

@@ -59,10 +59,22 @@
59 59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
60 60
                     <div class="inline_block">
61 61
                       入科方式:
62
-                      <check-box text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>
63
-                      <check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>
64
-                      <check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>
65
-                      <check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>
62
+                      <check-box
63
+                        v-for="(item, index) in way_arr"
64
+                        :key="index"
65
+                        :text="item.name"
66
+                        :checked="
67
+                            isCheckBoxChecked(
68
+                              record.receive_assessment,
69
+                              'way',
70
+                              item.id
71
+                            )
72
+                          "
73
+                      ></check-box>
74
+                      <!--<check-box v-for="" text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>-->
75
+                      <!--<check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>-->
76
+                      <!--<check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>-->
77
+                      <!--<check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>-->
66 78
                     </div>
67 79
                     <div class="inline_block" style="margin-left: 30px;">
68 80
                       体温:
@@ -96,10 +108,22 @@
96 108
                   <div class="row" style="padding: 2px 0;line-height:19px;">
97 109
                     <div class="inline_block" >
98 110
                       意识:
99
-                      <check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>
100
-                      <check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>
101
-                      <check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>
102
-                      <check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>
111
+                      <check-box
112
+                        v-for="(item, index) in consciousness_arr" :key="index"
113
+                        :text="item.name"
114
+
115
+                        :checked="
116
+                            isCheckBoxChecked(
117
+                              record.receive_assessment,
118
+                              'consciousness',
119
+                              item.id
120
+                            )
121
+                          "
122
+                      ></check-box>
123
+                      <!--<check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>-->
124
+                      <!--<check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>-->
125
+                      <!--<check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>-->
126
+                      <!--<check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>-->
103 127
 
104 128
                     </div>
105 129
                     <div class="inline_block"  style="margin-left: 5px;">
@@ -231,9 +255,21 @@
231 255
                     </div>
232 256
                     <div class="inline_block">
233 257
                       病情:
234
-                      <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
235
-                      <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
236
-                      <check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
258
+                      <check-box
259
+                        v-for="(item, index) in sick_condition_arr" :key="index"
260
+                        :text="item.name"
261
+
262
+                        :checked="
263
+                            isCheckBoxChecked(
264
+                              record.receive_assessment,
265
+                              'sick_condition',
266
+                              item.id
267
+                            )
268
+                          "
269
+                      ></check-box>
270
+                      <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
271
+                      <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
272
+                      <!--<check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
237 273
                       <div class="inline_block">
238 274
                         其它:
239 275
                         <div class="under_line" style="width: 150px;text-align: left">
@@ -250,21 +286,58 @@
250 286
                     <div class="inline_block">
251 287
                       营养状况评估:
252 288
                       &emsp;食欲:
253
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>
254
-                      <check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>
255
-                      <check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>
256
-                      <check-box text="呕吐" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 4)"></check-box>
257
-                      <check-box text="腹泻" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 5)"></check-box>
289
+                      <check-box
290
+                        v-for="(item, index) in appetite_arr" :key="index"
291
+                        :text="item.name"
292
+
293
+                        :checked="
294
+                            isCheckBoxChecked(
295
+                              record.receive_assessment,
296
+                              'appetite',
297
+                              item.id
298
+                            )
299
+                          "
300
+                      ></check-box>
301
+
302
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>-->
303
+                      <!--<check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>-->
304
+                      <!--<check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>-->
305
+                      <!--<check-box text="呕吐" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 4)"></check-box>-->
306
+                      <!--<check-box text="腹泻" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 5)"></check-box>-->
258 307
                     </div>
259 308
                     <div class="inline_block">
260 309
                       &emsp; 摄入量:
261
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 1)"></check-box>
262
-                      <check-box text="减少" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 2)"></check-box>
310
+                      <check-box
311
+                        v-for="(item, index) in intake_arr" :key="index"
312
+                        :text="item.name"
313
+
314
+                        :checked="
315
+                            isCheckBoxChecked(
316
+                              record.receive_assessment,
317
+                              'intake',
318
+                              item.id
319
+                            )
320
+                          "
321
+                      ></check-box>
322
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 1)"></check-box>-->
323
+                      <!--<check-box text="减少" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 2)"></check-box>-->
263 324
                     </div>
264 325
                     <div class="inline_block">
265 326
                       &emsp;营养状况:
266
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 1)"></check-box>
267
-                      <check-box text="营养不良" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 2)"></check-box>
327
+                      <check-box
328
+                        v-for="(item, index) in nutrition_arr" :key="index"
329
+                        :text="item.name"
330
+
331
+                        :checked="
332
+                            isCheckBoxChecked(
333
+                              record.receive_assessment,
334
+                              'nutrition',
335
+                              item.id
336
+                            )
337
+                          "
338
+                      ></check-box>
339
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 1)"></check-box>-->
340
+                      <!--<check-box text="营养不良" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 2)"></check-box>-->
268 341
                     </div>
269 342
                   </div>
270 343
                   <div class="row" style="padding: 2px 0; line-height:19px;">
@@ -290,10 +363,23 @@
290 363
                     </div>
291 364
                     <div class="inline_block">
292 365
                       跌倒风险预防措施:
293
-                      <check-box text="镇静剂" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 1)"></check-box>
294
-                      <check-box text="约束带" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 2)"></check-box>
295
-                      <check-box text="床栏" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 3)"></check-box>
296
-                      <check-box text="加强宣传" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 4)"></check-box>
366
+
367
+                      <check-box
368
+                        v-for="(item, index) in precaution_arr" :key="index"
369
+                        :text="item.name"
370
+
371
+                        :checked="
372
+                            isCheckBoxChecked(
373
+                              record.receive_assessment,
374
+                              'nutrition',
375
+                              item.id
376
+                            )
377
+                          "
378
+                      ></check-box>
379
+                      <!--<check-box text="镇静剂" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 1)"></check-box>-->
380
+                      <!--<check-box text="约束带" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 2)"></check-box>-->
381
+                      <!--<check-box text="床栏" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 3)"></check-box>-->
382
+                      <!--<check-box text="加强宣传" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 4)"></check-box>-->
297 383
                       <div class="inline_block">
298 384
                         其它:
299 385
                         <div class="under_line" style="width: 100px;">
@@ -775,9 +861,21 @@
775 861
 
776 862
                   <div class="inline_block" style="margin-left:20px;">
777 863
                     病情:
778
-                    <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
779
-                    <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
780
-                    <check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
864
+                    <check-box
865
+                      v-for="(item, index) in sick_condition_arr" :key="index"
866
+                      :text="item.name"
867
+
868
+                      :checked="
869
+                            isCheckBoxChecked(
870
+                              record.receive_assessment,
871
+                              'sick_condition',
872
+                              item.id
873
+                            )
874
+                          "
875
+                    ></check-box>
876
+                    <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
877
+                    <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
878
+                    <!--<check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
781 879
                   </div>
782 880
                 </div>
783 881
                 <div class="row" style="padding: 2px 0;line-height:24px;">
@@ -1169,10 +1267,29 @@
1169 1267
         doctor_advices: [],
1170 1268
         advice_groups: [],
1171 1269
         advice_groups_2: [],
1172
-        complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛']
1270
+        complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛'],
1271
+
1272
+        way_arr: [],
1273
+        consciousness_arr: [],
1274
+        appetite_arr: [],
1275
+        posture_arr: [],
1276
+        sick_condition_arr: [],
1277
+        precaution_arr: [],
1278
+        intake_arr: [],
1279
+        nutrition_arr: [],
1173 1280
       }
1174 1281
     },
1175 1282
     created() {
1283
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1284
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1285
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1286
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1287
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1288
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1289
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1290
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1291
+
1292
+
1176 1293
       var xtuser = this.$store.getters.xt_user
1177 1294
       this.orgname = xtuser.org.org_name
1178 1295
       //   this.orgname = "遂溪方济医院";

+ 127 - 24
src/xt_pages/dialysis/batch_print/batch_print_order_five_one.vue Voir le fichier

@@ -59,10 +59,22 @@
59 59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
60 60
                     <div class="inline_block">
61 61
                       入科方式:
62
-                      <check-box text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>
63
-                      <check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>
64
-                      <check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>
65
-                      <check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>
62
+                      <check-box
63
+                        v-for="(item, index) in way_arr"
64
+                        :key="index"
65
+                        :text="item.name"
66
+                        :checked="
67
+                            isCheckBoxChecked(
68
+                              record.receive_assessment,
69
+                              'way',
70
+                              item.id
71
+                            )
72
+                          "
73
+                      ></check-box>
74
+                      <!--<check-box text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>-->
75
+                      <!--<check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>-->
76
+                      <!--<check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>-->
77
+                      <!--<check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>-->
66 78
                     </div>
67 79
                     <div class="inline_block" style="margin-left: 30px;">
68 80
                       体温:
@@ -96,10 +108,22 @@
96 108
                   <div class="row" style="padding: 2px 0;line-height:19px;">
97 109
                     <div class="inline_block" >
98 110
                       意识:
99
-                      <check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>
100
-                      <check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>
101
-                      <check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>
102
-                      <check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>
111
+                      <check-box
112
+                        v-for="(item, index) in consciousness_arr" :key="index"
113
+                        :text="item.name"
114
+
115
+                        :checked="
116
+                            isCheckBoxChecked(
117
+                              record.receive_assessment,
118
+                              'consciousness',
119
+                              item.id
120
+                            )
121
+                          "
122
+                      ></check-box>
123
+                      <!--<check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>-->
124
+                      <!--<check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>-->
125
+                      <!--<check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>-->
126
+                      <!--<check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>-->
103 127
 
104 128
                     </div>
105 129
                     <div class="inline_block"  style="margin-left: 5px;">
@@ -231,9 +255,21 @@
231 255
                     </div>
232 256
                     <div class="inline_block">
233 257
                       病情:
234
-                      <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
235
-                      <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
236
-                      <check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
258
+                      <check-box
259
+                        v-for="(item, index) in sick_condition_arr" :key="index"
260
+                        :text="item.name"
261
+
262
+                        :checked="
263
+                            isCheckBoxChecked(
264
+                              record.receive_assessment,
265
+                              'sick_condition',
266
+                              item.id
267
+                            )
268
+                          "
269
+                      ></check-box>
270
+                      <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
271
+                      <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
272
+                      <!--<check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
237 273
                       <div class="inline_block">
238 274
                         其它:
239 275
                         <div class="under_line" style="width: 150px;text-align: left">
@@ -250,21 +286,57 @@
250 286
                     <div class="inline_block">
251 287
                       营养状况评估:
252 288
                       &emsp;食欲:
253
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>
254
-                      <check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>
255
-                      <check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>
256
-                      <check-box text="呕吐" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 4)"></check-box>
257
-                      <check-box text="腹泻" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 5)"></check-box>
289
+                      <check-box
290
+                        v-for="(item, index) in appetite_arr" :key="index"
291
+                        :text="item.name"
292
+
293
+                        :checked="
294
+                            isCheckBoxChecked(
295
+                              record.receive_assessment,
296
+                              'appetite',
297
+                              item.id
298
+                            )
299
+                          "
300
+                      ></check-box>
301
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>-->
302
+                      <!--<check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>-->
303
+                      <!--<check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>-->
304
+                      <!--<check-box text="呕吐" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 4)"></check-box>-->
305
+                      <!--<check-box text="腹泻" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 5)"></check-box>-->
258 306
                     </div>
259 307
                     <div class="inline_block">
260 308
                       &emsp; 摄入量:
261
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 1)"></check-box>
262
-                      <check-box text="减少" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 2)"></check-box>
309
+                      <check-box
310
+                        v-for="(item, index) in intake_arr" :key="index"
311
+                        :text="item.name"
312
+
313
+                        :checked="
314
+                            isCheckBoxChecked(
315
+                              record.receive_assessment,
316
+                              'intake',
317
+                              item.id
318
+                            )
319
+                          "
320
+                      ></check-box>
321
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 1)"></check-box>-->
322
+                      <!--<check-box text="减少" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 2)"></check-box>-->
263 323
                     </div>
264 324
                     <div class="inline_block">
265 325
                       &emsp;营养状况:
266
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 1)"></check-box>
267
-                      <check-box text="营养不良" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 2)"></check-box>
326
+                      <check-box
327
+                        v-for="(item, index) in nutrition_arr" :key="index"
328
+                        :text="item.name"
329
+
330
+                        :checked="
331
+                            isCheckBoxChecked(
332
+                              record.receive_assessment,
333
+                              'nutrition',
334
+                              item.id
335
+                            )
336
+                          "
337
+                      ></check-box>
338
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 1)"></check-box>-->
339
+                      <!--<check-box text="营养不良" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 2)"></check-box>-->
268 340
                     </div>
269 341
                   </div>
270 342
                   <div class="row" style="padding: 2px 0; line-height:19px;">
@@ -290,10 +362,22 @@
290 362
                     </div>
291 363
                     <div class="inline_block">
292 364
                       跌倒风险预防措施:
293
-                      <check-box text="镇静剂" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 1)"></check-box>
294
-                      <check-box text="约束带" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 2)"></check-box>
295
-                      <check-box text="床栏" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 3)"></check-box>
296
-                      <check-box text="加强宣传" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 4)"></check-box>
365
+                      <check-box
366
+                        v-for="(item, index) in precaution_arr" :key="index"
367
+                        :text="item.name"
368
+
369
+                        :checked="
370
+                            isCheckBoxChecked(
371
+                              record.receive_assessment,
372
+                              'precaution',
373
+                              item.id
374
+                            )
375
+                          "
376
+                      ></check-box>
377
+                      <!--<check-box text="镇静剂" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 1)"></check-box>-->
378
+                      <!--<check-box text="约束带" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 2)"></check-box>-->
379
+                      <!--<check-box text="床栏" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 3)"></check-box>-->
380
+                      <!--<check-box text="加强宣传" :checked="isCheckBoxChecked(record.receive_assessment, 'precaution', 4)"></check-box>-->
297 381
                       <div class="inline_block">
298 382
                         其它:
299 383
                         <div class="under_line" style="width: 100px;">
@@ -719,6 +803,14 @@
719 803
           //     advices: [],
720 804
           // },
721 805
         ],
806
+        way_arr: [],
807
+        consciousness_arr: [],
808
+        appetite_arr: [],
809
+        posture_arr: [],
810
+        sick_condition_arr: [],
811
+        precaution_arr: [],
812
+        intake_arr: [],
813
+        nutrition_arr: [],
722 814
         loading: false,
723 815
         orgname: '',
724 816
         bloodAccessParOpera: {},
@@ -734,6 +826,17 @@
734 826
       }
735 827
     },
736 828
     created() {
829
+      this.way_arr = getDataConfig('hemodialysis', 'way')
830
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
831
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
832
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
833
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
834
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
835
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
836
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
837
+
838
+
839
+
737 840
       var xtuser = this.$store.getters.xt_user
738 841
       this.orgname = xtuser.org.org_name
739 842
       //   this.orgname = "遂溪方济医院";

+ 35 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue Voir le fichier

@@ -98,9 +98,22 @@
98 98
 
99 99
                   <div class="inline_block" style="margin-left:20px;">
100 100
                     病情:
101
-                    <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
102
-                    <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
103
-                    <check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
101
+                    <check-box
102
+                      v-for="(item, index) in sick_condition_arr" :key="index"
103
+                      :text="item.name"
104
+
105
+                      :checked="
106
+                            isCheckBoxChecked(
107
+                              record.receive_assessment,
108
+                              'sick_condition',
109
+                              item.id
110
+                            )
111
+                          "
112
+                    ></check-box>
113
+
114
+                    <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
115
+                    <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
116
+                    <!--<check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
104 117
                     <div class="inline_block">
105 118
                       其它:
106 119
                       <div class="under_line" style="width: 150px;text-align: left">
@@ -486,6 +499,15 @@
486 499
           //     advices: [],
487 500
           // },
488 501
         ],
502
+        way_arr: [],
503
+        consciousness_arr: [],
504
+        appetite_arr: [],
505
+        posture_arr: [],
506
+        sick_condition_arr: [],
507
+        precaution_arr: [],
508
+        intake_arr: [],
509
+        nutrition_arr: [],
510
+
489 511
         loading: false,
490 512
         orgname: '',
491 513
         bloodAccessParOpera: {},
@@ -501,6 +523,16 @@
501 523
       }
502 524
     },
503 525
     created() {
526
+      this.way_arr = getDataConfig('hemodialysis', 'way')
527
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
528
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
529
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
530
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
531
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
532
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
533
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
534
+
535
+
504 536
       var xtuser = this.$store.getters.xt_user
505 537
       this.orgname = xtuser.org.org_name
506 538
       //   this.orgname = "遂溪方济医院";

+ 88 - 29
src/xt_pages/dialysis/batch_print/batch_print_order_four.vue Voir le fichier

@@ -62,25 +62,41 @@
62 62
                   <div class="row" style="padding: 2px 0;">
63 63
                     <div class="inline_block">
64 64
                       入院方式:
65
-                      <check-box text="步行"
66
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>
67
-                      <check-box text="扶行"
68
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>
69
-                      <check-box text="轮椅"
70
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>
71
-                      <check-box text="平车"
72
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>
65
+                      <check-box
66
+                        v-for="(item, index) in way_arr"
67
+                        :key="index"
68
+                        :text="item.name"
69
+                        :checked="
70
+                            isCheckBoxChecked(
71
+                              record.receive_assessment,
72
+                              'way',
73
+                              item.id
74
+                            )
75
+                          "
76
+                      ></check-box>
73 77
                     </div>
74 78
                     <div class="inline_block" style="margin-left: 30px;">
75 79
                       意识:
76
-                      <check-box text="清醒"
77
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>
78
-                      <check-box text="嗜睡"
79
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>
80
-                      <check-box text="昏迷"
81
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>
82
-                      <check-box text="模糊"
83
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>
80
+                      <check-box
81
+                        v-for="(item, index) in consciousness_arr" :key="index"
82
+                        :text="item.name"
83
+
84
+                        :checked="
85
+                            isCheckBoxChecked(
86
+                              record.receive_assessment,
87
+                              'consciousness',
88
+                              item.id
89
+                            )
90
+                          "
91
+                      ></check-box>
92
+                      <!--<check-box text="清醒"-->
93
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>-->
94
+                      <!--<check-box text="嗜睡"-->
95
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>-->
96
+                      <!--<check-box text="昏迷"-->
97
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>-->
98
+                      <!--<check-box text="模糊"-->
99
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>-->
84 100
                     </div>
85 101
                     <div class="inline_block" style="margin-left: 30px;">
86 102
                       体温:
@@ -93,22 +109,45 @@
93 109
                   <div class="row" style="padding: 2px 0;">
94 110
                     <div class="inline_block">
95 111
                       体位:
96
-                      <check-box text="自动体位"
97
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 1)"></check-box>
98
-                      <check-box text="平卧位"
99
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 2)"></check-box>
100
-                      <check-box text="半卧位"
101
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 3)"></check-box>
102
-                      <check-box text="端坐位"
103
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 4)"></check-box>
104
-                      <check-box text="躁动不安"
105
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 5)"></check-box>
112
+                      <check-box
113
+                        v-for="(item, index) in posture_arr" :key="index"
114
+                        :text="item.name"
115
+                        :checked="
116
+                            isCheckBoxChecked(
117
+                              record.receive_assessment,
118
+                              'posture',
119
+                              item.id
120
+                            )
121
+                          "
122
+                      ></check-box>
123
+                      <!--<check-box text="自动体位"-->
124
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 1)"></check-box>-->
125
+                      <!--<check-box text="平卧位"-->
126
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 2)"></check-box>-->
127
+                      <!--<check-box text="半卧位"-->
128
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 3)"></check-box>-->
129
+                      <!--<check-box text="端坐位"-->
130
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 4)"></check-box>-->
131
+                      <!--<check-box text="躁动不安"-->
132
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 5)"></check-box>-->
106 133
                     </div>
107 134
                     <div class="inline_block"  style="margin-left: 30px;">
108 135
                       病情:
109
-                        <check-box text="一般" :isChecked="isCheckBoxChecked(record.sick_condition, 'posture', 1)"></check-box>
110
-                        <check-box text="重" :isChecked="isCheckBoxChecked(record.sick_condition, 'posture', 2)"></check-box>
111
-                        <check-box text="危险" :isChecked="isCheckBoxChecked(record.sick_condition, 'posture', 3)"></check-box>
136
+                        <!--<check-box text="一般" :isChecked="isCheckBoxChecked(record.sick_condition, 'posture', 1)"></check-box>-->
137
+                        <!--<check-box text="重" :isChecked="isCheckBoxChecked(record.sick_condition, 'posture', 2)"></check-box>-->
138
+                        <!--<check-box text="危险" :isChecked="isCheckBoxChecked(record.sick_condition, 'posture', 3)"></check-box>-->
139
+                      <check-box
140
+                        v-for="(item, index) in sick_condition_arr" :key="index"
141
+                        :text="item.name"
142
+
143
+                        :checked="
144
+                            isCheckBoxChecked(
145
+                              record.receive_assessment,
146
+                              'sick_condition',
147
+                              item.id
148
+                            )
149
+                          "
150
+                      ></check-box>
112 151
                       其它:
113 152
 
114 153
                       <div class="under_line" style="width: 150px;">
@@ -781,6 +820,14 @@
781 820
           //     advices: [],
782 821
           // },
783 822
         ],
823
+        way_arr: [],
824
+        consciousness_arr: [],
825
+        appetite_arr: [],
826
+        posture_arr: [],
827
+        sick_condition_arr: [],
828
+        precaution_arr: [],
829
+        intake_arr: [],
830
+        nutrition_arr: [],
784 831
         loading: false,
785 832
         orgname: '',
786 833
         bloodAccessParOpera: {},
@@ -793,6 +840,18 @@
793 840
       }
794 841
     },
795 842
     created() {
843
+
844
+      this.way_arr = getDataConfig('hemodialysis', 'way')
845
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
846
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
847
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
848
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
849
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
850
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
851
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
852
+
853
+
854
+
796 855
       var xtuser = this.$store.getters.xt_user
797 856
       this.orgname = xtuser.org.org_name
798 857
       //   this.orgname = "遂溪方济医院";

+ 126 - 23
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Voir le fichier

@@ -59,10 +59,22 @@
59 59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
60 60
                     <div class="inline_block">
61 61
                       入科方式:
62
-                      <check-box text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>
63
-                      <check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>
64
-                      <check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>
65
-                      <check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>
62
+                      <check-box
63
+                        v-for="(item, index) in way_arr"
64
+                        :key="index"
65
+                        :text="item.name"
66
+                        :checked="
67
+                            isCheckBoxChecked(
68
+                              record.receive_assessment,
69
+                              'way',
70
+                              item.id
71
+                            )
72
+                          "
73
+                      ></check-box>
74
+                      <!--<check-box text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>-->
75
+                      <!--<check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>-->
76
+                      <!--<check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>-->
77
+                      <!--<check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>-->
66 78
                     </div>
67 79
                     <div class="inline_block" style="margin-left: 30px;">
68 80
                       透析频次:
@@ -84,10 +96,22 @@
84 96
                   <div class="row" style="padding: 2px 0;line-height:19px;">
85 97
                     <div class="inline_block" >
86 98
                       意识:
87
-                      <check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>
88
-                      <check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>
89
-                      <check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>
90
-                      <check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>
99
+                      <check-box
100
+                        v-for="(item, index) in consciousness_arr" :key="index"
101
+                        :text="item.name"
102
+
103
+                        :checked="
104
+                            isCheckBoxChecked(
105
+                              record.receive_assessment,
106
+                              'consciousness',
107
+                              item.id
108
+                            )
109
+                          "
110
+                      ></check-box>
111
+                      <!--<check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>-->
112
+                      <!--<check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>-->
113
+                      <!--<check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>-->
114
+                      <!--<check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>-->
91 115
 
92 116
                     </div>
93 117
                     <div class="inline_block"  style="margin-left: 5px;">
@@ -182,9 +206,21 @@
182 206
                     </div>
183 207
                     <div class="inline_block">
184 208
                       病情:
185
-                      <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
186
-                      <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
187
-                      <check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
209
+                      <check-box
210
+                        v-for="(item, index) in sick_condition_arr" :key="index"
211
+                        :text="item.name"
212
+
213
+                        :checked="
214
+                            isCheckBoxChecked(
215
+                              record.receive_assessment,
216
+                              'sick_condition',
217
+                              item.id
218
+                            )
219
+                          "
220
+                      ></check-box>
221
+                      <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
222
+                      <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
223
+                      <!--<check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
188 224
                     </div>
189 225
                   </div>
190 226
                 </td>
@@ -207,21 +243,57 @@
207 243
                     <div class="inline_block">
208 244
                       营养状况评估:
209 245
                       &emsp;食欲:
210
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>
211
-                      <check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>
212
-                      <check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>
213
-                      <check-box text="呕吐" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 4)"></check-box>
214
-                      <check-box text="腹泻" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 5)"></check-box>
246
+                      <check-box
247
+                        v-for="(item, index) in appetite_arr" :key="index"
248
+                        :text="item.name"
249
+
250
+                        :checked="
251
+                            isCheckBoxChecked(
252
+                              record.receive_assessment,
253
+                              'appetite',
254
+                              item.id
255
+                            )
256
+                          "
257
+                      ></check-box>
258
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>-->
259
+                      <!--<check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>-->
260
+                      <!--<check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>-->
261
+                      <!--<check-box text="呕吐" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 4)"></check-box>-->
262
+                      <!--<check-box text="腹泻" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 5)"></check-box>-->
215 263
                     </div>
216 264
                     <div class="inline_block">
217 265
                       &emsp; 摄入量:
218
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 1)"></check-box>
219
-                      <check-box text="减少" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 2)"></check-box>
266
+                      <check-box
267
+                        v-for="(item, index) in intake_arr" :key="index"
268
+                        :text="item.name"
269
+
270
+                        :checked="
271
+                            isCheckBoxChecked(
272
+                              record.receive_assessment,
273
+                              'intake',
274
+                              item.id
275
+                            )
276
+                          "
277
+                      ></check-box>
278
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 1)"></check-box>-->
279
+                      <!--<check-box text="减少" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 2)"></check-box>-->
220 280
                     </div>
221 281
                     <div class="inline_block">
222 282
                       &emsp;营养状况:
223
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 1)"></check-box>
224
-                      <check-box text="营养不良" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 2)"></check-box>
283
+                      <check-box
284
+                        v-for="(item, index) in nutrition_arr" :key="index"
285
+                        :text="item.name"
286
+
287
+                        :checked="
288
+                            isCheckBoxChecked(
289
+                              record.receive_assessment,
290
+                              'nutrition',
291
+                              item.id
292
+                            )
293
+                          "
294
+                      ></check-box>
295
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 1)"></check-box>-->
296
+                      <!--<check-box text="营养不良" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 2)"></check-box>-->
225 297
                     </div>
226 298
                   </div>
227 299
                   <div class="row" style="padding: 2px 0; line-height:19px;">
@@ -699,9 +771,21 @@
699 771
 
700 772
                   <div class="inline_block" style="margin-left:20px;">
701 773
                     病情:
702
-                    <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
703
-                    <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
704
-                    <check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
774
+                    <check-box
775
+                      v-for="(item, index) in sick_condition_arr" :key="index"
776
+                      :text="item.name"
777
+
778
+                      :checked="
779
+                            isCheckBoxChecked(
780
+                              record.receive_assessment,
781
+                              'sick_condition',
782
+                              item.id
783
+                            )
784
+                          "
785
+                    ></check-box>
786
+                    <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
787
+                    <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
788
+                    <!--<check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
705 789
                   </div>
706 790
                 </div>
707 791
                 <div class="row" style="padding: 2px 0;line-height:24px;">
@@ -1080,6 +1164,15 @@
1080 1164
           //     advices: [],
1081 1165
           // },
1082 1166
         ],
1167
+        way_arr: [],
1168
+        consciousness_arr: [],
1169
+        appetite_arr: [],
1170
+        posture_arr: [],
1171
+        sick_condition_arr: [],
1172
+        precaution_arr: [],
1173
+        intake_arr: [],
1174
+        nutrition_arr: [],
1175
+
1083 1176
         loading: false,
1084 1177
         orgname: '',
1085 1178
         bloodAccessParOpera: {},
@@ -1095,6 +1188,16 @@
1095 1188
       }
1096 1189
     },
1097 1190
     created() {
1191
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1192
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1193
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1194
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1195
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1196
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1197
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1198
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1199
+
1200
+
1098 1201
       var xtuser = this.$store.getters.xt_user
1099 1202
       this.orgname = xtuser.org.org_name
1100 1203
       //   this.orgname = "遂溪方济医院";

+ 111 - 21
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue Voir le fichier

@@ -59,10 +59,22 @@
59 59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
60 60
                     <div class="inline_block">
61 61
                       入科方式:
62
-                      <check-box text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>
63
-                      <check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>
64
-                      <check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>
65
-                      <check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>
62
+                      <check-box
63
+                        v-for="(item, index) in way_arr"
64
+                        :key="index"
65
+                        :text="item.name"
66
+                        :checked="
67
+                            isCheckBoxChecked(
68
+                              record.receive_assessment,
69
+                              'way',
70
+                              item.id
71
+                            )
72
+                          "
73
+                      ></check-box>
74
+                      <!--<check-box text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>-->
75
+                      <!--<check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>-->
76
+                      <!--<check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>-->
77
+                      <!--<check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>-->
66 78
                     </div>
67 79
                     <div class="inline_block" style="margin-left: 30px;">
68 80
                       透析频次:
@@ -81,10 +93,22 @@
81 93
                   <div class="row" style="padding: 2px 0;line-height:19px;">
82 94
                     <div class="inline_block" >
83 95
                       意识:
84
-                      <check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>
85
-                      <check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>
86
-                      <check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>
87
-                      <check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>
96
+                      <check-box
97
+                        v-for="(item, index) in consciousness_arr" :key="index"
98
+                        :text="item.name"
99
+
100
+                        :checked="
101
+                            isCheckBoxChecked(
102
+                              record.receive_assessment,
103
+                              'consciousness',
104
+                              item.id
105
+                            )
106
+                          "
107
+                      ></check-box>
108
+                      <!--<check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>-->
109
+                      <!--<check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>-->
110
+                      <!--<check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>-->
111
+                      <!--<check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>-->
88 112
                     </div>
89 113
                     <div class="inline_block"  style="margin-left: 5px;">
90 114
                       活动性出血:
@@ -178,9 +202,21 @@
178 202
                     </div>
179 203
                     <div class="inline_block">
180 204
                       病情:
181
-                      <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
182
-                      <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
183
-                      <check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
205
+                      <check-box
206
+                        v-for="(item, index) in sick_condition_arr" :key="index"
207
+                        :text="item.name"
208
+
209
+                        :checked="
210
+                            isCheckBoxChecked(
211
+                              record.receive_assessment,
212
+                              'sick_condition',
213
+                              item.id
214
+                            )
215
+                          "
216
+                      ></check-box>
217
+                      <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
218
+                      <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
219
+                      <!--<check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
184 220
                     </div>
185 221
                   </div>
186 222
                 </td>
@@ -203,21 +239,57 @@
203 239
                     <div class="inline_block">
204 240
                       营养状况评估:
205 241
                       &emsp;食欲:
206
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>
207
-                      <check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>
208
-                      <check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>
209
-                      <check-box text="呕吐" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 4)"></check-box>
210
-                      <check-box text="腹泻" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 5)"></check-box>
242
+                      <check-box
243
+                        v-for="(item, index) in appetite_arr" :key="index"
244
+                        :text="item.name"
245
+
246
+                        :checked="
247
+                            isCheckBoxChecked(
248
+                              record.receive_assessment,
249
+                              'appetite',
250
+                              item.id
251
+                            )
252
+                          "
253
+                      ></check-box>
254
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>-->
255
+                      <!--<check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>-->
256
+                      <!--<check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>-->
257
+                      <!--<check-box text="呕吐" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 4)"></check-box>-->
258
+                      <!--<check-box text="腹泻" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 5)"></check-box>-->
211 259
                     </div>
212 260
                     <div class="inline_block">
213 261
                       &emsp; 摄入量:
214
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 1)"></check-box>
215
-                      <check-box text="减少" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 2)"></check-box>
262
+                      <check-box
263
+                        v-for="(item, index) in intake_arr" :key="index"
264
+                        :text="item.name"
265
+
266
+                        :checked="
267
+                            isCheckBoxChecked(
268
+                              record.receive_assessment,
269
+                              'intake',
270
+                              item.id
271
+                            )
272
+                          "
273
+                      ></check-box>
274
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 1)"></check-box>-->
275
+                      <!--<check-box text="减少" :checked="isCheckBoxChecked(record.receive_assessment, 'intake', 2)"></check-box>-->
216 276
                     </div>
217 277
                     <div class="inline_block">
218 278
                       &emsp;营养状况:
219
-                      <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 1)"></check-box>
220
-                      <check-box text="营养不良" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 2)"></check-box>
279
+                      <check-box
280
+                        v-for="(item, index) in nutrition_arr" :key="index"
281
+                        :text="item.name"
282
+
283
+                        :checked="
284
+                            isCheckBoxChecked(
285
+                              record.receive_assessment,
286
+                              'nutrition',
287
+                              item.id
288
+                            )
289
+                          "
290
+                      ></check-box>
291
+                      <!--<check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 1)"></check-box>-->
292
+                      <!--<check-box text="营养不良" :checked="isCheckBoxChecked(record.receive_assessment, 'nutrition', 2)"></check-box>-->
221 293
                     </div>
222 294
                   </div>
223 295
                   <div class="row" style="padding: 2px 0; line-height:19px;">
@@ -634,6 +706,14 @@
634 706
           //     advices: [],
635 707
           // },
636 708
         ],
709
+        way_arr: [],
710
+        consciousness_arr: [],
711
+        appetite_arr: [],
712
+        posture_arr: [],
713
+        sick_condition_arr: [],
714
+        precaution_arr: [],
715
+        intake_arr: [],
716
+        nutrition_arr: [],
637 717
         loading: false,
638 718
         orgname: '',
639 719
         bloodAccessParOpera: {},
@@ -649,6 +729,16 @@
649 729
       }
650 730
     },
651 731
     created() {
732
+      this.way_arr = getDataConfig('hemodialysis', 'way')
733
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
734
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
735
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
736
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
737
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
738
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
739
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
740
+
741
+
652 742
       var xtuser = this.$store.getters.xt_user
653 743
       this.orgname = xtuser.org.org_name
654 744
       //   this.orgname = "遂溪方济医院";
@@ -1083,7 +1173,7 @@
1083 1173
           return record[key] == target_value
1084 1174
 
1085 1175
 
1086
-          
1176
+
1087 1177
         }
1088 1178
       }, getAge: function(val) {
1089 1179
         if (val.age == 0) {

+ 37 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue Voir le fichier

@@ -97,9 +97,21 @@
97 97
 
98 98
                   <div class="inline_block" style="margin-left:20px;">
99 99
                     病情:
100
-                    <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
101
-                    <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
102
-                    <check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
100
+                    <check-box
101
+                      v-for="(item, index) in sick_condition_arr" :key="index"
102
+                      :text="item.name"
103
+
104
+                      :checked="
105
+                            isCheckBoxChecked(
106
+                              record.receive_assessment,
107
+                              'sick_condition',
108
+                              item.id
109
+                            )
110
+                          "
111
+                    ></check-box>
112
+                    <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
113
+                    <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
114
+                    <!--<check-box text="危" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
103 115
                   </div>
104 116
                 </div>
105 117
                 <div class="row" style="padding: 2px 0;line-height:24px;">
@@ -470,6 +482,16 @@
470 482
           //     advices: [],
471 483
           // },
472 484
         ],
485
+
486
+        way_arr: [],
487
+        consciousness_arr: [],
488
+        appetite_arr: [],
489
+        posture_arr: [],
490
+        sick_condition_arr: [],
491
+        precaution_arr: [],
492
+        intake_arr: [],
493
+        nutrition_arr: [],
494
+
473 495
         loading: false,
474 496
         orgname: '',
475 497
         bloodAccessParOpera: {},
@@ -485,6 +507,18 @@
485 507
       }
486 508
     },
487 509
     created() {
510
+
511
+      this.way_arr = getDataConfig('hemodialysis', 'way')
512
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
513
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
514
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
515
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
516
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
517
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
518
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
519
+
520
+
521
+
488 522
       var xtuser = this.$store.getters.xt_user
489 523
       this.orgname = xtuser.org.org_name
490 524
       //   this.orgname = "遂溪方济医院";

+ 107 - 60
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Voir le fichier

@@ -98,39 +98,58 @@
98 98
           <div class="row">
99 99
             <div class="inline_block">
100 100
               入科方式:
101
+              <!--<check-box-->
102
+                <!--v-for="(item, index) in way_arr"-->
103
+                <!--:key="index"-->
104
+                <!--:text="item.name"-->
105
+                <!--:checked="-->
106
+                            <!--isCheckBoxChecked(-->
107
+                              <!--record.receive_assessment,-->
108
+                              <!--'way',-->
109
+                              <!--item.id-->
110
+                            <!--)-->
111
+                          <!--"-->
112
+              <!--&gt;</check-box>-->
113
+              <!--<div-->
114
+                <!--class="under_line"-->
115
+                <!--v-if="record.receive_assessment.way == 0"-->
116
+                <!--style="width: 180px;text-align: left"-->
117
+              <!--&gt;</div>-->
118
+
101 119
               <div
120
+                v-for="item,index in way_arr"
102 121
                 class="under_line"
103
-                v-if="record.receive_assessment.way == 0"
104
-                style="width: 180px;text-align: left"
105
-              ></div>
106
-              <div
107
-                class="under_line"
108
-                v-if="record.receive_assessment.way == 1"
109
-                style="width: 180px;text-align: left"
110
-              >
111
-                步行
112
-              </div>
113
-              <div
114
-                class="under_line"
115
-                v-if="record.receive_assessment.way == 2"
116
-                style="width: 180px;text-align: left"
117
-              >
118
-                扶行
119
-              </div>
120
-              <div
121
-                class="under_line"
122
-                v-if="record.receive_assessment.way == 3"
123
-                style="width: 180px;text-align: left"
124
-              >
125
-                轮椅
126
-              </div>
127
-              <div
128
-                class="under_line"
129
-                v-if="record.receive_assessment.way == 4"
122
+                v-if="record.receive_assessment.way == item.id"
130 123
                 style="width: 180px;text-align: left"
131
-              >
132
-                平车
133
-              </div>
124
+              >{{item.name}}</div>
125
+              <!--<div-->
126
+                <!--class="under_line"-->
127
+                <!--v-if="C.receive_assessment.way == 1"-->
128
+                <!--style="width: 180px;text-align: left"-->
129
+              <!--&gt;-->
130
+                <!--步行-->
131
+              <!--</div>-->
132
+              <!--<div-->
133
+                <!--class="under_line"-->
134
+                <!--v-if="record.receive_assessment.way == 2"-->
135
+                <!--style="width: 180px;text-align: left"-->
136
+              <!--&gt;-->
137
+                <!--扶行-->
138
+              <!--</div>-->
139
+              <!--<div-->
140
+                <!--class="under_line"-->
141
+                <!--v-if="record.receive_assessment.way == 3"-->
142
+                <!--style="width: 180px;text-align: left"-->
143
+              <!--&gt;-->
144
+                <!--轮椅-->
145
+              <!--</div>-->
146
+              <!--<div-->
147
+                <!--class="under_line"-->
148
+                <!--v-if="record.receive_assessment.way == 4"-->
149
+                <!--style="width: 180px;text-align: left"-->
150
+              <!--&gt;-->
151
+                <!--平车-->
152
+              <!--</div>-->
134 153
             </div>
135 154
             <div class="inline_block" style="margin-left: 10px;">
136 155
               诊断:
@@ -1193,38 +1212,44 @@
1193 1212
               <div class="inline_block">
1194 1213
                 入科方式:
1195 1214
                 <div
1215
+                  v-for="item,index in way_arr"
1196 1216
                   class="under_line"
1197
-                  v-if="record.receive_assessment == 0"
1198
-                  style="width: 180px;text-align: left"
1199
-                ></div>
1200
-                <div
1201
-                  class="under_line"
1202
-                  v-if="record.receive_assessment == 1"
1217
+                  v-if="record.receive_assessment.way == item.id"
1203 1218
                   style="width: 180px;text-align: left"
1204
-                >
1205
-                  步行
1206
-                </div>
1207
-                <div
1208
-                  class="under_line"
1209
-                  v-if="record.receive_assessment == 2"
1210
-                  style="width: 180px;text-align: left"
1211
-                >
1212
-                  扶行
1213
-                </div>
1214
-                <div
1215
-                  class="under_line"
1216
-                  v-if="record.receive_assessment == 3"
1217
-                  style="width: 180px;text-align: left"
1218
-                >
1219
-                  轮椅
1220
-                </div>
1221
-                <div
1222
-                  class="under_line"
1223
-                  v-if="record.receive_assessment == 4"
1224
-                  style="width: 180px;text-align: left"
1225
-                >
1226
-                  平车
1227
-                </div>
1219
+                >{{item.name}}</div>
1220
+                <!--<div-->
1221
+                  <!--class="under_line"-->
1222
+                  <!--v-if="record.receive_assessment.way == 0"-->
1223
+                  <!--style="width: 180px;text-align: left"-->
1224
+                <!--&gt;</div>-->
1225
+                <!--<div-->
1226
+                  <!--class="under_line"-->
1227
+                  <!--v-if="record.receive_assessment == 1"-->
1228
+                  <!--style="width: 180px;text-align: left"-->
1229
+                <!--&gt;-->
1230
+                  <!--步行-->
1231
+                <!--</div>-->
1232
+                <!--<div-->
1233
+                  <!--class="under_line"-->
1234
+                  <!--v-if="record.receive_assessment == 2"-->
1235
+                  <!--style="width: 180px;text-align: left"-->
1236
+                <!--&gt;-->
1237
+                  <!--扶行-->
1238
+                <!--</div>-->
1239
+                <!--<div-->
1240
+                  <!--class="under_line"-->
1241
+                  <!--v-if="record.receive_assessment == 3"-->
1242
+                  <!--style="width: 180px;text-align: left"-->
1243
+                <!--&gt;-->
1244
+                  <!--轮椅-->
1245
+                <!--</div>-->
1246
+                <!--<div-->
1247
+                  <!--class="under_line"-->
1248
+                  <!--v-if="record.receive_assessment == 4"-->
1249
+                  <!--style="width: 180px;text-align: left"-->
1250
+                <!--&gt;-->
1251
+                  <!--平车-->
1252
+                <!--</div>-->
1228 1253
               </div>
1229 1254
               <div class="inline_block" style="margin-left: 10px;">
1230 1255
                 诊断:
@@ -1788,6 +1813,18 @@ export default {
1788 1813
         { path: false, name: '透析管理' },
1789 1814
         { path: false, name: '批量打印' }
1790 1815
       ],
1816
+
1817
+      way_arr: [],
1818
+      consciousness_arr: [],
1819
+      appetite_arr: [],
1820
+      posture_arr: [],
1821
+      sick_condition_arr: [],
1822
+      precaution_arr: [],
1823
+      intake_arr: [],
1824
+      nutrition_arr: [],
1825
+
1826
+
1827
+
1791 1828
       records: [
1792 1829
         // 模拟有多条数据
1793 1830
         // {
@@ -1827,6 +1864,16 @@ export default {
1827 1864
     }
1828 1865
   },
1829 1866
   created() {
1867
+    this.way_arr = getDataConfig('hemodialysis', 'way')
1868
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1869
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1870
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
1871
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1872
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1873
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
1874
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1875
+
1876
+
1830 1877
     console.log('触发模板6')
1831 1878
     var xtuser = this.$store.getters.xt_user
1832 1879
     console.log('xtuser', xtuser)

+ 97 - 29
src/xt_pages/dialysis/batch_print/batch_print_order_three.vue Voir le fichier

@@ -62,25 +62,49 @@
62 62
                   <div class="row" style="padding: 2px 0;">
63 63
                     <div class="inline_block">
64 64
                       入院方式:
65
-                      <check-box text="步行"
66
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>
67
-                      <check-box text="扶行"
68
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>
69
-                      <check-box text="轮椅"
70
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>
71
-                      <check-box text="平车"
72
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>
65
+                      <check-box
66
+                        v-for="(item, index) in way_arr"
67
+                        :key="index"
68
+                        :text="item.name"
69
+                        :checked="
70
+                            isCheckBoxChecked(
71
+                              record.receive_assessment,
72
+                              'way',
73
+                              item.id
74
+                            )
75
+                          "
76
+                      ></check-box>
77
+                      <!--<check-box text="步行"-->
78
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>-->
79
+                      <!--<check-box text="扶行"-->
80
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>-->
81
+                      <!--<check-box text="轮椅"-->
82
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>-->
83
+                      <!--<check-box text="平车"-->
84
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>-->
73 85
                     </div>
74 86
                     <div class="inline_block" style="margin-left: 30px;">
75 87
                       意识:
76
-                      <check-box text="清醒"
77
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>
78
-                      <check-box text="嗜睡"
79
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>
80
-                      <check-box text="昏迷"
81
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>
82
-                      <check-box text="模糊"
83
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>
88
+                      <check-box
89
+                        v-for="(item, index) in consciousness_arr" :key="index"
90
+                        :text="item.name"
91
+
92
+                        :checked="
93
+                            isCheckBoxChecked(
94
+                              record.receive_assessment,
95
+                              'consciousness',
96
+                              item.id
97
+                            )
98
+                          "
99
+                      ></check-box>
100
+                      <!--<check-box text="清醒"-->
101
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>-->
102
+                      <!--<check-box text="嗜睡"-->
103
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>-->
104
+                      <!--<check-box text="昏迷"-->
105
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>-->
106
+                      <!--<check-box text="模糊"-->
107
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>-->
84 108
                     </div>
85 109
                     <div class="inline_block" style="margin-left: 30px;">
86 110
                       体温:
@@ -93,22 +117,45 @@
93 117
                   <div class="row" style="padding: 2px 0;">
94 118
                     <div class="inline_block">
95 119
                       体位:
96
-                      <check-box text="自动体位"
97
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 1)"></check-box>
98
-                      <check-box text="平卧位"
99
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 2)"></check-box>
100
-                      <check-box text="半卧位"
101
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 3)"></check-box>
102
-                      <check-box text="端坐位"
103
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 4)"></check-box>
104
-                      <check-box text="躁动不安"
105
-                                 :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 5)"></check-box>
120
+                      <check-box
121
+                        v-for="(item, index) in posture_arr" :key="index"
122
+                        :text="item.name"
123
+                        :checked="
124
+                            isCheckBoxChecked(
125
+                              record.receive_assessment,
126
+                              'posture',
127
+                              item.id
128
+                            )
129
+                          "
130
+                      ></check-box>
131
+                      <!--<check-box text="自动体位"-->
132
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 1)"></check-box>-->
133
+                      <!--<check-box text="平卧位"-->
134
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 2)"></check-box>-->
135
+                      <!--<check-box text="半卧位"-->
136
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 3)"></check-box>-->
137
+                      <!--<check-box text="端坐位"-->
138
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 4)"></check-box>-->
139
+                      <!--<check-box text="躁动不安"-->
140
+                                 <!--:checked="isCheckBoxChecked(record.receive_assessment, 'posture', 5)"></check-box>-->
106 141
                     </div>
107 142
                     <div class="inline_block"  style="margin-left: 30px;">
108 143
                       病情:
109
-                        <check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>
110
-                        <check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>
111
-                        <check-box text="危险" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>
144
+                      <check-box
145
+                        v-for="(item, index) in sick_condition_arr" :key="index"
146
+                        :text="item.name"
147
+
148
+                        :checked="
149
+                            isCheckBoxChecked(
150
+                              record.receive_assessment,
151
+                              'sick_condition',
152
+                              item.id
153
+                            )
154
+                          "
155
+                      ></check-box>
156
+                        <!--<check-box text="一般" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 1)"></check-box>-->
157
+                        <!--<check-box text="重" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 2)"></check-box>-->
158
+                        <!--<check-box text="危险" :checked="isCheckBoxChecked(record.receive_assessment, 'sick_condition', 3)"></check-box>-->
112 159
                       其它:
113 160
 
114 161
                       <div class="under_line" style="width: 150px;">
@@ -771,6 +818,17 @@
771 818
           //     advices: [],
772 819
           // },
773 820
         ],
821
+
822
+        way_arr: [],
823
+        consciousness_arr: [],
824
+        appetite_arr: [],
825
+        posture_arr: [],
826
+        sick_condition_arr: [],
827
+        precaution_arr: [],
828
+        intake_arr: [],
829
+        nutrition_arr: [],
830
+
831
+
774 832
         loading: false,
775 833
         orgname: '',
776 834
         bloodAccessParOpera: {},
@@ -783,6 +841,16 @@
783 841
       }
784 842
     },
785 843
     created() {
844
+      this.way_arr = getDataConfig('hemodialysis', 'way')
845
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
846
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
847
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
848
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
849
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
850
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
851
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
852
+
853
+
786 854
       var xtuser = this.$store.getters.xt_user
787 855
       this.orgname = xtuser.org.org_name
788 856
       //   this.orgname = "遂溪方济医院";

+ 12 - 4
src/xt_pages/dialysis/bulletinBoard.vue Voir le fichier

@@ -162,9 +162,10 @@ export default {
162 162
       orgname: "",
163 163
       today: "今天",
164 164
       week: "--",
165
+      timer:null,
165 166
       rightItem: "board-right-menu-item",
166 167
       boardData: [],
167
-      showTime: 10,
168
+      showTime: 120,
168 169
       currentPage: 0,
169 170
       loading: true,
170 171
       weekDay: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
@@ -178,6 +179,12 @@ export default {
178 179
     // this.orgname = "遂溪方济医院";
179 180
     this.modeOptions = this.$store.getters.treatment_mode;
180 181
     this.initData();
182
+  }, beforeDestroy () {
183
+    clearInterval(this.timer)
184
+    this.timer = null
185
+    this.$once('hook:beforeDestroy', () => {
186
+      clearInterval(this.timer)
187
+    })
181 188
   },
182 189
   methods: {
183 190
     fullscreenboard: function() {
@@ -213,9 +220,10 @@ export default {
213 220
       this.currentPage++;
214 221
       this.getBoards();
215 222
 
216
-      setTimeout(function() {
217
-        _this.initData();
218
-      }, timeOut);
223
+      this.timer = window.setInterval(() => {
224
+        setTimeout(this.getBoards(), 0)
225
+      }, timeOut)
226
+
219 227
     },
220 228
     getBoards: function() {
221 229
       getBoards(this.currentPage).then(response => {

+ 91 - 61
src/xt_pages/dialysis/details/acceptsAssessment.vue Voir le fichier

@@ -66,16 +66,13 @@
66 66
         </li>
67 67
 
68 68
 
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77 69
       </ul>
78 70
       <ul>
71
+        <li v-if="this.record.condition == 1">
72
+          <label> 住院号</label>
73
+          <span class="content">{{ this.record.admission_number }}</span>
74
+        </li>
75
+
79 76
         <li v-if="isShow('病人意识')">
80 77
           <label>病人意识 :</label>
81 78
           <span class="content">{{ consciousness }}</span>
@@ -119,68 +116,37 @@
119 116
 
120 117
 <script>
121 118
   import store from '@/store'
122
-
119
+  import { getDataConfig } from '@/utils/data'
123 120
   export default {
124 121
     name: 'AcceptsAssessment',
125 122
     data() {
126 123
       return {
127 124
         title: '接诊评估 ',
128 125
 
129
-        ways: {
130
-          '1': '步行',
131
-          '2': '扶行',
132
-          '3': '轮椅',
133
-          '4': '平车'
134
-        },
126
+        ways: [],
135 127
         conditions: {
136 128
           '1': '住院',
137 129
           '2': '门诊',
138 130
           '3': '手术期'
139 131
         },
140
-        consciousnesses: {
141
-          '1': '清醒',
142
-          '2': '嗜睡',
143
-          '3': '昏迷'
144
-        },
145
-        appetites: {
146
-          '1': '正常',
147
-          '2': '减退',
148
-          '3': '恶心',
149
-          '4': '呕吐',
150
-          '5': '腹泻'
151
-        },
152
-        postures: {
153
-          '1': '自动体位',
154
-          '2': '平卧位',
155
-          '3': '半卧位',
156
-          '4': '端坐位',
157
-          '5': '躁动不安'
158
-        }, sick_condition: {
159
-          '1': '一般',
160
-          '2': '重',
161
-          '3': '危'
162
-        }, danger_level: {
132
+        consciousnesses:[],
133
+        appetites: [],
134
+        postures: [],
135
+        sick_condition:[],
136
+        danger_level: {
163 137
           '1': '无',
164 138
           '2': '低风险',
165 139
           '3': '中度风险',
166 140
           '4': '高风险'
167 141
 
168
-        }, intake: {
169
-          '1': '正常',
170
-          '2': '减少'
171
-        }, nutrition: {
172
-          '1': '正常',
173
-          '2': '营养不良'
174
-        }, psychological_assessment: {
142
+        },
143
+        intake:[],
144
+        nutrition: [],
145
+        psychological_assessment: {
175 146
           '1': '正常',
176 147
           '2': '异常'
177
-        }, precautions: {
178
-          '1': '镇定剂',
179
-          '2': '约束带',
180
-          '3': '床栏',
181
-          '4': '加强宣教'
182
-
183
-        }
148
+        },
149
+        precautions:[]
184 150
       }
185 151
     },
186 152
     props: {
@@ -193,7 +159,14 @@
193 159
         if (this.record.id == 0) {
194 160
           return ''
195 161
         } else {
196
-          return this.ways[this.record.way] == undefined ? '' : (this.ways[this.record.way] + '')
162
+          // return this.ways[this.record.way] == undefined ? '' : (this.ways[this.record.way] + '')
163
+
164
+          for (let i = 0; i < this.ways.length; i++){
165
+            if (this.record.way == this.ways[i].id){
166
+              return this.ways[i].name
167
+
168
+            }
169
+          }
197 170
         }
198 171
       },
199 172
       condition: function() {
@@ -207,27 +180,52 @@
207 180
         if (this.record.id == 0) {
208 181
           return ''
209 182
         } else {
210
-          return this.consciousnesses[this.record.consciousness] == undefined ? '' : this.consciousnesses[this.record.consciousness] + ''
183
+          for (let i = 0; i < this.consciousnesses.length; i++){
184
+            if (this.record.consciousness == this.consciousnesses[i].id){
185
+              return this.consciousnesses[i].name
186
+
187
+            }
188
+          }
189
+          // return this.consciousnesses[this.record.consciousness] == undefined ? '' : this.consciousnesses[this.record.consciousness] + ''
211 190
         }
212 191
       },
213 192
       appetite: function() {
214 193
         if (this.record.id == 0) {
215 194
           return ''
216 195
         } else {
217
-          return this.appetites[this.record.appetite] == undefined ? '' : this.appetites[this.record.appetite] + ''
196
+          // return this.appetites[this.record.appetite] == undefined ? '' : this.appetites[this.record.appetite] + ''
197
+          for (let i = 0; i < this.appetites.length; i++){
198
+            if (this.record.appetite == this.appetites[i].id){
199
+              return this.appetites[i].name
200
+
201
+            }
202
+          }
218 203
         }
219 204
       },
220 205
       posture: function() {
221 206
         if (this.record.id == 0) {
222 207
           return ''
223 208
         } else {
224
-          return this.postures[this.record.posture] == undefined ? '' : this.postures[this.record.posture] + ''
209
+          // return this.postures[this.record.posture] == undefined ? '' : this.postures[this.record.posture] + ''
210
+
211
+          for (let i = 0; i < this.postures.length; i++){
212
+            if (this.record.posture == this.postures[i].id){
213
+              return this.postures[i].name
214
+
215
+            }
216
+          }
225 217
         }
226 218
       }, sickCondition: function() {
227 219
         if (this.record == null || this.record.id == '') {
228 220
           return ''
229 221
         } else {
230
-          return this.sick_condition[this.record.sick_condition] == undefined ? '' : this.sick_condition[this.record.sick_condition] + ''
222
+          for (let i = 0; i < this.sick_condition.length; i++){
223
+            if (this.record.sick_condition == this.sick_condition[i].id){
224
+              return this.sick_condition[i].name
225
+
226
+            }
227
+          }
228
+          // return this.sick_condition[this.record.sick_condition] == undefined ? '' : this.sick_condition[this.record.sick_condition] + ''
231 229
         }
232 230
       }, dangerLevel: function() {
233 231
         if (this.record == null || this.record.id == '') {
@@ -239,13 +237,25 @@
239 237
         if (this.record == null || this.record.id == '') {
240 238
           return ''
241 239
         } else {
242
-          return this.intake[this.record.intake] == undefined ? '' : this.intake[this.record.intake] + ''
240
+          for (let i = 0; i < this.intake.length; i++){
241
+            if (this.record.intake == this.intake[i].id){
242
+              return this.intake[i].name
243
+
244
+            }
245
+          }
246
+          // return this.intake[this.record.intake] == undefined ? '' : this.intake[this.record.intake] + ''
243 247
         }
244 248
       }, nutritions: function() {
245 249
         if (this.record == null || this.record.id == '') {
246 250
           return ''
247 251
         } else {
248
-          return this.nutrition[this.record.nutrition] == undefined ? '' : this.nutrition[this.record.nutrition] + ''
252
+          for (let i = 0; i < this.nutrition.length; i++){
253
+            if (this.record.nutrition == this.nutrition[i].id){
254
+              return this.nutrition[i].name
255
+
256
+            }
257
+          }
258
+          // return this.nutrition[this.record.nutrition] == undefined ? '' : this.nutrition[this.record.nutrition] + ''
249 259
         }
250 260
       }, psychologicalAssessment: function() {
251 261
         if (this.record == null || this.record.id == '') {
@@ -257,7 +267,13 @@
257 267
         if (this.record.id == 0) {
258 268
           return ''
259 269
         } else {
260
-          return this.precautions[this.record.precaution] == undefined ? '' : this.precautions[this.record.precaution] + ''
270
+          for (let i = 0; i < this.precautions.length; i++){
271
+            if (this.record.precaution == this.precautions[i].id){
272
+              return this.precautions[i].name
273
+
274
+            }
275
+          }
276
+          // return this.precautions[this.record.precaution] == undefined ? '' : this.precautions[this.record.precaution] + ''
261 277
         }
262 278
       }
263 279
     },
@@ -271,7 +287,21 @@
271 287
         }
272 288
         return false
273 289
       }
274
-    }
290
+    },
291
+    created(){
292
+      this.ways = getDataConfig('hemodialysis', 'way')
293
+      this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
294
+      this.appetites = getDataConfig('hemodialysis', 'appetite')
295
+      this.postures = getDataConfig('hemodialysis', 'posture')
296
+      this.sick_condition = getDataConfig('hemodialysis', 'sick_condition')
297
+      this.precautions = getDataConfig('hemodialysis', 'precaution')
298
+      this.intake = getDataConfig('hemodialysis', 'intake')
299
+      this.nutrition = getDataConfig('hemodialysis', 'nutrition')
300
+      console.log(this.ways)
301
+
302
+
303
+    },
304
+
275 305
   }
276 306
 </script>
277 307
 

+ 165 - 84
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Voir le fichier

@@ -1,54 +1,89 @@
1 1
 <template>
2 2
   <el-dialog title="接诊评估"
3
-             :modal-append-to-body= "false"
3
+             :modal-append-to-body="false"
4 4
              :visible.sync="isVisibility"
5
-            width="854px">
5
+             width="854px">
6 6
     <el-form :model="receiveTreatmentAsses" label-width="80px">
7 7
       <el-form-item label="入室方式 : " v-if="isShow('入室方式')">
8
+        <!--<el-radio-group v-model="receiveTreatmentAsses.way">-->
9
+          <el-radio v-for="(item,index) in way_arr" :key="index"
10
+                    :label="item.id" v-model="receiveTreatmentAsses.way">{{item.name}}
11
+          </el-radio>
12
+        <!--</el-radio-group>-->
8 13
 
9
-        <el-radio v-model="receiveTreatmentAsses.way" label="1">步行</el-radio>
10
-        <el-radio v-model="receiveTreatmentAsses.way" label="2">扶行</el-radio>
11
-        <el-radio v-model="receiveTreatmentAsses.way" label="3">轮椅</el-radio>
12
-        <el-radio v-model="receiveTreatmentAsses.way" label="4">平车</el-radio>
13 14
       </el-form-item>
14 15
       <el-form-item label="病人意识 : " v-if="isShow('病人意识')">
15 16
 
16
-        <el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>
17
-        <el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>
18
-        <el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>
19
-        <el-radio v-model="receiveTreatmentAsses.consciousness" label="4">模糊</el-radio>
17
+
18
+
19
+        <!--<el-radio-group v-model="receiveTreatmentAsses.consciousness">-->
20
+          <el-radio v-for="(item,index) in consciousness_arr" :key="index"
21
+                    :label="item.id" v-model="receiveTreatmentAsses.consciousness">{{item.name}}
22
+          </el-radio>
23
+        <!--</el-radio-group>-->
24
+
25
+
26
+
27
+        <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>-->
28
+        <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>-->
29
+        <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>-->
30
+        <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="4">模糊</el-radio>-->
20 31
 
21 32
 
22 33
       </el-form-item>
23 34
       <el-form-item label="病人食欲 : " v-if="isShow('病人食欲')">
24
-        <el-radio v-model="receiveTreatmentAsses.appetite" label="1">正常</el-radio>
25
-        <el-radio v-model="receiveTreatmentAsses.appetite" label="2">减退</el-radio>
26
-        <el-radio v-model="receiveTreatmentAsses.appetite" label="3">恶心</el-radio>
27
-        <el-radio v-model="receiveTreatmentAsses.appetite" label="4">呕吐</el-radio>
28
-        <el-radio v-model="receiveTreatmentAsses.appetite" label="5">腹泻</el-radio>
35
+
36
+          <el-radio v-for="(item,index) in appetite_arr" :key="index"
37
+                    :label="item.id" v-model="receiveTreatmentAsses.appetite">{{item.name}}
38
+          </el-radio>
39
+
40
+
41
+
42
+        <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="1">正常</el-radio>-->
43
+        <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="2">减退</el-radio>-->
44
+        <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="3">恶心</el-radio>-->
45
+        <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="4">呕吐</el-radio>-->
46
+        <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="5">腹泻</el-radio>-->
29 47
       </el-form-item>
30 48
       <el-form-item label="病人情况 : " v-if="isShow('病人情况')">
31 49
         <el-radio v-model="receiveTreatmentAsses.condition" label="1">住院</el-radio>
32 50
         <el-radio v-model="receiveTreatmentAsses.condition" label="2">门诊</el-radio>
33 51
         <el-radio v-model="receiveTreatmentAsses.condition" label="3">手术期</el-radio>
34 52
       </el-form-item>
53
+
54
+
55
+      <el-form-item label="住院号 : "
56
+                    v-if="this.receiveTreatmentAsses.condition == '1'">
57
+        <el-input v-model="receiveTreatmentAsses.admission_number"></el-input>
58
+      </el-form-item>
59
+
60
+
35 61
       <el-form-item label="体位 : " v-if="isShow('体位')">
36
-        <el-radio v-model="receiveTreatmentAsses.posture" label="1">自动体位</el-radio>
37
-        <el-radio v-model="receiveTreatmentAsses.posture" label="2">平卧位</el-radio>
38
-        <el-radio v-model="receiveTreatmentAsses.posture" label="3">半卧位</el-radio>
39
-        <el-radio v-model="receiveTreatmentAsses.posture" label="4">端坐位</el-radio>
40
-        <el-radio v-model="receiveTreatmentAsses.posture" label="5">躁动不安</el-radio>
62
+
63
+          <el-radio v-for="(item,index) in posture_arr" :key="index"
64
+                    :label="item.id" v-model="receiveTreatmentAsses.posture">{{item.name}}
65
+          </el-radio>
66
+        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="1">自动体位</el-radio>-->
67
+        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="2">平卧位</el-radio>-->
68
+        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="3">半卧位</el-radio>-->
69
+        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="4">端坐位</el-radio>-->
70
+        <!--<el-radio v-model="receiveTreatmentAsses.posture" label="5">躁动不安</el-radio>-->
41 71
       </el-form-item>
42 72
 
43 73
       <el-form-item label="病情: " v-if="isShow('病情')">
44
-        <el-radio v-model="receiveTreatmentAsses.sick_condition" label="1">一般</el-radio>
45
-        <el-radio v-model="receiveTreatmentAsses.sick_condition" label="2">严重</el-radio>
46
-        <el-radio v-model="receiveTreatmentAsses.sick_condition" label="3">危</el-radio>
74
+
75
+          <el-radio v-for="(item,index) in sick_condition_arr" :key="index"
76
+                    :label="item.id" v-model="receiveTreatmentAsses.sick_condition">{{item.name}}
77
+          </el-radio>
78
+        <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="1">一般</el-radio>-->
79
+        <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="2">严重</el-radio>-->
80
+        <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="3">危</el-radio>-->
81
+
47 82
       </el-form-item>
48 83
 
49 84
       <el-form-item label-width="100px" label="其他病情 : "
50 85
                     v-if="isShow('其他病情')">
51
-        <el-input v-model="receiveTreatmentAsses.sick_condition_other" ></el-input>
86
+        <el-input v-model="receiveTreatmentAsses.sick_condition_other"></el-input>
52 87
       </el-form-item>
53 88
 
54 89
       <el-form-item label-width="150px" label="跌倒风险评估评分 : "
@@ -66,12 +101,16 @@
66 101
       </el-form-item>
67 102
 
68 103
 
69
-
70 104
       <el-form-item label-width="150px" label="跌倒风险预防措施: " v-if="isShow('跌倒风险预防措施')">
71
-        <el-radio v-model="receiveTreatmentAsses.precaution" label="1">镇定剂</el-radio>
72
-        <el-radio v-model="receiveTreatmentAsses.precaution" label="2">约束带</el-radio>
73
-        <el-radio v-model="receiveTreatmentAsses.precaution" label="3">床栏</el-radio>
74
-        <el-radio v-model="receiveTreatmentAsses.precaution" label="4">加强宣教</el-radio>
105
+        <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="1">镇定剂</el-radio>-->
106
+        <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="2">约束带</el-radio>-->
107
+        <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="3">床栏</el-radio>-->
108
+        <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="4">加强宣教</el-radio>-->
109
+
110
+
111
+          <el-radio v-for="(item,index) in precaution_arr" :key="index"
112
+                    :label="item.id" v-model="receiveTreatmentAsses.precaution">{{item.name}}
113
+          </el-radio>
75 114
       </el-form-item>
76 115
       <el-form-item label-width="200px" label="其他跌倒风险预防措施 : "
77 116
                     v-if="isShow('其他跌倒风险预防措施')">
@@ -80,14 +119,26 @@
80 119
 
81 120
 
82 121
       <el-form-item label="摄入量: " v-if="isShow('摄入量')">
83
-        <el-radio v-model="receiveTreatmentAsses.intake" label="1">正常</el-radio>
84
-        <el-radio v-model="receiveTreatmentAsses.intake" label="2">减少</el-radio>
122
+        <!--<el-radio v-model="receiveTreatmentAsses.intake" label="1">正常</el-radio>-->
123
+        <!--<el-radio v-model="receiveTreatmentAsses.intake" label="2">减少</el-radio>-->
124
+
125
+          <el-radio v-for="(item,index) in intake_arr" :key="index"
126
+                    :label="item.id" v-model="receiveTreatmentAsses.intake">{{item.name}}
127
+          </el-radio>
128
+
129
+
85 130
       </el-form-item>
86 131
       <el-form-item label="营养状况: " v-if="isShow('营养状况')">
87
-        <el-radio v-model="receiveTreatmentAsses.nutrition" label="1">正常</el-radio>
88
-        <el-radio v-model="receiveTreatmentAsses.nutrition" label="2">营养不良</el-radio>
132
+        <!--<el-radio v-model="receiveTreatmentAsses.nutrition" label="1">正常</el-radio>-->
133
+        <!--<el-radio v-model="receiveTreatmentAsses.nutrition" label="2">营养不良</el-radio>-->
134
+
135
+          <el-radio v-for="(item,index) in nutrition_arr" :key="index"
136
+                    :label="item.id" v-model="receiveTreatmentAsses.nutrition">{{item.name}}
137
+          </el-radio>
138
+
139
+
89 140
       </el-form-item>
90
-      <el-form-item label="心理评估: "  v-if="isShow('心理评估')">
141
+      <el-form-item label="心理评估: " v-if="isShow('心理评估')">
91 142
         <el-radio v-model="receiveTreatmentAsses.psychological_assessment" label="1">正常</el-radio>
92 143
         <el-radio v-model="receiveTreatmentAsses.psychological_assessment" label="2">异常</el-radio>
93 144
       </el-form-item>
@@ -110,113 +161,143 @@
110 161
 </template>
111 162
 
112 163
 <script>
113
-  import {postAccepts} from "@/api/dialysis";
114
-  import {uParseTime} from "@/utils/tools";
115
-  import store from "@/store";
164
+  import { postAccepts } from '@/api/dialysis'
165
+  import { uParseTime } from '@/utils/tools'
166
+  import store from '@/store'
167
+  import { getDataConfig } from '@/utils/data'
116 168
 
117 169
   export default {
118
-    name: "acceptsTreatmentDialog",
170
+    name: 'acceptsTreatmentDialog',
119 171
     data() {
120 172
       return {
121
-        isVisibility:false,
122
-        record_date:'',
173
+        isVisibility: false,
174
+        record_date: '',
175
+        way_arr: [],
176
+        consciousness_arr: [],
177
+        appetite_arr: [],
178
+        posture_arr: [],
179
+        sick_condition_arr: [],
180
+        precaution_arr: [],
181
+        intake_arr: [],
182
+        nutrition_arr: [],
123 183
         receiveTreatmentAsses: {
124
-          way: "1",
125
-          consciousness: "1",
126
-          appetite: "1",
127
-          condition: "1",
128
-          posture: "1",
184
+          way: '1',
185
+          consciousness: '1',
186
+          appetite: '1',
187
+          condition: '1',
188
+          posture: '1',
129 189
           sick_condition: '1',
130 190
           danger_level: '1',
131 191
           intake: '1',
132 192
           nutrition: '1',
133 193
           psychological_assessment: '1',
134 194
           psychological_assessment_other: '',
135
-          sick_condition_other:'',
136
-          score:'',
137
-          psychological_other:'',
138
-          precaution:'1',
139
-          precaution_other:'',
140
-        },
141
-      };
195
+          sick_condition_other: '',
196
+          score: '',
197
+          psychological_other: '',
198
+          precaution: '1',
199
+          precaution_other: '',
200
+          admission_number:'',
201
+
202
+
203
+
204
+        }
205
+      }
142 206
     },
143
-    methods:{
144
-      isShow(name){
207
+    methods: {
208
+      isShow(name) {
145 209
         var filedList = store.getters.xt_user.fileds
146
-        for (let i = 0; i < filedList.length; i++){
147
-          if(filedList[i].module == 2 &&filedList[i].filed_name_cn == name &&filedList[i].is_show == 1){
210
+        for (let i = 0; i < filedList.length; i++) {
211
+          if (filedList[i].module == 2 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
148 212
             return true
149 213
           }
150 214
         }
151 215
         return false
152 216
       },
153 217
       show() {
154
-        this.isVisibility = true;
218
+        for (var index in this.receiveTreatmentAsses) {
219
+          if (index == 'condition' || index == 'danger_level' || index == 'psychological_assessment') {
220
+            this.receiveTreatmentAsses[index] = this.receiver_treatment_access[index] + ''
221
+          } else {
222
+            this.receiveTreatmentAsses[index] = this.receiver_treatment_access[index]
223
+          }
224
+        }
225
+        this.isVisibility = true
155 226
       },
156 227
       hide() {
157
-        this.isVisibility = false;
228
+        this.isVisibility = false
158 229
       },
159
-      handleCancle:function () {
160
-        this.isVisibility = false;
230
+      handleCancle: function() {
231
+        this.isVisibility = false
161 232
 
162 233
       },
163
-      handleComfirm:function () {
164
-        let ParamsQuery = this.receiveTreatmentAsses;
165
-        ParamsQuery["patient"] = this.patient.id;
166
-        ParamsQuery["record_date"] = this.record_date;
234
+      handleComfirm: function() {
235
+        let ParamsQuery = this.receiveTreatmentAsses
236
+        ParamsQuery['patient'] = this.patient.id
237
+        ParamsQuery['record_date'] = this.record_date
167 238
         postAccepts(ParamsQuery).then(response => {
168 239
           if (response.data.state == 0) {
169
-            this.$message.error(response.data.msg);
170
-            return false;
240
+            this.$message.error(response.data.msg)
241
+            return false
171 242
           } else {
172 243
             this.$notify({
173
-              title: "成功",
174
-              message: "提交成功",
175
-              type: "success",
244
+              title: '成功',
245
+              message: '提交成功',
246
+              type: 'success',
176 247
               duration: 2000
177
-            });
248
+            })
178 249
 
179
-            let receive_treatment_asses_resp = response.data.data.receiveTreatmentAsses;
250
+            let receive_treatment_asses_resp = response.data.data.receiveTreatmentAsses
180 251
             //prop
181
-            var receiver_treatment_access = this.receiver_treatment_access;
182
-            for( var index in receive_treatment_asses_resp) {
252
+            var receiver_treatment_access = this.receiver_treatment_access
253
+            for (var index in receive_treatment_asses_resp) {
183 254
               // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
184 255
               this.$set(receiver_treatment_access, index, receive_treatment_asses_resp[index])
185 256
             }
186 257
             this.hide()
187 258
           }
188
-        });
259
+        })
189 260
 
190 261
       }
191 262
     },
192 263
     props: {
193
-      receiver_treatment_access : { // 双人核对
264
+      receiver_treatment_access: { // 双人核对
194 265
         type: Object,
195 266
         default: () => {
196
-          return {id: 0}
267
+          return { id: 0 }
197 268
         }
198 269
       },
199 270
       patient: { // 患者信息
200 271
         type: Object,
201 272
         default: () => {
202
-          return {id: 0}
273
+          return { id: 0 }
203 274
         }
204
-      },
275
+      }
205 276
     }, watch: {
206 277
       isVisibility(val) {
207 278
 
208 279
       },
209
-      "receiver_treatment_access.id": function () {
280
+      'receiver_treatment_access.id': function() {
210 281
         if (this.receiver_treatment_access.id > 0) {
211 282
           for (var index in this.receiveTreatmentAsses) {
212
-            this.receiveTreatmentAsses[index] = this.receiver_treatment_access[index] + "";
283
+            this.receiveTreatmentAsses[index] = this.receiver_treatment_access[index]
213 284
           }
214 285
         }
215
-      },
286
+      }
216 287
     }, created() {
217
-      var date = this.$route.query && this.$route.query.date;
218
-      this.record_date = uParseTime(date, '{y}-{m}-{d}');
219
-    },
288
+      var date = this.$route.query && this.$route.query.date
289
+      this.record_date = uParseTime(date, '{y}-{m}-{d}')
290
+
291
+      this.way_arr = getDataConfig('hemodialysis', 'way')
292
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
293
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
294
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
295
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
296
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
297
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
298
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
299
+
300
+    }
220 301
 
221 302
   }
222 303
 </script>

+ 70 - 40
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue Voir le fichier

@@ -72,13 +72,15 @@
72 72
                     <td width="70">入院方式:</td>
73 73
                     <td width="230">
74 74
                       <div>
75
-                        <label-box :isChecked='receiverTreatmentAccess.way==1?true:false' showValue='步行'></label-box>
76
-                        &nbsp;
77
-                        <label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>
78
-                        &nbsp;
79
-                        <label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>
80
-                        &nbsp;
81
-                        <label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>
75
+                        <label-box v-for="(item, index) in way_arr" :key="index" :isChecked='receiverTreatmentAccess.way==item.id?true:false' :showValue='item.name'></label-box>
76
+
77
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==1?true:false' showValue='步行'></label-box>-->
78
+                        <!--&nbsp;-->
79
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>-->
80
+                        <!--&nbsp;-->
81
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>-->
82
+                        <!--&nbsp;-->
83
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>-->
82 84
                       </div>
83 85
                     </td>
84 86
 
@@ -86,16 +88,18 @@
86 88
                     <td width="50">意识:</td>
87 89
                     <td width="230">
88 90
                       <div>
89
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'
90
-                                   showValue='清醒'></label-box>
91
-                        &nbsp;
92
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'
93
-                                   showValue='嗜睡'></label-box>
94
-                        &nbsp;
95
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'
96
-                                   showValue='昏迷'></label-box>
97
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'
98
-                                   showValue='模糊'></label-box>
91
+                        <label-box v-for="(item, index) in consciousness_arr" :key="index" :isChecked='receiverTreatmentAccess.consciousness==item.id?true:false' :showValue='item.name'></label-box>
92
+
93
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'-->
94
+                                   <!--showValue='清醒'></label-box>-->
95
+                        <!--&nbsp;-->
96
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'-->
97
+                                   <!--showValue='嗜睡'></label-box>-->
98
+                        <!--&nbsp;-->
99
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'-->
100
+                                   <!--showValue='昏迷'></label-box>-->
101
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'-->
102
+                                   <!--showValue='模糊'></label-box>-->
99 103
                       </div>
100 104
                     </td>
101 105
 
@@ -115,35 +119,39 @@
115 119
                     <td width="40">体位:</td>
116 120
                     <td width="400">
117 121
                       <div>
118
-                        <label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'
119
-                                   showValue='自动体位'></label-box>
120
-                        &nbsp;
121
-                        <label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'
122
-                                   showValue='平卧位'></label-box>
123
-                        &nbsp;
124
-                        <label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'
125
-                                   showValue='半卧位'></label-box>
126
-                        &nbsp;
127
-                        <label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'
128
-                                   showValue='端坐位'></label-box>
129
-                        &nbsp;
130
-                        <label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'
131
-                                   showValue='躁动不安'></label-box>
122
+                        <label-box v-for="(item, index) in posture_arr" :key="index" :isChecked='receiverTreatmentAccess.posture==item.id?true:false' :showValue='item.name'></label-box>
123
+
124
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'-->
125
+                                   <!--showValue='自动体位'></label-box>-->
126
+                        <!--&nbsp;-->
127
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'-->
128
+                                   <!--showValue='平卧位'></label-box>-->
129
+                        <!--&nbsp;-->
130
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'-->
131
+                                   <!--showValue='半卧位'></label-box>-->
132
+                        <!--&nbsp;-->
133
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'-->
134
+                                   <!--showValue='端坐位'></label-box>-->
135
+                        <!--&nbsp;-->
136
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'-->
137
+                                   <!--showValue='躁动不安'></label-box>-->
132 138
                         &nbsp;
133 139
                       </div>
134 140
                     </td>
135 141
                     <td width="40">病情:</td>
136 142
                     <td width="160">
137 143
                       <div>
138
-                        <label-box :isChecked='receiverTreatmentAccess.sick_condition==1?true:false'
139
-                                   showValue='一般'></label-box>
140
-                        &nbsp;
141
-                        <label-box :isChecked='receiverTreatmentAccess.sick_condition==2?true:false'
142
-                                   showValue='重'></label-box>
143
-                        &nbsp;
144
-                        <label-box :isChecked='receiverTreatmentAccess.sick_condition==3?true:false'
145
-                                   showValue='危险'></label-box>
146
-                        &nbsp;
144
+                        <label-box v-for="(item, index) in sick_condition_arr" :key="index" :isChecked='receiverTreatmentAccess.sick_condition==item.id?true:false' :showValue='item.name'></label-box>
145
+
146
+                        <!--<label-box :isChecked='receiverTreatmentAccess.sick_condition==1?true:false'-->
147
+                                   <!--showValue='一般'></label-box>-->
148
+                        <!--&nbsp;-->
149
+                        <!--<label-box :isChecked='receiverTreatmentAccess.sick_condition==2?true:false'-->
150
+                                   <!--showValue='重'></label-box>-->
151
+                        <!--&nbsp;-->
152
+                        <!--<label-box :isChecked='receiverTreatmentAccess.sick_condition==3?true:false'-->
153
+                                   <!--showValue='危险'></label-box>-->
154
+                        <!--&nbsp;-->
147 155
 
148 156
                       </div>
149 157
                     </td>
@@ -1097,6 +1105,15 @@
1097 1105
     },
1098 1106
     data() {
1099 1107
       return {
1108
+        way_arr: [],
1109
+        consciousness_arr: [],
1110
+        appetite_arr: [],
1111
+        posture_arr: [],
1112
+        sick_condition_arr: [],
1113
+        precaution_arr: [],
1114
+        intake_arr: [],
1115
+        nutrition_arr: [],
1116
+
1100 1117
         crumbs: [
1101 1118
           { path: false, name: '透析管理' },
1102 1119
           { path: false, name: '打印单' }
@@ -1573,6 +1590,19 @@
1573 1590
 
1574 1591
     },
1575 1592
     created() {
1593
+
1594
+
1595
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1596
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1597
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1598
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1599
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1600
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1601
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1602
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1603
+
1604
+
1605
+
1576 1606
       var xtuser = this.$store.getters.xt_user
1577 1607
       this.orgname = xtuser.org.org_name
1578 1608
       // this.orgname = "遂溪方济医院";

+ 57 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Voir le fichier

@@ -72,13 +72,14 @@
72 72
                 <td width="70">入院方式:</td>
73 73
                 <td width="230">
74 74
                   <div>
75
-                    <label-box :isChecked='receiverTreatmentAccess.way==1?true:false' showValue='步行'></label-box>
76
-                    &nbsp;
77
-                    <label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>
78
-                    &nbsp;
79
-                    <label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>
80
-                    &nbsp;
81
-                    <label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>
75
+
76
+                    <label-box v-for="(item, index) in way_arr" :key="index" :isChecked='receiverTreatmentAccess.way==item.id?true:false' :showValue='item.name'></label-box>
77
+                    <!--&nbsp-->
78
+                    <!--<label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>-->
79
+                    <!--&nbsp;-->
80
+                    <!--<label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>-->
81
+                    <!--&nbsp;-->
82
+                    <!--<label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>-->
82 83
                   </div>
83 84
                 </td>
84 85
 
@@ -86,16 +87,18 @@
86 87
                 <td width="50">意识:</td>
87 88
                 <td width="230">
88 89
                   <div>
89
-                    <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'
90
-                               showValue='清醒'></label-box>
91
-                    &nbsp;
92
-                    <label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'
93
-                               showValue='嗜睡'></label-box>
94
-                    &nbsp;
95
-                    <label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'
96
-                               showValue='昏迷'></label-box>
97
-                    <label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'
98
-                               showValue='模糊'></label-box>
90
+                    <label-box v-for="(item, index) in consciousness_arr" :key="index" :isChecked='receiverTreatmentAccess.consciousness==item.id?true:false' :showValue='item.name'></label-box>
91
+
92
+                    <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'-->
93
+                               <!--showValue='清醒'></label-box>-->
94
+                    <!--&nbsp;-->
95
+                    <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'-->
96
+                               <!--showValue='嗜睡'></label-box>-->
97
+                    <!--&nbsp;-->
98
+                    <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'-->
99
+                               <!--showValue='昏迷'></label-box>-->
100
+                    <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'-->
101
+                               <!--showValue='模糊'></label-box>-->
99 102
                   </div>
100 103
                 </td>
101 104
                 <td></td>
@@ -114,21 +117,24 @@
114 117
                 <td width="40">体位:</td>
115 118
                 <td width="400">
116 119
                   <div>
117
-                    <label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'
118
-                               showValue='自动体位'></label-box>
119
-                    &nbsp;
120
-                    <label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'
121
-                               showValue='平卧位'></label-box>
122
-                    &nbsp;
123
-                    <label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'
124
-                               showValue='半卧位'></label-box>
125
-                    &nbsp;
126
-                    <label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'
127
-                               showValue='端坐位'></label-box>
128
-                    &nbsp;
129
-                    <label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'
130
-                               showValue='躁动不安'></label-box>
131
-                    &nbsp;
120
+
121
+                    <label-box v-for="(item, index) in posture_arr" :key="index" :isChecked='receiverTreatmentAccess.posture==item.id?true:false' :showValue='item.name'></label-box>
122
+
123
+                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'-->
124
+                               <!--showValue='自动体位'></label-box>-->
125
+                    <!--&nbsp;-->
126
+                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'-->
127
+                               <!--showValue='平卧位'></label-box>-->
128
+                    <!--&nbsp;-->
129
+                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'-->
130
+                               <!--showValue='半卧位'></label-box>-->
131
+                    <!--&nbsp;-->
132
+                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'-->
133
+                               <!--showValue='端坐位'></label-box>-->
134
+                    <!--&nbsp;-->
135
+                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'-->
136
+                               <!--showValue='躁动不安'></label-box>-->
137
+                    <!--&nbsp;-->
132 138
                   </div>
133 139
                 </td>
134 140
                 <td></td>
@@ -1039,6 +1045,16 @@
1039 1045
     },
1040 1046
     data() {
1041 1047
       return {
1048
+        way_arr: [],
1049
+        consciousness_arr: [],
1050
+        appetite_arr: [],
1051
+        posture_arr: [],
1052
+        sick_condition_arr: [],
1053
+        precaution_arr: [],
1054
+        intake_arr: [],
1055
+        nutrition_arr: [],
1056
+
1057
+
1042 1058
         crumbs: [
1043 1059
           { path: false, name: '透析管理' },
1044 1060
           { path: false, name: '打印单' }
@@ -1528,6 +1544,15 @@
1528 1544
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1529 1545
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1530 1546
 
1547
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1548
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1549
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1550
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1551
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1552
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1553
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1554
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1555
+
1531 1556
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1532 1557
 
1533 1558
       var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')

+ 90 - 60
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Voir le fichier

@@ -80,38 +80,39 @@
80 80
         <div class="inline_block">
81 81
           入科方式:
82 82
           <div
83
+            v-for="item,index in way_arr"
83 84
             class="under_line"
84
-            v-if="receiverTreatmentAccess.way == 0"
85
+            v-if="receiverTreatmentAccess.way == item.id"
85 86
             style="width: 180px;text-align: left"
86
-          ></div>
87
-          <div
88
-            class="under_line"
89
-            v-if="receiverTreatmentAccess.way == 1"
90
-            style="width: 180px;text-align: left"
91
-          >
92
-            步行
93
-          </div>
94
-          <div
95
-            class="under_line"
96
-            v-if="receiverTreatmentAccess.way == 2"
97
-            style="width: 180px;text-align: left"
98
-          >
99
-            扶行
100
-          </div>
101
-          <div
102
-            class="under_line"
103
-            v-if="receiverTreatmentAccess.way == 3"
104
-            style="width: 180px;text-align: left"
105
-          >
106
-            轮椅
107
-          </div>
108
-          <div
109
-            class="under_line"
110
-            v-if="receiverTreatmentAccess.way == 4"
111
-            style="width: 180px;text-align: left"
112
-          >
113
-            平车
114
-          </div>
87
+          >{{item.name}}</div>
88
+          <!--<div-->
89
+            <!--class="under_line"-->
90
+            <!--v-if="receiverTreatmentAccess.way == 1"-->
91
+            <!--style="width: 180px;text-align: left"-->
92
+          <!--&gt;-->
93
+            <!--步行-->
94
+          <!--</div>-->
95
+          <!--<div-->
96
+            <!--class="under_line"-->
97
+            <!--v-if="receiverTreatmentAccess.way == 2"-->
98
+            <!--style="width: 180px;text-align: left"-->
99
+          <!--&gt;-->
100
+            <!--扶行-->
101
+          <!--</div>-->
102
+          <!--<div-->
103
+            <!--class="under_line"-->
104
+            <!--v-if="receiverTreatmentAccess.way == 3"-->
105
+            <!--style="width: 180px;text-align: left"-->
106
+          <!--&gt;-->
107
+            <!--轮椅-->
108
+          <!--</div>-->
109
+          <!--<div-->
110
+            <!--class="under_line"-->
111
+            <!--v-if="receiverTreatmentAccess.way == 4"-->
112
+            <!--style="width: 180px;text-align: left"-->
113
+          <!--&gt;-->
114
+            <!--平车-->
115
+          <!--</div>-->
115 116
         </div>
116 117
         <div class="inline_block" style="margin-left: 10px;">
117 118
           诊断:
@@ -1224,39 +1225,47 @@
1224 1225
         <div class="row">
1225 1226
           <div class="inline_block">
1226 1227
             入科方式:
1228
+            <!--<check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>-->
1229
+
1227 1230
             <div
1231
+              v-for="item,index in way_arr"
1228 1232
               class="under_line"
1229
-              v-if="receiverTreatmentAccess.way == 0"
1230
-              style="width: 180px;text-align: left"
1231
-            ></div>
1232
-            <div
1233
-              class="under_line"
1234
-              v-if="receiverTreatmentAccess.way == 1"
1235
-              style="width: 180px;text-align: left"
1236
-            >
1237
-              步行
1238
-            </div>
1239
-            <div
1240
-              class="under_line"
1241
-              v-if="receiverTreatmentAccess.way == 2"
1242
-              style="width: 180px;text-align: left"
1243
-            >
1244
-              扶行
1245
-            </div>
1246
-            <div
1247
-              class="under_line"
1248
-              v-if="receiverTreatmentAccess.way == 3"
1249
-              style="width: 180px;text-align: left"
1250
-            >
1251
-              轮椅
1252
-            </div>
1253
-            <div
1254
-              class="under_line"
1255
-              v-if="receiverTreatmentAccess.way == 4"
1233
+              v-if="receiverTreatmentAccess.way == item.id"
1256 1234
               style="width: 180px;text-align: left"
1257
-            >
1258
-              平车
1259
-            </div>
1235
+            >{{item.name}}</div>
1236
+            <!--<div-->
1237
+              <!--class="under_line"-->
1238
+              <!--v-if="receiverTreatmentAccess.way == 0"-->
1239
+              <!--style="width: 180px;text-align: left"-->
1240
+            <!--&gt;</div>-->
1241
+            <!--<div-->
1242
+              <!--class="under_line"-->
1243
+              <!--v-if="receiverTreatmentAccess.way == 1"-->
1244
+              <!--style="width: 180px;text-align: left"-->
1245
+            <!--&gt;-->
1246
+              <!--步行-->
1247
+            <!--</div>-->
1248
+            <!--<div-->
1249
+              <!--class="under_line"-->
1250
+              <!--v-if="receiverTreatmentAccess.way == 2"-->
1251
+              <!--style="width: 180px;text-align: left"-->
1252
+            <!--&gt;-->
1253
+              <!--扶行-->
1254
+            <!--</div>-->
1255
+            <!--<div-->
1256
+              <!--class="under_line"-->
1257
+              <!--v-if="receiverTreatmentAccess.way == 3"-->
1258
+              <!--style="width: 180px;text-align: left"-->
1259
+            <!--&gt;-->
1260
+              <!--轮椅-->
1261
+            <!--</div>-->
1262
+            <!--<div-->
1263
+              <!--class="under_line"-->
1264
+              <!--v-if="receiverTreatmentAccess.way == 4"-->
1265
+              <!--style="width: 180px;text-align: left"-->
1266
+            <!--&gt;-->
1267
+              <!--平车-->
1268
+            <!--</div>-->
1260 1269
           </div>
1261 1270
           <div class="inline_block" style="margin-left: 10px;">
1262 1271
             诊断:
@@ -1890,6 +1899,15 @@ export default {
1890 1899
   },
1891 1900
   data() {
1892 1901
     return {
1902
+      way_arr: [],
1903
+      consciousness_arr: [],
1904
+      appetite_arr: [],
1905
+      posture_arr: [],
1906
+      sick_condition_arr: [],
1907
+      precaution_arr: [],
1908
+      intake_arr: [],
1909
+      nutrition_arr: [],
1910
+
1893 1911
       crumbs: [
1894 1912
         { path: false, name: '透析管理' },
1895 1913
         { path: false, name: '打印单' }
@@ -2580,6 +2598,18 @@ export default {
2580 2598
     }
2581 2599
   },
2582 2600
   created() {
2601
+
2602
+    this.way_arr = getDataConfig('hemodialysis', 'way')
2603
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
2604
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
2605
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
2606
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
2607
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
2608
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
2609
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
2610
+
2611
+
2612
+
2583 2613
     var xtuser = this.$store.getters.xt_user
2584 2614
     this.orgname = xtuser.org.org_name
2585 2615
     // this.orgname = "遂溪方济医院";

+ 58 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue Voir le fichier

@@ -72,13 +72,15 @@
72 72
                     <td width="70">入院方式:</td>
73 73
                     <td width="230">
74 74
                       <div>
75
-                        <label-box :isChecked='receiverTreatmentAccess.way==1?true:false' showValue='步行'></label-box>
76
-                        &nbsp;
77
-                        <label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>
78
-                        &nbsp;
79
-                        <label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>
80
-                        &nbsp;
81
-                        <label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>
75
+                        <label-box v-for="(item, index) in way_arr" :key="index" :isChecked='receiverTreatmentAccess.way==item.id?true:false' :showValue='item.name'></label-box>
76
+
77
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==1?true:false' showValue='步行'></label-box>-->
78
+                        <!--&nbsp;-->
79
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>-->
80
+                        <!--&nbsp;-->
81
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>-->
82
+                        <!--&nbsp;-->
83
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>-->
82 84
                       </div>
83 85
                     </td>
84 86
 
@@ -86,16 +88,18 @@
86 88
                     <td width="50">意识:</td>
87 89
                     <td width="220">
88 90
                       <div>
89
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'
90
-                                   showValue='清醒'></label-box>
91
-                        &nbsp;
92
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'
93
-                                   showValue='嗜睡'></label-box>
94
-                        &nbsp;
95
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'
96
-                                   showValue='昏迷'></label-box>
97
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'
98
-                                   showValue='模糊'></label-box>
91
+                        <label-box v-for="(item, index) in consciousness_arr" :key="index" :isChecked='receiverTreatmentAccess.consciousness==item.id?true:false' :showValue='item.name'></label-box>
92
+
93
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'-->
94
+                                   <!--showValue='清醒'></label-box>-->
95
+                        <!--&nbsp;-->
96
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'-->
97
+                                   <!--showValue='嗜睡'></label-box>-->
98
+                        <!--&nbsp;-->
99
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'-->
100
+                                   <!--showValue='昏迷'></label-box>-->
101
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'-->
102
+                                   <!--showValue='模糊'></label-box>-->
99 103
                       </div>
100 104
                     </td>
101 105
                     <td></td>
@@ -114,20 +118,22 @@
114 118
                     <td width="40">体位:</td>
115 119
                     <td width="400">
116 120
                       <div>
117
-                        <label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'
118
-                                   showValue='自动体位'></label-box>
119
-                        &nbsp;
120
-                        <label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'
121
-                                   showValue='平卧位'></label-box>
122
-                        &nbsp;
123
-                        <label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'
124
-                                   showValue='半卧位'></label-box>
125
-                        &nbsp;
126
-                        <label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'
127
-                                   showValue='端坐位'></label-box>
128
-                        &nbsp;
129
-                        <label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'
130
-                                   showValue='躁动不安'></label-box>
121
+                        <label-box v-for="(item, index) in posture_arr" :key="index" :isChecked='receiverTreatmentAccess.posture==item.id?true:false' :showValue='item.name'></label-box>
122
+
123
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'-->
124
+                                   <!--showValue='自动体位'></label-box>-->
125
+                        <!--&nbsp;-->
126
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'-->
127
+                                   <!--showValue='平卧位'></label-box>-->
128
+                        <!--&nbsp;-->
129
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'-->
130
+                                   <!--showValue='半卧位'></label-box>-->
131
+                        <!--&nbsp;-->
132
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'-->
133
+                                   <!--showValue='端坐位'></label-box>-->
134
+                        <!--&nbsp;-->
135
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'-->
136
+                                   <!--showValue='躁动不安'></label-box>-->
131 137
                         &nbsp;
132 138
                       </div>
133 139
                     </td>
@@ -1084,6 +1090,16 @@
1084 1090
     },
1085 1091
     data() {
1086 1092
       return {
1093
+        way_arr: [],
1094
+        consciousness_arr: [],
1095
+        appetite_arr: [],
1096
+        posture_arr: [],
1097
+        sick_condition_arr: [],
1098
+        precaution_arr: [],
1099
+        intake_arr: [],
1100
+        nutrition_arr: [],
1101
+
1102
+
1087 1103
         crumbs: [
1088 1104
           { path: false, name: '透析管理' },
1089 1105
           { path: false, name: '打印单' }
@@ -1560,6 +1576,17 @@
1560 1576
 
1561 1577
     },
1562 1578
     created() {
1579
+
1580
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1581
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1582
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1583
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1584
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1585
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1586
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1587
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1588
+
1589
+
1563 1590
       var xtuser = this.$store.getters.xt_user
1564 1591
       this.orgname = xtuser.org.org_name
1565 1592
       // this.orgname = "遂溪方济医院";

+ 55 - 17
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue Voir le fichier

@@ -50,10 +50,12 @@
50 50
               <div class="row" style="padding: 2px 0;line-height:19px;">
51 51
                 <div class="inline_block">
52 52
                   入科方式:
53
-                  <check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>
54
-                  <check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>
55
-                  <check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>
56
-                  <check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>
53
+                  <check-box v-for="item,index in way_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.way==item.id?true:false"></check-box>
54
+
55
+                  <!--<check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>-->
56
+                  <!--<check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>-->
57
+                  <!--<check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>-->
58
+                  <!--<check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>-->
57 59
                 </div>
58 60
                 <div class="inline_block" style="margin-left: 30px;">
59 61
                   体温:
@@ -84,10 +86,12 @@
84 86
               <div class="row" style="padding: 2px 0;line-height:19px;">
85 87
                 <div class="inline_block" >
86 88
                   意识:
87
-                  <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
88
-                  <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
89
-                  <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
90
-                  <check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>
89
+                  <check-box v-for="item,index in consciousness_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.consciousness==item.id?true:false"></check-box>
90
+
91
+                  <!--<check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>-->
92
+                  <!--<check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>-->
93
+                  <!--<check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>-->
94
+                  <!--<check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>-->
91 95
 
92 96
                 </div>
93 97
                 <div class="inline_block"  style="margin-left: 5px;">
@@ -221,9 +225,11 @@
221 225
                 </div>
222 226
                 <div class="inline_block">
223 227
                   病情:
224
-                  <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
225
-                  <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
226
-                  <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
228
+                  <check-box v-for="item, index in sick_condition_arr" :key="index"  :text="item.name" :checked="receiverTreatmentAccess.sick_condition == item.id?true:false"></check-box>
229
+
230
+                  <!--<check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>-->
231
+                  <!--<check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>-->
232
+                  <!--<check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>-->
227 233
                   <div class="inline_block">
228 234
                     其它:
229 235
                     <div class="under_line" style="width: 100px;text-align: left">
@@ -239,18 +245,24 @@
239 245
               <div class="row" style="padding: 2px 0;line-height:19px;">
240 246
                 <div class="inline_block">
241 247
                   营养状况评估:&nbsp;食欲:
242
-                  <check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>
243
-                  <check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>
248
+                  <check-box v-for="item, index in appetite_arr" :key="item.id" :text="item.name" :checked="receiverTreatmentAccess.appetite == item.id?true:false"></check-box>
249
+
250
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>-->
251
+                  <!--<check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>-->
244 252
                 </div>
245 253
                 <div class="inline_block">
246 254
                   &emsp; 摄入量:
247
-                  <check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>
248
-                  <check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>
255
+                  <check-box v-for="item, index in intake_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.intake == item.id?true:false"></check-box>
256
+
257
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>-->
258
+                  <!--<check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>-->
249 259
                 </div>
250 260
                 <div class="inline_block">
251 261
                   &emsp;营养状况:
252
-                  <check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>
253
-                  <check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>
262
+                  <check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>
263
+
264
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>-->
265
+                  <!--<check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>-->
254 266
                 </div>
255 267
               </div>
256 268
               <div class="row" style="padding: 2px 0; line-height:19px;">
@@ -1123,6 +1135,16 @@
1123 1135
     },
1124 1136
     data() {
1125 1137
       return {
1138
+        way_arr: [],
1139
+        consciousness_arr: [],
1140
+        appetite_arr: [],
1141
+        posture_arr: [],
1142
+        sick_condition_arr: [],
1143
+        precaution_arr: [],
1144
+        intake_arr: [],
1145
+        nutrition_arr: [],
1146
+
1147
+
1126 1148
         crumbs: [
1127 1149
           { path: false, name: '透析管理' },
1128 1150
           { path: false, name: '打印单' }
@@ -1708,6 +1730,22 @@
1708 1730
 
1709 1731
     },
1710 1732
     created() {
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1739
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1740
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1741
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1742
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1743
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1744
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1745
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1746
+
1747
+
1748
+
1711 1749
       var xtuser = this.$store.getters.xt_user
1712 1750
       this.orgname = xtuser.org.org_name
1713 1751
       // this.orgname = "遂溪方济医院";

+ 47 - 20
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Voir le fichier

@@ -50,10 +50,10 @@
50 50
               <div class="row" style="padding: 2px 0;line-height:19px;">
51 51
                 <div class="inline_block">
52 52
                   入科方式:
53
-                  <check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>
54
-                  <check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>
55
-                  <check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>
56
-                  <check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>
53
+                  <check-box v-for="item,index in way_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.way==item.id?true:false"></check-box>
54
+                  <!--<check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>-->
55
+                  <!--<check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>-->
56
+                  <!--<check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>-->
57 57
                 </div>
58 58
                 <div class="inline_block" style="margin-left: 30px;">
59 59
                   透析频次:
@@ -72,10 +72,12 @@
72 72
               <div class="row" style="padding: 2px 0;line-height:19px;">
73 73
                 <div class="inline_block" >
74 74
                   意识:
75
-                  <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
76
-                  <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
77
-                  <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
78
-                  <check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>
75
+                  <check-box v-for="item,index in consciousness_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.consciousness==item.id?true:false"></check-box>
76
+
77
+                  <!--<check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>-->
78
+                  <!--<check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>-->
79
+                  <!--<check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>-->
80
+                  <!--<check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>-->
79 81
 
80 82
                 </div>
81 83
                 <div class="inline_block" >
@@ -172,9 +174,9 @@
172 174
                 </div>
173 175
                 <div class="inline_block">
174 176
                   病情:
175
-                  <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
176
-                  <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
177
-                  <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
177
+                  <!--<check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>-->
178
+                  <!--<check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>-->
179
+                  <check-box v-for="item, index in sick_condition_arr" :key="index"  :text="item.name" :checked="receiverTreatmentAccess.sick_condition == item.id?true:false"></check-box>
178 180
                 </div>
179 181
               </div>
180 182
             </td>
@@ -195,18 +197,22 @@
195 197
               <div class="row" style="padding: 2px 0;line-height:19px;">
196 198
                 <div class="inline_block">
197 199
                   营养状况评估:&nbsp;食欲:
198
-                  <check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>
199
-                  <check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>
200
+                  <check-box v-for="item, index in appetite_arr" :key="item.id" :text="item.name" :checked="receiverTreatmentAccess.appetite == item.id?true:false"></check-box>
201
+                  <!--<check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>-->
200 202
                 </div>
201 203
                 <div class="inline_block">
202 204
                   &emsp; 摄入量:
203
-                  <check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>
204
-                  <check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>
205
+                  <check-box v-for="item, index in intake_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.intake == item.id?true:false"></check-box>
206
+
207
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>-->
208
+                  <!--<check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>-->
205 209
                 </div>
206 210
                 <div class="inline_block">
207 211
                   &emsp;营养状况:
208
-                  <check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>
209
-                  <check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>
212
+                  <check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>
213
+
214
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>-->
215
+                  <!--<check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>-->
210 216
                 </div>
211 217
               </div>
212 218
               <div class="row" style="padding: 2px 0; line-height:19px;">
@@ -681,9 +687,11 @@
681 687
               </div>
682 688
               <div class="inline_block">
683 689
                 &emsp;&emsp;病情:
684
-                <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
685
-                <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
686
-                <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
690
+                <check-box v-for="item, index in sick_condition_arr" :key="index"  :text="item.name" :checked="receiverTreatmentAccess.sick_condition == item.id?true:false"></check-box>
691
+
692
+                <!--<check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>-->
693
+                <!--<check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>-->
694
+                <!--<check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>-->
687 695
               </div>
688 696
             </div>
689 697
             <div class="row" style="padding: 2px 0; line-height:24px;">
@@ -1050,6 +1058,15 @@
1050 1058
     },
1051 1059
     data() {
1052 1060
       return {
1061
+        way_arr: [],
1062
+        consciousness_arr: [],
1063
+        appetite_arr: [],
1064
+        posture_arr: [],
1065
+        sick_condition_arr: [],
1066
+        precaution_arr: [],
1067
+        intake_arr: [],
1068
+        nutrition_arr: [],
1069
+
1053 1070
         crumbs: [
1054 1071
           { path: false, name: '透析管理' },
1055 1072
           { path: false, name: '打印单' }
@@ -1644,6 +1661,16 @@
1644 1661
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1645 1662
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1646 1663
 
1664
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1665
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1666
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1667
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1668
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1669
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1670
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1671
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1672
+
1673
+
1647 1674
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1648 1675
 
1649 1676
       var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')

+ 328 - 0
src/xt_pages/integration/his/adminHisConfig.vue Voir le fichier

@@ -0,0 +1,328 @@
1
+<template>
2
+  <div>
3
+    <el-dialog width="1010px"
4
+               :title="his_id.length == 0?'添加his_id':'修改his_id'" :visible.sync="dialogFormVisible">
5
+      <el-form
6
+        :rules="rules"
7
+        ref="dataForm"
8
+        :model="form"
9
+        label-width="70px"
10
+        style="width: 800px;"
11
+      >
12
+
13
+        <el-row :gutter="24">
14
+
15
+          <el-col :span="8">
16
+            <el-form-item label="姓名: ">
17
+              <el-input  style="width: 200px" disabled v-model="form.name"></el-input>
18
+            </el-form-item>
19
+          </el-col>
20
+          <el-col :span="8">
21
+            <el-form-item label="电话: ">
22
+              <el-input style="width: 200px" disabled v-model="form.mobile"></el-input>
23
+            </el-form-item>
24
+          </el-col>
25
+          <el-col :span="8">
26
+            <el-form-item label="角色">
27
+              <el-input style="width: 200px" disabled v-model="form.role_name"></el-input>
28
+            </el-form-item>
29
+          </el-col>
30
+
31
+          <el-col :span="8">
32
+            <el-form-item label="his_id" prop="his_user_id">
33
+              <el-input style="width: 200px" v-model="form.his_user_id" placeholder="请输入his_id"></el-input>
34
+            </el-form-item>
35
+          </el-col>
36
+        </el-row>
37
+
38
+
39
+      </el-form>
40
+      <div slot="footer" class="dialog-footer">
41
+        <el-button @click="dialogFormVisible = false">取消</el-button>
42
+        <el-button
43
+          v-if="his_id == 0"
44
+          type="primary"
45
+          @click="createData('dataForm')"
46
+        >保存
47
+        </el-button>
48
+        <el-button
49
+          v-if="his_id > 0"
50
+          type="primary"
51
+          @click="modifyData('dataForm')"
52
+        >修改
53
+        </el-button>
54
+      </div>
55
+    </el-dialog>
56
+
57
+    <el-row :gutter="12" style="margin-top: 10px">
58
+      <el-table
59
+        :data="adminData"
60
+        border
61
+        highlight-current-row
62
+        :row-style="{ color: '#303133' }"
63
+        :header-cell-style="{
64
+          backgroundColor: 'rgb(245, 247, 250)',
65
+          color: '#606266'
66
+        }"
67
+      >
68
+        <el-table-column label="姓名" align="center" width="200">
69
+          <template slot-scope="scope">
70
+            {{scope.row.user_name}}
71
+          </template>
72
+        </el-table-column>
73
+
74
+        <el-table-column label="电话" align="center">
75
+          <template slot-scope="scope">
76
+            {{scope.row.admin.mobile}}
77
+
78
+          </template>
79
+        </el-table-column>
80
+
81
+        <el-table-column label="角色" align="center">
82
+          <template slot-scope="scope">
83
+            <span v-if="scope.row.admin.is_super_admin == 1">管理员</span>
84
+            <span v-if="scope.row.admin.is_super_admin == 0"> {{scope.row.role.role_name}}</span>
85
+          </template>
86
+        </el-table-column>
87
+
88
+
89
+        <el-table-column label="his_id" align="center">
90
+          <template slot-scope="scope">
91
+            {{scope.row.middle_admin_role.his_user_id}}
92
+          </template>
93
+        </el-table-column>
94
+
95
+        <el-table-column label="操作" align="center">
96
+          <template slot-scope="scope">
97
+            <el-tooltip
98
+              class="item"
99
+              effect="dark"
100
+              content="编辑"
101
+              placement="top"
102
+            >
103
+              <el-button
104
+                size="mini"
105
+                type="primary"
106
+                icon="el-icon-edit-outline"
107
+                @click="handleEdit(scope.$index, scope.row)"
108
+              >
109
+              </el-button>
110
+            </el-tooltip>
111
+          </template>
112
+        </el-table-column>
113
+
114
+
115
+      </el-table>
116
+
117
+      <el-pagination
118
+        @size-change="handleSizeChange"
119
+        @current-change="handleCurrentChange"
120
+        :page-sizes="[10, 50, 100]"
121
+        :page-size="10"
122
+        background
123
+        style="margin-top:20px;float: right"
124
+        layout="total, sizes, prev, pager, next, jumper"
125
+        :total="total"
126
+      >
127
+      </el-pagination>
128
+    </el-row>
129
+  </div>
130
+</template>
131
+
132
+<script>
133
+  import { uParseTime } from '@/utils/tools'
134
+  import { fetchAllAdminUsers } from '@/api/doctor'
135
+  import { fetchAdminList,createAdminHis,editAdminHis } from '@/api/integration'
136
+
137
+  export default {
138
+    name: 'adminHisConfig',
139
+
140
+    created() {
141
+      this.fetchAdminList()
142
+      this.fetchAllAdminUsers()
143
+    },
144
+    data() {
145
+      return {
146
+        dialogFormVisible:false,
147
+        page: 1,
148
+        limit: 10,
149
+        total: 0,
150
+        pageTotal: 0,
151
+        pageSelect: 0,
152
+        adminUserOptions: [],
153
+        adminData: [],
154
+        form: {
155
+          his_user_id: '',
156
+          name: '',
157
+          mobile: '',
158
+          role_name: '',
159
+        },
160
+        rules: {
161
+          his_user_id: [{ required: true, message: '请输入his_id', trigger: 'blur' }]
162
+        },
163
+        admin_user_id: 0,
164
+        his_record_id: 0,
165
+        his_id: '',
166
+        current_index: 0,
167
+      }
168
+    },
169
+    methods: {
170
+      fetchAdminList: function() {
171
+        const Params = {
172
+          page: this.page,
173
+          limit: this.limit
174
+        }
175
+        fetchAdminList(Params).then(response => {
176
+          if (response.data.state == 0) {
177
+            this.$message.error(response.data.msg)
178
+            return false
179
+          } else {
180
+            this.total = response.data.data.total_count
181
+            this.adminData = response.data.data.admins
182
+
183
+          }
184
+        })
185
+      },
186
+      fetchAllAdminUsers() {
187
+        fetchAllAdminUsers().then(response => {
188
+          console.log(response)
189
+          if (response.data.state == 1) {
190
+            this.adminUserOptions = response.data.data.users
191
+            var alen = this.adminUserOptions.length
192
+            for (let index = 0; index < alen; index++) {
193
+              if (this.adminUserOptions[index].user_type == 2) {
194
+                // this.doctorOptions.push(this.adminUserOptions[index]);
195
+              }
196
+            }
197
+          }
198
+        })
199
+      },
200
+      handleSizeChange(val) {
201
+        this.limit = val
202
+        this.fetchAdminList()
203
+      },
204
+      handleCurrentChange(val) {
205
+        this.page = val
206
+        this.fetchAdminList()
207
+      },
208
+
209
+      getTimestamp(time) {
210
+        // 把时间日期转成时间戳
211
+        return new Date(time).getTime() / 1000
212
+      },
213
+
214
+      handleEdit: function(index, row) {
215
+        this.current_index = index
216
+        this.dialogFormVisible = true
217
+        this.his_id = row.middle_admin_role.his_user_id
218
+        this.form.his_user_id = row.middle_admin_role.his_user_id
219
+        this.admin_user_id = row.admin_user_id
220
+
221
+        this.form.name = row.user_name
222
+        this.form.mobile = row.admin.mobile
223
+
224
+        if(row.admin.is_super_admin == 1){
225
+          this.form.role_name = "管理员"
226
+
227
+        }else{
228
+          this.form.role_name = row.role.role_name
229
+        }
230
+        if (row.middle_admin_role.id > 0) {
231
+          this.his_record_id = row.middle_admin_role.id
232
+        }
233
+      },createData: function(formName) {
234
+        this.$refs[formName].validate(valid => {
235
+          if (valid) {
236
+            let params = {
237
+              id: this.admin_user_id,
238
+              his_user_id: this.form.his_user_id
239
+
240
+            }
241
+            createAdminHis(params).then(response => {
242
+              if (response.data.state == 1) {
243
+                this.dialogFormVisible = false
244
+
245
+                this.$message.success('创建成功')
246
+                this.adminData[this.current_index].middle_admin_role.his_user_id = response.data.data.his_role.his_user_id
247
+                this.adminData[this.current_index].middle_admin_role.id = response.data.data.his_role.id
248
+
249
+
250
+              } else {
251
+                this.$message.error(response.data.msg)
252
+              }
253
+            })
254
+          }
255
+        })
256
+
257
+      }, modifyData: function(formName) {
258
+        this.$refs[formName].validate(valid => {
259
+          if (valid) {
260
+            let params = {
261
+              id: this.his_record_id,
262
+              his_user_id: this.form.his_user_id
263
+            }
264
+            editAdminHis(params).then(response => {
265
+              if (response.data.state == 1) {
266
+                this.dialogFormVisible = false
267
+
268
+                this.$message.success('修改成功')
269
+                this.adminData[this.current_index].middle_admin_role.his_user_id = response.data.data.his_user_id
270
+              } else {
271
+                this.$message.error(response.data.msg)
272
+              }
273
+            })
274
+          }
275
+
276
+        })
277
+      }
278
+
279
+
280
+    }
281
+  }
282
+</script>
283
+
284
+<style rel="stylesheet/css" lang="scss" scoped>
285
+  .information {
286
+    border: 1px #dcdfe6 solid;
287
+    padding: 30px 20px 30px 20px;
288
+
289
+  .border {
290
+    border-bottom: 1px #dcdfe6 solid;
291
+    margin: 0px 0 20px 0;
292
+  }
293
+
294
+  }
295
+
296
+  .edit_separater {
297
+    border-top: 1px solid rgb(233, 233, 233);
298
+    margin-top: 15px;
299
+    margin-bottom: 15px;
300
+  }
301
+</style>
302
+
303
+<style>
304
+  .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
305
+    font-size: 12px;
306
+  }
307
+
308
+  .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
309
+    background: #6fb5fa;
310
+  }
311
+
312
+  .count {
313
+    color: #bd2c00;
314
+  }
315
+
316
+  .el-table td,
317
+  .el-table th.is-leaf,
318
+  .el-table--border,
319
+  .el-table--group {
320
+    border-color: #d0d3da;
321
+  }
322
+
323
+  .el-table--border::after,
324
+  .el-table--group::after,
325
+  .el-table::before {
326
+    background-color: #d0d3da;
327
+  }
328
+</style>

+ 386 - 0
src/xt_pages/integration/his/patientHisConfig.vue Voir le fichier

@@ -0,0 +1,386 @@
1
+<template>
2
+  <div>
3
+    <el-dialog width="1010px"
4
+               :title="his_id.length == 0?'添加his_id':'修改his_id'" :visible.sync="dialogFormVisible">
5
+      <el-form
6
+        :rules="rules"
7
+        ref="dataForm"
8
+        :model="form"
9
+        label-width="70px"
10
+        style="width: 800px;"
11
+      >
12
+
13
+        <el-row :gutter="24">
14
+
15
+          <el-col :span="8">
16
+            <el-form-item label="姓名: ">
17
+              <el-input  style="width: 200px" disabled v-model="form.name"></el-input>
18
+            </el-form-item>
19
+          </el-col>
20
+          <el-col :span="8">
21
+            <el-form-item label="性别: ">
22
+              <el-input style="width: 200px" disabled v-model="form.sex"></el-input>
23
+            </el-form-item>
24
+          </el-col>
25
+          <el-col :span="8">
26
+            <el-form-item label="年龄:">
27
+              <el-input style="width: 200px" disabled v-model="form.other_age"></el-input>
28
+            </el-form-item>
29
+          </el-col>
30
+
31
+          <el-col :span="8">
32
+            <el-form-item label="传染病:">
33
+              <el-input disabled style="width: 200px"  v-model="form.infectious"></el-input>
34
+            </el-form-item>
35
+          </el-col>
36
+          <el-col :span="8">
37
+            <el-form-item label="his_id" prop="his_user_id">
38
+              <el-input style="width: 200px" v-model="form.his_user_id" placeholder="请输入his_id"></el-input>
39
+            </el-form-item>
40
+          </el-col>
41
+        </el-row>
42
+
43
+
44
+      </el-form>
45
+      <div slot="footer" class="dialog-footer">
46
+        <el-button @click="dialogFormVisible = false">取消</el-button>
47
+        <el-button
48
+          v-if="his_id == 0"
49
+          type="primary"
50
+          @click="createData('dataForm')"
51
+        >保存
52
+        </el-button>
53
+        <el-button
54
+          v-if="his_id > 0"
55
+          type="primary"
56
+          @click="modifyData('dataForm')"
57
+        >修改
58
+        </el-button>
59
+      </div>
60
+    </el-dialog>
61
+
62
+
63
+    <el-row :gutter="12" style="margin-top: 10px">
64
+      <el-table
65
+        :data="patientData"
66
+        border
67
+        :row-style="{ color: '#303133' }"
68
+        :header-cell-style="{
69
+          backgroundColor: 'rgb(245, 247, 250)',
70
+          color: '#606266'
71
+        }"
72
+      >
73
+        <el-table-column label="姓名" align="center" width="200">
74
+          <template slot-scope="scope">
75
+            {{ scope.row.name }}
76
+          </template>
77
+        </el-table-column>
78
+
79
+        <el-table-column label="性别" align="center">
80
+          <template slot-scope="scope">
81
+            <span v-if="scope.row.gender == 1">男</span>
82
+            <span v-if="scope.row.gender == 2">女</span>
83
+          </template>
84
+        </el-table-column>
85
+
86
+        <el-table-column label="年龄" align="center">
87
+          <template slot-scope="scope">
88
+            {{getAge(scope.row)}}
89
+          </template>
90
+        </el-table-column>
91
+
92
+        <el-table-column label="传染病" align="center">
93
+          <template slot-scope="scope">
94
+            {{ getInfectiousName(scope.row) }}
95
+          </template>
96
+        </el-table-column>
97
+
98
+        <el-table-column label="his_id" align="center">
99
+          <template slot-scope="scope">
100
+            {{scope.row.his_patient?scope.row.his_patient.his_user_id:''}}
101
+          </template>
102
+        </el-table-column>
103
+
104
+
105
+        <el-table-column label="操作" align="center">
106
+          <template slot-scope="scope">
107
+            <el-tooltip
108
+              class="item"
109
+              effect="dark"
110
+              content="编辑"
111
+              placement="top"
112
+            >
113
+              <el-button
114
+                size="mini"
115
+                type="primary"
116
+                icon="el-icon-edit-outline"
117
+                @click="handleEdit(scope.$index, scope.row)"
118
+              >
119
+              </el-button>
120
+            </el-tooltip>
121
+          </template>
122
+        </el-table-column>
123
+
124
+
125
+      </el-table>
126
+
127
+      <el-pagination
128
+        @size-change="handleSizeChange"
129
+        @current-change="handleCurrentChange"
130
+        :page-sizes="[10, 50, 100]"
131
+        :page-size="10"
132
+        background
133
+        style="margin-top:20px;float: right"
134
+        layout="total, sizes, prev, pager, next, jumper"
135
+        :total="total"
136
+      >
137
+      </el-pagination>
138
+    </el-row>
139
+  </div>
140
+</template>
141
+
142
+<script>
143
+  import { jsGetAge, uParseTime } from '@/utils/tools'
144
+  import { fetchAllAdminUsers } from '@/api/doctor'
145
+  import { createPatientHis, editPatientHis, fetchPatientList } from '@/api/integration'
146
+  import { getDataConfig } from '@/utils/data'
147
+
148
+  export default {
149
+    name: 'patientHisConfig',
150
+
151
+    created() {
152
+      this.contagions = getDataConfig('patient', 'contagions')
153
+      this.fetchPatientList()
154
+      this.fetchAllAdminUsers()
155
+    },
156
+    data() {
157
+      return {
158
+        dialogFormVisible: false,
159
+        page: 1,
160
+        limit: 10,
161
+        total: 0,
162
+        pageTotal: 0,
163
+        pageSelect: 0,
164
+        adminUserOptions: [],
165
+        patientData: [],
166
+        contagions: [],
167
+        patient_id: 0,
168
+        his_record_id: 0,
169
+        his_id: '',
170
+        current_index: 0,
171
+        name: '',
172
+
173
+        form: {
174
+          his_user_id: '',
175
+          name: '',
176
+          sex: '',
177
+          other_age: '',
178
+          infectious: ''
179
+        },
180
+        rules: {
181
+          his_user_id: [{ required: true, message: '请输入his_id', trigger: 'blur' }]
182
+        }
183
+      }
184
+    },
185
+    methods: {
186
+      fetchPatientList: function() {
187
+        const Params = {
188
+          page: this.page,
189
+          limit: this.limit
190
+        }
191
+        fetchPatientList(Params).then(response => {
192
+          if (response.data.state == 0) {
193
+            this.$message.error(response.data.msg)
194
+            return false
195
+          } else {
196
+            this.total = response.data.data.total
197
+            this.patientData = response.data.data.list
198
+
199
+          }
200
+        })
201
+      },
202
+      getXuserName(id) {
203
+        if (id <= 0) {
204
+          return ''
205
+        }
206
+        var name = ''
207
+        if (
208
+          this.adminUserOptions == null ||
209
+          typeof this.adminUserOptions.length === 'undefined'
210
+        ) {
211
+          return name
212
+        }
213
+        var leng = this.adminUserOptions.length
214
+        if (leng == 0) {
215
+          return name
216
+        }
217
+        for (let index = 0; index < leng; index++) {
218
+          if (this.adminUserOptions[index].id == id) {
219
+            name = this.adminUserOptions[index].name
220
+            break
221
+          }
222
+        }
223
+        return name
224
+      },
225
+      fetchAllAdminUsers() {
226
+        fetchAllAdminUsers().then(response => {
227
+          console.log(response)
228
+          if (response.data.state == 1) {
229
+            this.adminUserOptions = response.data.data.users
230
+            var alen = this.adminUserOptions.length
231
+            for (let index = 0; index < alen; index++) {
232
+              if (this.adminUserOptions[index].user_type == 2) {
233
+                // this.doctorOptions.push(this.adminUserOptions[index]);
234
+              }
235
+            }
236
+          }
237
+        })
238
+      },
239
+      handleSizeChange(val) {
240
+        this.limit = val
241
+        this.fetchPatientList()
242
+      },
243
+      handleCurrentChange(val) {
244
+        this.page = val
245
+        this.fetchPatientList()
246
+      },
247
+
248
+      getTimestamp(time) {
249
+        // 把时间日期转成时间戳
250
+        return new Date(time).getTime() / 1000
251
+      },
252
+
253
+      handleEdit: function(index, row) {
254
+        this.current_index = index
255
+        this.dialogFormVisible = true
256
+        this.his_id = row.his_patient.his_user_id
257
+        this.form.his_user_id = row.his_patient.his_user_id
258
+        this.patient_id = row.id
259
+
260
+        this.form.name = row.name
261
+        if (row.gender == 1) {
262
+          this.form.sex = '男'
263
+        } else {
264
+          this.form.sex = '女'
265
+        }
266
+        this.form.other_age = this.getAge(row)
267
+        this.form.infectious = this.getInfectiousName(row)
268
+        console.log("111111")
269
+        console.log(this.getInfectiousName(row))
270
+
271
+        if (row.his_patient.id > 0) {
272
+          this.his_record_id = row.his_patient.id
273
+        }
274
+
275
+      }, getAge: function(val) {
276
+        if (val.birthday > 0) {
277
+          return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
278
+        }
279
+
280
+      }, getInfectiousName: function(val) {
281
+        var names = []
282
+        for (let i = 0; i < val.contagions.length; i++) {
283
+          names.push(this.GetName(val.contagions[i].disease_id))
284
+        }
285
+        return names.join(',')
286
+      }, GetName: function(id) {
287
+        for (let i = 0; i < this.contagions.length; i++) {
288
+          if (this.contagions[i].id == id) {
289
+
290
+            return this.contagions[i].name
291
+          }
292
+        }
293
+      }, createData: function(formName) {
294
+        this.$refs[formName].validate(valid => {
295
+          if (valid) {
296
+            let params = {
297
+              id: this.patient_id,
298
+              his_user_id: this.form.his_user_id
299
+
300
+            }
301
+            createPatientHis(params).then(response => {
302
+              if (response.data.state == 1) {
303
+                this.dialogFormVisible = false
304
+
305
+                this.$message.success('创建成功')
306
+                this.patientData[this.current_index].his_patient.his_user_id = response.data.data.patient.his_user_id
307
+                this.patientData[this.current_index].his_patient.id = response.data.data.patient.id
308
+
309
+              } else {
310
+                this.$message.error(response.data.msg)
311
+              }
312
+            })
313
+          }
314
+        })
315
+
316
+      }, modifyData: function(formName) {
317
+        this.$refs[formName].validate(valid => {
318
+          if (valid) {
319
+            let params = {
320
+              id: this.his_record_id,
321
+              his_user_id: this.form.his_user_id
322
+            }
323
+            editPatientHis(params).then(response => {
324
+              if (response.data.state == 1) {
325
+                this.dialogFormVisible = false
326
+
327
+                this.$message.success('修改成功')
328
+                this.patientData[this.current_index].his_patient.his_user_id = response.data.data.his_user_id
329
+              } else {
330
+                this.$message.error(response.data.msg)
331
+              }
332
+            })
333
+          }
334
+
335
+        })
336
+      }
337
+
338
+    }
339
+  }
340
+</script>
341
+
342
+<style rel="stylesheet/css" lang="scss" scoped>
343
+  .information {
344
+    border: 1px #dcdfe6 solid;
345
+    padding: 30px 20px 30px 20px;
346
+
347
+  .border {
348
+    border-bottom: 1px #dcdfe6 solid;
349
+    margin: 0px 0 20px 0;
350
+  }
351
+
352
+  }
353
+
354
+  .edit_separater {
355
+    border-top: 1px solid rgb(233, 233, 233);
356
+    margin-top: 15px;
357
+    margin-bottom: 15px;
358
+  }
359
+</style>
360
+
361
+<style>
362
+  .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
363
+    font-size: 12px;
364
+  }
365
+
366
+  .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
367
+    background: #6fb5fa;
368
+  }
369
+
370
+  .count {
371
+    color: #bd2c00;
372
+  }
373
+
374
+  .el-table td,
375
+  .el-table th.is-leaf,
376
+  .el-table--border,
377
+  .el-table--group {
378
+    border-color: #d0d3da;
379
+  }
380
+
381
+  .el-table--border::after,
382
+  .el-table--group::after,
383
+  .el-table::before {
384
+    background-color: #d0d3da;
385
+  }
386
+</style>

+ 56 - 0
src/xt_pages/integration/his_config.vue Voir le fichier

@@ -0,0 +1,56 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div class="service-box">
8
+        <el-tabs v-model="activeName">
9
+          <el-tab-pane label="病人配置" name="first">
10
+            <patient-his-config></patient-his-config>
11
+          </el-tab-pane>
12
+          <el-tab-pane label="医护配置">
13
+            <admin-his-config></admin-his-config>
14
+          </el-tab-pane>
15
+        </el-tabs>
16
+      </div>
17
+    </div>
18
+  </div>
19
+</template>
20
+
21
+<script>
22
+
23
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
24
+  import PatientHisConfig from './his/patientHisConfig'
25
+  import AdminHisConfig from './his/adminHisConfig'
26
+
27
+  export default {
28
+    name: 'his_config',
29
+    components: {
30
+      AdminHisConfig,
31
+      PatientHisConfig,
32
+      BreadCrumb
33
+    },
34
+    data() {
35
+      return {
36
+        crumbs: [
37
+          { path: false, name: '集成配置' },
38
+          { path: '/integration/his', name: 'HIS集成配置' }
39
+        ],
40
+        activeName: 'first'
41
+
42
+      }
43
+    },
44
+    methods: {
45
+      handleClick(tab, event) {
46
+        console.log(tab, event, this.activeName)
47
+      }
48
+    }
49
+  }
50
+</script>
51
+
52
+
53
+
54
+
55
+
56
+