Bladeren bron

龙岗二院bug修改

XMLWAN 4 jaren geleden
bovenliggende
commit
a1281a8df8

+ 181 - 170
src/router/modules/dialysis.js Bestand weergeven

@@ -11,180 +11,191 @@ export default {
11 11
     icon: 'touxi'
12 12
   },
13 13
   children: [{
14
-    path: '/dialysis/dialysisrecord',
15
-    component: () => import('@/xt_pages/dialysis/schedualPatient'),
16
-    name: '透析记录',
17
-    meta: {
18
-      title: '透析记录'
19
-    }
20
-  },
21
-  {
22
-    path: '/dialysis/record/:id',
23
-    component: () => import('@/xt_pages/dialysis/dialysisPage'),
24
-    hidden: true,
25
-    is_menu: false,
26
-    name: 'paper',
27
-    meta: {
28
-      title: 'paper',
29
-      noCache: true
30
-    }
31
-  },
32
-  {
33
-    path: '/dialysis/print',
34
-    component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
35
-    hidden: true,
36
-    is_menu: false,
37
-    name: 'dialysisPrintOrder',
38
-    meta: {
39
-      title: 'dialysisPrintOrder',
40
-      noCache: true
41
-    }
42
-  },
14
+      path: '/dialysis/dialysisrecord',
15
+      component: () => import('@/xt_pages/dialysis/schedualPatient'),
16
+      name: '透析记录',
17
+      meta: {
18
+        title: '透析记录'
19
+      }
20
+    },
21
+    {
22
+      path: '/dialysis/record/:id',
23
+      component: () => import('@/xt_pages/dialysis/dialysisPage'),
24
+      hidden: true,
25
+      is_menu: false,
26
+      name: 'paper',
27
+      meta: {
28
+        title: 'paper',
29
+        noCache: true
30
+      }
31
+    },
32
+    {
33
+      path: '/dialysis/print',
34
+      component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
35
+      hidden: true,
36
+      is_menu: false,
37
+      name: 'dialysisPrintOrder',
38
+      meta: {
39
+        title: 'dialysisPrintOrder',
40
+        noCache: true
41
+      }
42
+    },
43 43
 
44 44
     // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
45 45
     // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
46
-  {
47
-    path: '/dialysis/watch',
48
-    component: () => import('@/xt_pages/dialysis/bloodPresssWatch'),
49
-    name: 'watch',
50
-    meta: {
51
-      title: 'watch'
52
-    }
53
-  },
54
-  {
55
-    path: '/dialysis/details',
56
-    component: () => import('@/xt_pages/dialysis/details'),
57
-    name: 'details',
58
-    meta: {
59
-      title: 'details'
46
+    {
47
+      path: '/dialysis/watch',
48
+      component: () => import('@/xt_pages/dialysis/bloodPresssWatch'),
49
+      name: 'watch',
50
+      meta: {
51
+        title: 'watch'
52
+      }
60 53
     },
61
-    hidden: true,
62
-    is_menu: false
63
-  },
64
-  {
65
-    path: '/dialysis/print/batch',
66
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
67
-    hidden: true,
68
-    is_menu: false,
69
-    name: 'dialysis_batch_print',
70
-    meta: {
71
-      title: '批量打印',
72
-      noCache: true
73
-    }
74
-  }, {
75
-    path: '/dialysis/print/batch/other',
76
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other'),
77
-    hidden: true,
78
-    is_menu: false,
79
-    name: 'dialysis_batch_print_two',
80
-    meta: {
81
-      title: '批量打印',
82
-      noCache: true
83
-    }
84
-  },
85
-  {
86
-    path: '/dialysis/print/batch/three',
87
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_three'),
88
-    hidden: true,
89
-    is_menu: false,
90
-    name: 'dialysis_batch_print_two_one',
91
-    meta: {
92
-      title: '批量打印',
93
-      noCache: true
94
-    }
95
-  },
96
-  {
97
-    path: '/dialysis/print/batch/four',
98
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_four'),
99
-    hidden: true,
100
-    is_menu: false,
101
-    name: 'dialysis_batch_print_two_one',
102
-    meta: {
103
-      title: '批量打印',
104
-      noCache: true
105
-    }
106
-  },
107
-  {
108
-    path: '/dialysis/print/batch/five',
109
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five'),
110
-    hidden: true,
111
-    is_menu: false,
112
-    name: 'dialysis_batch_print_two_one',
113
-    meta: {
114
-      title: '批量打印',
115
-      noCache: true
116
-    }
117
-  },
118
-  {
119
-    path: '/dialysis/print/batch/six',
120
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_six'),
121
-    hidden: true,
122
-    is_menu: false,
123
-    name: 'dialysis_batch_six',
124
-    meta: {
125
-      title: '批量打印',
126
-      noCache: true
127
-    }
128
-   },
129
-   {
130
-    path: '/dialysis/print/batch/seven',
131
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_seven'),
132
-    hidden: true,
133
-    is_menu: false,
134
-    name: 'dialysis_batch_seven',
135
-    meta: {
136
-      title: '批量打印',
137
-      noCache: true
138
-    }
139
-   },
140
-  {
141
-    path: '/dialysis/print/batch/otherone',
142
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),
143
-    hidden: true,
144
-    is_menu: false,
145
-    name: 'dialysis_batch_print_two_one',
146
-    meta: {
147
-      title: '批量打印',
148
-      noCache: true
149
-    }
150
-  }, {
151
-    path: '/dialysis/print/batch/othertwo',
152
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_two'),
153
-    hidden: true,
154
-    is_menu: false,
155
-    name: 'dialysis_batch_print_two_two',
156
-    meta: {
157
-      title: '批量打印',
158
-      noCache: true
159
-    }
160
-  }, {
161
-    path: '/dialysis/print/batch/fiveone',
162
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_one'),
163
-    hidden: true,
164
-    is_menu: false,
165
-    name: 'dialysis_batch_print_two_two',
166
-    meta: {
167
-      title: '批量打印',
168
-      noCache: true
169
-    }
170
-  }, {
171
-    path: '/dialysis/print/batch/fivetwo',
172
-    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_two'),
173
-    hidden: true,
174
-    is_menu: false,
175
-    name: 'dialysis_batch_print_two_two',
176
-    meta: {
177
-      title: '批量打印',
178
-      noCache: true
179
-    }
180
-  },
181
-  {
182
-    path: '/dialysis/board',
183
-    component: () => import('@/xt_pages/dialysis/bulletinBoard'),
184
-    name: '数据看板',
185
-    meta: {
186
-      title: '数据看板'
54
+    {
55
+      path: '/dialysis/details',
56
+      component: () => import('@/xt_pages/dialysis/details'),
57
+      name: 'details',
58
+      meta: {
59
+        title: 'details'
60
+      },
61
+      hidden: true,
62
+      is_menu: false
63
+    },
64
+    {
65
+      path: '/dialysis/print/batch',
66
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
67
+      hidden: true,
68
+      is_menu: false,
69
+      name: 'dialysis_batch_print',
70
+      meta: {
71
+        title: '批量打印',
72
+        noCache: true
73
+      }
74
+    }, {
75
+      path: '/dialysis/print/batch/other',
76
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other'),
77
+      hidden: true,
78
+      is_menu: false,
79
+      name: 'dialysis_batch_print_two',
80
+      meta: {
81
+        title: '批量打印',
82
+        noCache: true
83
+      }
84
+    },
85
+    {
86
+      path: '/dialysis/print/batch/three',
87
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_three'),
88
+      hidden: true,
89
+      is_menu: false,
90
+      name: 'dialysis_batch_print_two_one',
91
+      meta: {
92
+        title: '批量打印',
93
+        noCache: true
94
+      }
95
+    },
96
+    {
97
+      path: '/dialysis/print/batch/four',
98
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_four'),
99
+      hidden: true,
100
+      is_menu: false,
101
+      name: 'dialysis_batch_print_two_one',
102
+      meta: {
103
+        title: '批量打印',
104
+        noCache: true
105
+      }
106
+    },
107
+    {
108
+      path: '/dialysis/print/batch/five',
109
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five'),
110
+      hidden: true,
111
+      is_menu: false,
112
+      name: 'dialysis_batch_print_two_one',
113
+      meta: {
114
+        title: '批量打印',
115
+        noCache: true
116
+      }
117
+    },
118
+    {
119
+      path: '/dialysis/print/batch/six',
120
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_six'),
121
+      hidden: true,
122
+      is_menu: false,
123
+      name: 'dialysis_batch_six',
124
+      meta: {
125
+        title: '批量打印',
126
+        noCache: true
127
+      }
128
+    },
129
+    {
130
+      path: '/dialysis/print/batch/seven',
131
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_seven'),
132
+      hidden: true,
133
+      is_menu: false,
134
+      name: 'dialysis_batch_seven',
135
+      meta: {
136
+        title: '批量打印',
137
+        noCache: true
138
+      }
139
+    },
140
+    {
141
+      path: '/dialysis/print/batch/eight',
142
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_eight'),
143
+      hidden: true,
144
+      is_menu: false,
145
+      name: 'dialysis_batch_eight',
146
+      meta: {
147
+        title: '批量打印',
148
+        noCache: true
149
+      }
150
+    },
151
+    {
152
+      path: '/dialysis/print/batch/otherone',
153
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),
154
+      hidden: true,
155
+      is_menu: false,
156
+      name: 'dialysis_batch_print_two_one',
157
+      meta: {
158
+        title: '批量打印',
159
+        noCache: true
160
+      }
161
+    }, {
162
+      path: '/dialysis/print/batch/othertwo',
163
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_two'),
164
+      hidden: true,
165
+      is_menu: false,
166
+      name: 'dialysis_batch_print_two_two',
167
+      meta: {
168
+        title: '批量打印',
169
+        noCache: true
170
+      }
171
+    }, {
172
+      path: '/dialysis/print/batch/fiveone',
173
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_one'),
174
+      hidden: true,
175
+      is_menu: false,
176
+      name: 'dialysis_batch_print_two_two',
177
+      meta: {
178
+        title: '批量打印',
179
+        noCache: true
180
+      }
181
+    }, {
182
+      path: '/dialysis/print/batch/fivetwo',
183
+      component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_five_two'),
184
+      hidden: true,
185
+      is_menu: false,
186
+      name: 'dialysis_batch_print_two_two',
187
+      meta: {
188
+        title: '批量打印',
189
+        noCache: true
190
+      }
191
+    },
192
+    {
193
+      path: '/dialysis/board',
194
+      component: () => import('@/xt_pages/dialysis/bulletinBoard'),
195
+      name: '数据看板',
196
+      meta: {
197
+        title: '数据看板'
198
+      }
187 199
     }
188
-  }
189 200
   ]
