Explorar el Código

月亮弯打印bug修改

XMLWAN hace 4 años
padre
commit
5966142ef6

+ 4 - 4
src/api/advice.js Ver fichero

@@ -289,10 +289,10 @@ export function PostInitAdviceTemplate(params) {
289 289
   })
290 290
 }
291 291
 
292
-export function getPrintInfo(id, params) {
292
+export function getPrintInfo(data) {
293 293
   return request({
294
-    url: '/api/advicetemplate/getprintinfo?id=' + id,
295
-    method: 'get',
296
-    params: params
294
+    url: '/api/advicetemplate/getprintinfo',
295
+    method: 'post',
296
+    data: data
297 297
   })
298 298
 }

+ 0 - 1
src/api/dialysis.js Ver fichero

@@ -137,7 +137,6 @@ export function delMonitor(params) {
137 137
 }
138 138
 
139 139
 export function getDialysisRecord(params) {
140
-  console.log('params容声哦', params)
141 140
   return request({
142 141
     url: '/api/dialysis/dialysisorder',
143 142
     method: 'Get',

+ 12 - 1
src/router/modules/dialysis.js Ver fichero

@@ -125,7 +125,18 @@ export default {
125 125
       title: '批量打印',
126 126
       noCache: true
127 127
     }
128
-  },
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
+   },
129 140
   {
130 141
     path: '/dialysis/print/batch/otherone',
131 142
     component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),

+ 2 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Ver fichero

@@ -13,6 +13,7 @@
13 13
     </div>
14 14
     <div class="app-container">
15 15
       <div id="print_content">
16
+
16 17
         <div
17 18
           v-for="(record, index) in records"
18 19
           :key="index"
@@ -2219,6 +2220,7 @@ export default {
2219 2220
           }
2220 2221
 
2221 2222
           this.adminUser = resp.data.users
2223
+          console.log("使用者",this.adminUser)
2222 2224
           this.loading = false
2223 2225
         } else {
2224 2226
           this.loading = false

+ 310 - 187
src/xt_pages/dialysis/bloodPresssWatch.vue Ver fichero

@@ -3,30 +3,112 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
       <template v-if="this.template_id == 1">
6
-        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
6
+        <el-button
7
+          size="small"
8
+          icon="el-icon-printer"
9
+          :disabled="selecting_schs.length == 0"
10
+          @click="batchPrintAction"
11
+          type="primary"
12
+          >打印</el-button
13
+        >
7 14
       </template>
8 15
       <template v-if="this.template_id == 2 || this.template_id == 0">
9
-        <div >
10
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintAction" type="primary">打印全部</el-button>
11
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionOne" type="primary" style="">打印纪录单</el-button>
12
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionTwo" type="primary">打印医嘱单</el-button>
16
+        <div>
17
+          <el-button
18
+            :loading="loading"
19
+            size="small"
20
+            icon="el-icon-printer"
21
+            @click="batchPrintAction"
22
+            type="primary"
23
+            >打印全部</el-button
24
+          >
25
+          <el-button
26
+            :loading="loading"
27
+            size="small"
28
+            icon="el-icon-printer"
29
+            @click="batchPrintActionOne"
30
+            type="primary"
31
+            style=""
32
+            >打印纪录单</el-button
33
+          >
34
+          <el-button
35
+            :loading="loading"
36
+            size="small"
37
+            icon="el-icon-printer"
38
+            @click="batchPrintActionTwo"
39
+            type="primary"
40
+            >打印医嘱单</el-button
41
+          >
13 42
         </div>
14 43
       </template>
15 44
       <template v-if="this.template_id == 3">
16
-        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
45
+        <el-button
46
+          size="small"
47
+          icon="el-icon-printer"
48
+          :disabled="selecting_schs.length == 0"
49
+          @click="batchPrintAction"
50
+          type="primary"
51
+          >打印</el-button
52
+        >
17 53
       </template>
18 54
       <template v-if="this.template_id == 4">
19
-        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
55
+        <el-button
56
+          size="small"
57
+          icon="el-icon-printer"
58
+          :disabled="selecting_schs.length == 0"
59
+          @click="batchPrintAction"
60
+          type="primary"
61
+          >打印</el-button
62
+        >
20 63
       </template>
21 64
       <template v-if="this.template_id == 5">
22
-        <div >
23
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintAction" type="primary">打印全部</el-button>
24
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionOne" type="primary" style="">打印纪录单</el-button>
25
-          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionTwo" type="primary">打印医嘱单</el-button>
65
+        <div>
66
+          <el-button
67
+            :loading="loading"
68
+            size="small"
69
+            icon="el-icon-printer"
70
+            @click="batchPrintAction"
71
+            type="primary"
72
+            >打印全部</el-button
73
+          >
74
+          <el-button
75
+            :loading="loading"
76
+            size="small"
77
+            icon="el-icon-printer"
78
+            @click="batchPrintActionOne"
79
+            type="primary"
80
+            style=""
81
+            >打印纪录单</el-button
82
+          >
83
+          <el-button
84
+            :loading="loading"
85
+            size="small"
86
+            icon="el-icon-printer"
87
+            @click="batchPrintActionTwo"
88
+            type="primary"
89
+            >打印医嘱单</el-button
90
+          >
26 91
         </div>
27 92
       </template>
28 93
       <template v-if="this.template_id == 6">
29
-        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
94
+        <el-button
95
+          size="small"
96
+          icon="el-icon-printer"
97
+          :disabled="selecting_schs.length == 0"
98
+          @click="batchPrintAction"
99
+          type="primary"
100
+          >打印</el-button
101
+        >
102
+      </template>
103
+      <template v-if="this.template_id == 7">
104
+        <el-button
105
+          size="small"
106
+          icon="el-icon-printer"
107
+          :disabled="selecting_schs.length == 0"
108
+          @click="batchPrintAction"
109
+          type="primary"
110
+          >批量打印</el-button
111
+        >
30 112
       </template>
31 113
     </div>
32 114
     <div class="app-container">
@@ -36,7 +118,10 @@
36 118
       </div>-->
37 119
       <div class="cell clearfix">
38 120
         <label class="title">
39
-          <span class="name">{{ search_mode == 1 ? "日期查询" : "病人查询" }}</span> :
121
+          <span class="name">{{
122
+            search_mode == 1 ? "日期查询" : "病人查询"
123
+          }}</span>
124
+          :
40 125
         </label>
41 126
         <el-date-picker
42 127
           v-show="search_mode == 1"
@@ -65,40 +150,39 @@
65 150
             @click="searchPatientAction"
66 151
           ></el-button>
67 152
         </el-input>
68
-        <el-button
69
-          type="primary"
70
-          @click="changeSearchMode"
71
-        >{{ search_mode == 1 ? "改为病人查询" : "改为日期查询" }}</el-button>
153
+        <el-button type="primary" @click="changeSearchMode">{{
154
+          search_mode == 1 ? "改为病人查询" : "改为日期查询"
155
+        }}</el-button>
72 156
 
73 157
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
74 158
       </div>
75 159
       <div class="cell clearfix">
76
-        <label class="title">
77
-          <span class="name">排班班次</span> :
78
-        </label>
160
+        <label class="title"> <span class="name">排班班次</span> : </label>
79 161
         <div class="time">
80 162
           <ul class>
81 163
             <li
82
-              :class="item.value==schedulType?'active':''"
164
+              :class="item.value == schedulType ? 'active' : ''"
83 165
               @click="selectSchedulType(item.value)"
84 166
               v-for="item in schedulArr"
85 167
               :key="item.value"
86
-            >{{item.label}}</li>
168
+            >
169
+              {{ item.label }}
170
+            </li>
87 171
           </ul>
88 172
         </div>
89 173
       </div>
90 174
       <div class="cell clearfix">
91
-        <label class="title">
92
-          <span class="name">分区</span> :
93
-        </label>
175
+        <label class="title"> <span class="name">分区</span> : </label>
94 176
         <div class="time">
95 177
           <ul class>
96 178
             <li
97
-              :class="item.id==partitionType?'active':''"
179
+              :class="item.id == partitionType ? 'active' : ''"
98 180
               @click="selectPartitionType(item.id)"
99 181
               v-for="item in partitionArr"
100 182
               :key="item.id"
101
-            >{{item.name}}</li>
183
+            >
184
+              {{ item.name }}
185
+            </li>
102 186
           </ul>
103 187
         </div>
104 188
       </div>
@@ -115,36 +199,73 @@
115 199
         @current-change="clickCurrent"
116 200
         @selection-change="handleSelectionChange"
117 201
       >
118
-        <el-table-column type="selection" width="45" align="center"></el-table-column>
119
-        <el-table-column prop="number" label="机号" align="center"></el-table-column>
120
-        <el-table-column label="排班日期" prop="sch_time" align="center" width="120"></el-table-column>
121
-        <el-table-column prop="dialysis_no" label="透析号" align="center"></el-table-column>
202
+        <el-table-column
203
+          type="selection"
204
+          width="45"
205
+          align="center"
206
+        ></el-table-column>
207
+        <el-table-column
208
+          prop="number"
209
+          label="机号"
210
+          align="center"
211
+        ></el-table-column>
212
+        <el-table-column
213
+          label="排班日期"
214
+          prop="sch_time"
215
+          align="center"
216
+          width="120"
217
+        ></el-table-column>
218
+        <el-table-column
219
+          prop="dialysis_no"
220
+          label="透析号"
221
+          align="center"
222
+        ></el-table-column>
122 223
         <el-table-column prop="name" label="姓名" align="center">
123 224
           <template slot-scope="scope">
124
-            <span style="color: #579ef8">{{scope.row.name}}</span>
225
+            <span style="color: #579ef8">{{ scope.row.name }}</span>
125 226
           </template>
126 227
         </el-table-column>
127 228
 
128
-        <el-table-column prop="mode_name" label="透析模式" align="center" width="100"></el-table-column>
229
+        <el-table-column
230
+          prop="mode_name"
231
+          label="透析模式"
232
+          align="center"
233
+          width="100"
234
+        ></el-table-column>
129 235
 
130
-        <el-table-column prop="dialysis_before_weight" label="透前体重(kg)" align="center" width="120"></el-table-column>
131
-        <el-table-column prop="dialysis_after_weight" label="透后体重(kg)" align="center" width="120"></el-table-column>
236
+        <el-table-column
237
+          prop="dialysis_before_weight"
238
+          label="透前体重(kg)"
239
+          align="center"
240
+          width="120"
241
+        ></el-table-column>
242
+        <el-table-column
243
+          prop="dialysis_after_weight"
244
+          label="透后体重(kg)"
245
+          align="center"
246
+          width="120"
247
+        ></el-table-column>
132 248
         <el-table-column label="透中血压(Hgmm)" align="center">
133
-          <el-table-column v-for="(item, index) in labelArr" :key="index" :label="item" align="center">
249
+          <el-table-column
250
+            v-for="(item, index) in labelArr"
251
+            :key="index"
252
+            :label="item"
253
+            align="center"
254
+          >
134 255
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
135
-            <template slot-scope="scope" >
256
+            <template slot-scope="scope">
136 257
               <!--<span>{{scope.row.bp[index].value}}</span>-->
137
-              <span>{{getValue(scope.row.bp[index])}}</span>
258
+              <span>{{ getValue(scope.row.bp[index]) }}</span>
138 259
             </template>
139 260
           </el-table-column>
140 261
         </el-table-column>
141 262
       </el-table>
142 263
 
143 264
       <el-pagination
144
-      align="right"
145
-      @size-change="handleSizeChange"
265
+        align="right"
266
+        @size-change="handleSizeChange"
146 267
         @current-change="handleCurrentChange"
147
-        :page-sizes="[10,20,30,50]"
268
+        :page-sizes="[10, 20, 30, 50]"
148 269
         :page-size="10"
149 270
         background
150 271
         style="margin-top:20px;"
@@ -155,70 +276,69 @@
155 276
   </div>
156 277
 </template>
157 278
 
158
-
159 279
 <script>
160
-import { getSchedualPatient, GetAllZone } from '@/api/dialysis'
161
-import { parseTime } from '@/utils'
162
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
163
-import { getPrintTemplate } from '@/api/data'
280
+import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
281
+import { parseTime } from "@/utils";
282
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
283
+import { getPrintTemplate } from "@/api/data";
164 284
 
165 285
 export default {
166
-  name: 'Patient',
286
+  name: "Patient",
167 287
   data() {
168 288
     return {
169 289
       crumbs: [
170
-        { path: false, name: '透析管理' },
171
-        { path: false, name: '透析监测' }
290
+        { path: false, name: "透析管理" },
291
+        { path: false, name: "透析监测" }
172 292
       ],
173 293
       loading: false,
174
-      time: '',
294
+      time: "",
175 295
 
176 296
       search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
177
-      patient_search_keyword: '',
297
+      patient_search_keyword: "",
178 298
 
179 299
       SchedualPatientsTableData: [],
180 300
       active: true,
181 301
       schedulType: 0,
182 302
       schedulArr: [
183
-        { value: 0, label: '全部' },
184
-        { value: 1, label: '上午' },
185
-        { value: 2, label: '下午' },
186
-        { value: 3, label: '晚上' }
303
+        { value: 0, label: "全部" },
304
+        { value: 1, label: "上午" },
305
+        { value: 2, label: "下午" },
306
+        { value: 3, label: "晚上" }
187 307
       ],
188 308
       template_id: 0,
189 309
 
190 310
       partitionType: 0,
191 311
 
192
-      labelArr: ['第1次', '第2次', '第3次', '第4次', '第5次', '第6次', '第7次'],
312
+      labelArr: ["第1次", "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
193 313
 
194 314
       pickerOptions1: {
195 315
         shortcuts: [
196 316
           {
197
-            text: '今天',
317
+            text: "今天",
198 318
             onClick(picker) {
199
-              picker.$emit('pick', new Date())
319
+              picker.$emit("pick", new Date());
200 320
             }
201 321
           },
202 322
           {
203
-            text: '昨天',
323
+            text: "昨天",
204 324
             onClick(picker) {
205
-              const date = new Date()
206
-              date.setTime(date.getTime() - 3600 * 1000 * 24)
207
-              picker.$emit('pick', date)
325
+              const date = new Date();
326
+              date.setTime(date.getTime() - 3600 * 1000 * 24);
327
+              picker.$emit("pick", date);
208 328
             }
209 329
           },
210 330
           {
211
-            text: '一周前',
331
+            text: "一周前",
212 332
             onClick(picker) {
213
-              const date = new Date()
214
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
215
-              picker.$emit('pick', date)
333
+              const date = new Date();
334
+              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
335
+              picker.$emit("pick", date);
216 336
             }
217 337
           },
218 338
           {
219
-            text: '清空',
339
+            text: "清空",
220 340
             onClick(picker) {
221
-              picker.$emit('pick')
341
+              picker.$emit("pick");
222 342
             }
223 343
           }
224 344
         ]
@@ -230,263 +350,266 @@ export default {
230 350
         limit: 10,
231 351
         schedul_type: 0,
232 352
         partition_type: 0,
233
-        schedul_time: '',
234
-        keywords: ''
353
+        schedul_time: "",
354
+        keywords: ""
235 355
       },
236 356
       selecting_schs: [],
237 357
       partitionArr: []
238
-    }
358
+    };
239 359
   },
240 360
   created() {
241
-    var date = new Date()
242
-    this.time = date
243
-    var year = date.getFullYear()
244
-    var month = date.getMonth() + 1
245
-    var day = date.getDate()
361
+    var date = new Date();
362
+    this.time = date;
363
+    var year = date.getFullYear();
364
+    var month = date.getMonth() + 1;
365
+    var day = date.getDate();
246 366
     if (month < 10) {
247
-      month = '0' + month
367
+      month = "0" + month;
248 368
     }
249 369
     if (day < 10) {
250
-      day = '0' + day
370
+      day = "0" + day;
251 371
     }
252
-    var nowDate = year + '-' + month + '-' + day
253
-    var date = new Date(nowDate + ' 00:00:00')
254
-    this.listQuery.schedul_time = date.getTime()
255
-    this.getAllZone()
256
-    this.getSchedualPatientList()
257
-    this.getTemplateInfo()
372
+    var nowDate = year + "-" + month + "-" + day;
373
+    var date = new Date(nowDate + " 00:00:00");
374
+    this.listQuery.schedul_time = date.getTime();
375
+    this.getAllZone();
376
+    this.getSchedualPatientList();
377
+    this.getTemplateInfo();
258 378
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
259 379
   },
260 380
   methods: {
261 381
     getTemplateInfo() {
262 382
       getPrintTemplate().then(response => {
263 383
         if (response.data.state == 0) {
264
-          this.$message.error(response.data.msg)
265
-          return false
384
+          this.$message.error(response.data.msg);
385
+          return false;
266 386
         } else {
267
-          var template = response.data.data.template
268
-          this.template_id = template.template_id
387
+          var template = response.data.data.template;
388
+          this.template_id = template.template_id;
269 389
         }
270
-      })
390
+      });
271 391
     },
272 392
     clickCurrent(val) {
273
-      console.log(val)
393
+      console.log(val);
274 394
       this.$router.push({
275
-        path: '/dialysis/details',
395
+        path: "/dialysis/details",
276 396
         query: { patient_id: val.patient_id, date: val.sch_time_int }
277
-      })
397
+      });
278 398
     },
279 399
     handleSelectionChange(val) {
280
-      this.selecting_schs = val
400
+      this.selecting_schs = val;
281 401
     },
282 402
 
283 403
     selectSchedulType(scheduleType) {
284 404
       // alert(scheduleType);/
285
-      this.schedulType = scheduleType
286
-      this.listQuery.schedul_type = scheduleType
287
-      this.getSchedualPatientList()
405
+      this.schedulType = scheduleType;
406
+      this.listQuery.schedul_type = scheduleType;
407
+      this.getSchedualPatientList();
288 408
     },
289 409
     selectPartitionType(partitionType) {
290
-      this.partitionType = partitionType
291
-      this.listQuery.partition_type = partitionType
292
-      this.getSchedualPatientList()
410
+      this.partitionType = partitionType;
411
+      this.listQuery.partition_type = partitionType;
412
+      this.getSchedualPatientList();
293 413
     },
294 414
 
295 415
     changeTime() {
296
-      this.listQuery.schedul_time = this.time
297
-      this.getSchedualPatientList()
416
+      this.listQuery.schedul_time = this.time;
417
+      this.getSchedualPatientList();
298 418
     },
299 419
     getAllZone: function() {
300 420
       GetAllZone().then(response => {
301 421
         if (response.data.state == 0) {
302
-          this.$message.error(response.data.msg)
303
-          return false
422
+          this.$message.error(response.data.msg);
423
+          return false;
304 424
         } else {
305
-          this.partitionArr = response.data.data.zone
306
-          this.partitionArr.unshift({ id: 0, name: '全部' })
425
+          this.partitionArr = response.data.data.zone;
426
+          this.partitionArr.unshift({ id: 0, name: "全部" });
307 427
         }
308
-      })
428
+      });
309 429
     },
