Sfoglia il codice sorgente

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 5 anni fa
parent
commit
e5be85f5fb
31 ha cambiato i file con 10782 aggiunte e 7845 eliminazioni
  1. 7 12
      src/api/data.js
  2. 31 2
      src/store/modules/globalConfig.js
  3. 2 1
      src/styles/index.scss
  4. 8 3
      src/views/layout/components/Navbar.vue
  5. 30 4
      src/xt_pages/data/components/tableson.vue
  6. 798 686
      src/xt_pages/data/prescription.vue
  7. 74 24
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  8. 289 116
      src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue
  9. 2455 2370
      src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue
  10. 346 280
      src/xt_pages/dialysis/batch_print/batch_print_order_other.vue
  11. 92 38
      src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue
  12. 53 9
      src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue
  13. 224 445
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  14. 12 1
      src/xt_pages/dialysis/bloodPresssWatch.vue
  15. 3 1
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  16. 3 3
      src/xt_pages/dialysis/details/NavIgation.vue
  17. 9 7
      src/xt_pages/dialysis/details/assessmentAfter.vue
  18. 13 13
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  19. 57 12
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  20. 13 2
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  21. 7 7
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  22. 29 26
      src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue
  23. 2425 1592
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  24. 31 4
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  25. 1444 507
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  26. 1 0
      src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue
  27. 992 643
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  28. 6 1
      src/xt_pages/user/components/PatientForm.vue
  29. 1275 1033
      src/xt_pages/user/dialysisSolution.vue
  30. 1 1
      src/xt_pages/workforce/components/tableWeeks.vue
  31. 52 2
      src/xt_pages/workforce/remind_print.vue

+ 7 - 12
src/api/data.js Vedi File

17
 }
17
 }
18
 
18
 
19
 export function updateChildConfig(params) {
19
 export function updateChildConfig(params) {
20
+  console.log('params', params)
20
   return request({
21
   return request({
21
     url: '/api/updatechildconfig',
22
     url: '/api/updatechildconfig',
22
     method: 'post',
23
     method: 'post',
40
   })
41
   })
41
 }
42
 }
42
 
43
 
43
-
44
-export function updateFieldIsShow(id,is_show) {
44
+export function updateFieldIsShow(id, is_show) {
45
   return request({
45
   return request({
46
-    url: '/api/filed/show?id='+id+'&is_show='+is_show,
47
-    method: 'post',
46
+    url: '/api/filed/show?id=' + id + '&is_show=' + is_show,
47
+    method: 'post'
48
   })
48
   })
49
 }
49
 }
50
 
50
 
51
-
52
-
53
-
54
-
55
 export function postPrintTemplate(params) {
51
 export function postPrintTemplate(params) {
56
   return request({
52
   return request({
57
-    url: '/api/print/template/commit?template_id='+params,
58
-    method: 'post',
53
+    url: '/api/print/template/commit?template_id=' + params,
54
+    method: 'post'
59
   })
55
   })
60
 }
56
 }
61
 
57
 
62
 export function getPrintTemplate() {
58
 export function getPrintTemplate() {
63
   return request({
59
   return request({
64
     url: '/api/print/template/get',
60
     url: '/api/print/template/get',
65
-    method: 'get',
61
+    method: 'get'
66
   })
62
   })
67
 }
63
 }
68
-

+ 31 - 2
src/store/modules/globalConfig.js Vedi File

557
         zongliang_unit: '',
557
         zongliang_unit: '',
558
         gaimingcheng_unit: 'ml',
558
         gaimingcheng_unit: 'ml',
559
         gaijiliang_unit: ''
559
         gaijiliang_unit: ''
560
+      },
561
+      6: {
562
+        id: 6,
563
+        name: '低分子肝素钙',
564
+        type: 1,
565
+        shouji: 1,
566
+        weichi: 1,
567
+        zongliang: 1,
568
+        gaimingcheng: -1,
569
+        gaijiliang: -1,
570
+        shouji_unit: 'iu',
571
+        weichi_unit: 'iu/h',
572
+        zongliang_unit: 'iu',
573
+        gaimingcheng_unit: '',
574
+        gaijiliang_unit: ''
575
+      },
576
+      7: {
577
+        id: 7,
578
+        name: '低分子肝素钠',
579
+        type: 1,
580
+        shouji: 1,
581
+        weichi: 1,
582
+        zongliang: 1,
583
+        gaimingcheng: -1,
584
+        gaijiliang: -1,
585
+        shouji_unit: 'iu',
586
+        weichi_unit: 'iu/h',
587
+        zongliang_unit: 'iu',
588
+        gaimingcheng_unit: '',
589
+        gaijiliang_unit: ''
560
       }
590
       }
561
     },
591
     },
562
     anticoagulants_set: {
592
     anticoagulants_set: {
2124
         name: 'A钝针'
2154
         name: 'A钝针'
2125
       }
2155
       }
2126
     ],
2156
     ],
2127
-    channels: [
2128
-      {
2157
+    channels: [{
2129
         id: 1,
2158
         id: 1,
2130
         name: '无'
2159
         name: '无'
2131
       },
2160
       },

+ 2 - 1
src/styles/index.scss Vedi File

544
   color: #3a8ee6;
544
   color: #3a8ee6;
545
 }
545
 }
546
 .el-table__body tr > td:hover {
546
 .el-table__body tr > td:hover {
547
-  background-color: #409eff;
547
+  background-color: #409eff !important;
548
+  color: #fff !important;
548
 }
549
 }

+ 8 - 3
src/views/layout/components/Navbar.vue Vedi File

99
             <el-dropdown-item command="modifyUserInfoAction"
99
             <el-dropdown-item command="modifyUserInfoAction"
100
               >个人信息</el-dropdown-item
100
               >个人信息</el-dropdown-item
101
             >
101
             >
102
-            <el-dropdown-item command="modifyOrgInfoAction"
102
+            <el-dropdown-item
103
+              command="modifyOrgInfoAction"
104
+              v-if="is_super_admin === 1"
103
               >机构信息</el-dropdown-item
105
               >机构信息</el-dropdown-item
104
             >
106
             >
105
             <el-dropdown-item divided command="logout">{{
107
             <el-dropdown-item divided command="logout">{{
143
     return {
145
     return {
144
       orgs: [],
146
       orgs: [],
145
       org_id: this.$store.getters.xt_user.org.id,
147
       org_id: this.$store.getters.xt_user.org.id,
146
-      org_name: this.$store.getters.xt_user.org.org_name
147
-
148
+      org_name: this.$store.getters.xt_user.org.org_name,
149
+      is_super_admin: 0
148
       // scrm_role_exist: $store.getters.xt_user.scrm_role_exist
150
       // scrm_role_exist: $store.getters.xt_user.scrm_role_exist
149
     };
151
     };
150
   },
152
   },
282
         console.log("org", this.orgs);
284
         console.log("org", this.orgs);
283
         var creator = response.data.data.creator;
285
         var creator = response.data.data.creator;
284
         console.log("creator", creator);
286
         console.log("creator", creator);
287
+        var admin = response.data.data.admin;
288
+        console.log("admin", admin);
289
+        this.is_super_admin = admin.is_super_admin;
285
         for (let i = 0; i < this.orgs.length; i++) {
290
         for (let i = 0; i < this.orgs.length; i++) {
286
           if (this.orgs[i].id == this.org_id) {
291
           if (this.orgs[i].id == this.org_id) {
287
             this.org_name = this.orgs[i].org_name;
292
             this.org_name = this.orgs[i].org_name;

+ 30 - 4
src/xt_pages/data/components/tableson.vue Vedi File

78
             <el-form-item label="排序" prop="order">
78
             <el-form-item label="排序" prop="order">
79
               <el-input
79
               <el-input
80
                 type="age"
80
                 type="age"
81
-                v-model.number="temp.order"
81
+                v-model.number="temp.orders"
82
                 placeholder="请输入排序值,数值越大,排序越靠前"
82
                 placeholder="请输入排序值,数值越大,排序越靠前"
83
               ></el-input>
83
               ></el-input>
84
             </el-form-item>
84
             </el-form-item>
202
         name: "",
202
         name: "",
203
         field_name: undefined,
203
         field_name: undefined,
204
         value: "",
204
         value: "",
205
-        remark: ""
205
+        remark: "",
206
+        orders: 0
206
       },
207
       },
207
       dialogFormVisible: false,
208
       dialogFormVisible: false,
208
       dialogStatus: "",
209
       dialogStatus: "",
269
         name: "",
270
         name: "",
270
         field_name: undefined,
271
         field_name: undefined,
271
         value: "",
272
         value: "",
272
-        remark: ""
273
+        remark: "",
274
+        orders: ""
273
       };
275
       };
274
     });
276
     });
275
   },
277
   },
291
       this.getList();
293
       this.getList();
292
     },
294
     },
293
     handleModifyStatus(row, status) {
295
     handleModifyStatus(row, status) {
296
+      if (
297
+        row.name == "无肝素" ||
298
+        row.name == "普通肝素" ||
299
+        row.name == "低分子钠" ||
300
+        row.name == "低分子钙" ||
301
+        row.name == "阿加曲班" ||
302
+        row.name == "枸橼酸钠"
303
+      ) {
304
+        this.$message.error("关联字段不能删除");
305
+        return false;
306
+      }
294
       this.temp = Object.assign({}, row); // copy obj
307
       this.temp = Object.assign({}, row); // copy obj
295
       this.$confirm("此操作将永久删除该配置项, 是否继续?", "提示", {
308
       this.$confirm("此操作将永久删除该配置项, 是否继续?", "提示", {
296
         confirmButtonText: "确 定",
309
         confirmButtonText: "确 定",
337
         name: "",
350
         name: "",
338
         field_name: undefined,
351
         field_name: undefined,
339
         value: "",
352
         value: "",
340
-        remark: ""
353
+        remark: "",
354
+        orders: 0
341
       };
355
       };
342
     },
356
     },
343
     handleCreate() {
357
     handleCreate() {
374
       });
388
       });
375
     },
389
     },