190 201
 }

+ 14 - 0
src/xt_pages/data/printTemplate.vue Bestand weergeven

@@ -67,6 +67,20 @@
67 67
           <el-radio v-model="radio" label="7" @change="change">模版四</el-radio>
68 68
         </el-col>
69 69
       </el-row>
70
+      <el-row :gutter="20" type="flex"> 
71
+         <el-col :span="5" style="text-align: center">
72
+          <div class="demo-image__preview">
73
+            <el-tooltip class="item" effect="dark" content="点击查看大图" placement="top-start" :hide-after='2000'>
74
+              <el-image
75
+                style="width: 200px; height: 200px" margin-left:5px
76
+                :src="require('@/assets/home/4.png')"
77
+                :preview-src-list="imgs_seven"
78
+              ></el-image>
79
+            </el-tooltip>
80
+          </div>
81
+          <el-radio v-model="radio" label="8" @change="change">模版五</el-radio>
82
+        </el-col>
83
+      </el-row>
70 84
     </div>
71 85
     </div>
72 86
   </div>

+ 233 - 230
src/xt_pages/dialysis/batch_print/batch_print_order.vue Bestand weergeven

@@ -20,7 +20,7 @@
20 20
         >
21 21
           <div class="order-yy-name">{{ orgname }}</div>
22 22
           <div class="order_title">
23
-            血液净化治疗记录单
23
+            血液净化治疗记录单2
24 24
           </div>
25 25
           <div class="row" style="margin-top: 15px;">
26 26
             <div class="inline_block">
@@ -106,42 +106,42 @@
106 106
                           "
107 107
                         ></check-box>
108 108
                         <!--<check-box-->
109
-                          <!--text="扶行"-->
110
-                          <!--:checked="-->
111
-                            <!--isCheckBoxChecked(-->
112
-                              <!--record.receive_assessment,-->
113
-                              <!--'way',-->
114
-                              <!--2-->
115
-                            <!--)-->
116
-                          <!--"-->
109
+                        <!--text="扶行"-->
110
+                        <!--:checked="-->
111
+                        <!--isCheckBoxChecked(-->
112
+                        <!--record.receive_assessment,-->
113
+                        <!--'way',-->
114
+                        <!--2-->
115
+                        <!--)-->
116
+                        <!--"-->
117 117
                         <!--&gt;</check-box>-->
118 118
                         <!--<check-box-->
119
-                          <!--text="轮椅"-->
120
-                          <!--:checked="-->
121
-                            <!--isCheckBoxChecked(-->
122
-                              <!--record.receive_assessment,-->
123
-                              <!--'way',-->
124
-                              <!--3-->
125
-                            <!--)-->
126
-                          <!--"-->
119
+                        <!--text="轮椅"-->
120
+                        <!--:checked="-->
121
+                        <!--isCheckBoxChecked(-->
122
+                        <!--record.receive_assessment,-->
123
+                        <!--'way',-->
124
+                        <!--3-->
125
+                        <!--)-->
126
+                        <!--"-->
127 127
                         <!--&gt;</check-box>-->
128 128
                         <!--<check-box-->
129
-                          <!--text="平车"-->
130
-                          <!--:checked="-->
131
-                            <!--isCheckBoxChecked(-->
132
-                              <!--record.receive_assessment,-->
133
-                              <!--'way',-->
134
-                              <!--4-->
135
-                            <!--)-->
136
-                          <!--"-->
129
+                        <!--text="平车"-->
130
+                        <!--:checked="-->
131
+                        <!--isCheckBoxChecked(-->
132
+                        <!--record.receive_assessment,-->
133
+                        <!--'way',-->
134
+                        <!--4-->
135
+                        <!--)-->
136
+                        <!--"-->
137 137
                         <!--&gt;</check-box>-->
138 138
                       </div>
139 139
                       <div class="inline_block" style="margin-left: 15px;">
140 140
                         意识:
141 141
                         <check-box
142
-                          v-for="(item, index) in consciousness_arr" :key="index"
142
+                          v-for="(item, index) in consciousness_arr"
143
+                          :key="index"
143 144
                           :text="item.name"
144
-
145 145
                           :checked="
