Browse Source

添加字段

XMLWAN 4 years ago
parent
commit
4aaa397172
29 changed files with 4011 additions and 709 deletions
  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. 116 20
      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. 1471 0
      src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue
  15. 107 60
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  16. 97 29
      src/xt_pages/dialysis/batch_print/batch_print_order_three.vue
  17. 12 4
      src/xt_pages/dialysis/bulletinBoard.vue
  18. 91 61
      src/xt_pages/dialysis/details/acceptsAssessment.vue
  19. 165 84
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  20. 70 40
      src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue
  21. 57 32
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  22. 11 12
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  23. 102 72
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  24. 58 31
      src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue
  25. 55 17
      src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue
  26. 47 20
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  27. 328 0
      src/xt_pages/integration/his/adminHisConfig.vue
  28. 386 0
      src/xt_pages/integration/his/patientHisConfig.vue
  29. 56 0
      src/xt_pages/integration/his_config.vue

+ 51 - 0
src/api/integration.js View File

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 View File

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

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

16
 import org from './modules/org'
16
 import org from './modules/org'
17
 import systems from './modules/systems'
17
 import systems from './modules/systems'
18
 import data_upload from './modules/data_upload'
18
 import data_upload from './modules/data_upload'
19
+import integration from './modules/integration'
20
+
21
+
22
+
19
 
23
 
20
 
24
 
21
 
25
 
100
   device,
104
   device,
101
   org,
105
   org,
102
   data_upload,
106
   data_upload,
107
+  integration,
103
   systems,
108
   systems,
104
 ]
109
 ]
105
 
110
 

+ 24 - 0
src/router/modules/integration.js View File

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 View File

1540
             this.$message.success('添加模版成功')
1540
             this.$message.success('添加模版成功')
1541
 
1541
 
1542
             var template = response.data.data.template
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
                 const object = {}
1545
                 const object = {}
1546
                 const DoctorAdviceTemplate = template.DoctorAdviceTemplate[i]
1546
                 const DoctorAdviceTemplate = template.DoctorAdviceTemplate[i]
