Pārlūkot izejas kodu

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 3 gadus atpakaļ
vecāks
revīzija
72857df363
78 mainītis faili ar 32756 papildinājumiem un 25482 dzēšanām
  1. 5 0
      package-lock.json
  2. 1 0
      package.json
  3. 19 0
      src/api/his/his.js
  4. 3 2
      src/lang/zh.js
  5. 12 0
      src/router/modules/dialysis.js
  6. 6 0
      src/router/modules/hisTool.js
  7. 91 0
      src/vendor/Export2Excel.js
  8. 1 1
      src/xt_pages/data/prescription.vue
  9. 34 0
      src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue
  10. 47 26
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue
  11. 1551 0
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue
  12. 167 192
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  13. 12 0
      src/xt_pages/dialysis/bloodPresssWatch.vue
  14. 2 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  15. 4 2
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  16. 9 1
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  17. 4 4
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  18. 2 2
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  19. 2 2
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  20. 1102 968
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  21. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderEighteen.vue
  22. 1006 875
      src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue
  23. 1597 1454
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  24. 874 692
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  25. 615 516
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue
  26. 602 520
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue
  27. 1529 1418
      src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue
  28. 1113 1009
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  29. 580 492
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  30. 1109 970
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue
  31. 1130 939
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  32. 1042 897
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  33. 628 538
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  34. 567 469
      src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue
  35. 568 412
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue
  36. 512 421
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFour.vue
  37. 88 0
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue
  38. 714 606
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  39. 472 416
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue
  40. 1000 880
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue
  41. 1062 934
      src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue
  42. 1468 1373
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  43. 1002 879
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue
  44. 1568 1457
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  45. 629 537
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue
  46. 1238 1098
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  47. 1134 1044
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue
  48. 1187 1041
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue
  49. 1129 1033
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  50. 1189 1045
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  51. 7 7
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  52. 2 3
      src/xt_pages/hospitalStation/doctorDesk.vue
  53. 110 34
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue
  54. 0 1
      src/xt_pages/hospitalStation/summary.vue
  55. 5 10
      src/xt_pages/management/components/UserForm.vue
  56. 1 1
      src/xt_pages/outpatientCharges/statementPrint.vue
  57. 2 2
      src/xt_pages/outpatientCharges/statementTemplate/printFour.vue
  58. 2 2
      src/xt_pages/outpatientCharges/statementTemplate/printThree.vue
  59. 47 43
      src/xt_pages/outpatientCharges/summary.vue
  60. 548 5
      src/xt_pages/outpatientTool/components/detail.vue
  61. 508 5
      src/xt_pages/outpatientTool/components/gather.vue
  62. 395 5
      src/xt_pages/outpatientTool/components/settle.vue
  63. 267 0
      src/xt_pages/outpatientTool/labelPrint.vue
  64. 94 0
      src/xt_pages/outpatientTool/signPrint.vue
  65. 7 11
      src/xt_pages/outpatientTool/summary.vue
  66. 1 2
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  67. 26 14
      src/xt_pages/stock/drugs/drugStockInOrderAdd.vue
  68. 18 10
      src/xt_pages/stock/stockInOrderAdd.vue
  69. 9 0
      src/xt_pages/user/components/PatientDetail.vue
  70. 7 8
      src/xt_pages/user/templateSummary.vue
  71. 20 4
      src/xt_pages/workforce/appointment.vue
  72. 13 13
      src/xt_pages/workforce/components/nextTableWeeks.vue
  73. 36 3
      src/xt_pages/workforce/components/tableData.vue
  74. 16 20
      src/xt_pages/workforce/components/tableWeeks.vue
  75. 58 57
      src/xt_pages/workforce/components/template_table.vue
  76. 14 15
      src/xt_pages/workforce/next_remind_print.vue
  77. 17 17
      src/xt_pages/workforce/remind_print.vue
  78. 99 22
      src/xt_pages/workforce/remind_print_setting.vue

+ 5 - 0
package-lock.json Parādīt failu

@@ -6697,6 +6697,11 @@
6697 6697
         "esprima": "^2.6.0"
6698 6698
       }
6699 6699
     },
6700
+    "jsbarcode": {
6701
+      "version": "3.11.5",
6702
+      "resolved": "https://registry.nlark.com/jsbarcode/download/jsbarcode-3.11.5.tgz",
6703
+      "integrity": "sha1-OQs+/QJx81udaMe4r26XJEWWkBQ="
6704
+    },
6700 6705
     "jsbn": {
6701 6706
       "version": "0.1.1",
6702 6707
       "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",

+ 1 - 0
package.json Parādīt failu

@@ -51,6 +51,7 @@
51 51
     "file-saver": "^1.3.8",
52 52
     "font-awesome": "4.7.0",
53 53
     "js-cookie": "2.2.0",
54
+    "jsbarcode": "^3.11.5",
54 55
     "jsonlint": "1.6.3",
55 56
     "jszip": "3.1.5",
56 57
     "mockjs": "1.0.1-beta3",

+ 19 - 0
src/api/his/his.js Parādīt failu

@@ -515,3 +515,22 @@ export function GetSummarySettle(params) {
515 515
     params: params
516 516
   })
517 517
 }
518
+
519
+
520
+export function GetLabelList(params) {
521
+  return request({
522
+    url: '/api/his/inspectionlist/get',
523
+    method: 'get',
524
+    params: params
525
+  })
526
+}
527
+
528
+
529
+
530
+export function GetLabelInfo(params) {
531
+  return request({
532
+    url: '/api/his/inspectioninfo/get',
533
+    method: 'get',
534
+    params: params
535
+  })
536
+}

+ 3 - 2
src/lang/zh.js Parādīt failu

@@ -229,7 +229,7 @@ export default {
229 229
     outpatientRecord: '住院工作站',
230 230
     advancePayment: '预交金',
231 231
     labelPrinting: '标签打印',
232
-    summary: '项目消费明细汇总',
232
+    summary: '收费列表',
233 233
     outpatientPharmacy: '门诊药房',
234 234
     pharmacyFormula: '药房配发药',
235 235
     prescriptionDrugReturn: '处方退药',
@@ -259,7 +259,8 @@ export default {
259 259
     hisTool:"HIS工具",
260 260
     hospitalCharges:'住院收费',
261 261
 
262
-    summary_tool:'项目消费明细汇总'
262
+    summary_tool:'项目消费明细汇总',
263
+    labelPrint:'标签打印',
263 264
   },
264 265
   navbar: {
265 266
     logOut: '退出登录',

+ 12 - 0
src/router/modules/dialysis.js Parādīt failu

@@ -447,6 +447,18 @@ export default {
447 447
         noCache: true
448 448
       }
449 449
     },
450
+    {
451
+      path: '/dialysis/print/batch/fortyThree',
452
+      component: () =>
453
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_fortyThree'),
454
+      hidden: true,
455
+      is_menu: false,
456
+      name: 'batch_print_order_fortyThree',
457
+      meta: {
458
+        title: '批量打印',
459
+        noCache: true
460
+      }
461
+    },
450 462
     {
451 463
       path: '/dialysis/print/batch/thirtyThree_one',
452 464
       component: () =>

+ 6 - 0
src/router/modules/hisTool.js Parādīt failu

@@ -40,6 +40,12 @@ export default {
40 40
       name: 'outpatientSickRecord',
41 41
       meta: { title: 'summary_tool', noCache: true }
42 42
     },
43
+    {
44
+      path: '/hisTool/print',
45
+      component: () => import('@/xt_pages/outpatientTool/labelPrint'),
46
+      name: 'labelPrint',
47
+      meta: { title: 'labelPrint', noCache: true }
48
+    },
43 49
 
44 50
   ]
45 51
 }

+ 91 - 0
src/vendor/Export2Excel.js Parādīt failu

@@ -219,3 +219,94 @@ export function export_json_to_excel({
219 219
     type: "application/octet-stream"
220 220
   }), `${filename}.${bookType}`);
221 221
 }
222
+
223
+export function export_json_to_excel1({
224
+  multiHeader = [],
225
+  header,
226
+  data,
227
+  filename,
228
+  ref,
229
+  merges = [],
230
+  autoWidth = true,
231
+  bookType = 'xlsx'
232
+} = {}) {
233
+  /* original data */
234
+  filename = filename || 'excel-list'
235
+  data = [...data]
236
+  data.unshift(header);
237
+
238
+  for (let i = multiHeader.length - 1; i > -1; i--) {
239
+    data.unshift(multiHeader[i])
240
+  }
241
+
242
+  var ws_name = "SheetJS";
243
+  var wb = new Workbook(),
244
+    ws = sheet_from_array_of_arrays(data);
245
+
246
+  if (merges.length > 0) {
247
+    if (!ws['!merges']) ws['!merges'] = [];
248
+    merges.forEach(item => {
249
+      console.log(XLSX.utils.decode_range(item))
250
+      ws['!merges'].push(XLSX.utils.decode_range(item))
251
+    })
252
+  }
253
+
254
+  if (autoWidth) {
255
+    /*设置worksheet每列的最大宽度*/
256
+    const colWidth = data.map(row => row.map(val => {
257
+      /*先判断是否为null/undefined*/
258
+      if (val == null) {
259
+        return {
260
+          'wch': 10
261
+        };
262
+      }
263
+      /*再判断是否为中文*/
264
+      else if (val.toString().charCodeAt(0) > 255) {
265
+        return {
266
+          'wch': val.toString().length * 2
267
+        };
268
+      } else {
269
+        return {
270
+          'wch': val.toString().length
271
+        };
272
+      }
273
+    }))
274
+    /*以第一行为初始值*/
275
+    let result = colWidth[0];
276
+    for (let i = 1; i < colWidth.length; i++) {
277
+      for (let j = 0; j < colWidth[i].length; j++) {
278
+        if (result[j]['wch'] < colWidth[i][j]['wch']) {
279
+          result[j]['wch'] = colWidth[i][j]['wch'];
280
+        }
281
+      }
282
+    }
283
+    ws['!cols'] = result;
284
+  }
285
+
286
+  /* add worksheet to workbook */
287
+  wb.SheetNames.push(ws_name);
288
+  wb.Sheets[ws_name] = ws;
289
+
290
+
291
+  try {
292
+    const $e = ref
293
+    let $table = $e.querySelector('.el-table__fixed')
294
+    if(!$table) {
295
+      $table = $e
296
+    }
297
+
298
+    const wb = XLSX.utils.table_to_book($table, {raw:true})
299
+    const wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST:true, type: 'array'})
300
+    var wbout = XLSX.write(wb, {
301
+      bookType: bookType,
302
+      bookSST: false,
303
+      type: 'binary'
304
+    });
305
+    saveAs(new Blob([s2ab(wbout)], {
306
+      type: "application/octet-stream"
307
+    }), `${filename}.${bookType}`);
308
+  } catch (e) {
309
+    if (typeof console !== 'undefined') console.error(e)
310
+  }
311
+  
312
+}

+ 1 - 1
src/xt_pages/data/prescription.vue Parādīt failu