146 146
                             isCheckBoxChecked(
147 147
                               record.receive_assessment,
@@ -151,34 +151,34 @@
151 151
                           "
152 152
                         ></check-box>
153 153
                         <!--<check-box-->
154
-                          <!--text="嗜睡"-->
155
-                          <!--:checked="-->
156
-                            <!--isCheckBoxChecked(-->
157
-                              <!--record.receive_assessment,-->
158
-                              <!--'consciousness',-->
159
-                              <!--2-->
160
-                            <!--)-->
161
-                          <!--"-->
154
+                        <!--text="嗜睡"-->
155
+                        <!--:checked="-->
156
+                        <!--isCheckBoxChecked(-->
157
+                        <!--record.receive_assessment,-->
158
+                        <!--'consciousness',-->
159
+                        <!--2-->
160
+                        <!--)-->
161
+                        <!--"-->
162 162
                         <!--&gt;</check-box>-->
163 163
                         <!--<check-box-->
164
-                          <!--text="昏迷"-->
165
-                          <!--:checked="-->
166
-                            <!--isCheckBoxChecked(-->
167
-                              <!--record.receive_assessment,-->
168
-                              <!--'consciousness',-->
169
-                              <!--3-->
170
-                            <!--)-->
171
-                          <!--"-->
164
+                        <!--text="昏迷"-->
165
+                        <!--:checked="-->
166
+                        <!--isCheckBoxChecked(-->
167
+                        <!--record.receive_assessment,-->
168
+                        <!--'consciousness',-->
169
+                        <!--3-->
170
+                        <!--)-->
171
+                        <!--"-->
172 172
                         <!--&gt;</check-box>-->
173 173
                         <!--<check-box-->
174
-                          <!--text="模糊"-->
175
-                          <!--:checked="-->
176
-                            <!--isCheckBoxChecked(-->
177
-                              <!--record.receive_assessment,-->
178
-                              <!--'consciousness',-->
179
-                              <!--4-->
180
-                            <!--)-->
181
-                          <!--"-->
174
+                        <!--text="模糊"-->
175
+                        <!--:checked="-->
176
+                        <!--isCheckBoxChecked(-->
177
+                        <!--record.receive_assessment,-->
178
+                        <!--'consciousness',-->
179
+                        <!--4-->
180
+                        <!--)-->
181
+                        <!--"-->
182 182
                         <!--&gt;</check-box>-->
183 183
                       </div>
184 184
                       <div class="inline_block" style="margin-left: 30px;">
@@ -197,7 +197,8 @@
197 197
                       <div class="inline_block">
198 198
                         体位:
199 199
                         <check-box
200
-                          v-for="(item, index) in posture_arr" :key="index"
200
+                          v-for="(item, index) in posture_arr"
201
+                          :key="index"
201 202
                           :text="item.name"
202 203
                           :checked="
203 204
                             isCheckBoxChecked(
@@ -208,44 +209,44 @@
208 209
                           "
209 210
                         ></check-box>
210 211
                         <!--<check-box-->
211
-                          <!--text="平卧位"-->
212
-                          <!--:checked="-->
213
-                            <!--isCheckBoxChecked(-->
214
-                              <!--record.receive_assessment,-->
215
-                              <!--'posture',-->
216
-                              <!--2-->
217
-                            <!--)-->
218
-                          <!--"-->
212
+                        <!--text="平卧位"-->
213
+                        <!--:checked="-->
214
+                        <!--isCheckBoxChecked(-->
215
+                        <!--record.receive_assessment,-->
216
+                        <!--'posture',-->
217
+                        <!--2-->
218
+                        <!--)-->
219
+                        <!--"-->
219 220
                         <!--&gt;</check-box>-->
220 221
                         <!--<check-box-->
221
-                          <!--text="半卧位"-->
222
-                          <!--:checked="-->
223
-                            <!--isCheckBoxChecked(-->
224
-                              <!--record.receive_assessment,-->
225
-                              <!--'posture',-->
226
-                              <!--3-->
227
-                            <!--)-->
228
-                          <!--"-->
222
+                        <!--text="半卧位"-->
223
+                        <!--:checked="-->
224
+                        <!--isCheckBoxChecked(-->
225
+                        <!--record.receive_assessment,-->
226
+                        <!--'posture',-->
227
+                        <!--3-->
228
+                        <!--)-->
229
+                        <!--"-->
229 230
                         <!--&gt;</check-box>-->
230 231
                         <!--<check-box-->
231
-                          <!--text="端坐位"-->
232
-                          <!--:checked="-->
233
-                            <!--isCheckBoxChecked(-->
234
-                              <!--record.receive_assessment,-->
235
-                              <!--'posture',-->
236
-                              <!--4-->
237
-                            <!--)-->
238
-                          <!--"-->
232
+                        <!--text="端坐位"-->
233
+                        <!--:checked="-->
234
+                        <!--isCheckBoxChecked(-->
235
+                        <!--record.receive_assessment,-->
236
+                        <!--'posture',-->
237
+                        <!--4-->
238
+                        <!--)-->
239
+                        <!--"-->
239 240
                         <!--&gt;</check-box>-->
240 241
                         <!--<check-box-->
241
-                          <!--text="躁动不安"-->
242
-                          <!--:checked="-->
243
-                            <!--isCheckBoxChecked(-->
244
-                              <!--record.receive_assessment,-->
245
-                              <!--'posture',-->
246
-                              <!--5-->
247
-                            <!--)-->
248
-                          <!--"-->
242
+                        <!--text="躁动不安"-->
243
+                        <!--:checked="-->
244
+                        <!--isCheckBoxChecked(-->
245
+                        <!--record.receive_assessment,-->
246
+                        <!--'posture',-->
247
+                        <!--5-->
248
+                        <!--)-->
249
+                        <!--"-->
249 250
                         <!--&gt;</check-box>-->
250 251
                       </div>
251 252
                     </div>
@@ -1866,14 +1867,14 @@
1866 1867
 </template>
1867 1868
 
1868 1869
 <script>
1869
-import CheckBox from './option_check_box'
1870
-import { GetBatchPrintDialysisData } from '@/api/print_data'
1871
-import { jsGetAge, uParseTime } from '@/utils/tools'
1872
-import { getDataConfig } from '@/utils/data'
1873
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
1874
-import print from 'print-js'
1870
+import CheckBox from "./option_check_box";
1871
+import { GetBatchPrintDialysisData } from "@/api/print_data";
1872
+import { jsGetAge, uParseTime } from "@/utils/tools";
1873
+import { getDataConfig } from "@/utils/data";
1874
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
1875
+import print from "print-js";
1875 1876
 export default {
1876
-  name: 'BatchPrintOrder',
1877
+  name: "BatchPrintOrder",
1877 1878
   components: {
1878 1879
     CheckBox,
1879 1880
     BreadCrumb
@@ -1881,8 +1882,8 @@ export default {
1881 1882
   data() {
1882 1883
     return {
1883 1884
       crumbs: [
1884
-        { path: false, name: '透析管理' },
1885
-        { path: false, name: '批量打印' }
1885
+        { path: false, name: "透析管理" },
1886
+        { path: false, name: "批量打印" }
1886 1887
       ],
1887 1888
       records: [
1888 1889
         // 模拟有多条数据
@@ -1906,7 +1907,7 @@ export default {
1906 1907
       nutrition_arr: [],
1907 1908
 
1908 1909
       loading: false,
1909
-      orgname: '',
1910
+      orgname: "",
1910 1911
       org_template_info: {},
1911 1912
 
1912 1913
       bloodAccessParOpera: {},
@@ -1916,54 +1917,53 @@ export default {
1916 1917
       operators: [],
1917 1918
       adminUser: [],
1918 1919
       complications: [
1919
-        '低血压',
1920
-        '高血压',
1921
-        '心律失常',
1922
-        '头晕',
1923
-        '头痛',
1924
-        '呕吐',
1925
-        '抽搐',
1926
-        '出血',
1927
-        '心衰',
1928
-        '腹痛'
1920
+        "低血压",
1921
+        "高血压",
1922
+        "心律失常",
1923
+        "头晕",
1924
+        "头痛",
1925
+        "呕吐",
1926
+        "抽搐",
1927
+        "出血",
1928
+        "心衰",
1929
+        "腹痛"
1929 1930
       ]
1930
-    }
1931
+    };
1931 1932
   },
1932 1933
   created() {
1933
-    var xtuser = this.$store.getters.xt_user
1934
-    this.orgname = xtuser.org.org_name
1934
+    var xtuser = this.$store.getters.xt_user;
1935
+    this.orgname = xtuser.org.org_name;
1935 1936
     //   this.orgname = "遂溪方济医院";
1936
-    this.modeOptions = this.$store.getters.treatment_mode
1937
+    this.modeOptions = this.$store.getters.treatment_mode;
1937 1938
     //   this.replacementWays = this.$store.getters.replacement_ways;
1938 1939
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1939
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
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')
1940
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1949 1941
 
1942
+    this.way_arr = getDataConfig("hemodialysis", "way");
1943
+    this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1944
+    this.appetite_arr = getDataConfig("hemodialysis", "appetite");
1945
+    this.posture_arr = getDataConfig("hemodialysis", "posture");
1946
+    this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
1947
+    this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1948
+    this.intake_arr = getDataConfig("hemodialysis", "intake");
1949
+    this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1950 1950
 
1951 1951
     var bloodAccessParOpera = getDataConfig(
1952
-      'hemodialysis',
1953
-      'vascular_access_desc'
1954
-    )
1952
+      "hemodialysis",
1953
+      "vascular_access_desc"
1954
+    );
1955 1955
     for (var key in bloodAccessParOpera) {
1956 1956
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1957
-        bloodAccessParOpera[key]
1957
+        bloodAccessParOpera[key];
1958 1958
     }
1959 1959
 
1960 1960
     var dialysateFormulationOptions = getDataConfig(
1961
-      'hemodialysis',
1962
-      'dialysate_formulation'
1963
-    )
1961
+      "hemodialysis",
1962
+      "dialysate_formulation"
1963
+    );
1964 1964
     for (var key in dialysateFormulationOptions) {
1965 1965
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1966
-        dialysateFormulationOptions[key]
1966
+        dialysateFormulationOptions[key];
1967 1967
     }
1968 1968
 
1969 1969
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
@@ -1978,51 +1978,54 @@ export default {
1978 1978
     //   }
1979 1979
   },
1980 1980
   mounted() {
1981
-    this.loading = true
1982
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
1981
+    this.loading = true;
1982
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
1983 1983
     if (ids.length == 0) {
1984
-      this.$router.back(-1)
1985
-      return
1984
+      this.$router.back(-1);
1985
+      return;
1986 1986
     }
1987
-    GetBatchPrintDialysisData(ids.join(','))
1987
+    GetBatchPrintDialysisData(ids.join(","))
1988 1988
       .then(rs => {
1989
-        var resp = rs.data
1989
+        var resp = rs.data;
1990 1990
         if (resp.state == 1) {
1991
-          this.org_template_info = resp.data.templateInfo
1991
+          this.org_template_info = resp.data.templateInfo;
1992
+
1993
+          this.records = this.records.concat(resp.data.schedules);
1994
+
1995
+          console.log("记录", this.records);
1992 1996
 
1993
-          this.records = this.records.concat(resp.data.schedules)
1994 1997
           for (const recordIndex in this.records) {
1995
-            var dlegh = 0
1998
+            var dlegh = 0;
1996 1999
             if (
1997 2000
               this.records[recordIndex].monitor_records &&
1998 2001
               this.records[recordIndex].monitor_records.length < 8
1999 2002
             ) {
2000
-              dlegh = 8 - this.records[recordIndex].monitor_records.length
2003
+              dlegh = 8 - this.records[recordIndex].monitor_records.length;
2001 2004
             } else {
2002
-              dlegh = 0
2005
+              dlegh = 0;
2003 2006
             }
2004 2007
             if (dlegh > 0) {
2005 2008
               if (
2006 2009
                 typeof this.records[recordIndex].monitor_records ===
2007
-                  'undefined' ||
2010
+                  "undefined" ||
2008 2011
                 this.records[recordIndex].monitor_records == null
2009 2012
               ) {
2010
-                this.records[recordIndex].monitor_records = []
2013
+                this.records[recordIndex].monitor_records = [];
2011 2014
               }
2012 2015
               for (let index = 0; index < dlegh; index++) {
2013
-                this.records[recordIndex].monitor_records.push([])
2016
+                this.records[recordIndex].monitor_records.push([]);
2014 2017
               }
2015 2018
             }
2016 2019
 
2017
-            this.records[recordIndex].isShowZero = false
2020
+            this.records[recordIndex].isShowZero = false;
2018 2021
             if (this.records[recordIndex].patient.user_org_id == 9535) {
2019
-              this.records[recordIndex].isShowZero = true
2022
+              this.records[recordIndex].isShowZero = true;
2020 2023
             }
2021 2024
 
2022
-            var childMap = {}
2025
+            var childMap = {};
2023 2026
             for (const index in this.records[recordIndex].advices) {
2024 2027
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2025
-                continue
2028
+                continue;
2026 2029
               }
2027 2030
               if (
2028 2031
                 !(
@@ -2031,228 +2034,228 @@ export default {
2031 2034
               ) {
2032 2035
                 childMap[
2033 2036
                   this.records[recordIndex].advices[index].parent_id
2034
-                ] = []
2037
+                ] = [];
2035 2038
               }
2036 2039
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2037 2040
                 this.records[recordIndex].advices[index]
2038
-              )
2041
+              );
2039 2042
             }
2040 2043
 
2041
-            var advices = []
2044
+            var advices = [];
2042 2045
             for (const index in this.records[recordIndex].advices) {
2043 2046
               if (this.records[recordIndex].advices[index].parent_id > 0) {
2044
-                continue
2047
+                continue;
2045 2048
               }
2046
-              var item = this.records[recordIndex].advices[index]
2049
+              var item = this.records[recordIndex].advices[index];
2047 2050
               if (item.id in childMap) {
2048
-                item.children = childMap[item.id]
2051
+                item.children = childMap[item.id];
2049 2052
               } else {
2050
-                item.children = []
2053
+                item.children = [];
2051 2054
               }
2052
-              advices.push(item)
2055
+              advices.push(item);
2053 2056
             }
2054 2057
 
2055
-            var leftAdvice = []
2056
-            var rightAdvice = []
2057
-            var adlen = advices.length
2058
+            var leftAdvice = [];
2059
+            var rightAdvice = [];
2060
+            var adlen = advices.length;
2058 2061
 
2059
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2062
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2060 2063
             for (var i = 0; i < halfLen; i++) {
2061
-              leftAdvice.push(advices[i])
2062
-              var rightIndex = i + halfLen
2064
+              leftAdvice.push(advices[i]);
2065
+              var rightIndex = i + halfLen;
2063 2066
               rightAdvice.push(
2064 2067
                 rightIndex in advices ? advices[i + halfLen] : []
2065
-              )
2068
+              );
2066 2069
             }
2067 2070
             if (halfLen < 5) {
2068
-              var nl = 5 - leftAdvice.length
2071
+              var nl = 5 - leftAdvice.length;
2069 2072
               for (let index = 0; index < nl; index++) {
2070
-                leftAdvice.push([])
2073
+                leftAdvice.push([]);
2071 2074
               }
2072
-              var nl = 5 - rightAdvice.length
2075
+              var nl = 5 - rightAdvice.length;
2073 2076
               for (let index = 0; index < nl; index++) {
2074
-                rightAdvice.push([])
2077
+                rightAdvice.push([]);
2075 2078
               }
2076 2079
             }
2077 2080
 
2078
-            this.records[recordIndex].advices = []
2081
+            this.records[recordIndex].advices = [];
2079 2082
             for (var i = 0; i < halfLen; i++) {
2080
-              var item = []
2081
-              item.push(leftAdvice[i])
2082
-              item.push(rightAdvice[i])
2083
-              this.records[recordIndex].advices.push(item)
2083
+              var item = [];
2084
+              item.push(leftAdvice[i]);
2085
+              item.push(rightAdvice[i]);
2086
+              this.records[recordIndex].advices.push(item);
2084 2087
             }
2085 2088
           }
2086 2089
 
2087
-          console.log(' this.records[recordIndex].advices', this.records)
2088
-          this.operators = resp.data.medical_staffs
2090
+          console.log(" this.records[recordIndex].advices", this.records);
2091
+          this.operators = resp.data.medical_staffs;
2089 2092
           if (this.operators.length > 0) {
2090
-            var operatorsLen = this.operators.length
2093
+            var operatorsLen = this.operators.length;
2091 2094
             for (var index = 0; index < operatorsLen; index++) {
2092 2095
               this.$set(
2093 2096
                 this.operatorMaps,
2094 2097
                 this.operators[index].id,
2095 2098
                 this.operators[index]
2096
-              )
2099
+              );
2097 2100
             }
2098 2101
           }
2099 2102
 
2100
-          this.adminUser = resp.data.users
2101
-          this.loading = false
2103
+          this.adminUser = resp.data.users;
2104
+          this.loading = false;
2102 2105
         } else {
2103
-          this.loading = false
2104
-          this.$message.error(resp.msg)
2106
+          this.loading = false;
2107
+          this.$message.error(resp.msg);
2105 2108
         }
2106 2109
       })
2107 2110
       .catch(err => {
2108
-        this.$message.error(err)
2109
-      })
2111
+        this.$message.error(err);
2112
+      });
2110 2113
   },