310 430
     getSchedualPatientList: function() {
311
-      this.loading = true
431
+      this.loading = true;
312 432
       if (this.search_mode == 1) {
313
-        this.listQuery.keywords = ''
433
+        this.listQuery.keywords = "";
314 434
       } else {
315
-        this.listQuery.schedul_time = ''
435
+        this.listQuery.schedul_time = "";
316 436
       }
317
-      this.SchedualPatientsTableData = []
437
+      this.SchedualPatientsTableData = [];
318 438
       getSchedualPatient(this.listQuery).then(response => {
319 439
         if (response.data.state == 0) {
320
-          this.loading = false
321
-          this.$message.error(response.data.msg)
322
-          return false
440
+          this.loading = false;
441
+          this.$message.error(response.data.msg);
442
+          return false;
323 443
         } else {
324
-          this.loading = false
325
-          this.total = response.data.data.total
444
+          this.loading = false;
445
+          this.total = response.data.data.total;
326 446
           // console.log(response.data.data)
327 447
           for (let i = 0; i < response.data.data.schedule.length; i++) {
328 448
             if (response.data.data.schedule[i].patient.id > 0) {
329 449
               const SchedualPatientsTable = {
330 450
                 bp: []
331
-              }
451
+              };
332 452
 
333
-              SchedualPatientsTable['sch_id'] = response.data.data.schedule[i].id
334
-              SchedualPatientsTable['sch_time_int'] =
335
-                response.data.data.schedule[i].schedule_date
336
-              SchedualPatientsTable['sch_time'] = parseTime(
453
+              SchedualPatientsTable["sch_id"] =
454
+                response.data.data.schedule[i].id;
455
+              SchedualPatientsTable["sch_time_int"] =
456
+                response.data.data.schedule[i].schedule_date;
457
+              SchedualPatientsTable["sch_time"] = parseTime(
337 458
                 response.data.data.schedule[i].schedule_date,
338
-                '{y}-{m}-{d}'
339
-              )
340
-              SchedualPatientsTable['dialysis_no'] =
341
-                response.data.data.schedule[i].patient.dialysis_no
342
-              SchedualPatientsTable['name'] =
343
-                response.data.data.schedule[i].patient.name
344
-              SchedualPatientsTable['number'] =
345
-                response.data.data.schedule[i].device_number.number
346
-              SchedualPatientsTable['gender'] =
347
-                response.data.data.schedule[i].patient.gender
348
-              SchedualPatientsTable['source'] =
349
-                response.data.data.schedule[i].patient.source
350
-              SchedualPatientsTable['patient_id'] =
351
-                response.data.data.schedule[i].patient_id
352
-              SchedualPatientsTable['mode_name'] =
353
-                response.data.data.schedule[i].treatment_mode.name
459
+                "{y}-{m}-{d}"
460
+              );
461
+              SchedualPatientsTable["dialysis_no"] =
462
+                response.data.data.schedule[i].patient.dialysis_no;
463
+              SchedualPatientsTable["name"] =
464
+                response.data.data.schedule[i].patient.name;
465
+              SchedualPatientsTable["number"] =
466
+                response.data.data.schedule[i].device_number.number;
467
+              SchedualPatientsTable["gender"] =
468
+                response.data.data.schedule[i].patient.gender;
469
+              SchedualPatientsTable["source"] =
470
+                response.data.data.schedule[i].patient.source;
471
+              SchedualPatientsTable["patient_id"] =
472
+                response.data.data.schedule[i].patient_id;
473
+              SchedualPatientsTable["mode_name"] =
474
+                response.data.data.schedule[i].treatment_mode.name;
354 475
               if (
355 476
                 response.data.data.schedule[i].assessment_before_dislysis.id > 0
356 477
               ) {
357
-                SchedualPatientsTable['dialysis_before_weight'] =
478
+                SchedualPatientsTable["dialysis_before_weight"] =
358 479
                   response.data.data.schedule[
359 480
                     i
360
-                  ].assessment_before_dislysis.weight_before
481
+                  ].assessment_before_dislysis.weight_before;
361 482
               }
362 483
               if (
363 484
                 response.data.data.schedule[i].assessment_after_dislysis.id > 0
364 485
               ) {
365
-                SchedualPatientsTable['dialysis_after_weight'] =
486
+                SchedualPatientsTable["dialysis_after_weight"] =
366 487
                   response.data.data.schedule[
367 488
                     i
368
-                  ].assessment_after_dislysis.weight_after
489
+                  ].assessment_after_dislysis.weight_after;
369 490
               }
370 491
 
371
-              SchedualPatientsTable.bp = []
492
+              SchedualPatientsTable.bp = [];
372 493
               for (
373 494
                 let a = 0;
374 495
                 a < response.data.data.schedule[i].monitoring_record.length;
375 496
                 a++
376 497
               ) {
377
-                const bp = {}
378
-                bp['value'] =
498
+                const bp = {};
499
+                bp["value"] =
379 500
                   response.data.data.schedule[i].monitoring_record[
380 501
                     a
381 502
                   ].systolic_blood_pressure.toString() +
382
-                  '/' +
503
+                  "/" +
383 504
                   response.data.data.schedule[i].monitoring_record[
384 505
                     a
385
-                  ].diastolic_blood_pressure.toString()
506
+                  ].diastolic_blood_pressure.toString();
386 507
 
387
-                SchedualPatientsTable.bp.unshift(bp)
508
+                SchedualPatientsTable.bp.unshift(bp);
388 509
               }
389 510
 
390
-              this.SchedualPatientsTableData.push(SchedualPatientsTable)
511
+              this.SchedualPatientsTableData.push(SchedualPatientsTable);
391 512
             }
392 513
           }
393 514
         }
394
-      })
515
+      });
395 516
     },
396 517
     getValue: function(val) {
397 518
       if (val != undefined) {
398
-        return val.value
519
+        return val.value;
399 520
       } else {
400
-        return ''
521
+        return "";
401 522
       }
402 523
     },
403 524
 
404 525
     handleCurrentChange(val) {
405
-      this.listQuery.page = val
406
-      this.getSchedualPatientList()
526
+      this.listQuery.page = val;
527
+      this.getSchedualPatientList();
407 528
     },
408 529
     changeSearchMode: function() {
409 530
       if (this.search_mode == 1) {
410
-        this.search_mode = 2
531
+        this.search_mode = 2;
411 532
       } else {
412
-        this.search_mode = 1
533
+        this.search_mode = 1;
413 534
       }
414 535
     },