376
     handleUpdate(row) {
390
     handleUpdate(row) {
391
+      if (
392
+        row.name == "无肝素" ||
393
+        row.name == "普通肝素" ||
394
+        row.name == "低分子钠" ||
395
+        row.name == "低分子钙" ||
396
+        row.name == "阿加曲班" ||
397
+        row.name == "枸橼酸钠"
398
+      ) {
399
+        this.$message.error("关联字段不能编辑");
400
+        return false;
401
+      }
402
+
377
       this.temp = Object.assign({}, row); // copy obj
403
       this.temp = Object.assign({}, row); // copy obj
378
       this.dialogStatus = "update";
404
       this.dialogStatus = "update";
379
       this.dialogFormVisible = true;
405
       this.dialogFormVisible = true;

File diff suppressed because it is too large
+ 798 - 686
src/xt_pages/data/prescription.vue


+ 74 - 24
src/xt_pages/dialysis/batch_print/batch_print_order.vue Vedi File

654
                           "
654
                           "
655
                         ></check-box>
655
                         ></check-box>
656
                         ( 首剂
656
                         ( 首剂
657
-                        <div class="under_line" style="width: 30px;">
657
+                        <div class="under_line" style="width: 50px;">
658
                           {{
658
                           {{
659
                             isCheckBoxChecked(
659
                             isCheckBoxChecked(
660
                               record.prescription,
660
                               record.prescription,
666
                           }}
666
                           }}
667
                         </div>
667
                         </div>
668
                         mg&nbsp; 维持
668
                         mg&nbsp; 维持
669
-                        <div class="under_line" style="width: 30px;">
669
+                        <div class="under_line" style="width: 50px;">
670
                           {{
670
                           {{
671
                             isCheckBoxChecked(
671
                             isCheckBoxChecked(
672
                               record.prescription,
672
                               record.prescription,
679
                         </div>
679
                         </div>
680
                         mg/h )
680
                         mg/h )
681
 
681
 
682
-                        <check-box
683
-                          text="低分子肝素"
684
-                          :checked="
685
-                            isCheckBoxChecked(
686
-                              record.prescription,
687
-                              'anticoagulant',
688
-                              3
689
-                            )
690
-                          "
691
-                        ></check-box>
682
+                        <span v-if="record.prescription.anticoagulant == 3">
683
+                          <check-box
684
+                            text="低分子肝素"
685
+                            :checked="
686
+                              isCheckBoxChecked(
687
+                                record.prescription,
688
+                                'anticoagulant',
689
+                                3
690
+                              )
691
+                            "
692
+                          ></check-box>
693
+                        </span>
694
+                        <span v-if="record.prescription.anticoagulant == 6">
695
+                          <check-box
696
+                            text="低分子肝素钙"
697
+                            :checked="
698
+                              isCheckBoxChecked(
699
+                                record.prescription,
700
+                                'anticoagulant',
701
+                                6
702
+                              )
703
+                            "
704
+                          ></check-box>
705
+                        </span>
706
+                        <span v-if="record.prescription.anticoagulant == 7">
707
+                          <check-box
708
+                            text="低分子肝素钠"
709
+                            :checked="
710
+                              isCheckBoxChecked(
711
+                                record.prescription,
712
+                                'anticoagulant',
713
+                                7
714
+                              )
715
+                            "
716
+                          ></check-box>
717
+                        </span>
692
                         <div class="under_line" style="width: 40px;">
718
                         <div class="under_line" style="width: 40px;">
693
-                          {{
694
-                            isCheckBoxChecked(
695
-                              record.prescription,
696
-                              "anticoagulant",
697
-                              3
698
-                            )
699
-                              ? record.prescription.anticoagulant_zongliang
700
-                              : ""
701
-                          }}
719
+                          <span v-if="record.prescription.anticoagulant == 3"
720
+                            >{{
721
+                              isCheckBoxChecked(
722
+                                record.prescription,
723
+                                "anticoagulant",
724
+                                3
725
+                              )
726
+                                ? record.prescription.anticoagulant_zongliang
727
+                                : ""
728
+                            }}
729
+                          </span>
730
+                          <span v-if="record.prescription.anticoagulant == 6"
731
+                            >{{
732
+                              isCheckBoxChecked(
733
+                                record.prescription,
734
+                                "anticoagulant",
735
+                                6
736
+                              )
737
+                                ? record.prescription.anticoagulant_zongliang
738
+                                : ""
739
+                            }}
740
+                          </span>
741
+                          <span v-if="record.prescription.anticoagulant == 7"
742
+                            >{{
743
+                              isCheckBoxChecked(
744
+                                record.prescription,
745
+                                "anticoagulant",
746
+                                7
747
+                              )
748
+                                ? record.prescription.anticoagulant_zongliang
749
+                                : ""
750
+                            }}
751
+                          </span>
702
                         </div>
752
                         </div>
703
                         IU
753
                         IU
704
-
705
                         <check-box
754
                         <check-box
706
                           text="无肝素"
755
                           text="无肝素"
707
                           :checked="
756
                           :checked="
716
                         其他方式
765
                         其他方式
717
                         <div class="under_line" style="width: 140px;">
766
                         <div class="under_line" style="width: 140px;">
718
                           {{
767
                           {{
719
-                            record.prescription &&
720
-                            record.prescription.anticoagulant > 3
768
+                            (record.prescription &&
769
+                              record.prescription.anticoagulant == 4) ||
770
+                            record.prescription.anticoagulant == 5
721
                               ? anticoagulantName(record.prescription)
771
                               ? anticoagulantName(record.prescription)
722
                               : ""
772
                               : ""
723
                           }}
773
                           }}

+ 289 - 116
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue Vedi File

114
                     ></label-box
114
                     ></label-box
115
                     >&nbsp;
115
                     >&nbsp;
116
                   </td>
116
                   </td>
117
-                  <td style="text-align:left;" colspan="2">
118
-                    <span style="display:inline-block;margin-left:15px;">
119
-                      透析时间:
120
-                      {{
121
-                        record.assessment_after_dislysis.actual_treatment_hour
122
-                          ? record.assessment_after_dislysis.actual_treatment_hour
123
-                          : "0"
124
-                      }}小时{{ record.assessment_after_dislysis.actual_treatment_minute
125
-                          ? record.assessment_after_dislysis.actual_treatment_minute
126
-                          : "0"}}分钟</span>
127
-                  </td>
128
-                  <td style="text-align:left;" colspan="3">
117
+                  <td style="text-align:left;" colspan="5">
129
                     <span style="display:inline-block;margin-left:15px;"
118
                     <span style="display:inline-block;margin-left:15px;"
130
-                      >透析器型号:{{
131
-                        record.prescription.dialyzer_perfusion_apparatus
132
-                          ? record.prescription.dialyzer_perfusion_apparatus
133
-                          : "/"
134
-                      }}
135
-                    </span>
119
+                      >诊断: {{ record.patient.diagnose }}</span
120
+                    >
136
                   </td>
121
                   </td>
122
+                
137
                 </tr>
123
                 </tr>
138
                 <tr>
124
                 <tr>
139
                   <td style="text-align:left;" colspan="1">
125
                   <td style="text-align:left;" colspan="1">
231
                       }}kg</span
217
                       }}kg</span
232
                     >
218
                     >
233
                   </td>
219
                   </td>
234
-                  <td style="text-align:left;" colspan="6">
220
+                  <td style="text-align:left;">
235
                     <span style="display:inline-block;margin-left:15px;"
221
                     <span style="display:inline-block;margin-left:15px;"
236
                       >实际脱水量:
222
                       >实际脱水量:
237
                       {{record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:"0"}}
223
                       {{record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:"0"}}
238
                       </span>&nbsp;L
224
                       </span>&nbsp;L
239
                   </td>
225
                   </td>
226
+                   <td style="text-align:left;" colspan="2">
227
+                    <span style="display:inline-block;margin-left:15px;"
228
+                      >透析时间:
229
+                     {{
230
+                        record.assessment_after_dislysis.actual_ultrafiltration.actual_treatment_hour
231
+                        ? record.assessment_after_dislysis.actual_ultrafiltration.actual_treatment_hour
232
+                        : "0"
233
+                         }}小时{{
234
+                         record.assessment_after_dislysis.actual_ultrafiltration.actual_treatment_minute
235
+                         ? record.assessment_after_dislysis.actual_ultrafiltration.actual_treatment_minute
236
+                         : "0"
237
+                          }}分钟</span
238
+                      </span>&nbsp;L
239
+                  </td>
240
+                   <td style="text-align:left;" >
241
+                    <span style="display:inline-block;margin-left:15px;"
242
+                      >透析器型号:
243
+                     {{
244
+                        record.prescription.dialyzer_perfusion_apparatus
245
+                         ?  record.prescription.dialyzer_perfusion_apparatus
246
+                           : "/"
247
+                        }}
248
+                      </span>&nbsp;L
249
+                  </td>
250
+                   <td style="text-align:left;" colspan="2">
251
+                    <span style="display:inline-block;margin-left:15px;"
252
+                      >置换方式:
253
+                       <label-box
254
+                         :isChecked="
255
+                          record.prescription.displace_liqui_part == 1 ? true : false
256
+                          "
257
+                         showValue="前"
258
+                         ></label-box
259
+                         >&nbsp;
260
+                        <label-box
261
+                          :isChecked="
262
+                            record.prescription.displace_liqui_part == 2 ? true : false
263
+                          "
264
+                          showValue="后"
265
+                        ></label-box>
266
+                          &nbsp; (总量:{{
267
+                            record.prescription.displace_liqui_value
268
+                              ? prescription.displace_liqui_value
269
+                              : "/"
270
+                          }}L)
271
+                      </span>&nbsp;
272
+                  </td>
240
                 </tr>
273
                 </tr>
241
                 <tr>
274
                 <tr>
242
-                  <td style="text-align:left;" colspan="2">
275
+                  <td style="text-align:left;">
243
                     <span style="display:inline-block;margin-left:15px;"
276
                     <span style="display:inline-block;margin-left:15px;"
244
                       >责任护士:
277
                       >责任护士:
245
                        <span
278
                        <span
267
                             style="height: 20px;"
300
                             style="height: 20px;"
268
                           /></span>
301
                           /></span>
269
                   </td>
302
                   </td>
270
-                  <td style="text-align:left;" colspan="3">
303
+                  <td style="text-align:left;">
271
                     <span style="display:inline-block;margin-left:15px;"
304
                     <span style="display:inline-block;margin-left:15px;"
272
                       >上机护士:
305
                       >上机护士:
273
                        <span
306
                        <span
295
                             style="height: 20px;"
328
                             style="height: 20px;"
296
                           />
329
                           />
297
                       </span>
330
                       </span>
331
+                  </td>
332
+                   <td style="text-align:left;" colspan="3">
333
+                    <span style="display:inline-block;margin-left:15px;"
334
+                      >抗凝剂执行护士:
335
+                       <span
336
+                            v-if="
337
+                              setAdminUserES(
338
+                                record.dialysis_order,
339
+                                'start_nurse'
340
+                              ) == ''
341
+                            "
342
+                            >{{
343
+                              getAdminUser(record.dialysis_order, "start_nurse")
344
+                            }}</span
345
+                          >
346
+                          <img
347
+                            class="es-img"
348
+                            :src="
349
+                              setAdminUserES(
350
+                                record.dialysis_order,
351
+                                'start_nurse'
352
+                              )
353
+                            "
354
+                            alt=""
355
+                            srcset=""
356
+                            v-else
357
+                            style="height: 20px;"
358
+                          />
359
+                      </span>
298
                   </td>
360
                   </td>
299
                   <td style="text-align:left;" colspan="3">
361
                   <td style="text-align:left;" colspan="3">
300
                     <span style="display:inline-block;margin-left:15px;"
362
                     <span style="display:inline-block;margin-left:15px;"
443
                 <tr>
505
                 <tr>
444
                   <td colspan="8" style="text-align:left;">
506
                   <td colspan="8" style="text-align:left;">
445
                     <span style="display:inline-block;margin-left:15px;"
507
                     <span style="display:inline-block;margin-left:15px;"
446
-                      >血管通路:
447
-                      <check-box text="正常" :checked="isValueIndexOfCheck(record.assessment_before_dislysis,'blood_access_internal_fistula', '正常')"></check-box>
448
-                      <check-box text="震颤" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'blood_access_internal_fistula' ,'震颤')"></check-box>
449
-                      <check-box text="堵塞" :checked="isValueIndexOfCheck(record.assessment_before_dislysis,'blood_access_internal_fistula', '堵塞')"></check-box>
450
-                      <check-box text="血肿" :checked="isValueIndexOfCheck(record.assessment_before_dislysis,'blood_access_internal_fistula' ,'血肿')"></check-box>
451
-                      <check-box text="淤血" :checked="isValueIndexOfCheck(record.assessment_before_dislysis,'blood_access_internal_fistula' ,'淤血')"></check-box>
452
-                      <check-box text="感染" :checked="isValueIndexOfCheck(record.assessment_before_dislysis,'blood_access_internal_fistula' ,'感染')"></check-box>
453
-                      <check-box text="自体内瘘" :checked="isValueIndexOfCheck(record.assessment_before_dislysis,'blood_access_internal_fistula' ,'自体内瘘')"></check-box>
454
-                      <check-box text="人工内瘘" :checked="isValueIndexOfCheck(record.assessment_before_dislysis,'blood_access_internal_fistula' ,'人工内瘘')"></check-box>
508
+                      > 血管通路:内瘘波动及震颤: (&nbsp;<check-box
509
+                          v-for="(item, index) in arr"
510
+                          :key="index"
511
+                          :text="item.name"
512
+                          :checked="
513
+                            record.assessment_before_dislysis.blood_access_part_opera_id == item.id
514
+                              ? true
515
+                              : false
516
+                          "
517
+                        ></check-box
518
+                        >)
519
+                        <check-box
520
+                          v-for="(item, index) in arrtwo"
521
+                          :key="index"
522
+                          :text="item.name"
523
+                          :checked="
524
+                            record.assessment_before_dislysis.blood_access_part_opera_id == item.id
525
+                              ? true
526
+                              : false
527
+                          "
528
+                        ></check-box>
455
                     </span>
529
                     </span>
456
                   </td>
530
                   </td>
457
                 </tr>
531
                 </tr>
458
                 <tr>
532
                 <tr>
459
                   <td colspan="8" style="text-align:left;">
533
                   <td colspan="8" style="text-align:left;">
460
-                    <span style="display:inline-block;margin-left:15px;">中心静脉导管:</span>
461
-                    <check-box text="正常" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '正常')"></check-box>
462
-                    <check-box text="不畅" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '不畅')"></check-box>
463
-                    <check-box text="血流不足" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '血流不足')"></check-box>
464
-                    (<check-box text="正接" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '正接')"></check-box>/
465
-                    <check-box text="反接" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '反接')"></check-box>)
466
-                    <check-box text="血栓" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '血栓')"></check-box>
467
-                    <check-box text="缝线脱落" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '缝线脱落')"></check-box>
468
-                    <check-box text="导管脱落" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '导管脱落')"></check-box>
469
-                    <check-box text="感染" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '感染')"></check-box>
470
-                    <check-box text="破损" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '破损')"></check-box>
534
+                    <span style="display:inline-block;margin-left:15px;">中心静脉导管:
535
+                     (部位:{{ getPartName(record.assessment_before_dislysis.blood_access_part_id) }})
536
+                        <label-box
537
+                          showValue="长期"
538
+                          :isChecked="
539
+                            record.assessment_before_dislysis.venous_catheterization == 1 ? true : false
540
+                          "
541
+                        ></label-box>
542
+                        <label-box
543
+                          showValue="临时"
544
+                          :isChecked="
545
+                           record.assessment_before_dislysis.venous_catheterization == 2 ? true : false
546
+                          "
547
+                        ></label-box>
548
+                          &nbsp;&nbsp; 感染:
549
+                          <label-box
550
+                            showValue="有"
551
+                            :isChecked="
552
+                             record.assessment_before_dislysis.catheter.indexOf('感染-有') > -1 ? true : false
553
+                            "
554
+                          ></label-box>
555
+                          <label-box
556
+                            showValue="无"
557
+                            :isChecked="
558
+                              record.assessment_before_dislysis.catheter.indexOf('感染-无') > -1 ? true : false
559
+                            "
560
+                          ></label-box>
561
+                            &nbsp;&nbsp;流畅度:
562
+                            <label-box
563
+                              showValue="好"
564
+                              :isChecked="
565
+                                record.assessment_before_dislysis.catheter.indexOf('通畅度-好') > -1 ? true : false
566
+                              "
567
+                            ></label-box>
568
+                            <label-box
569
+                              showValue="差"
570
+                              :isChecked="
571
+                                record.assessment_before_dislysis.catheter.indexOf('通畅度-差') > -1 ? true : false
572
+                              "
573
+                            ></label-box>
574
+                            &nbsp;&nbsp;溶栓:
575
+                            <label-box
576
+                              showValue="有"
577
+                              :isChecked="
578
+                                record.assessment_before_dislysis.catheter.indexOf('溶栓-有') > -1 ? true : false
579
+                              "
580
+                            ></label-box>
581
+                          <label-box
582
+                            showValue="无"
583
+                            :isChecked="
584
+                              record.assessment_before_dislysis.catheter.indexOf('溶栓-无') > -1 ? true : false
585
+                            "
586
+                          ></label-box>
587
+                              &nbsp;&nbsp;外露:{{ record.assessment_before_dislysis.exposed }}cm
588
+                    </span>
589
+                    
471
                   </td>
590
                   </td>
472
                 </tr>
591
                 </tr>
473
                 <tr>
592
                 <tr>
474
                <td style="text-align:left;" colspan="8" >
593
                <td style="text-align:left;" colspan="8" >
475
-                 <span style="display:inline-block;margin-left:15px;">血管通路皮肤:
476
-                 <check-box text="正常"
477
-                  :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula_skin', '正常')"></check-box>
478
-                 <check-box text="瘀斑"
479
-                   :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula_skin', '瘀斑')"></check-box>
480
-                 <check-box text="红"
481
-                   :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula_skin', '红')"></check-box>
482
-                 <check-box text="肿"
483
-                  :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula_skin', '肿')"></check-box>
484
-                  其他:
594
+                 <span style="display:inline-block;margin-left:15px;">血管通路皮肤情况:
595
+                   <label-box
596
+                      :isChecked="
597
+                        record.assessment_before_dislysis.internal_fistula_skin.indexOf('正常') > -1
598
+                          ? true
599
+                          : false
600
+                      "
601
+                      showValue="正常"
602
+                    ></label-box
603
+                    >&nbsp;
604
+                    <label-box
605
+                      :isChecked="
606
+                       record.assessment_before_dislysis.internal_fistula_skin.indexOf('淤血') > -1
607
+                          ? true
608
+                          : false
609
+                      "
610
+                      showValue="淤血"
611
+                    ></label-box
612
+                    >&nbsp;
613
+                    <label-box
614
+                      :isChecked="
615
+                        record.assessment_before_dislysis.internal_fistula_skin.indexOf('红') > -1
616
+                          ? true
617
+                          : false
618
+                      "
619
+                      showValue="红"
620
+                    ></label-box
621
+                    >&nbsp;
622
+                    <label-box
623
+                      :isChecked="
624
+                        record.assessment_before_dislysis.internal_fistula_skin.indexOf('肿') > -1
625
+                          ? true
626
+                          : false
627
+                      "
628
+                      showValue="肿"
629
+                    ></label-box>
485
                  </span>
630
                  </span>
486
                </td>
631
                </td>
487
               </tr>
632
               </tr>
613
                <check-box text="低风险" :checked="isCheckBoxChecked(record.receive_assessment, 'danger_level', 2)"></check-box>
758
                <check-box text="低风险" :checked="isCheckBoxChecked(record.receive_assessment, 'danger_level', 2)"></check-box>
614
               <check-box text="中度风险" :checked="isCheckBoxChecked(record.receive_assessment, 'danger_level', 3)"></check-box>
759
               <check-box text="中度风险" :checked="isCheckBoxChecked(record.receive_assessment, 'danger_level', 3)"></check-box>
615
              <check-box text="高风险" :checked="isCheckBoxChecked(record.receive_assessment, 'danger_level', 4)"></check-box>
760
              <check-box text="高风险" :checked="isCheckBoxChecked(record.receive_assessment, 'danger_level', 4)"></check-box>
616
-            防护措施:
617
-             <check-box
618
-               v-for="(item, index) in precaution_arr" :key="index"
619
-                        :text="item.name"
620
-
621
-                        :checked="
622
-                            isCheckBoxChecked(
623
-                              record.receive_assessment,
624
-                              'nutrition',
625
-                              item.id
626
-                            )
627
-                          "
628
-                      ></check-box>
629
-              其他:
761
+            跌倒风险预防措施:
762
+                <label-box
763
+                  showValue="镇定剂"
764
+                  :isChecked="
765
+                    record.receive_assessment.precaution.indexOf('镇定剂') > -1
766
+                      ? true
767
+                      : false
768
+                  "
769
+                ></label-box>
770
+                  <label-box
771
+                    showValue="约束带"
772
+                    :isChecked="
773
+                      record.receive_assessment.precaution.indexOf('约束带') > -1
774
+                        ? true
775
+                        : false
776
+                    "
777
+                  ></label-box>
778
+                  <label-box
779
+                    showValue="床栏"
780
+                    :isChecked="
781
+                      record.receive_assessment.precaution.indexOf('床栏') > -1
782
+                        ? true
783
+                        : false
784
+                    "
785
+                  ></label-box>
786
+                    <label-box
787
+                      showValue="加强宣教"
788
+                      :isChecked="
789
+                        record.receive_assessment.precaution.indexOf('加强宣教') > -1
790
+                          ? true
791
+                          : false
792
+                      "
793
+                    ></label-box>
630
               </td>
794
               </td>
631
              </tr>
795
              </tr>
632
               </table>
796
               </table>
642
           <th style="min-width:60px"><p style="height:20px;line-height:20px">超滤量</p><p style="height:20px;line-height:20px">L</p></th>
806
           <th style="min-width:60px"><p style="height:20px;line-height:20px">超滤量</p><p style="height:20px;line-height:20px">L</p></th>
643
           <th style="min-width:60px"><p style="height:20px;line-height:20px">NA⁺</p><p style="height:20px;line-height:20px"></p></th>
807
           <th style="min-width:60px"><p style="height:20px;line-height:20px">NA⁺</p><p style="height:20px;line-height:20px"></p></th>
644
           <th style="min-width:60px"><p style="height:20px;line-height:20px">病情变化及处理</p></th>
808
           <th style="min-width:60px"><p style="height:20px;line-height:20px">病情变化及处理</p></th>
645
-          <th style="min-width:110px"><p style="height:20px;line-height:20px">护士签名核对者</p></th>
809
+          <th style="min-width:110px" colspan="2"><p style="height:20px;line-height:20px">护士签名核对者</p></th>
646
         </tr>
810
         </tr>
647
         <tr v-for="(monitor,monitor_index) in record.monitor_records" :key="monitor_index">
811
         <tr v-for="(monitor,monitor_index) in record.monitor_records" :key="monitor_index">
648
          <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
812
          <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
663
          <td>{{monitor.ultrafiltration_volume}}</td>
827
          <td>{{monitor.ultrafiltration_volume}}</td>
664
          <td>{{monitor.sodium_concentration}}</td>
828
          <td>{{monitor.sodium_concentration}}</td>
665
          <td> {{ monitor.symptom }} &nbsp;{{ monitor.result }}</td>
829
          <td> {{ monitor.symptom }} &nbsp;{{ monitor.result }}</td>
666
-         <td>
830
+         <td colspan="2">
667
            <span v-show="showOne">{{getName(monitor.monitoring_nurse)}}</span>