2111 2114
   methods: {
2112 2115
     getAge: function(val) {
2113
-      val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
2116
+      val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
2114 2117
       if (
2115 2118
         this.org_template_info.template_id == 2 ||
2116 2119
         this.org_template_info.template_id == 0
2117 2120
       ) {
2118 2121
         if (val.age == 0) {
2119
-          return jsGetAge(val.birth, '-')
2122
+          return jsGetAge(val.birth, "-");
2120 2123
         } else {
2121
-          return val.age
2124
+          return val.age;
2122 2125
         }
2123 2126
       } else {
2124
-        return jsGetAge(val.birth, '-')
2127
+        return jsGetAge(val.birth, "-");
2125 2128
       }
2126 2129
     },
2127 2130
     printAction: function() {
2128 2131
       const style =
2129
-        '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}'
2132
+        '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}';
2130 2133
 
2131 2134
       printJS({
2132
-        printable: 'print_content',
2133
-        type: 'html',
2134
-        documentTitle: '  ',
2135
+        printable: "print_content",
2136
+        type: "html",
2137
+        documentTitle: "  ",
2135 2138
         style: style,
2136 2139
         scanStyles: false
2137
-      })
2140
+      });
2138 2141
     },
2139 2142
 
2140 2143
     complicationsOther: function(record) {
2141
-      if (record == null || typeof record === 'undefined') {
2142
-        return ''
2144
+      if (record == null || typeof record === "undefined") {
2145
+        return "";
2143 2146
       }
2144 2147
       if (record.complication.length == 0) {
2145
-        return ''
2148
+        return "";
2146 2149
       }
2147
-      var complications = record.complication.split(',')
2148
-      var complicationOthers = []
2150
+      var complications = record.complication.split(",");
2151
+      var complicationOthers = [];
2149 2152
       for (const index in complications) {
2150 2153
         if (
2151 2154
           this.complications.indexOf(complications[index]) < 0 &&
2152 2155
           complicationOthers.indexOf(complications[index]) < 0
2153 2156
         ) {
2154
-          complicationOthers.push(complications[index])
2157
+          complicationOthers.push(complications[index]);
2155 2158
         }
2156 2159
       }
2157
-      return complicationOthers.join(',')
2160
+      return complicationOthers.join(",");
2158 2161
     },
2159 2162
     modeName(mode_id) {
2160 2163
       if (mode_id in this.modeOptions) {
2161
-        return this.modeOptions[mode_id].name
2164
+        return this.modeOptions[mode_id].name;
2162 2165
       }
2163
-      return ''
2166
+      return "";
2164 2167
     },
2165 2168
     anticoagulantName: function(key) {
2166
-      if (key == null || typeof key === 'undefined') {
2167
-        return ''
2169
+      if (key == null || typeof key === "undefined") {
2170
+        return "";
2168 2171
       }
2169
-      var id = key.anticoagulant
2172
+      var id = key.anticoagulant;
2170 2173
       if (id in this.anticoagulantsConfit) {
2171
-        return this.anticoagulantsConfit[id].name
2174
+        return this.anticoagulantsConfit[id].name;
2172 2175
       }
2173
-      return ''
2176
+      return "";
2174 2177
     },
2175 2178
     isBbloodAccessParOperaCheck(key, value) {
2176
-      if (key == null || typeof key === 'undefined') {
2177
-        return false
2179
+      if (key == null || typeof key === "undefined") {
2180
+        return false;
2178 2181
       }
2179
-      var id = key.blood_access_part_opera_id
2182
+      var id = key.blood_access_part_opera_id;
2180 2183
       if (id in this.bloodAccessParOpera) {
2181
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
2184
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
2182 2185
       }
2183
-      return false
2186
+      return false;
2184 2187
     },
2185 2188
     isdialysateFormulatioCheck(key, value) {
2186
-      if (key == null || typeof key === 'undefined') {
2187
-        return false
2189
+      if (key == null || typeof key === "undefined") {
2190
+        return false;
2188 2191
       }
2189
-      var id = key.dialysate_formulation
2192
+      var id = key.dialysate_formulation;
2190 2193
       if (id in this.dialysateFormulationOptions) {
2191
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
2194
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
2192 2195
       }
2193
-      return false
2196
+      return false;
2194 2197
     },
2195 2198
     isValueIndexOfCheck: function(record, key, value) {
2196 2199
       if (record == null || record == undefined) {
2197
-        return false
2200
+        return false;
2198 2201
       } else {
2199
-        return record[key].indexOf(value) > -1
2202
+        return record[key].indexOf(value) > -1;
2200 2203
       }
2201 2204
     },
2202 2205
     setAdminUserES(key, id) {
2203 2206
       if (
2204
-        typeof key === 'undefined' ||
2207
+        typeof key === "undefined" ||
2205 2208
         key == null ||
2206
-        typeof key[id] === 'undefined'
2209
+        typeof key[id] === "undefined"
2207 2210
       ) {
2208
-        return ''
2211
+        return "";
2209 2212
       }
2210 2213
       if (key[id] == 0) {
2211
-        return ''
2214
+        return "";
2212 2215
       }
2213 2216
       if (key[id] in this.operatorMaps) {
2214
-        return this.operatorMaps[key[id]].es_url
2217
+        return this.operatorMaps[key[id]].es_url;
2215 2218
       } else {
2216
-        return ''
2219
+        return "";
2217 2220
       }
2218 2221
     },
2219 2222
     getAdminUser(key, id) {
2220 2223
       if (
2221
-        typeof key === 'undefined' ||
2224
+        typeof key === "undefined" ||
2222 2225
         key == null ||
2223
-        typeof key[id] === 'undefined'
2226
+        typeof key[id] === "undefined"
2224 2227
       ) {
2225
-        return ''
2228
+        return "";
2226 2229
       }
2227 2230
       if (key[id] == 0) {
2228
-        return ''
2231
+        return "";
2229 2232
       }
2230 2233
       if (key[id] == undefined) {
2231
-        return ''
2234
+        return "";
2232 2235
       }
2233 2236
       for (let i = 0; i < this.adminUser.length; i++) {
2234 2237
         if (this.adminUser[i].id == key[id]) {
2235
-          return this.adminUser[i].name
2238
+          return this.adminUser[i].name;
2236 2239
         }
2237 2240
       }
2238 2241
     },
2239 2242
     getTime(value, temp) {
2240 2243
       if (value != undefined) {
2241
-        return uParseTime(value, temp)
2244
+        return uParseTime(value, temp);
2242 2245
       }
2243
-      return ''
2246
+      return "";
2244 2247
     },
2245 2248
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2246 2249
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2247 2250
     isCheckBoxChecked: function(record, key, target_value) {
2248 2251
       if (record == null || record == undefined) {
2249
-        return false
2252
+        return false;
2250 2253
       } else {
2251
-        return record[key] == target_value
2254
+        return record[key] == target_value;
2252 2255
       }
2253 2256
     }
2254 2257
   }
2255
-}
2258
+};
2256 2259
 </script>
2257 2260
 
2258 2261
 <style scoped>

Diff onderdrukt omdat het te groot bestand
+ 1865 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue


+ 238 - 200
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue Bestand weergeven

@@ -13,7 +13,7 @@
13 13
     </div>
14 14
     <div class="app-container">
15 15
       <div id="print_content">
16
-        <div v-for="(record, index) in records" :key="index" class="print_page_main_content">
16
+        <div v-for="(record, index) in records" :key="record.id" class="print_page_main_content">
17 17
           <div id="dialysis-print-box">
18 18
             <div class="dialysis-print-order">
19 19
               <div class="order-yy-name"></div>
@@ -48,7 +48,7 @@
48 48
                       </span>
49 49
                       <span style="flex:1;margin-left:15px;">第({{
50 50
                             record.patient.total_dialysis
51
-                              ? record.patient.total_dialysis
51
+                              ? record.patient.total_dialysis + 1
52 52
                               : "/"
53 53
                           }})次透析
54 54
                       </span>
@@ -176,7 +176,41 @@
176 176
                     <span style="display:inline-block;margin-left:15px;"> 透析液流量:{{record.prescription.dialysate_flow}}ml/h</span>&nbsp;      
177 177
                   </td>
178 178
                   <td>
179
-                    <span>医生签名:{{getName(record.prescription.creater)}}</span>
179
+                   <span>医生签名:</span>    
180
+                    <span
181
+                            v-if="
182
+                              !record.advices ||
183
+                                typeof record.advices[0] == 'undefined' ||
184
+                                typeof record.advices[0][0] == 'undefined'
185
+                            "
186
+                          ></span>
187
+                          <span
188
+                            v-else-if="
189
+                              setAdminUserES(
190
+                                record.advices[0][0],
191
+                                'advice_doctor'
192
+                              ) == ''
193
+                            "
194
+                            >{{
195
+                              getAdminUser(
196
+                                record.advices[0][0],
197
+                                "advice_doctor"
198
+                              )
199
+                            }}</span
200
+                          >
201
+                          <img
202
+                            class="es-img"
203
+                            :src="
204
+                              setAdminUserES(
205
+                                record.advices[0][0],
206
+                                'advice_doctor'
207
+                              )
208
+                            "
209
+                            alt=""
210
+                            srcset=""
211
+                            v-else
212
+                            style="height: 20px;"
213
+                          />  
180 214
                   </td>
181 215
                 </tr>
182 216
               </table>
@@ -239,8 +273,31 @@
239 273
                     <label-box
240 274
                       :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='临时颈静脉导管' && record.assessment_before_dislysis.blood_access_part_opera_name !='长期静脉导管'  && record.assessment_before_dislysis.blood_access_part_opera_name !='临时股静脉导管'  ? true : false" showValue="其它"></label-box>
241 275
                     &nbsp;&nbsp;&nbsp;&nbsp;
242
-                    <span>穿刺者:{{getName(record.dialysis_order.puncture_nurse)}}</span>
243
-                    </span>
276
+                    <span>穿刺者:</span>
277
+                    <span
278
+                            v-if="
279
+                              setAdminUserES(
280
+                                record.dialysis_order,
281
+                                'puncture_nurse'
282
+                              ) == ''
283
+                            "
284
+                            >{{
285
+                              getAdminUser(record.dialysis_order, "puncture_nurse")
286
+                            }}</span
287
+                          >
288
+                          <img
289
+                            class="es-img"
290
+                            :src="
291
+                              setAdminUserES(
292
+                                record.dialysis_order,
293
+                                'puncture_nurse'
294
+                              )
295
+                            "
296
+                            alt=""
297
+                            srcset=""
298
+                            v-else
299
+                            style="height: 20px;"
300
+                          />
244 301
                   
245 302
                   </td>
246 303
                 </tr>
@@ -267,9 +324,8 @@
267 324
                   <td width="60"><p style="height:20px;line-height:20px">SpO₂</p><p style="height:20px;line-height:20px">(%)</p></td>
268 325
                   <td>记录</td>
269 326
                 </tr>
270
-                <tr v-for="(monitor,
271
-                          index) in record.monitor_records"
272
-                    :key="index">
327
+                <tr v-for="(monitor,monitor_index) in record.monitor_records"
328
+                    :key="monitor.id" style="height:30px">
273 329
                   <td>{{ getTime(monitor.operate_time, '{h}:{i}') }}</td>