415 536
     searchPatientAction: function() {
416
-      this.listQuery.keywords = this.patient_search_keyword
417
-      console.log(this.patient_search_keyword)
537
+      this.listQuery.keywords = this.patient_search_keyword;
538
+      console.log(this.patient_search_keyword);
418 539
       if (this.patient_search_keyword.length == 0) {
419
-        return
540
+        return;
420 541
       }
421
-      this.getSchedualPatientList()
542
+      this.getSchedualPatientList();
422 543
     },
423 544
     handleSizeChange(val) {
424
-      this.listQuery.limit = val
425
-      this.getSchedualPatientList()
545
+      this.listQuery.limit = val;
546
+      this.getSchedualPatientList();
426 547
     },
427 548
     batchPrintAction: function() {
428
-    // 模板ID为6
429
-      var sch_ids = []
549
+      // 模板ID为6
550
+      var sch_ids = [];
430 551
 
431 552
       for (let index = 0; index < this.selecting_schs.length; index++) {
432
-        sch_ids.push(this.selecting_schs[index].sch_id)
553
+        sch_ids.push(this.selecting_schs[index].sch_id);
433 554
       }
434
-      console.log('第一个', sch_ids)
435
-      console.log('模板id', this.template_id)
436
-      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
555
+      console.log("第一个", sch_ids);
556
+      console.log("模板id", this.template_id);
557
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
437 558
       if (this.template_id == 2 || this.template_id == 0) {
438
-        this.$router.push({ path: '/dialysis/print/batch/other' })
559
+        this.$router.push({ path: "/dialysis/print/batch/other" });
439 560
       } else if (this.template_id == 1) {
440
-        this.$router.push({ path: '/dialysis/print/batch' })
561
+        this.$router.push({ path: "/dialysis/print/batch" });
441 562
       } else if (this.template_id == 3) {
442
-        this.$router.push({ path: '/dialysis/print/batch/three' })
563
+        this.$router.push({ path: "/dialysis/print/batch/three" });
443 564
       } else if (this.template_id == 4) {
444
-        this.$router.push({ path: '/dialysis/print/batch/four' })
565
+        this.$router.push({ path: "/dialysis/print/batch/four" });
445 566
       } else if (this.template_id == 5) {
446
-        this.$router.push({ path: '/dialysis/print/batch/five' })
567
+        this.$router.push({ path: "/dialysis/print/batch/five" });
447 568
       } else if (this.template_id == 6) {
448
-        this.$router.push({ path: '/dialysis/print/batch/six' })
569
+        this.$router.push({ path: "/dialysis/print/batch/six" });
570
+      } else if (this.template_id == 7) {
571
+        this.$router.push({ path: "/dialysis/print/batch/seven" });
449 572
       }
450 573
     },
451 574
     batchPrintActionOne: function() {
452
-      var sch_ids = []
575
+      var sch_ids = [];
453 576
       for (let index = 0; index < this.selecting_schs.length; index++) {
454
-        sch_ids.push(this.selecting_schs[index].sch_id)
577
+        sch_ids.push(this.selecting_schs[index].sch_id);
455 578
       }
456
-      console.log('第二个', sch_ids)
457
-      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
579
+      console.log("第二个", sch_ids);
580
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
458 581
       if (this.template_id == 2 || this.template_id == 0) {
459
-        this.$router.push({ path: '/dialysis/print/batch/otherone' })
582
+        this.$router.push({ path: "/dialysis/print/batch/otherone" });
460 583
       } else if (this.template_id == 1) {
461
-        this.$router.push({ path: '/dialysis/print/batch' })
584
+        this.$router.push({ path: "/dialysis/print/batch" });
462 585
       } else if (this.template_id == 5) {
463
-        this.$router.push({ path: '/dialysis/print/batch/fiveone' })
586
+        this.$router.push({ path: "/dialysis/print/batch/fiveone" });
464 587
       }
465 588
     },
466 589
     batchPrintActionTwo: function() {
467
-      var sch_ids = []
590
+      var sch_ids = [];
468 591
       for (let index = 0; index < this.selecting_schs.length; index++) {
469
-        sch_ids.push(this.selecting_schs[index].sch_id)
592
+        sch_ids.push(this.selecting_schs[index].sch_id);
470 593
       }
471
-      this.$store.dispatch('SetBatchPrintDialysisRecordIDs', sch_ids)
594
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
472 595
       if (this.template_id == 2 || this.template_id == 0) {
473
-        this.$router.push({ path: '/dialysis/print/batch/othertwo' })
596
+        this.$router.push({ path: "/dialysis/print/batch/othertwo" });
474 597
       } else if (this.template_id == 1) {
475
-        this.$router.push({ path: '/dialysis/print/batch' })
598
+        this.$router.push({ path: "/dialysis/print/batch" });
476 599
       } else if (this.template_id == 5) {
477
-        this.$router.push({ path: '/dialysis/print/batch/fivetwo' })
600
+        this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
478 601
       }
479 602
     }
480 603
   },
481 604
   components: {
482 605
     BreadCrumb
483 606
   }
484
-}
607
+};
485 608
 </script>
486 609
 
487 610
 <style rel="stylesheet/scss" lang="scss" scoped>
488 611
 .app-container {
489
-//   margin: 20px;
612
+  //   margin: 20px;
490 613
   font-size: 15px;
491 614
   .filter-container {
492 615
     padding-bottom: 5px;

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1068 - 806
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue


+ 13 - 3
src/xt_pages/dialysis/dialysisPrintOrder.vue Ver fichero

@@ -56,7 +56,7 @@
56 56
 
57 57
       <DialysisPrintOrderSix v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 6 "> </DialysisPrintOrderSix>
58 58
 
59
-      <DialysisPrintOrderSeven v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 7 "> </DialysisPrintOrderSeven>
59
+      <DialysisPrintOrderSeven v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 7"> </DialysisPrintOrderSeven>
60 60
 
61 61
 
62 62
     </div>
@@ -250,7 +250,16 @@
250 250
             scanStyles: false
251 251
           })
252 252
         }
253
-      },printThisOnePage() {
253
+        else if (this.org_template_info.template_id == 7 ) {
254
+          printJS({
255
+            printable: 'dialysis-print-box',
256
+            type: 'html',
257
+            style: style,
258
+            scanStyles: false
259
+          })
260
+        }
261
+      },
262
+      printThisOnePage() {
254 263
         var ptime = Math.round(new Date().getTime() / 1000)
255 264
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
256 265
 
@@ -272,7 +281,8 @@
272 281
             scanStyles: false
273 282
           })
274 283
         }
