Browse Source

中能建打印单修改

XMLWAN 5 years ago
parent
commit
58383558aa

+ 53 - 33
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue View File

451
                         <check-box
451
                         <check-box
452
                           text="锁骨下"
452
                           text="锁骨下"
453
                           :checked="
453
                           :checked="
454
-                        record.assessment_before_dislysis.venous_catheterization_part == 1
455
-                          ? true
456
-                          : false
457
-                      "
454
+                            record.assessment_before_dislysis
455
+                              .venous_catheterization_part == 1
456
+                              ? true
457
+                              : false
458
+                          "
458
                         ></check-box>
459
                         ></check-box>
459
                         <check-box
460
                         <check-box
460
                           text="颈静脉"
461
                           text="颈静脉"
461
                           :checked="
462
                           :checked="
462
-                        record.assessment_before_dislysis.venous_catheterization_part == 2
463
-                          ? true
464
-                          : false
465
-                      "
463
+                            record.assessment_before_dislysis
464
+                              .venous_catheterization_part == 2
465
+                              ? true
466
+                              : false
467
+                          "
466
                         ></check-box>
468
                         ></check-box>
467
                         <check-box
469
                         <check-box
468
                           text="股静脉"
470
                           text="股静脉"
469
                           :checked="
471
                           :checked="
470
-                        record.assessment_before_dislysis.venous_catheterization_part == 3
471
-                          ? true
472
-                          : false
473
-                      "
472
+                            record.assessment_before_dislysis
473
+                              .venous_catheterization_part == 3
474
+                              ? true
475
+                              : false
476
+                          "
474
                         ></check-box>
477
                         ></check-box>
475
                         <div class="inline_block">
478
                         <div class="inline_block">
476
                           其它:
479
                           其它:
478
                             class="under_line"
481
                             class="under_line"
479
                             style="width: 50px;text-align: left"
482
                             style="width: 50px;text-align: left"
480
                           >
483
                           >
481
-                        <span>{{
482
-                          record.assessment_before_dislysis.venous_catheterization_part_other
483
-                        }}</span>
484
+                            <span>{{
485
+                              record.assessment_before_dislysis
486
+                                .venous_catheterization_part_other
487
+                            }}</span>
484
                           </div>
488
                           </div>
485
                         </div>
489
                         </div>
486
                       </div>
490
                       </div>
1508
                         <check-box
1512
                         <check-box
1509
                           text="正常"
1513
                           text="正常"
1510
                           :checked="
1514
                           :checked="
1511
-                         record.assessment_after_dislysis.internal_fistula.indexOf('震颤-存在') > -1
1512
-                          ? true
1513
-                          : false
1514
-                      "
1515
+                            record.assessment_after_dislysis.internal_fistula.indexOf(
1516
+                              '震颤-存在'
1517
+                            ) > -1
1518
+                              ? true
1519
+                              : false
1520
+                          "
1515
                         ></check-box>
1521
                         ></check-box>
1516
                         <check-box
1522
                         <check-box
1517
                           text="减弱"
1523
                           text="减弱"
1518
                           :checked="
1524
                           :checked="
1519
-                         record.assessment_after_dislysis.internal_fistula.indexOf('震颤-减弱') > -1
1520
-                          ? true
1521
-                          : false
1522
-                      "
1525
+                            record.assessment_after_dislysis.internal_fistula.indexOf(
1526
+                              '震颤-减弱'
1527
+                            ) > -1
1528
+                              ? true
1529
+                              : false
1530
+                          "
1523
                         ></check-box>
1531
                         ></check-box>
1524
                         <check-box
1532
                         <check-box
1525
-                          text="正常"
1533
+                          text="不存在"
1526
                           :checked="
1534
                           :checked="
1527
-                        record.assessment_after_dislysis.internal_fistula.indexOf('不存在') > -1
1528
-                          ? true
1529
-                          : false
1530
-                      "
1535
+                            record.assessment_after_dislysis.internal_fistula.indexOf(
1536
+                              '不存在'
1537
+                            ) > -1
1538
+                              ? true
1539
+                              : false
1540
+                          "
1531
                         ></check-box>
1541
                         ></check-box>
1532
                       </div>
1542
                       </div>
1533
                       <div class="inline_block">
1543
                       <div class="inline_block">
1692
                           style="width: 100px;text-align: center"
1702
                           style="width: 100px;text-align: center"
1693
                         >
1703
                         >
1694
                           {{
1704
                           {{
1695
-                          record.assessment_after_dislysis &&
1696
-                          record.assessment_after_dislysis.cruor
1697
-                          ? record.assessment_after_dislysis.cruor
1698
-                          : "/"
1705
+                            record.assessment_after_dislysis &&
1706
+                            record.assessment_after_dislysis.cruor
1707
+                              ? record.assessment_after_dislysis.cruor
1708
+                              : "/"
1699
                           }}
1709
                           }}