274 330
                   <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
275 331
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
@@ -301,8 +357,8 @@
301 357
                 </tr>
302 358
                 <tr
303 359
                     v-for="(monitor_record,
304
-                          index) in record.monitor_records2"
305
-                          :key="index"
360
+                          indexTwo) in record.monitor_records2"
361
+                          :key="monitor_record.id"
306 362
                         >
307 363
                           <td></td>
308 364
                           <td></td>
@@ -335,14 +391,9 @@
335 391
                   <td>上次透后体重</td>
336 392
                   <td>
337 393
                     {{
338
-                         record.assessment_before_dislysis &&
339
-                          record.assessment_before_dislysis
340
-                          .weight_after_last_transparency
394
+                         record.lastafterweight.weight_after 
341 395
                             ? parseFloat(
342
-                                  record.assessment_before_dislysis
343
-                                    .weight_after_last_transparency -
344
-                                    record.assessment_before_dislysis
345
-                                      .additional_weight
396
+                                  record.lastafterweight.weight_after
346 397
                                 ).toFixed(1)
347 398
                               : "未称重"
348 399
                           }}kg
@@ -352,44 +403,70 @@
352 403
                 
353 404
 
354 405
                 <tr v-for="(advice, advice_index) in record.advices"
355
-                    :key="advice_index">
356
-                  <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
406
+                    :key="advices.id">
407
+                  <td> {{ getTime(advice[0].start_time, "{h}:{i}") }}</td>
357 408
                  