1547
                 for (const key in DoctorAdviceTemplate) {
1547
                 for (const key in DoctorAdviceTemplate) {

+ 140 - 115
src/xt_pages/dialysis/batch_print/batch_print_order.vue View File

94
                       <div class="inline_block">
94
                       <div class="inline_block">
95
                         入院方式:
95
                         入院方式:
96
                         <check-box
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
                           :checked="
100
                           :checked="
129
                             isCheckBoxChecked(
101
                             isCheckBoxChecked(
130
                               record.receive_assessment,
102
                               record.receive_assessment,
131
                               'way',
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
                       </div>
138
                       </div>
137
                       <div class="inline_block" style="margin-left: 15px;">
139
                       <div class="inline_block" style="margin-left: 15px;">
138
                         意识:
140
                         意识:
139
                         <check-box
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
                           :checked="
145
                           :checked="
172
                             isCheckBoxChecked(
146
                             isCheckBoxChecked(
173
                               record.receive_assessment,
147
                               record.receive_assessment,
174
                               'consciousness',
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
                       </div>
183
                       </div>
180
                       <div class="inline_block" style="margin-left: 30px;">
184
                       <div class="inline_block" style="margin-left: 30px;">
181
                         体温:
185
                         体温:
193
                       <div class="inline_block">
197
                       <div class="inline_block">
194
                         体位:
198
                         体位:
195
                         <check-box
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
                           :checked="
202
                           :checked="
238
                             isCheckBoxChecked(
203
                             isCheckBoxChecked(
239
                               record.receive_assessment,
204
                               record.receive_assessment,
240
                               'posture',
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
                       </div>
250
                       </div>
246
                     </div>
251
                     </div>
247
                     <div class="row" style="padding: 2px 0;">
252
                     <div class="row" style="padding: 2px 0;">
1890
         //     advices: [],
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
       loading: false,
1908
       loading: false,
1894
       orgname: '',
1909
       orgname: '',
1895
       org_template_info: {},
1910
       org_template_info: {},
1923
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1938
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1924
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1939
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1925
 
1940
 
1941
+    this.way_arr = getDataConfig('hemodialysis', 'way')
1942
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1943
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1944
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
1945
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1946
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1947
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
1948
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1949
+
1950
+
1926
     var bloodAccessParOpera = getDataConfig(
1951
     var bloodAccessParOpera = getDataConfig(
1927
       'hemodialysis',
1952
       'hemodialysis',
1928
       'vascular_access_desc'
1953
       'vascular_access_desc'

+ 145 - 28
src/xt_pages/dialysis/batch_print/batch_print_order_five.vue View File

59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
60
                     <div class="inline_block">
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
                     </div>
78
                     </div>
67
                     <div class="inline_block" style="margin-left: 30px;">
79
                     <div class="inline_block" style="margin-left: 30px;">
68
                       体温:
80
                       体温:
96
                   <div class="row" style="padding: 2px 0;line-height:19px;">
108
                   <div class="row" style="padding: 2px 0;line-height:19px;">
97
                     <div class="inline_block" >
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
                     </div>
128
                     </div>
105
                     <div class="inline_block"  style="margin-left: 5px;">
129
                     <div class="inline_block"  style="margin-left: 5px;">
231
                     </div>
255
                     </div>
232
                     <div class="inline_block">
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
                       <div class="inline_block">
273
                       <div class="inline_block">
238
                         其它:
274
                         其它:
239
                         <div class="under_line" style="width: 150px;text-align: left">
275
                         <div class="under_line" style="width: 150px;text-align: left">
250
                     <div class="inline_block">
286
                     <div class="inline_block">
251
                       营养状况评估:
287
                       营养状况评估:
252
                       &emsp;食欲:
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
                     </div>
307
                     </div>
259
                     <div class="inline_block">
308
                     <div class="inline_block">
260
                       &emsp; 摄入量:
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
                     </div>
324
                     </div>
264
                     <div class="inline_block">
325
                     <div class="inline_block">
265
                       &emsp;营养状况:
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
                     </div>
341
                     </div>
269
                   </div>
342
                   </div>
270
                   <div class="row" style="padding: 2px 0; line-height:19px;">
343
                   <div class="row" style="padding: 2px 0; line-height:19px;">
290
                     </div>
363
                     </div>
291
                     <div class="inline_block">
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
                       <div class="inline_block">
383
                       <div class="inline_block">
298
                         其它:
384
                         其它:
299
                         <div class="under_line" style="width: 100px;">
385
                         <div class="under_line" style="width: 100px;">
775
 
861
 
776
                   <div class="inline_block" style="margin-left:20px;">
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
                   </div>
879
                   </div>
782
                 </div>
880
                 </div>
783
                 <div class="row" style="padding: 2px 0;line-height:24px;">
881
                 <div class="row" style="padding: 2px 0;line-height:24px;">
1169
         doctor_advices: [],
1267
         doctor_advices: [],
1170
         advice_groups: [],
1268
         advice_groups: [],
1171
         advice_groups_2: [],
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
     created() {
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
       var xtuser = this.$store.getters.xt_user
1293
       var xtuser = this.$store.getters.xt_user
1177
       this.orgname = xtuser.org.org_name
1294
       this.orgname = xtuser.org.org_name
1178
       //   this.orgname = "遂溪方济医院";
1295
       //   this.orgname = "遂溪方济医院";

+ 127 - 24
src/xt_pages/dialysis/batch_print/batch_print_order_five_one.vue View File

59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
60
                     <div class="inline_block">
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
                     </div>
78
                     </div>
67
                     <div class="inline_block" style="margin-left: 30px;">
79
                     <div class="inline_block" style="margin-left: 30px;">
68
                       体温:
80
                       体温:
96
                   <div class="row" style="padding: 2px 0;line-height:19px;">
108
                   <div class="row" style="padding: 2px 0;line-height:19px;">
97
                     <div class="inline_block" >
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
                     </div>
128
                     </div>
105
                     <div class="inline_block"  style="margin-left: 5px;">
129
                     <div class="inline_block"  style="margin-left: 5px;">
231
                     </div>
255
                     </div>
232
                     <div class="inline_block">
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
                       <div class="inline_block">
273
                       <div class="inline_block">
238
                         其它:
274
                         其它:
239
                         <div class="under_line" style="width: 150px;text-align: left">
275
                         <div class="under_line" style="width: 150px;text-align: left">
250
                     <div class="inline_block">
286
                     <div class="inline_block">
251
                       营养状况评估:
287
                       营养状况评估:
252
                       &emsp;食欲:
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
                     </div>
306
                     </div>
259
                     <div class="inline_block">
307
                     <div class="inline_block">
260
                       &emsp; 摄入量:
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
                     </div>
323
                     </div>
264
                     <div class="inline_block">
324
                     <div class="inline_block">
265
                       &emsp;营养状况:
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
                     </div>
340
                     </div>
269
                   </div>
341
                   </div>
270
                   <div class="row" style="padding: 2px 0; line-height:19px;">
342
                   <div class="row" style="padding: 2px 0; line-height:19px;">
290
                     </div>
362
                     </div>
291
                     <div class="inline_block">
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
                       <div class="inline_block">
381
                       <div class="inline_block">
298
                         其它:
382
                         其它:
299
                         <div class="under_line" style="width: 100px;">
383
                         <div class="under_line" style="width: 100px;">
719
           //     advices: [],
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
         loading: false,
814
         loading: false,
723
         orgname: '',
815
         orgname: '',
724
         bloodAccessParOpera: {},
816
         bloodAccessParOpera: {},
734
       }
826
       }
735
     },
827
     },
736
     created() {
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
       var xtuser = this.$store.getters.xt_user
840
       var xtuser = this.$store.getters.xt_user
738
       this.orgname = xtuser.org.org_name
841
       this.orgname = xtuser.org.org_name
739
       //   this.orgname = "遂溪方济医院";
842
       //   this.orgname = "遂溪方济医院";

+ 35 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue View File

98
 
98
 
99
                   <div class="inline_block" style="margin-left:20px;">
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
                     <div class="inline_block">
117
                     <div class="inline_block">
105
                       其它:
118
                       其它:
106
                       <div class="under_line" style="width: 150px;text-align: left">
119
                       <div class="under_line" style="width: 150px;text-align: left">
486
           //     advices: [],
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
         loading: false,
511
         loading: false,
490
         orgname: '',
512
         orgname: '',
491
         bloodAccessParOpera: {},
513
         bloodAccessParOpera: {},
501
       }
523
       }
502
     },
524
     },
503
     created() {
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
       var xtuser = this.$store.getters.xt_user
536
       var xtuser = this.$store.getters.xt_user
505
       this.orgname = xtuser.org.org_name
537
       this.orgname = xtuser.org.org_name
506
       //   this.orgname = "遂溪方济医院";
538
       //   this.orgname = "遂溪方济医院";

+ 88 - 29
src/xt_pages/dialysis/batch_print/batch_print_order_four.vue View File

62
                   <div class="row" style="padding: 2px 0;">
62
                   <div class="row" style="padding: 2px 0;">
63
                     <div class="inline_block">
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
                     </div>
77
                     </div>
74
                     <div class="inline_block" style="margin-left: 30px;">
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
                     </div>
100
                     </div>
85
                     <div class="inline_block" style="margin-left: 30px;">
101
                     <div class="inline_block" style="margin-left: 30px;">
86
                       体温:
102
                       体温:
93
                   <div class="row" style="padding: 2px 0;">
109
                   <div class="row" style="padding: 2px 0;">
94
                     <div class="inline_block">
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
                     </div>
133
                     </div>
107
                     <div class="inline_block"  style="margin-left: 30px;">
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
                       <div class="under_line" style="width: 150px;">
153
                       <div class="under_line" style="width: 150px;">
781
           //     advices: [],
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
         loading: false,
831
         loading: false,
785
         orgname: '',
832
         orgname: '',
786
         bloodAccessParOpera: {},
833
         bloodAccessParOpera: {},
793
       }
840
       }
794
     },
841
     },
795
     created() {
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
       var xtuser = this.$store.getters.xt_user
855
       var xtuser = this.$store.getters.xt_user
797
       this.orgname = xtuser.org.org_name
856
       this.orgname = xtuser.org.org_name
798
       //   this.orgname = "遂溪方济医院";
857
       //   this.orgname = "遂溪方济医院";

+ 126 - 23
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue View File

59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
60
                     <div class="inline_block">
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
                     </div>
78
                     </div>
67
                     <div class="inline_block" style="margin-left: 30px;">
79
                     <div class="inline_block" style="margin-left: 30px;">
68
                       透析频次:
80
                       透析频次:
84
                   <div class="row" style="padding: 2px 0;line-height:19px;">
96
                   <div class="row" style="padding: 2px 0;line-height:19px;">
85
                     <div class="inline_block" >
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
                     </div>
116
                     </div>
93
                     <div class="inline_block"  style="margin-left: 5px;">
117
                     <div class="inline_block"  style="margin-left: 5px;">
182
                     </div>
206
                     </div>
183
                     <div class="inline_block">
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
                     </div>
224
                     </div>
189
                   </div>
225
                   </div>
190
                 </td>
226
                 </td>
207
                     <div class="inline_block">
243
                     <div class="inline_block">
208
                       营养状况评估:
244
                       营养状况评估:
209
                       &emsp;食欲:
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
                     </div>
263
                     </div>
216
                     <div class="inline_block">
264
                     <div class="inline_block">
217
                       &emsp; 摄入量:
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
                     </div>
280
                     </div>
221
                     <div class="inline_block">
281
                     <div class="inline_block">
222
                       &emsp;营养状况:
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
                     </div>
297
                     </div>
226
                   </div>
298
                   </div>
227
                   <div class="row" style="padding: 2px 0; line-height:19px;">
299
                   <div class="row" style="padding: 2px 0; line-height:19px;">
699
 
771
 
700
                   <div class="inline_block" style="margin-left:20px;">
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
                   </div>
789
                   </div>
706
                 </div>
790
                 </div>
707
                 <div class="row" style="padding: 2px 0;line-height:24px;">
791
                 <div class="row" style="padding: 2px 0;line-height:24px;">
1080
           //     advices: [],
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
         loading: false,
1176
         loading: false,
1084
         orgname: '',
1177
         orgname: '',
1085
         bloodAccessParOpera: {},
1178
         bloodAccessParOpera: {},
1095
       }
1188
       }