@@ -1197,7 +1197,7 @@ export default {
1197 1197
     this.body_fluid_option = this.$store.getters.body_fluid;
1198 1198
     this.special_medicine_option = this.$store.getters.special_medicine;
1199 1199
     this.displace_liqui_part_option = this.$store.getters.displace_liqui;
1200
-    this.blood_access_option = this.$store.getters.vascular_access_desc;
1200
+    this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
1201 1201
     console.log("列表33333333血管通路",this.blood_access_option)
1202 1202
     this.addPlan.mode = 1;
1203 1203
     this.dialyzerPerfusionApparatus = getDataConfig(

+ 34 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue Parādīt failu

@@ -605,6 +605,7 @@
605 605
                     <td width="60" style="line-height:20px">血流量<br />ml/min</td>
606 606
                     <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
607 607
                     <td width="60" style="line-height:20px">超滤量<br />ml</td>
608
+                    <td width="40" style="line-height:20px">Kt/V</td>
608 609
                     <td width="" style="line-height:20px">病情变化及处理</td>
609 610
                     <td width="60" style="line-height:20px">护士签名</td>
610 611
                     </tr>
@@ -657,6 +658,9 @@
657 658
                     <td>
658 659
                         &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
659 660
                     </td>
661
+                    <td>
662
+                      &nbsp;{{ monitor.ktv ? monitor.ktv : "" }}
663
+                    </td>
660 664
                     <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
661 665
                     <td>&nbsp;{{monitor.dialysate_temperature}}</td>
662 666
                     <td>&nbsp;{{monitor.replacement_rate}}</td> -->
@@ -776,6 +780,36 @@
776 780
                             </tr>
777 781
                             </tbody>
778 782
                         </table>
783
+                        <table class="table-box">
784
+                          <tbody>
785
+                          <tr>
786
+                              <td width="100">置管口及辅料:</td>
787
+                              <td width='140'>
788
+                                  <label-box :isChecked="record.assessment_after_dislysis.catheter.indexOf('干洁')>-1?true:false" showValue='干洁'></label-box>
789
+                                  <label-box :isChecked="record.assessment_after_dislysis.catheter.indexOf('更换敷料')>-1?true:false" showValue='更换敷料'></label-box>
790
+                              </td>
791
+                              <td width='50'>
792
+                                  <label-box :isChecked="record.assessment_after_dislysis.catheter.indexOf('干洁')==-1 && record.assessment_after_dislysis.catheter.indexOf('更换敷料')==-1?true:false" showValue='其他'></label-box>
793
+                              </td>
794
+                              <td width='100'>
795
+                                  <div class="under-line">&nbsp;
796
+                                      <span v-if="record.assessment_after_dislysis.catheter.indexOf('干洁')==-1 && record.assessment_after_dislysis.catheter.indexOf('更换敷料')==-1">{{ record.assessment_after_dislysis.catheter ? record.assessment_after_dislysis.catheter : '' }}</span>
797
+                                  </div>
798
+                              </td>
799
+                              <td width="90">透析期间进食:</td>
800
+                              <td width="70">
801
+                                  <label-box showValue="有" :isChecked="record.assessment_after_dislysis.is_eat == 1 ? true : false"></label-box>
802
+                                  <label-box showValue="无" :isChecked="record.assessment_after_dislysis.is_eat == 2 ? true : false"></label-box>
803
+                              </td>
804
+                              <td width="90">实际置换总量</td>
805
+                              <td width="50">
806
+                                  <div class="under-line">&nbsp;{{ record.assessment_after_dislysis.actual_displacement ? record.assessment_after_dislysis.actual_displacement : "" }}</div>
807
+                              </td>
808
+                              <td width="20">ml</td>
809
+                              <td></td>
810
+                          </tr>
811
+                          </tbody>
812
+                        </table>
779 813
 
780 814
                         <table class="table-box">
781 815
                             <tbody>

+ 47 - 26
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue Parādīt failu

@@ -439,33 +439,53 @@
439 439
                                 L
440 440
                             </div>
441 441
                             </div>
442
-                            <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
443
-                            <div class="inline_block" style="flex:1.4">
442
+                            <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id == 10233">
443
+                              <div class="inline_block" style="flex:1">
444 444
                                 血管通路:
445
-                                <div class="under_line" style="width: 300px;text-align: center;">
446
-                                <!-- {{record.prescription.blood_access_part_opera_name}} -->
447
-                                {{ QueryPartById(record.prescription && record.prescription.blood_access ? record.prescription.blood_access : 0) }}
445
+                                <div class="under_line" style="width: 260px;text-align: center;">
446
+                                  {{ QueryPartById(record.assessment_before_dislysis && record.assessment_before_dislysis.blood_access_part_opera_id ? record.assessment_before_dislysis.blood_access_part_opera_id : 0)}}
448 447
                                 </div>
449
-                            </div>
450
-                            <div class="inline_block" style="flex:1">
451
-                                透析机型:
452
-                                <div class="under_line" style="width: 150px;text-align: center;">
453
-                                {{ record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : '' }}
454
-                                </div>
455
-                            </div>
456
-                            <div class="inline_block" style="flex:1">
457
-                                机号:
458
-                                <div class="under_line" style="width: 60px;text-align: center;">
459
-                                {{
460
-                                    record.dialysis_order &&
461
-                                    record.dialysis_order.device_number &&
462
-                                    record.dialysis_order.device_number.number.length >
463
-                                    0
464
-                                    ? record.dialysis_order.device_number.number
465
-                                    : record.device_number.number
466
-                                }}
448
+                              </div>
449
+                              <div class="inline_block" style="flex:1">
450
+                                血管通路部位:
451
+                                <div class="under_line" style="width: 160px;text-align: center;">
452
+                                  {{record.assessment_before_dislysis.blood_access_part_id}}
467 453
                                 </div>
454
+                              </div>
468 455
                             </div>
456
+                            <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
457
+                              <div class="inline_block" style="flex:1" v-if="org_id != 10233">
458
+                                  血管通路:
459
+                                  <div class="under_line" style="width: 260px;text-align: center;">
460
+                                  <!-- {{record.prescription.blood_access_part_opera_name}} -->
461
+                                  {{ QueryPartById(record.prescription && record.prescription.blood_access ? record.prescription.blood_access : 0) }}
462
+                                  </div>
463
+                              </div>
464
+                              <div class="inline_block" style="flex:1">
465
+                                  透析机型:
466
+                                  <div class="under_line" style="width: 150px;text-align: center;">
467
+                                  {{ record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : '' }}
468
+                                  </div>
469
+                              </div>
470
+                              <div class="inline_block" style="flex:1">
471
+                                  机号:
472
+                                  <div class="under_line" style="width: 60px;text-align: center;">
473
+                                  {{
474
+                                      record.dialysis_order &&
475
+                                      record.dialysis_order.device_number &&
476
+                                      record.dialysis_order.device_number.number.length >
477
+                                      0
478
+                                      ? record.dialysis_order.device_number.number
479
+                                      : record.device_number.number
480
+                                  }}
481
+                                  </div>
482
+                              </div>
483
+                              <div v-if="org_id == 10233" class="inline_block" style="flex:1;margin-left:10px;">
484
+                                透析器/灌流器:
485
+                                <div class="under_line" style="width: 120px;text-align: center;">
486
+                                  {{ record.prescription.dialyzer_perfusion_apparatus ? record.prescription.dialyzer_perfusion_apparatus : "" }}
487
+                                </div>
488
+                              </div>
469 489
                             </div>
470 490
                             <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
471 491
                             <div class="inline_block" style="flex:1;">
@@ -695,8 +715,8 @@
695 715
                                 <td style="line-height:16px;padding:0px;">
696 716
                                     <div style="min-height:20px;line-height:20px; overflow:hidden;">
697 717
                                     <span v-if="getTime(monitor.operate_time, '{h}:{i}')" style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
698
-                                        <template v-if="(record.dialysis_order && monitor.operate_time == record.dialysis_order.start_time)">【开始透析】引血100ml/min</template>
699
-                                        <span v-if="record.dialysis_order && monitor.operate_time == record.dialysis_order.end_time">【结束透析】回血100ml/min</span> 
718
+                                        <template v-if="(record.dialysis_order && monitor.operate_time == record.dialysis_order.start_time)">【开始透析】<span v-if="org_id != 10233"> 引血100ml/min</span></template>
719
+                                        <span v-if="record.dialysis_order && monitor.operate_time == record.dialysis_order.end_time">【结束透析】<span v-if="org_id != 10233"> 回血100ml/min</span></span> 
700 720
                                         {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
701 721
                                     </span>
702 722
                                     </div>
@@ -894,6 +914,7 @@ export default {
894 914
     var xtuser = this.$store.getters.xt_user
895 915
     // console.log('xtuser', xtuser)
896 916
     this.orgname = xtuser.org.org_name
917
+    this.org_id = this.$store.getters.xt_user.org.id
897 918
     //   this.orgname = "遂溪方济医院";
898 919
     this.modeOptions = this.$store.getters.treatment_mode
899 920
     //   this.replacementWays = this.$store.getters.replacement_ways;
@@ -1171,7 +1192,7 @@ export default {
1171 1192
       const style2 =
1172 1193
         '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
1173 1194
       const style9 =
1174
-        '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
1195
+        '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;} @page {margin-top:5px;}.table-box1 tr {border-bottom: 1px solid #000;}';
1175 1196
       printJS({
1176 1197
         printable: 'print_content',
1177 1198
         type: 'html',

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1551 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue


+ 167 - 192
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Parādīt failu

@@ -111,7 +111,7 @@
111 111
               诊断:
112 112
               <div
113 113
                 class="under_line"
114
-                style="width: 740px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;white-space: unset;"
114
+                style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;white-space: unset;"
115 115
               >
116 116
                 {{ record.patient.diagnose }}
117 117
               </div>
@@ -258,68 +258,6 @@
258 258
                         </div>
259 259
                         mmHg
260 260
                       </div>
261
-                      <div class="inline_block" style="margin-left:10px;">
262
-                        血管通路:
263
-                        <div
264
-                          class="under_line"
265
-                          style="width: 200px;text-align: center;"
266
-                        >
267
-                          {{
268
-                              record.assessment_before_dislysis &&
269
-                                record.assessment_before_dislysis
270
-                                  .blood_access_part_id
271
-                                ? record.assessment_before_dislysis
272
-                                    .blood_access_part_id
273
-                                : 0  
274
-                          }}
275
-                          {{
276
-                            record.assessment_before_dislysis &&
277
-                            record.assessment_before_dislysis
278
-                              .blood_access_part_opera_name
279
-                              ? record.assessment_before_dislysis
280
-                                  .blood_access_part_opera_name
281
-                              : ""
282
-                          }}
283
-                        </div>
284
-                      </div>
285
-                    </div>
286
-                    <div
287
-                      class="row"
288
-                      style="padding: 2px 0;line-height:23px;display:flex;"
289
-                    >
290
-                      <div class="inline_block" style="flex:1;">
291
-                        内瘘:
292
-                        <div
293
-                          class="under_line"
294
-                          style="width: 120px;text-align: center"
295
-                        >
296
-                          {{
297
-                            record.assessment_before_dislysis &&
298
-                            record.assessment_before_dislysis.internal_fistula
299
-                              ? record.assessment_before_dislysis
300
-                                  .internal_fistula
301
-                              : "/"
302
-                          }}
303
-                        </div>
304
-                      </div>
305
-
306
-                      <div
307
-                        class="inline_block"
308
-                        style="margin-left:10px;flex:1;"
309
-                      >
310
-                        导管:
311
-                        <div
312
-                          class="under_line"
313
-                          style="width: 120px;text-align: center"
314
-                        >
315
-                          {{
316
-                            record.assessment_before_dislysis &&
317
-                            record.assessment_before_dislysis.catheter
318
-                              ? record.assessment_before_dislysis.catheter
319
-                              : "/"
320
-                          }}
321
-                        </div>
322
-                      </div>
323 261
                       <div
324 262
                         class="inline_block"
325 263
                         style="margin-left:10px;flex:1;"
@@ -334,45 +272,6 @@
334 272
                           v-if="record.assessment_before_dislysis"
335 273
                           style="display: inline-block;"
336 274
                         >
337
-                          <!-- <div
338
-                            class="under_line"
339
-                            style="width: 100px;text-align: center"
340
-                            v-if="
341
-                              record.assessment_before_dislysis.puncture_way ==
342
-                                0
343
-                            "
344
-                          ></div>
345
-                          <div
346
-                            class="under_line"
347
-                            style="width: 100px;text-align: center"
348
-                            v-if="
349
-                              record.assessment_before_dislysis.puncture_way ==
350
-                                1
351
-                            "
352
-                          >
353
-                            绳梯
354
-                          </div>
355
-                          <div
356
-                            class="under_line"
357
-                            style="width: 100px;text-align: center"
358
-                            v-if="
359
-                              record.assessment_before_dislysis.puncture_way ==
360
-                                2
361
-                            "
362
-                          >
363
-                            扣眼
364
-                          </div>
365
-                          <div
366
-                            class="under_line"
367
-                            style="width: 100px;text-align: center"
368
-                            v-if="
369
-                              record.assessment_before_dislysis.puncture_way ==
370
-                                3
371
-                            "
372
-                          >
373
-                            区域
374
-                          </div> -->
375
-
376 275
                           <div
377 276
                             class="under_line"
378 277
                             style="width: 100px;text-align: center"
@@ -430,6 +329,77 @@
430 329
                           }}
431 330
                         </div>
432 331
                       </div>
332
+                      
333
+                    </div>
334
+                    <div
335
+                      class="row"
336
+                      style="padding: 2px 0;line-height:23px;display:flex;"
337
+                    >
338
+                      <div class="inline_block">
339
+                        血管通路:
340
+                        <div
341
+                          class="under_line"
342
+                          style="width: 200px;text-align: center;"
343
+                        >
344
+                          {{
345
+                              record.assessment_before_dislysis &&
346
+                                record.assessment_before_dislysis
347
+                                  .blood_access_part_id
348
+                                ? record.assessment_before_dislysis
349
+                                    .blood_access_part_id
350
+                                : 0  
351
+                          }}
352
+                          {{
353
+                            record.assessment_before_dislysis &&
354
+                            record.assessment_before_dislysis
355
+                              .blood_access_part_opera_name
356
+                              ? record.assessment_before_dislysis
357
+                                  .blood_access_part_opera_name
358
+                              : ""
359
+                          }}
360
+                        </div>
361
+                      </div>
362
+                      <div class="inline_block" style="flex:1;">
363
+                        内瘘:
364
+                        <div
365
+                          class="under_line"
366
+                          style="width: 120px;text-align: center"
367
+                        >
368
+                          {{
369
+                            record.assessment_before_dislysis &&
370
+                            record.assessment_before_dislysis.internal_fistula
371
+                              ? record.assessment_before_dislysis
372
+                                  .internal_fistula
373
+                              : "/"
374
+                          }}
375
+                        </div>
376
+                      </div>
377
+
378
+                      <div
379
+                        class="inline_block"
380
+                        style="margin-left:10px;flex:1;"
381
+                      >
382
+                        导管:
383
+                        <div
384
+                          class="under_line"
385
+                          style="width: 120px;text-align: center"
386
+                        >
387
+                          {{
388
+                            record.assessment_before_dislysis &&
389
+                            record.assessment_before_dislysis.catheter
390
+                              ? record.assessment_before_dislysis.catheter
391
+                              : "/"
392
+                          }}
393
+                        </div>
394
+                      </div>
395
+                      <div class="inline_block" style="margin-left:10px;flex:1;" v-if="org_id == 10223">
396
+                        导管打折:
397
+                        <div class="under_line" style="width: 50px;text-align: center;white-space: normal;">
398
+                          <span v-if="record.assessment_before_dislysis.catheter_bend == 0">/</span>
399
+                          <span v-if="record.assessment_before_dislysis.catheter_bend == 1">有</span>
400
+                          <span v-if="record.assessment_before_dislysis.catheter_bend == 2">无</span>
401
+                        </div>
402
+                      </div>
433 403
                     </div>
434 404
                     <div
435 405
                       class="row"
@@ -1058,11 +1028,10 @@
1058 1028
                             {{monitor_record.temperature? monitor_record.temperature: ""}}
1059 1029
                           </td>
1060 1030
                           <td>
1061
-                            {{monitor_record.sodium_concentration? monitor_record.sodium_concentration: ""}}
1031
+                            {{monitor_record.conductivity? monitor_record.conductivity: ""}}
1062 1032
                           </td>
1063 1033
                           <td>
1064
-                            {{
1065
-                              monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: "0"}}
1034
+                            <span v-if="monitor_record.operate_time">{{monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: ""}}</span>
1066 1035
                           </td>
1067 1036
                           <td v-if=" record.prescription.mode_id == 2 || record.prescription.mode_id == 5 ||(record.prescription.mode_id == 12 &&monitor_record.operate_time >record.dialysis_order.end_time) " style="width:50px">
1068 1037
                             {{
@@ -1073,14 +1042,13 @@
1073 1042
                           </td>
1074 1043
                           <td style="line-height:16px;padding:0px;">
1075 1044
                             <div
1076
-                              style="min-height:40px;line-height:20px; overflow:hidden;"
1045
+                              style="min-height:35px;line-height:35px; overflow:hidden;"
1077 1046
                             >
1078 1047
                               <span
1079 1048
                                 style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"
1080 1049
                               >
1081
-                                <template v-if="index == 0"
1082
-                                  >【开始透析】</template
1083
-                                >
1050
+                                <template v-if="(record.dialysis_order && monitor_record.operate_time == record.dialysis_order.start_time)">【开始透析】</template>
1051
+                                <template v-if="(record.dialysis_order && monitor_record.operate_time == record.dialysis_order.end_time)">【结束透析】</template>
1084 1052
                                 {{ monitor_record.end }}
1085 1053
                                 {{ monitor_record.symptom }} &nbsp;{{
1086 1054
                                   monitor_record.dispose
@@ -1427,7 +1395,7 @@
1427 1395
                       </div>
1428 1396
                       <div
1429 1397
                         class="inline_block"
1430
-                        style="margin-left:10px;flex:1;"
1398
+                        style="margin-left:10px;flex:1.5;"
1431 1399
                       >
1432 1400
                         BP:
1433 1401
                         <div
@@ -1459,55 +1427,7 @@
1459 1427
                         </div>
1460 1428
                         mmHg
1461 1429
                       </div>
1462
-                    </div>
1463
-                    <div
1464
-                      class="row"
1465
-                      style="padding: 2px 0;line-height:23px;display:flex;"
1466
-                    >
1467
-                      <!-- <div class="inline_block" style="flex:1;">
1468
-                        透析器凝血:
1469
-                        <div
1470
-                          class="under_line"
1471
-                          style="width: 70px;text-align: center"
1472
-                        >
1473
-                          {{
1474
-                            record.assessment_after_dislysis &&
1475
-                            record.assessment_after_dislysis.cruor
1476
-                              ? record.assessment_after_dislysis.cruor
1477
-                              : "/"
1478
-                          }}
1479
-                        </div>
1480
-                      </div> -->
1481
-                      <div class="inline_block" style="flex:1;">
1482
-                        内瘘:
1483
-                        <div
1484
-                          class="under_line"
1485
-                          style="width: 70px;text-align: center"
1486
-                        >
1487
-                          {{
1488
-                            record.assessment_after_dislysis &&
1489
-                            record.assessment_after_dislysis.internal_fistula
1490
-                              ? record.assessment_after_dislysis
1491
-                                  .internal_fistula
1492
-                              : "/"
1493
-                          }}
1494
-                        </div>
1495
-                      </div>
1496
-                      <div class="inline_block" style="flex:1;">
1497
-                        导管:
1498
-                        <div
1499
-                          class="under_line"
1500
-                          style="width: 150px;text-align: center"
1501
-                        >
1502
-                          {{
1503
-                            record.assessment_after_dislysis &&
1504
-                            record.assessment_after_dislysis.catheter
1505
-                              ? record.assessment_after_dislysis.catheter
1506
-                              : "/"
1507
-                          }}
1508
-                        </div>
1509
-                      </div>
1510
-                      <div class="inline_block" style="flex:1;">
1430
+                      <div class="inline_block" style="flex:1.5;">
1511 1431
                         实际治疗时间:
1512 1432
                         <div
1513 1433
                           class="under_line"
@@ -1538,16 +1458,14 @@
1538 1458
                         </div>
1539 1459
                         min
1540 1460
                       </div>
1541
-                      <!-- 只是占位 -->
1542
-                      <div
1543
-                        class="inline_block"
1544
-                        style="flex:1;visibility: hidden;"
1545
-                      >
1461
+                    </div>
1462
+                    <div
1463
+                      class="row"
1464
+                      style="padding: 2px 0;line-height:23px;display:flex;"
1465
+                    >
1466
+                      <div class="inline_block" style="flex:2.5;">
1546 1467
                         透析器凝血:
1547
-                        <div
1548
-                          class="under_line"
1549
-                          style="width: 70px;text-align: center"
1550
-                        >
1468
+                        <div class="under_line" style="width:170px;text-align:center;white-space: normal;">
1551 1469
                           {{
1552 1470
                             record.assessment_after_dislysis &&
1553 1471
                             record.assessment_after_dislysis.cruor
@@ -1556,6 +1474,31 @@
1556 1474
                           }}
1557 1475
                         </div>
1558 1476
                       </div>
1477
+                      <div class="inline_block" style="flex:2;">
1478
+                        内瘘:
1479
+                        <div class="under_line" style="width: 170px;text-align: center;white-space: normal;">
1480
+                          {{
1481
+                            record.assessment_after_dislysis &&
1482
+                            record.assessment_after_dislysis.internal_fistula
1483
+                              ? record.assessment_after_dislysis
1484
+                                  .internal_fistula
1485
+                              : "/"
1486
+                          }}
1487
+                        </div>
1488
+                      </div>
1489
+                      <div class="inline_block" style="flex:4;">
1490
+                        导管:
1491
+                        <div class="under_line" style="min-width: 120px;text-align: center">
1492
+                          {{
1493
+                            record.assessment_after_dislysis &&
1494
+                            record.assessment_after_dislysis.catheter
1495
+                              ? record.assessment_after_dislysis.catheter
1496
+                              : "/"
1497
+                          }}
1498
+                        </div>
1499
+                      </div>
1500
+                      
1501
+                      
1559 1502
                     </div>
1560 1503
 
1561 1504
                     <div
@@ -1599,7 +1542,7 @@
1599 1542
                         kg
1600 1543
                       </div>
1601 1544
 
1602
-                      <div class="inline_block" style="flex:1;">
1545
+                      <div class="inline_block" style="flex:1;" v-if="org_id != 10223">
1603 1546
                         透析中入量:
1604 1547
                         <div
1605 1548
                           class="under_line"
@@ -1634,32 +1577,64 @@
1634 1577
                         ml
1635 1578
                       </div>
1636 1579
                     </div>
1637
-                    <div
1638
-                      class="row"
1639
-                      style="padding: 2px 0;line-height:23px;display:flex;"
1640
-                    >
1641
-                      <div class="inline_block" style="flex:1;">
1642
-                        透析器凝血:
1643
-                        <span
1644
-                          style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;"
1645
-                        >
1646
-                          {{
1647
-                            record.assessment_after_dislysis &&
1648
-                            record.assessment_after_dislysis.cruor
1649
-                              ? record.assessment_after_dislysis.cruor
1650
-                              : "/"
1651
-                          }}
1652
-                        </span>
1580
+                    <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id == 10223">
1581
+                    <div class="inline_block" style="flex:1;">
1582
+                      动脉管道:
1583
+                      <div class="under_line" style="width: 100px;text-align: center">
1584
+                        <span v-if="record.assessment_after_dislysis.arterial_tube == 0">/</span>
1585
+                        <span v-if="record.assessment_after_dislysis.arterial_tube == 1">动脉管道0</span>
1586
+                        <span v-if="record.assessment_after_dislysis.arterial_tube == 2">动脉管道+</span>
1587
+                        <span v-if="record.assessment_after_dislysis.arterial_tube == 3">动脉管道++</span>
1588
+                        <span v-if="record.assessment_after_dislysis.arterial_tube == 4">动脉管道+++</span>
1589
+                      </div>
1590
+                    </div>
1591
+                    <div class="inline_block" style="flex:1;">
1592
+                      静脉管道:
1593
+                      <div class="under_line" style="width: 100px;text-align: center">
1594
+                        <span v-if="record.assessment_after_dislysis.intravenous_tube == 0">/</span>
1595
+                        <span v-if="record.assessment_after_dislysis.intravenous_tube == 1">静脉管道0</span>
1596
+                        <span v-if="record.assessment_after_dislysis.intravenous_tube == 2">静脉管道+</span>
1597
+                        <span v-if="record.assessment_after_dislysis.intravenous_tube == 3">静脉管道++</span>
1598
+                        <span v-if="record.assessment_after_dislysis.intravenous_tube == 4">静脉管道+++</span>
1599
+                      </div>
1600
+                    </div>
1601
+                    <div class="inline_block" style="flex:1;">
1602
+                      并发症:
1603
+                      <div class="under_line" style="width: 170px;text-align: center">
1604
+                        {{ record.assessment_after_dislysis.complication ? record.assessment_after_dislysis.complication : "/" }}
1653 1605
                       </div>
1654 1606
                     </div>
1607
+                  </div>
1608
+                  <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id == 10223">
1609
+                    <div class="inline_block" style="flex:1;">
1610
+                      穿刺处血肿:
1611
+                      <div class="under_line" style="width: 50px;text-align: center">
1612
+                        <span v-if="record.assessment_after_dislysis.puncture_point_haematoma == 0">/</span>
1613
+                        <span v-if="record.assessment_after_dislysis.puncture_point_haematoma == 1">有</span>
1614
+                        <span v-if="record.assessment_after_dislysis.puncture_point_haematoma == 2">无</span>
1615
+                      </div>
1616
+                    </div>
1617
+                    <div class="inline_block" style="flex:1;">
1618
+                      中心静脉封管(肝素-A端):
1619
+                      <div class="under_line" style="width: 70px;text-align: center">
1620
+                        {{ record.assessment_after_dislysis.cvc_a ? record.assessment_after_dislysis.cvc_a : "/" }}
1621
+                      </div>
1622
+                    </div>
1623
+                    <div class="inline_block" style="flex:1;">
1624
+                      中心静脉封管(肝素-V端):
1625
+                      <div class="under_line" style="width: 70px;text-align: center">
1626
+                        {{ record.assessment_after_dislysis.cvc_v ? record.assessment_after_dislysis.cvc_v : "/" }}
1627
+                      </div>
1628
+                    </div>
1629
+                  </div>
1655 1630
                     <div
1656 1631
                       class="row"
1657 1632
                       style="padding: 2px 0;line-height:23px;display:flex;"
1658 1633
                     >
1659
-                      <div class="inline_block" style="flex:1;">
1634
+                      <div class="inline_block" style="flex:1; display:inline-block;">
1660 1635
                         治疗小结:
1661
-                        <div
1662
-                          style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;"
1636
+                        <div class="under_line"
1637
+                          style="width: 840px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;"
1663 1638
                         >
1664 1639
                           {{
1665 1640
                             record.summer && record.summer.dialysis_summary
@@ -2077,9 +2052,9 @@ export default {
2077 2052
             var dlegh = 0;
2078 2053
             if (
2079 2054
               this.records[recordIndex].monitor_records &&
2080
-              this.records[recordIndex].monitor_records.length < 8
2055
+              this.records[recordIndex].monitor_records.length < 6
2081 2056
             ) {
2082
-              dlegh = 8 - this.records[recordIndex].monitor_records.length;
2057
+              dlegh = 6 - this.records[recordIndex].monitor_records.length;
2083 2058
             } else {
2084 2059
               dlegh = 0;
2085 2060
             }
@@ -2104,9 +2079,9 @@ export default {
2104 2079
             var delghTwo = 0;
2105 2080
             if (
2106 2081
               this.records[recordIndex].advices &&
2107
-              this.records[recordIndex].advices.length < 7
2082
+              this.records[recordIndex].advices.length < 12
2108 2083
             ) {
2109
-              delghTwo = 7 - this.records[recordIndex].advices.length;
2084
+              delghTwo = 12 - this.records[recordIndex].advices.length;
2110 2085
             } else {
2111 2086
               delghTwo = 0;
2112 2087
             }

+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Parādīt failu

@@ -289,6 +289,16 @@
289 289
           >批量打印</el-button
290 290
         >
291 291
       </template>
292
+      <template v-if="this.template_id == 43">
293
+        <el-button
294
+          size="small"
295
+          icon="el-icon-printer"
296
+          :disabled="selecting_schs.length == 0"
297
+          @click="batchPrintAction"
298
+          type="primary"
299
+          >批量打印</el-button
300
+        >
301
+      </template>
292 302
     </div>
293 303
     <div class="app-container">
294 304
       <!-- <div class="filter-container">
@@ -881,6 +891,8 @@ export default {
881 891
         this.$router.push({ path: "/dialysis/print/batch/forty" });
882 892
       } else if (this.template_id == 41) {
883 893
         this.$router.push({ path: "/dialysis/print/batch/fortyOne" });
894
+      } else if (this.template_id == 43) {
895
+        this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
884 896
       }
885 897
     },
886 898
     batchPrintActionOne: function() {

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue Parādīt failu

@@ -58,8 +58,8 @@
58 58
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
59 59
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
60 60
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
61
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 38">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
62
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
61
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 10234">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
62
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 10234 )">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
63 63
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
64 64
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
65 65
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>

+ 4 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Parādīt failu

@@ -53,7 +53,7 @@
53 53
         </el-form-item>
54 54
 
55 55
      
56
-        <el-form-item label="引血(ml/min)" v-if="template_id == 6">
56
+        <el-form-item label="引血(ml/min)" v-if="template_id == 6 && org_id != 10223">
57 57
           <el-input type="number" v-model="form.blood_drawing" style="width:200px;"></el-input>
58 58
         </el-form-item>
59 59
 
@@ -122,7 +122,8 @@
122 122
           { id: 3, name: '晚上' }
123 123
         ], // 该排班的区里的床位
124 124
         isPremission: false,
125
-        adminRoles:[{id:0,name:"请选择"}]
125
+        adminRoles:[{id:0,name:"请选择"}],
126
+        org_id:0
126 127
       }
127 128
     },
128 129
     props: {
@@ -150,6 +151,7 @@
150 151
     created() {
151 152
 
152 153
       this.template_id = this.$store.getters.xt_user.template_info.template_id
154
+      this.org_id = this.$store.getters.xt_user.template_info.org_id
153 155
       this.patient_id = this.$route.query.patient_id
154 156
       this.schedule_date = this.$route.query.date
155 157
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse

+ 9 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Parādīt failu

@@ -2038,7 +2038,15 @@
2038 2038
           }
2039 2039
           if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4 || this.$store.getters.xt_user.org.id == 10013 || this.$store.getters.xt_user.org.id == 10014 ) {
2040 2040
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2041
-          } else {
2041
+          }else if(this.$store.getters.xt_user.org.id == 10234 || this.$store.getters.xt_user.org.id == 9671){
2042
+            if (schedual.schedule_type == 1) {
2043
+              this.start_time = year + '-' + month + '-' + day + ' ' + '06:00'
2044
+            } else if (schedual.schedule_type == 2) {
2045
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2046
+            } else if (schedual.schedule_type == 3) {
2047
+              this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2048
+            }
2049
+           } else {
2042 2050
             if (schedual.schedule_type == 1) {
2043 2051
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
2044 2052
             } else if (schedual.schedule_type == 2) {

+ 4 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Parādīt failu

@@ -306,7 +306,7 @@
306 306
             align="center"
307 307
             label="置换量(ml)"
308 308
             width="100"
309
-            v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" >
309
+            v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id!=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" >
310 310
             <template slot-scope="scope">
311 311
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
312 312
             </template>
@@ -317,7 +317,7 @@
317 317
             align="center"
318 318
             label="置换量(L)"
319 319
             width="100"
320
-            v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" >
320
+            v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919 || org_id == 10191) && template_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" >
321 321
             <template slot-scope="scope">
322 322
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
323 323
             </template>
@@ -694,12 +694,12 @@
694 694
               <el-input v-model="form.replacement_rate"></el-input>
695 695
             </el-form-item>
696 696
           </el-col>
697
-          <el-col :span="8" v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)">
697
+          <el-col :span="8" v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)">
698 698
             <el-form-item label="置换量(L):">
699 699
               <el-input v-model="form.displacement_quantity"></el-input>
700 700
             </el-form-item>
701 701
           </el-col>
702
-          <el-col :span="8" v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)">
702
+          <el-col :span="8" v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id!=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)">
703 703
             <el-form-item label="置换量(ml):">
704 704
               <el-input v-model="form.displacement_quantity"></el-input>
705 705
             </el-form-item>

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue Parādīt failu

@@ -22,8 +22,8 @@
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23 23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>
24 24
           <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29" width="92px" > 置换率(L/h)  </th>
25
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" width="92px"  > 置换量(ml)  </th>
26
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" width="92px" > 置换量(L) </th>
25
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" width="92px"  > 置换量(ml)  </th>
26
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" width="92px" > 置换量(L) </th>
27 27
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
28 28
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
29 29
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>

+ 2 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Parādīt failu

@@ -1174,9 +1174,9 @@ export default {
1174 1174
       const style8 =
1175 1175
         '@media print {.dialysis-print-order{width:960px;margin:0 auto;font-size:10px;}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:10px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.widthLength25{width: 25%;}.lineHeight{line-height: 20px;display: flex;justify-content: space-between;}';
1176 1176
       const style9 =
1177
-        '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
1177
+        '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}@page {margin-top:5px;}.table-box1 tr {border-bottom: 1px solid #000;}';
1178 1178
       const style10 =
1179
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1179
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1180 1180
 
1181 1181
       if (this.org_template_info.template_id == 1) {
1182 1182
         printJS({

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1102 - 968
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderEighteen.vue Parādīt failu

@@ -61,7 +61,7 @@
61 61
               <span>
62 62
                 &nbsp;{{ predialysis.temperature ? predialysis.temperature : "" }}℃
63 63
               </span>
64
-            </td> 
64
+            </td>                                   
65 65
           </tr>
66 66
           <tr style="text-align:left">
67 67
             <td colspan="8" style="padding-left:5px">

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1006 - 875
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1597 - 1454
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 874 - 692
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 615 - 516
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 602 - 520
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1529 - 1418
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1113 - 1009
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 580 - 492
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1109 - 970
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1130 - 939
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1042 - 897
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 628 - 538
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 567 - 469
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 568 - 412
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue


+ 512 - 421
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFour.vue Parādīt failu

@@ -1,446 +1,449 @@
1 1
 <template>
2
-  <div id="dialysis-print-box-1">
3
-    <div
4
-      id="dialysis-print-box-1-1"
5
-      class="dialysis-print-order print-template-two print_page_main_content"
6
-    >
7
-      <div class="order-yy-name" style="font-weight:bold;font-size:28px;">{{ orgname }}</div>
8
-      <div style="display:inline-block;width:100%;text-align:center;">
9
-        <div
10
-          class="order-title"
11
-          style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
12
-        >
13
-          血液净化治疗记录单
2
+  <div>
3
+    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
4
+    <div id="dialysis-print-box-1">
5
+      <div
6
+        id="dialysis-print-box-1-1"
7
+        class="dialysis-print-order print-template-two print_page_main_content"
8
+      >
9
+        <div class="order-yy-name" style="font-weight:bold;font-size:28px;">{{ orgname }}</div>
10
+        <div style="display:inline-block;width:100%;text-align:center;">
11
+          <div
12
+            class="order-title"
13
+            style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
14
+          >
15
+            血液净化治疗记录单
16
+          </div>
14 17
         </div>
15
-      </div>
16 18
 
17
-      <div class="row">
18
-        <table class="proj_table">
19
-          <tbody>
20
-            <tr>
19
+        <div class="row">
20
+          <table class="proj_table">
21
+            <tbody>
22
+              <tr>
23
+                  <td colspan="2">
24
+                      <div class="row">
25
+                          <div class="inline_block">
26
+                              姓名:
27
+                              <div class="under_line" style="width: 70px;text-align: center;">
28
+                                  {{ patientInfo.name }}
29
+                              </div>
30
+                          </div>
31
+                          <div class="inline_block" style="margin-left: 10px;">
32
+                              性别:
33
+                              <div class="under_line" style="width: 50px;text-align: center;">
34
+                                  {{ patientInfo_gender_1 ? "男" : "女" }}
35
+                              </div>
36
+                          </div>
37
+                          <div class="inline_block" style="margin-left: 10px;">
38
+                              年龄:
39
+                              <div class="under_line" style="width: 50px;text-align: center;">
40
+                                  {{ getAge(patientInfo) }}
41
+                              </div>
42
+                          </div>
43
+                          <div class="inline_block" style="margin-left: 10px;">
44
+                              透析日期:
45
+                              <div class="under_line" style="width: 90px;text-align: center;">
46
+                                  {{ queryParams.xtdate }}
47
+                              </div>
48
+                          </div>
49
+                          <div class="inline_block" style="margin-left: 10px;">
50
+                              透析机:
51
+                              <div class="under_line" style="width: 80px;text-align: center;">
52
+                                  {{ predialysis.machine_type ? predialysis.machine_type : "" }}
53
+                              </div>
54
+                          </div>
55
+                          <div class="inline_block" style="margin-left: 10px;">
56
+                              床号:
57
+                              <div class="under_line" style="width: 50px;text-align: center;">
58
+                                  {{
59
+                                  dialysisOrder &&
60
+                                  dialysisOrder.DeviceNumber &&
61
+                                  dialysisOrder.DeviceNumber.number > 0
62
+                                  ? dialysisOrder.DeviceNumber.number
63
+                                  : patientInfo.DialysisSchedule.device_number.number
64
+                                  }} 
65
+                              </div>
66
+                          </div>
67
+                          <div class="inline_block">
68
+                              治疗模式:
69
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
70
+                              /
71
+                              </div>
72
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 1">
73
+                              HD
74
+                              </div>
75
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 2">
76
+                              HDF
77
+                              </div>
78
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 3">
79
+                              HD+HP
80
+                              </div>
81
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 4">
82
+                              HP
83
+                              </div>
84
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 5">
85
+                              HF
86
+                              </div>
87
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 6">
88
+                              SCUF
89
+                              </div>
90
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 7">
91
+                              IUF
92
+                              </div>
93
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 8">
94
+                              HFHD
95
+                              </div>
96
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 9">
97
+                              HFHD+HP
98
+                              </div>
99
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 10">
100
+                              PHF
101
+                              </div>
102
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 11">
103
+                              HFR
104
+                              </div>
105
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 12">
106
+                              HDF+HP
107
+                              </div>
108
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 13">
109
+                              CRRT
110
+                              </div>
111
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 14">
112
+                              腹水回输
113
+                              </div>
114
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 15">
115
+                              HD前置换
116
+                              </div>
117
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 16">
118
+                              HD后置换
119
+                              </div>
120
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 17">
121
+                              HDF前置换
122
+                              </div>
123
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 18">
124
+                              HDF后置换
125
+                              </div>
126
+                              <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
127
+                              IUF+HD
128
+                              </div>
129
+                          </div>
130
+                      </div>
131
+                  </td>
132
+                  
133
+              </tr>
134
+              <tr>
135
+                <td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
136
+                  医嘱记录
137
+                </td>
138
+              </tr>
139
+              <tr>
21 140
                 <td colspan="2">
22
-                    <div class="row">
23
-                        <div class="inline_block">
24
-                            姓名:
25
-                            <div class="under_line" style="width: 70px;text-align: center;">
26
-                                {{ patientInfo.name }}
27
-                            </div>
28
-                        </div>
29
-                        <div class="inline_block" style="margin-left: 10px;">
30
-                            性别:
31
-                            <div class="under_line" style="width: 50px;text-align: center;">
32
-                                {{ patientInfo_gender_1 ? "男" : "女" }}
33
-                            </div>
34
-                        </div>
35
-                        <div class="inline_block" style="margin-left: 10px;">
36
-                            年龄:
37
-                            <div class="under_line" style="width: 50px;text-align: center;">
38
-                                {{ getAge(patientInfo) }}
39
-                            </div>
40
-                        </div>
41
-                        <div class="inline_block" style="margin-left: 10px;">
42
-                            透析日期:
43
-                            <div class="under_line" style="width: 90px;text-align: center;">
44
-                                {{ queryParams.xtdate }}
45
-                            </div>
46
-                        </div>
47
-                        <div class="inline_block" style="margin-left: 10px;">
48
-                            透析机:
49
-                            <div class="under_line" style="width: 80px;text-align: center;">
50
-                                {{ predialysis.machine_type ? predialysis.machine_type : "" }}
51
-                            </div>
52
-                        </div>
53
-                        <div class="inline_block" style="margin-left: 10px;">
54
-                            床号:
55
-                            <div class="under_line" style="width: 50px;text-align: center;">
56
-                                {{
57
-                                dialysisOrder &&
58
-                                dialysisOrder.DeviceNumber &&
59
-                                dialysisOrder.DeviceNumber.number > 0
60
-                                ? dialysisOrder.DeviceNumber.number
61
-                                : patientInfo.DialysisSchedule.device_number.number
62
-                                }} 
63
-                            </div>
64
-                        </div>
65
-                        <div class="inline_block">
66
-                            治疗模式:
67
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
68
-                            /
69
-                            </div>
70
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 1">
71
-                            HD
72
-                            </div>
73
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 2">
74
-                            HDF
75
-                            </div>
76
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 3">
77
-                            HD+HP
78
-                            </div>
79
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 4">
80
-                            HP
81
-                            </div>
82
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 5">
83
-                            HF
84
-                            </div>
85
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 6">
86
-                            SCUF
87
-                            </div>
88
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 7">
89
-                            IUF
90
-                            </div>
91
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 8">
92
-                            HFHD
93
-                            </div>
94
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 9">
95
-                            HFHD+HP
96
-                            </div>
97
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 10">
98
-                            PHF
99
-                            </div>
100
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 11">
101
-                            HFR
102
-                            </div>
103
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 12">
104
-                            HDF+HP
105
-                            </div>
106
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 13">
107
-                            CRRT
108
-                            </div>
109
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 14">
110
-                            腹水回输
111
-                            </div>
112
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 15">
113
-                            HD前置换
114
-                            </div>
115
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 16">
116
-                            HD后置换
117
-                            </div>
118
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 17">
119
-                            HDF前置换
120
-                            </div>
121
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 18">
122
-                            HDF后置换
123
-                            </div>
124
-                            <div class="under_line" style="width: 70px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
125
-                            IUF+HD
126
-                            </div>
127
-                        </div>
141
+                  <div class="row" style="padding: 2px 0;line-height:23px;">
142
+                    <div class="inline_block">
143
+                      P:
144
+                      <div class="under_line" style="width: 50px;text-align: center;">
145
+                        {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
146
+                      </div>
147
+                      次/分
128 148
                     </div>
129
-                </td>
130
-                
131
-            </tr>
132
-            <tr>
133
-              <td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
134
-                医嘱记录
135
-              </td>
136
-            </tr>
137
-            <tr>
138
-              <td colspan="2">
139
-                <div class="row" style="padding: 2px 0;line-height:23px;">
140
-                  <div class="inline_block">
141
-                    P:
142
-                    <div class="under_line" style="width: 50px;text-align: center;">
143
-                      {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
149
+                    <div class="inline_block" style="margin-left:20px;">
150
+                      BP:
151
+                      <div class="under_line" style="width: 100px;text-align: center;">
152
+                        {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "" }}/
153
+                        {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "" }}
154
+                      </div>
155
+                      mmHg
144 156
                     </div>
145
-                    次/分
146
-                  </div>
147
-                  <div class="inline_block" style="margin-left:20px;">
148
-                    BP:
149
-                    <div class="under_line" style="width: 100px;text-align: center;">
150
-                      {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "" }}/
151
-                      {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "" }}
157
+                    <div class="inline_block" style="flex:1;margin-left:20px;">
158
+                      干体重:
159
+                      <div class="under_line" style="width: 50px;text-align: center">
160
+                        {{ predialysis.dry_weight ? predialysis.dry_weight : "" }}
161
+                      </div>
162
+                      kg
152 163
                     </div>
153
-                    mmHg
154
-                  </div>
155
-                  <div class="inline_block" style="flex:1;margin-left:20px;">
156
-                    干体重:
157
-                    <div class="under_line" style="width: 50px;text-align: center">
158
-                      {{ predialysis.dry_weight ? predialysis.dry_weight : "" }}
164
+                    <div class="inline_block" style="flex:1;margin-left:20px;">
165
+                      透前体重:
166
+                      <div class="under_line" style="width: 70px;text-align: center">
167
+                        {{ predialysis.weight_before ? predialysis.weight_before : "" }}
168
+                      </div>
169
+                      kg
159 170
                     </div>
160
-                    kg
161
-                  </div>
162
-                  <div class="inline_block" style="flex:1;margin-left:20px;">
163
-                    透前体重:
164
-                    <div class="under_line" style="width: 70px;text-align: center">
165
-                      {{ predialysis.weight_before ? predialysis.weight_before : "" }}
171
+                    <div class="inline_block" style="flex:1;margin-left:20px;">
172
+                      计划超滤量:
173
+                      <div class="under_line" style="width: 50px;text-align: center">
174
+                        {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}
175
+                      </div>
176
+                      ml
166 177
                     </div>
167
-                    kg
168 178
                   </div>
169
-                  <div class="inline_block" style="flex:1;margin-left:20px;">
170
-                    计划超滤量:
171
-                    <div class="under_line" style="width: 50px;text-align: center">
172
-                      {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}
173
-                    </div>
174
-                    ml
179
+                  <div class="row" style="padding: 2px 0;line-height:23px;">
180
+                      <div class="inline_block" style="flex:1;">
181
+                          透析时间:
182
+                          <div class="under_line" style="width: 50px;text-align: center">
183
+                          {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "" }}
184
+                          </div>
185
+                          小时
186
+                          <div class="under_line" style="width: 50px;text-align: center">
187
+                          {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "" }}
188
+                          </div>
189
+                          分钟
190
+                      </div>
191
+                      <div class="inline_block" style="margin-left:20px;flex:1;">
192
+                          血流量:
193
+                          <div class="under_line" style="width: 50px;text-align: center">
194
+                          {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
195
+                          </div>
196
+                          ml/min
197
+                      </div>
198
+                      <div class="inline_block" style="flex:1;margin-left:20px;">
199
+                          血管通路:
200
+                          <div class="under_line" style="width: 200px;text-align: center;">
201
+                          <!-- {{ QueryPartById(predialysis.blood_access_part_id) }} -->
202
+                          {{ predialysis.blood_access_part_opera_name }}
203
+                          </div>
204
+                      </div>
205
+                      <div class="inline_block" style="flex:1;margin-left:20px;">
206
+                          透析(滤)器:
207
+                          <div class="under_line" style="width: 100px;text-align: center">
208
+                          {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
209
+                          </div>
210
+                      </div>
175 211
                   </div>
176
-                </div>
177
-                <div class="row" style="padding: 2px 0;line-height:23px;">
212
+                  
213
+                  <div class="row" style="padding: 2px 0;line-height:23px;">
178 214
                     <div class="inline_block" style="flex:1;">
179
-                        透析时间:
180
-                        <div class="under_line" style="width: 50px;text-align: center">
181
-                        {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "" }}
182
-                        </div>
183
-                        小时
184
-                        <div class="under_line" style="width: 50px;text-align: center">
185
-                        {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "" }}
186
-                        </div>
187
-                        分钟
215
+                      置换方式:
216
+                      <check-box :checked="prescription.displace_liqui_part == 1 ? true : false" text="前置换"></check-box>&nbsp;
217
+                      <check-box :checked="prescription.displace_liqui_part == 2 ? true : false" text="后置换"></check-box>&nbsp;
188 218
                     </div>
189 219
                     <div class="inline_block" style="margin-left:20px;flex:1;">
190
-                        血流量:
191
-                        <div class="under_line" style="width: 50px;text-align: center">
192
-                        {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
193
-                        </div>
194
-                        ml/min
195
-                    </div>
196
-                    <div class="inline_block" style="flex:1;margin-left:20px;">
197
-                        血管通路:
198
-                        <div class="under_line" style="width: 200px;text-align: center;">
199
-                        <!-- {{ QueryPartById(predialysis.blood_access_part_id) }} -->
200
-                        {{ predialysis.blood_access_part_opera_name }}
201
-                        </div>
202
-                    </div>
203
-                    <div class="inline_block" style="flex:1;margin-left:20px;">
204
-                        透析(滤)器:
205
-                        <div class="under_line" style="width: 100px;text-align: center">
206
-                        {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
207
-                        </div>
208
-                    </div>
209
-                </div>
210
-                
211
-                <div class="row" style="padding: 2px 0;line-height:23px;">
212
-                  <div class="inline_block" style="flex:1;">
213
-                    置换方式:
214
-                    <check-box :checked="prescription.displace_liqui_part == 1 ? true : false" text="前置换"></check-box>&nbsp;
215
-                    <check-box :checked="prescription.displace_liqui_part == 2 ? true : false" text="后置换"></check-box>&nbsp;
216
-                  </div>
217
-                  <div class="inline_block" style="margin-left:20px;flex:1;">
218
-                    置换量:
219
-                    <div class="under_line" style="width: 70px;text-align: center">
220
-                    {{ prescription.replacement_total ? prescription.replacement_total : "" }}
220
+                      置换量:
221
+                      <div class="under_line" style="width: 70px;text-align: center">
222
+                      {{ prescription.replacement_total ? prescription.replacement_total : "" }}
223
+                      </div>
224
+                      L
221 225
                     </div>
222
-                    L
223 226
                   </div>
224
-                </div>
225
-              </td>
226
-            </tr>
227
-            <tr>
228
-              <td style="padding: 0; position: relative;" colspan="2">
229
-                <table class="inside_table">
230
-                  <tbody>
231
-                    <tr style="height:32px;">
232
-                      <td style="font-size: 16px" width="10%">时间</td>
233
-                      <td style="font-size: 16px" colspan="2" width="45%">临时医嘱</td>
234
-                      <td style="font-size: 16px" width="10%">医嘱者</td>
235
-                      <td style="font-size: 16px" width="10%">执行者</td>
236
-                      <td style="font-size: 16px" width="10%">时间</td>
237
-                    </tr>
238
-                    <!-- <template v-for="group in doctor_advices" > -->
239
-
240
-                    <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
241
-                      <td height="32px;padding:1px 1px">
242
-                        <span v-if="advice.start_time">
243
-                          {{ getTime(advice.start_time, "{h}:{i}") }}
244
-                        </span>
245
-                        <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
246
-                      </td>
247
-                      <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
248
-                        <span v-if="advice.parent_id > 0">---></span>
249
-                        <span>{{ advice.advice_name }}</span>
250
-                        <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
251
-                        <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
252
-                        <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
253
-                        <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
254
-                        <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
255
-                        <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
256
-                      </td>
257
-                      <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
258
-                    <span>{{advice.delivery_way}}</span>
259
-                    <span>{{advice.execution_frequency}}</span>
260
-                    <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
261
-                  </td> -->
262
-                      <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
263
-                      <td height="32px">
264
-                        <span>{{ getAdminUser(advice.advice_doctor) }}</span>
265
-                      </td>
266
-                      <!-- <td height="35px">
267
-                    <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
268
-                    <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
269
-                  </td> -->
270
-                      <td height="32px">
271
-                        <span>{{ getAdminUser(advice.execution_staff) }}</span>
272
-                      </td>
273
-                      <td height="32px">
274
-                        <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
275
-                      </td>
276
-                    </tr>
277
-                    <!-- </template> -->
278
-                  </tbody>
279
-                </table>
280
-              </td>
281
-            </tr>
282
-
283
-
284
-
285
-            <tr>
286
-              <td style="padding: 0; position: relative;" colspan="2">
287
-                <table class="inside_table">
288
-                  <tbody>
289
-                    <tr>
290
-                      <td colspan="13" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
291
-                        护理记录
292
-                      </td>
293
-                    </tr>
294
-                    <tr>
295
-                        <td width="60">时间</td>
296
-                        <td width="80" style="height:20px;line-height:20px">血压<br />(肢)</td>
297
-                        <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
298
-                        <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
299
-                        <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
300
-                        <td width="60" style="height:20px;line-height:20px">超滤率<br />1/h</td>
301
-                        <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
302
-                        <td width="60" style="height:20px;line-height:20px">透析液温度</td>
303
-                        <td width="60" style="height:20px;line-height:20px">电导度<br />ms/cm</td>
304
-                        <td width="60" style="height:20px;line-height:20px">体温<br />C°</td>
305
-                        <td width="">病情变化及处理</td>
306
-                        <td width="60" style="height:20px;line-height:20px">签名</td>
307
-                    </tr>
308
-
309
-                    <tr v-for="monitor in monitors" :key="monitor.id">
310
-                        <td style="height:32px;line-height:32px;">&nbsp;{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
311
-                        <td>
312
-                            <span v-if="monitor.systolic_blood_pressure || monitor.diastolic_blood_pressure">
313
-                                &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
314
-                                {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
315
-                            </span>
227
+                </td>
228
+              </tr>
229
+              <tr>
230
+                <td style="padding: 0; position: relative;" colspan="2">
231
+                  <table class="inside_table">
232
+                    <tbody>
233
+                      <tr style="height:32px;">
234
+                        <td style="font-size: 16px" width="10%">时间</td>
235
+                        <td style="font-size: 16px" colspan="2" width="45%">临时医嘱</td>
236
+                        <td style="font-size: 16px" width="10%">医嘱者</td>
237
+                        <td style="font-size: 16px" width="10%">执行者</td>
238
+                        <td style="font-size: 16px" width="10%">时间</td>
239
+                      </tr>
240
+                      <!-- <template v-for="group in doctor_advices" > -->
241
+
242
+                      <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
243
+                        <td height="32px;padding:1px 1px">
244
+                          <span v-if="advice.start_time">
245
+                            {{ getTime(advice.start_time, "{h}:{i}") }}
246
+                          </span>
247
+                          <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
316 248
                         </td>
317
-                        <td>&nbsp;{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}</td>
318
-                        <td>&nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}</td>
319
-                        <td>&nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}</td>
320
-                        <td>&nbsp;{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''}}</td>
321
-                        <td>&nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</td>
322
-                        <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
323
-                        <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
324
-                        <td>&nbsp;{{ monitor.temperature ? monitor.temperature : "" }}</td>
325
-                        <td style="text-align:left;padding-left:10px;">
326
-                            <div style="line-height:20px;text-align: left;display: inline-block;">
327
-                                &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}
328
-                            </div>
249
+                        <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
250
+                          <span v-if="advice.parent_id > 0">---></span>
251
+                          <span>{{ advice.advice_name }}</span>
252
+                          <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
253
+                          <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
254
+                          <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
255
+                          <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
256
+                          <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
257
+                          <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
329 258
                         </td>
330
-                        <td>
331
-                            <span>
332
-                                {{ getAdminUser(monitor.monitoring_nurse) }}
333
-                            </span>
259
+                        <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
260
+                      <span>{{advice.delivery_way}}</span>
261
+                      <span>{{advice.execution_frequency}}</span>
262
+                      <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
263
+                    </td> -->
264
+                        <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
265
+                        <td height="32px">
266
+                          <span>{{ getAdminUser(advice.advice_doctor) }}</span>
334 267
                         </td>
335
-                    </tr>
336
-                  </tbody>
337
-                </table>
338
-              </td>
339
-            </tr>
340
-            <tr>
341
-                <td colspan="2">
342
-                    <div class="row" style="padding: 2px 0;line-height:23px; display:flex;">
343
-                        <div class="inline_block">
344
-                            实际治疗时间:
345
-                            <div class="under_line" style="width: 30px;text-align: center">
346
-                            {{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "" }}
347
-                            </div>
348
-                            小时
349
-                            <div class="under_line" style="width: 30px;text-align: center">
350
-                            {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : "" }}
351
-                            </div>
352
-                            分钟
353
-                        </div>
354
-                        <div class="inline_block" style="margin-left:10px;">
355
-                            实际脱水量:
356
-                            <div class="under_line" style="width: 70px;text-align: center">
357
-                            {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
358
-                            </div>
359
-                            ml
360
-                        </div>
361
-                        <div class="inline_block" style="margin-left:10px;">
362
-                            透后体重:
363
-                            <div class="under_line" style="width: 70px;text-align: center">
364
-                            {{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}
365
-                            </div>
366
-                            kg
367
-                        </div>
368
-                        <div class="inline_block" style="margin-left:10px;">
369
-                            离科时间
370
-                            <div class="under_line" style="width: 70px;text-align: center">
371
-                                {{ dialysisOrder ? getTime(dialysisOrder.end_time, "{h}:{i}") : '' }}
372
-                            </div>
373
-                        </div>
374
-                    </div>
375
-                    <div class="row" style="padding: 2px 0;line-height:30px; display:flex;">
268
+                        <!-- <td height="35px">
269
+                      <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
270
+                      <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
271
+                    </td> -->
272
+                        <td height="32px">
273
+                          <span>{{ getAdminUser(advice.execution_staff) }}</span>
274
+                        </td>
275
+                        <td height="32px">
276
+                          <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
277
+                        </td>
278
+                      </tr>
279
+                      <!-- </template> -->
280
+                    </tbody>
281
+                  </table>
282
+                </td>
283
+              </tr>
284
+
285
+
286
+
287
+              <tr>
288
+                <td style="padding: 0; position: relative;" colspan="2">
289
+                  <table class="inside_table">
290
+                    <tbody>
291
+                      <tr>
292
+                        <td colspan="13" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
293
+                          护理记录
294
+                        </td>
295
+                      </tr>
296
+                      <tr>
297
+                          <td width="60">时间</td>
298
+                          <td width="80" style="height:20px;line-height:20px">血压<br />(肢)</td>
299
+                          <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
300
+                          <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
301
+                          <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
302
+                          <td width="60" style="height:20px;line-height:20px">超滤率<br />1/h</td>
303
+                          <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
304
+                          <td width="60" style="height:20px;line-height:20px">透析液温度</td>
305
+                          <td width="60" style="height:20px;line-height:20px">电导度<br />ms/cm</td>
306
+                          <td width="60" style="height:20px;line-height:20px">体温<br />C°</td>
307
+                          <td width="">病情变化及处理</td>
308
+                          <td width="60" style="height:20px;line-height:20px">签名</td>
309
+                      </tr>
310
+
311
+                      <tr v-for="monitor in monitors" :key="monitor.id">
312
+                          <td style="height:32px;line-height:32px;">&nbsp;{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
313
+                          <td>
314
+                              <span v-if="monitor.systolic_blood_pressure || monitor.diastolic_blood_pressure">
315
+                                  &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
316
+                                  {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
317
+                              </span>
318
+                          </td>
319
+                          <td>&nbsp;{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}</td>
320
+                          <td>&nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}</td>
321
+                          <td>&nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}</td>
322
+                          <td>&nbsp;{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''}}</td>
323
+                          <td>&nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</td>
324
+                          <td>&nbsp;{{monitor.dialysate_temperature ? monitor.dialysate_temperature : ''}}</td>
325
+                          <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
326
+                          <td>&nbsp;{{ monitor.temperature ? monitor.temperature : "" }}</td>
327
+                          <td style="text-align:left;padding-left:10px;">
328
+                              <div style="line-height:20px;text-align: left;display: inline-block;">
329
+                                  &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}
330
+                              </div>
331
+                          </td>
332
+                          <td>
333
+                              <span>
334
+                                  {{ getAdminUser(monitor.monitoring_nurse) }}
335
+                              </span>
336
+                          </td>
337
+                      </tr>
338
+                    </tbody>
339
+                  </table>
340
+                </td>
341
+              </tr>
342
+              <tr>
343
+                  <td colspan="2">
344
+                      <div class="row" style="padding: 2px 0;line-height:23px; display:flex;">
345
+                          <div class="inline_block">
346
+                              实际治疗时间:
347
+                              <div class="under_line" style="width: 30px;text-align: center">
348
+                              {{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "" }}
349
+                              </div>
350
+                              小时
351
+                              <div class="under_line" style="width: 30px;text-align: center">
352
+                              {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : "" }}
353
+                              </div>
354
+                              分钟
355
+                          </div>
356
+                          <div class="inline_block" style="margin-left:10px;">
357
+                              实际脱水量:
358
+                              <div class="under_line" style="width: 70px;text-align: center">
359
+                              {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
360
+                              </div>
361
+                              ml
362
+                          </div>
363
+                          <div class="inline_block" style="margin-left:10px;">
364
+                              透后体重:
365
+                              <div class="under_line" style="width: 70px;text-align: center">
366
+                              {{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}
367
+                              </div>
368
+                              kg
369
+                          </div>
370
+                          <div class="inline_block" style="margin-left:10px;">
371
+                              离科时间
372
+                              <div class="under_line" style="width: 70px;text-align: center">
373
+                                  {{ dialysisOrder ? getTime(dialysisOrder.end_time, "{h}:{i}") : '' }}
374
+                              </div>
375
+                          </div>
376
+                      </div>
377
+                      <div class="row" style="padding: 2px 0;line-height:30px; display:flex;">
378
+                          <div class="inline_block">
379
+                              预冲者
380
+                              <div class="under_line" style="width: 70px;text-align: center">
381
+                                  <span>{{getAdminUser(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)}}</span>
382
+                              </div>
383
+                          </div>
384
+                          <div class="inline_block" style="margin-left:20px;">
385
+                              穿刺者/换药者
386
+                              <div class="under_line" style="width: 70px;text-align: center">
387
+                                  <span>{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
388
+                              </div>
389
+                          </div>
390
+                          <div class="inline_block" style="margin-left:20px;">
391
+                              责任护士
392
+                              <div class="under_line" style="width: 70px;text-align: center">
393
+                                  <span>{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
394
+                              </div>
395
+                          </div>
396
+                          <div class="inline_block" style="margin-left:20px;">
397
+                              查对者
398
+                              <div class="under_line" style="width: 70px;text-align: center">
399
+                                  <span>
400
+                                      {{ getAdminUser(check == null ? 0 : check.creater) }}
401
+                                  </span>
402
+                              </div>
403
+                          </div>
404
+                          <div class="inline_block" style="margin-left:20px;">
405
+                              交叉核对者
406
+                              <div class="under_line" style="width: 70px;text-align: center">
407
+                                  <span>
408
+                                  {{ getAdminUser(check == null ? 0 : check.modifier) }}
409
+                                  </span>
410
+                              </div>
411
+                          </div>
412
+                          <div class="inline_block" style="margin-left:20px;">
413
+                              下机护士
414
+                              <div class="under_line" style="width: 70px;text-align: center">
415
+                                  <span>{{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
416
+                              </div>
417
+                          </div>
418
+                          
419
+                          
420
+                      </div>
421
+                      <div class="row" style="padding: 2px 0;line-height:30px; display:flex;">
376 422
                         <div class="inline_block">
377
-                            预冲者
378
-                            <div class="under_line" style="width: 70px;text-align: center">
379
-                                <span>{{getAdminUser(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)}}</span>
380
-                            </div>
381
-                        </div>
382
-                        <div class="inline_block" style="margin-left:20px;">
383
-                            穿刺者/换药者
384
-                            <div class="under_line" style="width: 70px;text-align: center">
385
-                                <span>{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
386
-                            </div>
387
-                        </div>
388
-                        <div class="inline_block" style="margin-left:20px;">
389
-                            责任护士
390
-                            <div class="under_line" style="width: 70px;text-align: center">
391
-                                <span>{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
392
-                            </div>
393
-                        </div>
394
-                        <div class="inline_block" style="margin-left:20px;">
395
-                            查对者
396
-                            <div class="under_line" style="width: 70px;text-align: center">
397
-                                <span>
398
-                                    {{ getAdminUser(check == null ? 0 : check.creater) }}
399
-                                </span>
400
-                            </div>
401
-                        </div>
402
-                        <div class="inline_block" style="margin-left:20px;">
403
-                            交叉核对者
404
-                            <div class="under_line" style="width: 70px;text-align: center">
405
-                                <span>
406
-                                {{ getAdminUser(check == null ? 0 : check.modifier) }}
407
-                                </span>
408
-                            </div>
409
-                        </div>
410
-                        <div class="inline_block" style="margin-left:20px;">
411
-                            下机护士
412
-                            <div class="under_line" style="width: 70px;text-align: center">
413
-                                <span>{{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}</span>
414
-                            </div>
415
-                        </div>
416
-                        
417
-                        
418
-                    </div>
419
-                    <div class="row" style="padding: 2px 0;line-height:30px; display:flex;">
420
-                      <div class="inline_block">
421
-                        透析器级别
422
-                        <div class="under_line" style="width: 300px;text-align:left;">
423
-                            {{ afterdialysis.cruor ? afterdialysis.cruor : '' }}
423
+                          透析器级别
424
+                          <div class="under_line" style="width: 300px;text-align:left;">
425
+                              {{ afterdialysis.cruor ? afterdialysis.cruor : '' }}
426
+                          </div>
424 427
                         </div>
425 428
                       </div>
426
-                    </div>
427
-                    <div class="row" style="min-height:40px;">
428
-                        <div style="width: 100%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;">
429
-                            透析小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}
430
-                        </div>
431
-                    </div>
432
-                </td>
433
-            </tr>
434
-           
435
-          </tbody>
436
-        </table>
437
-        <div class="row" style="padding: 2px 0;line-height:30px; display:flex;">
438
-            <div class="inline_block">
439
-                医生签字
440
-                <div class="under_line" style="width: 70px;text-align: center">
441
-                    <span> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
442
-                </div>
443
-            </div>
429
+                      <div class="row" style="min-height:40px;">
430
+                          <div style="width: 100%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;">
431
+                              透析小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}
432
+                          </div>
433
+                      </div>
434
+                  </td>
435
+              </tr>
436
+            
437
+            </tbody>
438
+          </table>
439
+          <div class="row" style="padding: 2px 0;line-height:30px; display:flex;">
440
+              <div class="inline_block">
441
+                  医生签字
442
+                  <div class="under_line" style="width: 70px;text-align: center">
443
+                      <span> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
444
+                  </div>
445
+              </div>
446
+          </div>
444 447
         </div>
445 448
       </div>
446 449
     </div>
@@ -582,6 +585,93 @@ export default {
582 585
     }
583 586
   },
584 587
   methods: {
588
+    checkData(){
589
+      if(this.predialysis.machine_type == ""){
590
+        this.$message.error('透析机未填')
591
+      }else if(this.prescription.mode_id == ""){
592
+        this.$message.error('治疗模式未填')
593
+      }else if(this.predialysis.pulse_frequency == ""){
594
+        this.$message.error('透前脉搏未填')
595
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
596
+        this.$message.error('透前血压未填完整')
597
+      }else if(this.predialysis.dry_weight == 0){
598
+        this.$message.error('干体重未填')
599
+      }else if(this.predialysis.weight_before == 0){
600
+        this.$message.error('透前体重未填')
601
+      }else if(this.prescription.target_ultrafiltration == 0){
602
+        this.$message.error('计划超滤量未填')
603
+      }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
604
+        this.$message.error('计划治疗时间未填')
605
+      }else if(this.prescription.blood_flow_volume == 0){
606
+        this.$message.error('血流量未填')
607
+      }else if(this.predialysis.blood_access_part_opera_name == ''){
608
+        this.$message.error('血管通路未填')
609
+      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
610
+        this.$message.error('透析(滤)器未填')
611
+      }else if(this.prescription.displace_liqui_part == 0 && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
612
+        this.$message.error('置换方式未填')
613
+      }else if(this.prescription.replacement_total == 0 && (this.prescription.mode_id == 2 || this.prescription.mode_id == 5 || this.prescription.mode_id == 12)){
614
+        this.$message.error('置换量未填')
615
+      }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
616
+        this.$message.error('实际治疗时间未填')
617
+      }else if(this.afterdialysis.actual_ultrafiltration == 0){
618
+        this.$message.error('实际脱水量未填')
619
+      }else if(this.afterdialysis.weight_after == 0){
620
+        this.$message.error('透后体重未填')
621
+      }else if(this.dialysisOrder.end_time == 0){
622
+        this.$message.error('离科时间未填')
623
+      }else if(this.dialysisOrder.washpipe_nurse == 0){
624
+        this.$message.error('预冲者未填')
625
+      }else if(this.dialysisOrder.puncture_nurse == 0){
626
+        this.$message.error('穿刺者/换药者未填')
627
+      }else if(this.dialysisOrder.start_nurse == 0){
628
+        this.$message.error('责任护士未填')
629
+      }else if(this.check.creater == 0){
630
+        this.$message.error('查对者未填')
631
+      }else if(this.check.modifier == 0){
632
+        this.$message.error('交叉核对者未填')
633
+      }else if(this.dialysisOrder.finish_nurse == 0){
634
+        this.$message.error('下机护士未填')
635
+      }else if(this.afterdialysis.cruor == ""){
636
+        this.$message.error('透析器级别未填')
637
+      }else if(this.summary.dialysis_summary == ""){
638
+        this.$message.error('透析小结未填')
639
+      }else if(this.prescription.prescription_doctor == 0){
640
+        this.$message.error('医生签字未填')
641
+      }else if(this.monitors.length > 0){
642
+        this.monitors.map(item => {
643
+          if(item.id > 0 && item.operate_time){
644
+            this.users.map(it => {
645
+              if(it.id == item.monitoring_nurse){
646
+                if(it.type != 3){
647
+                  this.$message.error('存在不是护士保存的监测')
648
+                }
649
+              }
650
+            })
651
+          }
652
+        })
653
+      }else if(this.tableAdvice.length > 0){
654
+        this.tableAdvice.map(item => {
655
+          if(item.id > 0 && item.created_time){
656
+            this.users.map(it => {
657
+              if(it.id == item.advice_doctor){
658
+                if(it.type != 2){
659
+                  this.$message.error('存在不是医生保存的医嘱')
660
+                }
661
+              }else if(it.id == item.execution_staff && item.execution_staff > 0){
662
+                if(it.type != 3){
663
+                  this.$message.error('存在不是护士执行的医嘱')
664
+                }
665
+              }else if(it.id == item.checker && item.checker > 0){
666
+                if(it.type != 3){
667
+                  this.$message.error('存在不是护士核对的医嘱')
668
+                }
669
+              }
670
+            })
671
+          }
672
+        })
673
+      }
674
+    },
585 675
     getDisplaceLiquiPart: function(val) {
586 676
       let displace_liqui_part_name = '/'
587 677
       const displace_liqui_part = this.displaceLiquiPartOptions
@@ -868,6 +958,7 @@ export default {
868 958
         }
869 959
 
870 960
         this.advices = response.data.data.advices
961
+        this.tableAdvice = response.data.data.advices;
871 962
         console.log("医嘱数据2222222222",this.advices)
872 963
         this.monitors = response.data.data.monitors
873 964
         this.summary = response.data.data.summary

+ 88 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue Parādīt failu

@@ -1,4 +1,6 @@
1 1
 <template>
2
+  <div>
3
+    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
2 4
     <div id="dialysis-print-box">
3 5
         <div class="dialysis-print-order">
4 6
             <div class="order-yy-name">{{ orgname }}</div>
@@ -404,6 +406,7 @@
404 406
             </div>
405 407
         </div>
406 408
     </div>
409
+  </div>
407 410
 </template>
408 411
 
409 412
 <script>
@@ -552,6 +555,91 @@ export default {
552 555
     };
553 556
   },
554 557
   methods: {
558
+    checkData(){
559
+      if(this.predialysis.weight_before == 0){
560
+        this.$message.error('透前体重未填')
561
+      }else if(this.predialysis.dry_weight == 0){
562
+        this.$message.error('干体重未填')
563
+      }else if(this.predialysis.temperature == ""){
564
+        this.$message.error('透前体温未填')
565
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
566
+        this.$message.error('透前血压未填完整')
567
+      }else if(this.predialysis.pulse_frequency == ""){
568
+        this.$message.error('心率未填')
569
+      }else if(this.prescription.mode_id == ""){
570
+        this.$message.error('治疗方式未填')
571
+      }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
572
+        this.$message.error('净化时间未填')
573
+      }else if(this.predialysis.single_time == ""){
574
+        this.$message.error('单超时长未填')
575
+      }else if(this.predialysis.single_water == ""){
576
+        this.$message.error('单超量未填')
577
+      }else if(this.prescription.target_ultrafiltration == 0){
578
+        this.$message.error('预超滤量未填')
579
+      }else if(this.prescription.replacement_flow == ""){
580
+        this.$message.error('置换流量未填')
581
+      }else if(this.prescription.anticoagulant == 0){
582
+        this.$message.error('抗凝方式未填')
583
+      }else if(this.predialysis.internal_fistula == ''){
584
+        this.$message.error('内瘘未填')
585
+      }else if(this.predialysis.catheter == ''){
586
+        this.$message.error('中心静脉导管未填')
587
+      }else if(this.prescription.dialysis_dialyszers == ""){
588
+        this.$message.error('透析器型号未填')
589
+      }else if(this.prescription.prescription_doctor == 0){
590
+        this.$message.error('医生未填')
591
+      }else if(this.dialysisOrder.start_nurse == 0){
592
+        this.$message.error('接管护士未填')
593
+      }else if(this.dialysisOrder.start_time == 0){
594
+        this.$message.error('接管时间未填')
595
+      }else if(this.afterdialysis.weight_after == 0){
596
+        this.$message.error('透后体重未填')
597
+      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
598
+        this.$message.error('透后血压未填完整')
599
+      }else if(this.afterdialysis.pulse_frequency == 0){
600
+        this.$message.error('透后心率未填')
601
+      }else if(this.afterdialysis.cruor == ""){
602
+        this.$message.error('凝血分级未填')
603
+      }else if(this.summary.dialysis_summary == ""){
604
+        this.$message.error('补充记录未填')
605
+      }else if(this.dialysisOrder.finish_nurse == 0){
606
+        this.$message.error('回血护士未填')
607
+      }else if(this.dialysisOrder.end_time == 0){
608
+        this.$message.error('回血时间未填')
609
+      }else if(this.monitors.length > 0){
610
+        this.monitors.map(item => {
611
+          if(item.id > 0 && item.operate_time){
612
+            this.users.map(it => {
613
+              if(it.id == item.monitoring_nurse){
614
+                if(it.type != 3){
615
+                  this.$message.error('存在不是护士保存的监测')
616
+                }
617
+              }
618
+            })
619
+          }
620
+        })
621
+      }else if(this.tableAdvice.length > 0){
622
+        this.tableAdvice.map(item => {
623
+          if(item.id > 0 && item.created_time){
624
+            this.users.map(it => {
625
+              if(it.id == item.advice_doctor){
626
+                if(it.type != 2){
627
+                  this.$message.error('存在不是医生保存的医嘱')
628
+                }
629
+              }else if(it.id == item.execution_staff && item.execution_staff > 0){
630
+                if(it.type != 3){
631
+                  this.$message.error('存在不是护士执行的医嘱')
632
+                }
633
+              }else if(it.id == item.checker && item.checker > 0){
634
+                if(it.type != 3){
635
+                  this.$message.error('存在不是护士核对的医嘱')
636
+                }
637
+              }
638
+            })
639
+          }
640
+        })
641
+      }
642
+    },
555 643
     getNewAge(UUserCard) {
556 644
       if (UUserCard != null && UUserCard != '') {
557 645
         // 获取年龄

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 714 - 606
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue


+ 472 - 416
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySeven.vue Parādīt failu

@@ -1,437 +1,440 @@
1 1
 <template>
2
-  <div id="dialysis-print-box">
3
-    <div class="dialysis-print-order">
4
-      <div class="order-yy-name">{{ orgname }}</div>
5
-      <div class="order-title">血液净化治疗单</div>
6
-      <table class="print-table" border="1" style="margin-top: 10px;">
7
-        <tr>
8
-          <td style="text-align:left;" colspan="2">
9
-            <span style="display:inline-block;width:15%;margin-left:15px;">
10
-                姓名:
11
-                <span style="display:inline-block;">
12
-                {{patientInfo.name}}
13
-                </span>
14
-            </span>
15
-            <span style="display:inline-block;width:15%;">
16
-                性别:
17
-                <span style="display:inline-block;">
18
-                {{patientInfo.gender}}
19
-                </span>
20
-            </span>
21
-            <span style="display:inline-block;width:15%;">
22
-                年龄:
23
-                <span style="display:inline-block;">
24
-                {{ getAge(patientInfo) }}
25
-                </span>
26
-            </span>
27
-            <span style="display:inline-block;width:25%;">
28
-                透析机号:
29
-                <span style="display:inline-block;">
30
-                    {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
31
-                </span>
32
-            </span>
33
-            <span style="display:inline-block;width:25%;">
34
-              日期:{{getDatge(queryParams.xtdate)}}
35
-            </span>
36
-            
37
-          </td>
38
-          <!-- <td style="text-align:center;" colspan="1">
39
-            机器号:
40
-            <span style="display:inline-block;margin-left:10px;">
41
-              {{
42
-              dialysisOrder &&
43
-              dialysisOrder.DeviceNumber &&
44
-              dialysisOrder.DeviceNumber.number > 0
45
-              ? dialysisOrder.DeviceNumber.number
46
-              : patientInfo.DialysisSchedule.device_number.number
47
-              }}
48
-            </span>
49
-          </td> -->
50
-        </tr>
51
-        <tr>
2
+  <div>
3
+    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
4
+    <div id="dialysis-print-box">
5
+      <div class="dialysis-print-order">
6
+        <div class="order-yy-name">{{ orgname }}</div>
7
+        <div class="order-title">血液净化治疗单</div>
8
+        <table class="print-table" border="1" style="margin-top: 10px;">
9
+          <tr>
52 10
             <td style="text-align:left;" colspan="2">
53
-                <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
54
-                    上机前病情:
55
-                    <label-box :isChecked="predialysis.symptom_before_dialysis.indexOf('无特殊') > -1" showValue="无特殊"></label-box>&nbsp;&nbsp;
56
-                    <span>
57
-                        其他:<span v-if="predialysis.symptom_before_dialysis.indexOf('无特殊') == -1">{{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "" }}</span>
58
-                    </span>
59
-                </span>
11
+              <span style="display:inline-block;width:15%;margin-left:15px;">
12
+                  姓名:
13
+                  <span style="display:inline-block;">
14
+                  {{patientInfo.name}}
15
+                  </span>
16
+              </span>
17
+              <span style="display:inline-block;width:15%;">
18
+                  性别:
19
+                  <span style="display:inline-block;">
20
+                  {{patientInfo.gender}}
21
+                  </span>
22
+              </span>
23
+              <span style="display:inline-block;width:15%;">
24
+                  年龄:
25
+                  <span style="display:inline-block;">
26
+                  {{ getAge(patientInfo) }}
27
+                  </span>
28
+              </span>
29
+              <span style="display:inline-block;width:25%;">
30
+                  透析机号:
31
+                  <span style="display:inline-block;">
32
+                      {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
33
+                  </span>
34
+              </span>
35
+              <span style="display:inline-block;width:25%;">
36
+                日期:{{getDatge(queryParams.xtdate)}}
37
+              </span>
38
+              
60 39
             </td>
61
-        </tr>
62
-        <tr>
63
-            <td style="text-align:left;">
64
-                <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
65
-                    治疗方式:
66
-                    <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;
67
-                    <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
68
-                    <label-box :isChecked="prescription.mode_id == 3 ? true : false" showValue="HD+HP"></label-box>&nbsp;
69
-                    (
70
-                        <label-box :isChecked="prescription.displace_liqui_part == 1 ? true : false" showValue="前稀释"></label-box>&nbsp;
71
-                        <label-box :isChecked="prescription.displace_liqui_part == 2 ? true : false" showValue="后稀释"></label-box>
72
-                         &nbsp; 置换液量:<span v-if="prescription.mode_id == 2" style="display:inline-block;width:50px;">{{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "" }}</span> ml
73
-                    )
74
-                    <span>
75
-                        其他:
76
-                        <span v-if="prescription.mode_id > 3">
77
-                            {{ prescription.mode }}
78
-                        </span>
79
-                    </span>
40
+            <!-- <td style="text-align:center;" colspan="1">
41
+              机器号:
42
+              <span style="display:inline-block;margin-left:10px;">
43
+                {{
44
+                dialysisOrder &&
45
+                dialysisOrder.DeviceNumber &&
46
+                dialysisOrder.DeviceNumber.number > 0
47
+                ? dialysisOrder.DeviceNumber.number
48
+                : patientInfo.DialysisSchedule.device_number.number
49
+                }}
50
+              </span>
51
+            </td> -->
52
+          </tr>
53
+          <tr>
54
+              <td style="text-align:left;" colspan="2">
55
+                  <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
56
+                      上机前病情:
57
+                      <label-box :isChecked="predialysis.symptom_before_dialysis.indexOf('无特殊') > -1" showValue="无特殊"></label-box>&nbsp;&nbsp;
58
+                      <span>
59
+                          其他:<span v-if="predialysis.symptom_before_dialysis.indexOf('无特殊') == -1">{{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "" }}</span>
60
+                      </span>
61
+                  </span>
62
+              </td>
63
+          </tr>
64
+          <tr>
65
+              <td style="text-align:left;">
66
+                  <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
67
+                      治疗方式:
68
+                      <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;
69
+                      <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
70
+                      <label-box :isChecked="prescription.mode_id == 3 ? true : false" showValue="HD+HP"></label-box>&nbsp;
71
+                      (
72
+                          <label-box :isChecked="prescription.displace_liqui_part == 1 ? true : false" showValue="前稀释"></label-box>&nbsp;
73
+                          <label-box :isChecked="prescription.displace_liqui_part == 2 ? true : false" showValue="后稀释"></label-box>
74
+                          &nbsp; 置换液量:<span v-if="prescription.mode_id == 2" style="display:inline-block;width:50px;">{{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "" }}</span> ml
75
+                      )
76
+                      <span>
77
+                          其他:
78
+                          <span v-if="prescription.mode_id > 3">
79
+                              {{ prescription.mode }}
80
+                          </span>
81
+                      </span>
82
+                  </span>
83
+              </td>
84
+              <td>
85
+                  <span>
86
+                      治疗时间:
87
+                      {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0" }}小时
88
+                      {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0" }}分钟
89
+                  </span>
90
+              </td>
91
+          </tr>
92
+          <tr>
93
+              <td style="text-align:left;" colspan="2">
94
+                  <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
95
+                      治疗抗凝:
96
+                      <label-box :isChecked="prescription.anticoagulant == 3 ? true : prescription.anticoagulant == 6 ? true : prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
97
+                      <span style="display:inline-block;width:50px;">
98
+                          <span v-if="prescription.anticoagulant == 3">{{ prescription.anticoagulant_zongliang }}</span>
99
+                          <span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_zongliang }}</span>
100
+                          <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
101
+                      </span>U
102
+                      <span style="margin:0 10px;">
103
+                          <label-box :isChecked="prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
104
+                          首剂
105
+                          <span style="display:inline-block;width:50px;">
106
+                              <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_shouji }}</span>
107
+                          </span>mg
108
+                          追加
109
+                          <span style="display:inline-block;width:50px;">
110
+                              <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_weichi }}</span>
111
+                          </span>mg/h
112
+                          总量
113
+                          <span style="display:inline-block;width:50px;">
114
+                              <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_zongliang }}</span>
115
+                          </span>mg;
116
+                      </span>
117
+                      <label-box :isChecked="prescription.anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
118
+                  </span>
119
+              </td>
120
+          </tr>
121
+          <tr>
122
+              <td style="text-align:left;" colspan="2">
123
+                  <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
124
+                      透前体重:
125
+                      <span style="display:inline-block;width:50px;text-align:center;">{{ predialysis.weight_before ? predialysis.weight_before : "" }}</span>
126
+                      kg
127
+                      <span style="margin-left:15px;">
128
+                          干体重:
129
+                          <span style="display:inline-block;width:50px;text-align:center;">{{ predialysis.dry_weight ? predialysis.dry_weight : "" }}</span>
130
+                          kg
131
+                      </span>
132
+                      <span style="margin-left:15px;">
133
+                          预超滤量:
134
+                          <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}</span>
135
+                          L
136
+                      </span>
137
+                      <span style="margin-left:15px;">
138
+                          透后体重:
139
+                          <span style="display:inline-block;width:50px;text-align:center;">{{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}</span>
140
+                          kg
141
+                      </span>
142
+                      <span style="margin-left:15px;">
143
+                          实际超滤量:
144
+                          <span style="display:inline-block;width:50px;text-align:center;">{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}</span>
145
+                          L
146
+                      </span>
147
+                  </span>
148
+              </td>
149
+          </tr>
150
+          <tr>
151
+              <td style="text-align:left;" colspan="2">
152
+                  <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
153
+                      透析液配方:钙
154
+                      <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.calcium ? prescription.calcium : "" }}</span>
155
+                      mmol/L
156
+                      <span style="margin-left:15px;">
157
+                          钾:
158
+                          <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.kalium ? prescription.kalium : "" }}</span>
159
+                          mmol/L
160
+                      </span>
161
+                      <span style="margin-left:15px;">
162
+                          钠:
163
+                          <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.sodium ? prescription.sodium : "" }}</span>
164
+                          mmol/L
165
+                      </span>
166
+                      <span style="margin-left:15px;">
167
+                          碳酸氢根:
168
+                          <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.bicarbonate ? prescription.bicarbonate : "" }}</span>
169
+                          mmol/L
170
+                      </span>
171
+                      <span style="margin-left:15px;">
172
+                          透析液流量:
173
+                          <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }}</span>
174
+                          ml/min
175
+                      </span>
176
+                  </span>
177
+              </td>
178
+          </tr>
179
+          <tr>
180
+              <td style="text-align:left;" colspan="2">
181
+                  <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
182
+                      
183
+                      <span style="display:inline-block;width:30%">
184
+                          透析机:{{ predialysis.machine_type ? predialysis.machine_type : '' }}
185
+                      </span>
186
+                      <span style="display:inline-block;width:30%">
187
+                          透析(滤)器:{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
188
+                      </span>
189
+                      <span style="display:inline-block;width:30%">
190
+                          医生签名:
191
+                          <span>
192
+                              <span v-if="setAdminUserES(tableAdvice[0].advice_doctor) == ''">{{ getAdminUser(tableAdvice[0].advice_doctor) }}</span>
193
+                              <img class="es-img" style="height:30px;" :src="setAdminUserES(tableAdvice[0].advice_doctor)" alt="" srcset="" v-else />
194
+                          </span>
195
+                      </span>
196
+                  </span>
197
+              </td>
198
+          </tr>
199
+          <tr>
200
+            <td colspan="8" style="text-align:left;">
201
+              <span style="display:inline-block;margin-left:15px;">
202
+                血管通路:
203
+                <label-box :isChecked="predialysis.blood_access_part_opera_name == '内瘘' ? true : false" showValue="内瘘"></label-box>&nbsp;
204
+                <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-颈') > -1 ? true : false" showValue="长期静脉导管"></label-box>&nbsp;
205
+                <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-颈') > -1 ? true : false" showValue="临时"></label-box>&nbsp;
206
+                (
207
+                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-颈') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-颈') > -1 ? true : false" showValue="颈"></label-box>&nbsp;
208
+                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-股') > -1 ? true : false" showValue="股"></label-box>&nbsp;
209
+                )
210
+                其他:
211
+                <span v-if="predialysis.blood_access_part_opera_name != '内瘘' && predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-股') == -1 && predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-颈') == -1 && predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-股') == -1 && predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-颈') == -1">
212
+                  {{ predialysis.blood_access_part_opera_name }}
80 213
                 </span>
