소스 검색

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx 4 년 전
부모
커밋
29b26fd399

+ 13 - 0
src/api/print_data.js 파일 보기

@@ -9,3 +9,16 @@ export function GetBatchPrintDialysisData(sch_ids) {
9 9
     }
10 10
   })
11 11
 }
12
+
13
+export function getLastAfterWeight(id, assmentdate) {
14
+  const params = {
15
+    id: id,
16
+    assmentdate: assmentdate
17
+  }
18
+  return request({
19
+    url: '/api/print/getlastafterweight',
20
+    method: 'get',
21
+    params: params
22
+  })
23
+}
24
+

+ 181 - 170
src/router/modules/dialysis.js 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1865 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue


+ 362 - 288
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue 파일 보기

@@ -13,11 +13,11 @@
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>
20
-              <div class="order-title">{{ orgname }}血液透析(滤过)记录表单</div>
20
+              <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析(滤过)记录表单</div>
21 21
 
22 22
 
23 23
               <table class="print-table" style="margin-top: 10px;" border="1">
@@ -29,25 +29,35 @@
29 29
                 <tr>
30 30
                   <td>
31 31
                     <div style="display:flex;">
32
-                     <span style="flex:1;text-align:left;margin-left:15px;">
33
-                       姓名: {{ record.patient.name }}</span>
32
+                     <span style="flex:1;text-align:left;margin-left:15px;"> 姓名: {{ record.patient.name }}</span>
34 33
                       <span style="flex:1;margin-left:15px;">
35
-                         年龄:{{ getAge(record.patient) }}</span>
34
+                         年龄:{{ getAge(record.patient) }}
35
+                      </span>
36 36
                       <span style="flex:1;margin-left:15px;">
37
-                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}</span>
37
+                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}
38
+                      </span>
38 39
                       <span style="flex:1;margin-left:15px;">
39
-                         透析机号:{{ record.patient.dialysis_no }}</span>
40
+                         透析机号: {{
41
+                            record.dialysis_order &&
42
+                            record.dialysis_order.device_number &&
43
+                            record.dialysis_order.device_number.number.length >
44
+                              0
45
+                              ? record.dialysis_order.device_number.number
46
+                              : record.device_number.number
47
+                          }}
48
+                      </span>
40 49
                       <span style="flex:1;margin-left:15px;">第({{
41 50
                             record.patient.total_dialysis
42
-                              ? record.patient.total_dialysis
51
+                              ? record.patient.total_dialysis + 1
43 52
                               : "/"
44
-                          }})次透析</span>
53
+                          }})次透析
54
+                      </span>
45 55
                     </div>
46 56
                   </td>
47 57
                 </tr>
48 58
                 <tr>
49 59
                   <td style="text-align:left;">
50
-                    <span style="display:inline-block;margin-left:15px;">上机前病情:</span>
60
+                    <span style="display:inline-block;margin-left:15px;"> 上机前病情:</span>
51 61
                     <div style="display:inline-block;">
52 62
                       <label-box
53 63
                         :isChecked="record.receive_assessment.consciousness == 1 ? true : false"
@@ -76,7 +86,7 @@
76 86
               <table class="print-table" border="1">
77 87
                 <tr>
78 88
                   <td style="text-align:left;">
79
-                    <span style="display:inline-block;margin-left:15px;">治疗方式:</span>
89
+                    <span style="display:inline-block;margin-left:15px;"> 治疗方式:</span>
80 90
                     <label-box
81 91
                       :isChecked="record.prescription.mode_id == 1 ? true : false"
82 92
                       showValue="HD"
@@ -162,37 +172,74 @@
162 172
               <table class="print-table" border="1">
163 173
                 <tr>
164 174
                   <td style="text-align:left;">
165
-                    <span style="display:inline-block;margin-left:15px;">处方脱水量:{{record.prescription.target_ultrafiltration}}ml</span>&nbsp;
166
-                    <span style="display:inline-block;margin-left:15px;">透析液流量:{{record.prescription.dialysate_flow}}ml/h</span>&nbsp;
167
-                    <span style="display:inline-block;margin-left:15px;">血流量:{{record.prescription.blood_flow_volume}}ml/min</span>&nbsp;
175
+                    <span style="display:inline-block;margin-left:15px;"> 处方脱水量:{{record.prescription.target_ultrafiltration}}ml</span>&nbsp;
176
+                    <span style="display:inline-block;margin-left:15px;"> 透析液流量:{{record.prescription.dialysate_flow}}ml/h</span>&nbsp;      
168 177
                   </td>
169 178
                   <td>
170
-                    <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
+                          />  
171 214
                   </td>
172 215
                 </tr>
173 216
               </table>
174 217
               <table class="print-table" border="1">
175 218
                 <tr>
176
-                  <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
177
-                  >透析机:{{record.device_number.number}}</span</td>
178
-                  <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
179
-                  >透析(滤)器:{{record.prescription.dialyzer_perfusion_apparatus}}</span</td>
219
+                  <td style="text-align:left;">
220
+                  <span style="display:inline-block;margin-left:15px;"
221
+                  >透析机:{{record.device_number.number}}
222
+                  </span>
180 223
                   </td>
181 224
                   <td style="text-align:left;">
182
-                    <span style="display:inline-block;margin-left:15px;">透析液(mmol/L):</span>
225
+                  <span style="display:inline-block;margin-left:15px;">透析(滤)器:{{record.prescription.dialyzer_perfusion_apparatus}}</span></td>
226
+                  </td>
227
+                  <td style="text-align:left;">
228
+                    <span style="display:inline-block;margin-left:15px;"> 透析液(mmol/L):</span>
183 229
                      <span v-if="record.prescription.dialysate_formulation == 1">
184
-                     常规低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
185
-                  </span>
230
+                     常规低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
231
+                    </span>
232
+
186 233
                     <span v-if="record.prescription.dialysate_formulation == 2">低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
187
-                      </span>
234
+                    </span>
188 235
                     <span v-if="record.prescription.dialysate_formulation == 3">
189
-                        高钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
236
+                        高钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
190 237
                      </span>
191 238
                     <span v-if="record.prescription.dialysate_formulation == 4">
192
-                         低钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
193
-                      </span>
239
+                         低钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
240
+                    </span>
194 241
                     <span v-if="record.prescription.dialysate_formulation == 5">
195
-                         高钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
242
+                         高钠(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
196 243
                      </span>
197 244
                   </td>
198 245
                 </tr>
@@ -200,9 +247,7 @@
200 247
               <table class="print-table" border="1">
201 248
                 <tr>
202 249
                   <td style="text-align:left;">
203
-              <span style="display:inline-block;margin-left:15px;"
204
-              >血管通路:</span
205
-              >
250
+              <span style="display:inline-block;margin-left:15px;">血管通路:</span>
206 251
                     &nbsp;
207 252
                     <label-box
208 253
                       :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name == '内瘘' ? true : false"
@@ -226,8 +271,34 @@
226 271
                     ></label-box>
227 272
                     &nbsp;
228 273
                     <label-box
229
-                      :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 !='内瘘' && record.assessment_before_dislysis.blood_access_part_opera_name !='临时股静脉导管'  ? true : false" showValue="其它"></label-box>
230
-                    &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{getName(record.dialysis_order.puncture_nurse)}}</span>
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>
275
+                    &nbsp;&nbsp;&nbsp;&nbsp;
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
+                          />
301
+                  
231 302
                   </td>