831
            <span v-show="showOne">{{getName(monitor.monitoring_nurse)}}</span>
668
            <span v-show="showTwo"><img :src="getName(monitor.monitoring_nurse)" style="height:20px"></span>
832
            <span v-show="showTwo"><img :src="getName(monitor.monitoring_nurse)" style="height:20px"></span>
669
          </td>
833
          </td>
706
           </td>
870
           </td>
707
         </tr>
871
         </tr>
708
         <tr>
872
         <tr>
709
-          <td style="text-align:left;" colspan="12">
873
+         <td style="text-align:left;" colspan="2">
874
+           <span style="margin-left:15px">实际置换量:</span>{{ record.assessment_after_dislysis.actual_displacement }} L
875
+         </td>
876
+          <td style="text-align:left;" colspan="10">
710
             <span style="display:inline-block;margin-left:15px;">内瘘搏动及震颤音:
877
             <span style="display:inline-block;margin-left:15px;">内瘘搏动及震颤音:
711
              <check-box text="存在" :checked="record.assessment_after_dislysis.tremor_noise==1?true:false"></check-box>
878
              <check-box text="存在" :checked="record.assessment_after_dislysis.tremor_noise==1?true:false"></check-box>
712
              <check-box text="减弱" :checked="record.assessment_after_dislysis.tremor_noise==2?true:false"></check-box>
879
              <check-box text="减弱" :checked="record.assessment_after_dislysis.tremor_noise==2?true:false"></check-box>
713
             <check-box text="不存在" :checked="record.assessment_after_dislysis.tremor_noise==3?true:false"></check-box>
880
             <check-box text="不存在" :checked="record.assessment_after_dislysis.tremor_noise==3?true:false"></check-box>
714
             </span>&nbsp;
881
             </span>&nbsp;
715
             <span>透析器及管路凝血情况:
882
             <span>透析器及管路凝血情况:
716
-              <check-box text="0级"  :checked="record.assessment_after_dislysis == 1?true:false"></check-box>
717
-               <check-box text="1级" :checked="record.assessment_after_dislysis == 2?true:false"></check-box>
718
-               <check-box text="2级" :checked="record.assessment_after_dislysis == 3?true:false"></check-box>
719
-               <check-box text="3级" :checked="record.assessment_after_dislysis == 4?true:false"></check-box>
883
+               <check-box text="0"
884
+                :checked="record.assessment_after_dislysis.cruor.indexOf('透析器-0度') > -1"></check-box>
885
+               <check-box text="+"
886
+                :checked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') > -1"></check-box>
887
+               <check-box text="++"
888
+                 :checked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') > -1"></check-box>
889
+               <check-box text="+++"
890
+                :checked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅲ度') > -1"></check-box>
720
              </span>
891
              </span>
721
           </td>
892
           </td>
722
         </tr>
893
         </tr>
828
           </td>
999
           </td>
829
         </tr>
1000
         </tr>
830
         <tr>
1001
         <tr>
831
-          <td style="text-align:left;" colspan="6">
832
-            <span>特殊记录:{{record.summer && record.summer.dialysis_summary? record.summer.dialysis_summary: '/'}}</span>
1002
+          <td style="text-align:left;"  colspan="6">
1003
+            <span style="margin-left:15px">特殊记录:{{record.summer && record.summer.dialysis_summary? record.summer.dialysis_summary: '/'}}</span>
833
           </td>
1004
           </td>
834
         </tr>
1005
         </tr>
835
         <tr>
1006
         <tr>
836
-        <td style="text-align:left;" colspan="6">
837
-            <span>医生签名:
838
-            <span
839
-                  v-if="
840
-                  !record.advices ||
841
-                 typeof record.advices[0] == 'undefined' ||
842
-                typeof record.advices[0][0] == 'undefined'
843
-                "
844
-                ></span>
845
-                <span
846
-                  v-else-if="
847
-                  setAdminUserES(
848
-                  record.advices[0][0],
849
-                    'advice_doctor'
850
-                   ) == ''
851
-                  "
852
-                  >{{
853
-                  getAdminUser(
854
-                  record.advices[0][0],
855
-                 "advice_doctor"
856
-                  )
857
-                  }}</span
858
-                   >
859
-                 <img
860
-                 class="es-img"
861
-                 :src="
862
-                  setAdminUserES(
863
-                  record.advices[0][0],
864
-                 'advice_doctor'
865
-                   )
866
-                   "
867
-                  alt=""
868
-                  srcset=""
869
-                   v-else
870
-                  style="height: 20px;"
871
-                   /></span>
1007
+        <td style="text-align:left;margin-left:15px" colspan="6">
1008
+              <span style="margin-left:15px">质控护士签名:
1009
+              </span>
872
              </td>
1010
              </td>
873
            </tr>
1011
            </tr>
874
          </table>
1012
          </table>
957
       appetite_arr: [],
1095
       appetite_arr: [],
958
       precaution_arr: [],
1096
       precaution_arr: [],
959
       showOne: false,
1097
       showOne: false,
960
-      showTwo: false
1098
+      showTwo: false,
1099
+      arr:[],
1100
+      arrtwo:[],
1101
+       bloodAccess: []
961
     }
1102
     }
962
   },
1103
   },
963
   created() {
1104
   created() {
974
       'hemodialysis',
1115
       'hemodialysis',
975
       'vascular_access_desc'
1116
       'vascular_access_desc'
976
     )
1117
     )
977
-    for (var key in bloodAccessParOpera) {
978
-      this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
979
-        bloodAccessParOpera[key]
980
-    }
981
-
1118
+    console.log("血管通路",bloodAccessParOpera)
1119
+     var arr = [];
1120
+    var arrtwo = [];
1121
+    for (let i = 0; i < bloodAccessParOpera.length; i++) {
1122
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-存在") {
1123
+        bloodAccessParOpera[i].name = "存在";
1124
+        arr.push(bloodAccessParOpera[i]);
1125
+      }
1126
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-减弱") {
1127
+        bloodAccessParOpera[i].name = "减弱";
1128
+        arr.push(bloodAccessParOpera[i]);
1129
+      }
1130
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-消失") {
1131
+        bloodAccessParOpera[i].name = "消失";
1132
+        arr.push(bloodAccessParOpera[i]);
1133
+      }
1134
+      if (bloodAccessParOpera[i].name == "直穿") {
1135
+        arrtwo.push(bloodAccessParOpera[i]);
1136
+      }
1137
+      if (bloodAccessParOpera[i].name == "人造血管") {
1138
+        arrtwo.push(bloodAccessParOpera[i]);
1139
+      }
1140
+      if (bloodAccessParOpera[i].name == "移植血管") {
1141
+        arrtwo.push(bloodAccessParOpera[i]);
1142
+      }
1143
+      this.arr = arr;
1144
+      this.arrtwo = arrtwo;
982
     this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
1145
     this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
983
 
1146
 
984
     var dialysateFormulationOptions = getDataConfig(
1147
     var dialysateFormulationOptions = getDataConfig(
991
     }
1154
     }
992
     this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1155
     this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
993
     this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1156
     this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1157
+    var bloodAccess = getDataConfig("hemodialysis", "vascular_access");
1158
+    this.bloodAccess = bloodAccess;
1159
+   }
994
   },
1160
   },
995
   mounted() {
1161
   mounted() {
996
     this.loading = true
1162
     this.loading = true
1379
           console.log('weight', weight)
1545
           console.log('weight', weight)
1380
         }
1546
         }
1381
       })
1547
       })
1548
+    },
1549
+    getPartName(id) {
1550
+      for (let i = 0; i < this.bloodAccess.length; i++) {
1551
+        if ((this.bloodAccess[i].id = id)) {
1552
+          return this.bloodAccess[i].name;
1553
+        }
1554
+      }
1382
     }
1555
     }
1383
   }
1556
   }
1384
 }
1557
 }

File diff suppressed because it is too large
+ 2455 - 2370
src/xt_pages/dialysis/batch_print/batch_print_order_nine.vue


File diff suppressed because it is too large
+ 346 - 280
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue


+ 92 - 38
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue Vedi File

76
               </div>
76
               </div>
77
77
78
             </div>
78
             </div>
79
-
79
+          </div>
80
+          <div class="row">
80
             <div class="inline_block" style="margin-left: 5px;">
81
             <div class="inline_block" style="margin-left: 5px;">
81
               诊断:
82
               诊断:
82
-              <div class="under_line_two" style="width: 150px;text-align: left">
83
+              <div
84
+                class="under_line"
85
+                style="width: 880px;text-align: left;word-wrap: break-word;white-space: inherit;"
86
+              >
83
                 {{ record.patient.diagnose }}
87
                 {{ record.patient.diagnose }}
84
               </div>
88
               </div>
85
             </div>
89
             </div>
86
           </div>
90
           </div>
87
-
88
           <div
91
           <div
89
             class="row"
92
             class="row"
90
             :class="
93
             :class="
451
                         <check-box
454
                         <check-box
452
                           text="锁骨下"
455
                           text="锁骨下"
453
                           :checked="
456
                           :checked="
454
-                          record.assessment_before_dislysis.blood_access_part_id == getIsCheckDataConfig('hemodialysis', 'vascular_access','锁骨下')
455
-                          ? true
456
-                          : false
457
+                            record.assessment_before_dislysis
458
+                              .blood_access_part_id ==
459
+                            getIsCheckDataConfig(
460
+                              'hemodialysis',
461
+                              'vascular_access',
462
+                              '锁骨下'
463
+                            )
464
+                              ? true
465
+                              : false
457
                           "
466
                           "
458
                         ></check-box>
467
                         ></check-box>
459
                         <check-box
468
                         <check-box
460
                           text="颈静脉"
469
                           text="颈静脉"
461
                           :checked="
470
                           :checked="
462
-                          record.assessment_before_dislysis.blood_access_part_id == getIsCheckDataConfig('hemodialysis', 'vascular_access','颈静脉')
463
-                          ? true
464
-                          : false
471
+                            record.assessment_before_dislysis
472
+                              .blood_access_part_id ==
473
+                            getIsCheckDataConfig(
474
+                              'hemodialysis',
475
+                              'vascular_access',
476
+                              '颈静脉'
477
+                            )
478
+                              ? true
479
+                              : false
465
                           "
480
                           "
466
                         ></check-box>
481
                         ></check-box>
467
                         <check-box
482
                         <check-box
468
                           text="股静脉"
483
                           text="股静脉"
469
                           :checked="
484
                           :checked="
470
-                           record.assessment_before_dislysis.blood_access_part_id == getIsCheckDataConfig('hemodialysis', 'vascular_access','股静脉')
471
-                          ? true
472
-                          : false
485
+                            record.assessment_before_dislysis
486
+                              .blood_access_part_id ==
487
+                            getIsCheckDataConfig(
488
+                              'hemodialysis',
489
+                              'vascular_access',
490
+                              '股静脉'
491
+                            )
492
+                              ? true
493
+                              : false
473
                           "
494
                           "
474
                         ></check-box>
495
                         ></check-box>
475
                         <div class="inline_block">
496
                         <div class="inline_block">
1542
                         <check-box
1563
                         <check-box
1543
                           text="无"
1564
                           text="无"
1544
                           :checked="
1565
                           :checked="
1545
-                      record.assessment_after_dislysis.complication.indexOf('无') > -1
1546
-                          ? true
1547
-                          : false
1548
-                      "
1566
+                            record.assessment_after_dislysis.complication.indexOf(
1567
+                              '无'
1568
+                            ) > -1
1569
+                              ? true
1570
+                              : false
1571
+                          "
1549
                         ></check-box>
1572
                         ></check-box>
1550
                         <check-box
1573
                         <check-box
1551
                           text="有"
1574
                           text="有"
1552
                           :checked="
1575
                           :checked="
1553
-                        record.assessment_after_dislysis.complication.indexOf('头晕') > -1 ||
1554
-                         record.assessment_after_dislysis.complication.indexOf('头痛') > -1||
1555
-                           record.assessment_after_dislysis.complication.indexOf('呕吐') > -1||
1556
-                             record.assessment_after_dislysis.complication.indexOf('低血压') > -1
1557
-                          ? true
1558
-                          : false
1559
-                      "
1576
+                            record.assessment_after_dislysis.complication.indexOf(
1577
+                              '头晕'
1578
+                            ) > -1 ||
1579
+                            record.assessment_after_dislysis.complication.indexOf(
1580
+                              '头痛'
1581
+                            ) > -1 ||
1582
+                            record.assessment_after_dislysis.complication.indexOf(
1583
+                              '呕吐'
1584
+                            ) > -1 ||
1585
+                            record.assessment_after_dislysis.complication.indexOf(
1586
+                              '低血压'
1587
+                            ) > -1
1588
+                              ? true
1589
+                              : false
1590
+                          "
1560
                         ></check-box>
1591
                         ></check-box>
1561
                       </div>
1592
                       </div>
1562
                       <div class="inline_block">
1593
                       <div class="inline_block">
1693
                       </div>
1724
                       </div>
1694
                       <div class="inline_block">
1725
                       <div class="inline_block">
1695
                         透析器凝血:
1726
                         透析器凝血:
1696
-                          <check-box text="0"
1697
-                                     :checked="record.assessment_after_dislysis.cruor.indexOf('透析器-0度') > -1"></check-box>
1698
-                          <check-box text="+"
1699
-                                     :checked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') > -1"></check-box>
1700
-                          <check-box text="++"
1701
-                                     :checked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') > -1"></check-box>
1702
-                          <check-box text="+++"
1703
-                                     :checked="record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅲ度') > -1"></check-box>
1704
-
1727
+                        <check-box
1728
+                          text="0"
1729
+                          :checked="
1730
+                            record.assessment_after_dislysis.cruor.indexOf(
1731
+                              '透析器-0度'
1732
+                            ) > -1
1733
+                          "
1734
+                        ></check-box>
1735
+                        <check-box
1736
+                          text="+"
1737
+                          :checked="
1738
+                            record.assessment_after_dislysis.cruor.indexOf(
1739
+                              '透析器-Ⅰ度'
1740
+                            ) > -1
1741
+                          "
1742
+                        ></check-box>
1743
+                        <check-box
1744
+                          text="++"
1745
+                          :checked="
1746
+                            record.assessment_after_dislysis.cruor.indexOf(
1747
+                              '透析器-Ⅱ度'
1748
+                            ) > -1
1749
+                          "
1750
+                        ></check-box>
1751
+                        <check-box
1752
+                          text="+++"
1753
+                          :checked="
1754
+                            record.assessment_after_dislysis.cruor.indexOf(
1755
+                              '透析器-Ⅲ度'
1756
+                            ) > -1
1757
+                          "
1758
+                        ></check-box>
1705
 
1759
 
1706
-                       <!-- <div
1760
+                        <!-- <div
1707
                           class="under_line"
1761
                           class="under_line"
1708
                           style="width: 100px;text-align: center"
1762
                           style="width: 100px;text-align: center"
1709
                         >
1763
                         >
2542
       });
2596
       });
2543
   },
2597
   },