275
-      },printThisTwoPage() {
284
+      },
285
+      printThisTwoPage() {
276 286
         var ptime = Math.round(new Date().getTime() / 1000)
277 287
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
278 288
 

+ 437 - 75
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Ver fichero

@@ -17,7 +17,7 @@
17 17
                   >姓名:{{ patientInfo.name }}</span
18 18
                 >
19 19
                 <span style="flex:1;margin-left:15px;"
20
-                  >年龄:{{ patientInfo.age }}</span
20
+                  >年龄:{{ getAge(patientInfo) }}</span
21 21
                 >
22 22
                 <span style="flex:1;margin-left:15px;"
23 23
                   >性别:{{ patientInfo.gender }}</span
@@ -25,7 +25,7 @@
25 25
                 <span style="flex:1;margin-left:15px;"
26 26
                   >透析机号:{{ patientInfo.dialysis_no }}</span
27 27
                 >
28
-                <span style="flex:1;margin-left:15px;">第()透析</span>
28
+                <span style="flex:1;margin-left:15px;">第({{total}}透析</span>
29 29
               </div>
30 30
             </td>
31 31
           </tr>
@@ -36,22 +36,22 @@
36 36
               >
37 37
               <div style="display:inline-block;">
38 38
                 <label-box
39
-                  :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
39
+                  :isChecked="receiverTreatmentAccess.consciousness == 1 ? true : false"
40 40
                   showValue="清醒"
41 41
                 ></label-box>
42 42
                 &nbsp;
43 43
                 <label-box
44
-                  :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
44
+                  :isChecked="receiverTreatmentAccess.consciousness == 2 ? true : false"
45 45
                   showValue="嗜睡"
46 46
                 ></label-box>
47 47
                 &nbsp;
48 48
                 <label-box
49
-                  :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
49
+                  :isChecked="receiverTreatmentAccess.consciousness == 3 ? true : false"
50 50
                   showValue="模糊"
51 51
                 ></label-box>
52 52
                 &nbsp;
53 53
                 <label-box
54
-                  :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
54
+                  :isChecked="receiverTreatmentAccess.consciousness == 4 ? true : false"
55 55
                   showValue="昏迷"
56 56
                 ></label-box>
57 57
               </div>
@@ -66,42 +66,42 @@
66 66
               >治疗方式:</span
67 67
             >
68 68
             <label-box
69
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
69
+              :isChecked="schedule.mode_id == 1 ? true : false"
70 70
               showValue="HD"
71 71
             ></label-box>
72 72
             &nbsp;
73 73
             <label-box
74
-              :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
74
+              :isChecked="schedule.mode_id == 2 ? true : false"
75 75
               showValue="HDF"
76 76
             ></label-box>
77 77
             &nbsp;
78 78
             <label-box
79
-              :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
79
+              :isChecked="schedule.mode_id == 4 ? true : false"
80 80
               showValue="HP"
81 81
             ></label-box>
82 82
             &nbsp;
83 83
             <label-box
84
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
84
+              :isChecked="schedule.mode_id == 3 ? true : false"
85 85
               showValue="HD+HP"
86 86
             ></label-box>
87 87
             &nbsp; ( &nbsp;
88 88
             <label-box
89
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
89
+              :isChecked="displace_liqui == 1 ? true : false"
90 90
               showValue="前稀释"
91 91
             ></label-box>
92 92
             &nbsp;
93 93
             <label-box
94
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
94
+              :isChecked="displace_liqui == 2 ? true : false"
95 95
               showValue="后稀释"
96 96
             ></label-box
97
-            >, 置换量:2L &nbsp;
97
+            >, 置换量:{{replacement_total}}L &nbsp;
98 98
             <label-box
99
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
99
+              :isChecked="displace_liqui == 0? true : false"
100 100
               showValue="其它"
101 101
             ></label-box>
102 102
             &nbsp;)
103 103
           </td>
104
-          <td><span>治疗时间:2小时8分</span></td>
104
+          <td><span>治疗时间:{{actual_treatment_hour}}小时{{actual_treatment_minute}}分</span></td>
105 105
         </tr>
106 106
       </table>
107 107
 
@@ -112,23 +112,38 @@
112 112
               >治疗抗凝:</span
113 113
             >
114 114
             <label-box
115
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
115
+              :isChecked="anticoagulant== 3 ? true : false"
116 116
               showValue="低分子肝素:"
117 117
             ></label-box>
118
-            U;nbsp;
118
+            &nbsp;
119 119
             <label-box
120
-              :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
120
+              :isChecked="anticoagulant==2 ? true : false"
121 121
               showValue="普通肝素:"
122 122
             ></label-box>
123
-            &nbsp;首剂 90 mg &nbsp;追加 20mg/h 总量 100 mg; &nbsp;
123
+            &nbsp;首剂 {{anticoagulant_shouji}}
124
+            <span v-if="anticoagulant==4">mg</span>
125
+            <span v-if="anticoagulant==3">iu</span>
126
+            <span v-if="anticoagulant==2">iu</span>
127
+            <span v-if="anticoagulant==1">mg</span>&nbsp;
128
+              维持 {{anticoagulant_weichi}}
129
+            <span v-if="anticoagulant == 5">ml/h</span>
130
+            <span v-if="anticoagulant == 4">mg/h</span>
131
+            <span v-if="anticoagulant == 3">iu/h</span>
132
+            <span v-if="anticoagulant == 2">iu/h</span>
133
+            <span v-if="anticoagulant == 1">mg/h</span>
134
+            &nbsp; 总量 {{anticoagulant_zongliang}}
135
+            <span v-if="anticoagulant == 4">mg</span>
136
+            <span v-if="anticoagulant == 3">iu</span>
137
+            <span v-if="anticoagulant == 2">iu</span>
138
+            <span v-if="anticoagulant == 1">mg</span>; &nbsp;
124 139
             <label-box
125
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
140
+              :isChecked="anticoagulant == 1 ? true : false"
126 141
               showValue="无肝素"
127 142
             ></label-box>
128 143
             &nbsp;
129 144
             <label-box
130
-              :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
131
-              showValue="枸橼酸"
145
+              :isChecked="anticoagulant == 5 ? true : false"
146
+              showValue="枸橼酸"
132 147
             ></label-box>
133 148
           </td>
134 149
         </tr>
@@ -138,17 +153,17 @@
138 153
         <tr>
139 154
           <td style="text-align:left;">
140 155
             <span style="display:inline-block;margin-left:15px;"
141
-              >处方脱水量:200ml</span
156
+              >处方脱水量:{{target_ultrafiltration}}ml</span
142 157
             >&nbsp;
143 158
             <span style="display:inline-block;margin-left:15px;"
144
-              >透析液流量:2ml/h</span
159
+              >透析液流量:{{dialysate_flow}}ml/h</span
145 160
             >&nbsp;
146 161
             <span style="display:inline-block;margin-left:15px;"
147
-              >血流量:2ml/min</span
162
+              >血流量:{{blood_flow_volume}}ml/min</span
148 163
             >&nbsp;
149 164
           </td>
150 165
           <td>
151
-            <span>医生签名:小白兔</span>
166
+            <span>医生签名:{{doctor}}</span>
152 167
           </td>
153 168
         </tr>
154 169
       </table>
@@ -156,35 +171,29 @@
156 171
       <table class="print-table" border="1">
157 172
         <tr>
158 173
           <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
159
-              >透析机:200ml</span</td>
174
+              >透析机:{{bed}}</span</td>
160 175
           <td style="text-align:left;"><span style="display:inline-block;margin-left:15px;"
161
-              >透析(滤)器:200ml</span</td></td>
162
-        </tr>
163
-      </table>
164
-      <table class="print-table" border="1">
165
-        <tr>
166
-         <td style="text-align:left;">
176
+              >透析(滤)器:{{dialyzer_perfusion_apparatus}}</span</td></td>
177
+               <td style="text-align:left;">
167 178
             <span style="display:inline-block;margin-left:15px;"
168
-              >透析液:</span
179
+              >透析液(mmol/L):</span
169 180
             >
170
-             <label-box
171
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
172
-              showValue="低钙:"
173
-            ></label-box>&nbsp;
174
-            <label-box
175
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
176
-              showValue="高钙:"
177
-            ></label-box>&nbsp;
178
-             <label-box
179
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
180
-              showValue="低钠:"
181
-            ></label-box>&nbsp;
182
-             <label-box
183
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
184
-              showValue="高钠:"
185
-            ></label-box>&nbsp;
181
+            <span v-if="dialysate_formulation == 2">
182
+              低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183
+            </span>
184
+             <span v-if="dialysate_formulation == 3">
185
+              高钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
186
+            </span>
187
+             <span v-if="dialysate_formulation == 4">
188
+              低钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
189
+            </span>
190
+             <span v-if="dialysate_formulation == 5">
191
+              高钠(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
192
+            </span>
186 193
          </td>
187 194
         </tr>
195
+      </table>
196
+      <table class="print-table" border="1">
188 197
          <tr>
189 198
           <td style="text-align:left;">
190 199
               <span style="display:inline-block;margin-left:15px;"
@@ -192,26 +201,26 @@
192 201
             >
193 202
             &nbsp;
194 203
              <label-box
195
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
204
+              :isChecked="blood_access_part_opera_id == 14 ? true : false"
196 205
               showValue="内瘘"
197 206
             ></label-box>
198 207
              &nbsp;
199 208
              <label-box
200
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
209
+              :isChecked="blood_access_part_opera_id == 17 || blood_access_part_opera_id == 18 ? true : false"
201 210
               showValue="长期静脉导管"
202 211
             ></label-box>
203 212
             </label-box>
204 213
              &nbsp;
205 214
              <label-box
206
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
215
+              :isChecked="blood_access_part_opera_id == 17 || blood_access_part_opera_id == 18 ? true : false"
207 216
               showValue="临时(颈、股)静脉导管"
208 217
             ></label-box>
209 218
                &nbsp;
210 219
              <label-box
211
-              :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
220
+              :isChecked="blood_access_part_opera_id >= 17 ? true : false"
212 221
               showValue="其它"
213 222
             ></label-box>
214
-            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:</span>
223
+            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}</span>
215 224
           </td>
216 225
         </tr>
217 226
         <tr>
@@ -221,9 +230,9 @@
221 230
       <table class="print-table" border="1">
222 231
          <tr>
223 232
           <th rowspan="2">时间</th>
224
-          <th>透析参数</th>
225
-          <th colspan="7">生命体征</th>
226
-          <th colspan="2">治疗中病情变化</th>
233
+          <th colspan="3">透析参数</th>
234
+          <th colspan="6">生命体征</th>
235
+          <th>病情变化及处理</th>
227 236
          </tr>
228 237
          <tr>
229 238
           <td>TMP(mmHg)</td>
@@ -234,10 +243,135 @@
234 243
           <td>HR(bpm)</td>
235 244
           <td>R(bpm)</td>
236 245
           <td>BP(mmHg)</td>
237
-          <td>SpO2</td>
238
-          <td>时间</td>
246
+          <td>SpO₂(%)</td>
239 247
           <td>记录</td>
240 248
          </tr>
249
+         <tr v-for="(monitor, monindex) in this.monitor" :key="monindex">
250
+           <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
251
+           <td>{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:""}}</td>
252
+           <td>{{monitor.venous_pressure?monitor.venous_pressure:""}}</td>
253
+           <td>{{monitor.blood_flow_volume ? monitor.blood_flow_volume:""}}</td>
254
+           <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:""}}</td>
255
+           <td> {{
256
+                 monitor.temperature
257
+                ? monitor.temperature
258
+                : ""
259
+                }}</td>
260
+           <td>{{monitor.pulse_frequency?monitor.pulse_frequency:""}}</td>
261
+           <td>{{monitor.breathing_rate?monitor.breathing_rate:""}}</td>
262
+           <td>{{
263
+                monitor.systolic_blood_pressure
264
+                ? monitor.systolic_blood_pressure + "/"
265
+                : ""
266
+                }}{{
267
+               monitor.diastolic_blood_pressure
268
+              ? monitor.diastolic_blood_pressure
269
+              : ""
270
+              }}</td>
271
+           <td></td>
272
+           <td style="line-height:16px;padding:0px;">
273
+              {{ monitor.end }}
274
+              {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
275
+            </td>
276
+         </tr>
277
+      </table>
278
+      <table class="print-table" border="1">
279
+        <tr>
280
+         <td>时间</td>
281
+         <td>医嘱执行记录</td>
282
+         <td>执行</td>
283
+         <td>核对</td>
284
+         <td>上次透后体重</td>
285
+         <td> {{
286
+                predialysis.weight_after_last_transparency
287
+                ? parseFloat(
288
+                 predialysis.weight_after_last_transparency -
289
+                 predialysis.additional_weight
290
+                  ).toFixed(1)
291
+                 : "未称重"
292
+              }}kg</td>
293
+        </tr>
294
+        <tr  v-for="(advice, advice_index) in tableAdvice"
295
+                      :key="advice_index">
296
+         <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
297
+         <td>
298
+           <span v-if="advice.parent_id > 0">---></span>
299
+            <span>{{ advice.advice_name }}</span>
300
+            <span v-if="advice && advice.advice_desc"
301
+                >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
302
+                    <span v-if="advice.prescribing_number">
303
+                       &nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}</span>
304
+                        <span v-if="advice.single_dose != 0">
305
+                          {{ advice.single_dose}}{{ advice.single_dose_unit }}</span>
306
+                         <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
307
+                        <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
308
+                        <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
309
+               <td>
310
+              <span
311
+               v-if="setAdminUserES(advice.advice_doctor) == ''"
312
+               >{{ getAdminUser(advice.advice_doctor) }}</span
313
+               >
314
+              <img
315
+               style="height:20px;"
316
+               :src="setAdminUserES(advice.advice_doctor)"
317
+               alt=""
318
+              srcset=""
319
+              v-else
320
+            />
321
+         </td>
322
+         <td>
323
+           <span
324
+               v-if="setAdminUserES(advice.execution_staff) == ''"
325
+               >{{ getAdminUser(advice.execution_staff) }}</span
326
+               >
327
+              <img
328
+               style="height:20px;"
329
+               :src="setAdminUserES(advice.execution_staff)"
330
+               alt=""
331
+              srcset=""
332
+              v-else
333
+            />
334
+         </td>
335
+         <td v-if="advice_index==0">透前体重</td>
336
+         <td v-if="advice_index==0">{{weight_before}}kg</td>
337
+         <td v-if="advice_index==1">体重增加量</td>
338
+         <td v-if="advice_index==1">{{weight_gain}}kg</td>
339
+         <td v-if="advice_index==2">干体重(DW)</td>
340
+         <td v-if="advice_index==2">{{dry_weight}}kg</td>
341
+         <td v-if="advice_index==3">较干体重增加量</td>
342
+         <td v-if="advice_index==3">{{weight_gain}}kg</td>
343
+         <td v-if="advice_index==4">净脱水量</td>
344
+         <td v-if="advice_index==4">{{actual_ultrafiltration}}kg</td>
345
+         <td v-if="advice_index==5">透后体重</td>
346
+         <td v-if="advice_index==5">{{weight_after}}kg</td>
347
+         <td v-if="advice_index==6">本次透析体重下降量</td>
348
+         <td v-if="advice_index==6">{{weightloss_after}}kg</td>
349
+        </tr>
350
+        <tr>
351
+          <td colspan="6" style="text-align:left;min-height:20px">
352
+             <span>治疗小结:{{mission}}{{dialysis_summary}}</span>
353
+          </td>
354
+        </tr>
355
+      </table>
356
+      <table class="print-table" border="1">
357
+        <tr>
358
+          <td style="text-align:left;">
359
+           <span v-if="doctorForm.url === ''">
360
+             医师签名:{{doctorForm.doctor}}
361
+           </span>
362
+           <span v-if="doctorForm.url!==''">
363
+              医师签名:
364
+              <img style="height:20px" :src="doctorForm.url">
365
+           </span>
366
+           &nbsp;&nbsp;&nbsp;&nbsp;
367
+           <span v-if="orderForm.url === ''">
368
+             护士签名:{{orderForm.start_nurse}}
369
+            </span>
370
+            <span v-if="orderForm.url !==''" >
371
+              护士签名:<img :src="orderForm.url" style="height:20px;">
372
+            </span>
373
+          </td>
374
+        </tr>
241 375
       </table>
242 376
     </div>
243 377
   </div>
@@ -338,6 +472,7 @@ export default {
338 472
 
339 473
       doctor_advices: [],
340 474
       advice_groups: [],
475
+      schedule: [],
341 476
 
342 477
       AlPanel: {
343 478
         id: 0,
@@ -353,7 +488,56 @@ export default {
353 488
         zongliang_unit: 'mg',
354 489
         gaimingcheng_unit: '',
355 490
         gaijiliang_unit: ''
356
-      }
491
+      },
492
+      list: 5,
493
+      replacement_total: '',
494
+      actual_treatment_hour: '',
495
+      actual_treatment_minute: '',
496
+      anticoagulant: '',
497
+      anticoagulant_shouji: '',
498
+      anticoagulant_zongliang: '',
499
+      prescription_dewatering: '',
500
+      blood_flow_volume: '',
501
+      dialysate_flow: '',
502
+      bed: '',
503
+      dialyzer_perfusion_apparatus: '',
504
+      dialysate_formulation: '',
505
+      blood_access: '',
506
+      doctor: '',
507
+      nurse: '',
508
+      doctorAdvice: [],
509
+      total: '',
510
+      weight_before: '',
511
+      dry_weight: '',
512
+      weight_after: '',
513
+      weightloss_after: '',
514
+      actual_ultrafiltration: '',
515
+      temperature: '',
516
+      systolic_blood_pressure: '',
517
+      diastolic_blood_pressure: '',
518
+      mission: '',
519
+      dialysis_summary: '',
520
+      orderForm: {
521
+        start_nurse: '',
522
+        url: ''
523
+      },
524
+      doctorForm: {
525
+        doctor: '',
526
+        url: ''
527
+      },
528
+      tableAdvice: [],
529
+      monitor: [],
530
+      displace_liqui: '',
531
+      kalium: '',
532
+      sodium: '',
533
+      calcium: '',
534
+      weight_gain: '',
535
+      afterWeightLast: '',
536
+      anticoagulant_weichi: '',
537
+      target_ultrafiltration: '',
538
+      blood_access_internal_fistula: '',
539
+      venous_catheterization: '',
540
+      blood_access_part_opera_id: ''
357 541
     }
358 542
   },
359 543
   methods: {
@@ -384,6 +568,12 @@ export default {
384 568
       }
385 569
       return ''
386 570
     },