232 303
                 </tr>
233 304
                 <tr>
@@ -239,23 +310,22 @@
239 310
                   <th rowspan="2" width="40">时间</th>
240 311
                   <th colspan="3">透析参数</th>
241 312
                   <th colspan="6">生命体征</th>
242
-                  <th>病情变化及处理</th>
313
+                  <th>治疗中病情变化</th>
243 314
                 </tr>
244 315
                 <tr>
245
-                  <td width="60">TMP<br/>(mmHg)</td>
246
-                  <td width="60">静脉压<br/>(mmHg)</td>
247
-                  <td width="60">血流量<br/>(ml/min)</td>
248
-                  <td width="60">脱水量<br/>(ml)</td>
249
-                  <td width="50">T<br/>(℃)</td>
250
-                  <td width="50">HR<br/>(bpm)</td>
251
-                  <td width="50">R<br/>(bpm)</td>
252
-                  <td width="50">BP<br/>(mmHg)</td>
253
-                  <td width="60">SpO₂<br/>(%)</td>
316
+                  <td width="60"><p style="height:20px;line-height:20px">TMP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
317
+                  <td width="60"><p style="height:20px;line-height:20px">静脉压</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
318
+                  <td width="60"><p style="height:20px;line-height:20px">血流量</p><p style="height:20px;line-height:20px">(ml/min)</p></td>
319
+                  <td width="60"><p style="height:20px;line-height:20px">脱水量</p><p style="height:20px;line-height:20px">(ml)</p></td>
320
+                  <td width="50"><p style="height:20px;line-height:20px">T</p><p style="height:20px;line-height:20px">(℃)</p></td>
321
+                  <td width="50"><p style="height:20px;line-height:20px">HR</p><p style="height:20px;line-height:20px">(bpm)</p></td>
322
+                  <td width="50"><p style="height:20px;line-height:20px">R</p><p style="height:20px;line-height:20px">(bpm)</p></td>
323
+                  <td width="60"><p style="height:20px;line-height:20px">BP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
324
+                  <td width="60"><p style="height:20px;line-height:20px">SpO₂</p><p style="height:20px;line-height:20px">(%)</p></td>
254 325
                   <td>记录</td>
255 326
                 </tr>
256
-                <tr v-for="(monitor,
257
-                          index) in record.monitor_records"
258
-                    :key="index">
327
+                <tr v-for="(monitor,monitor_index) in record.monitor_records"
328
+                    :key="monitor.id" style="height:30px">
259 329
                   <td>{{ getTime(monitor.operate_time, '{h}:{i}') }}</td>
260 330
                   <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
261 331
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
@@ -281,10 +351,36 @@
281 351
                   </td>
282 352
                   <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
283 353
                   <td style="line-height:16px;padding:0px;">
284
-                    {{ monitor.end }}
285
-                    {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
354
+                  
355
+                    {{ monitor.symptom }}&nbsp;{{ monitor.result }}
286 356
                   </td>
287 357
                 </tr>
358
+                <tr
359
+                    v-for="(monitor_record,
360
+                          indexTwo) in record.monitor_records2"
361
+                          :key="monitor_record.id"
362
+                        >
363
+                          <td></td>
364
+                          <td></td>
365
+                          <td></td>
366
+                          <td></td>
367
+                          <td></td>
368
+                          <td></td>
369
+                          <td></td>
370
+                          <td></td>
371
+                          <td></td>
372
+                          <td></td>
373
+                          <td style="line-height:16px;padding:0px;">
374
+                            <div
375
+                              style="height:40px;line-height:20px; overflow:hidden;"
376
+                            >
377
+                              <span
378
+                                style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"
379
+                              >
380
+                              </span>
381
+                            </div>
382
+                          </td>
383
+                        </tr>
288 384
               </table>
289 385
               <table class="print-table" border="1">
290 386
                 <tr>
@@ -293,72 +389,93 @@
293 389
                   <td>执行</td>
294 390
                   <td>核对</td>
295 391
                   <td>上次透后体重</td>
296
-                  <td> {{
297
-                            record.assessment_before_dislysis &&
298
-                            record.assessment_before_dislysis
299
-                              .weight_after_last_transparency
300
-                              ? parseFloat(
301
-                                  record.assessment_before_dislysis
302
-                                    .weight_after_last_transparency -
303
-                                    record.assessment_before_dislysis
304
-                                      .additional_weight
392
+                  <td>
393
+                    {{
394
+                         record.lastafterweight.weight_after 
395
+                            ? parseFloat(
396
+                                  record.lastafterweight.weight_after
305 397
                                 ).toFixed(1)
306 398
                               : "未称重"
307
-                          }}kg</td>
399
+                          }}kg
400
+                  </td>
308 401
                 </tr>
309
-                <tr v-for="(advice, advice_index) in record.advices"
310
-                    :key="advice_index">
311
-                  <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
312
-                  <td>
313
-                    <span v-if="advice.parent_id > 0">---></span>
314
-                    <span>{{ advice.advice_name }}</span>
315
-                    <span v-if="advice && advice.advice_desc"
316
-                    >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
317
-                    <span v-if="advice.prescribing_number">
318
-                       &nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}</span>
319
-                    <span v-if="advice.single_dose != 0">
320
-                          {{ advice.single_dose}}{{ advice.single_dose_unit }}</span>
321
-                    <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
322
-                    <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
323
-                    <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
324
-                  <td>
325
-
326
-
327
-
328 402
 
403
+                
329 404
 
405
+                <tr v-for="(advice, advice_index) in record.advices"
406
+                    :key="advices.id">
407
+                  <td> {{ getTime(advice[0].start_time, "{h}:{i}") }}</td>
408
+                 
409
+                  <td>
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>
426
+                    </td>
330 427
 
428
+                  <td>
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
+                            />
448
+                    </td>
331 449
 
332
-                <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getName(advice.advice_doctor) }}</span>
333
-                    <img
334
-                      style="height:20px;"
335
-                      :src="setAdminUserES(advice.advice_doctor)"
336
-                      alt=""
337
-                      srcset=""
338
-                      v-else
339
-                    />
340
-                  </td>
341 450
                   <td>
342
-                   <span
343
-                     v-if="setAdminUserES(advice.execution_staff) == ''">{{ getName(advice.execution_staff) }}</span>
344
-                    <img
345
-                      style="height:20px;"
346
-                      :src="setAdminUserES(advice.execution_staff)"
347
-                      alt=""
348
-                      srcset=""
349
-                      v-else
350
-                    />
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>
351 464
                   </td>
352 465
                   <td v-if="advice_index==0">透前体重</td>
353 466
                   <td v-if="advice_index==0">{{record.assessment_before_dislysis.weight_before}}kg</td>
354 467
                   <td v-if="advice_index==1">体重增加量</td>