214
+              </span>
81 215
             </td>
82
-            <td>
83
-                <span>
84
-                    治疗时间:
85
-                    {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0" }}小时
86
-                    {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0" }}分钟
87
-                </span>
216
+          </tr>
217
+        </table>
218
+
219
+        <table class="print-table" border="1" style="line-height:30px;">
220
+          <tr style="line-height:40px;">
221
+            <td style="min-width:60px">时间</td>
222
+            <td style="min-width:60px">
223
+              血流量
224
+              <br />ml/min
88 225
             </td>
89
-        </tr>
90
-        <tr>
91
-            <td style="text-align:left;" colspan="2">
92
-                <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
93
-                    治疗抗凝:
94
-                    <label-box :isChecked="prescription.anticoagulant == 3 ? true : prescription.anticoagulant == 6 ? true : prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
95
-                    <span style="display:inline-block;width:50px;">
96
-                        <span v-if="prescription.anticoagulant == 3">{{ prescription.anticoagulant_zongliang }}</span>
97
-                        <span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_zongliang }}</span>
98
-                        <span v-if="prescription.anticoagulant == 7">{{ prescription.anticoagulant_zongliang }}</span>
99
-                    </span>U
100
-                    <span style="margin:0 10px;">
101
-                        <label-box :isChecked="prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
102
-                        首剂
103
-                        <span style="display:inline-block;width:50px;">
104
-                            <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_shouji }}</span>
105
-                        </span>mg
106
-                        追加
107
-                        <span style="display:inline-block;width:50px;">
108
-                            <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_weichi }}</span>
109
-                        </span>mg/h
110
-                        总量
111
-                        <span style="display:inline-block;width:50px;">
112
-                            <span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_zongliang }}</span>
113
-                        </span>mg;
114
-                    </span>
115
-                    <label-box :isChecked="prescription.anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
116
-                </span>
226
+            <td style="min-width:60px">
227
+              静脉压
228
+              <br />(mmHg)
117 229
             </td>