358 409
                   <td>
359
-                    <span>{{ advice.advice_name }}</span>
360
-                    <span v-if="advice && advice.advice_desc">
361
-                    ({{ advice.advice_desc }}{{ advice.drug_spec_unit }})
362
-                    </span>
363
-                    
364
-                    <span v-if="advice.prescribing_number">
365
-                      &nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}
366
-                    </span>
367
-                    <span v-if="advice.single_dose != 0">
368
-                          {{ advice.single_dose}}{{ advice.single_dose_unit }}
369
-                    </span>
370
-                    <span v-if="advice.parent_id == 0">
371
-                     {{advice.delivery_way}}
372
-                    </span>
373
-                    <span v-if="advice.parent_id == 0">
374
-                    {{advice.execution_frequency}}
375
-                    </span>
376
-                    <span v-if="advice.parent_id == 0 && advice.remark.length > 0">
377
-                    ({{ advice.remark }})
378
-                    </span>
410
+                      <span v-if="advice[0].parent_id > 0">└</span>
411
+                       <span>{{ advice[0].advice_name }}</span>
412
+                        <span
413
+                           >{{ advice[0].advice_desc
414
+                         }}{{ advice[0].drug_spec_unit }}</span
415
+                            >
416
+                            <span v-if="advice[0].prescribing_number"
417
+                              >* {{ advice[0].prescribing_number
418
+                              }}{{ advice[0].prescribing_number_unit }}</span
419
+                            >
420
+                            <span v-if="advice[0].single_dose != 0"
421
+                              >{{ advice[0].single_dose
422
+                              }}{{ advice[0].single_dose_unit }}</span
423
+                            >
424
+                            <span>{{ advice[0].delivery_way }}</span>
425
+                            <span>{{ advice[0].execution_frequency }}</span>
379 426
                     </td>
380 427
 
381 428
                   <td>
382
-                      <span>{{ getName(advice.execution_staff) }}</span>
429
+                      <span
430
+                           v-if="
431
+                             setAdminUserES(advice[0], 'execution_staff') ==
432
+                                  ''
433
+                              "
434
+                              >{{
435
+                                getAdminUser(advice[0], "execution_staff")
436
+                              }}</span
437
+                            >
438
+                            <img
439
+                              class="es-img"
440
+                              :src="
441
+                                setAdminUserES(advice[0], 'execution_staff')
442
+                              "
443
+                              alt=""
444
+                              srcset=""
445
+                              v-else
446
+                              style="height: 20px;"
447
+                            />
383 448
                     </td>
384 449
 
385 450
                   <td>
386
-                   <span> {{ getName(advice.checker) }}</span>
451
+                   <span>
452
+                    <span
453
+                         v-if="setAdminUserES(advice[0], 'checker') == ''"
454
+                              >{{ getAdminUser(advice[0], "checker") }}</span
455
+                            >
456
+                            <img
457
+                              class="es-img"
458
+                              :src="setAdminUserES(advice[0], 'checker')"
459
+                              alt=""
460
+                              srcset=""
461
+                              v-else
462
+                              style="height: 20px;"
463
+                            /></span>
387 464
                   </td>
388 465
                   <td v-if="advice_index==0">透前体重</td>
389 466
                   <td v-if="advice_index==0">{{record.assessment_before_dislysis.weight_before}}kg</td>
390 467
                   <td v-if="advice_index==1">体重增加量</td>
391 468
                   <td v-if="advice_index==1">
392
-                  <span>{{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight - record.assessment_before_dislysis.additional_weight).toFixed(1)}}kg</span>
469
+                  <span>{{(record.assessment_before_dislysis.weight_before - record.lastafterweight.weight_after).toFixed(1)}}kg</span>
393 470
                
394 471
                   </td>
395 472
                   <td v-if="advice_index==2">干体重(DW)</td>
@@ -411,29 +488,66 @@
411 488
                 </tr>
412 489
                 <tr>
413 490
                   <td colspan="6" style="text-align:left;">
414
-                    医生签名:<template
491
+                    医生签名: <span
415 492
                             v-if="
416
-                              record.assessment_before_dislysis.assessment_doctor &&
417
-                                record.assessment_before_dislysis.assessment_doctor 
493
+                              !record.advices ||
494
+                                typeof record.advices[0] == 'undefined' ||
495
+                                typeof record.advices[0][0] == 'undefined'
418 496
                             "
497
+                          ></span>
498
+                          <span
499
+                            v-else-if="
500
+                              setAdminUserES(
501
+                                record.advices[0][0],
502
+                                'advice_doctor'
503
+                              ) == ''
504
+                            "
505
+                            >{{
506
+                              getAdminUser(
507
+                                record.advices[0][0],
508
+                                "advice_doctor"
509
+                              )
510
+                            }}</span
419 511
                           >
420
-                            <span>{{
421
-                                getName(
422
-                                  record.assessment_before_dislysis.assessment_doctor 
423
-                                )
424
-                              }}
425
-                              </span>
426
-                          </template>&nbsp;&nbsp;&nbsp;                 
512
+                          <img
513
+                            class="es-img"
514
+                            :src="
515
+                              setAdminUserES(
516
+                                record.advices[0][0],
517
+                                'advice_doctor'
518
+                              )
519
+                            "
520
+                            alt=""
521
+                            srcset=""
522
+                            v-else
523
+                            style="height: 20px;"
524
+                          /> &nbsp;&nbsp;               
427 525
                     护士签名:
428
-                    <span>
429
-                            {{
430
-                              getName(
431
-                                record.dialysis_order == null
432
-                                  ? 0
433
-                                  : record.dialysis_order.puncture_nurse
526
+                    <span
527
+                            v-if="
528
+                              setAdminUserES(
529
+                                record.dialysis_order,
530
+                                'start_nurse'
531
+                              ) == ''
532
+                            "
533
+                            >{{
534
+                              getAdminUser(record.dialysis_order, "start_nurse")
535
+                            }}</span
536
+                          >
537
+                          <img
538
+                            class="es-img"
539
+                            :src="
540
+                              setAdminUserES(
541
+                                record.dialysis_order,
542
+                                'start_nurse'
434 543
                               )
435
-                            }}
436
-                      </span>
544
+                            "
545
+                            alt=""
546
+                            srcset=""
547
+                            v-else
548
+                            style="height: 20px;"
549
+                          />
550
+                  
437 551
                   </td>
438 552
                 </tr>
439 553
               </table>
@@ -454,7 +568,7 @@
454 568
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
455 569
   import print from 'print-js'
456 570
 export default {
457
-    name: 'BatchPrintOrderSix',
571
+    name: 'BatchPrintOrderSeven',
458 572
     components: {
459 573
       CheckBox,
460 574
       BreadCrumb,
@@ -539,7 +653,7 @@ export default {
539 653
     },
540 654
     created() {
541 655
       var xtuser = this.$store.getters.xt_user
542
-      //console.log('xtuser', xtuser)
656
+      // console.log('xtuser', xtuser)
543 657
       this.orgname = xtuser.org.org_name
544 658
       //   this.orgname = "遂溪方济医院";
545 659
       this.modeOptions = this.$store.getters.treatment_mode
@@ -589,132 +703,55 @@ export default {
589 703
         .then(rs => {
590 704
           var resp = rs.data
591 705
           if (resp.state == 1) {
592
-           // console.log('数据', resp.data.schedules)
706
+            this.org_template_info = resp.data.templateInfo
707
+
593 708
             this.records = this.records.concat(resp.data.schedules)
594
-           // console.log('this', this.records)
595
-            for (const recordIndex in this.records) {
596
-              this.advice_groups = []
597
-              this.advice_groups_2 = []
598
-              var dlegh = 0
599
-              if (
600
-                (this.records[recordIndex].assessment_before_dislysis &&
601
-                  this.records[recordIndex].assessment_before_dislysis
602
-                    .systolic_blood_pressure != 0 &&
603
-                  this.records[recordIndex].assessment_before_dislysis
604
-                    .diastolic_blood_pressure != 0) ||
605
-                (this.records[recordIndex].assessment_before_dislysis &&
606
-                  this.records[recordIndex].assessment_before_dislysis.remark
607
-                    .length > 0) ||
608
-                (this.records[recordIndex].assessment_before_dislysis &&
609
-                  this.records[recordIndex].assessment_before_dislysis
610
-                    .pulse_frequency != 0) ||
611
-                (this.records[recordIndex].assessment_before_dislysis &&
612
-                  this.records[recordIndex].assessment_before_dislysis
613
-                    .breathing_rate != 0) ||
614
-                (this.records[recordIndex].assessment_before_dislysis &&
615
-                  this.records[recordIndex].assessment_before_dislysis
616
-                    .temperature != 0)
617
-              ) {
618
-                var nl = 6
619
-                this.records[recordIndex].print_length = 8
620
-                if (this.records[recordIndex].length > 8) {
621
-                  this.records[recordIndex].classname = 'margin-bottom-900'
622
-                } else {
623
-                  this.records[recordIndex].classname = 'margin-bottom-300'
624
-                }
625
-              } else {
626
-                var nl = 6
627
-                this.records[recordIndex].print_length = 9
628
-                if (this.records[recordIndex].length > 9) {
629
-                  this.records[recordIndex].classname = 'margin-bottom-900'
630
-                } else {
631
-                  this.records[recordIndex].classname = 'margin-bottom-300'
632
-                }
633
-              }
634
-              if (
635
-                this.records[recordIndex].assessment_before_dislysis &&
636
-                this.records[recordIndex].assessment_before_dislysis
637
-                  .blood_access_part_opera_id
638
-              ) {
639
-                this.records[
640
-                  recordIndex
641
-                ].assessment_before_dislysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
642
-                  this.records[recordIndex].assessment_before_dislysis
643
-                    .blood_access_part_opera_id
644
-                )
645
-              }
646 709
 
647
-              if (recordIndex == this.records.length - 1) {
648
-                this.records[recordIndex].classname = ' '
649
-              }
710
+            console.log('记录', this.records)
650 711
 
651
-              this.records[recordIndex].monitor_records2 = []
712
+            for (const recordIndex in this.records) {
713
+              var dlegh = 0
652 714
               if (
653 715
                 this.records[recordIndex].monitor_records &&
654
-                this.records[recordIndex].monitor_records.length < 7
716
+              this.records[recordIndex].monitor_records.length < 8
655 717
               ) {
656
-                dlegh = nl - this.records[recordIndex].monitor_records.length
657
-              }
658
-              if (this.records[recordIndex].monitor_records.length <= 0) {
659
-                dlegh = nl
718
+                dlegh = 8 - this.records[recordIndex].monitor_records.length
719
+              } else {
720
+                dlegh = 0
660 721
               }
661 722
               if (dlegh > 0) {
662 723
                 if (
663 724
                   typeof this.records[recordIndex].monitor_records ===
664 725
                   'undefined' ||
665
-                  this.records[recordIndex].monitor_records == null
726
+                this.records[recordIndex].monitor_records == null
666 727
                 ) {
667 728
                   this.records[recordIndex].monitor_records = []
668 729
                 }
669 730
                 for (let index = 0; index < dlegh; index++) {
670
-                  this.records[recordIndex].monitor_records2.push([])
731
+                  this.records[recordIndex].monitor_records.push([])
671 732
                 }
672 733
               }
673 734
 
674
-              var tempmonitorflag = true
675
-              for (
676
-                let index = 0;
677
-                index < this.records[recordIndex].monitor_records.length;
678
-                index++
679
-              ) {
680
-                const monitor = this.records[recordIndex].monitor_records[index]
681
-                this.records[recordIndex].monitor_records[index].end = ''
682
-                if (Object.keys(monitor).length > 0 && index > 1) {
683
-                  if (
684
-                    monitor.operate_time ==
685
-                    this.records[recordIndex].dialysis_order.end_time
686
-                  ) {
687
-                    this.records[recordIndex].monitor_records[index].end =
688
-                      '【结束透析】'
689
-                    tempmonitorflag = false
690
-                  }
691
-                  if (
692
-                    tempmonitorflag &&
693
-                    index == this.records[recordIndex].monitor_records.length - 1
694
-                  ) {
695
-                    this.records[recordIndex].monitor_records[index].end =
696
-                      '【结束透析】'
697
-                  }
698
-                }
735
+              this.records[recordIndex].isShowZero = false
736
+              if (this.records[recordIndex].patient.user_org_id == 9535) {
737
+                this.records[recordIndex].isShowZero = true
699 738
               }
700 739
 
701
-              this.monitor_records = this.records[recordIndex].monitor_records
702
-
703
-              // this.records[recordIndex].monitor_records2 = []
704
-              // if (this.records[recordIndex].monitor_records.length > 13){
705
-              //   const tempMonitors = []
706
-              //   const tempMonitors2 = []
707
-
708
-              //   for (let index = 0; index < this.records[recordIndex].monitor_records.length; index++) {
709
-              //     if (index < 13) {
710
-              //       tempMonitors.push(this.records[recordIndex].monitor_records[index])
711
-              //     } else {
712
-              //       tempMonitors2.push(this.records[recordIndex].monitor_records[index])
713
-              //     }
714
-              //   }
715
-              // this.records[recordIndex].monitor_records = tempMonitors
716
-              // this.records[recordIndex].monitor_records2 = tempMonitors2
717
-              // }
740
+              var delghTwo = 0
741
+              if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 14) {
742
+                delghTwo = 14 - this.records[recordIndex].advices.length
743
+              } else {
744
+                delghTwo = 0
745
+              }
746
+  
747
+              if (delghTwo > 0) {
748
+                if (typeof this.records[recordIndex].advices === 'undefined' || this.records[recordIndex].advices == null) {
749
+                  this.records[recordIndex].advices = []
750
+                }
751
+                for (let index = 0; index < delghTwo; index++) {
752
+                  this.records[recordIndex].advices.push([])
753
+                }
754
+              }
718 755
 
719 756
               var childMap = {}
720 757
               for (const index in this.records[recordIndex].advices) {
@@ -749,38 +786,39 @@ export default {
749 786
                 advices.push(item)
750 787
               }
751 788
 
752
-              this.doctor_advices =
753
-                this.records[recordIndex].advices == null
754
-                  ? []
755
-                  : this.records[recordIndex].advices
756
-              for (let index = 0; index < this.doctor_advices.length; index++) {
757
-                this.doctor_advices[index]['isShow'] = 2
758
-              }
759
-
760
-              if (this.doctor_advices.length <= 7) {
761
-                var nl = 7
762
-                this.print_length = 7
789
+              var leftAdvice = []
790
+              var rightAdvice = []
791
+              var adlen = advices.length
763 792
 
793
+              var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
794
+              for (var i = 0; i < halfLen; i++) {
795
+                leftAdvice.push(advices[i])
796
+                var rightIndex = i + halfLen
797
+                rightAdvice.push(
798
+                  rightIndex in advices ? advices[i + halfLen] : []
799
+                )
800
+              }
801
+              if (halfLen < 5) {
802
+                var nl = 5 - leftAdvice.length
764 803
                 for (let index = 0; index < nl; index++) {
765
-                  if (
766
-                    this.doctor_advices[index] == undefined ||
767
-                    this.doctor_advices[index].length <= 0
768
-                  ) {
769
-                    this.doctor_advices.push([{ advice_doctor: 0 }])
770
-                  } else {
771
-                    continue
772
-                  }
804
+                  leftAdvice.push([])
805
+                }
806
+                var nl = 5 - rightAdvice.length
807
+                for (let index = 0; index < nl; index++) {
808
+                  rightAdvice.push([])
773 809
                 }
774 810
               }
775
-              this.records[recordIndex].advices = []
776
-              this.records[recordIndex].advices2 = []
777
-              this.records[recordIndex].advices = this.doctor_advices
778
-              this.records[recordIndex].advices2 = this.advice_groups_2
779 811
 
780
-              this.records[recordIndex].totallength =
781
-                this.doctor_advices.length + this.monitor_records.length
812
+              this.records[recordIndex].advices = []
813
+              for (var i = 0; i < halfLen; i++) {
814
+                var item = []
815
+                item.push(leftAdvice[i])
816
+                item.push(rightAdvice[i])
817
+                this.records[recordIndex].advices.push(item)
818
+              }
782 819
             }
783 820
 
821
+            console.log(' this.records[recordIndex].advices', this.records)
784 822
             this.operators = resp.data.medical_staffs
785 823
             if (this.operators.length > 0) {
786 824
               var operatorsLen = this.operators.length
@@ -794,7 +832,6 @@ export default {
794 832
             }
795 833
 
796 834
             this.adminUser = resp.data.users
797
-           // console.log('使用者', this.adminUser)
798 835
             this.loading = false
799 836
           } else {
800 837
             this.loading = false
@@ -804,7 +841,7 @@ export default {
804 841
         .catch(err => {
805 842
           this.$message.error(err)
806 843
         })
807
-    },
844
+  },
808 845
     methods: {
809 846
       getUnit: function(val) {
810 847
         if (val.assessment_after_dislysis == null) {
@@ -949,25 +986,26 @@ export default {
949 986
         }
950 987
       },
951 988
       getAdminUser(key, id) {
952
-        //console.log('key', key)
953
-        //console.log('id', id)
989
+        // console.log('key', key)
990
+        // console.log('id', id)
954 991
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
955 992
           return ''
956 993
         }
957
-        if (key[id] == 0) {
994
+        if (key[id] === 0) {
958 995
           return ''
959 996
         }
960
-        if (key[id] == undefined) {
997
+        if (key[id] === undefined) {
961 998
           return ''
962 999
         }
963 1000
         for (let i = 0; i < this.adminUser.length; i++) {
964
-          if (this.adminUser[i].id == key[id]) {
1001
+          if (this.adminUser[i].id === key[id]) {
965 1002
             return this.adminUser[i].name
966 1003
           }
967 1004
         }
968 1005
       },
969 1006
   
970 1007
       getName(id) {
1008
+        // console.log('签名', this.operatorMaps)
971 1009
         for (let i = 0; i < this.adminUser.length; i++) {
972 1010
           if (this.adminUser[i].id === id) {
973 1011
             return this.adminUser[i].name

+ 12 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue Bestand weergeven

@@ -110,6 +110,16 @@
110 110
           >批量打印</el-button
111 111
         >
112 112
       </template>
113
+      <template v-if="this.template_id == 8">
114
+        <el-button
115
+          size="small"
116
+          icon="el-icon-printer"
117
+          :disabled="selecting_schs.length == 0"
118
+          @click="batchPrintAction"
119
+          type="primary"
120
+          >批量打印</el-button
121
+        >
122
+      </template>
113 123
     </div>
114 124
     <div class="app-container">
115 125
       <!-- <div class="filter-container">
@@ -552,8 +562,6 @@ export default {
552 562
       for (let index = 0; index < this.selecting_schs.length; index++) {
553 563
         sch_ids.push(this.selecting_schs[index].sch_id);
554 564
       }
555
-      console.log("第一个", sch_ids);
556
-      console.log("模板id", this.template_id);
557 565
       this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
558 566
       if (this.template_id == 2 || this.template_id == 0) {
559 567
         this.$router.push({ path: "/dialysis/print/batch/other" });
@@ -569,6 +577,8 @@ export default {
569 577
         this.$router.push({ path: "/dialysis/print/batch/six" });
570 578
       } else if (this.template_id == 7) {
571 579
         this.$router.push({ path: "/dialysis/print/batch/seven" });
580
+      } else if (this.template_id == 8) {
581
+        this.$router.push({ path: "/dialysis/print/batch/eight" });
572 582
       }
573 583
     },
574 584
     batchPrintActionOne: function() {

+ 2 - 1
src/xt_pages/dialysis/details/dialysisMonitoring.vue Bestand weergeven

@@ -21,7 +21,7 @@
21 21
 
22 22
         <th v-if="isShow('置换量')&& template_id == 6" width="92px">置换量(ml)</th>
23 23
         <th v-if="isShow('置换量')&& template_id != 6" width="92px">置换量(L)</th>
24
-
24
+         <th v-if="isShow('SpO₂')&& template_id != 6" width="92px">SpO₂(%)</th>
25 25
         <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
26 26
         <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
27 27
         <th v-if="isShow('病情变化')" width="92px">病情变化</th>
@@ -42,6 +42,7 @@
42 42
         <td v-if="isShow('透析液温度')">{{ monitor.dialysate_temperature?monitor.dialysate_temperature:'' }}</td>
43 43
         <td v-if="isShow('置换率')">{{ monitor.replacement_rate?monitor.replacement_rate:'' }}</td>
44 44
         <td v-if="isShow('置换量')">{{ monitor.displacement_quantity?monitor.displacement_quantity:'' }}</td>
45
+        <td v-if="isShow('SpO₂')">{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:''}}</td>
45 46
         <td v-if="isShow('电导度')">{{ monitor.conductivity?monitor.conductivity:'' }}</td>
46 47
         <th v-if="isShow('置换液流量')" >{{monitor.displacement_flow_quantity?monitor.displacement_flow_quantity:''}}</th>
47 48
         <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>

+ 1 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue Bestand weergeven

@@ -120,7 +120,7 @@
120 120
           icon="el-icon-printer"
121 121
           @click="printThisPage"
122 122
           type="primary"
123
-          >打印8</el-button
123
+          >打印</el-button
124 124
         >
125 125
       </template>
126 126
     </div>

Diff onderdrukt omdat het te groot bestand
+ 444 - 329
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


+ 12 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Bestand weergeven

@@ -348,7 +348,7 @@
348 348
          <td v-if="advice_index==2">干体重(DW)</td>
349 349
          <td v-if="advice_index==2">{{dry_weight}}kg</td>
350 350
          <td v-if="advice_index==3">较干体重增加量</td>
351
-         <td v-if="advice_index==3">{{dryWeight_add?dryWeight_add:0}}kg</td>
351
+         <td v-if="advice_index==3">{{(weight_before - dry_weight - predialysis.additional_weight).toFixed(1)}}kg</td>
352 352
          <td v-if="advice_index==4">净脱水量</td>
353 353
          <td v-if="advice_index==4">{{actual_ultrafiltration}}L</td>
354 354
          <td v-if="advice_index==5">透后体重</td>
@@ -547,6 +547,7 @@
547 547
         venous_catheterization: '',
548 548
         blood_access_part_opera_id: '',
549 549
         dryWeight_add: '',
550
+        weight_add_dry: '',
550 551
         weight: '',
551 552
         vascularId: 0,
552 553
         PunctureNurse: {
@@ -775,7 +776,6 @@
775 776
               tableAdvice.push(obj4)
776 777
               tableAdvice.push(obj5)
777 778
               this.tableAdvice = tableAdvice
778
-              console.log('零食医嘱', doctorAdevieInfo)
779 779
             }
780 780
             if (tableAdvice.length === 2) {
781 781
               var obj = { 'advice_name': '', start_time: '' }
@@ -789,7 +789,7 @@
789 789
               tableAdvice.push(obj3)
790 790
               tableAdvice.push(obj4)
791 791
               this.tableAdvice = tableAdvice
792
-              console.log('零食医嘱', doctorAdevieInfo)
792
+             
793 793
             }
794 794
             if (tableAdvice.length === 3) {
795 795
               var obj = { 'advice_name': '', start_time: '' }
@@ -803,7 +803,7 @@
803 803
               tableAdvice.push(obj3)
804 804
 
805 805
               this.tableAdvice = tableAdvice
806
-              console.log('零食医嘱', doctorAdevieInfo)
806
+              
807 807
             }
808 808
             if (tableAdvice.length === 4) {
809 809
               var obj = { 'advice_name': '', start_time: '' }
@@ -814,7 +814,7 @@
814 814
               tableAdvice.push(obj1)
815 815
               tableAdvice.push(obj2)
816 816
               this.tableAdvice = tableAdvice
817
-              console.log('零食医嘱', doctorAdevieInfo)
817
+             
818 818
             }
819 819
             if (tableAdvice.length === 5) {
820 820
               var obj = { 'advice_name': '', start_time: '' }
@@ -915,7 +915,7 @@
915 915
             // console.log('接诊评估', receiverTreatmentAccess)
916 916
             this.receiverTreatmentAccess = receiverTreatmentAccess
917 917
             var dialysisway = response.data.data.dialysisway
918
-            // console.log('透析处方2', dialysisway)
918
+            console.log('透析处方', dialysisway)
919 919
             this.target_ultrafiltration = dialysisway.target_ultrafiltration
920 920
             var order = response.data.data.order
921 921
             // console.log('上下机', order)
@@ -947,17 +947,16 @@
947 947
             // console.log('上次透后体重', afterWeightLast.weight_after)
948 948
             this.afterWeightLast = afterWeightLast.weight_after
949 949
             // eslint-disable-next-line no-undef
950
-            // console.log('透前体重', this.weight_before)
951
-            // console.log('干体中', this.dry_weight)
952
-            // console.log('什么体重', predialysis.additional_weight)
953
-            var dryWeight_add = this.weight_before - this.dry_weight - predialysis.additional_weight
950
+            console.log('透前体重', this.weight_before)
951
+            console.log('干体中', this.dry_weight)
952
+            console.log('衣物重', predialysis.additional_weight)
953
+
954
+            var dryWeight_add = this.weight_before - this.afterWeightLast
954 955
             if (this.afterWeightLast === 0) {
955 956
               this.dryWeight_add = 0
956 957
             } else {
957 958
               this.dryWeight_add = dryWeight_add.toFixed(2)
958 959
             }
959
-            // console.log('较干体中增加量', this.dryWeight_add)
960
-            // this.afterWeightLast = afterWeightLast.weight_after
961 960
             this.prescription.mode = this.modeName(this.prescription.mode_id)
962 961
             var rwLen = this.replacementWays.length
963 962
             this.prescription.replacement = ''
@@ -1249,7 +1248,7 @@
1249 1248
       this.replacementWays = this.$store.getters.replacement_ways
1250 1249
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1251 1250
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1252
-
1251
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1253 1252
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1254 1253
 
1255 1254
       var bloodAccessParOpera = getDataConfig(

+ 2 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue Bestand weergeven

@@ -538,7 +538,8 @@
538 538
               </div>
539 539
               <div class="row" style="padding: 2px 0;line-height:19px;">
540 540
                 <div class="inline_block">
541
-                  透析器及血路管凝血情况: &emsp;动脉管道:
541
+                  透析器及血路管凝血情况:
542
+                  &emsp;动脉管道:
542 543
                   <check-box text="0" :checked="afterdialysis.arterial_tube == 1?true:false"></check-box>
543 544
                   <check-box text="+" :checked="afterdialysis.arterial_tube == 2?true:false"></check-box>
544 545
                   <check-box text="++" :checked="afterdialysis.arterial_tube == 3?true:false"></check-box>