355
-                  <td v-if="advice_index==1">{{record.assessment_before_dislysis.weight_gain}}kg</td>
468
+                  <td v-if="advice_index==1">
469
+                  <span>{{(record.assessment_before_dislysis.weight_before - record.lastafterweight.weight_after).toFixed(1)}}kg</span>
470
+               
471
+                  </td>
356 472
                   <td v-if="advice_index==2">干体重(DW)</td>
357 473
                   <td v-if="advice_index==2">{{record.assessment_before_dislysis.dry_weight}}kg</td>
358 474
                   <td v-if="advice_index==3">较干体重增加量</td>
359
-                  <td v-if="advice_index==3">{{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight - record.assessment_before_dislysis.additional_weight).toFixed(1)}}kg</td>
475
+                  <td v-if="advice_index==3">
476
+                  <span>{{(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.dry_weight - record.assessment_before_dislysis.additional_weight).toFixed(2)}}</span>kg</td>
360 477
                   <td v-if="advice_index==4">净脱水量</td>
361
-                  <td v-if="advice_index==4">{{record.assessment_after_dislysis.actual_ultrafiltration}}ml</td>
478
+                  <td v-if="advice_index==4">{{record.assessment_after_dislysis.actual_ultrafiltration}}L</td>
362 479
                   <td v-if="advice_index==5">透后体重</td>
363 480
                   <td v-if="advice_index==5">{{record.assessment_after_dislysis.weight_after}}kg</td>
364 481
                   <td v-if="advice_index==6">本次透析体重下降量</td>
@@ -371,66 +488,66 @@
371 488
                 </tr>
372 489
                 <tr>
373 490
                   <td colspan="6" style="text-align:left;">
374
-                    医生签名:<template
491
+                    医生签名: <span
375 492
                             v-if="
376
-                              record.prescription &&
377
-                                record.prescription.prescription_doctor
493
+                              !record.advices ||
494
+                                typeof record.advices[0] == 'undefined' ||
495
+                                typeof record.advices[0][0] == 'undefined'
378 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
379 511
                           >
380
-                            <span
381
-                              v-if="
382
-                                setAdminUserES(
383
-                                  record.prescription.prescription_doctor
384
-                                ) == ''
385
-                              "
386
-                              >{{
387
-                                getName(
388
-                                  record.prescription.prescription_doctor
389
-                                )
390
-                              }}</span
391
-                            >
392
-                            <img
393
-                              style="height:20px;"
394
-                              :src="
395
-                                setAdminUserES(
396
-                                  record.prescription.prescription_doctor
397
-                                )
398
-                              "
399
-                              alt=""
400
-                              srcset=""
401
-                              v-else
402
-                            />
403
-                          </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;               
404 525
                     护士签名:
405 526
                     <span
406
-                          v-if="
527
+                            v-if="
407 528
                               setAdminUserES(
408
-                                record.dialysis_order == null
409
-                                  ? 0
410
-                                  : record.dialysis_order.puncture_nurse
529
+                                record.dialysis_order,
530
+                                'start_nurse'
411 531
                               ) == ''
412 532
                             "
413 533
                             >{{
414
-                              getName(
415
-                                record.dialysis_order == null
416
-                                  ? 0
417
-                                  : record.dialysis_order.puncture_nurse
418
-                              )
534
+                              getAdminUser(record.dialysis_order, "start_nurse")
419 535
                             }}</span
420 536
                           >
421 537
                           <img
422
-                            style="height:20px;"
538
+                            class="es-img"
423 539
                             :src="
424 540
                               setAdminUserES(
425
-                                record.dialysis_order == null
426
-                                  ? 0
427
-                                  : record.dialysis_order.puncture_nurse
541
+                                record.dialysis_order,
542
+                                'start_nurse'
428 543
                               )
429 544
                             "
430 545
                             alt=""
431 546
                             srcset=""
432 547
                             v-else
548
+                            style="height: 20px;"
433 549
                           />
550
+                  
434 551
                   </td>
435 552
                 </tr>
436 553
               </table>
@@ -445,13 +562,13 @@
445 562
 <script>
446 563
   import CheckBox from './option_check_box'
447 564
   import LabelBox from '../printItem/LabelBox'
448
-  import { GetBatchPrintDialysisData } from '@/api/print_data'
565
+  import { GetBatchPrintDialysisData, getLastAfterWeight } from '@/api/print_data'
449 566
   import { jsGetAge, uParseTime } from '@/utils/tools'
450 567
   import { getDataConfig } from '@/utils/data'
451 568
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
452 569
   import print from 'print-js'
453 570
 export default {
454
-    name: 'BatchPrintOrderSix',
571
+    name: 'BatchPrintOrderSeven',
455 572
     components: {
456 573
       CheckBox,
457 574
       BreadCrumb,
@@ -504,12 +621,39 @@ export default {
504 621
           '腹痛'
505 622
         ],
506 623
         allName: [],
507
-        NameStatus: 0
624
+        NameStatus: 0,
625
+        advices: [],
626
+        docotorId: '',
627
+        doctorNameForm: {
628
+          user_name: '',
629
+          url: ''
630
+        },
631
+        doctorNameFormTwo: {
632
+          user_name: '',
633
+          url: ''
634
+        },
635
+        doctorNameFormThree: {
636
+          user_name: '',
637
+          url: ''
638
+        },
639
+        doctorNameFormFour: {
640
+          user_name: '',
641
+          url: ''
642
+        },
643
+        doctorNameFormFive: {
644
+          user_name: '',
645
+          url: ''
646
+        },
647
+        doctorNameFormSix: {
648
+          user_name: '',
649
+          url: ''
650
+        },
651
+        lastAfterWeight: ''
508 652
       }
509 653
     },