118
-        </tr>
119
-        <tr>
120
-            <td style="text-align:left;" colspan="2">
121
-                <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
122
-                    透前体重:
123
-                    <span style="display:inline-block;width:50px;text-align:center;">{{ predialysis.weight_before ? predialysis.weight_before : "" }}</span>
124
-                    kg
125
-                    <span style="margin-left:15px;">
126
-                        干体重:
127
-                        <span style="display:inline-block;width:50px;text-align:center;">{{ predialysis.dry_weight ? predialysis.dry_weight : "" }}</span>
128
-                        kg
129
-                    </span>
130
-                    <span style="margin-left:15px;">
131
-                        预超滤量:
132
-                        <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}</span>
133
-                        L
134
-                    </span>
135
-                    <span style="margin-left:15px;">
136
-                        透后体重:
137
-                        <span style="display:inline-block;width:50px;text-align:center;">{{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}</span>
138
-                        kg
139
-                    </span>
140
-                    <span style="margin-left:15px;">
141
-                        实际超滤量:
142
-                        <span style="display:inline-block;width:50px;text-align:center;">{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}</span>
143
-                        L
144
-                    </span>
145
-                </span>
230
+            <td style="min-width:60px">
231
+              跨膜压
232
+              <br />(mmHg)
146 233
             </td>
147
-        </tr>
148
-        <tr>
149
-            <td style="text-align:left;" colspan="2">
150
-                <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
151
-                    透析液配方:钙
152
-                    <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.calcium ? prescription.calcium : "" }}</span>
153
-                    mmol/L
154
-                    <span style="margin-left:15px;">
155
-                        钾:
156
-                        <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.kalium ? prescription.kalium : "" }}</span>
157
-                        mmol/L
158
-                    </span>
159
-                    <span style="margin-left:15px;">
160
-                        钠:
161
-                        <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.sodium ? prescription.sodium : "" }}</span>
162
-                        mmol/L
163
-                    </span>
164
-                    <span style="margin-left:15px;">
165
-                        碳酸氢根:
166
-                        <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.bicarbonate ? prescription.bicarbonate : "" }}</span>
167
-                        mmol/L
168
-                    </span>
169
-                    <span style="margin-left:15px;">
170
-                        透析液流量:
171
-                        <span style="display:inline-block;width:50px;text-align:center;">{{ prescription.dialysate_flow ? prescription.dialysate_flow : "" }}</span>
172
-                        ml/min
173
-                    </span>
174
-                </span>
234
+            <td style="min-width:60px">
235
+              钠
236
+              <br />mmol/L
175 237
             </td>
176
-        </tr>
177
-        <tr>
178
-            <td style="text-align:left;" colspan="2">
179
-                <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
180
-                    
181
-                    <span style="display:inline-block;width:30%">
182
-                        透析机:{{ predialysis.machine_type ? predialysis.machine_type : '' }}
183
-                    </span>
184
-                    <span style="display:inline-block;width:30%">
185
-                        透析(滤)器:{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
186
-                    </span>
187
-                    <span style="display:inline-block;width:30%">
188
-                        医生签名:
189
-                        <span>
190
-                            <span v-if="setAdminUserES(tableAdvice[0].advice_doctor) == ''">{{ getAdminUser(tableAdvice[0].advice_doctor) }}</span>
191
-                            <img class="es-img" style="height:30px;" :src="setAdminUserES(tableAdvice[0].advice_doctor)" alt="" srcset="" v-else />
192
-                        </span>
193
-                    </span>
194
-                </span>
238
+            <td style="min-width:60px">
239
+              超滤量
240
+              <br />L
195 241
             </td>
196
-        </tr>
197
-        <tr>
198
-          <td colspan="8" style="text-align:left;">
199
-            <span style="display:inline-block;margin-left:15px;">
200
-              血管通路:
201
-              <label-box :isChecked="predialysis.blood_access_part_opera_name == '内瘘' ? true : false" showValue="内瘘"></label-box>&nbsp;
202
-              <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-颈') > -1 ? true : false" showValue="长期静脉导管"></label-box>&nbsp;
203
-              <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-颈') > -1 ? true : false" showValue="临时"></label-box>&nbsp;
204
-              (
205
-                  <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-颈') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-颈') > -1 ? true : false" showValue="颈"></label-box>&nbsp;
206
-                  <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-股') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-股') > -1 ? true : false" showValue="股"></label-box>&nbsp;
207
-              )
208
-              其他:
209
-              <span v-if="predialysis.blood_access_part_opera_name != '内瘘' && predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-股') == -1 && predialysis.blood_access_part_opera_name.indexOf('长期静脉导管-颈') == -1 && predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-股') == -1 && predialysis.blood_access_part_opera_name.indexOf('临时静脉导管-颈') == -1">
210
-                {{ predialysis.blood_access_part_opera_name }}
211
-              </span>
212
-            </span>
213
-          </td>
214
-        </tr>
215
-      </table>
216
-
217
-      <table class="print-table" border="1" style="line-height:30px;">
218
-        <tr style="line-height:40px;">
219
-          <td style="min-width:60px">时间</td>
220
-          <td style="min-width:60px">
221
-            血流量
222
-            <br />ml/min
223
-          </td>
224
-          <td style="min-width:60px">
225
-            静脉压
226
-            <br />(mmHg)
227
-          </td>
228
-          <td style="min-width:60px">
229
-            跨膜压
230
-            <br />(mmHg)
231
-          </td>
232
-          <td style="min-width:60px">
233
-            钠
234
-            <br />mmol/L
235
-          </td>
236
-          <td style="min-width:60px">
237
-            超滤量
238
-            <br />L
239
-          </td>
240
-          <td style="min-width:60px">
241
-            心率
242
-            <br />次/分
243
-          </td>
244
-          <td style="min-width:60px">
245
-            呼吸
246
-            <br />次/分
247
-          </td>
248
-          <td style="min-width:60px">
249
-            血压
250
-            <br />(mmHg)
251
-          </td>
252
-          <td style="min-width:60px">
253
-            Spo
254
-            <sub>2</sub>
255
-            <br />%
256
-          </td>
257
-          
258
-          
259
-          <td style="min-width:60px">病情变化及处理</td>
260
-          <td style="min-width:110px">护士签名核对者</td>
261
-        </tr>
262
-        <tr v-for="(monitor, monindex) in monitors" :key="monindex" style="height:40px;">
263
-          <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
264
-          <td>{{ monitor.blood_flow_volume }}</td>
265
-          <td>{{ monitor.venous_pressure }}</td>
266
-          <td>{{ monitor.transmembrane_pressure }}</td>
267
-          <td>{{ monitor.sodium_concentration }}</td>
268
-          <td>{{ monitor.ultrafiltration_volume }}</td>
269
-          <td>{{ monitor.pulse_frequency }}</td>
270
-          <td>{{ monitor.breathing_rate }}</td>
271
-          <td>
272
-            {{
273
-            monitor.systolic_blood_pressure
274
-            ? monitor.systolic_blood_pressure + "/"
275
-            : ""
276
-            }}{{
277
-            monitor.diastolic_blood_pressure
278
-            ? monitor.diastolic_blood_pressure
279
-            : ""
280
-            }}
281
-          </td>
282
-          <td>{{ monitor.blood_oxygen_saturation }}</td>
283
-          <td>
284
-            <span style="line-height:18px;display:block;">
285
-              {{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
286
-              monitor.result
287
-              }}
288
-            </span>
289
-          </td>
290
-          <td>
291
-            <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
292
-              {{
293
-              getAdminUser(monitor.monitoring_nurse)
294
-              }}
295
-            </span>
296
-            <span
297
-              v-else
298
-              style="display:flex;align-items:center;justify-content:space-around;height:36px;"
299
-            >
300
-              <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
301
-            </span>
302
-          </td>
303
-        </tr>
304
-      </table>
305
-      <table class="print-table" border="1">
306
-        <tr style="height:40px;">
307
-          <td>时间</td>
308
-          <td>医嘱内容</td>
309
-          <td>医生签名</td>
310
-          <td>执行时间</td>
311
-          <td>执行人签名</td>
312
-          <td>核对者签名</td>
313
-        </tr>
314
-        <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index" style="height:40px;">
315
-          <td
316
-            style="height:30px;line-height:30px"
317
-          >{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
318
-          
319
-          <td class="parent" style="text-align:left;padding-left: 20px !important;">
320
-            <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp;</span>
321
-            <span>{{ advice.advice_name }}</span>
322
-            <span
323
-              v-if="advice && advice.advice_desc"
324
-            >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
325
-            <span v-if="advice.prescribing_number">
326
-              &nbsp;&nbsp; {{ advice.prescribing_number
327
-              }}{{ advice.prescribing_number_unit }}
328
-            </span>
329
-            <span
330
-              v-if="advice.single_dose != 0"
331
-            >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
332
-            <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
333
-            <span v-if="advice.parent_id == 0">
334
-              {{
335
-              advice.execution_frequency
336
-              }}
337
-            </span>
338
-            <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
339
-          </td>
340
-          <td>
341
-            <span v-if="setAdminUserES(advice.advice_doctor) == ''">
342
-              {{
343
-              getAdminUser(advice.advice_doctor)
344
-              }}
345
-            </span>
346
-            <span
347
-              v-else
348
-              style="display:flex;align-items:center;justify-content:space-around;height:36px;"
349
-            >
350
-              <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
351
-            </span>
352
-          </td>
353
-          <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
354
-          <td>
355
-            <span v-if="setAdminUserES(advice.execution_staff) == ''">
356
-              {{
357
-              getAdminUser(advice.execution_staff)
358
-              }}
359
-            </span>
360
-            <span
361
-              v-else
362
-              style="display:flex;align-items:center;justify-content:space-around;height:36px;"
363
-            >
364
-              <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
365
-            </span>
366
-          </td>
367
-          <td>
368
-            <span v-if="setAdminUserES(advice.checker) == ''">
242
+            <td style="min-width:60px">
243
+              心率
244
+              <br />次/分
245
+            </td>
246
+            <td style="min-width:60px">
247
+              呼吸
248
+              <br />次/分
249
+            </td>
250
+            <td style="min-width:60px">
251
+              血压
252
+              <br />(mmHg)
253
+            </td>
254
+            <td style="min-width:60px">
255
+              Spo
256
+              <sub>2</sub>
257
+              <br />%
258
+            </td>
259
+            
260
+            
261
+            <td style="min-width:60px">病情变化及处理</td>
262
+            <td style="min-width:110px">护士签名核对者</td>
263
+          </tr>
264
+          <tr v-for="(monitor, monindex) in monitors" :key="monindex" style="height:40px;">
265
+            <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
266
+            <td>{{ monitor.blood_flow_volume }}</td>
267
+            <td>{{ monitor.venous_pressure }}</td>
268
+            <td>{{ monitor.transmembrane_pressure }}</td>
269
+            <td>{{ monitor.sodium_concentration }}</td>
270
+            <td>{{ monitor.ultrafiltration_volume }}</td>
271
+            <td>{{ monitor.pulse_frequency }}</td>
272
+            <td>{{ monitor.breathing_rate }}</td>
273
+            <td>
369 274
               {{
370
-              getAdminUser(advice.checker)
275
+              monitor.systolic_blood_pressure
276
+              ? monitor.systolic_blood_pressure + "/"
277
+              : ""
278
+              }}{{
279
+              monitor.diastolic_blood_pressure
280
+              ? monitor.diastolic_blood_pressure
281
+              : ""
371 282
               }}
372
-            </span>
373
-            <span
374
-              v-else
375
-              style="display:flex;align-items:center;justify-content:space-around;height:36px;"
376
-            >
377
-              <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
378
-            </span>
379
-          </td>
380
-        </tr>
381
-        <tr>
382
-          <td style="text-align:left;" colspan="6">
383
-            <span style="display:block;margin-left:15px;">
384
-              内瘘:
385
-              <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('正常') > -1 ? true : false" showValue="正常"></label-box>
386
-              <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
387
-              <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
388
-              <span>
389
-                透析器凝血:
390
-                <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false) :false" showValue="0"></label-box>
391
-                <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false) :false" showValue="+"></label-box>
392
-                <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) :false" showValue="+ +"></label-box>
393
-                <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false) :false" showValue="+ + +"></label-box>
283
+            </td>
284
+            <td>{{ monitor.blood_oxygen_saturation }}</td>
285
+            <td>
286
+              <span style="line-height:18px;display:block;">
287
+                {{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
288
+                monitor.result
289
+                }}
290
+              </span>
291
+            </td>
292
+            <td>
293
+              <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
294
+                {{
295
+                getAdminUser(monitor.monitoring_nurse)
296
+                }}
297
+              </span>
298
+              <span
299
+                v-else
300
+                style="display:flex;align-items:center;justify-content:space-around;height:36px;"
301
+              >
302
+                <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
303
+              </span>
304
+            </td>
305
+          </tr>
306
+        </table>
307
+        <table class="print-table" border="1">
308
+          <tr style="height:40px;">
309
+            <td>时间</td>
310
+            <td>医嘱内容</td>
311
+            <td>医生签名</td>
312
+            <td>执行时间</td>
313
+            <td>执行人签名</td>
314
+            <td>核对者签名</td>
315
+          </tr>
316
+          <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index" style="height:40px;">
317
+            <td
318
+              style="height:30px;line-height:30px"
319
+            >{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
320
+            
321
+            <td class="parent" style="text-align:left;padding-left: 20px !important;">
322
+              <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp;</span>
323
+              <span>{{ advice.advice_name }}</span>
324
+              <span
325
+                v-if="advice && advice.advice_desc"
326
+              >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
327
+              <span v-if="advice.prescribing_number">
328
+                &nbsp;&nbsp; {{ advice.prescribing_number
329
+                }}{{ advice.prescribing_number_unit }}
330
+              </span>
331
+              <span
332
+                v-if="advice.single_dose != 0"
333
+              >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
334
+              <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
335
+              <span v-if="advice.parent_id == 0">
336
+                {{
337
+                advice.execution_frequency
338
+                }}
339
+              </span>
340
+              <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
341
+            </td>
342
+            <td>
343
+              <span v-if="setAdminUserES(advice.advice_doctor) == ''">
344
+                {{
345
+                getAdminUser(advice.advice_doctor)
346
+                }}
347
+              </span>
348
+              <span
349
+                v-else
350
+                style="display:flex;align-items:center;justify-content:space-around;height:36px;"
351
+              >
352
+                <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
353
+              </span>
354
+            </td>
355
+            <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
356
+            <td>
357
+              <span v-if="setAdminUserES(advice.execution_staff) == ''">
358
+                {{
359
+                getAdminUser(advice.execution_staff)
360
+                }}
394 361
               </span>
395
-              <span>
396
-                动脉凝血:
397
-                <label-box :isChecked="afterdialysis.arterial_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
398
-                <label-box :isChecked="afterdialysis.arterial_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
399
-                <label-box :isChecked="afterdialysis.arterial_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
400
-                <label-box :isChecked="afterdialysis.arterial_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp;
362
+              <span
363
+                v-else
364
+                style="display:flex;align-items:center;justify-content:space-around;height:36px;"
365
+              >
366
+                <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
401 367
               </span>
402
-              <span>
403
-                静脉凝血:
404
-                <label-box :isChecked="afterdialysis.intravenous_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
405
-                <label-box :isChecked="afterdialysis.intravenous_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
406
-                <label-box :isChecked="afterdialysis.intravenous_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
407
-                <label-box :isChecked="afterdialysis.intravenous_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp;
368
+            </td>
369
+            <td>
370
+              <span v-if="setAdminUserES(advice.checker) == ''">
371
+                {{
372
+                getAdminUser(advice.checker)
373
+                }}
408 374
               </span>
409
-            </span>
410
-          </td>
411
-        </tr>
412
-        <tr>
413
-          <td style="text-align:left;" colspan="6">
414
-            <span style="display:block;margin-left:15px;height:200px;">治疗小结:&nbsp;{{ dialysis_summary ? dialysis_summary : "" }}</span>
415
-            <div style="text-align:right;">
416
-                医生签名:
417
-                <span style="display:inline-block;width:100px;text-align:left;">
418
-                    <span v-if="setAdminUserES(tableAdvice[0].advice_doctor) == ''">{{ getAdminUser(tableAdvice[0].advice_doctor) }}</span>
419
-                    <img class="es-img" style="height:30px;" :src="setAdminUserES(tableAdvice[0].advice_doctor)" alt="" srcset="" v-else />
375
+              <span
376
+                v-else
377
+                style="display:flex;align-items:center;justify-content:space-around;height:36px;"
378
+              >
379
+                <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
380
+              </span>
381
+            </td>
382
+          </tr>
383
+          <tr>
384
+            <td style="text-align:left;" colspan="6">
385
+              <span style="display:block;margin-left:15px;">
386
+                内瘘:
387
+                <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('正常') > -1 ? true : false" showValue="正常"></label-box>
388
+                <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
389
+                <label-box :isChecked="afterdialysis.internal_fistula&&afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
390
+                <span>
391
+                  透析器凝血:
392
+                  <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false) :false" showValue="0"></label-box>
393
+                  <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false) :false" showValue="+"></label-box>
394
+                  <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) :false" showValue="+ +"></label-box>
395
+                  <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false) :false" showValue="+ + +"></label-box>
420 396
                 </span>
421
-                护士签名:
422
-                <span style="display:inline-block;width:100px;text-align:left;">
423
-                    <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
424
-                    <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
397
+                <span>
398
+                  动脉凝血:
399
+                  <label-box :isChecked="afterdialysis.arterial_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
400
+                  <label-box :isChecked="afterdialysis.arterial_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
401
+                  <label-box :isChecked="afterdialysis.arterial_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
402
+                  <label-box :isChecked="afterdialysis.arterial_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp;
425 403
                 </span>
426
-            </div>
427
-          </td>
428
-        </tr>
429
-      </table>
430
-      
404
+                <span>
405
+                  静脉凝血:
406
+                  <label-box :isChecked="afterdialysis.intravenous_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
407
+                  <label-box :isChecked="afterdialysis.intravenous_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
408
+                  <label-box :isChecked="afterdialysis.intravenous_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
409
+                  <label-box :isChecked="afterdialysis.intravenous_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp;
410
+                </span>
411
+              </span>
412
+            </td>
413
+          </tr>
414
+          <tr>
415
+            <td style="text-align:left;" colspan="6">
416
+              <span style="display:block;margin-left:15px;height:200px;">治疗小结:&nbsp;{{ dialysis_summary ? dialysis_summary : "" }}</span>
417
+              <div style="text-align:right;">
418
+                  医生签名:
419
+                  <span style="display:inline-block;width:100px;text-align:left;">
420
+                      <span v-if="setAdminUserES(tableAdvice[0].advice_doctor) == ''">{{ getAdminUser(tableAdvice[0].advice_doctor) }}</span>
421
+                      <img class="es-img" style="height:30px;" :src="setAdminUserES(tableAdvice[0].advice_doctor)" alt="" srcset="" v-else />
422
+                  </span>
423
+                  护士签名:
424
+                  <span style="display:inline-block;width:100px;text-align:left;">
425
+                      <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
426
+                      <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
427
+                  </span>
428
+              </div>
429
+            </td>
430
+          </tr>
431
+        </table>
432
+        
431 433
 
432
-      <!-- <div style="margin-top:20px">
433
-        <span style="margin-left:280px;">肝素浓度:每毫升肝素生理盐水含肝素钠2.5毫克</span>
434
-      </div>-->
434
+        <!-- <div style="margin-top:20px">
435
+          <span style="margin-left:280px;">肝素浓度:每毫升肝素生理盐水含肝素钠2.5毫克</span>
436
+        </div>-->
437
+      </div>
435 438
     </div>
436 439
   </div>
437 440
 </template>
@@ -621,6 +624,59 @@ export default {
621 624
     }
622 625
   },
623 626
   methods: {
627
+    checkData(){
628
+      if(this.predialysis.symptom_before_dialysis == ""){
629
+        this.$message.error('上机前病情未填')
630
+      }else if(this.prescription.mode_id == ""){
631
+        this.$message.error('治疗方式未填')
632
+      }else if(this.prescription.replacement_total == 0 && this.prescription.mode_id == 2){
633
+        this.$message.error('置换量未填')
634
+      }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
635
+        this.$message.error('治疗时间未填')
636
+      }else if(this.prescription.anticoagulant == 0){
637
+        this.$message.error('治疗抗凝未填')
638
+      }else if(this.predialysis.weight_before == 0){
639
+        this.$message.error('透前体重未填')
640
+      }else if(this.predialysis.dry_weight == 0){
641
+        this.$message.error('干体重未填')
642
+      }else if(this.prescription.target_ultrafiltration == 0){
643
+        this.$message.error('预超滤量未填')
644
+      }else if(this.afterdialysis.weight_after == 0){
645
+        this.$message.error('透后体重未填')
646
+      }else if(this.afterdialysis.actual_ultrafiltration == 0){
647
+        this.$message.error('实际超滤量未填')
648
+      }else if(this.prescription.calcium == 0){
649
+        this.$message.error('钙未填')
650
+      }else if(this.prescription.kalium == 0){
651
+        this.$message.error('钾未填')
652
+      }else if(this.prescription.sodium == 0){
653
+        this.$message.error('钠未填')
654
+      }else if(this.prescription.bicarbonate == 0){
655
+        this.$message.error('碳酸氢根未填')
656
+      }else if(this.prescription.dialysate_flow == 0){
657
+        this.$message.error('透析液流量未填')
658
+      }else if(this.predialysis.machine_type == ""){
659
+        this.$message.error('透析机未填')
660
+      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
661
+        this.$message.error('透析(滤)器未填')
662
+      }else if(this.tableAdvice[0].advice_doctor == 0){
663
+        this.$message.error('医生签名未填')
664
+      }else if(this.predialysis.blood_access_part_opera_name == ''){
665
+        this.$message.error('血管通路未填')
666
+      }else if(this.afterdialysis.internal_fistula == ''){
667
+        this.$message.error('透后内瘘未填')
668
+      }else if(this.afterdialysis.cruor == ""){
669
+        this.$message.error('透析器凝血未填')
670
+      }else if(this.afterdialysis.arterial_tube == 0){
671
+        this.$message.error('动脉凝血未填')
672
+      }else if(this.afterdialysis.intravenous_tube == 0){
673
+        this.$message.error('静脉凝血未填')
674
+      }else if(this.dialysis_summary == ""){
675
+        this.$message.error('治疗小结未填')
676
+      }else if(this.dialysisOrder.start_nurse == 0){
677
+        this.$message.error('上机护士未填')
678
+      }
679
+    },
624 680
     getCruor(cruor){
625 681
       if(cruor.indexOf(',') == -1){
626 682
         let str = cruor

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1000 - 880
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1062 - 934
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1468 - 1373
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1002 - 879
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1568 - 1457
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 629 - 537
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1238 - 1098
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1134 - 1044
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1187 - 1041
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1129 - 1033
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1189 - 1045
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue


+ 7 - 7
src/xt_pages/hospitalStation/components/deskPrescription.vue Parādīt failu

@@ -1607,12 +1607,13 @@
1607 1607
               }
1608 1608
             }
1609 1609
 
1610
-            total = Math.floor(total * 100) / 100
1610
+            total =total.toFixed(2)
1611 1611
           }
1612 1612
         }
1613 1613
         return total
1614 1614
 
1615
-      }, getTotalTwo() {
1615
+      },
1616
+       getTotalTwo() {
1616 1617
         var total = 0
1617 1618
         for (let i = 0; i < this.month_prescriptions.length; i++) {
1618 1619
 
@@ -1634,10 +1635,9 @@
1634 1635
                 total = total + this.month_prescriptions[i].addition[b].price * this.month_prescriptions[i].addition[b].count
1635 1636
               }
1636 1637
             }
1637
-            total = Math.floor(total * 100) / 100
1638 1638
           }
1639 1639
         }
1640
-        return total
1640
+        return total.toFixed(2)
1641 1641
 
1642 1642
       },
1643 1643
       getCurTotal() {
@@ -1652,7 +1652,7 @@
1652 1652
           for (let a = 0; a < this.curPrescriptions.project.length; a++) {
1653 1653
             total = total + this.curPrescriptions.project[a].price * this.curPrescriptions.project[a].total
1654 1654
           }
1655
-          return Math.floor(total * 100) / 100
1655
+          return total.toFixed(2)
1656 1656
         }
1657 1657
 
1658 1658
       },
@@ -1677,7 +1677,7 @@
1677 1677
           }
1678 1678
         }
1679 1679
 
1680
-        return Math.floor(total * 100) / 100
1680
+        return total.toFixed(2)
1681 1681
       }, getMonthTotal() {
1682 1682
         var total = 0
1683 1683
         for (let i = 0; i < this.month_prescriptions.length; i++) {
@@ -1699,7 +1699,7 @@
1699 1699
           }
1700 1700
         }
1701 1701
 
1702
-        return Math.floor(total * 100) / 100
1702
+        return total.toFixed(2)
1703 1703
       },