2544
   methods: {
2598
   methods: {
2545
-    getIsCheckDataConfig(pName, cName, targetName){
2546
-      var arr = getDataConfig(pName,cName)
2547
-      for (let i = 0; i < arr.length; i++){
2548
-        if (arr[i].name == targetName){
2549
-          return arr[i].id
2599
+    getIsCheckDataConfig(pName, cName, targetName) {
2600
+      var arr = getDataConfig(pName, cName);
2601
+      for (let i = 0; i < arr.length; i++) {
2602
+        if (arr[i].name == targetName) {
2603
+          return arr[i].id;
2550
         }
2604
         }
2551
       }
2605
       }
2552
     },
2606
     },

+ 53 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue Vedi File

447
                            <span class="under-line"
447
                            <span class="under-line"
448
                           v-if="record.prescription.anticoagulant == 5"
448
                           v-if="record.prescription.anticoagulant == 5"
449
                           >&nbsp;枸橼酸钠</span>
449
                           >&nbsp;枸橼酸钠</span>
450
+                            <span class="under-line"
451
+                          v-if="record.prescription.anticoagulant == 6"
452
+                          >&nbsp;低分子肝素钙</span>
453
+                            <span class="under-line"
454
+                          v-if="record.prescription.anticoagulant == 7"
455
+                          >&nbsp;低分子肝素钠</span>
450
                         </td>
456
                         </td>
451
                         <td style="text-align:left;margin-left:15px">
457
                         <td style="text-align:left;margin-left:15px">
452
                           首剂:<span class="under-line">{{
458
                           首剂:<span class="under-line">{{
481
                           <span
487
                           <span
482
                             v-if="record.prescription.anticoagulant == '无肝素'"
488
                             v-if="record.prescription.anticoagulant == '无肝素'"
483
                           >mg</span
489
                           >mg</span
484
-                          >&nbsp;
490
+                          >
491
+                           <span
492
+                            v-if="
493
+                              record.prescription.anticoagulant == 6
494
+                            "
495
+                          >iu</span
496
+                          >
497
+                             <span
498
+                            v-if="
499
+                              record.prescription.anticoagulant == 7
500
+                            "
501
+                          >iu</span
502
+                          >
503
+                          &nbsp;
485
                         </td>
504
                         </td>
486
                         <td style="text-align:left;margin-left:15px">
505
                         <td style="text-align:left;margin-left:15px">
487
                           维持:
506
                           维持:
520
                             v-if="record.prescription.anticoagulant == '无肝素'"
539
                             v-if="record.prescription.anticoagulant == '无肝素'"
521
                           >mg/h</span
540
                           >mg/h</span
522
                           >
541
                           >
542
+                           <span
543
+                            v-if="
544
+                              record.prescription.anticoagulant == 6
545
+                            "
546
+                          >iu/h</span
547
+                          >
548
+                           <span
549
+                            v-if="
550
+                              record.prescription.anticoagulant == 7
551
+                            "
552
+                          >iu/h</span
553
+                          >
523
                         </td>
554
                         </td>
524
                         <td style="text-align:left;margin-left:15px">
555
                         <td style="text-align:left;margin-left:15px">
525
                           总量:<span class="under-line"
556
                           总量:<span class="under-line"
556
                           <span
587
                           <span
557
                             v-if="record.prescription.anticoagulant == '无肝素'"
588
                             v-if="record.prescription.anticoagulant == '无肝素'"
558
                           >mg</span
589
                           >mg</span
559
-                          >;
590
+                          >
591
+                           <span
592
+                            v-if="
593
+                              record.prescription.anticoagulant == 6
594
+                            "
595
+                          >iu</span
596
+                          >
597
+                           <span
598
+                            v-if="
599
+                              record.prescription.anticoagulant ==7
600
+                            "
601
+                          >iu</span
602
+                          >
560
                         </td>
603
                         </td>
561
                       </tr>
604
                       </tr>
562
                       <tr>
605
                       <tr>
1381
             }
1424
             }
1382
 
1425
 
1383
             this.adminUser = resp.data.users
1426
             this.adminUser = resp.data.users
1427
+            //console.log("使用者",this.adminUser)
1384
             this.loading = false
1428
             this.loading = false
1385
           } else {
1429
           } else {
1386
             this.loading = false
1430
             this.loading = false
1411
       QueryPartById: function(val) {
1455
       QueryPartById: function(val) {
1412
         let vascular_access_part_name = '/'
1456
         let vascular_access_part_name = '/'
1413
         const vascular_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1457
         const vascular_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1414
-         console.log("血管通路",vascular_access)
1458
+        // console.log("血管通路",vascular_access)
1415
         for (let i = 0; i < vascular_access.length; i++) {
1459
         for (let i = 0; i < vascular_access.length; i++) {
1416
           if (vascular_access[i].id == val) {
1460
           if (vascular_access[i].id == val) {
1417
             vascular_access_part_name = vascular_access[i].name
1461
             vascular_access_part_name = vascular_access[i].name
1539
         }
1583
         }
1540
       },
1584
       },
1541
       getAdminUser(key, id) {
1585
       getAdminUser(key, id) {
1542
-        // console.log('key', key)
1543
-        // console.log('id', id)
1586
+       // console.log('key', key)
1587
+       // console.log('id', id)
1544
         if (
1588
         if (
1545
           typeof key === 'undefined' ||
1589
           typeof key === 'undefined' ||
1546
           key == null ||
1590
           key == null ||
1628
         )
1672
         )
1629
       },
1673
       },
1630
       getNumber: function(record) {
1674
       getNumber: function(record) {
1631
-        console.log(record)
1675
+        //console.log(record)
1632
       },
1676
       },
1633
       getLastAfterWeight(id, assessmentDate) {
1677
       getLastAfterWeight(id, assessmentDate) {
1634
         getLastAfterWeight(id, assessmentDate).then(response => {
1678
         getLastAfterWeight(id, assessmentDate).then(response => {
1636
             var weight = response.data.data.weight
1680
             var weight = response.data.data.weight
1637
 
1681
 
1638
             this.lastAfterWeight = weight.weight_after.toFixed(1)
1682
             this.lastAfterWeight = weight.weight_after.toFixed(1)
1639
-            console.log('weight', weight)
1683
+           // console.log('weight', weight)
1640
           }
1684
           }
1641
         })
1685
         })
1642
       },
1686
       },
1643
       getDisplaceLiquiPart: function(val) {
1687
       getDisplaceLiquiPart: function(val) {
1644
-        console.log(val)
1688
+       // console.log(val)
1645
         let displace_liqui_part_name = "/";
1689
         let displace_liqui_part_name = "/";
1646
         const displace_liqui_part = this.displaceLiquiPartOptions;
1690
         const displace_liqui_part = this.displaceLiquiPartOptions;
1647
-        console.log("置换方式",displace_liqui_part)
1691
+       // console.log("置换方式",displace_liqui_part)
1648
         for (let i = 0; i < displace_liqui_part.length; i++) {
1692
         for (let i = 0; i < displace_liqui_part.length; i++) {
1649
            if (displace_liqui_part[i].id == val) {
1693
            if (displace_liqui_part[i].id == val) {
1650
            displace_liqui_part_name = displace_liqui_part[i].name;
1694
            displace_liqui_part_name = displace_liqui_part[i].name;

+ 224 - 445
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Vedi File

14
     <div class="app-container">
14
     <div class="app-container">
15
       <div id="print_content">
15
       <div id="print_content">
16
         <div
16
         <div
17
-          v-for="(record, index) in records"
18
-          :key="index"
17
+          v-for="(record, t) in records"
18
+          :key="t"
19
           class="print_page_main_content"
19
           class="print_page_main_content"
20
         >
20
         >
21
           <div style="display:inline-block;width:100%;text-align:center;">
21
           <div style="display:inline-block;width:100%;text-align:center;">
98
           <div class="row">
98
           <div class="row">
99
             <div class="inline_block">
99
             <div class="inline_block">
100
               入科方式:
100
               入科方式:
101
-              <!--<check-box-->
102
-              <!--v-for="(item, index) in way_arr"-->
103
-              <!--:key="index"-->
104
-              <!--:text="item.name"-->
105
-              <!--:checked="-->
106
-              <!--isCheckBoxChecked(-->
107
-              <!--record.receive_assessment,-->
108
-              <!--'way',-->
109
-              <!--item.id-->
110
-              <!--)-->
111
-              <!--"-->
112
-              <!--&gt;</check-box>-->
113
-              <!--<div-->
114
-              <!--class="under_line"-->
115
-              <!--v-if="record.receive_assessment.way == 0"-->
116
-              <!--style="width: 180px;text-align: left"-->
117
-              <!--&gt;</div>-->
118
-
119
               <div
101
               <div
120
-                v-for="(item, index) in way_arr"
102
+                v-for="(item, i) in way_arr"
121
                 class="under_line"
103
                 class="under_line"
122
                 v-if="record.receive_assessment.way == item.id"
104
                 v-if="record.receive_assessment.way == item.id"
123
                 style="width: 180px;text-align: left"
105
                 style="width: 180px;text-align: left"
124
               >
106
               >
125
                 {{ item.name }}
107
                 {{ item.name }}
126
               </div>
108
               </div>
127
-              <!--<div-->
128
-              <!--class="under_line"-->
129
-              <!--v-if="C.receive_assessment.way == 1"-->
130
-              <!--style="width: 180px;text-align: left"-->
131
-              <!--&gt;-->
132
-              <!--步行-->
133
-              <!--</div>-->
134
-              <!--<div-->
135
-              <!--class="under_line"-->
136
-              <!--v-if="record.receive_assessment.way == 2"-->
137
-              <!--style="width: 180px;text-align: left"-->
138
-              <!--&gt;-->
139
-              <!--扶行-->
140
-              <!--</div>-->
141
-              <!--<div-->
142
-              <!--class="under_line"-->
143
-              <!--v-if="record.receive_assessment.way == 3"-->
144
-              <!--style="width: 180px;text-align: left"-->
145
-              <!--&gt;-->
146
-              <!--轮椅-->
147
-              <!--</div>-->
148
-              <!--<div-->
149
-              <!--class="under_line"-->
150
-              <!--v-if="record.receive_assessment.way == 4"-->
151
-              <!--style="width: 180px;text-align: left"-->
152
-              <!--&gt;-->
153
-              <!--平车-->
154
-              <!--</div>-->
155
             </div>
109
             </div>
156
             <div class="inline_block" style="margin-left: 10px;">
110
             <div class="inline_block" style="margin-left: 10px;">
157
               诊断:
111
               诊断:
158
               <div
112
               <div
159
                 class="under_line"
113
                 class="under_line"
160
-                style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;white-space: pre-wrap;"
114
+                style="width: 740px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;white-space: unset;"
161
               >
115
               >
162
                 {{ record.patient.diagnose }}
116
                 {{ record.patient.diagnose }}
163
               </div>
117
               </div>
866
                           <td width="60">透析液温度(°C)</td>
820
                           <td width="60">透析液温度(°C)</td>
867
                           <td width="50">电导度<br />(ms/cm)</td>
821
                           <td width="50">电导度<br />(ms/cm)</td>
868
                           <td width="50">超滤量<br />(ml)</td>
822
                           <td width="50">超滤量<br />(ml)</td>
823
+                          <td
824
+                            v-if="
825
+                              record.prescription.mode_id == 2 ||
826
+                                record.prescription.mode_id == 5 ||
827
+                                record.prescription.mode_id == 12
828
+                            "
829
+                            width="50"
830
+                          >
831
+                            置换量<br />(ml)
832
+                          </td>
869
                           <td width="200">病情变化及处理</td>
833
                           <td width="200">病情变化及处理</td>
870
                         </tr>
834
                         </tr>
871
                         <tr
835
                         <tr
872
-                          v-for="(monitor_record,
873
-                          index) in record.monitor_records"
874
-                          :key="index"
836
+                          v-for="(monitor_record, j) in record.monitor_records"
837
+                          :key="j"
875
                         >
838
                         >
876
                           <td>
839
                           <td>
877
                             {{
840
                             {{
945
                                 : 0
908
                                 : 0
946
                             }}
909
                             }}
947
                           </td>
910
                           </td>
948
-
911
+                          <td
912
+                            v-if="
913
+                              record.prescription.mode_id == 2 ||
914
+                                record.prescription.mode_id == 5 ||
915
+                                (record.prescription.mode_id == 12 &&
916
+                                  monitor_record.operate_time >
917
+                                    record.dialysis_order.end_time)
918
+                            "
919
+                            style="width:50px"
920
+                          >
921
+                            {{
922
+                              monitor_record.displacement_quantity
923
+                                ? monitor_record.displacement_quantity
924
+                                : ""
925
+                            }}
926
+                          </td>
949
                           <td style="line-height:16px;padding:0px;">
927
                           <td style="line-height:16px;padding:0px;">
950
                             <div
928
                             <div
951
                               style="min-height:40px;line-height:20px; overflow:hidden;"
929
                               style="min-height:40px;line-height:20px; overflow:hidden;"
966
                           </td>
944
                           </td>
967
                         </tr>
945
                         </tr>
968
                         <tr
946
                         <tr
969
-                          v-for="(monitor_record,
970
-                          index) in record.monitor_records2"
971
-                          :key="index"
947
+                          v-for="(monitor_record, s) in record.monitor_records2"
948
+                          :key="s"
972
                         >
949
                         >
973
                           <td></td>
950
                           <td></td>
974
                           <td></td>
951
                           <td></td>
1029
                           :key="advice_index"
1006
                           :key="advice_index"
1030
                         >
1007
                         >
1031
                           <td height="35px">
1008
                           <td height="35px">
1032
-                            <span v-if="advice.start_time">
1033
-                              {{ getTime(advice.start_time, "{h}:{i}") }}
1009
+                            <span v-if="advice[0].start_time">
1010
+                              {{ getTime(advice[0].start_time, "{h}:{i}") }}
1034
                             </span>
1011
                             </span>
1035
                             <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1012
                             <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1036
                           </td>
1013
                           </td>
1040
                             class="advice-name"
1017
                             class="advice-name"
1041
                             style="padding-left:7px;"
1018
                             style="padding-left:7px;"
1042
                           >
1019
                           >
1043
-                            <span v-if="advice.parent_id > 0">---></span>
1044
-                            <span>{{ advice.advice_name }}</span>
1045
-                            <span v-if="advice.advice_desc != ''"
1046
-                              >{{ advice.advice_desc
1047
-                              }}{{ advice.drug_spec_unit }}</span
1020
+                            <span v-if="advice[0].parent_id > 0">---></span>
1021
+                            <span>{{ advice[0].advice_name }}</span>
1022
+                            <span v-if="advice[0].advice_desc != ''"
1023
+                              >{{ advice[0].advice_desc
1024
+                              }}{{ advice[0].drug_spec_unit }}</span
1048
                             >
1025
                             >
1049
-                            <span v-if="advice.prescribing_number"
1050
-                              >&nbsp;&nbsp; {{ advice.prescribing_number
1051
-                              }}{{ advice.prescribing_number_unit }}</span
1026
+                            <span v-if="advice[0].prescribing_number"
1027
+                              >&nbsp;&nbsp; {{ advice[0].prescribing_number
1028
+                              }}{{ advice[0].prescribing_number_unit }}</span
1052
                             >
1029
                             >
1053
-                            <span v-if="advice.single_dose != 0">
1054
-                              {{ advice.single_dose
1055
-                              }}{{ advice.single_dose_unit }}</span
1030
+                            <span v-if="advice[0].single_dose != 0">
1031
+                              {{ advice[0].single_dose
1032
+                              }}{{ advice[0].single_dose_unit }}</span
1056
                             >
1033
                             >
1057
                             <span
1034
                             <span
1058
                               v-if="
1035
                               v-if="
1059
-                                advice.parent_id == 0 &&
1060
-                                  advice.children.length == 0
1036
+                                advice[0].parent_id == 0 &&
1037
+                                  advice[0].children.length == 0
1061
                               "
1038
                               "
1062
-                              >{{ advice.delivery_way }}</span
1039
+                              >{{ advice[0].delivery_way }}</span
1063
                             >
1040
                             >
1064
                             <span
1041
                             <span
1065
                               v-if="
1042
                               v-if="
1066
-                                advice.parent_id == 0 &&
1067
-                                  advice.children.length == 0
1043
+                                advice[0].parent_id == 0 &&
1044
+                                  advice[0].children.length == 0
1068
                               "
1045
                               "
1069
-                              >{{ advice.execution_frequency }}</span
1046
+                              >{{ advice[0].execution_frequency }}</span
1070
                             >
1047
                             >
1071
                             <span
1048
                             <span
1072
                               v-if="
1049
                               v-if="
1073
-                                advice.parent_id == 0 &&
1074
-                                  advice.children &&
1075
-                                  advice.children.length == 0 &&
1076
-                                  advice.remark.length > 0
1050
+                                advice[0].parent_id == 0 &&
1051
+                                  advice[0].children &&
1052
+                                  advice[0].children.length == 0 &&
1053
+                                  advice[0].remark.length > 0
1077
                               "
1054
                               "
1078
-                              >({{ advice.remark }})</span
1055
+                              >({{ advice[0].remark }})</span
1079
                             >
1056
                             >
1080
                           </td>
1057
                           </td>
1081
-                          <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
1082
-                                            <span>{{advice.delivery_way}}</span>
1083
-                                            <span>{{advice.execution_frequency}}</span>
1084
-                                            <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1085
-                                        </td> -->
1086
-                          <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1087
                           <td height="35px">
1058
                           <td height="35px">
1088
                             <span
1059
                             <span
1089
-                              v-if="setAdminUserES(advice.advice_doctor) == ''"
1090
-                              >{{ getAdminUser(advice.advice_doctor) }}</span
1060
+                              v-if="
1061
+                                setAdminUserES(advice[0], 'advice_doctor') == ''
1062
+                              "
1063
+                              >{{
1064
+                                getAdminUser(advice[0], "advice_doctor")
1065
+                              }}</span
1091
                             >
1066
                             >
1092
                             <img
1067
                             <img
1093
-                              style="height:20px;"
1094
-                              :src="setAdminUserES(advice.advice_doctor)"
1068
+                              class="es-img"
1069
+                              :src="setAdminUserES(advice[0], 'advice_doctor')"
1095
                               alt=""
1070
                               alt=""
1096
                               srcset=""
1071
                               srcset=""
1097
                               v-else
1072
                               v-else
1073
+                              style="height: 40px;"
1098
                             />
1074
                             />
1099
                           </td>
1075
                           </td>
1100
                           <!-- <td height="35px">
1076
                           <!-- <td height="35px">
1104
                           <td height="35px">
1080
                           <td height="35px">
1105
                             <span
1081
                             <span
1106
                               v-if="
1082
                               v-if="
1107
-                                setAdminUserES(advice.execution_staff) == ''
1083
+                                setAdminUserES(advice[0].execution_staff) == ''
1108
                               "
1084
                               "
1109
-                              >{{ getAdminUser(advice.execution_staff) }}</span
1085
+                              >{{
1086
+                                getAdminUser(advice[0].execution_staff)
1087
+                              }}</span
1110
                             >
1088
                             >
1111
                             <img
1089
                             <img
1112
                               style="height:20px;"
1090
                               style="height:20px;"
1113
-                              :src="setAdminUserES(advice.execution_staff)"
1091
+                              :src="setAdminUserES(advice[0].execution_staff)"
1114
                               alt=""
1092
                               alt=""
1115
                               srcset=""
1093
                               srcset=""
1116
                               v-else
1094
                               v-else
1117
                             />
1095
                             />
1118
                           </td>
1096
                           </td>
1119
                           <td height="35px">
1097
                           <td height="35px">
1120
-                            <span v-if="advice.execution_time">{{
1098
+                            <span v-if="advice[0].execution_time">{{
1121
                               getTime(
1099
                               getTime(
1122
-                                advice.execution_time,
1100
+                                advice[0].execution_time,
1123
                                 "{y}-{m}-{d} {h}:{i}"
1101
                                 "{y}-{m}-{d} {h}:{i}"
1124
                               )
1102
                               )
1125
                             }}</span>
1103
                             }}</span>
1221
                 >
1199
                 >
1222
                   {{ item.name }}
1200
                   {{ item.name }}
1223
                 </div>
1201
                 </div>
1224
-                <!--<div-->
1225
-                <!--class="under_line"-->
1226
-                <!--v-if="record.receive_assessment.way == 0"-->
1227
-                <!--style="width: 180px;text-align: left"-->
1228
-                <!--&gt;</div>-->
1229
-                <!--<div-->
1230
-                <!--class="under_line"-->
1231
-                <!--v-if="record.receive_assessment == 1"-->
1232
-                <!--style="width: 180px;text-align: left"-->
1233
-                <!--&gt;-->
1234
-                <!--步行-->
1235
-                <!--</div>-->
1236
-                <!--<div-->
1237
-                <!--class="under_line"-->
1238
-                <!--v-if="record.receive_assessment == 2"-->
1239
-                <!--style="width: 180px;text-align: left"-->
1240
-                <!--&gt;-->
1241
-                <!--扶行-->
1242
-                <!--</div>-->
1243
-                <!--<div-->
1244
-                <!--class="under_line"-->
1245
-                <!--v-if="record.receive_assessment == 3"-->
1246
-                <!--style="width: 180px;text-align: left"-->
1247
-                <!--&gt;-->
1248
-                <!--轮椅-->
1249
-                <!--</div>-->
1250
-                <!--<div-->
1251
-                <!--class="under_line"-->
1252
-                <!--v-if="record.receive_assessment == 4"-->
1253
-                <!--style="width: 180px;text-align: left"-->
1254
-                <!--&gt;-->
1255
-                <!--平车-->
1256
-                <!--</div>-->
1257
               </div>
1202
               </div>
1258
               <div class="inline_block" style="margin-left: 10px;">
1203
               <div class="inline_block" style="margin-left: 10px;">
1259
                 诊断:
1204
                 诊断:
1373
                       class="row"
1318
                       class="row"
1374
                       style="padding: 2px 0;line-height:23px;display:flex;"
1319
                       style="padding: 2px 0;line-height:23px;display:flex;"
1375
                     >
1320
                     >
1376
-                      <div class="inline_block" style="flex:1;">
1321
+                      <!-- <div class="inline_block" style="flex:1;">
1377
                         透析器凝血:
1322
                         透析器凝血:
1378
                         <div
1323
                         <div
1379
                           class="under_line"
1324
                           class="under_line"
1386
                               : "/"
1331
                               : "/"
1387
                           }}
1332
                           }}
1388
                         </div>
1333
                         </div>
1389
-                      </div>
1334
+                      </div> -->
1390
                       <div class="inline_block" style="flex:1;">
1335
                       <div class="inline_block" style="flex:1;">
1391
                         内瘘:
1336
                         内瘘:
1392
                         <div
1337
                         <div
1447
                         </div>
1392
                         </div>
1448
                         min
1393
                         min
1449
                       </div>
1394
                       </div>
1395
+                      <!-- 只是占位 -->
1396
+                      <div class="inline_block" style="flex:1;visibility: hidden;">
1397
+                        透析器凝血:
1398
+                        <div
1399
+                          class="under_line"
1400
+                          style="width: 70px;text-align: center"
1401
+                        >
1402
+                          {{
1403
+                            record.assessment_after_dislysis &&
1404
+                            record.assessment_after_dislysis.cruor
1405
+                              ? record.assessment_after_dislysis.cruor
1406
+                              : "/"
1407
+                          }}
1408
+                        </div>
1409
+                      </div>
1450
                     </div>
1410
                     </div>
1451
 
1411
 
1452
                     <div
1412
                     <div
1525
                         ml
1485
                         ml
1526
                       </div>
1486
                       </div>
1527
                     </div>
1487
                     </div>
1528
-
1488
+                    <div
1489
+                      class="row"
1490
+                      style="padding: 2px 0;line-height:23px;display:flex;"
1491
+                    >
1492
+                      <div class="inline_block" style="flex:1;">
1493
+                        透析器凝血:
1494
+                        <span
1495
+                          style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;"
1496
+                        >
1497
+                          {{
1498
+                            record.assessment_after_dislysis &&
1499
+                            record.assessment_after_dislysis.cruor
1500
+                              ? record.assessment_after_dislysis.cruor
1501
+                              : "/"
1502
+                          }}
1503
+                        </span>
1504
+                      </div>
1505
+                    </div>
1529
                     <div
1506
                     <div
1530
                       class="row"
1507
                       class="row"
1531
                       style="padding: 2px 0;line-height:23px;display:flex;"
1508
                       style="padding: 2px 0;line-height:23px;display:flex;"
1560
                           <span
1537
                           <span
1561
                             v-if="
1538
                             v-if="
1562
                               setAdminUserES(
1539
                               setAdminUserES(
1563
-                                record.dialysis_order == null
1564
-                                  ? 0
1565
-                                  : record.dialysis_order.puncture_nurse
1540
+                                record.dialysis_order,
1541
+                                'puncture_nurse'
1566
                               ) == ''
1542
                               ) == ''
1567
                             "
1543
                             "
1568
                             >{{
1544
                             >{{
1569
                               getAdminUser(
1545
                               getAdminUser(
1570
-                                record.dialysis_order == null
1571
-                                  ? 0
1572
-                                  : record.dialysis_order.puncture_nurse
1546
+                                record.dialysis_order,
1547
+                                "puncture_nurse"
1573
                               )
1548
                               )
1549
+                                ? getAdminUser(
1550
+                                    record.dialysis_order,
1551
+                                    "puncture_nurse"
1552
+                                  )
1553
+                                : "/"
1574
                             }}</span
1554
                             }}</span
1575
                           >
1555
                           >
1576
                           <img
1556
                           <img
1577
-                            style="height:20px;"
1557
+                            class="es-img"
1578
                             :src="
1558
                             :src="
1579
                               setAdminUserES(
1559
                               setAdminUserES(
1580
-                                record.dialysis_order == null
1581
-                                  ? 0
1582
-                                  : record.dialysis_order.puncture_nurse
1560
+                                record.dialysis_order,
1561
+                                'puncture_nurse'
1583
                               )
1562
                               )
1584
                             "
1563
                             "
1585
                             alt=""
1564
                             alt=""
1586
                             srcset=""
1565
                             srcset=""
1587
                             v-else
1566
                             v-else
1567
+                            style="height: 40px;"
1588
                           />
1568
                           />
1589
                         </div>
1569
                         </div>
1590
                       </div>
1570
                       </div>
1597
                           <span
1577
                           <span
1598
                             v-if="
1578
                             v-if="
1599
                               setAdminUserES(
1579
                               setAdminUserES(
1600
-                                record.dialysis_order == null
1601
-                                  ? 0
1602
-                                  : record.dialysis_order.start_nurse
1580
+                                record.dialysis_order,
1581
+                                'start_nurse'
1603
                               ) == ''
1582
                               ) == ''
1604
                             "
1583
                             "
1605
                             >{{
1584
                             >{{
1606
-                              getAdminUser(
1607
-                                record.dialysis_order == null
1608
-                                  ? 0
1609
-                                  : record.dialysis_order.start_nurse
1610
-                              )
1585
+                              getAdminUser(record.dialysis_order, "start_nurse")
1586
+                                ? getAdminUser(
1587
+                                    record.dialysis_order,
1588
+                                    "start_nurse"
1589
+                                  )
1590
+                                : "/"
1611
                             }}</span
1591
                             }}</span
1612
                           >
1592
                           >
1613
                           <img
1593
                           <img
1614
-                            style="height:20px;"
1594
+                            class="es-img"
1615
                             :src="
1595
                             :src="
1616
                               setAdminUserES(
1596
                               setAdminUserES(
1617
-                                record.dialysis_order == null
1618
-                                  ? 0
1619
-                                  : record.dialysis_order.start_nurse
1597
+                                record.dialysis_order,
1598
+                                'start_nurse'
1620
                               )
1599
                               )
1621
                             "
1600
                             "
1622
                             alt=""
1601
                             alt=""
1623
                             srcset=""
1602
                             srcset=""
1624
                             v-else
1603
                             v-else
1604
+                            style="height: 40px;"
1625
                           />
1605
                           />
1626
                         </div>
1606
                         </div>
1627
                       </div>
1607
                       </div>
1632
                           style="width: 80px;text-align: left"
1612
                           style="width: 80px;text-align: left"
1633
                           v-if="record.dialysis_order == null"
1613
                           v-if="record.dialysis_order == null"
1634
                         ></div>
1614
                         ></div>
1635
-                        <div v-if="record.check">
1615
+                        <div v-if="record.check" class="under_line" style="width: 80px;text-align: left">
1636
                           <div
1616
                           <div
1637
-                            class="under_line"
1638
-                            style="width: 80px;text-align: left"
1617
+                            style="width: 80px;text-align: left;display: inline-block;white-space: nowrap;"
1639
                             v-if="
1618
                             v-if="
1640
                               record.dialysis_order != null &&
1619
                               record.dialysis_order != null &&
1641
                                 record.dialysis_order.start_nurse ==
1620
                                 record.dialysis_order.start_nurse ==
1644
                           >
1623
                           >
1645
                             <span
1624
                             <span
1646
                               v-if="
1625
                               v-if="
1647
-                                setAdminUserES(record.check, 'modifier') == ''
1626
+                                setAdminUserES(record.check, 'creater') == ''
1648
                               "
1627
                               "
1649
                               >{{
1628
                               >{{
1650
-                                getAdminUser(record.check, "modifier")
1629
+                                getAdminUser(record.check, "creater")
1630
+                                  ? getAdminUser(record.check, "creater")
1631
+                                  : "/"
1651
                               }}</span
1632
                               }}</span
1652
                             >
1633
                             >
1653
                             <img
1634
                             <img
1654
                               class="es-img"
1635
                               class="es-img"
1655
-                              :src="setAdminUserES(record.check, 'modifier')"
1636
+                              :src="setAdminUserES(record.check, 'creater')"
1656
                               alt=""
1637
                               alt=""
1657
                               srcset=""
1638
                               srcset=""
1658
                               v-else
1639
                               v-else
1640
+                              style="height: 40px;"
1659
                             />
1641
                             />
1660
                           </div>
1642
                           </div>
1661
                           <div
1643
                           <div
1722
                           <span
1704
                           <span
1723
                             v-if="
1705
                             v-if="
1724
                               setAdminUserES(
1706
                               setAdminUserES(
1725
-                                record.dialysis_order == null
1726
-                                  ? 0
1727
-                                  : record.dialysis_order.finish_nurse
1707
+                                record.dialysis_order,
1708
+                                'finish_nurse'
1728
                               ) == ''
1709
                               ) == ''
1729
                             "
1710
                             "
1730
                             >{{
1711
                             >{{
1731
                               getAdminUser(
1712
                               getAdminUser(
1732
-                                record.dialysis_order == null
1733
-                                  ? 0
1734
-                                  : record.dialysis_order.finish_nurse
1713
+                                record.dialysis_order,
1714
+                                "finish_nurse"
1735
                               )
1715
                               )
1716
+                                ? getAdminUser(
1717
+                                    record.dialysis_order,
1718
+                                    "finish_nurse"
1719
+                                  )
1720
+                                : "/"
1736
                             }}</span
1721
                             }}</span
1737
                           >
1722
                           >
1738
                           <img
1723
                           <img
1739
-                            style="height:20px;"
1724
+                            class="es-img"
1740
                             :src="
1725
                             :src="
1741
                               setAdminUserES(
1726
                               setAdminUserES(
1742
-                                record.dialysis_order == null
1743
-                                  ? 0
1744
-                                  : record.dialysis_order.finish_nurse
1727
+                                record.dialysis_order,
1728
+                                'finish_nurse'
1745
                               )
1729
                               )
1746
                             "
1730
                             "
1747
                             alt=""
1731
                             alt=""
1748
                             srcset=""
1732
                             srcset=""
1749
                             v-else
1733
                             v-else
1734
+                            style="height: 40px;"
1750
                           />
1735
                           />
1751
                         </div>
1736
                         </div>
1752
                       </div>
1737
                       </div>
1765
                             <span
1750
                             <span
1766
                               v-if="
1751
                               v-if="
1767
                                 setAdminUserES(
1752
                                 setAdminUserES(
1768
-                                  record.prescription.prescription_doctor
1753
+                                  record.prescription,
1754
+                                  'prescription_doctor'
1769
                                 ) == ''
1755
                                 ) == ''
1770
                               "
1756
                               "
1771
                               >{{
1757
                               >{{
1772
                                 getAdminUser(
1758
                                 getAdminUser(
1773
-                                  record.prescription.prescription_doctor
1759
+                                  record.prescription,
1760
+                                  "prescription_doctor"
1774
                                 )
1761
                                 )
1775
                               }}</span
1762
                               }}</span
1776
                             >
1763
                             >
1777
                             <img
1764
                             <img
1778
-                              style="height:20px;"
1765
+                              class="es-img"
1779
                               :src="
1766
                               :src="
1780
                                 setAdminUserES(
1767
                                 setAdminUserES(
1781
-                                  record.prescription.prescription_doctor
1768
+                                  record.prescription,
1769
+                                  'prescription_doctor'
1782
                                 )
1770
                                 )
1783
                               "
1771
                               "
1784
                               alt=""
1772
                               alt=""
1785
                               srcset=""
1773
                               srcset=""
1786
                               v-else
1774
                               v-else
1775
+                              style="height: 40px;"
1787
                             />
1776
                             />
1788
                           </template>
1777
                           </template>
1789
                         </div>
1778
                         </div>
1876
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1865
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
1877
     this.intake_arr = getDataConfig("hemodialysis", "intake");
1866
     this.intake_arr = getDataConfig("hemodialysis", "intake");
1878
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1867
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1879
-
1880
-    console.log("触发模板6");
1881
     var xtuser = this.$store.getters.xt_user;
1868
     var xtuser = this.$store.getters.xt_user;
1882
-    console.log("xtuser", xtuser);
1883
     this.orgname = xtuser.org.org_name;
1869
     this.orgname = xtuser.org.org_name;
1884
     //   this.orgname = "遂溪方济医院";
1870
     //   this.orgname = "遂溪方济医院";
1885
     this.modeOptions = this.$store.getters.treatment_mode;
1871
     this.modeOptions = this.$store.getters.treatment_mode;
1930
         var resp = rs.data;
1916
         var resp = rs.data;
1931
         if (resp.state == 1) {
1917
         if (resp.state == 1) {
1932
           this.records = this.records.concat(resp.data.schedules);
1918
           this.records = this.records.concat(resp.data.schedules);
1933
-          console.log("this", this.records);
1919
+          console.log("记录", this.records);
1920
+
1934
           for (const recordIndex in this.records) {
1921
           for (const recordIndex in this.records) {
1935
-            this.advice_groups = [];
1936
-            this.advice_groups_2 = [];
1937
             var dlegh = 0;
1922
             var dlegh = 0;
1938
-            if (
1939
-              (this.records[recordIndex].assessment_before_dislysis &&
1940
-                this.records[recordIndex].assessment_before_dislysis
1941
-                  .systolic_blood_pressure != 0 &&
1942
-                this.records[recordIndex].assessment_before_dislysis
1943
-                  .diastolic_blood_pressure != 0) ||
1944
-              (this.records[recordIndex].assessment_before_dislysis &&
1945
-                this.records[recordIndex].assessment_before_dislysis.remark
1946
-                  .length > 0) ||
1947
-              (this.records[recordIndex].assessment_before_dislysis &&
1948
-                this.records[recordIndex].assessment_before_dislysis
1949
-                  .pulse_frequency != 0) ||
1950
-              (this.records[recordIndex].assessment_before_dislysis &&
1951
-                this.records[recordIndex].assessment_before_dislysis
1952
-                  .breathing_rate != 0) ||
1953
-              (this.records[recordIndex].assessment_before_dislysis &&
1954
-                this.records[recordIndex].assessment_before_dislysis
1955
-                  .temperature != 0)
1956
-            ) {
1957
-              var nl = 6;
1958
-              this.records[recordIndex].print_length = 8;
1959
-              if (this.records[recordIndex].length > 8) {
1960
-                this.records[recordIndex].classname = "margin-bottom-900";
1961
-              } else {
1962
-                this.records[recordIndex].classname = "margin-bottom-300";
1963
-              }
1964
-            } else {
1965
-              var nl = 6;
1966
-              this.records[recordIndex].print_length = 9;
1967
-              if (this.records[recordIndex].length > 9) {
1968
-                this.records[recordIndex].classname = "margin-bottom-900";
1969
-              } else {
1970
-                this.records[recordIndex].classname = "margin-bottom-300";
1971
-              }
1972
-            }
1973
-            if (
1974
-              this.records[recordIndex].assessment_before_dislysis &&
1975
-              this.records[recordIndex].assessment_before_dislysis
1976
-                .blood_access_part_opera_id
1977
-            ) {
1978
-              this.records[
1979
-                recordIndex
1980
-              ].assessment_before_dislysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1981
-                this.records[recordIndex].assessment_before_dislysis
1982
-                  .blood_access_part_opera_id
1983
-              );
1984
-            }
1985
-
1986
-            if (recordIndex == this.records.length - 1) {
1987
-              this.records[recordIndex].classname = " ";
1988
-            }
1989
-
1990
-            this.records[recordIndex].monitor_records2 = [];
1991
             if (
1923
             if (
1992
               this.records[recordIndex].monitor_records &&
1924
               this.records[recordIndex].monitor_records &&
1993
-              this.records[recordIndex].monitor_records.length < 7
1925
+              this.records[recordIndex].monitor_records.length < 8
1994
             ) {
1926
             ) {
1995
-              dlegh = nl - this.records[recordIndex].monitor_records.length;
1996
-            }
1997
-            if (this.records[recordIndex].monitor_records.length <= 0) {
1998
-              dlegh = nl;
1927
+              dlegh = 8 - this.records[recordIndex].monitor_records.length;
1928
+            } else {
1929
+              dlegh = 0;
1999
             }
1930
             }
2000
             if (dlegh > 0) {
1931
             if (dlegh > 0) {
2001
               if (
1932
               if (
2006
                 this.records[recordIndex].monitor_records = [];
1937
                 this.records[recordIndex].monitor_records = [];
2007
               }
1938
               }
2008
               for (let index = 0; index < dlegh; index++) {
1939
               for (let index = 0; index < dlegh; index++) {
2009
-                this.records[recordIndex].monitor_records2.push([]);
1940
+                this.records[recordIndex].monitor_records.push([]);
2010
               }
1941
               }
2011
             }
1942
             }
2012
 
1943
 
2013
-            var tempmonitorflag = true;
2014
-            for (
2015
-              let index = 0;
2016
-              index < this.records[recordIndex].monitor_records.length;
2017
-              index++
2018
-            ) {
2019
-              const monitor = this.records[recordIndex].monitor_records[index];
2020
-              this.records[recordIndex].monitor_records[index].end = "";
2021
-              if (Object.keys(monitor).length > 0 && index > 1) {
2022
-                if (
2023
-                  monitor.operate_time ==
2024
-                  this.records[recordIndex].dialysis_order.end_time
2025
-                ) {
2026
-                  this.records[recordIndex].monitor_records[index].end =
2027
-                    "【结束透析】";
2028
-                  tempmonitorflag = false;
2029
-                }
2030
-                if (
2031
-                  tempmonitorflag &&
2032
-                  index == this.records[recordIndex].monitor_records.length - 1
2033
-                ) {
2034
-                  this.records[recordIndex].monitor_records[index].end =
2035
-                    "【结束透析】";
2036
-                }
2037
-              }
1944
+            this.records[recordIndex].isShowZero = false;
1945
+            if (this.records[recordIndex].patient.user_org_id == 9535) {
1946
+              this.records[recordIndex].isShowZero = true;
2038
             }
1947
             }
2039
 
1948
 
2040
-            this.monitor_records = this.records[recordIndex].monitor_records;
2041
-
2042
-            // this.records[recordIndex].monitor_records2 = []
2043
-            // if (this.records[recordIndex].monitor_records.length > 13){
2044
-            //   const tempMonitors = []
2045
-            //   const tempMonitors2 = []
1949
+            var delghTwo = 0;
1950
+            if (
1951
+              this.records[recordIndex].advices &&
1952
+              this.records[recordIndex].advices.length < 14
1953
+            ) {
1954
+              delghTwo = 14 - this.records[recordIndex].advices.length;
1955
+            } else {
1956
+              delghTwo = 0;
1957
+            }
2046
 
1958
 
2047
-            //   for (let index = 0; index < this.records[recordIndex].monitor_records.length; index++) {
2048
-            //     if (index < 13) {
2049
-            //       tempMonitors.push(this.records[recordIndex].monitor_records[index])
2050
-            //     } else {
2051
-            //       tempMonitors2.push(this.records[recordIndex].monitor_records[index])
2052
-            //     }
2053
-            //   }
2054
-            // this.records[recordIndex].monitor_records = tempMonitors
2055
-            // this.records[recordIndex].monitor_records2 = tempMonitors2
2056
-            // }
1959
+            if (delghTwo > 0) {
1960
+              if (
1961
+                typeof this.records[recordIndex].advices === "undefined" ||
1962
+                this.records[recordIndex].advices == null
1963
+              ) {
1964
+                this.records[recordIndex].advices = [];
1965
+              }
1966
+              for (let index = 0; index < delghTwo; index++) {
1967
+                this.records[recordIndex].advices.push([]);
1968
+              }
1969
+            }
2057
 
1970
 
2058
             var childMap = {};
1971
             var childMap = {};
2059
             for (const index in this.records[recordIndex].advices) {
1972
             for (const index in this.records[recordIndex].advices) {
2088
               advices.push(item);
2001
               advices.push(item);
2089
             }
2002
             }
2090
 
2003
 
2091
-            this.doctor_advices =
2092
-              this.records[recordIndex].advices == null
2093
-                ? []
2094
-                : this.records[recordIndex].advices;
2095
-            for (let index = 0; index < this.doctor_advices.length; index++) {
2096
-              this.doctor_advices[index]["isShow"] = 2;
2097
-            }
2098
-
2099
-            // if (this.doctor_advices.length > 0) {
2100
-            //   var group = this.newAdviceGroupObject()
2101
-            //   var initGroupBlock = function(group, advice) {
2102
-            //     group.group_no = advice.groupno
2103
-            //   }
2104
-            //   for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
2105
-            //     var new_advice_index = 0
2106
-            //     if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
2107
-            //       new_advice_index = index + this.doctor_advices[index].children.length + 1
2108
-
2109
-            //       var doctor_advice = {
2110
-            //         delivery_way: this.doctor_advices[index].delivery_way,
2111
-            //         execution_frequency: this.doctor_advices[index].execution_frequency,
2112
-            //         groupno: this.doctor_advices[index].groupno,
2113
-            //         id: this.doctor_advices[index].id,
2114
-            //         parent_id: this.doctor_advices[index].parent_id,
2115
-            //         children: this.doctor_advices[index].children,
2116
-            //         remark: this.doctor_advices[index].remark,
2117
-            //         execution_staff: this.doctor_advices[index].execution_staff,
2118
-            //         checker: this.doctor_advices[index].checker,
2119
-            //         advice_doctor: this.doctor_advices[index].advice_doctor,
2120
-            //         execution_time: this.doctor_advices[index].execution_time,
2121
-
2122
-            //       }
2123
-            //       doctor_advice['isShow'] = 1
2124
-            //       this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
2125
-            //     }
2126
-            //   }
2127
-
2128
-            //   var templength = 0
2129
-            //   if (this.doctor_advices.length > 12) {
2130
-            //     templength = 12
2131
-            //   } else {
2132
-            //     templength = this.doctor_advices.length
2133
-            //   }
2134
-
2135
-            //   for (let index = 0; index < templength; index++) {
2136
-            //     const advice = this.doctor_advices[index]
2137
-            //     if (advice.groupno == 0) {
2138
-            //       // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
2139
-            //       if (advice.parent_id > 0) {
2140
-            //         if (this.advice_groups.length > 0) {
2141
-            //           var parent_group = this.advice_groups[
2142
-            //             this.advice_groups.length - 1
2143
-            //           ]
2144
-            //           if (parent_group.advices.length > 0) {
2145
-            //             if (parent_group.advices[0].id == advice.parent_id) {
2146
-            //               parent_group.advices.push(advice)
2147
-            //             }
2148
-            //           }
2149
-            //         }
2150
-            //         continue
2151
-            //       } else {
2152
-            //         if (group.group_no > 0) {
2153
-            //           this.advice_groups.push(group)
2154
-            //           group = this.newAdviceGroupObject()
2155
-            //         }
2156
-
2157
-            //         initGroupBlock(group, advice)
2158
-            //         group.advices.push(advice)
2159
-            //         this.advice_groups.push(group)
2160
-            //         group = this.newAdviceGroupObject()
2161
-            //         continue
2162
-            //       }
2163
-            //     }
2164
-
2165
-            //     if (group.group_no > 0 && group.group_no != advice.groupno) {
2166
-            //       this.advice_groups.push(group)
2167
-            //       group = this.newAdviceGroupObject()
2168
-            //     }
2169
-            //     if (group.group_no == 0) {
2170
-            //       initGroupBlock(group, advice)
2171
-            //     }
2172
-            //     if (group.group_no == advice.groupno) {
2173
-            //       group.advices.push(advice)
2174
-            //     }
2175
-            //     if (index == 11) {
2176
-            //       this.advice_groups.push(group)
2177
-            //       group = this.newAdviceGroupObject()
2178
-            //     }
2179
-            //   }
2180
-
2181
-            //   if (this.doctor_advices.length > 12) {
2182
-            //     for (let index = 12; index < this.doctor_advices.length; index++) {
2183
-            //       const advice = this.doctor_advices[index]
2184
-            //       if (advice.groupno == 0) {
2185
-            //         // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
2186
-            //         if (advice.parent_id > 0) {
2187
-            //           if (this.advice_groups_2.length > 0) {
2188
-            //             var parent_group = this.advice_groups_2[
2189
-            //               this.advice_groups_2.length - 1
2190
-            //             ]
2191
-            //             if (parent_group.advices.length > 0) {
2192
-            //               if (parent_group.advices[0].id == advice.parent_id) {
2193
-            //                 parent_group.advices.push(advice)
2194
-            //               }
2195
-            //             }
2196
-            //           }
2197
-            //           continue
2198
-            //         } else {
2199
-            //           if (group.group_no > 0) {
2200
-            //             this.advice_groups_2.push(group)
2201
-            //             group = this.newAdviceGroupObject()
2202
-            //           }
2203
-
2204
-            //           initGroupBlock(group, advice)
2205
-            //           group.advices.push(advice)
2206
-            //           this.advice_groups_2.push(group)
2207
-            //           group = this.newAdviceGroupObject()
2208
-            //           continue
2209
-            //         }
2210
-            //       }
2211
-
2212
-            //       if (group.group_no > 0 && group.group_no != advice.groupno) {
2213
-            //         this.advice_groups_2.push(group)
2214
-            //         group = this.newAdviceGroupObject()
2215
-            //       }
2216
-            //       if (group.group_no == 0) {
2217
-            //         initGroupBlock(group, advice)
2218
-            //       }
2219
-            //       if (group.group_no == advice.groupno) {
2220
-            //         group.advices.push(advice)
2221
-            //       }
2222
-            //     }
2223
-            //   }
2224
-
2225
-            //   if (group.group_no > 0) {
2226
-            //     // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
2227
-            //     if (this.doctor_advices.length > 12) {
2228
-            //       this.advice_groups_2.push(group)
2229
-            //     } else {
2230
-            //       this.advice_groups.push(group)
2231
-            //     }
2232
-            //   }
2233
-            // }
2234
-
2235
-            if (this.doctor_advices.length <= 6) {
2236
-              var nl = 6;
2237
-              this.print_length = 6;
2004
+            var leftAdvice = [];
2005
+            var rightAdvice = [];
2006
+            var adlen = advices.length;
2238
 
2007
 
2008
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2009
+            for (var i = 0; i < halfLen; i++) {
2010
+              leftAdvice.push(advices[i]);
2011
+              var rightIndex = i + halfLen;
2012
+              rightAdvice.push(
2013
+                rightIndex in advices ? advices[i + halfLen] : []
2014
+              );
2015
+            }
2016
+            if (halfLen < 5) {
2017
+              var nl = 5 - leftAdvice.length;
2239
               for (let index = 0; index < nl; index++) {
2018
               for (let index = 0; index < nl; index++) {
2240
-                if (
2241
-                  this.doctor_advices[index] == undefined ||
2242
-                  this.doctor_advices[index].length <= 0
2243
-                ) {
2244
-                  this.doctor_advices.push([]);
2245
-                } else {
2246
-                  continue;
2247
-                }
2019
+                leftAdvice.push([]);
2020
+              }
2021
+              var nl = 5 - rightAdvice.length;
2022
+              for (let index = 0; index < nl; index++) {
2023
+                rightAdvice.push([]);
2248
               }
2024
               }
2249
             }
2025
             }
2250
-            this.records[recordIndex].advices = [];
2251
-            this.records[recordIndex].advices2 = [];
2252
-            this.records[recordIndex].advices = this.doctor_advices;
2253
-            this.records[recordIndex].advices2 = this.advice_groups_2;
2254
 
2026
 
2255
-            this.records[recordIndex].totallength =
2256
-              this.doctor_advices.length + this.monitor_records.length;
2027
+            this.records[recordIndex].advices = [];
2028
+            for (var i = 0; i < halfLen; i++) {
2029
+              var item = [];
2030
+              item.push(leftAdvice[i]);
2031
+              item.push(rightAdvice[i]);
2032
+              this.records[recordIndex].advices.push(item);
2033
+            }
2257
           }
2034
           }
2258
 
2035
 
2036
+          console.log(" this.records[recordIndex].advices", this.records);
2259
           this.operators = resp.data.medical_staffs;
2037
           this.operators = resp.data.medical_staffs;
2260
           if (this.operators.length > 0) {
2038
           if (this.operators.length > 0) {
2261
             var operatorsLen = this.operators.length;
2039
             var operatorsLen = this.operators.length;
2267
               );
2045
               );
2268
             }
2046
             }
2269
           }
2047
           }
2270
-
2271
           this.adminUser = resp.data.users;
2048
           this.adminUser = resp.data.users;
2272
           console.log("使用者", this.adminUser);
2049
           console.log("使用者", this.adminUser);
2273
           this.loading = false;
2050
           this.loading = false;
2422
       }