571
+    getTimes(time) {
572
+      if (time === '') {
573
+        return ''
574
+      }
575
+      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
576
+    },
387 577
     printThisPage() {
388 578
       var ptime = Math.round(new Date().getTime() / 1000)
389 579
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
@@ -465,10 +655,19 @@ export default {
465 655
       this.loading = true
466 656
 
467 657
       getDialysisRecord(this.queryParams).then(response => {
468
-        if (response.data.state == 1) {
658
+        if (response.data.state === 1) {
469 659
           this.adminUser = response.data.data.users
470 660
           this.users = response.data.data.users
661
+          var patientInfo = response.data.data.patientInfo
662
+          if (patientInfo.gender === 1) {
663
+            patientInfo.gender = '男'
664
+          }
665
+          if (patientInfo.gender === 2) {
666
+            patientInfo.gender = '女'
667
+          }
471 668
           this.patientInfo = response.data.data.patientInfo
669
+          console.log('透析记录', this.patientInfo)
670
+
472 671
           this.patientInfo.birth = uParseTime(
473 672
             this.patientInfo.birthday,
474 673
             '{y}-{m}-{d}'
@@ -483,12 +682,135 @@ export default {
483 682
             this.patientInfo.first_dialysis_date = ''
484 683
           }
485 684
           this.check = response.data.data.check
486
-          this.predialysis = response.data.data.PredialysisEvaluation
685
+          var predialysis = response.data.data.PredialysisEvaluation
686
+          this.weight_before = predialysis.weight_before
687
+          this.dry_weight = predialysis.dry_weight
688
+          this.weight_gain = predialysis.weight_gain
689
+          this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
690
+          this.venous_catheterization = predialysis.venous_catheterization
691
+          this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
692
+          this.predialysis = predialysis
693
+          console.log('透前评估', this.predialysis)
694
+
487 695
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
488 696
             this.predialysis.blood_access_part_opera_id
489 697
           )
490
-          this.afterdialysis = response.data.data.AssessmentAfterDislysis
491
-          this.operators = response.data.data.operators
698
+          var afterdialysis = response.data.data.AssessmentAfterDislysis
699
+          // eslint-disable-next-line no-undef
700
+          console.log('透后评估', afterdialysis)
701
+          this.weight_after = afterdialysis.weight_after
702
+          this.weightloss_after = afterdialysis.weight_after
703
+          this.temperature = afterdialysis.temperature
704
+          this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration
705
+          this.actual_treatment_hour = afterdialysis.actual_treatment_hour
706
+          this.actual_treatment_minute = afterdialysis.actual_treatment_minute
707
+          this.systolic_blood_pressure = afterdialysis.systolic_blood_pressure
708
+          this.diastolic_blood_pressure = afterdialysis.diastolic_blood_pressure
709
+          this.afterdialysis = afterdialysis
710
+          var doctoradvce = response.data.data.doctorAdvice
711
+          var doctorAdevieInfo = response.data.data.doctorAdevieInfo
712
+          var tableAdvice = doctorAdevieInfo
713
+          if (tableAdvice.length === 0) {
714
+            var obj = { 'advice_name': '', start_time: '' }
715
+            var obj1 = { 'advice_name': '', start_time: '' }
716
+            var obj2 = { 'advice_name': '', start_time: '' }
717
+            var obj3 = { 'advice_name': '', start_time: '' }
718
+            var obj4 = { 'advice_name': '', start_time: '' }
719
+            var obj5 = { 'advice_name': '', start_time: '' }
720
+            var obj6 = { 'advice_name': '', start_time: '' }
721
+            tableAdvice.push(obj)
722
+            tableAdvice.push(obj1)
723
+            tableAdvice.push(obj2)
724
+            tableAdvice.push(obj3)
725
+            tableAdvice.push(obj4)
726
+            tableAdvice.push(obj5)
727
+            tableAdvice.push(obj6)
728
+            this.tableAdvice = tableAdvice
729
+          }
730
+          if (tableAdvice.length === 1) {
731
+            var obj = { 'advice_name': '', start_time: '' }
732
+            var obj1 = { 'advice_name': '', start_time: '' }
733
+            var obj2 = { 'advice_name': '', start_time: '' }
734
+            var obj3 = { 'advice_name': '', start_time: '' }
735
+            var obj4 = { 'advice_name': '', start_time: '' }
736
+            var obj5 = { 'advice_name': '', start_time: '' }
737
+            tableAdvice.push(obj)
738
+            tableAdvice.push(obj1)
739
+            tableAdvice.push(obj2)
740
+            tableAdvice.push(obj3)
741
+            tableAdvice.push(obj4)
742
+            tableAdvice.push(obj5)
743
+            this.tableAdvice = tableAdvice
744
+            console.log('零食医嘱', doctorAdevieInfo)
745
+          }
746
+          if (tableAdvice.length === 2) {
747
+            var obj = { 'advice_name': '', start_time: '' }
748
+            var obj1 = { 'advice_name': '', start_time: '' }
749
+            var obj2 = { 'advice_name': '', start_time: '' }
750
+            var obj3 = { 'advice_name': '', start_time: '' }
751
+            var obj4 = { 'advice_name': '', start_time: '' }
752
+            tableAdvice.push(obj)
753
+            tableAdvice.push(obj1)
754
+            tableAdvice.push(obj2)
755
+            tableAdvice.push(obj3)
756
+            tableAdvice.push(obj4)
757
+            this.tableAdvice = tableAdvice
758
+            console.log('零食医嘱', doctorAdevieInfo)
759
+          }
760
+          if (tableAdvice.length === 3) {
761
+            var obj = { 'advice_name': '', start_time: '' }
762
+            var obj1 = { 'advice_name': '', start_time: '' }
763
+            var obj2 = { 'advice_name': '', start_time: '' }
764
+            var obj3 = { 'advice_name': '', start_time: '' }
765
+
766
+            tableAdvice.push(obj)
767
+            tableAdvice.push(obj1)
768
+            tableAdvice.push(obj2)
769
+            tableAdvice.push(obj3)
770
+
771
+            this.tableAdvice = tableAdvice
772
+            console.log('零食医嘱', doctorAdevieInfo)
773
+          }
774
+          if (tableAdvice.length === 4) {
775
+            var obj = { 'advice_name': '', start_time: '' }
776
+            var obj1 = { 'advice_name': '', start_time: '' }
777
+            var obj2 = { 'advice_name': '', start_time: '' }
778
+
779
+            tableAdvice.push(obj)
780
+            tableAdvice.push(obj1)
781
+            tableAdvice.push(obj2)
782
+            this.tableAdvice = tableAdvice
783
+            console.log('零食医嘱', doctorAdevieInfo)
784
+          }
785
+          if (tableAdvice.length === 5) {
786
+            var obj = { 'advice_name': '', start_time: '' }
787
+            var obj1 = { 'advice_name': '', start_time: '' }
788
+            tableAdvice.push(obj)
789
+            tableAdvice.push(obj1)
790
+            this.tableAdvice = tableAdvice
791
+            console.log('零食医嘱', doctorAdevieInfo)
792
+          }
793
+          if (tableAdvice.length === 6) {
794
+            var obj = { 'advice_name': '', start_time: '' }
795
+            tableAdvice.push(obj)
796
+            this.tableAdvice = tableAdvice
797
+            console.log('零食医嘱', doctorAdevieInfo)
798
+          }
799
+          if (tableAdvice.length >= 7) {
800
+            this.tableAdvice = tableAdvice
801
+          }
802
+          var doctor = response.data.data.doctor
803
+          this.doctor = doctor.user_name
804
+          console.log('医生', doctor)
805
+          var nurse = response.data.data.nurse
806
+          this.nurse = nurse.user_name
807
+          console.log('穿刺护士', nurse)
808
+          var operators = response.data.data.operators
809
+          console.log('operators', operators)
810
+          var total = response.data.data.total
811
+          console.log('total', total)
812
+          this.total = total
813
+          this.operators = operators
492 814
           this.dialysisOrder =
493 815
             response.data.data.dialysisOrder === null
494 816
               ? null
@@ -551,10 +873,46 @@ export default {
551 873
             ','
552 874
           )
553 875
 
554
-          this.prescription = response.data.data.dialysisPrescription
555
-          this.receiverTreatmentAccess =
556
-            response.data.data.receiverTreatmentAccess
557
-
876
+          var prescription = response.data.data.dialysisPrescription
877
+          this.prescription = prescription
878
+          var schedule = response.data.data.schedule
879
+          // console.log('排班', schedule)
880
+          this.schedule = schedule
881
+          var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
882
+          // console.log('接诊评估', receiverTreatmentAccess)
883
+          this.receiverTreatmentAccess = receiverTreatmentAccess
884
+          var dialysisway = response.data.data.dialysisway
885
+          console.log('透析处方2', dialysisway)
886
+          this.target_ultrafiltration = dialysisway.target_ultrafiltration
887
+          var order = response.data.data.order
888
+          // console.log('上下机', order)
889
+          var start_nurse = response.data.data.startNuse
890
+          // console.log('上机护士', start_nurse)
891
+          this.orderForm.start_nurse = start_nurse.user_name
892
+          this.orderForm.url = start_nurse.url
893
+          var doctorname = response.data.data.DoctorName
894
+          // console.log('医师签名', doctorname)
895
+          this.doctorForm.doctor = doctorname.user_name
896
+          this.doctorForm.url = doctorname.url
897
+          this.bed = order.number
898
+          this.replacement_total = dialysisway.replacement_total
899
+          this.anticoagulant = dialysisway.anticoagulant
900
+          this.anticoagulant_shouji = dialysisway.anticoagulant_shouji
901
+          this.anticoagulant_zongliang = dialysisway.anticoagulant_zongliang
902
+          this.prescription_dewatering = dialysisway.prescription_dewatering
903
+          this.blood_flow_volume = dialysisway.blood_flow_volume
904
+          this.dialysate_flow = dialysisway.dialysate_flow
905
+          this.dialyzer_perfusion_apparatus = dialysisway.dialyzer_perfusion_apparatus
906
+          this.dialysate_formulation = dialysisway.dialysate_formulation
907
+          this.blood_access = dialysisway.blood_access
908
+          this.displace_liqui = dialysisway.displace_liqui
909
+          this.kalium = dialysisway.kalium
910
+          this.sodium = dialysisway.sodium
911
+          this.calcium = dialysisway.calcium
912
+          this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
913
+          var afterWeightLast = response.data.data.assessmentAfterDislysis
914
+          // console.log('上次透后体重', afterWeightLast)
915
+          this.afterWeightLast = afterWeightLast.weight_after
558 916
           this.prescription.mode = this.modeName(this.prescription.mode_id)
559 917
           var rwLen = this.replacementWays.length
560 918
           this.prescription.replacement = ''
@@ -599,10 +957,17 @@ export default {
599 957
             ].name
600 958
             this.AlPanel = this.anticoagulantsConfit[thisALID]
601 959
           }
602
-
603 960
           this.advices = response.data.data.advices
961
+
962
+          var monitor = response.data.data.monitor
963
+          this.monitor = monitor
964
+          console.log('monitor', monitor)
604 965
           this.monitors = response.data.data.monitors
605
-          this.summary = response.data.data.summary
966
+
967
+          var summary = response.data.data.summary
968
+          console.log('透析小结', summary)
969
+          this.mission = summary.mission
970
+          this.dialysis_summary = summary.dialysis_summary
606 971
           this.org_template_info = response.data.data.org_template_info
607 972
           if (this.monitors.length < 8) {
608 973
             var nl = 8 - this.monitors.length
@@ -668,10 +1033,7 @@ export default {
668 1033
           }
669 1034
           this.loading = false
670 1035
 
671
-          this.doctor_advices =
672
-            response.data.data.advices == null
673
-              ? []
674
-              : response.data.data.advices
1036
+          this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
675 1037
 
676 1038
           for (let index = 0; index < this.doctor_advices.length; index++) {
677 1039
             this.doctor_advices[index]['isShow'] = 2

+ 274 - 271
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Ver fichero

@@ -115,7 +115,10 @@
115 115
         </div>
116 116
         <div class="inline_block" style="margin-left: 10px;">
117 117
           诊断:
118
-          <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;" >
118
+          <div
119
+            class="under_line"
120
+            style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;"
121
+          >
119 122
             {{ patientInfo.diagnose }}
120 123
           </div>
121 124
         </div>
@@ -1055,6 +1058,7 @@
1055 1058
                       <td style="font-size: 16px" width="10%">时间</td>
1056 1059
                     </tr>
1057 1060
                     <!-- <template v-for="group in doctor_advices" > -->
1061
+                    
1058 1062
                     <tr
1059 1063
                       v-for="(advice, advice_index) in doctor_advices"
1060 1064
                       :key="advice_index"
@@ -1868,19 +1872,19 @@
1868 1872
 </template>
1869 1873
 
1870 1874
 <script>
1871
-import CheckBox from '../batch_print/option_check_box'
1872
-import { getDialysisRecord } from '@/api/dialysis'
1873
-import { getDataConfig } from '@/utils/data'
1874
-import { jsGetAge, uParseTime } from '@/utils/tools'
1875
-import LabelBox from '../printItem/LabelBox'
1876
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
1875
+import CheckBox from "../batch_print/option_check_box";
1876
+import { getDialysisRecord } from "@/api/dialysis";
1877
+import { getDataConfig } from "@/utils/data";
1878
+import { jsGetAge, uParseTime } from "@/utils/tools";
1879
+import LabelBox from "../printItem/LabelBox";
1880
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
1877 1881
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1878 1882
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1879
-import print from 'print-js'
1883
+import print from "print-js";
1880 1884
 
1881 1885
 export default {
1882
-  name: 'dialysisPrintOrderSix',
1883
-  props: ['childResponse'],
1886
+  name: "dialysisPrintOrderSix",
1887
+  props: ["childResponse"],
1884 1888
   components: {
1885 1889
     // DialysisPrintOrderOne,
1886 1890
     // DialysisPrintOrderTwo,
@@ -1891,34 +1895,34 @@ export default {
1891 1895
   data() {
1892 1896
     return {
1893 1897
       crumbs: [
1894
-        { path: false, name: '透析管理' },
1895
-        { path: false, name: '打印单' }
1898
+        { path: false, name: "透析管理" },
1899
+        { path: false, name: "打印单" }
1896 1900
       ],
1897 1901
       operators: [],
1898 1902
       adminUser: [],
1899 1903
       check: {},
1900
-      xtdate: '',
1904
+      xtdate: "",
1901 1905
       dialysisOrder: {
1902 1906
         DeviceNumber: []
1903 1907
       },
1904 1908
       displaceLiquiPartOptions: [],
1905 1909
       operatorMaps: {},
1906 1910
       complications: [
1907
-        '低血压',
1908
-        '高血压',
1909
-        '心律失常',
1910
-        '头晕',
1911
-        '头痛',
1912
-        '呕吐',
1913
-        '抽搐',
1914
-        '出血',
1915
-        '心衰',
1916
-        '腹痛'
1911
+        "低血压",
1912
+        "高血压",
1913
+        "心律失常",
1914
+        "头晕",
1915
+        "头痛",
1916
+        "呕吐",
1917
+        "抽搐",
1918
+        "出血",
1919
+        "心衰",
1920
+        "腹痛"
1917 1921
       ],
1918 1922
       jilurow: 0,
1919 1923
       advice_jilurow: 0,
1920 1924
       loading: false,
1921
-      orgname: '',
1925
+      orgname: "",
1922 1926
       patientInfo_gender_1: false,
1923 1927
       patientInfo_gender_2: false,
1924 1928
       patientInfo_source_2: false,
@@ -1931,30 +1935,30 @@ export default {
1931 1935
       dialysateFormulationOptions: {},
1932 1936
       totollength: 0,
1933 1937
       queryParams: {
1934
-        xtdate: '',
1935
-        xtno: ''
1938
+        xtdate: "",
1939
+        xtno: ""
1936 1940
       },
1937 1941
       patientInfo: {
1938
-        birth: '',
1939
-        age: '',
1942
+        birth: "",
1943
+        age: "",
1940 1944
         DialysisSchedule: {
1941
-          device_number: { number: '' },
1942
-          device_zone: { name: '' }
1945
+          device_number: { number: "" },
1946
+          device_zone: { name: "" }
1943 1947
         },
1944 1948
         gender: 0
1945 1949
       },
1946 1950
       predialysis: {
1947
-        score: '',
1948
-        internal_fistula: '',
1949
-        internal_fistula_skin: '',
1950
-        catheter: '',
1951
-        blood_access_part_opera_name: ''
1951
+        score: "",
1952
+        internal_fistula: "",
1953
+        internal_fistula_skin: "",
1954
+        catheter: "",
1955
+        blood_access_part_opera_name: ""
1952 1956
       },
1953 1957
       afterdialysis: {
1954
-        complications_index: ''
1958
+        complications_index: ""
1955 1959
       },
1956 1960
       prescription: {
1957
-        dialysate_formulation_name: '',
1961
+        dialysate_formulation_name: "",
1958 1962
         device: {}
1959 1963
       },
1960 1964
       advices: [],
@@ -1975,110 +1979,110 @@ export default {
1975 1979
 
1976 1980
       AlPanel: {
1977 1981
         id: 0,
1978
-        name: '',
1982
+        name: "",
1979 1983
         type: 1,
1980 1984
         shouji: 2,
1981 1985
         weichi: 2,
1982 1986
         zongliang: 2,
1983 1987
         gaimingcheng: -1,
1984 1988
         gaijiliang: -1,
1985
-        shouji_unit: 'mg',
1986
-        weichi_unit: 'mg/h',
1987
-        zongliang_unit: 'mg',
1988
-        gaimingcheng_unit: '',
1989
-        gaijiliang_unit: ''
1989
+        shouji_unit: "mg",
1990
+        weichi_unit: "mg/h",
1991
+        zongliang_unit: "mg",
1992
+        gaimingcheng_unit: "",
1993
+        gaijiliang_unit: ""
1990 1994
       }
1991
-    }
1995
+    };
1992 1996
   },
1993 1997
   methods: {
1994 1998
     getDisplaceLiquiPart: function(val) {
1995
-      let displace_liqui_part_name = '/'
1996
-      const displace_liqui_part = this.displaceLiquiPartOptions
1999
+      let displace_liqui_part_name = "/";
2000
+      const displace_liqui_part = this.displaceLiquiPartOptions;
1997 2001
       for (let i = 0; i < displace_liqui_part.length; i++) {
1998 2002
         if (displace_liqui_part[i].id == val) {
1999
-          displace_liqui_part_name = displace_liqui_part[i].name
2003
+          displace_liqui_part_name = displace_liqui_part[i].name;
2000 2004
         }
2001 2005
       }
2002
-      return displace_liqui_part_name
2006
+      return displace_liqui_part_name;
2003 2007
     },
2004 2008
     replacementWaysById: function(val) {
2005
-      let replacementWaysname = '/'
2009
+      let replacementWaysname = "/";
2006 2010
       // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2007 2011
 
2008 2012
       for (let i = 0; i < this.replacementWays.length; i++) {
2009 2013
         if (this.replacementWays[i].id == val) {
2010
-          replacementWaysname = this.replacementWays[i].name
2014
+          replacementWaysname = this.replacementWays[i].name;
2011 2015
         }
2012 2016
       }
2013
-      return replacementWaysname
2017
+      return replacementWaysname;
2014 2018
     },
2015 2019
     QueryPartById: function(val) {
2016
-      let vascular_access_part_name = '/'
2017
-      const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
2020
+      let vascular_access_part_name = "/";
2021
+      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
2018 2022
 
2019 2023
       for (let i = 0; i < vascular_access.length; i++) {
2020 2024
         if (vascular_access[i].id == val) {
2021
-          vascular_access_part_name = vascular_access[i].name
2025
+          vascular_access_part_name = vascular_access[i].name;
2022 2026
         }
2023 2027
       }
2024
-      return vascular_access_part_name
2028
+      return vascular_access_part_name;
2025 2029
     },
2026 2030
     getAdminUser(id) {
2027 2031
       if (id == 0) {
2028
-        return ''
2032
+        return "";
2029 2033
       }
2030 2034
       if (id == undefined) {
2031
-        return ''
2035
+        return "";
2032 2036
       }
2033 2037
       for (let i = 0; i < this.adminUser.length; i++) {
2034 2038
         if (this.adminUser[i].id == id) {
2035
-          return this.adminUser[i].name
2039
+          return this.adminUser[i].name;
2036 2040
         }
2037 2041
       }
2038 2042
     },
2039 2043
     getTime(value, temp) {
2040 2044
       if (value == 0) {
2041
-        return ''
2045
+        return "";
2042 2046
       }
2043 2047
       if (value != undefined) {
2044
-        return uParseTime(value, temp)
2048
+        return uParseTime(value, temp);
2045 2049
       }
2046
-      return ''
2050
+      return "";
2047 2051
     },
2048 2052
     getUnit: function(val) {
2049 2053
       switch (val) {
2050 2054
         case 1:
2051
-          return 'g'
2052
-          break
2055
+          return "g";
2056
+          break;
2053 2057
         case 2:
2054
-          return 'ml'
2055
-          break
2058
+          return "ml";
2059
+          break;
2056 2060
       }
2057 2061
     },
2058 2062
     printThisPage() {
2059
-      var ptime = Math.round(new Date().getTime() / 1000)
2060
-      this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
2063
+      var ptime = Math.round(new Date().getTime() / 1000);
2064
+      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
2061 2065
 
2062 2066
       const style =
2063
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
2067
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
2064 2068
 
2065 2069
       if (this.org_template_info.template_id == 1) {
2066 2070
         printJS({
2067
-          printable: 'dialysis-print-box',
2068
-          type: 'html',
2071
+          printable: "dialysis-print-box",
2072
+          type: "html",
2069 2073
           style: style,
2070 2074
           scanStyles: false
2071
-        })
2075
+        });
2072 2076
       } else if (
2073 2077
         this.org_template_info.template_id == 2 ||
2074 2078
         this.org_template_info.template_id == 0
2075 2079
       ) {
2076 2080
         printJS({
2077
-          printable: 'dialysis-print-box-1',
2078
-          type: 'html',
2081
+          printable: "dialysis-print-box-1",
2082
+          type: "html",
2079 2083
           style: style,
2080 2084
           scanStyles: false
2081
-        })
2085
+        });
2082 2086
       }
2083 2087
     },
2084 2088
     getNumber() {
@@ -2086,119 +2090,119 @@ export default {
2086 2090
         return (
2087 2091
           this.patientInfo.DialysisSchedule.device_zone.name +
2088 2092
           this.dialysisOrder.DeviceNumber.number
2089
-        )
2093
+        );
2090 2094
       } else {
2091 2095
         return (
2092 2096
           this.patientInfo.DialysisSchedule.device_zone.name +
2093 2097
           this.patientInfo.DialysisSchedule.device_number.number
2094
-        )
2098
+        );
2095 2099
       }
2096 2100
     },
2097 2101
 
2098 2102
     getXuserName(id) {
2099 2103
       if (id <= 0) {
2100
-        return ''
2104
+        return "";
2101 2105
       }
2102
-      var name = ''
2103
-      if (this.users == null || typeof this.users.length === 'undefined') {
2104
-        return name
2106
+      var name = "";
2107
+      if (this.users == null || typeof this.users.length === "undefined") {
2108
+        return name;
2105 2109
       }
2106
-      var leng = this.users.length
2110
+      var leng = this.users.length;
2107 2111
       if (leng == 0) {
2108
-        return name
2112
+        return name;
2109 2113
       }
2110 2114
       for (let index = 0; index < leng; index++) {
2111 2115
         if (this.users[index].id == id) {
2112
-          name = this.users[index].name
2113
-          break
2116
+          name = this.users[index].name;
2117
+          break;
2114 2118
         }
2115 2119
       }
2116
-      return name
2120
+      return name;
2117 2121
     },
2118 2122
     setAdminUserES(id) {
2119 2123
       if (id == 0) {
2120
-        return ''
2124
+        return "";
2121 2125
       }
2122 2126
       if (id in this.operatorMaps) {
2123
-        return this.operatorMaps[id].url
2127
+        return this.operatorMaps[id].url;
2124 2128
       } else {
2125
-        return ''
2129
+        return "";
2126 2130
       }
2127 2131
     },
2128 2132
     modeName(mode_id) {
2129
-      return typeof this.modeOptions[mode_id] !== 'undefined' &&
2130
-        typeof this.modeOptions[mode_id].name !== 'undefined'
2133
+      return typeof this.modeOptions[mode_id] !== "undefined" &&
2134
+        typeof this.modeOptions[mode_id].name !== "undefined"
2131 2135
         ? this.modeOptions[mode_id].name
2132
-        : ''
2136
+        : "";
2133 2137
     },
2134 2138
     getDialysisRecord() {
2135
-      this.loading = true
2139
+      this.loading = true;
2136 2140
 
2137 2141
       // getDialysisRecord(this.queryParams).then(response => {
2138
-      var response = this.childResponse
2142
+      var response = this.childResponse;
2139 2143
       if (response.data.state == 1) {
2140
-        this.adminUser = response.data.data.users
2144
+        this.adminUser = response.data.data.users;
2141 2145
 
2142
-        this.users = response.data.data.users
2143
-        this.patientInfo = response.data.data.patientInfo
2146
+        this.users = response.data.data.users;
2147
+        this.patientInfo = response.data.data.patientInfo;
2144 2148
 
2145 2149
         this.patientInfo.birth = uParseTime(
2146 2150
           this.patientInfo.birthday,
2147
-          '{y}-{m}-{d}'
2148
-        )
2151
+          "{y}-{m}-{d}"
2152
+        );
2149 2153
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
2150 2154
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
2151 2155
           this.patientInfo.first_dialysis_date = uParseTime(
2152 2156
             response.data.data.patientInfo.first_dialysis_date,
2153
-            '{y}-{m}-{d}'
2154
-          )
2157
+            "{y}-{m}-{d}"
2158
+          );
2155 2159
         } else {
2156
-          this.patientInfo.first_dialysis_date = ''
2160
+          this.patientInfo.first_dialysis_date = "";
2157 2161
         }
2158
-        this.check = response.data.data.check
2159
-        this.xtdate = response.data.data.xtdate
2160
-        this.predialysis = response.data.data.PredialysisEvaluation
2162
+        this.check = response.data.data.check;
2163
+        this.xtdate = response.data.data.xtdate;
2164
+        this.predialysis = response.data.data.PredialysisEvaluation;
2161 2165
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
2162 2166
           this.predialysis.blood_access_part_opera_id
2163
-        )
2164
-        this.afterdialysis = response.data.data.AssessmentAfterDislysis
2165
-        this.operators = response.data.data.operators
2167
+        );
2168
+        this.afterdialysis = response.data.data.AssessmentAfterDislysis;
2169
+        this.operators = response.data.data.operators;
2166 2170
         this.dialysisOrder =
2167 2171
           response.data.data.dialysisOrder === null
2168 2172
             ? null
2169
-            : response.data.data.dialysisOrder
2173
+            : response.data.data.dialysisOrder;
2170 2174
 
2171 2175
         if (this.operators.length > 0) {
2172
-          var operatorsLen = this.operators.length
2176
+          var operatorsLen = this.operators.length;
2173 2177
           for (var index = 0; index < operatorsLen; index++) {
2174 2178
             this.$set(
2175 2179
               this.operatorMaps,
2176 2180
               this.operators[index].creator,
2177 2181
               this.operators[index]
2178
-            )
2182
+            );
2179 2183
           }
2180 2184
         }
2181 2185
 
2182
-        this.afterdialysis.txqnx = -1
2183
-        if (this.afterdialysis.cruor.indexOf('0度') > -1) {
2184
-          this.afterdialysis.txqnx = 0
2186
+        this.afterdialysis.txqnx = -1;
2187
+        if (this.afterdialysis.cruor.indexOf("0度") > -1) {
2188
+          this.afterdialysis.txqnx = 0;
2185 2189
         }
2186
-        if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
2187
-          this.afterdialysis.txqnx = 1
2190
+        if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
2191
+          this.afterdialysis.txqnx = 1;
2188 2192
         }
2189
-        if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
2190
-          this.afterdialysis.txqnx = 2
2193
+        if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
2194
+          this.afterdialysis.txqnx = 2;
2191 2195
         }
2192
-        if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
2193
-          this.afterdialysis.txqnx = 3
2196
+        if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
2197
+          this.afterdialysis.txqnx = 3;
2194 2198
         }
2195 2199
 
2196 2200
         this.afterdialysis.complications = this.afterdialysis.complication.split(
2197
-          ','
2198
-        )
2199
-        this.afterdialysis.complications_other = []
2200
-        this.afterdialysis.complications_index = []
2201
-        var acllen = this.afterdialysis.complications.length
2201
+          ","
2202
+        );
2203
+        this.afterdialysis.complications_other = [];
2204
+        this.afterdialysis.complications_index = [];
2205
+        var acllen = this.afterdialysis.complications.length;
2202 2206
         for (let index = 0; index < acllen; index++) {
2203 2207
           if (
2204 2208
             this.complications.indexOf(
@@ -2207,7 +2211,7 @@ export default {
2207 2211
           ) {
2208 2212
             this.afterdialysis.complications_index.push(
2209 2213
               this.afterdialysis.complications[index]
2210
-            )
2214
+            );
2211 2215
           } else if (
2212 2216
             this.complications.indexOf(
2213 2217
               this.afterdialysis.complications[index]
@@ -2218,35 +2222,35 @@ export default {
2218 2222
           ) {
2219 2223
             this.afterdialysis.complications_other.push(
2220 2224
               this.afterdialysis.complications[index]
2221
-            )
2225
+            );
2222 2226
           }
2223 2227
         }
2224 2228
         this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
2225
-          ','
2226
-        )
2229
+          ","
2230
+        );
2227 2231
 