1096
     },
1189
     },
1097
     created() {
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
       var xtuser = this.$store.getters.xt_user
1201
       var xtuser = this.$store.getters.xt_user
1099
       this.orgname = xtuser.org.org_name
1202
       this.orgname = xtuser.org.org_name
1100
       //   this.orgname = "遂溪方济医院";
1203
       //   this.orgname = "遂溪方济医院";

+ 116 - 20
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue View File

59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
59
                   <div class="row" style="padding: 2px 0;line-height:19px;">
60
                     <div class="inline_block">
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
                     </div>
78
                     </div>
67
                     <div class="inline_block" style="margin-left: 30px;">
79
                     <div class="inline_block" style="margin-left: 30px;">
68
                       透析频次:
80
                       透析频次:
81
                   <div class="row" style="padding: 2px 0;line-height:19px;">
93
                   <div class="row" style="padding: 2px 0;line-height:19px;">
82
                     <div class="inline_block" >
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
                     </div>
112
                     </div>
89
                     <div class="inline_block"  style="margin-left: 5px;">
113
                     <div class="inline_block"  style="margin-left: 5px;">
90
                       活动性出血:
114
                       活动性出血:
178
                     </div>
202
                     </div>
179
                     <div class="inline_block">
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
                     </div>
220
                     </div>
185
                   </div>
221
                   </div>
186
                 </td>
222
                 </td>
203
                     <div class="inline_block">
239
                     <div class="inline_block">
204
                       营养状况评估:
240
                       营养状况评估:
205
                       &emsp;食欲:
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
                     </div>
259
                     </div>
212
                     <div class="inline_block">
260
                     <div class="inline_block">
213
                       &emsp; 摄入量:
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
                     </div>
276
                     </div>
217
                     <div class="inline_block">
277
                     <div class="inline_block">
218
                       &emsp;营养状况:
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
                     </div>
293
                     </div>
222
                   </div>
294
                   </div>
223
                   <div class="row" style="padding: 2px 0; line-height:19px;">
295
                   <div class="row" style="padding: 2px 0; line-height:19px;">
634
           //     advices: [],
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
         loading: false,
717
         loading: false,
638
         orgname: '',
718
         orgname: '',
639
         bloodAccessParOpera: {},
719
         bloodAccessParOpera: {},
649
       }
729
       }
650
     },
730
     },
651
     created() {
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
       var xtuser = this.$store.getters.xt_user
742
       var xtuser = this.$store.getters.xt_user
653
       this.orgname = xtuser.org.org_name
743
       this.orgname = xtuser.org.org_name
654
       //   this.orgname = "遂溪方济医院";
744
       //   this.orgname = "遂溪方济医院";
1078
           return false
1168
           return false
1079
         } else {
1169
         } else {
1080
           return record[key] == target_value
1170
           return record[key] == target_value
1171
+<<<<<<< HEAD
1172
+=======
1173
+
1174
+
1175
+
1176
+>>>>>>> e4c90cfdbcb598ed9f3db253a2650c2de8005951
1081
         }
1177
         }
1082
       }, getAge: function(val) {
1178
       }, getAge: function(val) {
1083
         if (val.age == 0) {
1179
         if (val.age == 0) {

+ 37 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue View File

97
 
97
 
98
                   <div class="inline_block" style="margin-left:20px;">
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
                   </div>
115
                   </div>
104
                 </div>
116
                 </div>
105
                 <div class="row" style="padding: 2px 0;line-height:24px;">
117
                 <div class="row" style="padding: 2px 0;line-height:24px;">
470
           //     advices: [],
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
         loading: false,
495
         loading: false,
474
         orgname: '',
496
         orgname: '',
475
         bloodAccessParOpera: {},
497
         bloodAccessParOpera: {},
485
       }
507
       }
486
     },
508
     },
487
     created() {
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
       var xtuser = this.$store.getters.xt_user
522
       var xtuser = this.$store.getters.xt_user
489
       this.orgname = xtuser.org.org_name
523
       this.orgname = xtuser.org.org_name
490
       //   this.orgname = "遂溪方济医院";
524
       //   this.orgname = "遂溪方济医院";

File diff suppressed because it is too large
+ 1471 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue


+ 107 - 60
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

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

+ 97 - 29
src/xt_pages/dialysis/batch_print/batch_print_order_three.vue View File

62
                   <div class="row" style="padding: 2px 0;">
62
                   <div class="row" style="padding: 2px 0;">
63
                     <div class="inline_block">
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
                     </div>
85
                     </div>
74
                     <div class="inline_block" style="margin-left: 30px;">
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
                     </div>
108
                     </div>
85
                     <div class="inline_block" style="margin-left: 30px;">
109
                     <div class="inline_block" style="margin-left: 30px;">
86
                       体温:
110
                       体温:
93
                   <div class="row" style="padding: 2px 0;">
117
                   <div class="row" style="padding: 2px 0;">
94
                     <div class="inline_block">
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
                     </div>
141
                     </div>
107
                     <div class="inline_block"  style="margin-left: 30px;">
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
                       <div class="under_line" style="width: 150px;">
161
                       <div class="under_line" style="width: 150px;">
771
           //     advices: [],
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
         loading: false,
832
         loading: false,
775
         orgname: '',
833
         orgname: '',
776
         bloodAccessParOpera: {},
834
         bloodAccessParOpera: {},
783
       }