2199
       }
2423
     },
2200
     },
2424
     getAdminUser(key, id) {
2201
     getAdminUser(key, id) {
2202
+      console.log("key", key);
2203
+      console.log("id", id);
2425
       if (
2204
       if (
2426
         typeof key === "undefined" ||
2205
         typeof key === "undefined" ||
2427
         key == null ||
2206
         key == null ||
2429
       ) {
2208
       ) {
2430
         return "";
2209
         return "";
2431
       }
2210
       }
2432
-      if (key[id] == 0) {
2211
+      if (key[id] === 0) {
2433
         return "";
2212
         return "";
2434
       }
2213
       }
2435
-      if (key[id] == undefined) {
2214
+      if (key[id] === undefined) {
2436
         return "";
2215
         return "";
2437
       }
2216
       }
2438
       for (let i = 0; i < this.adminUser.length; i++) {
2217
       for (let i = 0; i < this.adminUser.length; i++) {
2439
-        if (this.adminUser[i].id == key[id]) {
2218
+        if (this.adminUser[i].id === key[id]) {
2440
           return this.adminUser[i].name;
2219
           return this.adminUser[i].name;
2441
         }
2220
         }
2442
       }
2221
       }

+ 12 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue Vedi File

566
       this.getSchedualPatientList();
566
       this.getSchedualPatientList();
567
     },
567
     },