1704 1704
       createFilter(queryString) {
1705 1705
         return (restaurant) => {

+ 2 - 3
src/xt_pages/hospitalStation/doctorDesk.vue Parādīt failu

@@ -127,7 +127,6 @@
127 127
                 <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
128 128
                              :hisPatientInfo="hisPatientInfo" v-if="titleType == '电子病历'" :detalid="detalid"
129 129
                              ref="child"></desk-record>
130
-                c
131 130
                 <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
132 131
                 <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
133 132
                 <!--<dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid'></dialysis-index>-->
@@ -4180,7 +4179,7 @@
4180 4179
 
4181 4180
       // this.diagnoses = this.getDictionaryDataConfig('system', 'diagnose')
4182 4181
       // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4183
-      let tableHeight = document.body.clientHeight - 263
4182
+      let tableHeight = document.body.clientHeight - 323
4184 4183
       this.tableHeight = tableHeight
4185 4184
 
4186 4185
     },
@@ -4198,7 +4197,7 @@
4198 4197
       fullHeight(val) {
4199 4198
         if (!this.timer) {
4200 4199
           this.fullHeight = val
4201
-          let tableHeight = val - 263
4200
+          let tableHeight = val - 323
4202 4201
           this.tableHeight = tableHeight
4203 4202
           this.timer = true
4204 4203
           let that = this

+ 110 - 34
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Parādīt failu

@@ -61,7 +61,7 @@
61 61
                             <template slot-scope="scope">{{scope.row.name}}</template>
62 62
                         </el-table-column>
63 63
                         <el-table-column align="center" prop="name" label="就诊号" width="110">
64
-                            <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}
64
+                            <template slot-scope="scope">{{ scope.row ?scope.row.number:''}}
65 65
                             </template>
66 66
                         </el-table-column>
67 67
                     </el-table>
@@ -92,7 +92,16 @@
92 92
                     <div>
93 93
 
94 94
                         <el-button v-loading="loadingtwo"
95
-                                   v-if="(this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"
95
+                                   v-if="(this.activeName == 'first' && this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"
96
+                                   size="small"
97
+                                   @click="open(30)"
98
+                                   type="primary">上传费用明细
99
+                        </el-button>
100
+
101
+
102
+
103
+                        <el-button v-loading="loadingtwo"
104
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"
96 105
                                    size="small"
97 106
                                    @click="open(8)"
98 107
                                    type="primary">上传费用明细
@@ -100,14 +109,14 @@
100 109
 
101 110
                         <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
102 111
                         <el-button v-loading="loadingone" size="small"
103
-                                   v-if="(this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.order_status == 1)"
112
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.order_status == 1)"
104 113
 
105 114
                                    @click="open(2)"
106 115
                                    type="primary">出院
107 116
                         </el-button>
108 117
 
109 118
                         <el-button v-loading="loadingone" size="small"
110
-                                   v-if="(this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
119
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
111 120
 
112 121
                                    @click="open(2)"
113 122
                                    type="primary">出院
@@ -115,42 +124,49 @@
115 124
 
116 125
 
117 126
                         <el-button v-loading="loadingtwo"
118
-                                   v-if="(this.hisPatientInfo.balance_accounts_type != 2 &&  this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1)||   (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
127
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 &&  this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1)||   (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
119 128
                                    size="small"
120 129
                                    @click="open(3)"
121 130
                                    type="primary">收费
122 131
                         </el-button>
123 132
 
124 133
                         <el-button v-loading="loadingtwo"
125
-                                   v-if="(this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
134
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
126 135
                                    size="small"
127 136
                                    @click="open(3)"
128 137
                                    type="primary">收费
129 138
                         </el-button>
130 139
 
131 140
                         <el-button size="small" @click="open(4)" type="primary"
132
-                                   v-if="this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
141
+                                   v-if="this.activeName != 'first' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
133 142
                             退费
134 143
                         </el-button>
135
-                        <el-button v-if="this.order.order_status == 2" size="small" @click="open(5)" type="primary"
144
+                        <el-button v-if="this.activeName != 'first' &&this.order.order_status == 2" size="small" @click="open(5)" type="primary"
136 145
                         >结算单
137 146
                         </el-button>
138 147
 
139 148
                         <el-button
140
-                                v-if="(this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
149
+                                v-if="(this.activeName == 'first' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
150
+
151
+                                size="small" @click="open(9)" type="primary"
152
+                        >撤销明细
153
+                        </el-button>
154
+
155
+                        <el-button
156
+                                v-if="(this.activeName != 'first' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
141 157
 
142 158
                                 size="small" @click="open(9)" type="primary"
143 159
                         >撤销明细
144 160
                         </el-button>
145 161
 
146 162
                         <el-button
147
-                                v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
163
+                                v-if="(this.activeName != 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
148 164
                                 size="small" @click="open(6)" type="primary"
149 165
                         >撤销出院
150 166
                         </el-button>
151 167
 
152 168
                         <el-button
153
-                                v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
169
+                                v-if="(this.activeName != 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
154 170
                                 size="small" @click="open(7)" type="primary"
155 171
                         >撤销入院
156 172
                         </el-button>
@@ -869,11 +885,11 @@
869 885
             let three_count = 0
870 886
             for (let i = 0; i < response.data.data.list.length; i++) {
871 887
               this.all_table_data.push(response.data.data.list[i])
872
-              if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
888
+              if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
873 889
                 one_count = one_count + 1
874 890
               }
875 891
 
876
-              if (response.data.data.list[i].his_patient.order.order_status == 2) {
892
+              if (response.data.data.list[i].order.order_status == 2) {
877 893
                 two_count = two_count + 1
878 894
               }
879 895
 
@@ -895,16 +911,16 @@
895 911
                 this.patientTableData = []
896 912
 
897 913
                 for (let i = 0; i < this.all_table_data.length; i++) {
898
-                  if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
914
+                  if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
899 915
                     this.patientTableData.push(this.all_table_data[i])
900 916
                   }
901 917
 
902 918
                 }
903 919
                 if (this.patientTableData.length > 0) {
904 920
                   for (let i = 0; i < this.patientTableData.length; i++) {
905
-                    if (this.patientTableData[i].id == this.patientInfo.id) {
921
+                    if (this.patientTableData[i].patient_id == this.patientInfo.id) {
906 922
                       this.$refs.tab.setCurrentRow(this.patientTableData[i])
907
-                      this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id)
923
+                      this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
908 924
                     }
909 925
                   }
910 926
                 }
@@ -986,11 +1002,11 @@
986 1002
 
987 1003
             for (let i = 0; i < response.data.data.list_two.length; i++) {
988 1004
               this.hisPatientDatas.push(response.data.data.list_two[i])
989
-              if (response.data.data.list_two[i].his_patient.order.order_status == 0 || response.data.data.list_two[i].his_patient.order.order_status == 1 || response.data.data.list_two[i].his_patient.order.order_status == 3) {
1005
+              if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1 || response.data.data.list_two[i].order.order_status == 3) {
990 1006
                 one_count = one_count + 1
991 1007
               }
992 1008
 
993
-              if (response.data.data.list_two[i].his_patient.order.order_status == 2) {
1009
+              if (response.data.data.list_two[i].order.order_status == 2) {
994 1010
                 two_count = two_count + 1
995 1011
               }
996 1012
 
@@ -1010,16 +1026,16 @@
1010 1026
                 this.patientTableData = []
1011 1027
 
1012 1028
                 for (let i = 0; i < this.hisPatientDatas.length; i++) {
1013
-                  if (this.hisPatientDatas[i].his_patient.order.order_status == 0 || this.hisPatientDatas[i].his_patient.order.order_status == 1 || this.hisPatientDatas[i].his_patient.order.order_status == 3) {
1029
+                  if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1 || this.hisPatientDatas[i].order.order_status == 3) {
1014 1030
                     this.patientTableData.push(this.hisPatientDatas[i])
1015 1031
                   }
1016 1032
 
1017 1033
                 }
1018 1034
                 if (this.patientTableData.length > 0) {
1019 1035
                   for (let i = 0; i < this.patientTableData.length; i++) {
1020
-                    if (this.patientTableData[i].id == this.patientInfo.id) {
1036
+                    if (this.patientTableData[i].patient_id == this.patientInfo.id) {
1021 1037
                       this.$refs.tab.setCurrentRow(this.patientTableData[i])
1022
-                      this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id)
1038
+                      this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
1023 1039
                     }
1024 1040
                   }
1025 1041
                 }
@@ -1989,13 +2005,27 @@
1989 2005
 
1990 2006
             })
1991 2007
         } else if (index == 9) {
2008
+          let settle_accounts_type = ""
2009
+          if(this.activeName == 'first'){
2010
+
2011
+            settle_accounts_type = 1
2012
+          }else{
2013
+
2014
+            settle_accounts_type = 2
2015
+
2016
+          }
1992 2017
           var that = this
1993 2018
           this.$confirm('是否撤销明细', '撤销明细', {
1994 2019
             confirmButtonText: '确 定',
1995 2020
             cancelButtonText: '取 消',
1996 2021
             type: 'warning'
1997 2022
           }).then(() => {
2023
+
1998 2024
             let params = {
2025
+              'settle_accounts_type':settle_accounts_type,
2026
+              'patient_id':this.patientInfo.id,
2027
+              'his_patient_id':this.hisPatientInfo.id,
2028
+              'record_time': this.record_time,
1999 2029
               'order_id': this.order.id,
2000 2030
               'admin_user_id': this.$store.getters.xt_user.user.id
2001 2031
             }
@@ -2030,6 +2060,52 @@
2030 2060
 
2031 2061
           }).catch(() => {
2032 2062
           })
2063
+        } else if(index == 30){
2064
+          var that = this
2065
+          let params = {
2066
+            'in_hospital_id': that.hisPatientInfo.id,
2067
+            'id': that.patientInfo.id,
2068
+            'admin_user_id': that.$store.getters.xt_user.user.id,
2069
+            'record_time': that.record_date
2070
+
2071
+          }
2072
+          if (this.activeName == 'first') {
2073
+            params['settle_accounts_type'] = 1
2074
+
2075
+          } else {
2076
+            params['start_time'] = that.other_start_time
2077
+            params['end_time'] = that.other_end_time
2078
+            params['settle_accounts_type'] = 2
2079
+
2080
+          }
2081
+          axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
2082
+            params: params
2083
+          })
2084
+            .then(function(response) {
2085
+              if (response.data.state == 0) {
2086
+                that.$message.error(response.data.msg)
2087
+                return false
2088
+              } else {
2089
+                if (response.data.data.failed_code == -10) {
2090
+                  // that.$message.error(response.data.data.msg)
2091
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
2092
+                    confirmButtonText: '确 定',
2093
+                    type: 'warning'
2094
+                  }).then(() => {
2095
+
2096
+                  }).catch(() => {
2097
+                  })
2098
+                } else {
2099
+                  that.$message.success('上传明细成功')
2100
+                  that.changeRadioAndPatient(1)
2101
+                }
2102
+
2103
+              }
2104
+            })
2105
+            .catch(function(error) {
2106
+
2107
+            })
2108
+
2033 2109
         }
2034 2110
       },
2035 2111
 
@@ -2069,7 +2145,7 @@
2069 2145
 
2070 2146
             for (let i = 0; i < response.data.data.list.length; i++) {
2071 2147
               this.all_table_data.push(response.data.data.list[i])
2072
-              if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
2148
+              if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
2073 2149
                 one_count = one_count + 1
2074 2150
               }
2075 2151
 
@@ -2085,16 +2161,16 @@
2085 2161
               case 1:
2086 2162
                 this.patientTableData = []
2087 2163
                 for (let i = 0; i < this.all_table_data.length; i++) {
2088
-                  if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
2164
+                  if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
2089 2165
                     this.patientTableData.push(this.all_table_data[i])
2090 2166
                   }
2091 2167
 
2092 2168
                 }
2093 2169
                 for (let i = 0; i < this.patientTableData.length; i++) {
2094
-                  if (this.patientInfo.id == this.patientTableData[i].id) {
2170
+                  if (this.patientInfo.id == this.patientTableData[i].patient_id) {
2095 2171
                     this.current_index = i
2096 2172
                     this.$refs.tab.setCurrentRow(this.patientTableData[i])
2097
-                    this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].his_patient.order.number, this.patientTableData[i].his_patient.id)
2173
+                    this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
2098 2174
 
2099 2175
                   }
2100 2176
                 }
@@ -2199,7 +2275,7 @@
2199 2275
 
2200 2276
               for (let i = 0; i < response.data.data.list.length; i++) {
2201 2277
                 this.all_table_data.push(response.data.data.list[i])
2202
-                if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
2278
+                if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
2203 2279
                   one_count = one_count + 1
2204 2280
                 }
2205 2281
 
@@ -2216,7 +2292,7 @@
2216 2292
 
2217 2293
               for (let i = 0; i < response.data.data.list_two.length; i++) {
2218 2294
                 this.hisPatientDatas.push(response.data.data.list_two[i])
2219
-                if (response.data.data.list_two[i].his_patient.order.order_status == 0 || response.data.data.list_two[i].his_patient.order.order_status == 1) {
2295
+                if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1) {
2220 2296
                   one_count = one_count + 1
2221 2297
                 }
2222 2298
 
@@ -2243,7 +2319,7 @@
2243 2319
                 if (this.activeName == 'first') {
2244 2320
 
2245 2321
                   for (let i = 0; i < this.all_table_data.length; i++) {
2246
-                    if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
2322
+                    if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
2247 2323
                       this.patientTableData.push(this.all_table_data[i])
2248 2324
                     }
2249 2325
 
@@ -2251,7 +2327,7 @@
2251 2327
 
2252 2328
                 } else {
2253 2329
                   for (let i = 0; i < this.hisPatientDatas.length; i++) {
2254
-                    if (this.hisPatientDatas[i].his_patient.order.order_status == 0 || this.hisPatientDatas[i].his_patient.order.order_status == 1) {
2330
+                    if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1) {
2255 2331
                       this.patientTableData.push(this.hisPatientDatas[i])
2256 2332
                     }
2257 2333
 
@@ -2261,7 +2337,7 @@
2261 2337
 
2262 2338
                 this.current_index = 0
2263 2339
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
2264
-                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].his_patient.order.number, this.patientTableData[0].his_patient.id)
2340
+                this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].order.number, this.patientTableData[0].id)
2265 2341
 
2266 2342
                 break
2267 2343
               case 2:
@@ -2363,7 +2439,7 @@
2363 2439
             let three_count = 0
2364 2440
             for (let i = 0; i < response.data.data.list.length; i++) {
2365 2441
               this.all_table_data.push(response.data.data.list[i])
2366
-              if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
2442
+              if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
2367 2443
                 one_count = one_count + 1
2368 2444
               }
2369 2445
 
@@ -2379,13 +2455,13 @@
2379 2455
               case 1:
2380 2456
                 this.patientTableData = []
2381 2457
                 for (let i = 0; i < this.all_table_data.length; i++) {
2382
-                  if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1 || this.all_table_data[i].his_patient.order.order_status == 3) {
2458
+                  if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1 || this.all_table_data[i].order.order_status == 3) {
2383 2459
                     this.patientTableData.push(this.all_table_data[i])
2384 2460
                   }
2385 2461
                 }
2386 2462
 
2387 2463
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
2388
-                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].his_patient.order.number, this.patientTableData[0].his_patient.id)
2464
+                this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].order.number, this.patientTableData[0].id)
2389 2465
 
2390 2466
                 break
2391 2467
               case 2:
@@ -2620,7 +2696,7 @@
2620 2696
         this.prescriptions = []
2621 2697
         this.month_prescriptions = []
2622 2698
         if(this.radio == 1){
2623
-          this.getPatientInformation(val.id, val.his_patient.order.number, val.his_patient.id)
2699
+          this.getPatientInformation(val.patient_id, val.order.number, val.id)
2624 2700
         }else{
2625 2701
           this.getPatientInformation(val.id, val.number, val.his_patient_id)
2626 2702
 

+ 0 - 1
src/xt_pages/hospitalStation/summary.vue Parādīt failu

@@ -31,7 +31,6 @@
31 31
                                     format="yyyy-MM-dd"
32 32
                                     value-format="yyyy-MM-dd"
33 33
                                     align="right"></el-date-picker>
34
-
35 34
                     <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
36 35
                                     @change="handleEndTimeChange" :editable="false" :clearable="false"
37 36
                                     style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"

+ 5 - 10
src/xt_pages/management/components/UserForm.vue Parādīt failu

@@ -1459,10 +1459,13 @@ export default {
1459 1459
       });
1460 1460
     },