1700
                         </div>
1710
                         </div>
1701
                       </div>
1711
                       </div>
2203
         var resp = rs.data;
2213
         var resp = rs.data;
2204
         if (resp.state == 1) {
2214
         if (resp.state == 1) {
2205
           this.records = this.records.concat(resp.data.schedules);
2215
           this.records = this.records.concat(resp.data.schedules);
2206
-          // console.log('hheeeee', this.records)
2216
+          console.log("hheeeee", this.records);
2217
+          for (let i = 0; i < this.records.length; i++) {
2218
+            if (
2219
+              this.records[i].assessment_after_dislysis.complications_index !=
2220
+              ""
2221
+            ) {
2222
+              this.records[
2223
+                i
2224
+              ].assessment_after_dislysis.disequilibrium_syndrome = 2;
2225
+            }
2226
+          }
2207
           for (const recordIndex in this.records) {
2227
           for (const recordIndex in this.records) {
2208
             this.advice_groups = [];
2228
             this.advice_groups = [];
2209
             this.advice_groups_2 = [];
2229
             this.advice_groups_2 = [];

+ 58 - 49
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue View File

375
                     <check-box
375
                     <check-box
376
                       text="正常"
376
                       text="正常"
377
                       :checked="
377
                       :checked="
378
-                        predialysis.catheter.indexOf('正常') > -1
379
-                          ? true
380
-                          : false
378
+                        predialysis.catheter.indexOf('正常') > -1 ? true : false
381
                       "
379
                       "
382
                     ></check-box>
380
                     ></check-box>
383
                     <check-box
381
                     <check-box
384
                       text="不畅"
382
                       text="不畅"
385
                       :checked="
383
                       :checked="
386
-                        predialysis.catheter.indexOf('不畅') > -1
387
-                          ? true
388
-                          : false
384
+                        predialysis.catheter.indexOf('不畅') > -1 ? true : false
389
                       "
385
                       "
390
                     ></check-box>
386
                     ></check-box>
391
                     <check-box
387
                     <check-box
399
                     (<check-box
395
                     (<check-box
400
                       text="正接"
396
                       text="正接"
401
                       :checked="
397
                       :checked="
402
-                        predialysis.catheter.indexOf('正接') > -1
403
-                          ? true
404
-                          : false
398
+                        predialysis.catheter.indexOf('正接') > -1 ? true : false
405
                       "
399
                       "
406
                     ></check-box
400
                     ></check-box
407
                     >/
401
                     >/
408
                     <check-box
402
                     <check-box
409
                       text="反接"
403
                       text="反接"
410
                       :checked="
404
                       :checked="
411
-                        predialysis.catheter.indexOf('反接') > -1
412
-                          ? true
413
-                          : false
405
+                        predialysis.catheter.indexOf('反接') > -1 ? true : false
414
                       "
406
                       "
415
                     ></check-box
407
                     ></check-box
416
                     >)
408
                     >)
417
                     <check-box
409
                     <check-box
418
                       text="血栓"
410
                       text="血栓"
419
                       :checked="
411
                       :checked="
420
-                        predialysis.catheter.indexOf('血栓') > -1
421
-                          ? true
422
-                          : false
412
+                        predialysis.catheter.indexOf('血栓') > -1 ? true : false
423
                       "
413
                       "
424
                     ></check-box>
414
                     ></check-box>
425
                     <check-box
415
                     <check-box
441
                     <check-box
431
                     <check-box
442
                       text="感染"
432
                       text="感染"
443
                       :checked="
433
                       :checked="
444
-                        predialysis.catheter.indexOf('感染') > -1
445
-                          ? true
446
-                          : false
434
+                        predialysis.catheter.indexOf('感染') > -1 ? true : false
447
                       "
435
                       "
448
                     ></check-box>
436
                     ></check-box>
449
                     <check-box
437
                     <check-box
450
                       text="破损"
438
                       text="破损"
451
                       :checked="
439
                       :checked="
452
-                        predialysis.catheter.indexOf('破损') > -1
453
-                          ? true
454
-                          : false
440
+                        predialysis.catheter.indexOf('破损') > -1 ? true : false
455
                       "
441
                       "
456
                     ></check-box>
442
                     ></check-box>
457
                   </div>
443
                   </div>
1166
                       "
1152
                       "
1167
                     ></check-box>
1153
                     ></check-box>
1168
                     <check-box
1154
                     <check-box
1169
-                      text="正常"
1155
+                      text="不存在"
1170
                       :checked="
1156
                       :checked="
1171
                         afterdialysis.internal_fistula.indexOf('不存在') > -1
1157
                         afterdialysis.internal_fistula.indexOf('不存在') > -1
1172
                           ? true
1158
                           ? true
1173
                           : false
1159
                           : false
1174
                       "
1160
                       "
1175
                     ></check-box>
1161
                     ></check-box>
1176
-
1177
                   </div>
1162
                   </div>
1178
                   <div class="inline_block">
1163
                   <div class="inline_block">
1179
                     &emsp;失衡综合症:
1164
                     &emsp;失衡综合症:
1196
                   </div>
1181
                   </div>
1197
                   <div class="inline_block">
1182
                   <div class="inline_block">
1198
1183
1199
-                    <label-box :isChecked="afterdialysis.complications_index.indexOf('头晕')>-1?true:false"
1200
-                               showValue='头晕'></label-box>
1201
-                    <label-box :isChecked="afterdialysis.complications_index.indexOf('头痛')>-1?true:false"
1202
-                               showValue='头痛'></label-box>
1203
-                    <label-box :isChecked="afterdialysis.complications_index.indexOf('呕吐')>-1?true:false"
1204
-                               showValue='呕吐'></label-box>
1205
-                    <label-box :isChecked="afterdialysis.complications_index.indexOf('低血压')>-1?true:false"
1206
-                               showValue='低血压'></label-box>
1184
+                    <label-box
1185
+                      :isChecked="
1186
+                        afterdialysis.complications_index.indexOf('头晕') > -1
1187
+                          ? true
1188
+                          : false
1189
+                      "
1190
+                      showValue="头晕"
1191
+                    ></label-box>
1192
+                    <label-box
1193
+                      :isChecked="
1194
+                        afterdialysis.complications_index.indexOf('头痛') > -1
1195
+                          ? true
1196
+                          : false
1197
+                      "
1198
+                      showValue="头痛"
1199
+                    ></label-box>
1200
+                    <label-box
1201
+                      :isChecked="
1202
+                        afterdialysis.complications_index.indexOf('呕吐') > -1
1203
+                          ? true
1204
+                          : false
1205
+                      "
1206
+                      showValue="呕吐"
1207
+                    ></label-box>
1208
+                    <label-box
1209
+                      :isChecked="
1210
+                        afterdialysis.complications_index.indexOf('低血压') > -1
1211
+                          ? true
1212
+                          : false
1213
+                      "
1214
+                      showValue="低血压"
1215
+                    ></label-box>
1207
1216
1208
                   </div>
1217
                   </div>
1209
                 </div>
1218
                 </div>
1256
                     ></check-box>
1265
                     ></check-box>
1257
                   </div>
1266
                   </div>
1258
                   <div class="inline_block">
1267
                   <div class="inline_block">
1259
-                    透析器:
1260
-                    <check-box
1261
-                      text="0"
1262
-                      :checked="afterdialysis.dialyzer == 1 ? true : false"
1263
-                    ></check-box>
1264
-                    <check-box
1265
-                      text="+"
1266
-                      :checked="afterdialysis.dialyzer == 2 ? true : false"
1267
-                    ></check-box>
1268
-                    <check-box
1269
-                      text="++"
1270
-                      :checked="afterdialysis.dialyzer == 3 ? true : false"
1271
-                    ></check-box>
1272
-                    <check-box
1273
-                      text="+++"
1274
-                      :checked="afterdialysis.dialyzer == 4 ? true : false"
1275
-                    ></check-box>
1268
+                    透析器凝血:
1269
+                    <div
1270
+                      class="under_line"
1271
+                      style="width:200px;text-align:center;"
1272
+                    >
1273
+                      {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
1274
+                    </div>
1276
                   </div>
1275
                   </div>
1277
                 </div>
1276
                 </div>
1278
               </td>
1277
               </td>
2702
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
2701
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
2703
           this.predialysis.blood_access_part_opera_id
2702
           this.predialysis.blood_access_part_opera_id
2704
         );
2703
         );
2705
-        this.afterdialysis = response.data.data.AssessmentAfterDislysis;
2704
+        var afterdialysis = response.data.data.AssessmentAfterDislysis;
2705
+        console.log("长度", afterdialysis.complications_index);
2706
+        if (afterdialysis.complications_index === undefined) {
2707
+          afterdialysis.disequilibrium_syndrome = 1;
2708
+        }
2709
+        if (afterdialysis.complications_index != undefined) {
2710
+          afterdialysis.disequilibrium_syndrome = 2;
2711
+        }
2712
+        this.afterdialysis = afterdialysis;
2713
+
2714
+        console.log("透后数据", this.afterdialysis);
2706
         this.operators = response.data.data.operators;
2715
         this.operators = response.data.data.operators;
2707
         this.dialysisOrder =
2716
         this.dialysisOrder =
2708
           response.data.data.dialysisOrder === null
2717
           response.data.data.dialysisOrder === null