568
     batchPrintAction: function() {
568
     batchPrintAction: function() {
569
+      if (this.selecting_schs.length === 0) {
570
+        this.$message.error("请至少选择一条需要打印的内容");
571
+        return false;
572
+      }
569
       // 模板ID为6
573
       // 模板ID为6
570
       var sch_ids = [];
574
       var sch_ids = [];
571
 
575
 
594
       }
598
       }
595
     },
599
     },
596
     batchPrintActionOne: function() {
600
     batchPrintActionOne: function() {
601
+      if (this.selecting_schs.length === 0) {
602
+        this.$message.error("请至少选择一条需要打印的内容");
603
+        return false;
604
+      }
597
       var sch_ids = [];
605
       var sch_ids = [];
598
       for (let index = 0; index < this.selecting_schs.length; index++) {
606
       for (let index = 0; index < this.selecting_schs.length; index++) {
599
         sch_ids.push(this.selecting_schs[index].sch_id);
607
         sch_ids.push(this.selecting_schs[index].sch_id);
600
       }
608
       }
601
-      console.log("第二个", sch_ids);
602
       this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
609
       this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
603
       if (this.template_id == 2 || this.template_id == 0) {
610
       if (this.template_id == 2 || this.template_id == 0) {
604
         this.$router.push({ path: "/dialysis/print/batch/otherone" });
611
         this.$router.push({ path: "/dialysis/print/batch/otherone" });
609
       }
616
       }
610
     },
617
     },