1461 1461
     EditUser(id, patientid) {
1462
-      this.dialogVisible = true;
1462
+       console.log("hh2h333232332233232323322323",id)
1463
+       console.log("patient_id2323223323223322332323322323",patientid)
1463 1464
       EditUser(id, patientid).then(response => {
1464 1465
         if (response.data.state === 1) {
1466
+          this.dialogVisible = true;
1465 1467
           var device = response.data.data.device;
1468
+          console.log("使用登记详情22222222222",device)
1466 1469
           var patients = response.data.data.patients;
1467 1470
           var count =  response.data.data.count
1468 1471
           var macher =  response.data.data.macher
@@ -1506,15 +1509,7 @@ export default {
1506 1509
           this.userform.disinfection_residue = device.disinfection_residue;
1507 1510
           this.userform.longtime = device.long_time;
1508 1511
           this.userform.dialysis_time = device.dialysis_hour;
1509
-          // this.userform.user_total = device.user_total
1510
-          // this.userform.starttime = uParseTime(
1511
-          //   device.disinfec_startime,
1512
-          //  '{y}-{m}-{d} {h}:{i}'
1513
-          // )
1514
-          // this.userform.endtime = uParseTime(
1515
-          //  device.disinfec_endtime,
1516
-          // '{y}-{m}-{d} {h}:{i}'
1517
-          // )
1512
+        
1518 1513
           this.userform.starttime = this.updateTimes(device.disinfec_startime);
1519 1514
           this.userform.endtime = this.updateTimes(device.disinfec_endtime);
1520 1515
           this.userform.equiment_id = device.equiment_id;

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Parādīt failu

@@ -193,7 +193,7 @@ export default {
193 193
 
194 194
 
195 195
         },500)
196
-      }else if(this.$store.getters.xt_user.org_id == 9504){
196
+      }else if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028){
197 197
         const style =
198 198
         '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
199 199
         printJS({

+ 2 - 2
src/xt_pages/outpatientCharges/statementTemplate/printFour.vue Parādīt failu

@@ -233,7 +233,7 @@
233 233
               </div>
234 234
               <div class="actionBar">
235 235
                   <div>收费员:{{balanceAccounts.current_admin.user_name}}</div>
236
-                  <div>日期:{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</div>
236
+                  <div>日期:{{getTime(balanceAccounts.order.settle_accounts_date,"{y}-{m}-{d}")?getTime(balanceAccounts.order.settle_accounts_date,"{y}-{m}-{d}"):""}}</div>
237 237
               </div>
238 238
           </div>
239 239
 
@@ -421,7 +421,7 @@
421 421
               }
422 422
           }
423 423
         }
424
-        
424
+
425 425
       },
426 426
       getTime(value, temp) {
427 427
         if (value != undefined) {

+ 2 - 2
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue Parādīt failu

@@ -49,7 +49,7 @@
49 49
                           <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
50 50
                         </td>
51 51
                         <td>
52
-                          <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
52
+                          <span v-if="item.type == 1">{{ subItem.advice.drug.prescribing_number_unit }}</span>
53 53
                           <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
54 54
                           <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
55 55
                         </td>
@@ -156,7 +156,7 @@
156 156
                           <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
157 157
                         </td>
158 158
                         <td>
159
-                          <span v-if="item.type == 1">{{ subItem.advice.drug.max_unit }}</span>
159
+                          <span v-if="item.type == 1">{{ subItem.advice.drug.prescribing_number_unit }}</span>
160 160
                           <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
161 161
                           <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
162 162
                         </td>

+ 47 - 43
src/xt_pages/outpatientCharges/summary.vue Parādīt failu

@@ -7,8 +7,8 @@
7 7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8 8
                 <div>
9 9
                     <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
10
-                               <!--@click="Action">-->
11
-                        <!--导出-->
10
+                    <!--@click="Action">-->
11
+                    <!--导出-->
12 12
                     <!--</el-button>-->
13 13
                     <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
14 14
                               @keyup.enter.native='searchAction'
@@ -434,7 +434,7 @@
434 434
           settle_type: row.settle_type,
435 435
           start_time: row.settle_start_time,
436 436
           end_time: row.settle_end_time,
437
-          balance_accounts_type:row.his_patient.balance_accounts_type
437
+          balance_accounts_type: row.his_patient.balance_accounts_type
438 438
         }
439 439
         this.orderObj = obj
440 440
 
@@ -478,11 +478,11 @@
478 478
               }
479 479
 
480 480
               if (order.his_patient != null) {
481
-                if (order.his_patient.balance_accounts_type == 1) {
481
+                if (order.his_patient.balance_accounts_type == 2) {
482 482
                   balance_accounts = '自费'
483 483
                 }
484 484
 
485
-                if (order.his_patient.balance_accounts_type == 2) {
485
+                if (order.his_patient.balance_accounts_type == 1) {
486 486
                   balance_accounts = '医保'
487 487
                 }
488 488
               }
@@ -532,34 +532,41 @@
532 532
 
533 533
               var hifmi_pay = 0.00
534 534
 
535
-              if (order.setl_detail.length > 0) {
535
+              console.log(order.setl_detail)
536
+              if (order.setl_detail && order.setl_detail.length > 0) {
536 537
                 var jsonObj = JSON.parse(order.setl_detail)
537
-                for (let i = 0; i < jsonObj.length; i++) {
538
-                  if (order.insutype == '310') {
539
-                    if (jsonObj[i].fund_pay_type == '310300') {
540
-                      hifmi_pay = jsonObj[i].fund_payamt
541
-                    }
542
-
543
-                  } else if (order.insutype == '390') {
544
-                    if (order.fund_pay_type == '390200') {
545
-                      hifmi_pay = jsonObj[i].fund_payamt
538
+                console.log(jsonObj)
539
+                if (jsonObj != null) {
540
+
541
+                  for (let i = 0; i < jsonObj.length; i++) {
542
+                    if (order.insutype == '310') {
543
+                      if (jsonObj[i].fund_pay_type == '310300') {
544
+                        hifmi_pay = jsonObj[i].fund_payamt
545
+                      }
546
+                    } else if (order.insutype == '390') {
547
+                      if (order.fund_pay_type == '390200') {
548
+                        hifmi_pay = jsonObj[i].fund_payamt
549
+                      }
546 550
                     }
547 551
                   }
548 552
                 }
549 553
               }
550 554
               var hifmi_pay = 0.00
551 555
 
552
-              if (order.setl_detail.length > 0) {
556
+              console.log(order.setl_detail)
557
+              if (order.setl_detail && order.setl_detail.length > 0) {
553 558
                 var jsonObj = JSON.parse(order.setl_detail)
554
-                for (let i = 0; i < jsonObj.length; i++) {
555
-                  if (order.insutype == '310') {
556
-                    if (jsonObj[i].fund_pay_type == '310300') {
557
-                      hifmi_pay = jsonObj[i].fund_payamt
559
+                if (jsonObj != null) {
560
+                  for (let i = 0; i < jsonObj.length; i++) {
561
+                    if (order.insutype == '310') {
562
+                      if (jsonObj[i].fund_pay_type == '310300') {
563
+                        hifmi_pay = jsonObj[i].fund_payamt
564
+                      }
558 565
                     }
559
-                  }
560
-                  if (order.insutype == '390') {
561
-                    if (jsonObj[i].fund_pay_type == '390200') {
562
-                      hifmi_pay = jsonObj[i].fund_payamt
566
+                    if (order.insutype == '390') {
567
+                      if (jsonObj[i].fund_pay_type == '390200') {
568
+                        hifmi_pay = jsonObj[i].fund_payamt
569
+                      }
563 570
                     }
564 571
                   }
565 572
                 }
@@ -636,7 +643,7 @@
636 643
         this.page = 1
637 644
         this.keywords = ''
638 645
         this.getHisOrderList()
639
-      },Action(){
646
+      }, Action() {
640 647
         getAllOrders().then(response => {
641 648
           if (response.data.state == 0) {
642 649
             this.$message.error(response.data.msg)
@@ -646,42 +653,40 @@
646 653
             let list = []
647 654
             for (let i = 0; i < response.data.data.order.length; i++) {
648 655
 
649
-
650 656
               var hifmi_pay = 0.00
651 657
               for (let b = 0; b < order.order_info.length; b++) {
652
-                let item_name = ""
653
-                let item_code = ""
654
-                let price = ""
655
-                let unit = ""
656
-                let spec = ""
657
-                let time = ""
658
-                let name = ""
659
-                let selfpay_prop = ""
660
-                if(order.order_info[b].advice.id == 0 && order.order_info[b].project.id > 0){
658
+                let item_name = ''
659
+                let item_code = ''
660
+                let price = ''
661
+                let unit = ''
662
+                let spec = ''
663
+                let time = ''
664
+                let name = ''
665
+                let selfpay_prop = ''
666
+                if (order.order_info[b].advice.id == 0 && order.order_info[b].project.id > 0) {
661 667
                   item_name = order.order_info[b].project.project.project_name
662
-                  item_code =  order.order_info[b].project.project.medical_code
668
+                  item_code = order.order_info[b].project.project.medical_code
663 669
                   price = order.order_info[b].pric
664 670
                   unit = order.order_info[b].project.project.unit
665
-                }else if(order.order_info[b].advice.id > 0 && order.order_info[b].project.id == 0){
671
+                } else if (order.order_info[b].advice.id > 0 && order.order_info[b].project.id == 0) {
666 672
                   item_name = order.order_info[b].advice.advice_name
667
-                  item_code =  order.order_info[b].advice.drug.medical_insurance_number
673
+                  item_code = order.order_info[b].advice.drug.medical_insurance_number
668 674
                   price = order.order_info[b].pric
669 675
                   unit = order.order_info[b].advice.prescribing_number_unit
670 676
 
671
-
672 677
                 }
673 678
                 selfpay_prop = order.order_info[b].selfpay_prop
674 679
 
675 680
                 let obj = {
676 681
                   '项目名称': item_name,
677
-                  '项目编码': "",
682
+                  '项目编码': '',
678 683
                   '医保编码': item_code,
679 684
                   '零售价': price,
680 685
                   '单位': unit,
681
-                  '规格': "",
686
+                  '规格': '',
682 687
                   '收费时间': time,
683 688
                   '报销比例': selfpay_prop,
684
-                  '患者名称': name,
689
+                  '患者名称': name
685 690
                 }
686 691
 
687 692
                 list.push(obj)
@@ -701,7 +706,6 @@
701 706
           }
702 707
         })
703 708
 
704
-
705 709
       },
706 710
       searchAction() {
707 711
         this.page = 1

+ 548 - 5
src/xt_pages/outpatientTool/components/detail.vue Parādīt failu

@@ -1,13 +1,556 @@
1 1
 <template>
2
+    <!-- <div class="main-contain outpatientChargesManagement">
3
+        <div class="position">
4
+            <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+        </div> -->
6
+    <div>
7
+        <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
+            <div>
9
+                <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
10
+                <!--@click="Action">-->
11
+                <!--导出-->
12
+                <!--</el-button>-->
13
+                <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
14
+                          @keyup.enter.native='searchAction'
15
+                          placeholder="请输入患者姓名"
16
+                          class="filter-item"/>
17
+                <el-select size="small" v-model="item_type" placeholder="请选择"
18
+                           style="width:150px;margin-left:10px;" @change="changeItem">
19
+                    <el-option
20
+                            label="全部"
21
+                            value="0">
22
+                    </el-option>
23
+                    <el-option
24
+                            v-for="item,index in items"
25
+                            :key="index"
26
+                            :label="item.name"
27
+                            :value="item.id">
28
+                    </el-option>
29
+                </el-select>
30
+                <el-date-picker
31
+                        v-model="chargeDate"
32
+                        type="daterange"
33
+                        value-format="yyyy-MM-dd"
34
+                        range-separator="至"
35
+                        start-placeholder="开始日期"
36
+                        @change="changeDate"
37
+                        end-placeholder="结束日期">
38
+                </el-date-picker>
39
+                <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
40
+                <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
41
+            </div>
42
+            <div>
43
+                <!-- <el-popover
44
+                  placement="bottom"
45
+                  width="210"
46
+                  trigger="click">
47
+                  <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
48
+                  <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
49
+                  <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
2 50
 
51
+                </el-popover> -->
52
+                <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
53
+            </div>
54
+        </div>
55
+        <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
56
+                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
57
+                  :span-method="merge"
58
+                  show-summary
59
+                  :summary-method="getTotal"
60
+                  max-height="600"
3 61
 
62
+                  v-loading="detail_loading"
63
+                  highlight-current-row>
64
+
65
+            <el-table-column align="center" prop="name" label="患者名字">
66
+                <template slot-scope="scope">{{ scope.row.name }}</template>
67
+            </el-table-column>
68
+            <!--<el-table-column align="center" prop="name" label="患者类型">-->
69
+            <!--<template slot-scope="scope"></template>-->
70
+            <!--</el-table-column>-->
71
+
72
+            <el-table-column align="center" prop="name" label="项目名称">
73
+                <template slot-scope="scope">{{scope.row.item_name}}</template>
74
+            </el-table-column>
75
+            <el-table-column align="center" prop="name" label="数量">
76
+                <template slot-scope="scope">{{scope.row.count}}</template>
77
+            </el-table-column>
78
+            <el-table-column align="center" prop="name" label="单价">
79
+                <template slot-scope="scope">{{scope.row.price.toFixed(2)}}</template>
80
+            </el-table-column>
81
+            <el-table-column align="center" prop="name" label="费用">
82
+                <template slot-scope="scope">
83
+                    <div>{{(scope.row.price.toFixed(2)*scope.row.count).toFixed(2)}}</div>
84
+                </template>
85
+            </el-table-column>
86
+
87
+            <el-table-column align="center" prop="total" label="费用总额">
88
+                <template slot-scope="scope">
89
+                    <div>{{scope.row.total.toFixed(2)}}</div>
90
+                </template>
91
+            </el-table-column>
92
+
93
+        </el-table>
94
+    </div>
95
+
96
+    <!-- </div> -->
4 97
 </template>
98
+
99
+
5 100
 <script>
101
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
102
+  import { GetSummaryDetail } from '@/api/his/his'
103
+  import { uParseTime } from '@/utils/tools'
104
+  // import NewStatementPrint from './newStatementPrint'
105
+  const moment = require('moment')
6 106
   export default {
7
-    name: 'summaryDetail'
8
-  }
9
-</script>
107
+    components: {
108
+      BreadCrumb
109
+
110
+    },
111
+    data() {
112
+      return {
113
+        detail_loading: false,
114
+        tempArr: [],
115
+        pos: 0,
116
+
117
+        sameRowArr: [],
118
+        keywords: '',
119
+        tableData: [],
120
+        chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
121
+        item_type: '0',
122
+        items: [
123
+          { id: 1, name: '药品' },
124
+          { id: 2, name: '项目' },
125
+          { id: 3, name: '耗材' }
126
+
127
+        ]
128
+
129
+      }
130
+    },
131
+    methods: {
132
+      objectSpanMethod({ row, column, rowIndex, columnIndex }) {
133
+        if (columnIndex === 0) {
134
+          if (rowIndex % 2 === 0) {
135
+            return {
136
+              rowspan: 2,
137
+              colspan: 1
138
+            }
139
+          } else {
140
+            return {
141
+              rowspan: 0,
142
+              colspan: 0
143
+            }
144
+          }
145
+        }
146
+      },
147
+      unique(arr) {
148
+        const res = new Map()
149
+        return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
150
+      },
151
+      changeDate() {
152
+        this.getSummaryDetailList()
153
+      },
154
+      changeItem() {
155
+        this.getSummaryDetailList()
156
+      },
157
+      searchAction() {
158
+        this.item_type = '0'
159
+        this.getSummaryDetailList()
160
+
161
+      },
162
+      getSummaryDetailList() {
163
+        this.detail_loading = true
164
+        let start_time = this.chargeDate[0]
165
+        let end_time = this.chargeDate[1]
166
+        let params = {
167
+          start_time: start_time,
168
+          end_time: end_time,
169
+          type: this.item_type,
170
+          keyword: this.keywords
171
+        }
172
+        GetSummaryDetail(params).then(response => {
173
+          if (response.data.state == 0) {
174
+            this.detail_loading = false
175
+
176
+            this.$message.error(response.data.msg)
177
+            return false
178
+          } else {
179
+            this.detail_loading = false
180
+
181
+            this.tableData = []
182
+            let tempPatients = []
183
+            let tempPatientsTwo = []
184
+
185
+            let tempData = response.data.data.patients
186
+            let data = response.data.data.patients
187
+            let orders = this.unique(tempData)
188
+            for (let i = 0; i < orders.length; i++) {
189
+              let obj = {
190
+                patient_id: orders[i].id,
191
+                name: orders[i].name,
192
+                orders: []
193
+              }
194
+              for (let b = 0; b < data.length; b++) {
195
+                if (orders[i].id == data[b].id) {
196
+                  obj.orders = obj.orders.concat(data[b].orders)
197
+                }
198
+              }
199
+              tempPatients.push(obj)
200
+            }
201
+
202
+            for (let i = 0; i < tempPatients.length; i++) {
203
+              let obj = {
204
+                patient_id: tempPatients[i].patient_id,
205
+                name: tempPatients[i].name,
206
+                order_info: []
207
+              }
208
+              let orders = tempPatients[i].orders
209
+              for (let b = 0; b < orders.length; b++) {
210
+                for (let c = 0; c < orders[b].order_info.length; c++) {
211
+                  let newObj = {}
212
+
213
+                  newObj['count'] = orders[b].order_info[c].cnt
214
+                  newObj['price'] = orders[b].order_info[c].pric
215
+                  if (orders[b].order_info[c].advice_id > 0 && orders[b].order_info[c].project_id == 0) {
216
+                    newObj['type'] = 1
217
+                    // newObj['item_name'] = orders[b].order_info[c].advice.advice_name
218
+                    newObj['item_id'] = orders[b].order_info[c].advice.drug_id
219
+
220
+                    if (orders[b].order_info[c].advice.drug.min_unit != orders[b].order_info[c].advice.drug.dose_unit) {
221
+                      newObj['item_name'] = orders[b].order_info[c].advice.advice_name + '( ' + orders[b].order_info[c].advice.drug.dose + orders[b].order_info[c].advice.drug.dose_unit + '*' + orders[b].order_info[c].advice.drug.min_number + orders[b].order_info[c].advice.drug.min_unit + '/' + orders[b].order_info[c].advice.drug.max_unit + ' )'
222
+                    } else {
223
+
224
+                      newObj['item_name'] = ''
225
+                    }
226
+
227
+                  }
228
+                  if (orders[b].order_info[c].advice_id == 0 && orders[b].order_info[c].project_id > 0) {
229
+                    newObj['type'] = 2
230
+                    newObj['item_id'] = orders[b].order_info[c].project.project_id
231
+
232
+                    if (orders[b].order_info[c].project.type == 2) {
233
+                      newObj['item_name'] = orders[b].order_info[c].project.project.project_name
234
+
235
+                    } else if (orders[b].order_info[c].project.type == 3) {
236
+                      newObj['item_name'] = orders[b].order_info[c].project.good_info.good_name + '( ' + orders[b].order_info[c].project.good_info.specification_name + ' )'
237
+
238
+                    }
239
+                  }
240
+                  obj.order_info.push(newObj)
241
+                }
242
+              }
243
+              tempPatientsTwo.push(obj)
244
+            }
245
+
246
+            for (let d = 0; d < tempPatientsTwo.length; d++) {
247
+              tempPatientsTwo[d]['new_order_info'] = []
248
+              let project = []
249
+              let advice = []
250
+              for (let b = 0; b < tempPatientsTwo[d].order_info.length; b++) {
251
+                if (tempPatientsTwo[d].order_info[b].type == 1) {
252
+                  advice.push(tempPatientsTwo[d].order_info[b])
253
+                } else {
254
+                  project.push(tempPatientsTwo[d].order_info[b])
255
+                }
256
+              }
257
+              project = this.uniqueProjectAndAdvice(project)
258
+              advice = this.uniqueProjectAndAdvice(advice)
10 259
 
11
-<style scoped>
260
+              for (let i = 0; i < project.length; i++) {
261
+                let obj = {}
262
+                let count = 0
263
+                for (let a = 0; a < tempPatientsTwo[d].order_info.length; a++) {
264
+                  if (project[i].item_id == tempPatientsTwo[d].order_info[a].item_id && project[i].price == tempPatientsTwo[d].order_info[a].price) {
265
+                    count = count + tempPatientsTwo[d].order_info[a].count
266
+                  }
267
+                }
12 268
 
13
-</style>
269
+
270
+
271
+                obj['price'] = project[i].price
272
+                obj['type'] = project[i].type
273
+                obj['item_name'] = project[i].item_name
274
+                obj['item_id'] = project[i].item_id
275
+                obj['name'] = tempPatientsTwo[d].name
276
+                obj['patient_id'] = tempPatientsTwo[d].patient_id
277
+                obj['count'] = count
278
+                tempPatientsTwo[d].new_order_info.push(obj)
279
+              }
280
+
281
+              for (let i = 0; i < advice.length; i++) {
282
+                let obj = {}
283
+                let count = 0
284
+                for (let a = 0; a < tempPatientsTwo[d].order_info.length; a++) {
285
+                  if (advice[i].item_id == tempPatientsTwo[d].order_info[a].item_id && advice[i].price == tempPatientsTwo[d].order_info[a].price) {
286
+                    count = count + tempPatientsTwo[d].order_info[a].count
287
+                  }
288
+                }
289
+
290
+                obj['price'] = advice[i].price
291
+                obj['type'] = advice[i].type
292
+                obj['item_name'] = advice[i].item_name
293
+                obj['item_id'] = advice[i].item_id
294
+                obj['name'] = tempPatientsTwo[d].name
295
+                obj['patient_id'] = tempPatientsTwo[d].patient_id
296
+                obj['count'] = count
297
+                tempPatientsTwo[d].new_order_info.push(obj)
298
+              }
299
+
300
+            }
301
+
302
+            for (let i = 0; i < tempPatientsTwo.length; i++) {
303
+              let total = 0
304
+              for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
305
+                let new_name = tempPatientsTwo[i].new_order_info[b].item_name
306
+                new_name = new_name.replace('( ', '')
307
+                new_name = new_name.replace(' )', '')
308
+                if (new_name.length != 0) {
309
+                  total = parseFloat(total) + parseFloat((parseFloat(tempPatientsTwo[i].new_order_info[b].count.toString()) * parseFloat(tempPatientsTwo[i].new_order_info[b].price.toString().toString())).toFixed(2))
310
+                }
311
+              }
312
+              tempPatientsTwo[i]['total'] = total
313
+            }
314
+            console.log('tempPatientsTwo', tempPatientsTwo)
315
+            for (let i = 0; i < tempPatientsTwo.length; i++) {
316
+              // console.log(111,tempPatientsTwo[i].total)
317
+              if (tempPatientsTwo[i].new_order_info.length > 0) {
318
+
319
+                for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
320
+                  let new_name = tempPatientsTwo[i].new_order_info[b].item_name
321
+                  console.log('2 ' + new_name)
322
+
323
+                  new_name = new_name.replace('( ', '')
324
+                  new_name = new_name.replace(' )', '')
325
+
326
+                  if (new_name.length != 0) {
327
+                    let obj = {
328
+                      name: tempPatientsTwo[i].name,
329
+                      patient_id: tempPatientsTwo[i].patient_id,
330
+                      price: tempPatientsTwo[i].new_order_info[b].price,
331
+                      type: tempPatientsTwo[i].new_order_info[b].type,
332
+                      item_name: tempPatientsTwo[i].new_order_info[b].item_name,
333
+                      item_id: tempPatientsTwo[i].new_order_info[b].item_id,
334
+                      count: tempPatientsTwo[i].new_order_info[b].count
335
+
336
+                    }
337
+
338
+                    // if(b == 0){
339
+                    obj['total'] = tempPatientsTwo[i].total
340
+                    // }else{
341
+                    //   obj['total'] = 0
342
+                    // }
343
+                    this.tableData.push(obj)
344
+                  }
345
+
346
+                }
347
+              }
348
+            }
349
+            this.handleSpanTempArr()
350
+            // this.tableData = tempPatientsTwo
351
+
352
+            // console.log(tempPatientsTwo.length)
353
+            //
354
+
355
+          }
356
+          //
357
+          // console.log('去重前')
358
+          // console.log(advice)
359
+          // console.log(project)
360
+          // //
361
+          // //
362
+
363
+          // //
364
+          // console.log('去重后')
365
+          //
366
+          // console.log(advice.length)
367
+          // console.log(project.length)
368
+          //
369
+          // for (let i = 0; i < project.length; i++) {
370
+          //   let obj = {}
371
+          //   let count = 0
372
+          //   for (let a = 0; a < tempPatientsTwo.length; a++) {
373
+          //     if (project[i].patient_id == tempPatientsTwo[a].patient_id && project[i].item_id == tempPatientsTwo[a].item_id && project[i].price == tempPatientsTwo[a].price) {
374
+          //       count = count + tempPatientsTwo[a].count
375
+          //       obj['count'] = count
376
+          //
377
+          //     }
378
+          //     obj['price'] = project[i].price
379
+          //     obj['type'] = project[i].type
380
+          //     obj['item_name'] = project[i].item_name
381
+          //     obj['item_id'] = project[i].item_id
382
+          //     obj['name'] = project[i].name
383
+          //     obj['patient_id'] = project[i].patient_id
384
+          //     obj['count'] = count
385
+          //     this.tableData.push(obj)
386
+          //   }
387
+          // }
388
+          //
389
+          //
390
+          // for (let i = 0; i < advice.length; i++) {
391
+          //   let obj = {}
392
+          //   let count = 0
393
+          //   for (let a = 0; a < tempPatientsTwo.length; a++) {
394
+          //     if (advice[i].patient_id == tempPatientsTwo[a].patient_id && advice[i].item_id == tempPatientsTwo[a].item_id && advice[i].price == tempPatientsTwo[a].price) {
395
+          //       count = count + tempPatientsTwo[a].count
396
+          //       obj['count'] = count
397
+          //
398
+          //     }
399
+          //     obj['price'] = advice[i].price
400
+          //     obj['type'] = advice[i].type
401
+          //     obj['item_name'] = advice[i].item_name
402
+          //     obj['item_id'] = advice[i].item_id
403
+          //     obj['name'] = advice[i].name
404
+          //     obj['patient_id'] = advice[i].patient_id
405
+          //     this.tableData.push(obj)
406
+          //   }
407
+          // }
408
+          // console.log(this.tableData.length)
409
+          // this.tableData = this.sort(this.tableData)
410
+
411
+        })
412
+      }, uniqueProjectAndAdvice(array) {
413
+        // res用来存储结果
414
+        var res = []
415
+        for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
416
+          for (var j = 0, resLen = res.length; j < resLen; j++) {
417
+            if (array[i].item_id === res[j].item_id && array[i].price === res[j].price) {
418
+              break
419
+            }
420
+          }
421
+          // 如果array[i]是唯一的,那么执行完循环,j等于resLen
422
+          if (j === resLen) {
423
+            res.push(array[i])
424
+          }
425
+        }
426
+        return res
427
+      }, sort(arr) {
428
+        for (var i = 0; i < arr.length - 1; i++) {
429
+          for (var j = 0; j < arr.length - i - 1; j++) {
430
+            if (arr[j].patient_id > arr[j + 1].patient_id) {// 相邻元素两两对比
431
+              var hand = arr[j]
432
+              arr[j] = arr[j + 1]
433
+              arr[j + 1] = hand
434
+
435
+            }
436
+          }
437
+        }
438
+        return arr
439
+      }, handleSpanTempArr() {
440
+        this.tempArr = []
441
+
442
+        for (let i = 0; i < this.tableData.length; i++) {
443
+          if (i === 0) {
444
+            this.tempArr.push(1)
445
+            this.pos = 0
446
+          } else {
447
+            // 判断当前元素与上一个元素是否相同
448
+            if (this.tableData[i].patient_id === this.tableData[i - 1].patient_id) {
449
+              this.tempArr[this.pos] += 1
450
+              this.tempArr.push(0)
451
+            } else {
452
+              this.tempArr.push(1)
453
+              this.pos = i
454
+            }
455
+          }
456
+        }
457
+
458
+        let sameRowArr = [], sIdx = 0
459
+        this.tableData.forEach((item, index) => {
460
+          item.index = index
461
+          if (index === 0) {
462
+            sameRowArr.push([index])
463
+          } else {
464
+            if (item.patient_id === this.tableData[index - 1].patient_id) {
465
+              sameRowArr[sIdx].push(index)
466
+            } else {
467
+              sIdx = sIdx + 1
468
+              sameRowArr.push([index])
469
+            }
470
+          }
471
+        })
472
+        this.sameRowArr = sameRowArr
473
+      }, merge({ row, column, rowIndex, columnIndex }) {
474
+        if (columnIndex === 0 || columnIndex === 5) {
475
+          const _row = this.tempArr[rowIndex]
476
+          const _col = _row > 0 ? 1 : 0
477
+          return {
478
+            rowspan: _row,
479
+            colspan: _col
480
+          }
481
+        }
482
+      }, export_detail() {
483
+
484
+        let list = []
485
+        for (let i = 0; i < this.tableData.length; i++) {
486
+          let order = this.tableData[i]
487
+          let name = order.name
488
+          let item_name = order.item_name
489
+          let count = order.count
490
+          let price = order.price.toFixed(2)
491
+          let pay_sumamt = (order.price.toFixed(2) * order.count).toFixed(2)
492
+          let total = order.total.toFixed(2)
493
+
494
+          let obj = {
495
+            '患者姓名': name,
496
+            '项目名称': item_name,
497
+            '数量': count,
498
+            '单价': price,
499
+            '费用': pay_sumamt,
500
+            '费用总额': total
501
+          }
502
+          list.push(obj)
503
+        }
504
+        import('@/vendor/Export2Excel').then(excel => {
505
+          const tHeader = ['患者姓名', '项目名称', '数量', '单价', '费用', '费用总额']
506
+          const filterVal = ['患者姓名', '项目名称', '数量', '单价', '费用', '费用总额']
507
+          const data = this.formatJson(filterVal, list)
508
+          excel.export_json_to_excel1({
509
+            header: tHeader,
510
+            data,
511
+            filename: '明细',
512
+            ref: this.$refs['table'].$el
513
+          })
514
+        })
515
+
516
+      }, formatJson(filterVal, jsonData) {
517
+        return jsonData.map(v => filterVal.map(j => v[j]))
518
+      }, getTotal(param) {
519
+        const { columns, data } = param
520
+        const sums = []
521
+        columns.forEach((column, index) => {
522
+          if (index === 0) {
523
+            sums[index] = '合计'
524
+            return
525
+          }
526
+          console.log(data)
527
+          const values = data.map(item => Number(item[column.property]))
528
+          if (column.property === 'total') {
529
+            // sums[index] = values.reduce((prev, curr) => {
530
+            //   const value = Number(curr)
531
+            //   if (!isNaN(value)) {
532
+            //     return prev + curr
533
+            //   } else {
534
+            //     return prev
535
+            //   }
536
+            // }, 0)
537
+            // sums[index] = sums[index].toFixed(2)
538
+            let num = 0
539
+            data.map(item => {
540
+              num += item.price.toFixed(2) * item.count
541
+            })
542
+            sums[index] = num.toFixed(2)
543
+          } else {
544
+            sums[index] = ''
545
+          }
546
+        })
547
+
548
+        return sums
549
+      }
550
+    },
551
+    created() {
552
+      this.getSummaryDetailList()
553
+
554
+    }
555
+  }
556
+</script>

+ 508 - 5
src/xt_pages/outpatientTool/components/gather.vue Parādīt failu

@@ -1,13 +1,516 @@
1 1
 <template>
2
+  <div>
3
+      <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
4
+          <div>
5
+              <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
6
+              <!--@click="Action">-->
7
+              <!--导出-->
8
+              <!--</el-button>-->
9
+              <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
10
+                        @keyup.enter.native='searchAction'
11
+                        placeholder="请输入患者姓名"
2 12
 
13
+                        class="filter-item"/>
14
+              <el-select size="small" v-model="item_type" placeholder="请选择"
15
+                          style="width:150px;margin-left:10px;" @change="changeItem">
16
+                  <el-option
17
+                          label="全部"
18
+                          value="0">
19
+                  </el-option>
20
+                  <el-option
21
+                          v-for="item,index in items"
22
+                          :key="index"
23
+                          :label="item.name"
24
+                          :value="item.id">
25
+                  </el-option>
26
+              </el-select>
27
+              <el-date-picker
28
+                      v-model="chargeDate"
29
+                      type="daterange"
30
+                      value-format="yyyy-MM-dd"
31
+                      range-separator="至"
32
+                      start-placeholder="开始日期"
33
+                      @change="changeDate"
34
+                      end-placeholder="结束日期">
35
+              </el-date-picker>
36
+              <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
37
+              <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
38
+          </div>
39
+          <div>
40
+              <!-- <el-popover
41
+                placement="bottom"
42
+                width="210"
43
+                trigger="click">
44
+                <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
45
+                <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
46
+                <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
47
+
48
+              </el-popover> -->
49
+              <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
50
+          </div>
51
+      </div>
52
+      <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="tables"
53
+                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
54
+                v-loading="gather_loading"
55
+                show-summary
56
+                max-height="600"
57
+                :span-method="merge"
58
+                :summary-method="getTotal"
59
+                highlight-current-row>
60
+
61
+          <el-table-column align="center" prop="name" label="患者名字">
62
+              <template slot-scope="scope">{{ scope.row.name }}</template>
63
+          </el-table-column>
64
+          <!--<el-table-column align="center" prop="name" label="患者类型">-->
65
+          <!--<template slot-scope="scope"></template>-->
66
+          <!--</el-table-column>-->
67
+
68
+          <el-table-column align="center" prop="item_name" label="项目类别">
69
+              <template slot-scope="scope">{{scope.row.item_name}}</template>
70
+          </el-table-column>
71
+          <el-table-column align="center" prop="price" label="费用">
72
+              <template slot-scope="scope">{{scope.row.price.toFixed(2)}}</template>
73
+          </el-table-column>
74
+          <el-table-column align="center" prop="sum" label="费用总额">
75
+              <template slot-scope="scope">
76
+                  <div>{{scope.row.sum.toFixed(2)}}</div>
77
+              </template>
78
+          </el-table-column>
79
+
80
+      </el-table>
81
+  </div>
3 82
 </template>
4 83
 
84
+
5 85
 <script>
86
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
87
+  import { GetSummaryDetail } from '@/api/his/his'
88
+  import { uParseTime } from '@/utils/tools'
89
+  // import NewStatementPrint from './newStatementPrint'
90
+  const moment = require('moment')
6 91
   export default {
7
-    name: 'gather'
8
-  }
9
-</script>
92
+    components: {
93
+      BreadCrumb
94
+
95
+    },
96
+    data() {
97
+      return {
98
+        gather_loading:false,
99
+        crumbs: [],
100
+        tempArr: [],
101
+        sameRowArr: [],
102
+        keywords: '',
103
+        pos:0,
104
+
105
+        tableData: [],
106
+        chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
107
+        item_type: '0',
108
+        items: [
109
+          { id: 1, name: '药品' },
110
+          { id: 2, name: '项目' },
111
+          { id: 3, name: '耗材' },
112
+
113
+        ]
114
+
115
+      }
116
+    },
117
+    methods: {
118
+
119
+      objectSpanMethod({ row, column, rowIndex, columnIndex }) {
120
+        if (columnIndex === 0) {
121
+          if (rowIndex % 2 === 0) {
122
+            return {
123
+              rowspan: 2,
124
+              colspan: 1
125
+            }
126
+          } else {
127
+            return {
128
+              rowspan: 0,
129
+              colspan: 0
130
+            }
131
+          }
132
+        }
133
+      },
134
+      unique(arr) {
135
+        const res = new Map()
136
+        return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
137
+      },
138
+      changeDate() {
139
+        // console.log(this.chargeDate)
140
+        this.getSummaryDetailList()
141
+      },
142
+      changeItem() {
143
+        this.getSummaryDetailList()
144
+      },
145
+      searchAction() {
146
+        this.item_type = '0'
147
+        this.getSummaryDetailList()
148
+      },
149
+      getSummaryDetailList() {
150
+        this.gather_loading = true
151
+        let start_time = this.chargeDate[0]
152
+        let end_time = this.chargeDate[1]
153
+        let params = {
154
+          start_time: start_time,
155
+          end_time: end_time,
156
+          type: this.item_type,
157
+          keyword: this.keywords
158
+        }
159
+        GetSummaryDetail(params).then(response => {
160
+          if (response.data.state == 0) {
161
+            this.gather_loading = false
162
+
163
+            this.$message.error(response.data.msg)
164
+            return false
165
+          } else {
166
+            this.gather_loading = false
167
+
168
+            let tempPatients = []
169
+            let tempPatientsTwo = []
170
+            this.tableData = []
171
+            let tempData = response.data.data.patients
172
+            let data = response.data.data.patients
173
+            let orders = this.unique(tempData)
174
+            for (let i = 0; i < orders.length; i++) {
175
+              let obj = {
176
+                patient_id: orders[i].id,
177
+                name: orders[i].name,
178
+                orders: []
179
+              }
180
+              for (let b = 0; b < data.length; b++) {
181
+                if (orders[i].id == data[b].id) {
182
+                  obj.orders = obj.orders.concat(data[b].orders)
183
+                }
184
+              }
185
+              tempPatients.push(obj)
186
+            }
187
+
188
+            for (let i = 0; i < tempPatients.length; i++) {
189
+              let obj = {
190
+                patient_id: tempPatients[i].patient_id,
191
+                name: tempPatients[i].name,
192
+                order_info: []
193
+              }
194
+              let orders = tempPatients[i].orders
195
+              for (let b = 0; b < orders.length; b++) {
196
+                for (let c = 0; c < orders[b].order_info.length; c++) {
197
+                  let newObj = {}
198
+
199
+                  newObj['count'] = orders[b].order_info[c].cnt
200
+                  newObj['price'] = orders[b].order_info[c].pric
201
+                  if (orders[b].order_info[c].advice_id > 0 && orders[b].order_info[c].project_id == 0) {
202
+                    newObj['type'] = 1
203
+                    newObj['item_name'] = orders[b].order_info[c].advice.advice_name
204
+                    newObj['item_id'] = orders[b].order_info[c].advice.drug_id
205
+
206
+                  }
207
+                  if (orders[b].order_info[c].advice_id == 0 && orders[b].order_info[c].project_id > 0) {
208
+                    newObj['item_id'] = orders[b].order_info[c].project.project_id
209
+                    if (orders[b].order_info[c].project.type == 2) {
210
+                      newObj['type'] = 2
211
+                      newObj['item_name'] = orders[b].order_info[c].project.project.project_name
212
+                    } else if (orders[b].order_info[c].project.type == 3) {
213
+                      newObj['type'] = 3
214
+                      newObj['item_name'] = orders[b].order_info[c].project.good_info.good_name
215
+                    }
216
+                  }
217
+                  obj.order_info.push(newObj)
218
+                }
219
+              }
220
+              tempPatientsTwo.push(obj)
221
+            }
222
+            console.log(tempPatientsTwo)
223
+
224
+            for (let d = 0; d < tempPatientsTwo.length; d++) {
225
+              tempPatientsTwo[d]['new_order_info'] = []
226
+              let project = []
227
+              let advice = []
228
+              for (let b = 0; b < tempPatientsTwo[d].order_info.length; b++) {
229
+                if (tempPatientsTwo[d].order_info[b].type == 1) {
230
+                  advice.push(tempPatientsTwo[d].order_info[b])
231
+                } else {
232
+                  project.push(tempPatientsTwo[d].order_info[b])
233
+                }
234
+              }
235
+              // project = this.uniqueProjectAndAdvice(project)
236
+              // advice = this.uniqueProjectAndAdvice(advice)
237
+
238
+              let obj = {}
239
+              let price = 0
240
+
241
+              let obj2 = {}
242
+              let price2 = 0
243
+
244
+              let obj3 = {}
245
+              let price3 = 0
246
+
247
+              for (let i = 0; i < project.length; i++) {
248
+                if (project[i].type == 2) {
249
+                  price = parseFloat(price.toString()) + parseFloat((parseFloat(project[i].count.toString()) * parseFloat(project[i].price.toString()).toFixed(2)).toString())
250
+                } else if (project[i].type == 3) {
251
+                  price3 = parseFloat(price3.toString()) + parseFloat((parseFloat(project[i].count.toString()) * parseFloat(project[i].price.toString()).toFixed(2)).toString())
252
+                }
253
+              }
254
+
255
+
256
+              for (let i = 0; i < advice.length; i++) {
257
+                price2 = parseFloat(price2.toString()) + parseFloat((parseFloat(advice[i].count.toString()) * parseFloat(advice[i].price.toString()).toFixed(2)).toString())
258
+              }
10 259
 
11
-<style scoped>
12 260
 
13
-</style>
261
+              switch (parseInt(this.item_type)) {
262
+                case 0:
263
+
264
+                  obj['sum'] = price + price2 + price3
265
+                  obj['price'] = price
266
+                  obj['item_name'] = '项目'
267
+                  obj['name'] = tempPatientsTwo[d].name
268
+                  obj['patient_id'] = tempPatientsTwo[d].patient_id
269
+                  this.tableData.push(obj)
270
+
271
+                  obj2['sum'] = 0
272
+                  obj2['price'] = price2
273
+                  obj2['item_name'] = '药品'
274
+                  obj2['name'] = tempPatientsTwo[d].name
275
+                  obj2['patient_id'] = tempPatientsTwo[d].patient_id
276
+                  this.tableData.push(obj2)
277
+
278
+                  obj3['sum'] = 0
279
+                  obj3['price'] = price3
280
+                  obj3['item_name'] = '耗材'
281
+                  obj3['name'] = tempPatientsTwo[d].name
282
+                  obj3['patient_id'] = tempPatientsTwo[d].patient_id
283
+                  this.tableData.push(obj3)
284
+                  break
285
+                case 1:
286
+                  obj2['sum'] = price2
287
+                  obj2['price'] = price2
288
+                  obj2['item_name'] = '药品'
289
+                  obj2['name'] = tempPatientsTwo[d].name
290
+                  obj2['patient_id'] = tempPatientsTwo[d].patient_id
291
+                  this.tableData.push(obj2)
292
+                  break
293
+                case 2:
294
+
295
+                  obj['sum'] = price
296
+                  obj['price'] = price
297
+                  obj['item_name'] = '项目'
298
+                  obj['name'] = tempPatientsTwo[d].name
299
+                  obj['patient_id'] = tempPatientsTwo[d].patient_id
300
+                  this.tableData.push(obj)
301
+                  break
302
+                case 3:
303
+                  obj3['sum'] = price3
304
+                  obj3['price'] = price3
305
+                  obj3['item_name'] = '耗材'
306
+                  obj3['name'] = tempPatientsTwo[d].name
307
+                  obj3['patient_id'] = tempPatientsTwo[d].patient_id
308
+                  this.tableData.push(obj3)
309
+                  break
310
+
311
+              }
312
+
313
+
314
+
315
+            }
316
+
317
+            this.handleSpanTempArr()
318
+            // this.tableData = tempPatientsTwo
319
+
320
+            // console.log(tempPatientsTwo.length)
321
+            //
322
+
323
+          }
324
+          //
325
+          // console.log('去重前')
326
+          // console.log(advice)
327
+          // console.log(project)
328
+          // //
329
+          // //
330
+
331
+          // //
332
+          // console.log('去重后')
333
+          //
334
+          // console.log(advice.length)
335
+          // console.log(project.length)
336
+          //
337
+          // for (let i = 0; i < project.length; i++) {
338
+          //   let obj = {}
339
+          //   let count = 0
340
+          //   for (let a = 0; a < tempPatientsTwo.length; a++) {
341
+          //     if (project[i].patient_id == tempPatientsTwo[a].patient_id && project[i].item_id == tempPatientsTwo[a].item_id && project[i].price == tempPatientsTwo[a].price) {
342
+          //       count = count + tempPatientsTwo[a].count
343
+          //       obj['count'] = count
344
+          //
345
+          //     }
346
+          //     obj['price'] = project[i].price
347
+          //     obj['type'] = project[i].type
348
+          //     obj['item_name'] = project[i].item_name
349
+          //     obj['item_id'] = project[i].item_id
350
+          //     obj['name'] = project[i].name
351
+          //     obj['patient_id'] = project[i].patient_id
352
+          //     obj['count'] = count
353
+          //     this.tableData.push(obj)
354
+          //   }
355
+          // }
356
+          //
357
+          //
358
+          // for (let i = 0; i < advice.length; i++) {
359
+          //   let obj = {}
360
+          //   let count = 0
361
+          //   for (let a = 0; a < tempPatientsTwo.length; a++) {
362
+          //     if (advice[i].patient_id == tempPatientsTwo[a].patient_id && advice[i].item_id == tempPatientsTwo[a].item_id && advice[i].price == tempPatientsTwo[a].price) {
363
+          //       count = count + tempPatientsTwo[a].count
364
+          //       obj['count'] = count
365
+          //
366
+          //     }
367
+          //     obj['price'] = advice[i].price
368
+          //     obj['type'] = advice[i].type
369
+          //     obj['item_name'] = advice[i].item_name
370
+          //     obj['item_id'] = advice[i].item_id
371
+          //     obj['name'] = advice[i].name
372
+          //     obj['patient_id'] = advice[i].patient_id
373
+          //     this.tableData.push(obj)
374
+          //   }
375
+          // }
376
+          // console.log(this.tableData.length)
377
+          // this.tableData = this.sort(this.tableData)
378
+
379
+        })
380
+      }, uniqueProjectAndAdvice(array) {
381
+        // res用来存储结果
382
+        var res = []
383
+        for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
384
+          for (var j = 0, resLen = res.length; j < resLen; j++) {
385
+            if (array[i].item_id === res[j].item_id && array[i].price === res[j].price) {
386
+              break
387
+            }
388
+          }
389
+          // 如果array[i]是唯一的,那么执行完循环,j等于resLen
390
+          if (j === resLen) {
391
+            res.push(array[i])
392
+          }
393
+        }
394
+        return res
395
+      }, sort(arr) {
396
+        for (var i = 0; i < arr.length - 1; i++) {
397
+          for (var j = 0; j < arr.length - i - 1; j++) {
398
+            if (arr[j].patient_id > arr[j + 1].patient_id) {// 相邻元素两两对比
399
+              var hand = arr[j]
400
+              arr[j] = arr[j + 1]
401
+              arr[j + 1] = hand
402
+
403
+            }
404
+          }
405
+        }
406
+        return arr
407
+      }, handleSpanTempArr() {
408
+        this.tempArr = []
409
+
410
+        for (let i = 0; i < this.tableData.length; i++) {
411
+          if (i === 0) {
412
+            this.tempArr.push(1)
413
+            this.pos = 0
414
+          } else {
415
+            // 判断当前元素与上一个元素是否相同
416
+            if (this.tableData[i].patient_id === this.tableData[i - 1].patient_id) {
417
+              this.tempArr[this.pos] += 1
418
+              this.tempArr.push(0)
419
+            } else {
420
+              this.tempArr.push(1)
421
+              this.pos = i
422
+            }
423
+          }
424
+        }
425
+
426
+        let sameRowArr = [], sIdx = 0
427
+        this.tableData.forEach((item, index) => {
428
+          item.index = index
429
+          if (index === 0) {
430
+            sameRowArr.push([index])
431
+          } else {
432
+            if (item.patient_id === this.tableData[index - 1].patient_id) {
433
+              sameRowArr[sIdx].push(index)
434
+            } else {
435
+              sIdx = sIdx + 1
436
+              sameRowArr.push([index])
437
+            }
438
+          }
439
+        })
440
+        this.sameRowArr = sameRowArr
441
+      }, merge({ row, column, rowIndex, columnIndex }) {
442
+        if (columnIndex === 0 || columnIndex === 3) {
443
+          const _row = this.tempArr[rowIndex]
444
+          const _col = _row > 0 ? 1 : 0
445
+          return {
446
+            rowspan: _row,
447
+            colspan: _col
448
+          }
449
+        }
450
+      }, getTotal(param) {
451
+        const { columns, data } = param
452
+        const sums = []
453
+        columns.forEach((column, index) => {
454
+          if (index === 0) {
455
+            sums[index] = '合计'
456
+            return
457
+          }
458
+          console.log(data)
459
+          const values = data.map(item => Number(item[column.property]))
460
+          if (column.property === 'sum') {
461
+            sums[index] = values.reduce((prev, curr) => {
462
+              const value = Number(curr)
463
+              if (!isNaN(value)) {
464
+                return prev + curr
465
+              } else {
466
+                return prev
467
+              }
468
+            }, 0)
469
+            sums[index] = sums[index].toFixed(2)
470
+          } else {
471
+            sums[index] = ''
472
+          }
473
+        })
474
+
475
+        return sums
476
+      }, export_detail() {
477
+
478
+        let list = []
479
+        for (let i = 0; i < this.tableData.length; i++) {
480
+          let order = this.tableData[i]
481
+          let name = order.name
482
+          let item_name = order.item_name
483
+          let pay_sumamt = order.price.toFixed(2)
484
+          let total = order.sum.toFixed(2)
485
+
486
+
487
+          let obj = {
488
+            '患者姓名': name,
489
+            '项目类别': item_name,
490
+            '费用': pay_sumamt,
491
+            '费用总额':total,
492
+          }
493
+          list.push(obj)
494
+        }
495
+        import('@/vendor/Export2Excel').then(excel => {
496
+          const tHeader = [ '患者姓名', '项目名称', '费用', '费用总额']
497
+          const filterVal = [ '患者姓名', '项目名称', '费用', '费用总额']
498
+          const data = this.formatJson(filterVal, list)
499
+          excel.export_json_to_excel1({
500
+            header: tHeader,
501
+            data,
502
+            filename: '汇总',
503
+            ref:this.$refs['tables'].$el
504
+          })
505
+        })
506
+
507
+      }, formatJson(filterVal, jsonData) {
508
+        return jsonData.map(v => filterVal.map(j => v[j]))
509
+      }
510
+    },
511
+    created() {
512
+      this.getSummaryDetailList()
513
+
514
+    }
515
+  }
516
+</script>

+ 395 - 5
src/xt_pages/outpatientTool/components/settle.vue Parādīt failu

@@ -1,13 +1,403 @@
1 1
 <template>
2
+  <div>
3
+      <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
4
+          <div>
5
+              <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
6
+              <!--@click="Action">-->
7
+              <!--导出-->
8
+              <!--</el-button>-->
9
+              <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
10
+                        @keyup.enter.native='searchAction'
11
+                        placeholder="请输入患者姓名"
2 12
 
13
+                        class="filter-item"/>
14
+              <el-select size="small" v-model="item_type" placeholder="请选择"
15
+                          style="width:150px;margin-left:10px;" @change="changeItem">
16
+                  <el-option
17
+                          label="全部"
18
+                          value="0">
19
+                  </el-option>
20
+                  <el-option
21
+                          v-for="item,index in items"
22
+                          :key="index"
23
+                          :label="item.name"
24
+                          :value="item.id">
25
+                  </el-option>
26
+              </el-select>
27
+              <el-date-picker
28
+                      v-model="chargeDate"
29
+                      type="daterange"
30
+                      value-format="yyyy-MM-dd"
31
+                      range-separator="至"
32
+                      start-placeholder="开始日期"
33
+                      @change="changeDate"
34
+                      end-placeholder="结束日期">
35
+              </el-date-picker>
36
+              <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
37
+              <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
38
+          </div>
39
+          <div>
40
+              <!-- <el-popover
41
+                placement="bottom"
42
+                width="210"
43
+                trigger="click">
44
+                <el-button size="small" ref="button_two" @click="open(1)">打印清单</el-button>
45
+                <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
46
+                <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
47
+
48
+              </el-popover> -->
49
+              <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
50
+          </div>
51
+      </div>
52
+      <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="report-table"
53
+                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
54
+                show-summary
55
+                v-loading="settle_loading"
56
+                max-height="600"
57
+                :span-method="merge"
58
+                :summary-method="getTotal"
59
+                highlight-current-row>
60
+
61
+          <el-table-column align="center" prop="name" label="患者名字">
62
+              <template slot-scope="scope">{{ scope.row.other_name }}</template>
63
+          </el-table-column>
64
+          <el-table-column align="center" prop="item_name" label="结算日期">
65
+              <template slot-scope="scope">
66
+                  {{scope.row.setl_time?scope.row.setl_time.split(" ")[0]:getTimes(scope.row.settle_accounts_date)}}
67
+              </template>
68
+          </el-table-column>
69
+
70
+          <el-table-column align="center" prop="item_name" label="结算类型">
71
+              <template slot-scope="scope">
72
+                  <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
73
+                  <div v-if="scope.row.is_medicine_insurance == 1">医保</div>
74
+              </template>
75
+          </el-table-column>
76
+          <el-table-column align="center" prop="item_name" label="处方类型">
77
+              <template slot-scope="scope">
78
+                  <div v-if="scope.row.med_type == '14'">门诊特殊病</div>
79
+                  <div v-if="scope.row.med_type == '11'">普通门诊</div>
80
+              </template>
81
+          </el-table-column>
82
+          <el-table-column align="center" prop="item_name" label="医疗费总额">
83
+              <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
84
+          </el-table-column>
85
+          <el-table-column align="center" prop="item_name" label="基金支付金额">
86
+              <template slot-scope="scope">{{scope.row.fund_pay_sumamt}}</template>
87
+          </el-table-column>
88
+          <el-table-column align="center" prop="item_name" label="个人账户支付金额">
89
+              <template slot-scope="scope">{{scope.row.acct_pay}}</template>
90
+          </el-table-column>
91
+          <el-table-column align="center" prop="item_name" label="个人支付金额">
92
+              <template slot-scope="scope">{{scope.row.psn_cash_pay}}</template>
93
+          </el-table-column>
94
+          <el-table-column align="center" prop="total" label="费用总额">
95
+              <template slot-scope="scope">
96
+                  <div>{{scope.row.total.toFixed(2)}}</div>
97
+              </template>
98
+          </el-table-column>
99
+
100
+      </el-table>
101
+  </div>
3 102
 </template>
4 103
 
104
+
5 105
 <script>
106
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
107
+  import { GetSummarySettle } from '@/api/his/his'
108
+  import { uParseTime } from '@/utils/tools'
109
+  // import NewStatementPrint from './newStatementPrint'
110
+  const moment = require('moment')
6 111
   export default {
7
-    name: 'settle'
8
-  }
9
-</script>
112
+    components: {
113
+      BreadCrumb
114
+
115
+    },
116
+    data() {
117
+      return {
118
+        settle_loading:false,
119
+        crumbs: [],
120
+        tempArr: [],
121
+        sameRowArr: [],
122
+        tableData: [],
123
+        chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
124
+        item_type: '0',
125
+        items: [
126
+          { id: 1, name: '医保' },
127
+          { id: 2, name: '自费' },
128
+          { id: 3, name: '门诊特殊病' },
129
+          { id: 4, name: '普通门诊' }
130
+
131
+        ]
132
+
133
+      }
134
+    },
135
+    methods: {
136
+      getTimes(time) {
137
+        return uParseTime(time, '{y}-{m}-{d}')
138
+      },
139
+      objectSpanMethod({ row, column, rowIndex, columnIndex }) {
140
+        if (columnIndex === 0) {
141
+          if (rowIndex % 2 === 0) {
142
+            return {
143
+              rowspan: 2,
144
+              colspan: 1
145
+            }
146
+          } else {
147
+            return {
148
+              rowspan: 0,
149
+              colspan: 0
150
+            }
151
+          }
152
+        }
153
+      },
154
+      unique(arr) {
155
+        const res = new Map()
156
+        return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
157
+      },
158
+      changeDate() {
159
+        // console.log(this.chargeDate)
160
+        this.getSummarySettleList()
161
+      },
162
+      changeItem() {
163
+        this.getSummarySettleList()
164
+
165
+      },
166
+      searchAction() {
167
+        this.item_type = '0'
168
+        this.getSummarySettleList()
169
+
170
+      },
171
+      getSummarySettleList() {
172
+        let start_time = this.chargeDate[0]
173
+        let end_time = this.chargeDate[1]
174
+        let params = {
175
+          start_time: start_time,
176
+          end_time: end_time,
177
+          type: this.item_type,
178
+          keyword: this.keywords
179
+        }
180
+        this.settle_loading = true
181
+        GetSummarySettle(params).then(response => {
182
+          if (response.data.state == 0) {
183
+            this.settle_loading = false
184
+
185
+            this.$message.error(response.data.msg)
186
+            return false
187
+          } else {
188
+            this.settle_loading = false
189
+            this.tableData = []
190
+            let data = response.data.data.patients
191
+
192
+            for (let i = 0; i < data.length; i++) {
193
+              let total = 0
194
+              for (let b = 0; b < data[i].orders.length; b++) {
195
+                let order = data[i].orders[b]
196
+                order['other_name'] = data[i].name
197
+                total = parseFloat((parseFloat(total.toString()) + parseFloat(data[i].orders[b].medfee_sumamt.toString())).toFixed(2).toString())
198
+              }
199
+
200
+              data[i]['total'] = total
201
+            }
202
+            console.log(data)
203
+
204
+            for (let i = 0; i < data.length; i++) {
205
+              for (let b = 0; b < data[i].orders.length; b++) {
206
+                let order = data[i].orders[b]
207
+
208
+                if(b == 0){
209
+                  order['total'] = data[i].total
210
+
211
+                }else{
212
+                  order['total'] = 0
213
+
214
+                }
215
+
216
+                this.tableData.push(order)
10 217
 
11
-<style scoped>
218
+              }
219
+            }
220
+            console.log(this.tableData)
12 221
 
13
-</style>
222
+            this.handleSpanTempArr()
223
+          }
224
+        })
225
+      }, uniqueProjectAndAdvice(array) {
226
+        // res用来存储结果
227
+        var res = []
228
+        for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
229
+          for (var j = 0, resLen = res.length; j < resLen; j++) {
230
+            if (array[i].item_id === res[j].item_id && array[i].price === res[j].price) {
231
+              break
232
+            }
233
+          }
234
+          // 如果array[i]是唯一的,那么执行完循环,j等于resLen
235
+          if (j === resLen) {
236
+            res.push(array[i])
237
+          }
238
+        }
239
+        return res
240
+      }, sort(arr) {
241
+        for (var i = 0; i < arr.length - 1; i++) {
242
+          for (var j = 0; j < arr.length - i - 1; j++) {
243
+            if (arr[j].patient_id > arr[j + 1].patient_id) {// 相邻元素两两对比
244
+              var hand = arr[j]
245
+              arr[j] = arr[j + 1]
246
+              arr[j + 1] = hand
247
+
248
+            }
249
+          }
250
+        }
251
+        return arr
252
+      }, handleSpanTempArr() {
253
+        this.tempArr = []
254
+
255
+        for (let i = 0; i < this.tableData.length; i++) {
256
+          if (i === 0) {
257
+            this.tempArr.push(1)
258
+            this.pos = 0
259
+          } else {
260
+            // 判断当前元素与上一个元素是否相同
261
+            if (this.tableData[i].patient_id === this.tableData[i - 1].patient_id) {
262
+              this.tempArr[this.pos] += 1
263
+              this.tempArr.push(0)
264
+            } else {
265
+              this.tempArr.push(1)
266
+              this.pos = i
267
+            }
268
+          }
269
+        }
270
+
271
+        let sameRowArr = [], sIdx = 0
272
+        this.tableData.forEach((item, index) => {
273
+          item.index = index
274
+          if (index === 0) {
275
+            sameRowArr.push([index])
276
+          } else {
277
+            if (item.patient_id === this.tableData[index - 1].patient_id) {
278
+              sameRowArr[sIdx].push(index)
279
+            } else {
280
+              sIdx = sIdx + 1
281
+              sameRowArr.push([index])
282
+            }
283
+          }
284
+        })
285
+        this.sameRowArr = sameRowArr
286
+      }, merge({ row, column, rowIndex, columnIndex }) {
287
+        if (columnIndex === 0 || columnIndex === 8) {
288
+          const _row = this.tempArr[rowIndex]
289
+          const _col = _row > 0 ? 1 : 0
290
+          return {
291
+            rowspan: _row,
292
+            colspan: _col
293
+          }
294
+        }
295
+      },
296
+      getTotal(param) {
297
+        const { columns, data } = param
298
+        const sums = []
299
+        columns.forEach((column, index) => {
300
+          if (index === 0) {
301
+            sums[index] = '合计'
302
+            return
303
+          }
304
+          console.log(data)
305
+          const values = data.map(item => Number(item[column.property]))
306
+          if (column.property === 'total') {
307
+            sums[index] = values.reduce((prev, curr) => {
308
+              const value = Number(curr)
309
+              if (!isNaN(value)) {
310
+                return prev + curr
311
+              } else {
312
+                return prev
313
+              }
314
+            }, 0)
315
+            sums[index] = sums[index].toFixed(2)
316
+          } else {
317
+            sums[index] = ''
318
+          }
319
+        })
320
+
321
+        return sums
322
+      }, export_detail() {
323
+
324
+        let list = []
325
+        for (let i = 0; i < this.tableData.length; i++) {
326
+          let order = this.tableData[i]
327
+          let name = order.other_name
328
+          let time = ''
329
+          let balance_accounts = ""
330
+          let med_type = ""
331
+          let medfee_sumamt = ""
332
+          let fund_pay_sumamt = ""
333
+          let acct_pay = ""
334
+          let psn_cash_pay = ""
335
+          let total = ""
336
+          if(order.setl_time.length == 0){
337
+
338
+            time = this.getTimes(order.settle_accounts_date)
339
+
340
+          }else {
341
+
342
+            time = order.setl_time.split(" ")[0]
343
+
344
+          }
345
+
346
+          if (order.is_medicine_insurance == 0) {
347
+            balance_accounts = '自费'
348
+          }
349
+
350
+          if (order.is_medicine_insurance == 1) {
351
+            balance_accounts = '医保'
352
+          }
353
+
354
+          if (order.med_type == '14') {
355
+            med_type = '门诊特殊病'
356
+          }
357
+
358
+          if (order.med_type == '11') {
359
+            med_type = '普通门诊'
360
+          }
361
+
362
+          medfee_sumamt = order.medfee_sumamt
363
+          fund_pay_sumamt = order.fund_pay_sumamt
364
+          acct_pay = order.acct_pay
365
+          psn_cash_pay = order.psn_cash_pay
366
+          total = order.total
367
+
368
+
369
+          let obj = {
370
+            '患者姓名': name,
371
+            '结算日期': time,
372
+            '结算类型': balance_accounts,
373
+            '处方类型': med_type,
374
+            '医疗费总额': medfee_sumamt,
375
+            '基金支付金额': fund_pay_sumamt,
376
+            '个人账户支付金额': acct_pay,
377
+            '个人支付基金': psn_cash_pay,
378
+            '费用总额':total,
379
+          }
380
+          list.push(obj)
381
+        }
382
+        import('@/vendor/Export2Excel').then(excel => {
383
+          const tHeader = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金', '费用总额']
384
+          const filterVal = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金', '费用总额']
385
+          const data = this.formatJson(filterVal, list)
386
+          excel.export_json_to_excel1({
387
+            header: tHeader,
388
+            data,
389
+            filename: '结算明细',
390
+            ref:this.$refs['report-table'].$el
391
+          })
392
+        })
393
+
394
+      }, formatJson(filterVal, jsonData) {
395
+        return jsonData.map(v => filterVal.map(j => v[j]))
396
+      }
397
+    },
398
+    created() {
399
+      this.getSummarySettleList()
400
+
401
+    }
402
+  }
403
+</script>

+ 267 - 0
src/xt_pages/outpatientTool/labelPrint.vue Parādīt failu

@@ -0,0 +1,267 @@
1
+<template>
2
+    <div class="main-contain outpatientChargesManagement">
3
+        <div class="position">
4
+            <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+        </div>
6
+        <div>
7
+            <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
+                <div>
9
+                    <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
10
+                              @keyup.enter.native='searchAction'
11
+                              placeholder="请输入患者姓名"
12
+                              class="filter-item"/>
13
+                    <el-select size="small" v-model="item_type" placeholder="请选择"
14
+                               style="width:150px;margin-left:10px;" @change="changeItem">
15
+                        <el-option
16
+                                label="全部"
17
+                                value="0">
18
+                        </el-option>
19
+                        <el-option
20
+                                v-for="item,index in items"
21
+                                :key="index"
22
+                                :label="item.name"
23
+                                :value="item.id">
24
+                        </el-option>
25
+                    </el-select>
26
+                    <el-date-picker
27
+                            v-model="chargeDate"
28
+                            type="date"
29
+                            format="yyyy-MM-dd"
30
+                            value-format="yyyy-MM-dd"
31
+                            @change="changeDate"
32
+                    >
33
+                    </el-date-picker>
34
+                </div>
35
+            </div>
36
+            <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
37
+                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
38
+                      highlight-current-row>
39
+
40
+                <el-table-column align="center" prop="name" label="患者名字">
41
+                    <template slot-scope="scope">{{ scope.row.patient_name }}</template>
42
+                </el-table-column>
43
+
44
+                <el-table-column align="center" prop="name" label="处方号">
45
+                    <template slot-scope="scope">{{scope.row.number}}</template>
46
+                </el-table-column>
47
+                <el-table-column align="center" prop="name" label="创建时间">
48
+                    <template slot-scope="scope">{{getTime(scope.row.record_date, '{y}-{m}-{d}')}}</template>
49
+                </el-table-column>
50
+                <el-table-column align="center" prop="name" label="创建医生">
51
+                    <template slot-scope="scope">{{scope.row.doctor_name}}</template>
52
+                </el-table-column>
53
+                <el-table-column align="center" prop="name" label="项目名称">
54
+                    <template slot-scope="scope">
55
+                        <div>{{scope.row.project_name}}</div>
56
+                    </template>
57
+                </el-table-column>
58
+
59
+                <el-table-column
60
+                        align="center"
61
+                        label="操作"
62
+                        width="180"
63
+                        class-name="small-padding fixed-width"
64
+                >
65
+                    <template slot-scope="scope">
66
+                        <el-tooltip class="item" effect="dark" content="打印" placement="top">
67
+                            <el-button
68
+                                    type="primary"
69
+                                    size="small"
70
+                                    icon="el-icon-edit-outline"
71
+                                    @click="Print(scope.row, scope.$index)"
72
+                            >
73
+                            </el-button>
74
+                        </el-tooltip>
75
+                    </template>
76
+                </el-table-column>
77
+
78
+
79
+            </el-table>
80
+            <el-pagination
81
+                    @size-change="handleSizeChange"
82
+                    @current-change="handleCurrentChange"
83
+                    :page-sizes="[10, 50, 100]"
84
+                    :page-size="10"
85
+                    background
86
+                    style="margin-top:20px;float: right"
87
+                    layout="total, sizes, prev, pager, next, jumper"
88
+                    :total="total"
89
+            >
90
+            </el-pagination>
91
+        </div>
92
+
93
+        <el-dialog title="打印" :visible.sync="labelVisible">
94
+            <div>
95
+                <el-row style="float:right;">
96
+                    <el-col :span="24">
97
+                        <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印
98
+                        </el-button>
99
+                    </el-col>
100
+                </el-row>
101
+                  <div id="sign" class="signPrint">
102
+                      <div style="display:flex;margin-bottom:10px;">
103
+                          <div style="margin-left:15px;">
104
+                              <div style="font-weight:bold;font-size:24px;">C</div>
105
+                              <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
106
+                              <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
107
+                          </div>
108
+                          <img style="width:300px;height:80px;margin-left:10px;" id="barcode">
109
+                      </div>
110
+                      <div style="margin-bottom:5px;">{{current_number}}</div>
111
+                      <div style="display:flex;">
112
+                          <div style="padding-left:20px;">{{current_project_name}}</div>
113
+                          <div style="font-size:24px;margin-left:20px;">{{current_name}}</div>
114
+                      </div>
115
+                  </div>
116
+            </div>
117
+            <div slot="footer" class="dialog-footer">
118
+                <el-button @click="labelVisible = false">取 消</el-button>
119
+                <el-button type="primary" @click="labelVisible = false">确 定</el-button>
120
+            </div>
121
+        </el-dialog>
122
+    </div>
123
+
124
+</template>
125
+
126
+
127
+<script>
128
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
129
+  import { GetLabelList } from '@/api/his/his'
130
+  import { uParseTime } from '@/utils/tools'
131
+  import SignPrint from '../dialysis/signPrint'
132
+  import JsBarcode from 'jsbarcode'
133
+
134
+  // import NewStatementPrint from './newStatementPrint'
135
+  const moment = require('moment')
136
+  export default {
137
+    components: {
138
+      SignPrint,
139
+      BreadCrumb
140
+
141
+    },
142
+    data() {
143
+      return {
144
+        current_ctime: 0,
145
+        current_number: '',
146
+        current_project_name: '',
147
+        current_name: '',
148
+
149
+        labelVisible: false,
150
+        crumbs: [
151
+          { path: false, name: 'HIS工具' },
152
+          { path: false, name: '标签打印' }
153
+        ],
154
+        detail_loading: false,
155
+        tempArr: [],
156
+        pos: 0,
157
+        page: 1,
158
+        limit: 10,
159
+        total: 0,
160
+        current_id: 0,
161
+        sameRowArr: [],
162
+        keywords: '',
163
+        tableData: [],
164
+        chargeDate: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
165
+        item_type: '0',
166
+        items: [
167
+          { id: 1, name: '已打印' },
168
+          { id: 2, name: '未打印' }
169
+        ]
170
+
171
+      }
172
+    },
173
+    methods: {
174
+      printAction: function() {
175
+        const style = '@media print { .sign{width:960px;margin: 0 auto;text-align: center;border-collapse: collapse;}.order_title_panl {text-align: center;.main_title {font-size: 18px;line-height: 40px;font-weight: 500;}}.dialysisTable tr{padding: 10px 0;}.dialysisTable th {color: #000;padding: 0;margin: 0;height: 30px;}.dialysisTable tr td {padding: 12px 0;}.subadvice_content {text-align: left;padding-left: 25px !important;padding-right: 5px !important;}.advice_content {text-align: left;padding-left: 5px !important;padding-right: 5px !important;padding: 15px 5px !important;} }'
176
+        printJS({
177
+          printable: 'sign',
178
+          type: 'html',
179
+          documentTitle: '  ',
180
+          style: style,
181
+          scanStyles: false
182
+        })
183
+      },
184
+      getTime(value, temp) {
185
+        if (value != undefined) {
186
+          return uParseTime(value, temp)
187
+        }
188
+        return ''
189
+      },
190
+      Print(row, index) {
191
+        this.labelVisible = true
192
+        this.current_ctime = row.ctime
193
+        this.current_number = row.number
194
+        this.current_project_name = row.project_name
195
+        this.current_name = row.patient_name
196
+
197
+        this.$nextTick(() => {
198
+          JsBarcode('#barcode', 'DY2020080400088', {
199
+            format: 'CODE39',
200
+            lineColor: '#000',
201
+            background: '#EBEEF5',
202
+            width: 2,
203
+            height: 100,
204
+            displayValue: false
205
+          })
206
+
207
+        });
208
+
209
+      },
210
+      handleCurrentChange(page) {
211
+        this.page = page
212
+        this.getList()
213
+
214
+      },
215
+
216
+      handleSizeChange(limit) {
217
+        this.limit = limit
218
+        this.getList()
219
+
220
+      },
221
+
222
+      changeDate() {
223
+        this.page = 1
224
+        this.limit = 10
225
+        this.getList()
226
+      },
227
+      changeItem() {
228
+        this.page = 1
229
+        this.limit = 10
230
+        this.getList()
231
+      },
232
+      searchAction() {
233
+        this.page = 1
234
+        this.limit = 10
235
+        this.getList()
236
+      },
237
+      getList() {
238
+        let params = {
239
+          record_date: this.chargeDate,
240
+          is_print: this.item_type,
241
+          keyword: this.keywords,
242
+          page: this.page,
243
+          limit: this.limit
244
+        }
245
+        GetLabelList(params).then(response => {
246
+          if (response.data.state == 0) {
247
+
248
+            this.$message.error(response.data.msg)
249
+            return false
250
+          } else {
251
+
252
+            this.tableData = response.data.data.labels
253
+            this.total = response.data.data.total
254
+
255
+          }
256
+
257
+        })
258
+      }
259
+    },
260
+    created() {
261
+      this.getList()
262
+
263
+    }, mounted() {
264
+
265
+    }
266
+  }
267
+</script>

+ 94 - 0
src/xt_pages/outpatientTool/signPrint.vue Parādīt failu

@@ -0,0 +1,94 @@
1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;" v-show="show">
12
+            <div id="sign" class="signPrint">
13
+                <div style="display:flex;margin-bottom:10px;">
14
+                    <div style="margin-left:15px;">
15
+                        <div>C</div>
16
+                        <div>09-15</div>
17
+                        <div>09-15</div>
18
+                    </div>
19
+                    <div style="width:100px;">
20
+                        <img id="barcode">
21
+                    </div>
22
+                </div>
23
+                <div>6821737912312983</div>
24
+                <div style="display:flex;">
25
+                    <div style="padding-left:20px;">哈顺利到家啦收到了空间</div>
26
+                    <div style="font-size:24px;">哈顺</div>
27
+                </div>
28
+            </div>
29
+        </div>
30
+    </div>
31
+</template>
32
+<script>
33
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
34
+import { getSchedualDoctors } from '@/api/advice'
35
+import { parseTime } from '@/utils'
36
+import print from 'print-js'
37
+import JsBarcode from 'jsbarcode'
38
+const moment = require('moment')
39
+export default {
40
+    components:{
41
+        BreadCrumb
42
+    },
43
+    data(){
44
+        return{
45
+            crumbs: [
46
+                { path: false, name: '标签打印' },
47
+                { path: false, name: '打印' }
48
+            ],
49
+        }
50
+    },
51
+    methods:{
52
+        printAction: function() {
53
+            const style = '@media print { .sign{width:960px;margin: 0 auto;text-align: center;border-collapse: collapse;}.order_title_panl {text-align: center;.main_title {font-size: 18px;line-height: 40px;font-weight: 500;}}.dialysisTable tr{padding: 10px 0;}.dialysisTable th {color: #000;padding: 0;margin: 0;height: 30px;}.dialysisTable tr td {padding: 12px 0;}.subadvice_content {text-align: left;padding-left: 25px !important;padding-right: 5px !important;}.advice_content {text-align: left;padding-left: 5px !important;padding-right: 5px !important;padding: 15px 5px !important;} }'
54
+
55
+            printJS({
56
+            printable: 'sign',
57
+            type: 'html',
58
+            documentTitle: '  ',
59
+            style: style,
60
+            scanStyles: false
61
+            })
62
+        },
63
+
64
+    },
65
+    created(){
66
+      JsBarcode('#barcode', 'DY2020080400088', {
67
+        format: 'CODE39',
68
+        lineColor: '#000',
69
+        background: '#EBEEF5',
70
+        width: 2,
71
+        height: 40,
72
+        displayValue: false
73
+      })
74
+    }
75
+}
76
+</script>
77
+
78
+
79
+<style rel="stylesheet/scss" lang="scss" scoped>
80
+.signPrint{
81
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
82
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
83
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
84
+    margin-bottom: 20px;
85
+    padding: 20px 10px;
86
+}
87
+.sign{
88
+    width:960px;
89
+    margin: 0 auto;
90
+    text-align: center;
91
+    border-collapse: collapse;
92
+}
93
+</style>
94
+

+ 7 - 11
src/xt_pages/outpatientTool/summary.vue Parādīt failu

@@ -6,18 +6,14 @@
6 6
         <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7 7
 
8 8
             <div class="mainRight">
9
-                <div class="mainHeader">
10
-                    <el-tabs v-model="titleType" @tab-click="handleClick"
11
-                             style="position: fixed;width: calc(100% - 490px);background:#fff;">
12
-                        <el-tab-pane label="明细" name="明细"></el-tab-pane>
13
-                        <el-tab-pane label="汇总" name="汇总"></el-tab-pane>
14
-                        <el-tab-pane label="结算" name="结算"></el-tab-pane>
15
-                    </el-tabs>
16
-
17
-                </div>
9
+                <el-tabs v-model="titleType" @tab-click="handleClick">
10
+                    <el-tab-pane label="明细" name="明细"></el-tab-pane>
11
+                    <el-tab-pane label="汇总" name="汇总"></el-tab-pane>
12
+                    <el-tab-pane label="结算" name="结算"></el-tab-pane>
13
+                </el-tabs>
18 14
                 <detail v-if="titleType == '明细'"></detail>
19
-                <settle v-if="titleType == '汇总'"></settle>
20
-                <gather v-if="titleType == '结算'"></gather>
15
+                <gather v-if="titleType == '汇总'"></gather>
16
+                <settle v-if="titleType == '结算'"></settle>
21 17
             </div>
22 18
         </div>
23 19
     </div>

+ 1 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue Parādīt failu

@@ -179,7 +179,7 @@
179 179
             {{scope.row.count}}
180 180
           </template>
181 181
         </el-table-column>
182
-        <el-table-column label="总价5555" align="center">
182
+        <el-table-column label="总价" align="center">
183 183
           <template slot-scope="scope">
184 184
             <!-- {{scope.row.price * scope.row.count}} -->
185 185
             {{scope.row.total_price}}
@@ -233,7 +233,6 @@ export default {
233 233
       "-" +
234 234
       (nowDay < 10 ? "0" + nowDay : nowDay);
235 235
     var start_time = window.sessionStorage.getItem('start_out_time')
236
-    console.log("start",start)
237 236
      var end_time =  window.sessionStorage.getItem('end_out_time')
238 237
     if(start_time!=null){
239 238
        this.start_time = start_time   

+ 26 - 14
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Parādīt failu

@@ -100,10 +100,10 @@
100 100
           </el-table-column>
101 101
          <el-table-column align="center" width="150">
102 102
           <template slot="header" slot-scope="scope" >
103
-                <span>批号</span>
103
+                <span >批号<span style="color: red">*</span></span>
104 104
             </template>
105 105
               <template slot-scope="scope">
106
-                <el-form-item style="padding-top: 20px">
106
+                <el-form-item style="padding-top: 20px" :rules="tableRules.batch_number"  :prop="'recordData.' + scope.$index + '.batch_number'">
107 107
                   <el-input
108 108
                     placeholder="请输入批号"
109 109
                     v-model="scope.row.batch_number"
@@ -191,17 +191,24 @@
191 191
               ></el-date-picker>
192 192
             </template>
193 193
           </el-table-column>
194
-          <el-table-column label="有效日期" width="180" align="center">
194
+          <el-table-column  width="180" align="center">
195
+             <template slot="header" slot-scope="scope">
196
+              <span>有效日期<span style="color: red">*</span></span>
197
+            </template>
195 198
             <template slot-scope="scope">
196
-              <el-date-picker
197
-                prefix-icon="el-icon-date"
198
-                style="width: 145px"
199
-                v-model="scope.row.expiry_date"
200
-                type="date"
201
-                placeholder="选择日期时间"
202
-                format="yyyy-MM-dd"
203
-                value-format="yyyy-MM-dd"
204
-              ></el-date-picker>
199
+              <el-form-item   :prop="'recordData.' + scope.$index + '.expiry_date'"
200
+                :rules="tableRules.expiry_date"
201
+                style="padding-top: 20px">
202
+                <el-date-picker
203
+                  prefix-icon="el-icon-date"
204
+                  style="width: 145px"
205
+                  v-model="scope.row.expiry_date"
206
+                  type="date"
207
+                  placeholder="选择日期时间"
208
+                  format="yyyy-MM-dd"
209
+                  value-format="yyyy-MM-dd"
210
+                ></el-date-picker>
211
+              </el-form-item>
205 212
             </template>
206 213
           </el-table-column>
207 214
 
@@ -342,8 +349,13 @@
342 349
 
343 350
           min_unit:[
344 351
             {required:true,message:'单位不能为空',trigger:'blur'}
345
-          ]
346
-
352
+          ],
353
+          batch_number:[
354
+           {required:true,message:'批号不能为空',trigger:'blur'}
355
+          ],
356
+          expiry_date:[
357
+           {required:true,message:'有效日期不能为空',trigger:'blur'}
358
+          ],
347 359
         },
348 360
         type: this.$route.query.type,
349 361
         total: '',

+ 18 - 10
src/xt_pages/stock/stockInOrderAdd.vue Parādīt failu

@@ -83,10 +83,11 @@
83 83
         
84 84
           <el-table-column align="center" width="150">
85 85
             <template slot="header" slot-scope="scope">
86
-              <span>批号</span>
86
+              <span>批号<span style="color: red">*</span></span>
87 87
             </template>
88 88
             <template slot-scope="scope">
89
-              <el-form-item style="padding-top: 20px" >
89
+              <el-form-item style="padding-top: 20px" :prop="'recordData.' + scope.$index + '.number'"
90
+                            :rules='tableRules.number' >
90 91
                 <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
91 92
               </el-form-item>
92 93
             </template>
@@ -150,13 +151,18 @@
150 151
 
151 152
             </template>
152 153
           </el-table-column>
153
-          <el-table-column label="有效日期" align="center" width="180">
154
+          <el-table-column  align="center" width="180">
155
+            <template slot="header" slot-scope="scope">
156
+              <span>有效日期<span style="color: red">*</span></span>
157
+            </template>
154 158
             <template slot-scope="scope">
155
-              <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
156
-                              type="date" placeholder="选择日期时间" format="yyyy-MM-dd"
157
-                              value-format="yyyy-MM-dd">
158
-              </el-date-picker>
159
-
159
+              <el-form-item  :prop="'recordData.' + scope.$index + '.expiry_date'"
160
+                :rules="tableRules.expiry_date">
161
+                <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
162
+                                type="date" placeholder="选择日期时间" format="yyyy-MM-dd"
163
+                                value-format="yyyy-MM-dd">
164
+                </el-date-picker>
165
+             </el-form-item>
160 166
             </template>
161 167
           </el-table-column>
162 168
 
@@ -287,7 +293,10 @@
287 293
           ],
288 294
           number:[
289 295
             { required: true, message: '批号不能为空', trigge: 'blur' }
290
-          ]
296
+          ],
297
+          expiry_date:[
298
+            { required: true, message: '有效日期不能为空', trigge: 'blur' }
299
+          ],
291 300
 
292 301
         },
293 302
         type: this.$route.query.type,
@@ -379,7 +388,6 @@
379 388
         this.isVisibility = true
380 389
       },
381 390
        comfirm: function(val) {
382
-        console.log("val99999999999999",val)
383 391
         this.propForm.goodType = []
384 392
         this.propForm.goods = []
385 393
 

+ 9 - 0
src/xt_pages/user/components/PatientDetail.vue Parādīt failu

@@ -969,9 +969,16 @@
969 969
           class="order_title"
970 970
           align="center"
971 971
           style="margin-bottom:20px;font-size:35px"
972
+          v-if="org_id != 10223"
972 973
         >
973 974
           签到卡
974 975
         </div>
976
+        <div
977
+          class="order_title"
978
+          align="center"
979
+          style="margin-bottom:20px;font-size:25px"
980
+          v-if="org_id == 10223"
981
+        >三优血液透析中心</div>
975 982
         <div align="center" style="margin-bottom:4px;font-size:25px">
976 983
           姓名:<span>&nbsp;&nbsp;{{ patientPrint.name }}</span
977 984
           ><br />
@@ -1072,6 +1079,7 @@ const defaultForm = {
1072 1079
   expense_kind: "",
1073 1080
   contact_name: "",
1074 1081
   sch_remark:"",
1082
+  org_id:0
1075 1083
 };
1076 1084
 
1077 1085
 export default {
@@ -1172,6 +1180,7 @@ export default {
1172 1180
     }
1173 1181
   },
1174 1182
   created() {
1183
+    this.org_id = this.$store.getters.xt_user.org.id
1175 1184
     this.styleOptions = this.$store.getters.patient_types;
1176 1185
     // this.partitionOptions = this.$store.getters.partitions;
1177 1186
     this.maritalOptions = getDataConfig("patient", "marital_options");

+ 7 - 8
src/xt_pages/user/templateSummary.vue Parādīt failu

@@ -900,6 +900,7 @@
900 900
           start_time:"",
901 901
           end_time:"",
902 902
           template_plan_content:"",
903
+          inspect_date:"",
903 904
         },
904 905
         timeType:[
905 906
           {id:1,name:"第一季度"},
@@ -1451,9 +1452,10 @@
1451 1452
            if(response.data.state == 1){
1452 1453
               var list = response.data.data.list
1453 1454
               var inspectlist = response.data.data.inspectlist
1454
-              console.log("inspectlist2322332",list)
1455
+
1456
+              console.log("列表数据",list)
1455 1457
               let arr = this.unique(inspectlist,'project_name')
1456
-              console.log("hhh23h2323223223232323",arr)
1458
+              console.log("内容233323232323223",arr)
1457 1459
               list.template_inspection_content = arr
1458 1460
               this.editObj = list
1459 1461
 
@@ -1530,6 +1532,7 @@
1530 1532
               this.form.anticoagulant = list.anticoagulant
1531 1533
               this.form.autunite = list.autunite
1532 1534
               this.form.befor_pressure = list.befor_pressure
1535
+              this.projectIndate = list.inspect_date
1533 1536
               if( list.befor_weight == 0){
1534 1537
                  this.form.befor_weight = ""
1535 1538
               }else{
@@ -1552,7 +1555,6 @@
1552 1555
                this.form.natrium =list.natrium
1553 1556
                this.form.perfusion_apparatus= list.perfusion_apparatus
1554 1557
                this.form.other_count = list.other_count
1555
-              //  this.form.record_time = this.getTimeTwo(list.record_time)
1556 1558
                console.log("时间232233232",list.record_time)
1557 1559
                if(list.template_inspection_id == 0){
1558 1560
                   list.template_inspection_id = ""
@@ -1573,8 +1575,6 @@
1573 1575
                }else{
1574 1576
                  this.form.template_summary_id = list.template_summary_id
1575 1577
                }
1576
-
1577
-              //  this.projectIndate = list.inspect_date
1578 1578
                this.projectStr = list.project_id
1579 1579
            }
1580 1580
         })
@@ -1633,8 +1633,6 @@
1633 1633
             befor_weight:this.form.befor_weight.toString(),
1634 1634
             after_weight:this.form.after_weight.toString(),
1635 1635
             befor_pressure:this.form.befor_pressure,
1636
-            // template_summary_content:this.form.template_summary_content,
1637
-            // template_plan_content:this.form.template_plan_content,
1638 1636
             template_plan_content:"",
1639 1637
             template_summary_content:this.$refs.edit_neditor.content,
1640 1638
             admin_user_id:this.form.admin_user_id,
@@ -1648,7 +1646,8 @@
1648 1646
             inspect_date:this.projectIndate,
1649 1647
          }
1650 1648
          console.log("parawm232323223",params)
1651
-
1649
+        
1650
+       
1652 1651
         UpdateTemplateSummary(params).then(response=>{
1653 1652
           if(response.data.state == 1){
1654 1653
             var list = response.data.data.list

+ 20 - 4
src/xt_pages/workforce/appointment.vue Parādīt failu

@@ -227,6 +227,13 @@
227 227
       UploadExcel
228 228
     },
229 229
     methods: {
230
+      compare(p){ //这是比较函数
231
+        return function(m,n){
232
+            var a = m[p];
233
+            var b = n[p];
234
+            return a - b; //升序
235
+        }
236
+      },
230 237
       // printTable(){
231 238
       //   this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
232 239
       // },
@@ -302,7 +309,16 @@
302 309
           })
303 310
 
304 311
           var that = this
312
+
305 313
           if (partitions.length > 0) {
314
+            let arrSort = []
315
+            partitions.forEach((item) => {
316
+              let num = Math.max.apply(Math, item.jihaos.map(function(o) {return o.sort}))
317
+              item.sort = num
318
+              arrSort.push(item)
319
+            })
320
+            arrSort.sort(this.compare('sort'))
321
+            partitions = arrSort
306 322
             partitions.forEach(function(partition) {
307 323
               if (partition.jihaos.length == 0) {
308 324
                 return false
@@ -466,7 +482,6 @@
466 482
                   total: 0
467 483
                 }
468 484
                 that.scheduleZone.push(thisPa)
469
-
470 485
               })
471 486
             })
472 487
           }
@@ -566,16 +581,17 @@
566 581
               data.push(Object.values(item))
567 582
 
568 583
             })
569
-            // console.log("data",data)
584
+            console.log("data",this.$refs.tableData)
570 585
             
571 586
             const filename = '排班模版'
572 587
            
573
-            excel.export_json_to_excel({
588
+            excel.export_json_to_excel1({
574 589
               multiHeader,
575 590
               header,
576 591
               merges,
577 592
               data,
578
-              filename
593
+              filename,
594
+              ref: this.$refs['tableData'].$refs['table'].$el
579 595
             })
580 596
             this.downloadLoading = false
581 597
           }

+ 13 - 13
src/xt_pages/workforce/components/nextTableWeeks.vue Parādīt failu

@@ -147,9 +147,9 @@
147 147
         <template slot-scope="scope">
148 148
           <span v-if="org_id!=9987" >
149 149
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
150
-                <span v-if="org_id!=10131">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
151
-                <span v-if="org_id==10131">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
152
-                <!-- <span v-if="org_id ==10131">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span> -->
150
+                <span v-if="org_id!=10131&& org_id !=10215">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
151
+                <span v-if="org_id==10131 || org_id == 10215">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id,scope.row.mode_id,scope.row.solution)  }}</span>
152
+              
153 153
               </span>