2228
-        this.prescription = response.data.data.dialysisPrescription
2232
+        this.prescription = response.data.data.dialysisPrescription;
2229 2233
 
2230 2234
         this.receiverTreatmentAccess =
2231
-          response.data.data.receiverTreatmentAccess
2232
-        this.prescription.mode = this.modeName(this.prescription.mode_id)
2233
-        var rwLen = this.replacementWays.length
2234
-        this.prescription.replacement = ''
2235
+          response.data.data.receiverTreatmentAccess;
2236
+        this.prescription.mode = this.modeName(this.prescription.mode_id);
2237
+        var rwLen = this.replacementWays.length;
2238
+        this.prescription.replacement = "";
2235 2239
         for (let index = 0; index < rwLen; index++) {
2236 2240
           if (
2237 2241
             this.replacementWays[index].id == this.prescription.replacement_way
2238 2242
           ) {
2239
-            this.prescription.replacement = this.replacementWays[index].name
2240
-            break
2243
+            this.prescription.replacement = this.replacementWays[index].name;
2244
+            break;
2241 2245
           }
2242 2246
         }
2243 2247
 
2244 2248
         this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
2245 2249
           this.prescription.dialysate_formulation
2246
-        )
2250
+        );
2247 2251
 
2248
-        var paLen = this.perfusionApparatus.length
2249
-        this.prescription.perfusion_apparatus_name = ''
2252
+        var paLen = this.perfusionApparatus.length;
2253
+        this.prescription.perfusion_apparatus_name = "";
2250 2254
         for (let index = 0; index < paLen; index++) {
2251 2255
           if (
2252 2256
             this.perfusionApparatus[index].id ==
@@ -2254,123 +2258,122 @@ export default {
2254 2258
           ) {
2255 2259
             this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
2256 2260
               index
2257
-            ].name
2258
-            break
2261
+            ].name;
2262
+            break;
2259 2263
           }