611
     batchPrintActionTwo: function() {
618
     batchPrintActionTwo: function() {
619
+      if (this.selecting_schs.length === 0) {
620
+        this.$message.error("请至少选择一条需要打印的内容");
621
+        return false;
622
+      }
612
       var sch_ids = [];
623
       var sch_ids = [];
613
       for (let index = 0; index < this.selecting_schs.length; index++) {
624
       for (let index = 0; index < this.selecting_schs.length; index++) {
614
         sch_ids.push(this.selecting_schs[index].sch_id);
625
         sch_ids.push(this.selecting_schs[index].sch_id);

+ 3 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue Vedi File

570
     },
570
     },
571
     blood_access: function() {
571
     blood_access: function() {
572
       var id = this.getValueStr("blood_access", "blood_access");
572
       var id = this.getValueStr("blood_access", "blood_access");
573
+      console.log("id", id);
573
       if (id == 0) {
574
       if (id == 0) {
574
         return "";
575
         return "";
575
       }
576
       }
576
-      var blood_access = this.$store.getters.blood_access_internal_fistula;
577
+      // var blood_access = this.$store.getters.blood_access_internal_fistula;
578
+      var blood_access = getDataConfig("hemodialysis", "vascular_access_desc");
577
       for (let i = 0; i < blood_access.length; i++) {
579
       for (let i = 0; i < blood_access.length; i++) {
578
         if (blood_access[i].id == id) {
580
         if (blood_access[i].id == id) {
579
           return blood_access[i].name;
581
           return blood_access[i].name;

+ 3 - 3
src/xt_pages/dialysis/details/NavIgation.vue Vedi File

642
 }
642
 }
643
 .redpoint {
643
 .redpoint {
644
   display: inline-block;
644
   display: inline-block;
645
-  height: 30px;
646
-  width: 30px;
645
+  height: 26px;
646
+  width: 26px;
647
   line-height: 26px;
647
   line-height: 26px;
648
   text-align: center;
648
   text-align: center;
649
-  font-size: 0.8em;
649
+  font-size: 16px;
650
   border-radius: 20px;
650
   border-radius: 20px;
651
   color: #fff;
651
   color: #fff;
652
   background: #f56c6c;
652
   background: #f56c6c;

+ 9 - 7
src/xt_pages/dialysis/details/assessmentAfter.vue Vedi File

264
 
264
 
265
         <li v-if="isShow('中心静脉封管(肝素-A端)')">
265
         <li v-if="isShow('中心静脉封管(肝素-A端)')">
266
           <label for="bzh">中心静脉封管(肝素-A端): </label>
266
           <label for="bzh">中心静脉封管(肝素-A端): </label>
267
-          <span class="content" id="tzjs">{{this.record.cvc_a?this.record.cvc_a:''}}</span>
268
-          <span class="unit">{{this.record.cvc_a?'ml':''}}</span>
267
+          <span class="content" id="tzjs">{{
268
+            this.record.cvc_a ? this.record.cvc_a : ""
269
+          }}</span>
270
+          <span class="unit">{{ this.record.cvc_a ? "ml" : "" }}</span>
269
         </li>
271
         </li>
270
         <li v-if="isShow('中心静脉封管(肝素-V端)')">
272
         <li v-if="isShow('中心静脉封管(肝素-V端)')">
271
           <label for="bzh">中心静脉封管(肝素-V端): </label>
273
           <label for="bzh">中心静脉封管(肝素-V端): </label>
272
-          <span class="content" id="tzjs">{{this.record.cvc_v?this.record.cvc_v:''}}</span>
273
-          <span class="unit">{{this.record.cvc_v?'ml':''}}</span>
274
+          <span class="content" id="tzjs">{{
275
+            this.record.cvc_v ? this.record.cvc_v : ""
276
+          }}</span>
277
+          <span class="unit">{{ this.record.cvc_v ? "ml" : "" }}</span>
274
         </li>
278
         </li>
275
-
276
       </ul>
279
       </ul>
277
     </div>
280
     </div>
278
     <div class="note">
281
     <div class="note">
439
         return "-";
442
         return "-";
440
       }
443
       }
441
       const vascular_access = this.$store.getters.vascular_access_desc;
444
       const vascular_access = this.$store.getters.vascular_access_desc;
442
-      console.log(vascular_access);
445
+      // console.log(vascular_access);
443
       let name = "-";
446
       let name = "-";
444
       for (var index in vascular_access) {
447
       for (var index in vascular_access) {
445
         if (
448
         if (
708
       return dialyzerName;
711
       return dialyzerName;
709
     },
712
     },
710
     isShow(name) {
713
     isShow(name) {
711
-      console.log("name", name);
712
       var filedList = store.getters.xt_user.fileds;
714
       var filedList = store.getters.xt_user.fileds;
713
 
715
 
714
       for (let i = 0; i < filedList.length; i++) {
716
       for (let i = 0; i < filedList.length; i++) {

+ 13 - 13
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Vedi File

292
     },
292
     },
293
     show(accepts) {
293
     show(accepts) {
294
       this.accepts = accepts;
294
       this.accepts = accepts;
295
-      console.log("accepts", accepts);
295
+      // console.log("accepts", accepts);
296
       var arr = [];
296
       var arr = [];
297
       if (this.accepts.precaution) {
297
       if (this.accepts.precaution) {
298
         var precaution = this.accepts.precaution.split(",");
298
         var precaution = this.accepts.precaution.split(",");
299
-        console.log("precaution", precaution);
300
-        console.log("hhh", this.precaution_arr);
299
+        // console.log("precaution", precaution);
300
+        // console.log("hhh", this.precaution_arr);
301
         for (let i = 0; i < precaution.length; i++) {
301
         for (let i = 0; i < precaution.length; i++) {
302
           for (let j = 0; j < this.precaution_arr.length; j++) {
302
           for (let j = 0; j < this.precaution_arr.length; j++) {
303
             if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
303
             if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
304
-              console.log("aaaa");
304
+              // console.log("aaaa");
305
               arr.push(this.precaution_arr[j].name);
305
               arr.push(this.precaution_arr[j].name);
306
             }
306
             }
307
           }
307
           }
308
         }
308
         }
309
         this.precautionTwo = arr;
309
         this.precautionTwo = arr;
310
-        console.log("arr", arr);
310
+        // console.log("arr", arr);
311
       }
311
       }
312
 
312
 
313
       this.getPermission();
313
       this.getPermission();
342
           }
342
           }
343
         }
343
         }
344
       }
344
       }
345
-      console.log("arr", arr);
345
+      // console.log("arr", arr);
346
       var obj = arr.join(",");
346
       var obj = arr.join(",");
347
       this.receiveTreatmentAsses.precaution = obj;
347
       this.receiveTreatmentAsses.precaution = obj;
348
       let ParamsQuery = this.receiveTreatmentAsses;
348
       let ParamsQuery = this.receiveTreatmentAsses;
349
-      console.log("ParamsQuery", ParamsQuery);
349
+      // console.log("ParamsQuery", ParamsQuery);
350
       ParamsQuery["patient"] = this.patient.id;
350
       ParamsQuery["patient"] = this.patient.id;
351
       ParamsQuery["record_date"] = this.record_date;
351
       ParamsQuery["record_date"] = this.record_date;
352
-      console.log(this.receiver_treatment_access);
352
+      //console.log(this.receiver_treatment_access);
353
       ParamsQuery["mode"] = "1";
353
       ParamsQuery["mode"] = "1";
354
       if (this.receiver_treatment_access.id > 0) {
354
       if (this.receiver_treatment_access.id > 0) {
355
         ParamsQuery["mode"] = "2";
355
         ParamsQuery["mode"] = "2";
360
           ParamsQuery["mode"] = "3";
360
           ParamsQuery["mode"] = "3";
361
         }
361
         }
362
       }
362
       }
363
-      console.log("数据", this.precautionTwo);
363
+      // console.log("数据", this.precautionTwo);
364
       postAccepts(ParamsQuery).then(response => {
364
       postAccepts(ParamsQuery).then(response => {
365
         if (response.data.state == 0) {
365
         if (response.data.state == 0) {
366
           this.$message.error(response.data.msg);
366
           this.$message.error(response.data.msg);
401
           }
401
           }
402
         })
402
         })
403
         .then(res => {
403
         .then(res => {
404
-          console.log(res);
405
-          console.log("接诊", this.accepts);
404
+          // console.log(res);
405
+          //console.log("接诊", this.accepts);
406
           if (res.data.state == 0) {
406
           if (res.data.state == 0) {
407
             this.hasPermission = false;
407
             this.hasPermission = false;
408
           } else if (res.data.state == 1) {
408
           } else if (res.data.state == 1) {
460
     }
460
     }
461
   },
461
   },
462
   created() {
462
   created() {
463
-    console.log("接诊评估", this.receiver_treatment_access);
463
+    // console.log("接诊评估", this.receiver_treatment_access);
464
     var date = this.$route.query && this.$route.query.date;
464
     var date = this.$route.query && this.$route.query.date;
465
     this.record_date = uParseTime(date, "{y}-{m}-{d}");
465
     this.record_date = uParseTime(date, "{y}-{m}-{d}");
466
 
466
 
470
     this.posture_arr = getDataConfig("hemodialysis", "posture");
470
     this.posture_arr = getDataConfig("hemodialysis", "posture");
471
     this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
471
     this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
472
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
472
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
473
-    console.log("风险", this.precaution_arr);
473
+    // console.log("风险", this.precaution_arr);
474
     this.intake_arr = getDataConfig("hemodialysis", "intake");
474
     this.intake_arr = getDataConfig("hemodialysis", "intake");
475
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
475
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
476
   }
476
   }

+ 57 - 12
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Vedi File

1196
         "hemodialysis",
1196
         "hemodialysis",
1197
         "dialysate_formulation"
1197
         "dialysate_formulation"
1198
       );
1198
       );
1199
-      this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1199
+      // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1200
+      // console.log("0000000000", this.anticoagulantsConfit);
1201
+      var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit;
1202
+      console.log("333", anticoagulantsConfitOne);
1203
+      for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
1204
+        console.log("anticoagulantsConfitOne", anticoagulantsConfitOne[i].name);
1205
+      }
1206
+      var anticoagulantsConfit = getDataConfig("hemodialysis", "anticoagulant");
1207
+      let arr = [];
1208
+      anticoagulantsConfit.map((item, index) => {
1209
+        let objChild = { ...item };
1210
+        arr.push(objChild);
1211
+      });
1212
+      var arrthree = {};
1213
+      arrthree = { ...arr };
1214
+      console.log("arrthree", arrthree);
1215
+      let arrFour = [];
1216
+      Object.keys(anticoagulantsConfitOne).map((item, index) => {
1217
+        Object.keys(arrthree).map((it, i) => {
1218
+          if (anticoagulantsConfitOne[item].name == arrthree[it].name) {
1219
+            arrFour.push(anticoagulantsConfitOne[item]);
1220
+          }
1221
+        });
1222
+      });
1223
+      console.log("arrFour", arrFour);
1224
+      this.anticoagulantsConfit = arrFour;
1200
       this.dialysisList = this.devices;
1225
       this.dialysisList = this.devices;
1201
 
1226
 
1202
       this.body_fluid_option = this.$store.getters.body_fluid;
1227
       this.body_fluid_option = this.$store.getters.body_fluid;
1207
         "hemodialysis",
1232
         "hemodialysis",
1208
         "vascular_access_desc"
1233
         "vascular_access_desc"
1209
       );
1234
       );
1235
+      console.log("血管通路", this.blood_access_option);
1210
       var date = this.$route.query && this.$route.query.date;
1236
       var date = this.$route.query && this.$route.query.date;
1211
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
1237
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
1212
 
1238
 
1251
       } else {
1277
       } else {
1252
         this.dialysisPrescription.mode_id = schedual.mode_id;
1278
         this.dialysisPrescription.mode_id = schedual.mode_id;
1253
       }
1279
       }
1254
-
1255
       var thismode = parseInt(this.dialysisPrescription.anticoagulant);
1280
       var thismode = parseInt(this.dialysisPrescription.anticoagulant);
1256
       if (isNaN(thismode) || thismode <= 0) {
1281
       if (isNaN(thismode) || thismode <= 0) {
1257
         return false;
1282
         return false;
1531
       return uParseTime(val, "{y}-{m}-{d} {h}:{i}");
1556
       return uParseTime(val, "{y}-{m}-{d} {h}:{i}");
1532
     },
1557
     },
1533
     show(pre) {
1558
     show(pre) {
1559
+      if (pre.anticoagulant == 3) {
1560
+        this.dialysisPrescription.anticoagulant = "低分子肝素";
1561
+      }
1534
       this.pre = pre;
1562
       this.pre = pre;
1535
-      console.log("pre", pre);
1563
+      console.log("pre1", pre);
1536
       this.getPermission();
1564
       this.getPermission();
1537
-
1565
+      
1538
       let last_weight_after = 0;
1566
       let last_weight_after = 0;
1539
       let weight_before = 0;
1567
       let weight_before = 0;
1540
 
1568
 
1568
       this.isVisibility = false;
1596
       this.isVisibility = false;
1569
     },
1597
     },
1570
     changeThisAnticoagulant: function(val) {
1598
     changeThisAnticoagulant: function(val) {
1571
-      var thismode = parseInt(val);
1599
+      // console.log("val", val);
1600
+      //debugger;
1601
+      // var thismode = parseInt(val);
1602
+      var thismode = val;
1572
       if (isNaN(thismode) || thismode <= 0) {
1603
       if (isNaN(thismode) || thismode <= 0) {
1573
         return false;
1604
         return false;
1574
       }
1605
       }
1575
-      if (
1576
-        typeof this.anticoagulantsConfit[thismode] === "undefined" ||
1577
-        this.anticoagulantsConfit[thismode] == null
1578
-      ) {
1579
-        return false;
1606
+
1607
+      //if (
1608
+      // typeof this.anticoagulantsConfit[thismode] === "undefined" ||
1609
+      //  this.anticoagulantsConfit[thismode] == null
1610
+      // ) {
1611
+      //   return false;
1612
+      // }
1613
+
1614
+      if (val < 2) {
1615
+        this.anticoagulant = this.anticoagulantsConfit[thismode - 1];
1580
       }
1616
       }
1581
-      this.anticoagulant = this.anticoagulantsConfit[thismode];
1617
+      if (val > 2) {
1618
+        this.anticoagulant = this.anticoagulantsConfit[thismode - 2];
1619
+      }
1620
+
1621
+      //console.log("fffff", this.anticoagulant);
1582
     },
1622
     },