154 154
              <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ getDialysisDialyszerPerfusion(scope.row.patient_id) }}</span>
155 155
           </span>
@@ -629,18 +629,18 @@ export default {
629 629
         }
630 630
        return name
631 631
     },
632
-     getDialysisDialyszerPerfusionOne(patient_id){
633
-        var name = ""
634
-        for(let i=0;i<this.scheduleData.length;i++){
635
-          if(patient_id == this.scheduleData[i].patient_id){
636
-            var arrLength = this.scheduleData[i].dialysissolution.length
637
-            if(arrLength > 0){
638
-               name = this.scheduleData[i].dialysissolution[arrLength - 1].dialyzer_perfusion_apparatus
639
-            }
632
+    getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
633
+        var name = ''
634
+        for (let i = 0; i < solution.length; i++) {
635
+          if (mode_id == solution[i].mode_id) {
636
+         
637
+            name = solution[i].dialyzer_perfusion_apparatus
638
+            
640 639
           }
641 640
         }
642
-       return name
643
-    },
641
+        console.log('name', name)
642
+        return name
643
+      },
644 644
     changeZone(val){
645 645
       this.zone = val
646 646
       this.getNextScheduleWeekDay()

+ 36 - 3
src/xt_pages/workforce/components/tableData.vue Parādīt failu

@@ -122,6 +122,7 @@
122 122
       :data="scheduleZone"
123 123
       :span-method="objectSpanMethod"
124 124
       @cell-click="clickThis"
125
+      @cell-mouse-enter="hoverMouse"
125 126
       :summary-method="getSummaries"
126 127
       show-summary
127 128
       :row-class-name="tableRowClassName"
@@ -771,7 +772,8 @@ export default {
771 772
         nextTwoWeek: 0
772 773
       },
773 774
       zoneIdList:[],
774
-      strArr:""
775
+      strArr:"",
776
+      patient_id_hover:0
775 777
     };
776 778
   },