2260 2264
         }
2261 2265
 
2262
-        var acLen = this.anticoagulantsConfit.length
2263
-        var thisALID = this.prescription.anticoagulant
2264
-        this.prescription.anticoagulant_name = ''
2266
+        var acLen = this.anticoagulantsConfit.length;
2267
+        var thisALID = this.prescription.anticoagulant;
2268
+        this.prescription.anticoagulant_name = "";
2265 2269
 
2266 2270
         if (
2267
-          typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
2271
+          typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
2268 2272
           this.anticoagulantsConfit[thisALID] != null
2269 2273
         ) {
2270 2274
           this.prescription.anticoagulant_name = this.anticoagulantsConfit[
2271 2275
             thisALID
2272
-          ].name
2273
-          this.AlPanel = this.anticoagulantsConfit[thisALID]
2276
+          ].name;
2277
+          this.AlPanel = this.anticoagulantsConfit[thisALID];
2274 2278
         }
2275 2279
 
2276
-        this.advices = response.data.data.advices
2277
-        this.monitors = response.data.data.monitors
2278
-        this.summary = response.data.data.summary
2279
-        this.org_template_info = response.data.data.org_template_info
2280
+        this.advices = response.data.data.advices;
2281
+        this.monitors = response.data.data.monitors;
2282
+        this.summary = response.data.data.summary;
2283
+        this.org_template_info = response.data.data.org_template_info;
2280 2284
 
2281 2285
         if (this.monitors.length <= 6) {
2282
-          var nl = 6
2283
-          this.print_length = 6
2286
+          var nl = 6;
2287
+          this.print_length = 6;
2284 2288
 
2285 2289
           for (let index = 0; index < nl; index++) {
2286 2290
             if (
2287 2291
               this.monitors[index] == undefined ||
2288 2292
               this.monitors[index].length <= 0
2289 2293
             ) {
2290
-              this.monitors2.push([])
2294
+              this.monitors2.push([]);
2291 2295
             } else {
2292
-              continue
2296
+              continue;
2293 2297
             }
2294 2298
           }
2295 2299
         }
2296 2300
 
2297
-        var tempmonitorflag = true
2301
+        var tempmonitorflag = true;
2298 2302
         for (let index = 0; index < this.monitors.length; index++) {
2299
-          const monitor = this.monitors[index]
2300
-          this.monitors[index].end = ''
2303
+          const monitor = this.monitors[index];
2304
+          this.monitors[index].end = "";
2301 2305
           if (Object.keys(monitor).length > 0 && index > 1) {
2302 2306
             if (monitor.operate_time == this.dialysisOrder.end_time) {
2303
-              this.monitors[index].end = '【结束透析】'
2304
-              tempmonitorflag = false
2307
+              this.monitors[index].end = "【结束透析】";
2308
+              tempmonitorflag = false;
2305 2309
             }
2306 2310
             if (tempmonitorflag && index == this.monitors.length - 1) {
2307
-              this.monitors[index].end = '【结束透析】'
2311
+              this.monitors[index].end = "【结束透析】";
2308 2312
             }
2309 2313
           }
2310 2314
         }
2311 2315
 
2312
-        this.jilurow = this.monitors.length + 1
2316
+        this.jilurow = this.monitors.length + 1;
2313 2317
 
2314
-        this.advice_jilurow = this.advices.length + 1
2318
+        this.advice_jilurow = this.advices.length + 1;
2315 2319
 
2316
-        var childMap = {}
2320
+        var childMap = {};
2317 2321
         for (const index in this.advices) {
2318 2322
           if (this.advices[index].parent_id == 0) {
2319
-            continue
2323
+            continue;
2320 2324
           }
2321 2325
           if (!(this.advices[index].parent_id in childMap)) {
2322
-            childMap[this.advices[index].parent_id] = []
2326
+            childMap[this.advices[index].parent_id] = [];
2323 2327
           }
2324
-          childMap[this.advices[index].parent_id].push(this.advices[index])
2328
+          childMap[this.advices[index].parent_id].push(this.advices[index]);
2325 2329
         }
2326 2330
 
2327
-        var advices = []
2331
+        var advices = [];
2328 2332
         for (const index in this.advices) {
2329 2333
           if (this.advices[index].parent_id > 0) {
2330
-            continue
2334
+            continue;
2331 2335
           }
2332
-          var item = this.advices[index]
2336
+          var item = this.advices[index];
2333 2337
           if (item.id in childMap) {
2334
-            item.children = childMap[item.id]
2338
+            item.children = childMap[item.id];
2335 2339
           } else {
2336
-            item.children = []
2340
+            item.children = [];
2337 2341
           }
2338
-          advices.push(item)
2342
+          advices.push(item);
2339 2343
         }
2340 2344
 
2341
-        var leftAdvice = []
2342
-        var rightAdvice = []
2343
-        var adlen = advices.length
2345
+        var leftAdvice = [];
2346
+        var rightAdvice = [];
2347
+        var adlen = advices.length;
2344 2348
 
2345
-        var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2349
+        var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2346 2350
         for (var i = 0; i < halfLen; i++) {
2347
-          leftAdvice.push(advices[i])
2348
-          rightAdvice.push(advices[i + halfLen])
2351
+          leftAdvice.push(advices[i]);
2352
+          rightAdvice.push(advices[i + halfLen]);
2349 2353
         }
2350 2354
         if (halfLen < 5) {
2351
-          var nl = 5 - leftAdvice.length
2355
+          var nl = 5 - leftAdvice.length;
2352 2356
           for (let index = 0; index < nl; index++) {
2353
-            leftAdvice.push([])
2357
+            leftAdvice.push([]);
2354 2358
           }
2355
-          var nl = 5 - rightAdvice.length
2359
+          var nl = 5 - rightAdvice.length;
2356 2360
           for (let index = 0; index < nl; index++) {
2357
-            rightAdvice.push([])
2361
+            rightAdvice.push([]);
2358 2362
           }
2359 2363
         }
2360 2364
 
2361
-        this.advices = []
2365
+        this.advices = [];
2362 2366
         for (var i = 0; i < halfLen; i++) {
2363
-          var item = []
2364
-          item.push(leftAdvice[i])
2365
-          item.push(rightAdvice[i])
2366
-          this.advices.push(item)
2367
+          var item = [];
2368
+          item.push(leftAdvice[i]);
2369
+          item.push(rightAdvice[i]);
2370
+          this.advices.push(item);
2367 2371
         }
2368
-        this.loading = false
2372
+        this.loading = false;
2369 2373
         this.doctor_advices =
2370
-          response.data.data.advices == null ? [] : response.data.data.advices
2371
-
2374
+          response.data.data.advices == null ? [] : response.data.data.advices;
2372 2375
         for (let index = 0; index < this.doctor_advices.length; index++) {
2373
-          this.doctor_advices[index]['isShow'] = 2
2376
+          this.doctor_advices[index]["isShow"] = 2;
2374 2377
         }
2375 2378
 
2376 2379
         // if (this.doctor_advices.length > 0) {