1583
     handleCommit: function() {
1623
     handleCommit: function() {
1624
+      console.log("aaaa----", this.dialysisPrescription.anticoagulant);
1625
+      if (this.dialysisPrescription.anticoagulant == "低分子肝素") {
1626
+        this.dialysisPrescription.anticoagulant = 3;
1627
+      }
1584
       if (this.dialysisPrescription.anticoagulant == 1) {
1628
       if (this.dialysisPrescription.anticoagulant == 1) {
1585
         this.dialysisPrescription.anticoagulant_weichi = "0";
1629
         this.dialysisPrescription.anticoagulant_weichi = "0";
1586
         this.dialysisPrescription.anticoagulant_shouji = "0";
1630
         this.dialysisPrescription.anticoagulant_shouji = "0";
1757
             const ParamsQuery = this.dialysisPrescription;
1801
             const ParamsQuery = this.dialysisPrescription;
1758
             ParamsQuery["patient"] = this.patient.id;
1802
             ParamsQuery["patient"] = this.patient.id;
1759
             ParamsQuery["record_date"] = this.record_date;
1803
             ParamsQuery["record_date"] = this.record_date;
1760
-            console.log(this.prescription);
1804
+            // console.log(this.prescription);
1761
 
1805
 
1762
             if (this.prescription.creater <= 0) {
1806
             if (this.prescription.creater <= 0) {
1763
               mode = 1;
1807
               mode = 1;
1778
                 });
1822
                 });
1779
 
1823
 
1780
                 const prescription_resp = response.data.data.prescription;
1824
                 const prescription_resp = response.data.data.prescription;
1825
+                // console.log("aaaaaaa", prescription_resp);
1781
                 var prescription = this.prescription;
1826
                 var prescription = this.prescription;
1782
                 for (var index in prescription_resp) {
1827
                 for (var index in prescription_resp) {
1783
                   // prescription[index] = prescription_resp[index];
1828
                   // prescription[index] = prescription_resp[index];

+ 13 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Vedi File

1274
 <style style="stylesheet/scss" lang="scss">
1274
 <style style="stylesheet/scss" lang="scss">
1275
 .dialog_box .current-box-class .current-row > td {
1275
 .dialog_box .current-box-class .current-row > td {
1276
   background: #6fb5fa;
1276
   background: #6fb5fa;
1277
-  color: white;
1277
+  // color: #000;
1278
   /* font-size: 12px; */
1278
   /* font-size: 12px; */
1279
 }
1279
 }
1280
 
1280
 
1281
 .dialog_box .current-box-class .current-row:hover > td {
1281
 .dialog_box .current-box-class .current-row:hover > td {
1282
   background: #6fb5fa;
1282
   background: #6fb5fa;
1283
-  color: white;
1283
+  // color: white;
1284
   /* font-size: 12px; */
1284
   /* font-size: 12px; */
1285
 }
1285
 }
1286
 .el-table__body-wrapper::-webkit-scrollbar {
1286
 .el-table__body-wrapper::-webkit-scrollbar {
1287
   height: 20px;
1287
   height: 20px;
1288
 }
1288
 }
1289
+.dialog_box .current-box-class .current-row{
1290
+  background: #87ceff;
1291
+}
1292
+.dialog_box tr:hover > td {
1293
+  background-color: #ecf5ff !important;
1294
+  color: #3a8ee6;
1295
+}
1296
+.dialog_box tr > td:hover {
1297
+  background-color: #409eff !important;
1298
+  color: #fff !important;
1299
+}
1289
 </style>
1300
 </style>

+ 7 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Vedi File

19
             }}</span>
19
             }}</span>
20
           </td>
20
           </td>
21
           <td style="text-align:center;">
21
           <td style="text-align:center;">
22
-            性别:
23
-            <span style="display:inline-block;margin-left:10px;">{{
22
+          性别:
23
+          <span style="display:inline-block;margin-left:10px;">{{
24
               patientInfo.gender
24
               patientInfo.gender
25
             }}</span>
25
             }}</span>
26
-          </td>
26
+        </td>
27
           <td style="text-align:center;">
27
           <td style="text-align:center;">
28
             年龄:
28
             年龄:
29
             <span style="display:inline-block;margin-left:10px;">{{
29
             <span style="display:inline-block;margin-left:10px;">{{
768
               "
768
               "
769
             ></label-box>
769
             ></label-box>
770
             <label-box
770
             <label-box
771
-              showValue="加强宣"
771
+              showValue="加强宣"
772
               :isChecked="
772
               :isChecked="
773
-                receiverTreatmentAccess.precaution.indexOf('加强宣') > -1
773
+                receiverTreatmentAccess.precaution.indexOf('加强宣') > -1
774
                   ? true
774
                   ? true
775
                   : false
775
                   : false
776
               "
776
               "
839
           <td>{{ monitor.sodium_concentration }}</td>
839
           <td>{{ monitor.sodium_concentration }}</td>
840
           <td>
840
           <td>
841
             <span style="line-height:18px;display:block;"
841
             <span style="line-height:18px;display:block;"
842
-              >{{ monitor.symptom }} &nbsp;{{ monitor.result }}&nbsp;{{
843
-                monitor.dispose
842
+              >{{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
843
+                monitor.result
844
               }}</span
844
               }}</span
845
             >
845
             >
846
           </td>
846
           </td>

+ 29 - 26
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Vedi File

1383
                   </tr> -->
1383
                   </tr> -->
1384
                   <tr>
1384
                   <tr>
1385
                     <td width="70">拔针压迫:</td>
1385
                     <td width="70">拔针压迫:</td>
1386
-                    <td width="300">
1386
+                    <td width="350">
1387
                       <div style="display:flex;justify-content:space-between;">
1387
                       <div style="display:flex;justify-content:space-between;">
1388
                         <label-box
1388
                         <label-box
1389
                           showValue="自己压迫"
1389
                           showValue="自己压迫"
1405
                             afterdialysis.hemostasis_opera == 1 ? true : false
1405
                             afterdialysis.hemostasis_opera == 1 ? true : false
1406
                           "
1406
                           "
1407
                         ></label-box>
1407
                         ></label-box>
1408
+                        <label-box
1409
+                          showValue="内瘘止血带"
1410
+                          :isChecked="
1411
+                            afterdialysis.hemostasis_opera == 4 ? true : false
1412
+                          "
1413
+                        ></label-box>
1408
                       </div>
1414
                       </div>
1409
                     </td>
1415
                     </td>
1410
                     <td width="50"></td>
1416
                     <td width="50"></td>
1663
                         ></label-box>
1669
                         ></label-box>
1664
                       </div>
1670
                       </div>
1665
                     </td>
1671
                     </td>
1666
-                    <td width="80"></td>
1667
-                    <td width="60">管路:</td>
1668
-                    <td width="220">
1669
-                      <div style="display:flex;justify-content:space-between;">
1670
-                        <label-box showValue="无" :isChecked="
1671
-                            afterdialysis.channel == 1 ? true : false
1672
-                          "></label-box>
1673
-                        <label-box showValue="+" :isChecked="
1674
-                            afterdialysis.channel == 2 ? true : false
1675
-                          "></label-box>
1676
-                        <label-box showValue="+ +" :isChecked="
1677
-                            afterdialysis.channel == 3  ? true : false
1678
-                          "></label-box>
1679
-                        <label-box showValue="+ + +" :isChecked="
1680
-                            afterdialysis.channel == 4 ? true : false
1681
-                          "></label-box>
1682
-                      </div>
1683
-                    </td>
1672
+                    <!--<td width="80"></td>-->
1673
+                    <!--<td width="60">管路:</td>-->
1674
+                    <!--<td width="220">-->
1675
+                      <!--<div style="display:flex;justify-content:space-between;">-->
1676
+                        <!--<label-box showValue="无" :isChecked="-->
1677
+                            <!--afterdialysis.channel == 1 ? true : false-->
1678
+                          <!--"></label-box>-->
1679
+                        <!--<label-box showValue="+" :isChecked="-->
1680
+                            <!--afterdialysis.channel == 2 ? true : false-->
1681
+                          <!--"></label-box>-->
1682
+                        <!--<label-box showValue="+ +" :isChecked="-->
1683
+                            <!--afterdialysis.channel == 3  ? true : false-->
1684
+                          <!--"></label-box>-->
1685
+                        <!--<label-box showValue="+ + +" :isChecked="-->
1686
+                            <!--afterdialysis.channel == 4 ? true : false-->
1687
+                          <!--"></label-box>-->
1688
+                      <!--</div>-->
1689
+                    <!--</td>-->
1684
                     <td></td>
1690
                     <td></td>
1685
                   </tr>
1691
                   </tr>
1686
                 </tbody>
1692
                 </tbody>
1971
             <td width="30">医生</td>
1977
             <td width="30">医生</td>
1972
             <td width="80">
1978
             <td width="80">
1973
               <div class="under-line">
1979
               <div class="under-line">
1974
-                &nbsp;
1975
-                <span v-if="doctorForm.url === ''">{{
1976
-                  doctorForm.doctor
1977
-                }}</span>
1978
-                <span v-if="doctorForm.url !== ''">
1979
-                  <img style="height:20px" :src="doctorForm.url" />
1980
-                </span>
1980
+                &nbsp
1981
+                <span v-if=" setAdminUserES(prescription.creater) == '' " >{{ getAdminUser(prescription.creater)}}</span >
1982
+                <img style="height:20px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else  />
1981
               </div>
1983
               </div>
1982
             </td>
1984
             </td>
1983
             <td width="50">治疗护士</td>
1985
             <td width="50">治疗护士</td>
3095
 .print-template-two tr {
3097
 .print-template-two tr {
3096
   line-height: 30px;
3098
   line-height: 30px;
3097
 }
3099
 }
3100
+/*  */
3098
 </style>
3101
 </style>

File diff suppressed because it is too large
+ 2425 - 1592
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue


+ 31 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Vedi File

289
                     <span v-if="prescription.anticoagulant == '普通肝素'"
289
                     <span v-if="prescription.anticoagulant == '普通肝素'"
290
                       >iu</span
290
                       >iu</span
291
                     >
291
                     >
292
-                    <span v-if="prescription.anticoagulant == '无肝素'">mg</span
292
+                    <span v-if="prescription.anticoagulant == '无肝素'"
293
+                      >mg</span
294
+                    >
295
+                    <span v-if="prescription.anticoagulant == '低分子肝素钙'"
296
+                      >iu</span
297
+                    >
298
+                    <span v-if="prescription.anticoagulant == '低分子肝素钠'"
299
+                      >iu</span
293
                     >&nbsp;
300
                     >&nbsp;
294
                   </td>
301
                   </td>
295
                   <td style="text-align:left;margin-left:15px">
302
                   <td style="text-align:left;margin-left:15px">
316
                     <span v-if="prescription.anticoagulant == '无肝素'"
323
                     <span v-if="prescription.anticoagulant == '无肝素'"
317
                       >mg/h</span
324
                       >mg/h</span
318
                     >
325
                     >
326
+                    <span v-if="prescription.anticoagulant == '低分子肝素钙'"
327
+                      >iu/h</span
328
+                    >
329
+                    <span v-if="prescription.anticoagulant == '低分子肝素钠'"
330
+                      >iu/h</span
331
+                    >
319
                   </td>
332
                   </td>
320
                   <td style="text-align:left;margin-left:15px">
333
                   <td style="text-align:left;margin-left:15px">
321
                     总量:<span class="under-line"
334
                     总量:<span class="under-line"
337
                     <span v-if="prescription.anticoagulant == '普通肝素'"
350
                     <span v-if="prescription.anticoagulant == '普通肝素'"
338
                       >iu</span
351
                       >iu</span
339
                     >
352
                     >
340
-                    <span v-if="prescription.anticoagulant == '无肝素'">mg</span
341
-                    >;
353
+                    <span v-if="prescription.anticoagulant == '无肝素'"
354
+                      >mg</span
355
+                    >
356
+                    <span v-if="prescription.anticoagulant == '低分子肝素钙'"
357
+                      >iu</span
358
+                    >
359
+                    <span v-if="prescription.anticoagulant == '低分子肝素钠'"
360
+                      >iu</span
361
+                    >
342
                   </td>
362
                   </td>
343
                 </tr>
363
                 </tr>
344
                 <tr>
364
                 <tr>
403
                     </span>
423
                     </span>
404
                   </td>
424
                   </td>
405
                 </tr>
425
                 </tr>
426
+
406
               </table>
427
               </table>
407
             </td>
428
             </td>
408
           </tr>
429
           </tr>
1290
           this.doctorForm.doctor = doctorname.user_name;
1311
           this.doctorForm.doctor = doctorname.user_name;
1291
           this.doctorForm.url = doctorname.url;
1312
           this.doctorForm.url = doctorname.url;
1292
           var prescription = response.data.data.dialysisPrescription;
1313
           var prescription = response.data.data.dialysisPrescription;
1293
-          //console.log("透析处方", prescription);
1314
+          console.log("透析处方", prescription);
1315
+          if (prescription.anticoagulant == 6) {
1316
+            prescription.anticoagulant = "低分子肝素钙";
1317
+          }
1318
+          if (prescription.anticoagulant == 7) {
1319
+            prescription.anticoagulant = "低分子肝素钠";
1320
+          }
1294
           if (prescription.blood_access === 1) {
1321
           if (prescription.blood_access === 1) {
1295
             prescription.blood_access = "正常";
1322
             prescription.blood_access = "正常";
1296
           }
1323
           }

File diff suppressed because it is too large
+ 1444 - 507
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue


+ 1 - 0
src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue Vedi File

3095
 .print-template-two tr {
3095
 .print-template-two tr {
3096
   line-height: 30px;
3096
   line-height: 30px;
3097
 }
3097
 }
3098
+/*  */
3098
 </style>
3099
 </style>

File diff suppressed because it is too large
+ 992 - 643
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue


+ 6 - 1
src/xt_pages/user/components/PatientForm.vue Vedi File

650
             </el-form-item>
650
             </el-form-item>
651
           </el-col>
651
           </el-col>
652
 
652
 
653
-          <el-col :span="24" align="right">
653
+          <el-col :span="24" align="right" class="newCol">
654
             <el-form-item>
654
             <el-form-item>
655
               <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
655
               <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
656
               <el-button
656
               <el-button
1594
 .el-select-dropdown {
1594
 .el-select-dropdown {
1595
   z-index: 998 !important;
1595
   z-index: 998 !important;
1596
 }
1596
 }
1597
+.newCol{
1598
+  position: fixed;
1599
+  bottom: 0;
1600
+  right: 50px;
1601
+}
1597
 </style>
1602
 </style>
1598
 
1603
 

File diff suppressed because it is too large
+ 1275 - 1033
src/xt_pages/user/dialysisSolution.vue


+ 1 - 1
src/xt_pages/workforce/components/tableWeeks.vue Vedi File

144
 
144
 
145
     methods: {
145
     methods: {
146
       printAction(){
146
       printAction(){
147
-        console.log("111111")
147
+        console.log("111111",this.week_type)
148
         this.$router.push({ path: '/schedule/remind/print?week_type=' + this.week_type })
148
         this.$router.push({ path: '/schedule/remind/print?week_type=' + this.week_type })
149
 
149
 
150
       },
150
       },

+ 52 - 2
src/xt_pages/workforce/remind_print.vue Vedi File

18
       <div id="print_content">
18
       <div id="print_content">
19
         <div class="print_main_content">
19
         <div class="print_main_content">
20
           <div class="order_title_panl">
20
           <div class="order_title_panl">
21
-            <span class="main_title">{{day}}排班提醒</span>
21
+            <span class="main_title">{{day}}排班提醒({{ currentDate }})</span>
22
           </div>
22
           </div>
23
           <div class="table_panel">
23
           <div class="table_panel">
24
             <table class="table">
24
             <table class="table">
109
         td_4_width: '45%',
109
         td_4_width: '45%',
110
         modeOptions: null,
110
         modeOptions: null,
111
         anticoagulants_confit:null,
111
         anticoagulants_confit:null,
112
+        currentDate:''
112
       }
113
       }
113
     },
114
     },
114
     components: {
115
     components: {
115
       BreadCrumb
116
       BreadCrumb
116
     },
117
     },
117
     created() {
118
     created() {
118
-
119
+     this.currentDate = this.getCurrentDate()
119
       this.modeOptions = this.$store.getters.treatment_mode
120
       this.modeOptions = this.$store.getters.treatment_mode
120
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
121
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
121
       this.week_type = this.$route.query.week_type
122
       this.week_type = this.$route.query.week_type
212
             break
213
             break
213
         }
214
         }
214
         return type_name
215
         return type_name
216
+      },
217
+      getCurrentDate: function () {
218
+        console.log(this.$route.query.week_type)
219
+        var myDate = new Date();
220
+        var year = myDate.getFullYear(); //年
221
+        var month = myDate.getMonth() + 1; //月
222
+        var day = myDate.getDate(); //日
223
+        var newday = myDate.getDay();
224
+        var days = parseInt(this.$route.query.week_type);
225
+        var dayNum = parseInt(this.$route.query.week_type);
226
+        switch(days) {
227
+          case 1:
228
+            days = '星期一';
229
+            break;
230
+          case 2:
231
+            days = '星期二';
232
+            break;
233
+          case 3:
234
+            days = '星期三';
235
+            break;
236
+          case 4:
237
+            days = '星期四';
238
+            break;
239
+          case 5:
240
+            days = '星期五';
241
+            break;
242
+          case 6:
243
+            days = '星期六';
244
+            break;
245
+          case 7:
246
+            days = '星期日';
247
+            break;
248
+        }
249
+        if(newday > dayNum){
250
+          let lastDay = day - (newday - dayNum)
251
+          console.log("lastDay1",lastDay)
252
+          var str = year + "年" + month + "月" + lastDay + "日  " + days;
253
+          return str;
254
+        }else if(newday < dayNum){
255
+          let lastDay = day + (dayNum - newday)
256
+          console.log("lastDay2",lastDay)
257
+          var str = year + "年" + month + "月" + lastDay + "日  " + days;
258
+          return str;
259
+        }else{
260
+          var str = year + "年" + month + "月" + day + "日  " + days;
261
+          return str;
262
+        }
263
+        
264
+        
215
       }
265
       }
216
     }
266
     }
217
   }
267
   }