ソースを参照

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

csx 4 年 前
コミット
29b26fd399

+ 13 - 0
src/api/print_data.js ファイルの表示

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
     icon: 'touxi'
11
     icon: 'touxi'
12
   },
12
   },
13
   children: [{
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
     // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
44
     // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
45
     // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
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
           <el-radio v-model="radio" label="7" @change="change">模版四</el-radio>
67
           <el-radio v-model="radio" label="7" @change="change">模版四</el-radio>
68
         </el-col>
68
         </el-col>
69
       </el-row>
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
     </div>
84
     </div>
71
     </div>
85
     </div>
72
   </div>
86
   </div>

+ 233 - 230
src/xt_pages/dialysis/batch_print/batch_print_order.vue ファイルの表示

20
         >
20
         >
21
           <div class="order-yy-name">{{ orgname }}</div>
21
           <div class="order-yy-name">{{ orgname }}</div>
22
           <div class="order_title">
22
           <div class="order_title">
23
-            血液净化治疗记录单
23
+            血液净化治疗记录单2
24
           </div>
24
           </div>
25
           <div class="row" style="margin-top: 15px;">
25
           <div class="row" style="margin-top: 15px;">
26
             <div class="inline_block">
26
             <div class="inline_block">
106
                           "
106
                           "
107
                         ></check-box>
107
                         ></check-box>
108
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
117
                         <!--&gt;</check-box>-->
118
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
127
                         <!--&gt;</check-box>-->
128
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
137
                         <!--&gt;</check-box>-->
138
                       </div>
138
                       </div>
139
                       <div class="inline_block" style="margin-left: 15px;">
139
                       <div class="inline_block" style="margin-left: 15px;">
140
                         意识:
140
                         意识:
141
                         <check-box
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
                           :text="item.name"
144
                           :text="item.name"
144
-
145
                           :checked="
145
                           :checked="
146
                             isCheckBoxChecked(
146
                             isCheckBoxChecked(
147
                               record.receive_assessment,
147
                               record.receive_assessment,
151
                           "
151
                           "
152
                         ></check-box>
152
                         ></check-box>
153
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
162
                         <!--&gt;</check-box>-->
163
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
172
                         <!--&gt;</check-box>-->
173
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
182
                         <!--&gt;</check-box>-->
183
                       </div>
183
                       </div>
184
                       <div class="inline_block" style="margin-left: 30px;">
184
                       <div class="inline_block" style="margin-left: 30px;">
197
                       <div class="inline_block">
197
                       <div class="inline_block">
198
                         体位:
198
                         体位:
199
                         <check-box
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
                           :text="item.name"
202
                           :text="item.name"
202
                           :checked="
203
                           :checked="
203
                             isCheckBoxChecked(
204
                             isCheckBoxChecked(
208
                           "
209
                           "
209
                         ></check-box>
210
                         ></check-box>
210
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
220
                         <!--&gt;</check-box>-->
220
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
230
                         <!--&gt;</check-box>-->
230
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
240
                         <!--&gt;</check-box>-->
240
                         <!--<check-box-->
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
                         <!--&gt;</check-box>-->
250
                         <!--&gt;</check-box>-->
250
                       </div>
251
                       </div>
251
                     </div>
252
                     </div>
1866
 </template>
1867
 </template>
1867
 
1868
 
1868
 <script>
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
 export default {
1876
 export default {
1876
-  name: 'BatchPrintOrder',
1877
+  name: "BatchPrintOrder",
1877
   components: {
1878
   components: {
1878
     CheckBox,
1879
     CheckBox,
1879
     BreadCrumb
1880
     BreadCrumb
1881
   data() {
1882
   data() {
1882
     return {
1883
     return {
1883
       crumbs: [
1884
       crumbs: [
1884
-        { path: false, name: '透析管理' },
1885
-        { path: false, name: '批量打印' }
1885
+        { path: false, name: "透析管理" },
1886
+        { path: false, name: "批量打印" }
1886
       ],
1887
       ],
1887
       records: [
1888
       records: [
1888
         // 模拟有多条数据
1889
         // 模拟有多条数据
1906
       nutrition_arr: [],
1907
       nutrition_arr: [],
1907
 
1908
 
1908
       loading: false,
1909
       loading: false,
1909
-      orgname: '',
1910
+      orgname: "",
1910
       org_template_info: {},
1911
       org_template_info: {},
1911
 
1912
 
1912
       bloodAccessParOpera: {},
1913
       bloodAccessParOpera: {},
1916
       operators: [],
1917
       operators: [],
1917
       adminUser: [],
1918
       adminUser: [],
1918
       complications: [
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
   created() {
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
     //   this.orgname = "遂溪方济医院";
1936
     //   this.orgname = "遂溪方济医院";
1936
-    this.modeOptions = this.$store.getters.treatment_mode
1937
+    this.modeOptions = this.$store.getters.treatment_mode;
1937
     //   this.replacementWays = this.$store.getters.replacement_ways;
1938
     //   this.replacementWays = this.$store.getters.replacement_ways;
1938
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
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
     var bloodAccessParOpera = getDataConfig(
1951
     var bloodAccessParOpera = getDataConfig(
1952
-      'hemodialysis',
1953
-      'vascular_access_desc'
1954
-    )
1952
+      "hemodialysis",
1953
+      "vascular_access_desc"
1954
+    );
1955
     for (var key in bloodAccessParOpera) {
1955
     for (var key in bloodAccessParOpera) {
1956
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1956
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1957
-        bloodAccessParOpera[key]
1957
+        bloodAccessParOpera[key];
1958
     }
1958
     }
1959
 
1959
 
1960
     var dialysateFormulationOptions = getDataConfig(
1960
     var dialysateFormulationOptions = getDataConfig(
1961
-      'hemodialysis',
1962
-      'dialysate_formulation'
1963
-    )
1961
+      "hemodialysis",
1962
+      "dialysate_formulation"
1963
+    );
1964
     for (var key in dialysateFormulationOptions) {
1964
     for (var key in dialysateFormulationOptions) {
1965
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1965
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1966
-        dialysateFormulationOptions[key]
1966
+        dialysateFormulationOptions[key];
1967
     }
1967
     }
1968
 
1968
 
1969
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
1969
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
1978
     //   }
1978
     //   }
1979
   },
1979
   },
1980
   mounted() {
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
     if (ids.length == 0) {
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
       .then(rs => {
1988
       .then(rs => {
1989
-        var resp = rs.data
1989
+        var resp = rs.data;
1990
         if (resp.state == 1) {
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
           for (const recordIndex in this.records) {
1997
           for (const recordIndex in this.records) {
1995
-            var dlegh = 0
1998
+            var dlegh = 0;
1996
             if (
1999
             if (
1997
               this.records[recordIndex].monitor_records &&
2000
               this.records[recordIndex].monitor_records &&
1998
               this.records[recordIndex].monitor_records.length < 8
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
             } else {
2004
             } else {
2002
-              dlegh = 0
2005
+              dlegh = 0;
2003
             }
2006
             }
2004
             if (dlegh > 0) {
2007
             if (dlegh > 0) {
2005
               if (
2008
               if (
2006
                 typeof this.records[recordIndex].monitor_records ===
2009
                 typeof this.records[recordIndex].monitor_records ===
2007
-                  'undefined' ||
2010
+                  "undefined" ||
2008
                 this.records[recordIndex].monitor_records == null
2011
                 this.records[recordIndex].monitor_records == null
2009
               ) {
2012
               ) {
2010
-                this.records[recordIndex].monitor_records = []
2013
+                this.records[recordIndex].monitor_records = [];
2011
               }
2014
               }
2012
               for (let index = 0; index < dlegh; index++) {
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
             if (this.records[recordIndex].patient.user_org_id == 9535) {
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
             for (const index in this.records[recordIndex].advices) {
2026
             for (const index in this.records[recordIndex].advices) {
2024
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2027
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2025
-                continue
2028
+                continue;
2026
               }
2029
               }
2027
               if (
2030
               if (
2028
                 !(
2031
                 !(
2031
               ) {
2034
               ) {
2032
                 childMap[
2035
                 childMap[
2033
                   this.records[recordIndex].advices[index].parent_id
2036
                   this.records[recordIndex].advices[index].parent_id
2034
-                ] = []
2037
+                ] = [];
2035
               }
2038
               }
2036
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2039
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2037
                 this.records[recordIndex].advices[index]
2040
                 this.records[recordIndex].advices[index]
2038
-              )
2041
+              );
2039
             }
2042
             }
2040
 
2043
 
2041
-            var advices = []
2044
+            var advices = [];
2042
             for (const index in this.records[recordIndex].advices) {
2045
             for (const index in this.records[recordIndex].advices) {
2043
               if (this.records[recordIndex].advices[index].parent_id > 0) {
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
               if (item.id in childMap) {
2050
               if (item.id in childMap) {
2048
-                item.children = childMap[item.id]
2051
+                item.children = childMap[item.id];
2049
               } else {
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
             for (var i = 0; i < halfLen; i++) {
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
               rightAdvice.push(
2066
               rightAdvice.push(
2064
                 rightIndex in advices ? advices[i + halfLen] : []
2067
                 rightIndex in advices ? advices[i + halfLen] : []
2065
-              )
2068
+              );
2066
             }
2069
             }
2067
             if (halfLen < 5) {
2070
             if (halfLen < 5) {
2068
-              var nl = 5 - leftAdvice.length
2071
+              var nl = 5 - leftAdvice.length;
2069
               for (let index = 0; index < nl; index++) {
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
               for (let index = 0; index < nl; index++) {
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
             for (var i = 0; i < halfLen; i++) {
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
           if (this.operators.length > 0) {
2092
           if (this.operators.length > 0) {
2090
-            var operatorsLen = this.operators.length
2093
+            var operatorsLen = this.operators.length;
2091
             for (var index = 0; index < operatorsLen; index++) {
2094
             for (var index = 0; index < operatorsLen; index++) {
2092
               this.$set(
2095
               this.$set(
2093
                 this.operatorMaps,
2096
                 this.operatorMaps,
2094
                 this.operators[index].id,
2097
                 this.operators[index].id,
2095
                 this.operators[index]
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
         } else {
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
       .catch(err => {
2110
       .catch(err => {
2108
-        this.$message.error(err)
2109
-      })
2111
+        this.$message.error(err);
2112
+      });
2110
   },
2113
   },
2111
   methods: {
2114
   methods: {
2112
     getAge: function(val) {
2115
     getAge: function(val) {
2113
-      val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
2116
+      val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
2114
       if (
2117
       if (
2115
         this.org_template_info.template_id == 2 ||
2118
         this.org_template_info.template_id == 2 ||
2116
         this.org_template_info.template_id == 0
2119
         this.org_template_info.template_id == 0
2117
       ) {
2120
       ) {
2118
         if (val.age == 0) {
2121
         if (val.age == 0) {
2119
-          return jsGetAge(val.birth, '-')
2122
+          return jsGetAge(val.birth, "-");
2120
         } else {
2123
         } else {
2121
-          return val.age
2124
+          return val.age;
2122
         }
2125
         }
2123
       } else {
2126
       } else {
2124
-        return jsGetAge(val.birth, '-')
2127
+        return jsGetAge(val.birth, "-");
2125
       }
2128
       }
2126
     },
2129
     },
2127
     printAction: function() {
2130
     printAction: function() {
2128
       const style =
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
       printJS({
2134
       printJS({
2132
-        printable: 'print_content',
2133
-        type: 'html',
2134
-        documentTitle: '  ',
2135
+        printable: "print_content",
2136
+        type: "html",
2137
+        documentTitle: "  ",
2135
         style: style,
2138
         style: style,
2136
         scanStyles: false
2139
         scanStyles: false
2137
-      })
2140
+      });
2138
     },
2141
     },
2139
 
2142
 
2140
     complicationsOther: function(record) {
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
       if (record.complication.length == 0) {
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
       for (const index in complications) {
2152
       for (const index in complications) {
2150
         if (
2153
         if (
2151
           this.complications.indexOf(complications[index]) < 0 &&
2154
           this.complications.indexOf(complications[index]) < 0 &&
2152
           complicationOthers.indexOf(complications[index]) < 0
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
     modeName(mode_id) {
2162
     modeName(mode_id) {
2160
       if (mode_id in this.modeOptions) {
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
     anticoagulantName: function(key) {
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
       if (id in this.anticoagulantsConfit) {
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
     isBbloodAccessParOperaCheck(key, value) {
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
       if (id in this.bloodAccessParOpera) {
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
     isdialysateFormulatioCheck(key, value) {
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
       if (id in this.dialysateFormulationOptions) {
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
     isValueIndexOfCheck: function(record, key, value) {
2198
     isValueIndexOfCheck: function(record, key, value) {
2196
       if (record == null || record == undefined) {
2199
       if (record == null || record == undefined) {
2197
-        return false
2200
+        return false;
2198
       } else {
2201
       } else {
2199
-        return record[key].indexOf(value) > -1
2202
+        return record[key].indexOf(value) > -1;
2200
       }
2203
       }
2201
     },
2204
     },
2202
     setAdminUserES(key, id) {
2205
     setAdminUserES(key, id) {
2203
       if (
2206
       if (
2204
-        typeof key === 'undefined' ||
2207
+        typeof key === "undefined" ||
2205
         key == null ||
2208
         key == null ||
2206
-        typeof key[id] === 'undefined'
2209
+        typeof key[id] === "undefined"
2207
       ) {
2210
       ) {
2208
-        return ''
2211
+        return "";
2209
       }
2212
       }
2210
       if (key[id] == 0) {
2213
       if (key[id] == 0) {
2211
-        return ''
2214
+        return "";
2212
       }
2215
       }
2213
       if (key[id] in this.operatorMaps) {
2216
       if (key[id] in this.operatorMaps) {
2214
-        return this.operatorMaps[key[id]].es_url
2217
+        return this.operatorMaps[key[id]].es_url;
2215
       } else {
2218
       } else {
2216
-        return ''
2219
+        return "";
2217
       }
2220
       }
2218
     },
2221
     },
2219
     getAdminUser(key, id) {
2222
     getAdminUser(key, id) {
2220
       if (
2223
       if (
2221
-        typeof key === 'undefined' ||
2224
+        typeof key === "undefined" ||
2222
         key == null ||
2225
         key == null ||
2223
-        typeof key[id] === 'undefined'
2226
+        typeof key[id] === "undefined"
2224
       ) {
2227
       ) {
2225
-        return ''
2228
+        return "";
2226
       }
2229
       }
2227
       if (key[id] == 0) {
2230
       if (key[id] == 0) {
2228
-        return ''
2231
+        return "";
2229
       }
2232
       }
2230
       if (key[id] == undefined) {
2233
       if (key[id] == undefined) {
2231
-        return ''
2234
+        return "";
2232
       }
2235
       }
2233
       for (let i = 0; i < this.adminUser.length; i++) {
2236
       for (let i = 0; i < this.adminUser.length; i++) {
2234
         if (this.adminUser[i].id == key[id]) {
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
     getTime(value, temp) {
2242
     getTime(value, temp) {
2240
       if (value != undefined) {
2243
       if (value != undefined) {
2241
-        return uParseTime(value, temp)
2244
+        return uParseTime(value, temp);
2242
       }
2245
       }
2243
-      return ''
2246
+      return "";
2244
     },
2247
     },
2245
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2248
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2246
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2249
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2247
     isCheckBoxChecked: function(record, key, target_value) {
2250
     isCheckBoxChecked: function(record, key, target_value) {
2248
       if (record == null || record == undefined) {
2251
       if (record == null || record == undefined) {
2249
-        return false
2252
+        return false;
2250
       } else {
2253
       } else {
2251
-        return record[key] == target_value
2254
+        return record[key] == target_value;
2252
       }
2255
       }
2253
     }
2256
     }
2254
   }
2257
   }
2255
-}
2258
+};
2256
 </script>
2259
 </script>
2257
 
2260
 
2258
 <style scoped>
2261
 <style scoped>

File diff suppressed because it is too large
+ 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
     </div>
13
     </div>
14
     <div class="app-container">
14
     <div class="app-container">
15
       <div id="print_content">
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
           <div id="dialysis-print-box">
17
           <div id="dialysis-print-box">
18
             <div class="dialysis-print-order">
18
             <div class="dialysis-print-order">
19
               <div class="order-yy-name"></div>
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
               <table class="print-table" style="margin-top: 10px;" border="1">
23
               <table class="print-table" style="margin-top: 10px;" border="1">
29
                 <tr>
29
                 <tr>
30
                   <td>
30
                   <td>
31
                     <div style="display:flex;">
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
                       <span style="flex:1;margin-left:15px;">
33
                       <span style="flex:1;margin-left:15px;">
35
-                         年龄:{{ getAge(record.patient) }}</span>
34
+                         年龄:{{ getAge(record.patient) }}
35
+                      </span>
36
                       <span style="flex:1;margin-left:15px;">
36
                       <span style="flex:1;margin-left:15px;">
37
-                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}</span>
37
+                         性别:{{ record.patient.gender == 1 ? '男' : '女' }}
38
+                      </span>
38
                       <span style="flex:1;margin-left:15px;">
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
                       <span style="flex:1;margin-left:15px;">第({{
49
                       <span style="flex:1;margin-left:15px;">第({{
41
                             record.patient.total_dialysis
50
                             record.patient.total_dialysis
42
-                              ? record.patient.total_dialysis
51
+                              ? record.patient.total_dialysis + 1
43
                               : "/"
52
                               : "/"
44
-                          }})次透析</span>
53
+                          }})次透析
54
+                      </span>
45
                     </div>
55
                     </div>
46
                   </td>
56
                   </td>
47
                 </tr>
57
                 </tr>
48
                 <tr>
58
                 <tr>
49
                   <td style="text-align:left;">
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
                     <div style="display:inline-block;">
61
                     <div style="display:inline-block;">
52
                       <label-box
62
                       <label-box
53
                         :isChecked="record.receive_assessment.consciousness == 1 ? true : false"
63
                         :isChecked="record.receive_assessment.consciousness == 1 ? true : false"
76
               <table class="print-table" border="1">
86
               <table class="print-table" border="1">
77
                 <tr>
87
                 <tr>
78
                   <td style="text-align:left;">
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
                     <label-box
90
                     <label-box
81
                       :isChecked="record.prescription.mode_id == 1 ? true : false"
91
                       :isChecked="record.prescription.mode_id == 1 ? true : false"
82
                       showValue="HD"
92
                       showValue="HD"
162
               <table class="print-table" border="1">
172
               <table class="print-table" border="1">
163
                 <tr>
173
                 <tr>
164
                   <td style="text-align:left;">
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
                   </td>
177
                   </td>
169
                   <td>
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
                   </td>
214
                   </td>
172
                 </tr>
215
                 </tr>
173
               </table>
216
               </table>
174
               <table class="print-table" border="1">
217
               <table class="print-table" border="1">
175
                 <tr>
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
                   </td>
223
                   </td>
181
                   <td style="text-align:left;">
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
                      <span v-if="record.prescription.dialysate_formulation == 1">
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
                     <span v-if="record.prescription.dialysate_formulation == 2">低钙(钾:{{record.prescription.kalium}}&nbsp;,钙:{{record.prescription.calcium}}&nbsp;,钠:{{record.prescription.sodium}};)
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
                     <span v-if="record.prescription.dialysate_formulation == 3">
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
                      </span>
237
                      </span>
191
                     <span v-if="record.prescription.dialysate_formulation == 4">
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
                     <span v-if="record.prescription.dialysate_formulation == 5">
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
                      </span>
243
                      </span>
197
                   </td>
244
                   </td>
198
                 </tr>
245
                 </tr>
200
               <table class="print-table" border="1">
247
               <table class="print-table" border="1">
201
                 <tr>
248
                 <tr>
202
                   <td style="text-align:left;">
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
                     &nbsp;
251
                     &nbsp;
207
                     <label-box
252
                     <label-box
208
                       :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name == '内瘘' ? true : false"
253
                       :isChecked="record.assessment_before_dislysis.blood_access_part_opera_name == '内瘘' ? true : false"
226
                     ></label-box>
271
                     ></label-box>
227
                     &nbsp;
272
                     &nbsp;
228
                     <label-box
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
                   </td>
302
                   </td>
232
                 </tr>
303
                 </tr>
233
                 <tr>
304
                 <tr>
239
                   <th rowspan="2" width="40">时间</th>
310
                   <th rowspan="2" width="40">时间</th>
240
                   <th colspan="3">透析参数</th>
311
                   <th colspan="3">透析参数</th>
241
                   <th colspan="6">生命体征</th>
312
                   <th colspan="6">生命体征</th>
242
-                  <th>病情变化及处理</th>
313
+                  <th>治疗中病情变化</th>
243
                 </tr>
314
                 </tr>
244
                 <tr>
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
                   <td>记录</td>
325
                   <td>记录</td>
255
                 </tr>
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
                   <td>{{ getTime(monitor.operate_time, '{h}:{i}') }}</td>
329
                   <td>{{ getTime(monitor.operate_time, '{h}:{i}') }}</td>
260
                   <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
330
                   <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
261
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
331
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}</td>
281
                   </td>
351
                   </td>
282
                   <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
352
                   <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
283
                   <td style="line-height:16px;padding:0px;">
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
                   </td>
356
                   </td>
287
                 </tr>
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
               </table>
384
               </table>
289
               <table class="print-table" border="1">
385
               <table class="print-table" border="1">
290
                 <tr>
386
                 <tr>
293
                   <td>执行</td>
389
                   <td>执行</td>
294
                   <td>核对</td>
390
                   <td>核对</td>
295
                   <td>上次透后体重</td>
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
                                 ).toFixed(1)
397
                                 ).toFixed(1)
306
                               : "未称重"
398
                               : "未称重"
307
-                          }}kg</td>
399
+                          }}kg
400
+                  </td>
308
                 </tr>
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
                   <td>
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
                   </td>
464
                   </td>
352
                   <td v-if="advice_index==0">透前体重</td>
465
                   <td v-if="advice_index==0">透前体重</td>
353
                   <td v-if="advice_index==0">{{record.assessment_before_dislysis.weight_before}}kg</td>
466
                   <td v-if="advice_index==0">{{record.assessment_before_dislysis.weight_before}}kg</td>
354
                   <td v-if="advice_index==1">体重增加量</td>
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
                   <td v-if="advice_index==2">干体重(DW)</td>
472
                   <td v-if="advice_index==2">干体重(DW)</td>
357
                   <td v-if="advice_index==2">{{record.assessment_before_dislysis.dry_weight}}kg</td>
473
                   <td v-if="advice_index==2">{{record.assessment_before_dislysis.dry_weight}}kg</td>
358
                   <td v-if="advice_index==3">较干体重增加量</td>
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
                   <td v-if="advice_index==4">净脱水量</td>
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
                   <td v-if="advice_index==5">透后体重</td>
479
                   <td v-if="advice_index==5">透后体重</td>
363
                   <td v-if="advice_index==5">{{record.assessment_after_dislysis.weight_after}}kg</td>
480
                   <td v-if="advice_index==5">{{record.assessment_after_dislysis.weight_after}}kg</td>
364
                   <td v-if="advice_index==6">本次透析体重下降量</td>
481
                   <td v-if="advice_index==6">本次透析体重下降量</td>
371
                 </tr>
488
                 </tr>
372
                 <tr>
489
                 <tr>
373
                   <td colspan="6" style="text-align:left;">
490
                   <td colspan="6" style="text-align:left;">
374
-                    医生签名:<template
491
+                    医生签名: <span
375
                             v-if="
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
                     <span
526
                     <span
406
-                          v-if="
527
+                            v-if="
407
                               setAdminUserES(
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
                             }}</span
535
                             }}</span
420
                           >
536
                           >
421
                           <img
537
                           <img
422
-                            style="height:20px;"
538
+                            class="es-img"
423
                             :src="
539
                             :src="
424
                               setAdminUserES(
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
                             alt=""
545
                             alt=""
431
                             srcset=""
546
                             srcset=""
432
                             v-else
547
                             v-else
548
+                            style="height: 20px;"
433
                           />
549
                           />
550
+                  
434
                   </td>
551
                   </td>
435
                 </tr>
552
                 </tr>
436
               </table>
553
               </table>
445
 <script>
562
 <script>
446
   import CheckBox from './option_check_box'
563
   import CheckBox from './option_check_box'
447
   import LabelBox from '../printItem/LabelBox'
564
   import LabelBox from '../printItem/LabelBox'
448
-  import { GetBatchPrintDialysisData } from '@/api/print_data'
565
+  import { GetBatchPrintDialysisData, getLastAfterWeight } from '@/api/print_data'
449
   import { jsGetAge, uParseTime } from '@/utils/tools'
566
   import { jsGetAge, uParseTime } from '@/utils/tools'
450
   import { getDataConfig } from '@/utils/data'
567
   import { getDataConfig } from '@/utils/data'
451
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
568
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
452
   import print from 'print-js'
569
   import print from 'print-js'
453
 export default {
570
 export default {
454
-    name: 'BatchPrintOrderSix',
571
+    name: 'BatchPrintOrderSeven',
455
     components: {
572
     components: {
456
       CheckBox,
573
       CheckBox,
457
       BreadCrumb,
574
       BreadCrumb,
504
           '腹痛'
621
           '腹痛'
505
         ],
622
         ],
506
         allName: [],
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
     created() {
654
     created() {
511
       var xtuser = this.$store.getters.xt_user
655
       var xtuser = this.$store.getters.xt_user
512
-      console.log('xtuser', xtuser)
656
+      // console.log('xtuser', xtuser)
513
       this.orgname = xtuser.org.org_name
657
       this.orgname = xtuser.org.org_name
514
       //   this.orgname = "遂溪方济医院";
658
       //   this.orgname = "遂溪方济医院";
515
       this.modeOptions = this.$store.getters.treatment_mode
659
       this.modeOptions = this.$store.getters.treatment_mode
559
         .then(rs => {
703
         .then(rs => {
560
           var resp = rs.data
704
           var resp = rs.data
561
           if (resp.state == 1) {
705
           if (resp.state == 1) {
562
-            console.log('数据', resp.data.schedules)
706
+            this.org_template_info = resp.data.templateInfo
707
+
563
             this.records = this.records.concat(resp.data.schedules)
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
               if (
714
               if (
623
                 this.records[recordIndex].monitor_records &&
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
               if (dlegh > 0) {
722
               if (dlegh > 0) {
632
                 if (
723
                 if (
633
                   typeof this.records[recordIndex].monitor_records ===
724
                   typeof this.records[recordIndex].monitor_records ===
634
                   'undefined' ||
725
                   'undefined' ||
635
-                  this.records[recordIndex].monitor_records == null
726
+                this.records[recordIndex].monitor_records == null
636
                 ) {
727
                 ) {
637
                   this.records[recordIndex].monitor_records = []
728
                   this.records[recordIndex].monitor_records = []
638
                 }
729
                 }
639
                 for (let index = 0; index < dlegh; index++) {
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
               var childMap = {}
756
               var childMap = {}
690
               for (const index in this.records[recordIndex].advices) {
757
               for (const index in this.records[recordIndex].advices) {
719
                 advices.push(item)
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
                 for (let index = 0; index < nl; index++) {
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
             this.operators = resp.data.medical_staffs
822
             this.operators = resp.data.medical_staffs
755
             if (this.operators.length > 0) {
823
             if (this.operators.length > 0) {
756
               var operatorsLen = this.operators.length
824
               var operatorsLen = this.operators.length
764
             }
832
             }
765
 
833
 
766
             this.adminUser = resp.data.users
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
             this.loading = false
835
             this.loading = false
772
           } else {
836
           } else {
773
             this.loading = false
837
             this.loading = false
777
         .catch(err => {
841
         .catch(err => {
778
           this.$message.error(err)
842
           this.$message.error(err)
779
         })
843
         })
780
-    },
844
+  },
781
     methods: {
845
     methods: {
782
       getUnit: function(val) {
846
       getUnit: function(val) {
783
         if (val.assessment_after_dislysis == null) {
847
         if (val.assessment_after_dislysis == null) {
922
         }
986
         }
923
       },
987
       },
924
       getAdminUser(key, id) {
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
           return ''
992
           return ''
931
         }
993
         }
932
-        if (key[id] == 0) {
994
+        if (key[id] === 0) {
933
           return ''
995
           return ''
934
         }
996
         }
935
-        if (key[id] == undefined) {
997
+        if (key[id] === undefined) {
936
           return ''
998
           return ''
937
         }
999
         }
938
         for (let i = 0; i < this.adminUser.length; i++) {
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
             return this.adminUser[i].name
1002
             return this.adminUser[i].name
941
           }
1003
           }
942
         }
1004
         }
943
       },
1005
       },
1006
+  
944
       getName(id) {
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
       },
1054
       },
991
       getNumber: function(record) {
1055
       getNumber: function(record) {
992
         console.log(record)
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
   }

File diff suppressed because it is too large
+ 2077 - 986
src/xt_pages/dialysis/batch_print/batch_print_order_three.vue


+ 12 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue ファイルの表示

110
           >批量打印</el-button
110
           >批量打印</el-button
111
         >
111
         >
112
       </template>
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
     </div>
123
     </div>
114
     <div class="app-container">
124
     <div class="app-container">
115
       <!-- <div class="filter-container">
125
       <!-- <div class="filter-container">
552
       for (let index = 0; index < this.selecting_schs.length; index++) {
562
       for (let index = 0; index < this.selecting_schs.length; index++) {
553
         sch_ids.push(this.selecting_schs[index].sch_id);
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
       this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
565
       this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
558
       if (this.template_id == 2 || this.template_id == 0) {
566
       if (this.template_id == 2 || this.template_id == 0) {
559
         this.$router.push({ path: "/dialysis/print/batch/other" });
567
         this.$router.push({ path: "/dialysis/print/batch/other" });
569
         this.$router.push({ path: "/dialysis/print/batch/six" });
577
         this.$router.push({ path: "/dialysis/print/batch/six" });
570
       } else if (this.template_id == 7) {
578
       } else if (this.template_id == 7) {
571
         this.$router.push({ path: "/dialysis/print/batch/seven" });
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
     batchPrintActionOne: function() {
584
     batchPrintActionOne: function() {

+ 2 - 1
src/xt_pages/dialysis/details/dialysisMonitoring.vue ファイルの表示

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

+ 25 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue ファイルの表示

113
           >打印</el-button
113
           >打印</el-button
114
         >
114
         >
115
       </template>
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
     </div>
126
     </div>
117
     <div class="app-container ">
127
     <div class="app-container ">
118
       <!--<div class="order-print-btn"-->
128
       <!--<div class="order-print-btn"-->
168
         v-if="org_template_info.template_id == 7"
178
         v-if="org_template_info.template_id == 7"
169
       >
179
       >
170
       </DialysisPrintOrderSeven>
180
       </DialysisPrintOrderSeven>
181
+
182
+      <DialysisPrintOrderEight
183
+        v-bind:childResponse="childResponse"
184
+        v-if="org_template_info.template_id == 8"
185
+      >
186
+      </DialysisPrintOrderEight>
171
     </div>
187
     </div>
172
   </div>
188
   </div>
173
 </template>
189
 </template>
185
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
201
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
186
 import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
202
 import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
187
 import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
203
 import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
204
+import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
188
 import print from "print-js";
205
 import print from "print-js";
189
 
206
 
190
 export default {
207
 export default {
197
     DialysisPrintOrderFive,
214
     DialysisPrintOrderFive,
198
     DialysisPrintOrderSix,
215
     DialysisPrintOrderSix,
199
     DialysisPrintOrderSeven,
216
     DialysisPrintOrderSeven,
217
+    DialysisPrintOrderEight,
200
     LabelBox,
218
     LabelBox,
201
     BreadCrumb
219
     BreadCrumb
202
   },
220
   },
379
           style: style,
397
           style: style,
380
           scanStyles: false
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
     printThisOnePage() {
409
     printThisOnePage() {

File diff suppressed because it is too large
+ 1739 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


+ 111 - 101
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue ファイルの表示

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

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue ファイルの表示

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

+ 2 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue ファイルの表示

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