@@ -2452,57 +2455,57 @@ export default {
2452 2455
         //   }
2453 2456
         // }
2454 2457
         if (this.doctor_advices.length <= 6) {
2455
-          var nl = 6
2456
-          this.print_length = 6
2458
+          var nl = 6;
2459
+          this.print_length = 6;
2457 2460
 
2458 2461
           for (let index = 0; index < nl; index++) {
2459 2462
             if (
2460 2463
               this.doctor_advices[index] == undefined ||
2461 2464
               this.doctor_advices[index].length <= 0
2462 2465
             ) {
2463
-              this.doctor_advices.push([])
2466
+              this.doctor_advices.push([]);
2464 2467
             } else {
2465
-              continue
2468
+              continue;
2466 2469
             }
2467 2470
           }
2468 2471
         }
2469 2472
 
2470
-        this.totollength = this.doctor_advices.length + this.monitors.length
2473
+        this.totollength = this.doctor_advices.length + this.monitors.length;
2471 2474
         if (this.totollength > 18) {
2472
-          var temp_advice_length = 17 - this.monitors.length
2473
-          var doctor_advices_1 = []
2474
-          var doctor_advices_2 = []
2475
+          var temp_advice_length = 17 - this.monitors.length;
2476
+          var doctor_advices_1 = [];
2477
+          var doctor_advices_2 = [];
2475 2478
           for (let index = 0; index < this.doctor_advices.length; index++) {
2476
-            const element = this.doctor_advices[index]
2479
+            const element = this.doctor_advices[index];
2477 2480
             if (temp_advice_length > index) {
2478
-              doctor_advices_1.push(element)
2481
+              doctor_advices_1.push(element);
2479 2482
             } else {
2480
-              doctor_advices_2.push(element)
2483
+              doctor_advices_2.push(element);
2481 2484
             }
2482 2485
           }
2483
-          this.doctor_advices = doctor_advices_1
2484
-          this.doctor_advices_2 = doctor_advices_2
2486
+          this.doctor_advices = doctor_advices_1;
2487
+          this.doctor_advices_2 = doctor_advices_2;
2485 2488
         }
2486
-        console.log(this.advice_groups)
2489
+        console.log(this.advice_groups);
2487 2490
       } else {
2488
-        this.loading = false
2489
-        this.$message.error('请求数据失败')
2490
-        return false
2491
+        this.loading = false;
2492
+        this.$message.error("请求数据失败");
2493
+        return false;
2491 2494
       }
2492 2495
       // })
2493 2496
     },
2494 2497
 
2495 2498
     bloodAccessParOperaName(id) {
2496 2499
       if (id in this.bloodAccessParOpera) {
2497
-        return this.bloodAccessParOpera[id].name
2500
+        return this.bloodAccessParOpera[id].name;
2498 2501
       }
2499
-      return ''
2502
+      return "";
2500 2503
     },
2501 2504
     dialysateFormulationName(id) {
2502 2505
       if (id in this.dialysateFormulationOptions) {
2503
-        return this.dialysateFormulationOptions[id].name
2506
+        return this.dialysateFormulationOptions[id].name;
2504 2507
       }
2505
-      return ''
2508
+      return "";
2506 2509
     },
2507 2510
     getAge: function(val) {
2508 2511
       if (
@@ -2510,12 +2513,12 @@ export default {
2510 2513
         this.org_template_info.template_id == 0
2511 2514
       ) {
2512 2515
         if (val.age == 0) {
2513
-          return jsGetAge(val.birth, '-')
2516
+          return jsGetAge(val.birth, "-");
2514 2517
         } else {
2515
-          return val.age
2518
+          return val.age;
2516 2519
         }
2517 2520
       } else {
2518
-        return jsGetAge(val.birth, '-')
2521
+        return jsGetAge(val.birth, "-");
2519 2522
       }
2520 2523
     },
2521 2524
     newAdviceGroupObject: function() {
@@ -2530,110 +2533,110 @@ export default {
2530 2533
           // exec_time: 0,
2531 2534
           // checker: 0,
2532 2535
         }
2533
-      )
2536
+      );
2534 2537
     },
2535 2538
     getFloat: function(x) {
2536 2539
       if (x == 0) {
2537
-        return '/'
2540
+        return "/";
2538 2541
       }
2539
-      if (x != '.') {
2540
-        var f = Math.round(x * 100) / 100
2541
-        var s = f.toString()
2542
-        var rs = s.indexOf('.')
2542
+      if (x != ".") {
2543
+        var f = Math.round(x * 100) / 100;
2544
+        var s = f.toString();
2545
+        var rs = s.indexOf(".");
2543 2546
         if (rs <= 0) {
2544
-          rs = s.length
2545
-          s += '.'
2547
+          rs = s.length;
2548
+          s += ".";
2546 2549
         }
2547 2550
         while (s.length <= rs + 1) {
2548
-          s += '0'
2551
+          s += "0";
2549 2552
         }
2550
-        return s
2553
+        return s;
2551 2554
       } else {
2552
-        return '0.0'
2555
+        return "0.0";
2553 2556
       }
2554 2557
     }
2555 2558
   },
2556 2559
   watch: {
2557
-    'patientInfo.gender': function() {
2560
+    "patientInfo.gender": function() {
2558 2561
       if (this.patientInfo.gender == 1) {
2559
-        this.patientInfo_gender_1 = true
2560
-        this.patientInfo_gender_2 = false
2562
+        this.patientInfo_gender_1 = true;
2563
+        this.patientInfo_gender_2 = false;
2561 2564
       } else if (this.patientInfo.gender == 2) {
2562
-        this.patientInfo_gender_2 = true
2563
-        this.patientInfo_gender_1 = false
2565
+        this.patientInfo_gender_2 = true;
2566
+        this.patientInfo_gender_1 = false;
2564 2567
       } else {
2565
-        this.patientInfo_gender_2 = false
2566
-        this.patientInfo_gender_1 = false
2568
+        this.patientInfo_gender_2 = false;
2569
+        this.patientInfo_gender_1 = false;
2567 2570
       }
2568 2571
     },
2569
-    'patientInfo.source': function() {
2572
+    "patientInfo.source": function() {
2570 2573
       if (this.patientInfo.source == 1) {
2571
-        this.patientInfo_source_1 = true
2572
-        this.patientInfo_source_2 = false
2574
+        this.patientInfo_source_1 = true;
2575
+        this.patientInfo_source_2 = false;
2573 2576
       } else if (this.patientInfo.source == 2) {
2574
-        this.patientInfo_source_2 = true
2575
-        this.patientInfo_source_1 = false
2577
+        this.patientInfo_source_2 = true;
2578
+        this.patientInfo_source_1 = false;
2576 2579
       } else {
2577
-        this.patientInfo_source_2 = false
2578
-        this.patientInfo_source_1 = false
2580
+        this.patientInfo_source_2 = false;
2581
+        this.patientInfo_source_1 = false;
2579 2582
       }
2580 2583
     }
2581 2584
   },
2582 2585
   created() {
2583
-    var xtuser = this.$store.getters.xt_user
2584
-    this.orgname = xtuser.org.org_name
2586
+    var xtuser = this.$store.getters.xt_user;
2587
+    this.orgname = xtuser.org.org_name;
2585 2588
     // this.orgname = "遂溪方济医院";
2586
-    this.modeOptions = this.$store.getters.treatment_mode
2587
-    this.replacementWays = this.$store.getters.replacement_ways
2588
-    this.perfusionApparatus = this.$store.getters.perfusion_apparatus
2589
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2590
-    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
2589
+    this.modeOptions = this.$store.getters.treatment_mode;
2590
+    this.replacementWays = this.$store.getters.replacement_ways;
2591
+    this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2592
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2593
+    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
2591 2594
 
2592
-    this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
2595
+    this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
2593 2596
     this.blood_access_part_opera = getDataConfig(
2594
-      'hemodialysis',
2595
-      'vascular_access_desc'
2596
-    )
2597
+      "hemodialysis",
2598
+      "vascular_access_desc"
2599
+    );
2597 2600
 
2598 2601
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
2599 2602
 
2600 2603
     var bloodAccessParOpera = getDataConfig(
2601
-      'hemodialysis',
2602
-      'vascular_access_desc'
2603
-    )
2604
+      "hemodialysis",
2605
+      "vascular_access_desc"
2606
+    );
2604 2607
     for (var key in bloodAccessParOpera) {
2605 2608
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2606
-        bloodAccessParOpera[key]
2609
+        bloodAccessParOpera[key];
2607 2610
     }
2608 2611
 
2609 2612
     var dialysateFormulationOptions = getDataConfig(
2610
-      'hemodialysis',
2611
-      'dialysate_formulation'
2612
-    )
2613
+      "hemodialysis",
2614
+      "dialysate_formulation"
2615
+    );
2613 2616
     for (var key in dialysateFormulationOptions) {
2614 2617
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
2615
-        dialysateFormulationOptions[key]
2618
+        dialysateFormulationOptions[key];
2616 2619
     }
2617 2620
 
2618
-    const xtdate = this.$route.query && this.$route.query.xtdate
2619
-    console.log('xtdate', xtdate)
2620
-    const xtno = this.$route.query && this.$route.query.xtno
2621
-    console.log('xtno', xtno)
2621
+    const xtdate = this.$route.query && this.$route.query.xtdate;
2622
+    console.log("xtdate", xtdate);
2623
+    const xtno = this.$route.query && this.$route.query.xtno;
2624
+    console.log("xtno", xtno);
2622 2625
     if (
2623
-      typeof xtdate === 'string' &&
2626
+      typeof xtdate === "string" &&
2624 2627
       xtdate.length > 0 &&
2625
-      typeof xtno === 'string' &&
2628
+      typeof xtno === "string" &&
2626 2629
       xtno.length > 0
2627 2630
     ) {
2628
-      this.queryParams.xtdate = xtdate
2629
-      this.queryParams.xtno = xtno
2630
-      this.getDialysisRecord()
2631
+      this.queryParams.xtdate = xtdate;
2632
+      this.queryParams.xtno = xtno;
2633
+      this.getDialysisRecord();
2631 2634
     } else {
2632
-      this.$message.error('参数不齐')
2633
-      return false
2635
+      this.$message.error("参数不齐");
2636
+      return false;
2634 2637
     }
2635 2638
   }
2636
-}
2639
+};
2637 2640
 </script>
2638 2641
 
2639 2642
 <style>

+ 20 - 20
src/xt_pages/management/home.vue Ver fichero

@@ -3447,29 +3447,29 @@ export default {
3447 3447
               ].id
3448 3448
             }
3449 3449
 
3450
-            DeletePlans({ ids: ids })
3451
-              .then(response => {
3452
-                // eslint-disable-next-line eqeqeq
3453
-                if (response.data.state == 1) {
3454
-                  // eslint-disable-next-line no-unused-vars
3455
-                  var msg = response.data.data.msg
3456
-                  var planDataLength = this.planData.length
3457
-                  for (let index = planDataLength - 1; index >= 0; index--) {
3458
-                    if (this.planData[index].id in idMap) {
3459
-                      this.planData.splice(index, 1)
3460
-                    }
3450
+            DeletePlans({ ids: ids }).then(response => {
3451
+              console.log('ids', ids)
3452
+              // eslint-disable-next-line eqeqeq
3453
+              if (response.data.state == 1) {
3454
+                // eslint-disable-next-line no-unused-vars
3455
+                var msg = response.data.data.msg
3456
+                var planDataLength = this.planData.length
3457
+                for (let index = planDataLength - 1; index >= 0; index--) {
3458
+                  if (this.planData[index].id in idMap) {
3459
+                    this.planData.splice(index, 1)
3461 3460
                   }
3462
-                  var planDataLengths = this.tableData.length
3463
-                  for (let index = planDataLengths - 1; index >= 0; index--) {
3464
-                    if (this.tableData[index].id in idMap) {
3465
-                      this.tableData.splice(index, 1)
3466
-                    }
3461
+                }
3462
+                var planDataLengths = this.tableData.length
3463
+                for (let index = planDataLengths - 1; index >= 0; index--) {
3464
+                  if (this.tableData[index].id in idMap) {
3465
+                    this.tableData.splice(index, 1)
3467 3466
                   }
3468
-                  this.$message.success('删除消毒计划成功')
3469
-                } else {
3470
-                  this.$message.error('删除消毒计划失败')
3471 3467
                 }
3472
-              })
3468
+                this.$message.success('删除消毒计划成功')
3469
+              } else {
3470
+                this.$message.error('删除消毒计划失败')
3471
+              }
3472
+            })
3473 3473
               .catch(e => {})
3474 3474
           })
3475 3475
           .catch(() => {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1622 - 1292
src/xt_pages/user/components/EditGroupAdvice.vue


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 819 - 806
src/xt_pages/user/doctorAdvice.vue