777 779
 
@@ -1014,11 +1016,27 @@ export default {
1014 1016
         return "";
1015 1017
       } else {
1016 1018
         if (this.weekTime == "lastWeek") {
1017
-          return "schedule-table-cell-disable";
1019
+          if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1020
+            return 'hover-td schedule-table-cell-disable'
1021
+          }else {
1022
+            return 'schedule-table-cell-disable'
1023
+          }
1024
+          // return "schedule-table-cell-disable";
1018 1025
         } else if (this.weekTime == "thisWeek") {
1019 1026
           var weekday = Math.floor((columnIndex - 2) / 3 + 1);
1020 1027
           if (weekday < this.weekday) {
1021
-            return "schedule-table-cell-disable";
1028
+            if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1029
+              return 'hover-td schedule-table-cell-disable'
1030
+            }else {
1031
+              return 'schedule-table-cell-disable'
1032
+            }
1033
+            // return "schedule-table-cell-disable";
1034
+          }else {
1035
+            if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
1036
+              return 'hover-td'
1037
+            }else {
1038
+              return ''
1039
+            }
1022 1040
           }
1023 1041
         }
1024 1042
       }
@@ -1498,6 +1516,14 @@ export default {
1498 1516
           this.creating_schedule = false;
1499 1517
         });
1500 1518
     },
1519
+    hoverMouse(row, column, cell, event){
1520
+      if (row[column.property].schedule_id > 0) {
1521
+        let patient_id = row[column.property].patient_id
1522
+        this.patient_id_hover = patient_id
1523
+      } else {
1524
+        this.patient_id_hover = -1
1525
+      }
1526
+    },
1501 1527
     clickThis(row, column, cell, event) {
1502 1528
       // debugger
1503 1529
       var week = this.weekDay(column.property);
@@ -2363,6 +2389,9 @@ export default {
2363 2389
 .el-table td {
2364 2390
   border-color: #d0d3da;
2365 2391
 }
2392
+// .hover-td{
2393
+//   color: red;
2394
+// }
2366 2395
 
2367 2396
 // .el-table__body tr.current-row > td {
2368 2397
 //   background-color: #409eff !important;
@@ -2380,6 +2409,10 @@ export default {
2380 2409
     background-color: #409eff !important;
2381 2410
     color: #fff;
2382 2411
   }
2412
+  .el-table__body tr .hover-td {
2413
+    background-color: #409eff !important;
2414
+    color: #fff;
2415
+  }
2383 2416
 }
2384 2417
 .backPurple{
2385 2418
   color: #08c3df !important;

+ 16 - 20
src/xt_pages/workforce/components/tableWeeks.vue Parādīt failu

@@ -219,13 +219,14 @@
219 219
             </el-table-column>
220 220
             <el-table-column label="透析器/灌流器" min-width="100" align="center">
221 221
                 <template slot-scope="scope">
222
-          <span v-if="org_id!=9987&&org_id!=10131">
222
+          <span v-if="org_id!=9987&&org_id!=10131&&org_id!=10215 &&org_id!=10233 ">
223 223
              <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">
224 224
                 <span>{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
225 225
           </span>
226
-             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 ">{{getDialysisDialyszerPerfusion(scope.row.patient_id)}}</span>
226
+
227
+          <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus==''&& scope.row.dialysissolution.id > 0 ">{{getDialysisDialyszerPerfusion(scope.row.patient_id)}}</span>
227 228
           </span>
228
-                    <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span>
229
+                    <span v-if="org_id==10131 || org_id == 10215 || org_id == 10233">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id,scope.row.mode_id,scope.row.solution)}}</span>
229 230
                     {{scope.row.prescription.dialysis_dialyszers}}
230 231
                     <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
231 232
                     <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
@@ -314,7 +315,7 @@
314 315
           <el-checkbox v-model="name">姓名</el-checkbox>
315 316
          </li>
316 317
          <li>
317
-          <el-checkbox v-model="zone">分区</el-checkbox>
318
+          <el-checkbox v-model="zone_name">分区</el-checkbox>
318 319
          </li>
319 320
          <li>
320 321
           <el-checkbox v-model="classes">班次</el-checkbox>
@@ -977,9 +978,9 @@
977 978
         getScheduleList(params).then(response => {
978 979
           if (response.data.state == 1) {
979 980
             this.isloading = false
980
-
981 981
             console.log('22333333333', this.pre_status)
982 982
             var list = response.data.data.list
983
+            console.log("list33333333333333333333",list)
983 984
             if (this.pre_status == 0) {
984 985
 
985 986
               for (let i = 0; i < list.length; i++) {
@@ -1295,7 +1296,7 @@
1295 1296
       }
1296 1297
       ,
1297 1298
       saveRemindPrint() {
1298
-        console.log('455555555', this.perfusion_apparatus)
1299
+        console.log('455555555', this.prescription_status)
1299 1300
 
1300 1301
         if (this.perfusion_apparatus == true) {
1301 1302
           console.log('3333')
@@ -1322,10 +1323,10 @@
1322 1323
         if (this.name == false) {
1323 1324
           this.form.name = 2
1324 1325
         }
1325
-        if (this.zone == true) {
1326
+        if (this.zone_name == true) {
1326 1327
           this.form.zone = 1
1327 1328
         }
1328
-        if (this.zone == false) {
1329
+        if (this.zone_name == false) {
1329 1330
           this.form.zone = 2
1330 1331
         }
1331 1332
         if (this.classes == true) {
@@ -1502,17 +1503,14 @@
1502 1503
           }
1503 1504
         }
1504 1505
         return name
1505
-      }
1506
-      ,
1507
-      getDialysisDialyszerPerfusionOne(patient_id) {
1506
+      },
1507
+      getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
1508 1508
         var name = ''
1509
-        for (let i = 0; i < this.scheduleData.length; i++) {
1510
-          if (patient_id == this.scheduleData[i].patient_id) {
1511
-            // var arrLength = this.scheduleData[i].dialysissolution
1512
-            // console.log('病人ID', patient_id, '数组', this.scheduleData[i].dialysissolution)
1513
-            // if (arrLength > 0) {
1514
-            name = this.scheduleData[i].dialysissolution.dialyzer_perfusion_apparatus
1515
-            // }
1509
+        for (let i = 0; i < solution.length; i++) {
1510
+          if (mode_id == solution[i].mode_id) {
1511
+         
1512
+            name = solution[i].dialyzer_perfusion_apparatus
1513
+            
1516 1514
           }
1517 1515
         }
1518 1516
         console.log('name', name)
@@ -1536,8 +1534,6 @@
1536 1534
         this.week_type = 7
1537 1535
       }
1538 1536
       this.org_id = this.$store.getters.xt_user.org.id
1539
-     
1540
-     
1541 1537
     }
1542 1538
   }
1543 1539
 </script>

+ 58 - 57
src/xt_pages/workforce/components/template_table.vue Parādīt failu

@@ -306,69 +306,70 @@
306 306
       },
307 307
       'template.items': function() {
308 308
         // 先清除所有已有 item
309
-        var weekdays = [1, 2, 3, 4, 5, 6, 7] // 周一-周日
310
-        var time_types = [1, 2, 3] // 上下晚
311
-        for (let d_n_i = 0; d_n_i < this.opera_device_numbers.length; d_n_i++) {
312
-          const op_d_n = this.opera_device_numbers[d_n_i]
313
-          const or_d_n = this.origin_device_numbers[d_n_i]
314
-
315
-          op_d_n.total = 0
316
-          or_d_n.total = 0
317
-
318
-          for (let w_i = 0; w_i < weekdays.length; w_i++) {
319
-            const weekday = weekdays[w_i]
320
-            for (let t_i = 0; t_i < time_types.length; t_i++) {
321
-              const time_type = time_types[t_i]
322
-
323
-              var item_key = weekday + '_' + time_type
324
-              var op_item = op_d_n[item_key]
325
-              var or_item = or_d_n[item_key]
326
-
327
-              op_item.pid = 0
328
-              op_item.name = ''
329
-              op_item.treat_mode_id = 0
330
-              op_item.treat_mode = ''
331
-
332
-              or_item.pid = 0
333
-              or_item.name = ''
334
-              or_item.treat_mode_id = 0
335
-              or_item.treat_mode = ''
309
+        this.$nextTick(() => {
310
+          var weekdays = [1, 2, 3, 4, 5, 6, 7] // 周一-周日
311
+          var time_types = [1, 2, 3] // 上下晚
312
+          for (let d_n_i = 0; d_n_i < this.opera_device_numbers.length; d_n_i++) {
313
+            const op_d_n = this.opera_device_numbers[d_n_i]
314
+            const or_d_n = this.origin_device_numbers[d_n_i]
315
+
316
+            op_d_n.total = 0
317
+            or_d_n.total = 0
318
+
319
+            for (let w_i = 0; w_i < weekdays.length; w_i++) {
320
+              const weekday = weekdays[w_i]
321
+              for (let t_i = 0; t_i < time_types.length; t_i++) {
322
+                const time_type = time_types[t_i]
323
+
324
+                var item_key = weekday + '_' + time_type
325
+                var op_item = op_d_n[item_key]
326
+                var or_item = or_d_n[item_key]
327
+
328
+                op_item.pid = 0
329
+                op_item.name = ''
330
+                op_item.treat_mode_id = 0
331
+                op_item.treat_mode = ''
332
+
333
+                or_item.pid = 0
334
+                or_item.name = ''
335
+                or_item.treat_mode_id = 0
336
+                or_item.treat_mode = ''
337
+              }
336 338
             }
337 339
           }
338
-        }
339 340
 
340
-        for (let index = 0; index < this.template.items.length; index++) {
341
-          const template_item = this.template.items[index]
342
-          if (template_item.patient == null) {
343
-            continue
344
-          }
341
+          for (let index = 0; index < this.template.items.length; index++) {
342
+            const template_item = this.template.items[index]
343
+            if (template_item.patient == null) {
344
+              continue
345
+            }
345 346
 
346
-          for (let d_i = 0; d_i < this.opera_device_numbers.length; d_i++) {
347
-            const device_number = this.opera_device_numbers[d_i]
348
-            if (device_number.id == template_item.device_number_id) {
349
-              var weekday = template_item.weekday
350
-              var time_type = template_item.time_type
351
-              var cell_item = device_number[weekday + '_' + time_type]
352
-              cell_item.pid = template_item.patient_id
353
-              cell_item.name = template_item.patient.name
354
-              cell_item.treat_mode_id = template_item.treat_mode
355
-              cell_item.treat_mode = template_item.treat_mode ? this.treat_modes[template_item.treat_mode].name : ''
356
-              device_number.total += 1
357
-
358
-              // origin_device_numbers 初始化时数据应该是和 opera_device_numbers 一样的,这里就不再用一个 for 遍历 origin_device_numbers 重复 opera_device_numbers 的操作了
359
-              const o_device_number = this.origin_device_numbers[d_i]
360
-              var o_cell_item = o_device_number[weekday + '_' + time_type]
361
-              o_cell_item.pid = template_item.patient_id
362
-              o_cell_item.name = template_item.patient.name
363
-              o_cell_item.treat_mode_id = template_item.treat_mode
364
-              o_cell_item.treat_mode = template_item.treat_mode ? this.treat_modes[template_item.treat_mode].name : ''
365
-              o_device_number.total += 1
366
-
367
-              break
347
+            for (let d_i = 0; d_i < this.opera_device_numbers.length; d_i++) {
348
+              const device_number = this.opera_device_numbers[d_i]
349
+              if (device_number.id == template_item.device_number_id) {
350
+                var weekday = template_item.weekday
351
+                var time_type = template_item.time_type
352
+                var cell_item = device_number[weekday + '_' + time_type]
353
+                cell_item.pid = template_item.patient_id
354
+                cell_item.name = template_item.patient.name
355
+                cell_item.treat_mode_id = template_item.treat_mode
356
+                cell_item.treat_mode = template_item.treat_mode ? this.treat_modes[template_item.treat_mode].name : ''
357
+                device_number.total += 1
358
+
359
+                // origin_device_numbers 初始化时数据应该是和 opera_device_numbers 一样的,这里就不再用一个 for 遍历 origin_device_numbers 重复 opera_device_numbers 的操作了
360
+                const o_device_number = this.origin_device_numbers[d_i]
361
+                var o_cell_item = o_device_number[weekday + '_' + time_type]
362
+                o_cell_item.pid = template_item.patient_id
363
+                o_cell_item.name = template_item.patient.name
364
+                o_cell_item.treat_mode_id = template_item.treat_mode
365
+                o_cell_item.treat_mode = template_item.treat_mode ? this.treat_modes[template_item.treat_mode].name : ''
366
+                o_device_number.total += 1
367
+
368
+                break
369
+              }
368 370
             }
369 371
           }
370
-        }
371
-
372
+        })
372 373
         // this.$refs.table.doLayout()
373 374
       },
374 375
       tableHeight(val) {

+ 14 - 15
src/xt_pages/workforce/next_remind_print.vue Parādīt failu

@@ -30,7 +30,7 @@
30 30
                   <td width="70" v-if="printObj.zone == 1">分区</td>
31 31
                   <td width="70" v-if="printObj.classes == 1">班次</td>
32 32
                   <td width="70" v-if="printObj.number == 1">机号</td>
33
-                  <td width="120" v-if="printObj.prescription_status == 1">透析模式</td>
33
+                  <td width="120" v-if="printObj.mode == 1">透析模式</td>
34 34
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
35 35
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
36 36
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
@@ -57,15 +57,14 @@
57 57
                   {{main_collection.number.number}}
58 58
 
59 59
                 </td>
60
-                <td :width="td_1_width"  v-if="printObj.prescription_status == 1">
60
+                <td :width="td_1_width"  v-if="printObj.mode == 1">
61 61
                   {{modeOptions[main_collection.mode_id].name}}
62 62
                 </td>
63 63
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">
64 64
                  <span v-if="org_id!=9987">
65 65
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''">
66
-                        <span v-if="org_id!=10131">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span>
67
-                        <!-- <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(main_collection.prescription.patient_id)}}</span>  -->
68
-                         <span v-if="org_id==10131 || org_id==9671">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
66
+                        <span v-if="org_id!=10131 && org_id!=10215">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span>
67
+                         <span v-if="org_id==10131 || org_id==9671 || org_id == 10215">{{getDialysisDialyszerPerfusionOne(main_collection.patient_id,main_collection.mode_id,main_collection.solution)  }}</span>
69 68
                      </span>
70 69
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span>
71 70
                   </span>
@@ -418,18 +417,18 @@
418 417
         }
419 418
        return name
420 419
      },
421
-     getDialysisDialyszerPerfusionOne(patient_id){
422
-        var name = ""
423
-        for(let i=0;i<this.scheduleData.length;i++){
424
-          if(patient_id == this.scheduleData[i].patient_id){
425
-            var arrLength = this.scheduleData[i].dialysissolution.length
426
-            if(arrLength > 0){
427
-               name = this.scheduleData[i].dialysissolution[arrLength - 1].dialyzer_perfusion_apparatus
428
-            }
420
+     getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
421
+        var name = ''
422
+        for (let i = 0; i < solution.length; i++) {
423
+          if (mode_id == solution[i].mode_id) {
424
+         
425
+            name = solution[i].dialyzer_perfusion_apparatus
426
+            
429 427
           }
430 428
         }
431
-       return name
432
-     }
429
+        console.log('name', name)
430
+        return name
431
+      },
433 432
     }
434 433
   }
435 434
 </script>

+ 17 - 17
src/xt_pages/workforce/remind_print.vue Parādīt failu

@@ -29,7 +29,7 @@
29 29
                   <td width="70" v-if="printObj.zone == 1">分区</td>
30 30
                   <td width="70" v-if="printObj.classes == 1">班次</td>
31 31
                   <td width="70" v-if="printObj.number == 1">机号</td>
32
-                  <td width="120" v-if="printObj.prescription_status == 1">透析模式</td>
32
+                  <td width="120" v-if="printObj.mode == 1">透析模式</td>
33 33
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
34 34
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
35 35
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
@@ -56,15 +56,16 @@
56 56
                   {{main_collection.number.number}}
57 57
 
58 58
                 </td>
59
-                <td :width="td_1_width" v-if="printObj.prescription_status == 1">
59
+                <td :width="td_1_width" v-if="printObj.mode == 1">
60 60
                   {{modeOptions[main_collection.mode_id].name}}
61 61
                 </td>
62
+
62 63
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
63 64
                   <span v-if="org_id!=9987">
64 65
                      <span > 
65
-                       <span v-if="org_id!=10131 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
66
-                       <!-- <span v-if="org_id==10131 || org_id==9671">{{getDialysisDialyszerPerfusionOne(main_collection.prescription.patient_id)}}</span>  -->
67
-                       <span v-if="org_id==10131 || org_id==9671">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
66
+                       <span v-if="org_id!=10131 && org_id!=10215 && org_id!=10233 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
67
+                     
68
+                       <span v-if="org_id==10131 || org_id==9671 || org_id == 10215 || org_id == 10233">{{getDialysisDialyszerPerfusionOne(main_collection.patient_id,main_collection.mode_id,main_collection.solution)}}</span>
68 69
                       </span>
69 70
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span> 
70 71
                   </span>
@@ -373,6 +374,7 @@
373 374
       getPrintList().then(response=>{
374 375
          if(response.data.state == 1){
375 376
            var list = response.data.data.list
377
+           console.log("list22222",list)
376 378
            this.printObj = list
377 379
          }
378 380
       })
@@ -389,20 +391,18 @@
389 391
         }
390 392
        return name
391 393
      },
392
-
393
-     getDialysisDialyszerPerfusionOne(patient_id){
394
-        var name = ""
395
-        for(let i=0;i<this.scheduleData.length;i++){
396
-          if(patient_id == this.scheduleData[i].patient_id){
397
-            var arrLength = this.scheduleData[i].dialysissolution.length
398
-            if(arrLength > 0){
399
-               name = this.scheduleData[i].dialysissolution[arrLength - 1].dialyzer_perfusion_apparatus
400
-            }
394
+    getDialysisDialyszerPerfusionOne(patient_id,mode_id,solution) {
395
+        var name = ''
396
+        for (let i = 0; i < solution.length; i++) {
397
+          if (mode_id == solution[i].mode_id) {
398
+         
399
+            name = solution[i].dialyzer_perfusion_apparatus
400
+            
401 401
           }
402 402
         }
403
-        console.log("name232333223",name)
404
-       return name
405
-     }
403
+        console.log('name', name)
404
+        return name
405
+      },
406 406
     },
407 407
   }
408 408
 </script>

+ 99 - 22
src/xt_pages/workforce/remind_print_setting.vue Parādīt failu

@@ -20,29 +20,59 @@
20 20
           <div class="table_panel">
21 21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
22 22
               <div class="signPrint">
23
-                <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div>
23
+                <div>
24
+                 <span v-if="printObj.zone == 1">分区/</span>
25
+                 <span v-if="printObj.number == 1">床位号:</span>
26
+                 <span v-if="printObj.zone == 1">{{main_collection.zone.name}}/</span> 
27
+                 <span v-if="printObj.number == 1">{{main_collection.number.number}}</span>
28
+                </div>
24 29
                 <div>姓名:
25
-                  <span v-if="type ==1">{{main_collection.patient.name}} </span>
26
-                  <span v-if="type ==2">{{main_collection.patient}} </span>
30
+                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
31
+                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
27 32
                 </div>
28
-                <div>抗凝剂:
29
-                  <span v-if="org_id == 10138">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
30
-                  <span v-else >{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name: ''}}</span>
33
+                <div v-if="printObj.anticoagulant == 1">抗凝剂:
34
+                  <span v-if="org_id == 10138 ">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
35
+                  <span v-else >
36
+                   <span>{{getAnticoagulant(main_collection.solution,main_collection.mode_id)}}</span>
37
+                  </span>
31 38
                 </div>
32 39
                <div v-if="org_id == 10188">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
33 40
                 <div v-if="org_id == 10188">维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</div>
34
-                <div>用量:
35
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
36
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
37
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
38
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
39
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
40
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
41
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
42
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
43
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
44
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
45
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
41
+                <div v-if="printObj.anticoagulant_zongliang == 1">
42
+                  用量:
43
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">
44
+                  {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
45
+                  </span>
46
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
47
+                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
48
+                  </span>
49
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
50
+                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
51
+                  </span>
52
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
53
+                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
54
+                  </span>
55
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
56
+                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'mg'}}
57
+                   </span>
58
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
59
+                   {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
60
+                  </span>
61
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
62
+                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
63
+                   </span>
64
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
65
+                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
66
+                  </span>
67
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
68
+                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
69
+                  </span>
70
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
71
+                     {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
72
+                    </span>
73
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
74
+                    {{getAnticoagulantZonliang(main_collection.solution,main_collection.mode_id)+'iu'}}
75
+                   </span>
46 76
                 </div>
47 77
                 <div v-if="org_id == 10188">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
48 78
                 <div v-if="org_id == 10188">透前体重:{{main_collection.assessmentbefor.weight_before}}</div>
@@ -97,15 +127,14 @@
97 127
       BreadCrumb
98 128
     },
99 129
     created() {
100
-      // console.log("type2323233223232",this.$route.query.type)
101 130
      this.type = this.$route.query.type
102 131
      this.getPrintList()
103 132
      this.org_id = this.$store.getters.xt_user.org.id
104 133
      console.log("机构ID",this.org_id)
105 134
      this.currentDate = this.getCurrentDate()
106 135
 
107
-     this.modeOptions = this.$store.getters.treatment_mode
108
-     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
136
+    this.modeOptions = this.$store.getters.treatment_mode
137
+    this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
109 138
     this.week_type = this.$route.query.week_type
110 139
     this.week_time  = this.$route.query.week_time
111 140
     this.zone = this.$route.query.zone
@@ -321,7 +350,7 @@
321 350
       getPrintList().then(response=>{
322 351
          if(response.data.state == 1){
323 352
            var list = response.data.data.list
324
-           console.log("list222222222",list)
353
+           console.log("打印设置",list)
325 354
            this.printObj = list
326 355
          }
327 356
       })
@@ -382,6 +411,54 @@
382 411
           return false;
383 412
         }
384 413
       });
414
+     },
415
+      getAnticoagulant(arr,mode_id){
416
+       var name = ""
417
+       if(arr.length > 0){
418
+           for(let i=0;i<arr.length;i++){
419
+          if(mode_id == arr[i].mode_id){
420
+            name = arr[i].anticoagulant
421
+          }
422
+       } 
423
+      if(name == 0){
424
+         name = ""
425
+       }
426
+       if(name == 1){
427
+         name = "无肝素"
428
+       }
429
+       if(name == 2){
430
+         name = "普通肝素"
431
+       }
432
+       if(name == 3){
433
+         name ="低分子肝素"
434
+       }
435
+
436
+       if(name == 4){
437
+         name = "阿加曲班"
438
+       }
439
+        if(name == 5){
440
+         name = "枸橼酸钠"
441
+       }
442
+        if(name == 6){
443
+         name = "低分子肝素钙"
444
+       }
445
+        if(name == 7){
446
+         name = "低分子肝素钠"
447
+       }
448
+
449
+       return name
450
+      }
451
+     },
452
+     getAnticoagulantZonliang(arr,mode_id){
453
+       var name = 0
454
+       if(arr.length > 0){
455
+         for(let i=0;i<arr.length;i++){
456
+          if(mode_id == arr[i].mode_id){
457
+            name = arr[i].anticoagulant_zongliang
458
+          }
459
+        } 
460
+       }
461
+       return name
385 462
      }
386 463
     }
387 464
   }