510 654
     created() {
511 655
       var xtuser = this.$store.getters.xt_user
512
-      console.log('xtuser', xtuser)
656
+      // console.log('xtuser', xtuser)
513 657
       this.orgname = xtuser.org.org_name
514 658
       //   this.orgname = "遂溪方济医院";
515 659
       this.modeOptions = this.$store.getters.treatment_mode
@@ -559,132 +703,55 @@ export default {
559 703
         .then(rs => {
560 704
           var resp = rs.data
561 705
           if (resp.state == 1) {
562
-            console.log('数据', resp.data.schedules)
706
+            this.org_template_info = resp.data.templateInfo
707
+
563 708
             this.records = this.records.concat(resp.data.schedules)
564
-            console.log('this', this.records)
565
-            for (const recordIndex in this.records) {
566
-              this.advice_groups = []
567
-              this.advice_groups_2 = []
568
-              var dlegh = 0
569
-              if (
570
-                (this.records[recordIndex].assessment_before_dislysis &&
571
-                  this.records[recordIndex].assessment_before_dislysis
572
-                    .systolic_blood_pressure != 0 &&
573
-                  this.records[recordIndex].assessment_before_dislysis
574
-                    .diastolic_blood_pressure != 0) ||
575
-                (this.records[recordIndex].assessment_before_dislysis &&
576
-                  this.records[recordIndex].assessment_before_dislysis.remark
577
-                    .length > 0) ||
578
-                (this.records[recordIndex].assessment_before_dislysis &&
579
-                  this.records[recordIndex].assessment_before_dislysis
580
-                    .pulse_frequency != 0) ||
581
-                (this.records[recordIndex].assessment_before_dislysis &&
582
-                  this.records[recordIndex].assessment_before_dislysis
583
-                    .breathing_rate != 0) ||
584
-                (this.records[recordIndex].assessment_before_dislysis &&
585
-                  this.records[recordIndex].assessment_before_dislysis
586
-                    .temperature != 0)
587
-              ) {
588
-                var nl = 6
589
-                this.records[recordIndex].print_length = 8
590
-                if (this.records[recordIndex].length > 8) {
591
-                  this.records[recordIndex].classname = 'margin-bottom-900'
592
-                } else {
593
-                  this.records[recordIndex].classname = 'margin-bottom-300'
594
-                }
595
-              } else {
596
-                var nl = 6
597
-                this.records[recordIndex].print_length = 9
598
-                if (this.records[recordIndex].length > 9) {
599
-                  this.records[recordIndex].classname = 'margin-bottom-900'
600
-                } else {
601
-                  this.records[recordIndex].classname = 'margin-bottom-300'
602
-                }
603
-              }
604
-              if (
605
-                this.records[recordIndex].assessment_before_dislysis &&
606
-                this.records[recordIndex].assessment_before_dislysis
607
-                  .blood_access_part_opera_id
608
-              ) {
609
-                this.records[
610
-                  recordIndex
611
-                ].assessment_before_dislysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
612
-                  this.records[recordIndex].assessment_before_dislysis
613
-                    .blood_access_part_opera_id
614
-                )
615
-              }
616 709
 
617
-              if (recordIndex == this.records.length - 1) {
618
-                this.records[recordIndex].classname = ' '
619
-              }
710
+            console.log('记录', this.records)
620 711
 
621
-              this.records[recordIndex].monitor_records2 = []
712
+            for (const recordIndex in this.records) {
713
+              var dlegh = 0
622 714
               if (
623 715
                 this.records[recordIndex].monitor_records &&
624
-                this.records[recordIndex].monitor_records.length < 7
716
+              this.records[recordIndex].monitor_records.length < 8
625 717
               ) {
626
-                dlegh = nl - this.records[recordIndex].monitor_records.length
627
-              }
628
-              if (this.records[recordIndex].monitor_records.length <= 0) {
629
-                dlegh = nl
718
+                dlegh = 8 - this.records[recordIndex].monitor_records.length
719
+              } else {
720
+                dlegh = 0
630 721
               }
631 722
               if (dlegh > 0) {
632 723
                 if (
633 724
                   typeof this.records[recordIndex].monitor_records ===
634 725
                   'undefined' ||
635
-                  this.records[recordIndex].monitor_records == null
726
+                this.records[recordIndex].monitor_records == null
636 727
                 ) {
637 728
                   this.records[recordIndex].monitor_records = []
638 729
                 }
639 730
                 for (let index = 0; index < dlegh; index++) {
640
-                  this.records[recordIndex].monitor_records2.push([])
731
+                  this.records[recordIndex].monitor_records.push([])
641 732
                 }
642 733
               }
643 734
 
644
-              var tempmonitorflag = true
645
-              for (
646
-                let index = 0;
647
-                index < this.records[recordIndex].monitor_records.length;
648
-                index++
649
-              ) {
650
-                const monitor = this.records[recordIndex].monitor_records[index]
651
-                this.records[recordIndex].monitor_records[index].end = ''
652
-                if (Object.keys(monitor).length > 0 && index > 1) {
653
-                  if (
654
-                    monitor.operate_time ==
655
-                    this.records[recordIndex].dialysis_order.end_time
656
-                  ) {
657
-                    this.records[recordIndex].monitor_records[index].end =
658
-                      '【结束透析】'
659
-                    tempmonitorflag = false
660
-                  }
661
-                  if (
662
-                    tempmonitorflag &&
663
-                    index == this.records[recordIndex].monitor_records.length - 1
664
-                  ) {
665
-                    this.records[recordIndex].monitor_records[index].end =
666
-                      '【结束透析】'
667
-                  }
668
-                }
735
+              this.records[recordIndex].isShowZero = false
736
+              if (this.records[recordIndex].patient.user_org_id == 9535) {
737
+                this.records[recordIndex].isShowZero = true
669 738
               }
670 739
 
671
-              this.monitor_records = this.records[recordIndex].monitor_records
672
-
673
-              // this.records[recordIndex].monitor_records2 = []
674
-              // if (this.records[recordIndex].monitor_records.length > 13){
675
-              //   const tempMonitors = []
676
-              //   const tempMonitors2 = []
677
-
678
-              //   for (let index = 0; index < this.records[recordIndex].monitor_records.length; index++) {
679
-              //     if (index < 13) {
680
-              //       tempMonitors.push(this.records[recordIndex].monitor_records[index])
681
-              //     } else {
682
-              //       tempMonitors2.push(this.records[recordIndex].monitor_records[index])
683
-              //     }
684
-              //   }
685
-              // this.records[recordIndex].monitor_records = tempMonitors
686
-              // this.records[recordIndex].monitor_records2 = tempMonitors2
687
-              // }
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
+              }
688 755
 
689 756
               var childMap = {}
690 757
               for (const index in this.records[recordIndex].advices) {
@@ -719,38 +786,39 @@ export default {
719 786
                 advices.push(item)
720 787
               }
721 788
 
722
-              this.doctor_advices =
723
-                this.records[recordIndex].advices == null
724
-                  ? []
725
-                  : this.records[recordIndex].advices
726
-              for (let index = 0; index < this.doctor_advices.length; index++) {
727
-                this.doctor_advices[index]['isShow'] = 2
728
-              }
729
-
730
-              if (this.doctor_advices.length <= 7) {
731
-                var nl = 7
732
-                this.print_length = 7
789
+              var leftAdvice = []
790
+              var rightAdvice = []
791
+              var adlen = advices.length
733 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
803
+                for (let index = 0; index < nl; index++) {
804
+                  leftAdvice.push([])
805
+                }
806
+                var nl = 5 - rightAdvice.length
734 807
                 for (let index = 0; index < nl; index++) {
735
-                  if (
736
-                    this.doctor_advices[index] == undefined ||
737
-                    this.doctor_advices[index].length <= 0
738
-                  ) {
739
-                    this.doctor_advices.push([{ advice_doctor: 0 }])
740
-                  } else {
741
-                    continue
742
-                  }
808
+                  rightAdvice.push([])
743 809
                 }
744 810
               }
745
-              this.records[recordIndex].advices = []
746
-              this.records[recordIndex].advices2 = []
747
-              this.records[recordIndex].advices = this.doctor_advices
748
-              this.records[recordIndex].advices2 = this.advice_groups_2
749 811
 
750
-              this.records[recordIndex].totallength =
751
-                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
+              }
752 819
             }
753 820
 
821
+            console.log(' this.records[recordIndex].advices', this.records)
754 822
             this.operators = resp.data.medical_staffs
755 823
             if (this.operators.length > 0) {
756 824
               var operatorsLen = this.operators.length
@@ -764,10 +832,6 @@ export default {
764 832
             }
765 833
 
766 834
             this.adminUser = resp.data.users
767
-            console.log('使用者', this.adminUser)
768
-            var name = resp.data.name
769
-            console.log('姓名', name)
770
-            this.allName = name
771 835
             this.loading = false
772 836
           } else {
773 837
             this.loading = false
@@ -777,7 +841,7 @@ export default {
777 841
         .catch(err => {
778 842
           this.$message.error(err)
779 843
         })
780
-    },
844
+  },
781 845
     methods: {
782 846
       getUnit: function(val) {
783 847
         if (val.assessment_after_dislysis == null) {
@@ -922,29 +986,29 @@ export default {
922 986
         }
923 987
       },
924 988
       getAdminUser(key, id) {
925
-        if (
926
-          typeof key === 'undefined' ||
927
-          key == null ||
928
-          typeof key[id] === 'undefined'
929
-        ) {
989
+        // console.log('key', key)
990
+        // console.log('id', id)
991
+        if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
930 992
           return ''
931 993
         }
932
-        if (key[id] == 0) {
994
+        if (key[id] === 0) {
933 995
           return ''
934 996
         }
935
-        if (key[id] == undefined) {
997
+        if (key[id] === undefined) {
936 998
           return ''
937 999
         }
938 1000
         for (let i = 0; i < this.adminUser.length; i++) {
939
-          if (this.adminUser[i].id == key[id]) {
1001
+          if (this.adminUser[i].id === key[id]) {
940 1002
             return this.adminUser[i].name
941 1003
           }
942 1004
         }
943 1005
       },
1006
+  
944 1007
       getName(id) {
945
-        for (let i = 0; i < this.allName.length; i++) {
946
-          if (this.allName[i].id === id) {
947
-            return this.allName[i].name
1008
+        // console.log('签名', this.operatorMaps)
1009
+        for (let i = 0; i < this.adminUser.length; i++) {
1010
+          if (this.adminUser[i].id === id) {
1011
+            return this.adminUser[i].name
948 1012
           }
949 1013
         }
950 1014
       },
@@ -990,6 +1054,16 @@ export default {
990 1054
       },
991 1055
       getNumber: function(record) {
992 1056
         console.log(record)
1057
+      },
1058
+      getLastAfterWeight(id, assessmentDate) {
1059
+        getLastAfterWeight(id, assessmentDate).then(response => {
1060
+          if (response.data.state === 1) {
1061
+            var weight = response.data.data.weight
1062
+  
1063
+            this.lastAfterWeight = weight.weight_after.toFixed(1)
1064
+            console.log('weight', weight)
1065
+          }
1066
+        })
993 1067
       }
994 1068
     }
995 1069
   }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2077 - 986
src/xt_pages/dialysis/batch_print/batch_print_order_three.vue


+ 12 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue 파일 보기

@@ -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 파일 보기

@@ -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>

+ 25 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 파일 보기

@@ -113,6 +113,16 @@
113 113
           >打印</el-button
114 114
         >
115 115
       </template>
116
+      <template v-if="org_template_info.template_id == 8">
117
+        <el-button
118
+          :loading="loading"
119
+          size="small"
120
+          icon="el-icon-printer"
121
+          @click="printThisPage"
122
+          type="primary"
123
+          >打印</el-button
124
+        >
125
+      </template>
116 126
     </div>
117 127
     <div class="app-container ">
118 128
       <!--<div class="order-print-btn"-->
@@ -168,6 +178,12 @@
168 178
         v-if="org_template_info.template_id == 7"
169 179
       >
170 180
       </DialysisPrintOrderSeven>
181
+
182
+      <DialysisPrintOrderEight
183
+        v-bind:childResponse="childResponse"
184
+        v-if="org_template_info.template_id == 8"
185
+      >
186
+      </DialysisPrintOrderEight>
171 187
     </div>
172 188
   </div>
173 189
 </template>
@@ -185,6 +201,7 @@ import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
185 201
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
186 202
 import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
187 203
 import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
204
+import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
188 205
 import print from "print-js";
189 206
 
190 207
 export default {
@@ -197,6 +214,7 @@ export default {
197 214
     DialysisPrintOrderFive,
198 215
     DialysisPrintOrderSix,
199 216
     DialysisPrintOrderSeven,
217
+    DialysisPrintOrderEight,
200 218
     LabelBox,
201 219
     BreadCrumb
202 220
   },
@@ -379,6 +397,13 @@ export default {
379 397
           style: style,
380 398
           scanStyles: false
381 399
         });
400
+      } else if (this.org_template_info.template_id == 8) {
401
+        printJS({
402
+          printable: "dialysis-print-box",
403
+          type: "html",
404
+          style: style,
405
+          scanStyles: false
406
+        });
382 407
       }
383 408
     },
384 409
     printThisOnePage() {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1739 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


+ 111 - 101
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue 파일 보기

@@ -2,7 +2,7 @@
2 2
   <div id="dialysis-print-box">
3 3
     <div class="dialysis-print-order">
4 4
       <div class="order-yy-name"></div>
5
-      <div class="order-title">{{ orgname }}血液透析(滤过)记录表单</div>
5
+      <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液透析(滤过)记录表单</div>
6 6
 
7 7
       <table class="print-table" style="margin-top: 10px;" border="1">
8 8
         <tbody>
@@ -23,7 +23,13 @@
23 23
                   >性别:{{ patientInfo.gender }}</span
24 24
                 >
25 25
                 <span style="flex:1;margin-left:15px;"
26
-                  >透析机号:{{ patientInfo.dialysis_no }}</span
26
+                  >透析机号: {{
27
+                        dialysisOrder &&
28
+                        dialysisOrder.DeviceNumber &&
29
+                        dialysisOrder.DeviceNumber.number.length > 0
30
+                          ? dialysisOrder.DeviceNumber.number
31
+                          : patientInfo.DialysisSchedule.device_number.number
32
+                      }}</span
27 33
                 >
28 34
                 <span style="flex:1;margin-left:15px;">第({{total}})次透析</span>
29 35
               </div>
@@ -158,12 +164,15 @@
158 164
             <span style="display:inline-block;margin-left:15px;"
159 165
               >透析液流量:{{dialysate_flow}}ml/h</span
160 166
             >&nbsp;
161
-            <span style="display:inline-block;margin-left:15px;"
162
-              >血流量:{{blood_flow_volume}}ml/min</span
163
-            >&nbsp;
164 167
           </td>
165 168
           <td>
166
-            <span>医生签名:{{doctor}}</span>
169
+             <span v-if="doctorForm.url === ''">
170
+             医生签名:{{doctorForm.doctor}}
171
+           </span>
172
+           <span v-if="doctorForm.url!==''">
173
+              医生签名:
174
+              <img style="height:20px" :src="doctorForm.url">
175
+           </span>
167 176
           </td>
168 177
         </tr>
169 178
       </table>
@@ -179,19 +188,19 @@
179 188
               >透析液(mmol/L):</span
180 189
             >
181 190
             <span v-if="dialysate_formulation == 1">
182
-              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
191
+              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183 192
             </span>
184 193
             <span v-if="dialysate_formulation == 2">
185
-              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
194
+              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
186 195
             </span>
187 196
              <span v-if="dialysate_formulation == 3">
188
-              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
197
+              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
189 198
             </span>
190 199
              <span v-if="dialysate_formulation == 4">
191
-              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
200
+              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
192 201
             </span>
193 202
              <span v-if="dialysate_formulation == 5">
194
-              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
203
+              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
195 204
             </span>
196 205
          </td>
197 206
         </tr>
@@ -229,7 +238,9 @@
229 238
               :isChecked="blood_access_part_opera_id != '内瘘' && blood_access_part_opera_id != '长期静脉导管' && blood_access_part_opera_id !='临时颈静脉导管' && blood_access_part_opera_id != '临时股静脉导管'? true : false"
230 239
               showValue="其它"
231 240
             ></label-box>
232
-            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}</span>
241
+            &nbsp;&nbsp;&nbsp;&nbsp;
242
+            <span v-if="PunctureNurse.url == ''">穿刺者:{{PunctureNurse.user_name}}</span>
243
+           <span v-if="PunctureNurse.url !=''">穿刺者:<img :src="PunctureNurse.url" style="height:20px"></span>
233 244
           </td>
234 245
         </tr>
235 246
         <tr>
@@ -241,34 +252,34 @@
241 252
           <th rowspan="2">时间</th>
242 253
           <th colspan="3">透析参数</th>
243 254
           <th colspan="6">生命体征</th>
244
-          <th>病情变化及处理</th>
255
+          <th>治疗中病情变化</th>
245 256
          </tr>
246 257
          <tr>
247
-          <td width="60">TMP<br/>(mmHg)</td>
248
-          <td width="60">静脉压<br/>(mmHg)</td>
249
-          <td width="60">血流量<br/>(ml/min)</td>
250
-          <td width="60">脱水量<br/>(ml)</td>
251
-          <td width="50">T<br/>(℃)</td>
252
-          <td width="50">HR<br/>(bpm)</td>
253
-          <td width="50">R<br/>(bpm)</td>
254
-          <td width="60">BP<br/>(mmHg)</td>
255
-          <td width="60">SpO₂<br/>(%)</td>
258
+          <td width="60"><p style="height:20px;line-height:20px">TMP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
259
+          <td width="60"><p style="height:20px;line-height:20px">静脉压</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
260
+          <td width="60"><p style="height:20px;line-height:20px">血流量</p><p style="height:20px;line-height:20px">(ml/min)</p></td>
261
+          <td width="60"><p style="height:20px;line-height:20px">脱水量</p><p style="height:20px;line-height:20px">(ml)</p></td>
262
+          <td width="50"><p style="height:20px;line-height:20px">T</p><p style="height:20px;line-height:20px">(℃)</p></td>
263
+          <td width="50"><p style="height:20px;line-height:20px">HR</p><p style="height:20px;line-height:20px">(bpm)</p></td>
264
+          <td width="50"><p style="height:20px;line-height:20px">R</p><p style="height:20px;line-height:20px">(bpm)</p></td>
265
+          <td width="60"><p style="height:20px;line-height:20px">BP</p><p style="height:20px;line-height:20px">(mmHg)</p></td>
266
+          <td width="60"><p style="height:20px;line-height:20px">SpO₂</p><p style="height:20px;line-height:20px">(%)</p></td>
256 267
           <td>记录</td>
257 268
          </tr>
258
-         <tr v-for="(monitor, monindex) in this.monitor" :key="monindex">
259
-           <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
260
-           <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:""}}</td>
261
-           <td>{{monitor.venous_pressure?monitor.venous_pressure:""}}</td>
262
-           <td>{{monitor.blood_flow_volume ? monitor.blood_flow_volume:""}}</td>
263
-           <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:""}}</td>
264
-           <td> {{
269
+         <tr v-for="(monitor, monindex) in monitors" :key="monindex">
270
+           <td style="line-height:50px;height:30px">{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
271
+           <td style="line-height:50px;height:30px">{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:""}}</td>
272
+           <td style="line-height:50px;height:30px">{{monitor.venous_pressure?monitor.venous_pressure:""}}</td>
273
+           <td style="line-height:50px;height:30px">{{monitor.blood_flow_volume ? monitor.blood_flow_volume:""}}</td>
274
+           <td style="line-height:50px:height:30px">{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:""}}</td>
275
+           <td style="line-height:50px;height:30px"> {{
265 276
                  monitor.temperature
266 277
                 ? monitor.temperature
267 278
                 : ""
268 279
                 }}</td>
269
-           <td>{{monitor.pulse_frequency?monitor.pulse_frequency:""}}</td>
270
-           <td>{{monitor.breathing_rate?monitor.breathing_rate:""}}</td>
271
-           <td>{{
280
+           <td style="line-height:50px;height:30px">{{monitor.pulse_frequency?monitor.pulse_frequency:""}}</td>
281
+           <td style="line-height:50px;height:30px">{{monitor.breathing_rate?monitor.breathing_rate:""}}</td>
282
+           <td style="line-height:50px;height:30px">{{
272 283
                 monitor.systolic_blood_pressure
273 284
                 ? monitor.systolic_blood_pressure + "/"
274 285
                 : ""
@@ -277,10 +288,10 @@
277 288
               ? monitor.diastolic_blood_pressure
278 289
               : ""
279 290
               }}</td>
280
-           <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
291
+           <td style="line-height:50px;height:30px">{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
281 292
            <td style="line-height:16px;padding:0px;">
282 293
               {{ monitor.end }}
283
-              {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
294
+              {{ monitor.symptom }} &nbsp;{{ monitor.result }}
284 295
             </td>
285 296
          </tr>
286 297
       </table>
@@ -292,12 +303,8 @@
292 303
          <td>核对</td>
293 304
          <td>上次透后体重</td>
294 305
          <td> {{
295
-                predialysis.weight_after_last_transparency
296
-                ? parseFloat(
297
-                 predialysis.weight_after_last_transparency -
298
-                 predialysis.additional_weight
299
-                  ).toFixed(1)
300
-                 : "未称重"
306
+               afterWeightLast
307
+                ? parseFloat(afterWeightLast).toFixed(1): "未称重"
301 308
               }}kg</td>
302 309
         </tr>
303 310
         <tr  v-for="(advice, advice_index) in tableAdvice"
@@ -316,41 +323,34 @@
316 323
                         <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
317 324
                         <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
318 325
                <td>
319
-              <span
320
-               v-if="setAdminUserES(advice.advice_doctor) == ''"
321
-               >{{ getAdminUser(advice.advice_doctor) }}</span
322
-               >
323
-              <img
324
-               style="height:20px;"
325
-               :src="setAdminUserES(advice.advice_doctor)"
326
-               alt=""
327
-              srcset=""
328
-              v-else
329
-            />
326
+               <span
327
+                    v-if="setAdminUserES(advice.execution_staff) == ''"
328
+                   >{{ getAdminUser(advice.execution_staff) }}</span
329
+                        >
330
+                        <img
331
+                          style="height:20px;"
332
+                          :src="setAdminUserES(advice.execution_staff)"
333
+                          alt=""
334
+                          srcset=""
335
+                          v-else
336
+                        />
330 337
          </td>
331 338
          <td>
332
-           <span
333
-               v-if="setAdminUserES(advice.execution_staff) == ''"
334
-               >{{ getAdminUser(advice.execution_staff) }}</span
335
-               >
336
-              <img
337
-               style="height:20px;"
338
-               :src="setAdminUserES(advice.execution_staff)"
339
-               alt=""
340
-              srcset=""
341
-              v-else
342
-            />
339
+           <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
340
+            <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
343 341
          </td>
344 342
          <td v-if="advice_index==0">透前体重</td>
345 343
          <td v-if="advice_index==0">{{weight_before}}kg</td>
346 344
          <td v-if="advice_index==1">体重增加量</td>
347
-         <td v-if="advice_index==1">{{(dryWeight_add).toFixed(2)}}kg</td>
345
+         <td v-if="advice_index==1">
346
+             {{dryWeight_add?dryWeight_add:0}}
347
+         kg</td>
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).toFixed(2)}}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
-         <td v-if="advice_index==4">{{actual_ultrafiltration}}ml</td>
353
+         <td v-if="advice_index==4">{{actual_ultrafiltration}}L</td>
354 354
          <td v-if="advice_index==5">透后体重</td>
355 355
          <td v-if="advice_index==5">{{weight_after}}kg</td>
356 356
          <td v-if="advice_index==6">本次透析体重下降量</td>
@@ -366,10 +366,10 @@
366 366
         <tr>
367 367
           <td style="text-align:left;">
368 368
            <span v-if="doctorForm.url === ''">
369
-             医签名:{{doctorForm.doctor}}
369
+             医签名:{{doctorForm.doctor}}
370 370
            </span>
371 371
            <span v-if="doctorForm.url!==''">
372
-              医签名:
372
+              医签名:
373 373
               <img style="height:20px" :src="doctorForm.url">
374 374
            </span>
375 375
            &nbsp;&nbsp;&nbsp;&nbsp;
@@ -547,8 +547,13 @@
547 547
         venous_catheterization: '',
548 548
         blood_access_part_opera_id: '',
549 549
         dryWeight_add: '',
550
+        weight_add_dry: '',
550 551
         weight: '',
551
-        vascularId: 0
552
+        vascularId: 0,
553
+        PunctureNurse: {
554
+          user_name: '',
555
+          url: ''
556
+        }
552 557
 
553 558
       }
554 559
   },
@@ -647,7 +652,7 @@
647 652
         return name
648 653
       },
649 654
       setAdminUserES(id) {
650
-        console.log(id)
655
+        // console.log(id)
651 656
         if (id == 0) {
652 657
           return ''
653 658
         }
@@ -671,6 +676,7 @@
671 676
             this.adminUser = response.data.data.users
672 677
             this.users = response.data.data.users
673 678
             var patientInfo = response.data.data.patientInfo
679
+            // console.log('patientInfo', patientInfo)
674 680
             if (patientInfo.gender === 1) {
675 681
               patientInfo.gender = '男'
676 682
             }
@@ -678,7 +684,7 @@
678 684
               patientInfo.gender = '女'
679 685
             }
680 686
             this.patientInfo = response.data.data.patientInfo
681
-            console.log('透析记录', this.patientInfo)
687
+            // console.log('透析记录', this.patientInfo)
682 688
 
683 689
             this.patientInfo.birth = uParseTime(
684 690
               this.patientInfo.birthday,
@@ -697,35 +703,35 @@
697 703
             var predialysis = response.data.data.PredialysisEvaluation
698 704
             var predialysName = response.data.data.predialysName
699 705
             this.blood_access_part_opera_id = predialysName.name
700
-            console.log('血管', predialysName)
706
+            // console.log('血管', predialysName)
701 707
             this.weight_before = predialysis.weight_before
702 708
             this.dry_weight = predialysis.dry_weight
703 709
             this.weight_gain = predialysis.weight_gain
704 710
             this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
705 711
             this.venous_catheterization = predialysis.venous_catheterization
706 712
             // this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
707
-            console.log('血管通路', this.blood_access_part_opera_id)
713
+            // console.log('血管通路', this.blood_access_part_opera_id)
708 714
             var arry = []
709 715
             arry = getDataConfig('hemodialysis', 'vascular_access_desc')
710
-            console.log('arry', arry)
716
+            // console.log('arry', arry)
711 717
             // eslint-disable-next-line no-empty
712 718
             var id = 0
713 719
             for (let i = 0; i < arry.length; i++) {
714
-              console.log(arry[i].id)
720
+              // console.log(arry[i].id)
715 721
               if (arry[i].id === predialysis.blood_access_part_opera_id) {
716 722
                 id = predialysis.blood_access_part_opera_id
717 723
               }
718 724
               this.vascularId = id
719 725
             }
720 726
             this.predialysis = predialysis
721
-            console.log('透前评估', this.predialysis)
727
+            // console.log('透前评估', this.predialysis)
722 728
 
723 729
             this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
724 730
               this.predialysis.blood_access_part_opera_id
725 731
             )
726 732
             var afterdialysis = response.data.data.AssessmentAfterDislysis
727 733
             // eslint-disable-next-line no-undef
728
-            console.log('透后评估', afterdialysis)
734
+            // console.log('透后评估', afterdialysis)
729 735
             this.weight_after = afterdialysis.weight_after
730 736
             this.weightloss_after = afterdialysis.weight_after
731 737
             this.temperature = afterdialysis.temperature
@@ -738,7 +744,7 @@
738 744
             var doctoradvce = response.data.data.doctorAdvice
739 745
             var doctorAdevieInfo = response.data.data.doctorAdevieInfo
740 746
             var tableAdvice = doctorAdevieInfo
741
-            console.log('医生', tableAdvice.length)
747
+            // console.log('医生', tableAdvice.length)
742 748
             if (tableAdvice.length === 0) {
743 749
               var obj = { 'advice_name': '', start_time: '' }
744 750
               var obj1 = { 'advice_name': '', start_time: '' }
@@ -770,7 +776,6 @@
770 776
               tableAdvice.push(obj4)
771 777
               tableAdvice.push(obj5)
772 778
               this.tableAdvice = tableAdvice
773
-              console.log('零食医嘱', doctorAdevieInfo)
774 779
             }
775 780
             if (tableAdvice.length === 2) {
776 781
               var obj = { 'advice_name': '', start_time: '' }
@@ -784,7 +789,7 @@
784 789
               tableAdvice.push(obj3)
785 790
               tableAdvice.push(obj4)
786 791
               this.tableAdvice = tableAdvice
787
-              console.log('零食医嘱', doctorAdevieInfo)
792
+             
788 793
             }
789 794
             if (tableAdvice.length === 3) {
790 795
               var obj = { 'advice_name': '', start_time: '' }
@@ -798,7 +803,7 @@
798 803
               tableAdvice.push(obj3)
799 804
 
800 805
               this.tableAdvice = tableAdvice
801
-              console.log('零食医嘱', doctorAdevieInfo)
806
+              
802 807
             }
803 808
             if (tableAdvice.length === 4) {
804 809
               var obj = { 'advice_name': '', start_time: '' }
@@ -809,7 +814,7 @@
809 814
               tableAdvice.push(obj1)
810 815
               tableAdvice.push(obj2)
811 816
               this.tableAdvice = tableAdvice
812
-              console.log('零食医嘱', doctorAdevieInfo)
817
+             
813 818
             }
814 819
             if (tableAdvice.length === 5) {
815 820
               var obj = { 'advice_name': '', start_time: '' }
@@ -823,21 +828,20 @@
823 828
               var obj = { 'advice_name': '', start_time: '' }
824 829
               tableAdvice.push(obj)
825 830
               this.tableAdvice = tableAdvice
826
-              console.log('零食医嘱', doctorAdevieInfo)
831
+              // console.log('零食医嘱', doctorAdevieInfo)
827 832
             }
828 833
             if (tableAdvice.length >= 7) {
829 834
               this.tableAdvice = tableAdvice
830 835
             }
831 836
             var doctor = response.data.data.doctor
832 837
             this.doctor = doctor.user_name
833
-            console.log('医生', doctor)
834
-            var nurse = response.data.data.nurse
835
-            this.nurse = nurse.user_name
836
-            console.log('穿刺护士', nurse)
838
+            // console.log('医生', doctor)
839
+            this.PunctureNurse = response.data.data.nurse
840
+            // console.log('穿刺护士', this.PunctureNurse)
837 841
             var operators = response.data.data.operators
838
-            console.log('operators', operators)
842
+            // console.log('operators', operators)
839 843
             var total = response.data.data.total
840
-            console.log('total', total)
844
+            // console.log('total', total)
841 845
             this.total = total
842 846
             this.operators = operators
843 847
             this.dialysisOrder =
@@ -908,10 +912,10 @@
908 912
             // console.log('排班', schedule)
909 913
             this.schedule = schedule
910 914
             var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
911
-            console.log('接诊评估', receiverTreatmentAccess)
915
+            // console.log('接诊评估', receiverTreatmentAccess)
912 916
             this.receiverTreatmentAccess = receiverTreatmentAccess
913 917
             var dialysisway = response.data.data.dialysisway
914
-            console.log('透析处方2', dialysisway)
918
+            console.log('透析处方', dialysisway)
915 919
             this.target_ultrafiltration = dialysisway.target_ultrafiltration
916 920
             var order = response.data.data.order
917 921
             // console.log('上下机', order)
@@ -940,14 +944,19 @@
940 944
             this.calcium = dialysisway.calcium
941 945
             this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
942 946
             var afterWeightLast = response.data.data.assessmentAfterDislysis
943
-            // console.log('上次透后体重', afterWeightLast)
947
+            // console.log('上次透后体重', afterWeightLast.weight_after)
948
+            this.afterWeightLast = afterWeightLast.weight_after
944 949
             // eslint-disable-next-line no-undef
945 950
             console.log('透前体重', this.weight_before)
946 951
             console.log('干体中', this.dry_weight)
947
-            console.log('什么体重', predialysis.additional_weight)
948
-            this.dryWeight_add = this.weight_before - this.dry_weight - predialysis.additional_weight
949
-            console.log('较干体中增加量', this.dryWeight_add)
950
-            this.afterWeightLast = afterWeightLast.weight_after
952
+            console.log('衣物重', predialysis.additional_weight)
953
+
954
+            var dryWeight_add = this.weight_before - this.afterWeightLast
955
+            if (this.afterWeightLast === 0) {
956
+              this.dryWeight_add = 0
957
+            } else {
958
+              this.dryWeight_add = dryWeight_add.toFixed(2)
959
+            }
951 960
             this.prescription.mode = this.modeName(this.prescription.mode_id)
952 961
             var rwLen = this.replacementWays.length
953 962
             this.prescription.replacement = ''
@@ -995,16 +1004,17 @@
995 1004
             this.advices = response.data.data.advices
996 1005
 
997 1006
             var monitor = response.data.data.monitor
1007
+            // console.log('透析监测', monitor)
998 1008
             this.monitor = monitor
999
-            console.log('monitor', monitor)
1009
+            // console.log('monitor', monitor)
1000 1010
             this.monitors = response.data.data.monitors
1001
-
1011
+            // console.log('透析监测', this.monitors)
1002 1012
             var summary = response.data.data.summary
1003
-            console.log('透析小结', summary)
1013
+            // console.log('透析小结', summary)
1004 1014
             this.mission = summary.mission
1005 1015
             this.dialysis_summary = summary.dialysis_summary
1006 1016
             this.org_template_info = response.data.data.org_template_info
1007
-            if (this.monitors.length < 8) {
1017
+            if (this.monitors.length < 7) {
1008 1018
               var nl = 8 - this.monitors.length
1009 1019
               for (let index = 0; index < nl; index++) {
1010 1020
                 this.monitors.push([])
@@ -1241,7 +1251,7 @@
1241 1251
       this.replacementWays = this.$store.getters.replacement_ways
1242 1252
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1243 1253
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1244
-
1254
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1245 1255
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1246 1256
 
1247 1257
       var bloodAccessParOpera = getDataConfig(
@@ -1286,7 +1296,7 @@
1286 1296
       this.precautions = getDataConfig('hemodialysis', 'precaution')
1287 1297
       this.intake = getDataConfig('hemodialysis', 'intake')
1288 1298
       this.nutrition = getDataConfig('hemodialysis', 'nutrition')
1289
-      console.log('nutrition', this.nutrition)
1299
+      // console.log('nutrition', this.nutrition)
1290 1300
   }
1291 1301
 }
1292 1302
 </script>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 파일 보기

@@ -2161,7 +2161,7 @@ export default {
2161 2161
 
2162 2162
         this.users = response.data.data.users;
2163 2163
         this.patientInfo = response.data.data.patientInfo;
2164
-
2164
+       
2165 2165
         this.patientInfo.birth = uParseTime(
2166 2166
           this.patientInfo.birthday,
2167 2167
           "{y}-{m}-{d}"

+ 2 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue 파일 보기

@@ -626,7 +626,8 @@
626 626
               </div>
627 627
               <div class="row" style="padding: 2px 0;line-height:19px;">
628 628
                 <div class="inline_block">
629
-                  透析器及血路管凝血情况: &emsp;动脉管道:
629
+                  透析器及血路管凝血情况:
630
+                  &emsp;动脉管道:
630 631
                   <check-box text="0" :checked="afterdialysis.arterial_tube == 1?true:false"></check-box>
631 632
                   <check-box text="+" :checked="afterdialysis.arterial_tube == 2?true:false"></check-box>
632 633
                   <check-box text="++" :checked="afterdialysis.arterial_tube == 3?true:false"></check-box>