841
       }
784
     },
842
     },
785
     created() {
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
       var xtuser = this.$store.getters.xt_user
854
       var xtuser = this.$store.getters.xt_user
787
       this.orgname = xtuser.org.org_name
855
       this.orgname = xtuser.org.org_name
788
       //   this.orgname = "遂溪方济医院";
856
       //   this.orgname = "遂溪方济医院";

+ 12 - 4
src/xt_pages/dialysis/bulletinBoard.vue View File

162
       orgname: "",
162
       orgname: "",
163
       today: "今天",
163
       today: "今天",
164
       week: "--",
164
       week: "--",
165
+      timer:null,
165
       rightItem: "board-right-menu-item",
166
       rightItem: "board-right-menu-item",
166
       boardData: [],
167
       boardData: [],
167
-      showTime: 10,
168
+      showTime: 120,
168
       currentPage: 0,
169
       currentPage: 0,
169
       loading: true,
170
       loading: true,
170
       weekDay: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
171
       weekDay: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
178
     // this.orgname = "遂溪方济医院";
179
     // this.orgname = "遂溪方济医院";
179
     this.modeOptions = this.$store.getters.treatment_mode;
180
     this.modeOptions = this.$store.getters.treatment_mode;
180
     this.initData();
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
   methods: {
189
   methods: {
183
     fullscreenboard: function() {
190
     fullscreenboard: function() {
213
       this.currentPage++;
220
       this.currentPage++;
214
       this.getBoards();
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
     getBoards: function() {
228
     getBoards: function() {
221
       getBoards(this.currentPage).then(response => {
229
       getBoards(this.currentPage).then(response => {

+ 91 - 61
src/xt_pages/dialysis/details/acceptsAssessment.vue View File

66
         </li>
66
         </li>
67
 
67
 
68
 
68
 
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
       </ul>
69
       </ul>
78
       <ul>
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
         <li v-if="isShow('病人意识')">
76
         <li v-if="isShow('病人意识')">
80
           <label>病人意识 :</label>
77
           <label>病人意识 :</label>
81
           <span class="content">{{ consciousness }}</span>
78
           <span class="content">{{ consciousness }}</span>
119
 
116
 
120
 <script>
117
 <script>
121
   import store from '@/store'
118
   import store from '@/store'
122
-
119
+  import { getDataConfig } from '@/utils/data'
123
   export default {
120
   export default {
124
     name: 'AcceptsAssessment',
121
     name: 'AcceptsAssessment',
125
     data() {
122
     data() {
126
       return {
123
       return {
127
         title: '接诊评估 ',
124
         title: '接诊评估 ',
128
 
125
 
129
-        ways: {
130
-          '1': '步行',
131
-          '2': '扶行',
132
-          '3': '轮椅',
133
-          '4': '平车'
134
-        },
126
+        ways: [],
135
         conditions: {
127
         conditions: {
136
           '1': '住院',
128
           '1': '住院',
137
           '2': '门诊',
129
           '2': '门诊',
138
           '3': '手术期'
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
           '1': '无',
137
           '1': '无',
164
           '2': '低风险',
138
           '2': '低风险',
165
           '3': '中度风险',
139
           '3': '中度风险',
166
           '4': '高风险'
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
           '1': '正常',
146
           '1': '正常',
176
           '2': '异常'
147
           '2': '异常'
177
-        }, precautions: {
178
-          '1': '镇定剂',
179
-          '2': '约束带',
180
-          '3': '床栏',
181
-          '4': '加强宣教'
182
-
183
-        }
148
+        },
149
+        precautions:[]
184
       }
150
       }
185
     },
151
     },
186
     props: {
152
     props: {
193
         if (this.record.id == 0) {
159
         if (this.record.id == 0) {
194
           return ''
160
           return ''
195
         } else {
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
       condition: function() {
172
       condition: function() {
207
         if (this.record.id == 0) {
180
         if (this.record.id == 0) {
208
           return ''
181
           return ''
209
         } else {
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
       appetite: function() {
192
       appetite: function() {
214
         if (this.record.id == 0) {
193
         if (this.record.id == 0) {
215
           return ''
194
           return ''
216
         } else {
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
       posture: function() {
205
       posture: function() {
221
         if (this.record.id == 0) {
206
         if (this.record.id == 0) {
222
           return ''
207
           return ''
223
         } else {
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
       }, sickCondition: function() {
218
       }, sickCondition: function() {
227
         if (this.record == null || this.record.id == '') {
219
         if (this.record == null || this.record.id == '') {
228
           return ''
220
           return ''
229
         } else {
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
       }, dangerLevel: function() {
230
       }, dangerLevel: function() {
233
         if (this.record == null || this.record.id == '') {
231
         if (this.record == null || this.record.id == '') {
239
         if (this.record == null || this.record.id == '') {
237
         if (this.record == null || this.record.id == '') {
240
           return ''
238
           return ''
241
         } else {
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
       }, nutritions: function() {
248
       }, nutritions: function() {
245
         if (this.record == null || this.record.id == '') {
249
         if (this.record == null || this.record.id == '') {
246
           return ''
250
           return ''
247
         } else {
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
       }, psychologicalAssessment: function() {
260
       }, psychologicalAssessment: function() {
251
         if (this.record == null || this.record.id == '') {
261
         if (this.record == null || this.record.id == '') {
257
         if (this.record.id == 0) {
267
         if (this.record.id == 0) {
258
           return ''
268
           return ''
259
         } else {
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
         }
287
         }
272
         return false
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
 </script>
306
 </script>
277
 
307
 

+ 165 - 84
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

1
 <template>
1
 <template>
2
   <el-dialog title="接诊评估"
2
   <el-dialog title="接诊评估"
3
-             :modal-append-to-body= "false"
3
+             :modal-append-to-body="false"
4
              :visible.sync="isVisibility"
4
              :visible.sync="isVisibility"
5
-            width="854px">
5
+             width="854px">
6
     <el-form :model="receiveTreatmentAsses" label-width="80px">
6
     <el-form :model="receiveTreatmentAsses" label-width="80px">
7
       <el-form-item label="入室方式 : " v-if="isShow('入室方式')">
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
       </el-form-item>
14
       </el-form-item>
14
       <el-form-item label="病人意识 : " v-if="isShow('病人意识')">
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
       </el-form-item>
33
       </el-form-item>
23
       <el-form-item label="病人食欲 : " v-if="isShow('病人食欲')">
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
       </el-form-item>
47
       </el-form-item>
30
       <el-form-item label="病人情况 : " v-if="isShow('病人情况')">
48
       <el-form-item label="病人情况 : " v-if="isShow('病人情况')">
31
         <el-radio v-model="receiveTreatmentAsses.condition" label="1">住院</el-radio>
49
         <el-radio v-model="receiveTreatmentAsses.condition" label="1">住院</el-radio>
32
         <el-radio v-model="receiveTreatmentAsses.condition" label="2">门诊</el-radio>
50
         <el-radio v-model="receiveTreatmentAsses.condition" label="2">门诊</el-radio>
33
         <el-radio v-model="receiveTreatmentAsses.condition" label="3">手术期</el-radio>
51
         <el-radio v-model="receiveTreatmentAsses.condition" label="3">手术期</el-radio>
34
       </el-form-item>
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
       <el-form-item label="体位 : " v-if="isShow('体位')">
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
       </el-form-item>
71
       </el-form-item>
42
 
72
 
43
       <el-form-item label="病情: " v-if="isShow('病情')">
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
       </el-form-item>
82
       </el-form-item>
48
 
83
 
49
       <el-form-item label-width="100px" label="其他病情 : "
84
       <el-form-item label-width="100px" label="其他病情 : "
50
                     v-if="isShow('其他病情')">
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
       </el-form-item>
87
       </el-form-item>
53
 
88
 
54
       <el-form-item label-width="150px" label="跌倒风险评估评分 : "
89
       <el-form-item label-width="150px" label="跌倒风险评估评分 : "
66
       </el-form-item>
101
       </el-form-item>
67
 
102
 
68
 
103
 
69
-
70
       <el-form-item label-width="150px" label="跌倒风险预防措施: " v-if="isShow('跌倒风险预防措施')">
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
       </el-form-item>
114
       </el-form-item>
76
       <el-form-item label-width="200px" label="其他跌倒风险预防措施 : "
115
       <el-form-item label-width="200px" label="其他跌倒风险预防措施 : "
77
                     v-if="isShow('其他跌倒风险预防措施')">
116
                     v-if="isShow('其他跌倒风险预防措施')">
80
 
119
 
81
 
120
 
82
       <el-form-item label="摄入量: " v-if="isShow('摄入量')">
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
       </el-form-item>
130
       </el-form-item>
86
       <el-form-item label="营养状况: " v-if="isShow('营养状况')">
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
       </el-form-item>
140
       </el-form-item>
90
-      <el-form-item label="心理评估: "  v-if="isShow('心理评估')">
141
+      <el-form-item label="心理评估: " v-if="isShow('心理评估')">
91
         <el-radio v-model="receiveTreatmentAsses.psychological_assessment" label="1">正常</el-radio>
142
         <el-radio v-model="receiveTreatmentAsses.psychological_assessment" label="1">正常</el-radio>
92
         <el-radio v-model="receiveTreatmentAsses.psychological_assessment" label="2">异常</el-radio>
143
         <el-radio v-model="receiveTreatmentAsses.psychological_assessment" label="2">异常</el-radio>
93
       </el-form-item>
144
       </el-form-item>
110
 </template>
161
 </template>
111
 
162
 
112
 <script>
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
   export default {
169
   export default {
118
-    name: "acceptsTreatmentDialog",
170
+    name: 'acceptsTreatmentDialog',
119
     data() {
171
     data() {
120
       return {
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
         receiveTreatmentAsses: {
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
           sick_condition: '1',
189
           sick_condition: '1',
130
           danger_level: '1',
190
           danger_level: '1',
131
           intake: '1',
191
           intake: '1',
132
           nutrition: '1',
192
           nutrition: '1',
133
           psychological_assessment: '1',
193
           psychological_assessment: '1',
134
           psychological_assessment_other: '',
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
         var filedList = store.getters.xt_user.fileds
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
             return true
212
             return true
149
           }
213
           }
150
         }
214
         }
151
         return false
215
         return false
152
       },
216
       },
153
       show() {
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
       hide() {
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
         postAccepts(ParamsQuery).then(response => {
238
         postAccepts(ParamsQuery).then(response => {
168
           if (response.data.state == 0) {
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
           } else {
242
           } else {
172
             this.$notify({
243
             this.$notify({
173
-              title: "成功",
174
-              message: "提交成功",
175
-              type: "success",
244
+              title: '成功',
245
+              message: '提交成功',
246
+              type: 'success',
176
               duration: 2000
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
             //prop
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
               // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
254
               // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
184
               this.$set(receiver_treatment_access, index, receive_treatment_asses_resp[index])
255
               this.$set(receiver_treatment_access, index, receive_treatment_asses_resp[index])
185
             }
256
             }
186
             this.hide()
257
             this.hide()
187
           }
258
           }
188
-        });
259
+        })
189
 
260
 
190
       }
261
       }
191
     },
262
     },
192
     props: {
263
     props: {
193
-      receiver_treatment_access : { // 双人核对
264
+      receiver_treatment_access: { // 双人核对
194
         type: Object,
265
         type: Object,
195
         default: () => {
266
         default: () => {
196
-          return {id: 0}
267
+          return { id: 0 }
197
         }
268
         }
198
       },
269
       },
199
       patient: { // 患者信息
270
       patient: { // 患者信息
200
         type: Object,
271
         type: Object,
201
         default: () => {
272
         default: () => {
202
-          return {id: 0}
273
+          return { id: 0 }
203
         }
274
         }
204
-      },
275
+      }
205
     }, watch: {
276
     }, watch: {
206
       isVisibility(val) {
277
       isVisibility(val) {
207
 
278
 
208
       },
279
       },
209
-      "receiver_treatment_access.id": function () {
280
+      'receiver_treatment_access.id': function() {
210
         if (this.receiver_treatment_access.id > 0) {
281
         if (this.receiver_treatment_access.id > 0) {
211
           for (var index in this.receiveTreatmentAsses) {
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
     }, created() {
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
 </script>
303
 </script>

+ 70 - 40
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue View File

72
                     <td width="70">入院方式:</td>
72
                     <td width="70">入院方式:</td>
73
                     <td width="230">
73
                     <td width="230">
74
                       <div>
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
                       </div>
84
                       </div>
83
                     </td>
85
                     </td>
84
 
86
 
86
                     <td width="50">意识:</td>
88
                     <td width="50">意识:</td>
87
                     <td width="230">
89
                     <td width="230">
88
                       <div>
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
                       </div>
103
                       </div>
100
                     </td>
104
                     </td>
101
 
105
 
115
                     <td width="40">体位:</td>
119
                     <td width="40">体位:</td>
116
                     <td width="400">
120
                     <td width="400">
117
                       <div>
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
                         &nbsp;
138
                         &nbsp;
133
                       </div>
139
                       </div>
134
                     </td>
140
                     </td>
135
                     <td width="40">病情:</td>
141
                     <td width="40">病情:</td>
136
                     <td width="160">
142
                     <td width="160">
137
                       <div>
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
                       </div>
156
                       </div>
149
                     </td>
157
                     </td>
1097
     },
1105
     },
1098
     data() {
1106
     data() {
1099
       return {
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
         crumbs: [
1117
         crumbs: [
1101
           { path: false, name: '透析管理' },
1118
           { path: false, name: '透析管理' },
1102
           { path: false, name: '打印单' }
1119
           { path: false, name: '打印单' }
1573
 
1590
 
1574
     },
1591
     },
1575
     created() {
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
       var xtuser = this.$store.getters.xt_user
1606
       var xtuser = this.$store.getters.xt_user
1577
       this.orgname = xtuser.org.org_name
1607
       this.orgname = xtuser.org.org_name
1578
       // this.orgname = "遂溪方济医院";
1608
       // this.orgname = "遂溪方济医院";

+ 57 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue View File

72
                 <td width="70">入院方式:</td>
72
                 <td width="70">入院方式:</td>
73
                 <td width="230">
73
                 <td width="230">
74
                   <div>
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
                   </div>
83
                   </div>
83
                 </td>
84
                 </td>
84
 
85
 
86
                 <td width="50">意识:</td>
87
                 <td width="50">意识:</td>
87
                 <td width="230">
88
                 <td width="230">
88
                   <div>
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
                   </div>
102
                   </div>
100
                 </td>
103
                 </td>
101
                 <td></td>
104
                 <td></td>
114
                 <td width="40">体位:</td>
117
                 <td width="40">体位:</td>
115
                 <td width="400">
118
                 <td width="400">
116
                   <div>
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
                   </div>
138
                   </div>
133
                 </td>
139
                 </td>
134
                 <td></td>
140
                 <td></td>
1039
     },
1045
     },
1040
     data() {
1046
     data() {
1041
       return {
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
         crumbs: [
1058
         crumbs: [
1043
           { path: false, name: '透析管理' },
1059
           { path: false, name: '透析管理' },
1044
           { path: false, name: '打印单' }
1060
           { path: false, name: '打印单' }
1528
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1544
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1529
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
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
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1556
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1532
 
1557
 
1533
       var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1558
       var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')

+ 11 - 12
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

177
                <td style="text-align:left;">
177
                <td style="text-align:left;">
178
             <span style="display:inline-block;margin-left:15px;"
178
             <span style="display:inline-block;margin-left:15px;"
179
               >透析液(mmol/L):</span
179
               >透析液(mmol/L):</span
180
-            >    
180
+            >
181
             <span v-if="dialysate_formulation == 1">
181
             <span v-if="dialysate_formulation == 1">
182
               常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
182
               常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183
             </span>
183
             </span>
207
               :isChecked="blood_access_part_opera_id == vascularId ? true : false"
207
               :isChecked="blood_access_part_opera_id == vascularId ? true : false"
208
               showValue="内瘘"
208
               showValue="内瘘"
209
             ></label-box>
209
             ></label-box>
210
-            
210
+
211
              &nbsp;
211
              &nbsp;
212
              <label-box
212
              <label-box
213
               :isChecked="blood_access_part_opera_id == vascularId ? true : false"
213
               :isChecked="blood_access_part_opera_id == vascularId ? true : false"
387
 </template>
387
 </template>
388
 
388
 
389
 <script>
389
 <script>
390
-import { getDialysisRecord } from '@/api/dialysis'
391
-import { getDataConfig } from '@/utils/data'
392
-import { jsGetAge, uParseTime } from '@/utils/tools'
393
-import LabelBox from '../printItem/LabelBox'
394
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
395
-// import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
396
-// import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
397
-import print from 'print-js'
398
-
399
-export default {
390
+  import { getDialysisRecord } from '@/api/dialysis'
391
+  import { getDataConfig } from '@/utils/data'
392
+  import { jsGetAge, uParseTime } from '@/utils/tools'
393
+  import LabelBox from '../printItem/LabelBox'
394
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
395
+  // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
396
+  // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
397
+
398
+  export default {
400
   name: 'dialysisPrintOrderOne',
399
   name: 'dialysisPrintOrderOne',
401
   components: {
400
   components: {
402
     // DialysisPrintOrderOne,
401
     // DialysisPrintOrderOne,

+ 102 - 72
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

80
         <div class="inline_block">
80
         <div class="inline_block">
81
           入科方式:
81
           入科方式:
82
           <div
82
           <div
83
+            v-for="item,index in way_arr"
83
             class="under_line"
84
             class="under_line"
84
-            v-if="receiverTreatmentAccess.way == 0"
85
+            v-if="receiverTreatmentAccess.way == item.id"
85
             style="width: 180px;text-align: left"
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
         </div>
116
         </div>
116
         <div class="inline_block" style="margin-left: 10px;">
117
         <div class="inline_block" style="margin-left: 10px;">
117
           诊断:
118
           诊断:
1058
                       <td style="font-size: 16px" width="10%">时间</td>
1059
                       <td style="font-size: 16px" width="10%">时间</td>
1059
                     </tr>
1060
                     </tr>
1060
                     <!-- <template v-for="group in doctor_advices" > -->
1061
                     <!-- <template v-for="group in doctor_advices" > -->
1061
-                    
1062
+
1062
                     <tr
1063
                     <tr
1063
                       v-for="(advice, advice_index) in doctor_advices"
1064
                       v-for="(advice, advice_index) in doctor_advices"
1064
                       :key="advice_index"
1065
                       :key="advice_index"
1228
         <div class="row">
1229
         <div class="row">
1229
           <div class="inline_block">
1230
           <div class="inline_block">
1230
             入科方式:
1231
             入科方式:
1232
+            <!--<check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>-->
1233
+
1231
             <div
1234
             <div
1235
+              v-for="item,index in way_arr"
1232
               class="under_line"
1236
               class="under_line"
1233
-              v-if="receiverTreatmentAccess.way == 0"
1234
-              style="width: 180px;text-align: left"
1235
-            ></div>
1236
-            <div
1237
-              class="under_line"
1238
-              v-if="receiverTreatmentAccess.way == 1"
1239
-              style="width: 180px;text-align: left"
1240
-            >
1241
-              步行
1242
-            </div>
1243
-            <div
1244
-              class="under_line"
1245
-              v-if="receiverTreatmentAccess.way == 2"
1246
-              style="width: 180px;text-align: left"
1247
-            >
1248
-              扶行
1249
-            </div>
1250
-            <div
1251
-              class="under_line"
1252
-              v-if="receiverTreatmentAccess.way == 3"
1253
-              style="width: 180px;text-align: left"
1254
-            >
1255
-              轮椅
1256
-            </div>
1257
-            <div
1258
-              class="under_line"
1259
-              v-if="receiverTreatmentAccess.way == 4"
1237
+              v-if="receiverTreatmentAccess.way == item.id"
1260
               style="width: 180px;text-align: left"
1238
               style="width: 180px;text-align: left"
1261
-            >
1262
-              平车
1263
-            </div>
1239
+            >{{item.name}}</div>
1240
+            <!--<div-->
1241
+              <!--class="under_line"-->
1242
+              <!--v-if="receiverTreatmentAccess.way == 0"-->
1243
+              <!--style="width: 180px;text-align: left"-->
1244
+            <!--&gt;</div>-->
1245
+            <!--<div-->
1246
+              <!--class="under_line"-->
1247
+              <!--v-if="receiverTreatmentAccess.way == 1"-->
1248
+              <!--style="width: 180px;text-align: left"-->
1249
+            <!--&gt;-->
1250
+              <!--步行-->
1251
+            <!--</div>-->
1252
+            <!--<div-->
1253
+              <!--class="under_line"-->
1254
+              <!--v-if="receiverTreatmentAccess.way == 2"-->
1255
+              <!--style="width: 180px;text-align: left"-->
1256
+            <!--&gt;-->
1257
+              <!--扶行-->
1258
+            <!--</div>-->
1259
+            <!--<div-->
1260
+              <!--class="under_line"-->
1261
+              <!--v-if="receiverTreatmentAccess.way == 3"-->
1262
+              <!--style="width: 180px;text-align: left"-->
1263
+            <!--&gt;-->
1264
+              <!--轮椅-->
1265
+            <!--</div>-->
1266
+            <!--<div-->
1267
+              <!--class="under_line"-->
1268
+              <!--v-if="receiverTreatmentAccess.way == 4"-->
1269
+              <!--style="width: 180px;text-align: left"-->
1270
+            <!--&gt;-->
1271
+              <!--平车-->
1272
+            <!--</div>-->
1264
           </div>
1273
           </div>
1265
           <div class="inline_block" style="margin-left: 10px;">
1274
           <div class="inline_block" style="margin-left: 10px;">
1266
             诊断:
1275
             诊断:
1872
 </template>
1881
 </template>
1873
 
1882
 
1874
 <script>
1883
 <script>
1875
-import CheckBox from "../batch_print/option_check_box";
1876
-import { getDialysisRecord } from "@/api/dialysis";
1877
-import { getDataConfig } from "@/utils/data";
1878
-import { jsGetAge, uParseTime } from "@/utils/tools";
1879
-import LabelBox from "../printItem/LabelBox";
1880
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
1884
+import CheckBox from '../batch_print/option_check_box'
1885
+import { getDialysisRecord } from '@/api/dialysis'
1886
+import { getDataConfig } from '@/utils/data'
1887
+import { jsGetAge, uParseTime } from '@/utils/tools'
1888
+import LabelBox from '../printItem/LabelBox'
1889
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
1881
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1890
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1882
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1891
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1883
-import print from "print-js";
1892
+import print from 'print-js'
1884
 
1893
 
1885
 export default {
1894
 export default {
1886
-  name: "dialysisPrintOrderSix",
1887
-  props: ["childResponse"],
1895
+  name: 'dialysisPrintOrderSix',
1896
+  props: ['childResponse'],
1888
   components: {
1897
   components: {
1889
     // DialysisPrintOrderOne,
1898
     // DialysisPrintOrderOne,
1890
     // DialysisPrintOrderTwo,
1899
     // DialysisPrintOrderTwo,
1894
   },
1903
   },
1895
   data() {
1904
   data() {
1896
     return {
1905
     return {
1906
+      way_arr: [],
1907
+      consciousness_arr: [],
1908
+      appetite_arr: [],
1909
+      posture_arr: [],
1910
+      sick_condition_arr: [],
1911
+      precaution_arr: [],
1912
+      intake_arr: [],
1913
+      nutrition_arr: [],
1914
+
1897
       crumbs: [
1915
       crumbs: [
1898
         { path: false, name: "透析管理" },
1916
         { path: false, name: "透析管理" },
1899
         { path: false, name: "打印单" }
1917
         { path: false, name: "打印单" }
2583
     }
2601
     }
2584
   },
2602
   },
2585
   created() {
2603
   created() {
2586
-    var xtuser = this.$store.getters.xt_user;
2587
-    this.orgname = xtuser.org.org_name;
2604
+
2605
+    this.way_arr = getDataConfig('hemodialysis', 'way')
2606
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
2607
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
2608
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
2609
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
2610
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
2611
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
2612
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
2613
+
2614
+
2615
+
2616
+    var xtuser = this.$store.getters.xt_user
2617
+    this.orgname = xtuser.org.org_name
2588
     // this.orgname = "遂溪方济医院";
2618
     // this.orgname = "遂溪方济医院";
2589
     this.modeOptions = this.$store.getters.treatment_mode;
2619
     this.modeOptions = this.$store.getters.treatment_mode;
2590
     this.replacementWays = this.$store.getters.replacement_ways;
2620
     this.replacementWays = this.$store.getters.replacement_ways;

+ 58 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue View File

72
                     <td width="70">入院方式:</td>
72
                     <td width="70">入院方式:</td>
73
                     <td width="230">
73
                     <td width="230">
74
                       <div>
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
                       </div>
84
                       </div>
83
                     </td>
85
                     </td>
84
 
86
 
86
                     <td width="50">意识:</td>
88
                     <td width="50">意识:</td>
87
                     <td width="220">
89
                     <td width="220">
88
                       <div>
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
                       </div>
103
                       </div>
100
                     </td>
104
                     </td>
101
                     <td></td>
105
                     <td></td>
114
                     <td width="40">体位:</td>
118
                     <td width="40">体位:</td>
115
                     <td width="400">
119
                     <td width="400">
116
                       <div>
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
                         &nbsp;
137
                         &nbsp;
132
                       </div>
138
                       </div>
133
                     </td>
139
                     </td>
1084
     },
1090
     },
1085
     data() {
1091
     data() {
1086
       return {
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
         crumbs: [
1103
         crumbs: [
1088
           { path: false, name: '透析管理' },
1104
           { path: false, name: '透析管理' },
1089
           { path: false, name: '打印单' }
1105
           { path: false, name: '打印单' }
1560
 
1576
 
1561
     },
1577
     },
1562
     created() {
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
       var xtuser = this.$store.getters.xt_user
1590
       var xtuser = this.$store.getters.xt_user
1564
       this.orgname = xtuser.org.org_name
1591
       this.orgname = xtuser.org.org_name
1565
       // this.orgname = "遂溪方济医院";
1592
       // this.orgname = "遂溪方济医院";

+ 55 - 17
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue View File

50
               <div class="row" style="padding: 2px 0;line-height:19px;">
50
               <div class="row" style="padding: 2px 0;line-height:19px;">
51
                 <div class="inline_block">
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
                 </div>
59
                 </div>
58
                 <div class="inline_block" style="margin-left: 30px;">
60
                 <div class="inline_block" style="margin-left: 30px;">
59
                   体温:
61
                   体温:
84
               <div class="row" style="padding: 2px 0;line-height:19px;">
86
               <div class="row" style="padding: 2px 0;line-height:19px;">
85
                 <div class="inline_block" >
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
                 </div>
96
                 </div>
93
                 <div class="inline_block"  style="margin-left: 5px;">
97
                 <div class="inline_block"  style="margin-left: 5px;">
221
                 </div>
225
                 </div>
222
                 <div class="inline_block">
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
                   <div class="inline_block">
233
                   <div class="inline_block">
228
                     其它:
234
                     其它:
229
                     <div class="under_line" style="width: 100px;text-align: left">
235
                     <div class="under_line" style="width: 100px;text-align: left">
239
               <div class="row" style="padding: 2px 0;line-height:19px;">
245
               <div class="row" style="padding: 2px 0;line-height:19px;">
240
                 <div class="inline_block">
246
                 <div class="inline_block">
241
                   营养状况评估:&nbsp;食欲:
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
                 </div>
252
                 </div>
245
                 <div class="inline_block">
253
                 <div class="inline_block">
246
                   &emsp; 摄入量:
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
                 </div>
259
                 </div>
250
                 <div class="inline_block">
260
                 <div class="inline_block">
251
                   &emsp;营养状况:
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
                 </div>
266
                 </div>
255
               </div>
267
               </div>
256
               <div class="row" style="padding: 2px 0; line-height:19px;">
268
               <div class="row" style="padding: 2px 0; line-height:19px;">
1123
     },
1135
     },
1124
     data() {
1136
     data() {
1125
       return {
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
         crumbs: [
1148
         crumbs: [
1127
           { path: false, name: '透析管理' },
1149
           { path: false, name: '透析管理' },
1128
           { path: false, name: '打印单' }
1150
           { path: false, name: '打印单' }
1708
 
1730
 
1709
     },
1731
     },
1710
     created() {
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
       var xtuser = this.$store.getters.xt_user
1749
       var xtuser = this.$store.getters.xt_user
1712
       this.orgname = xtuser.org.org_name
1750
       this.orgname = xtuser.org.org_name
1713
       // this.orgname = "遂溪方济医院";
1751
       // this.orgname = "遂溪方济医院";

+ 47 - 20
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue View File

50
               <div class="row" style="padding: 2px 0;line-height:19px;">
50
               <div class="row" style="padding: 2px 0;line-height:19px;">
51
                 <div class="inline_block">
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
                 </div>
57
                 </div>
58
                 <div class="inline_block" style="margin-left: 30px;">
58
                 <div class="inline_block" style="margin-left: 30px;">
59
                   透析频次:
59
                   透析频次:
72
               <div class="row" style="padding: 2px 0;line-height:19px;">
72
               <div class="row" style="padding: 2px 0;line-height:19px;">
73
                 <div class="inline_block" >
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
                 </div>
82
                 </div>
81
                 <div class="inline_block" >
83
                 <div class="inline_block" >
172
                 </div>
174
                 </div>
173
                 <div class="inline_block">
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
                 </div>
180
                 </div>
179
               </div>
181
               </div>
180
             </td>
182
             </td>
195
               <div class="row" style="padding: 2px 0;line-height:19px;">
197
               <div class="row" style="padding: 2px 0;line-height:19px;">
196
                 <div class="inline_block">
198
                 <div class="inline_block">
197
                   营养状况评估:&nbsp;食欲:
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
                 </div>
202
                 </div>
201
                 <div class="inline_block">
203
                 <div class="inline_block">
202
                   &emsp; 摄入量:
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
                 </div>
209
                 </div>
206
                 <div class="inline_block">
210
                 <div class="inline_block">
207
                   &emsp;营养状况:
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
                 </div>
216
                 </div>
211
               </div>
217
               </div>
212
               <div class="row" style="padding: 2px 0; line-height:19px;">
218
               <div class="row" style="padding: 2px 0; line-height:19px;">
681
               </div>
687
               </div>
682
               <div class="inline_block">
688
               <div class="inline_block">
683
                 &emsp;&emsp;病情:
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
               </div>
695
               </div>
688
             </div>
696
             </div>
689
             <div class="row" style="padding: 2px 0; line-height:24px;">
697
             <div class="row" style="padding: 2px 0; line-height:24px;">
1050
     },
1058
     },
1051
     data() {
1059
     data() {
1052
       return {
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
         crumbs: [
1070
         crumbs: [
1054
           { path: false, name: '透析管理' },
1071
           { path: false, name: '透析管理' },
1055
           { path: false, name: '打印单' }
1072
           { path: false, name: '打印单' }
1644
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1661
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1645
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
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
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1674
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1648
 
1675
 
1649
       var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1676
       var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')

+ 328 - 0
src/xt_pages/integration/his/adminHisConfig.vue View File

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 View File

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 View File

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
+