Browse Source

Merge branches '2022-10-17_vue_schedule_branch' and '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

XMLWAN 2 years ago
parent
commit
3404cd74d7
92 changed files with 28973 additions and 4343 deletions
  1. 2 2
      config/dev.env.js
  2. 1 1
      config/index.js
  3. 74 47
      package-lock.json
  4. 2 1
      package.json
  5. 6 5
      src/api/advice.js
  6. 40 0
      src/api/patient.js
  7. 8 1
      src/lang/zh.js
  8. 14 1
      src/router/modules/dialysis.js
  9. 22 0
      src/router/modules/patient.js
  10. 21 0
      src/xt_pages/LICENSE
  11. 20 2
      src/xt_pages/Pharmacy/DrugDispensing.vue
  12. 18 1
      src/xt_pages/Pharmacy/PatientDispensing.vue
  13. 6 0
      src/xt_pages/data/template.vue
  14. 7 2
      src/xt_pages/dialysis/PatientBox.vue
  15. 3142 0
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue
  16. 111 14
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  17. 20 3
      src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue
  18. 68 30
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue
  19. 35 13
      src/xt_pages/dialysis/batch_print/batch_print_order_twentyFive.vue
  20. 34 11
      src/xt_pages/dialysis/bloodPresssWatch.vue
  21. 37 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  22. 8 0
      src/xt_pages/dialysis/details/NavIgation.vue
  23. 19 4
      src/xt_pages/dialysis/details/consumable/dialysisDrug.vue
  24. 35 7
      src/xt_pages/dialysis/details/consumable/dialysisGood.vue
  25. 8 8
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  26. 42 13
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  27. 1 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  28. 62 7
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  29. 10 5
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  30. 158 13
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  31. 43 1
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  32. 74 13
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  33. 10 5
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  34. 2 0
      src/xt_pages/dialysis/details/index.vue
  35. 39 13
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  36. 81 33
      src/xt_pages/dialysis/doctorNewAdviceStaticPrint.vue
  37. 175 54
      src/xt_pages/dialysis/newDoctorAdvice.vue
  38. 42 6
      src/xt_pages/dialysis/signPrint.vue
  39. 31 4
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  40. 296 14
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  41. 2135 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThreeAdvice.vue
  42. 236 15
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  43. 84 49
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue
  44. 35 13
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  45. 7 3
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  46. 25 3
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue
  47. BIN
      src/xt_pages/favicon.ico
  48. 142 1
      src/xt_pages/hospitalStation/summary.vue
  49. 38 0
      src/xt_pages/index.html
  50. 4 2
      src/xt_pages/management/components/QualityForm.vue
  51. 115 113
      src/xt_pages/management/home.vue
  52. 3 1
      src/xt_pages/management/index.vue
  53. 554 554
      src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue
  54. 1048 1048
      src/xt_pages/outpatientCharges/statementPrint.vue
  55. 116 22
      src/xt_pages/outpatientCharges/summary.vue
  56. 4 1
      src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/treatBatchPrint.vue
  57. 2 2
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  58. 43 5
      src/xt_pages/outpatientDoctorStation/pastInquiries.vue
  59. 23 1
      src/xt_pages/outpatientTool/detailPrint.vue
  60. 15208 0
      src/xt_pages/package-lock.json
  61. 144 0
      src/xt_pages/package.json
  62. 1 0
      src/xt_pages/qcd/indicatorControlAnalysis/weight.vue
  63. 8 8
      src/xt_pages/sign/lineUp.vue
  64. 1 0
      src/xt_pages/stock/Dialog/goodTypeDialog.vue
  65. 31 21
      src/xt_pages/stock/detail/stockOutDetail.vue
  66. 1 0
      src/xt_pages/stock/drugs/components/drugQuery.vue
  67. 46 0
      src/xt_pages/stock/drugs/drugStockFlow.vue
  68. 41 14
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  69. 1 1
      src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue
  70. 12 5
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  71. 1 0
      src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue
  72. 1 0
      src/xt_pages/stock/query/goodNewQuery.vue
  73. 21 0
      src/xt_pages/stock/stockFlow.vue
  74. 54 16
      src/xt_pages/stock/stockInOrder.vue
  75. 6 6
      src/xt_pages/user/components/PatientForm.vue
  76. 10 0
      src/xt_pages/user/components/PatientSidebar.vue
  77. 65 15
      src/xt_pages/user/coursePrint.vue
  78. 47 4
      src/xt_pages/user/dialysisSolution.vue
  79. 18 1
      src/xt_pages/user/doctorAdvice.vue
  80. 871 0
      src/xt_pages/user/firstDisease.vue
  81. 413 0
      src/xt_pages/user/firstDiseasePrint.vue
  82. 11 1
      src/xt_pages/user/hospitalSummaryPrint.vue
  83. 24 12
      src/xt_pages/user/vascularAccess.vue
  84. 60 31
      src/xt_pages/workforce/appointment.vue
  85. 12 4
      src/xt_pages/workforce/components/ScheduleItem.vue
  86. 1210 1102
      src/xt_pages/workforce/components/editTableData.vue
  87. 936 806
      src/xt_pages/workforce/components/tableData.vue
  88. 119 94
      src/xt_pages/workforce/components/template_table.vue
  89. 2 2
      src/xt_pages/workforce/printOne.vue
  90. 89 7
      src/xt_pages/workforce/remind_print_setting.vue
  91. 58 10
      src/xt_pages/workforce/schedule_print.vue
  92. 13 13
      src/xt_permission.js

+ 2 - 2
config/dev.env.js View File

6
 module.exports = {
6
 module.exports = {
7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
9
-  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API: '"http://api.xt.test.sgjyun.com"',
9
+  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
+  //  BASE_API: '"https://api.xt.test.sgjyun.com"',
11
   BASE_API: '"http://localhost:9531"',
11
   BASE_API: '"http://localhost:9531"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',

+ 1 - 1
config/index.js View File

29
 
29
 
30
     // host: 'xt.test.sgjyun.com',
30
     // host: 'xt.test.sgjyun.com',
31
     //  host: 'xt.kuyicloud.com',
31
     //  host: 'xt.kuyicloud.com',
32
-   // host: 'xt.test.sgjyun.com',
32
+    // host: 'xt.test.sgjyun.com',
33
     host: 'localhost',
33
     host: 'localhost',
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35
     autoOpenBrowser: true,
35
     autoOpenBrowser: true,

+ 74 - 47
package-lock.json View File

239
     "amdefine": {
239
     "amdefine": {
240
       "version": "1.0.1",
240
       "version": "1.0.1",
241
       "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
241
       "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
242
-      "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg=="
242
+      "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU="
243
     },
243
     },
244
     "ansi-escapes": {
244
     "ansi-escapes": {
245
       "version": "3.2.0",
245
       "version": "3.2.0",
433
     "assert-plus": {
433
     "assert-plus": {
434
       "version": "1.0.0",
434
       "version": "1.0.0",
435
       "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
435
       "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
436
-      "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw=="
436
+      "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
437
     },
437
     },
438
     "assign-symbols": {
438
     "assign-symbols": {
439
       "version": "1.0.0",
439
       "version": "1.0.0",
459
     "async-foreach": {
459
     "async-foreach": {
460
       "version": "0.1.3",
460
       "version": "0.1.3",
461
       "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz",
461
       "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz",
462
-      "integrity": "sha512-VUeSMD8nEGBWaZK4lizI1sf3yEC7pnAQ/mrI7pC2fBz2s/tq5jWWEngTwaf0Gruu/OoXRGLGg1XFqpYBiGTYJA=="
462
+      "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI="
463
     },
463
     },
464
     "async-limiter": {
464
     "async-limiter": {
465
       "version": "1.0.0",
465
       "version": "1.0.0",
478
     "asynckit": {
478
     "asynckit": {
479
       "version": "0.4.0",
479
       "version": "0.4.0",
480
       "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
480
       "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
481
-      "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
481
+      "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
482
     },
482
     },
483
     "atob": {
483
     "atob": {
484
       "version": "2.1.2",
484
       "version": "2.1.2",
503
     "aws-sign2": {
503
     "aws-sign2": {
504
       "version": "0.7.0",
504
       "version": "0.7.0",
505
       "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
505
       "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
506
-      "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA=="
506
+      "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
507
     },
507
     },
508
     "aws4": {
508
     "aws4": {
509
       "version": "1.11.0",
509
       "version": "1.11.0",
1489
     "bcrypt-pbkdf": {
1489
     "bcrypt-pbkdf": {
1490
       "version": "1.0.2",
1490
       "version": "1.0.2",
1491
       "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
1491
       "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
1492
-      "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==",
1492
+      "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
1493
       "requires": {
1493
       "requires": {
1494
         "tweetnacl": "^0.14.3"
1494
         "tweetnacl": "^0.14.3"
1495
       }
1495
       }
1509
     "block-stream": {
1509
     "block-stream": {
1510
       "version": "0.0.9",
1510
       "version": "0.0.9",
1511
       "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
1511
       "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
1512
-      "integrity": "sha512-OorbnJVPII4DuUKbjARAe8u8EfqOmkEEaSFIyoQ7OjTHn6kafxWl0wLgoZ2rXaYd7MyLcDaU4TmhfxtwgcccMQ==",
1512
+      "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=",
1513
       "requires": {
1513
       "requires": {
1514
         "inherits": "~2.0.0"
1514
         "inherits": "~2.0.0"
1515
       }
1515
       }
1918
     "caseless": {
1918
     "caseless": {
1919
       "version": "0.12.0",
1919
       "version": "0.12.0",
1920
       "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
1920
       "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
1921
-      "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw=="
1921
+      "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
1922
     },
1922
     },
1923
     "center-align": {
1923
     "center-align": {
1924
       "version": "0.1.3",
1924
       "version": "0.1.3",
2511
     "console-control-strings": {
2511
     "console-control-strings": {
2512
       "version": "1.1.0",
2512
       "version": "1.1.0",
2513
       "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
2513
       "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
2514
-      "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
2514
+      "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
2515
     },
2515
     },
2516
     "consolidate": {
2516
     "consolidate": {
2517
       "version": "0.14.5",
2517
       "version": "0.14.5",
3144
     "dashdash": {
3144
     "dashdash": {
3145
       "version": "1.14.1",
3145
       "version": "1.14.1",
3146
       "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
3146
       "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
3147
-      "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==",
3147
+      "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
3148
       "requires": {
3148
       "requires": {
3149
         "assert-plus": "^1.0.0"
3149
         "assert-plus": "^1.0.0"
3150
       }
3150
       }
3310
     "delayed-stream": {
3310
     "delayed-stream": {
3311
       "version": "1.0.0",
3311
       "version": "1.0.0",
3312
       "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
3312
       "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
3313
-      "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
3313
+      "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
3314
     },
3314
     },
3315
     "delegate": {
3315
     "delegate": {
3316
       "version": "3.2.0",
3316
       "version": "3.2.0",
3320
     "delegates": {
3320
     "delegates": {
3321
       "version": "1.0.0",
3321
       "version": "1.0.0",
3322
       "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
3322
       "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
3323
-      "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
3323
+      "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
3324
     },
3324
     },
3325
     "depd": {
3325
     "depd": {
3326
       "version": "1.1.2",
3326
       "version": "1.1.2",
3498
     "ecc-jsbn": {
3498
     "ecc-jsbn": {
3499
       "version": "0.1.2",
3499
       "version": "0.1.2",
3500
       "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
3500
       "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
3501
-      "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==",
3501
+      "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
3502
       "requires": {
3502
       "requires": {
3503
         "jsbn": "~0.1.0",
3503
         "jsbn": "~0.1.0",
3504
         "safer-buffer": "^2.1.0"
3504
         "safer-buffer": "^2.1.0"
4355
     "extsprintf": {
4355
     "extsprintf": {
4356
       "version": "1.3.0",
4356
       "version": "1.3.0",
4357
       "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
4357
       "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
4358
-      "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g=="
4358
+      "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
4359
     },
4359
     },
4360
     "fast-deep-equal": {
4360
     "fast-deep-equal": {
4361
       "version": "2.0.1",
4361
       "version": "2.0.1",
4602
     "forever-agent": {
4602
     "forever-agent": {
4603
       "version": "0.6.1",
4603
       "version": "0.6.1",
4604
       "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
4604
       "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
4605
-      "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw=="
4605
+      "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
4606
     },
4606
     },
4607
     "form-data": {
4607
     "form-data": {
4608
       "version": "2.3.3",
4608
       "version": "2.3.3",
4759
         "ansi-regex": {
4759
         "ansi-regex": {
4760
           "version": "2.1.1",
4760
           "version": "2.1.1",
4761
           "bundled": true,
4761
           "bundled": true,
4762
-          "dev": true
4762
+          "dev": true,
4763
+          "optional": true
4763
         },
4764
         },
4764
         "aproba": {
4765
         "aproba": {
4765
           "version": "1.2.0",
4766
           "version": "1.2.0",
4782
         "balanced-match": {
4783
         "balanced-match": {
4783
           "version": "1.0.0",
4784
           "version": "1.0.0",
4784
           "bundled": true,
4785
           "bundled": true,
4785
-          "dev": true
4786
+          "dev": true,
4787
+          "optional": true
4786
         },
4788
         },
4787
         "brace-expansion": {
4789
         "brace-expansion": {
4788
           "version": "1.1.11",
4790
           "version": "1.1.11",
4789
           "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4791
           "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4790
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4792
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4791
           "dev": true,
4793
           "dev": true,
4794
+          "optional": true,
4792
           "requires": {
4795
           "requires": {
4793
             "balanced-match": "^1.0.0",
4796
             "balanced-match": "^1.0.0",
4794
             "concat-map": "0.0.1"
4797
             "concat-map": "0.0.1"
4804
         "code-point-at": {
4807
         "code-point-at": {
4805
           "version": "1.1.0",
4808
           "version": "1.1.0",
4806
           "bundled": true,
4809
           "bundled": true,
4807
-          "dev": true
4810
+          "dev": true,
4811
+          "optional": true
4808
         },
4812
         },
4809
         "concat-map": {
4813
         "concat-map": {
4810
           "version": "0.0.1",
4814
           "version": "0.0.1",
4811
           "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4815
           "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4812
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4816
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4813
-          "dev": true
4817
+          "dev": true,
4818
+          "optional": true
4814
         },
4819
         },
4815
         "console-control-strings": {
4820
         "console-control-strings": {
4816
           "version": "1.1.0",
4821
           "version": "1.1.0",
4817
           "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4822
           "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4818
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4823
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4819
-          "dev": true
4824
+          "dev": true,
4825
+          "optional": true
4820
         },
4826
         },
4821
         "core-util-is": {
4827
         "core-util-is": {
4822
           "version": "1.0.2",
4828
           "version": "1.0.2",
4946
         "inherits": {
4952
         "inherits": {
4947
           "version": "2.0.3",
4953
           "version": "2.0.3",
4948
           "bundled": true,
4954
           "bundled": true,
4949
-          "dev": true
4955
+          "dev": true,
4956
+          "optional": true
4950
         },
4957
         },
4951
         "ini": {
4958
         "ini": {
4952
           "version": "1.3.5",
4959
           "version": "1.3.5",
4960
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4967
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4961
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4968
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4962
           "dev": true,
4969
           "dev": true,
4970
+          "optional": true,
4963
           "requires": {
4971
           "requires": {
4964
             "number-is-nan": "^1.0.0"
4972
             "number-is-nan": "^1.0.0"
4965
           }
4973
           }
4976
           "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4984
           "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4977
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4985
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4978
           "dev": true,
4986
           "dev": true,
4987
+          "optional": true,
4979
           "requires": {
4988
           "requires": {
4980
             "brace-expansion": "^1.1.7"
4989
             "brace-expansion": "^1.1.7"
4981
           }
4990
           }
4983
         "minimist": {
4992
         "minimist": {
4984
           "version": "0.0.8",
4993
           "version": "0.0.8",
4985
           "bundled": true,
4994
           "bundled": true,
4986
-          "dev": true
4995
+          "dev": true,
4996
+          "optional": true
4987
         },
4997
         },
4988
         "minipass": {
4998
         "minipass": {
4989
           "version": "2.3.5",
4999
           "version": "2.3.5",
4990
           "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
5000
           "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
4991
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
5001
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4992
           "dev": true,
5002
           "dev": true,
5003
+          "optional": true,
4993
           "requires": {
5004
           "requires": {
4994
             "safe-buffer": "^5.1.2",
5005
             "safe-buffer": "^5.1.2",
4995
             "yallist": "^3.0.0"
5006
             "yallist": "^3.0.0"
5010
           "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
5021
           "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
5011
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
5022
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
5012
           "dev": true,
5023
           "dev": true,
5024
+          "optional": true,
5013
           "requires": {
5025
           "requires": {
5014
             "minimist": "0.0.8"
5026
             "minimist": "0.0.8"
5015
           }
5027
           }
5097
         "number-is-nan": {
5109
         "number-is-nan": {
5098
           "version": "1.0.1",
5110
           "version": "1.0.1",
5099
           "bundled": true,
5111
           "bundled": true,
5100
-          "dev": true
5112
+          "dev": true,
5113
+          "optional": true
5101
         },
5114
         },
5102
         "object-assign": {
5115
         "object-assign": {
5103
           "version": "4.1.1",
5116
           "version": "4.1.1",
5111
           "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5124
           "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5112
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5125
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5113
           "dev": true,
5126
           "dev": true,
5127
+          "optional": true,
5114
           "requires": {
5128
           "requires": {
5115
             "wrappy": "1"
5129
             "wrappy": "1"
5116
           }
5130
           }
5205
         "safe-buffer": {
5219
         "safe-buffer": {
5206
           "version": "5.1.2",
5220
           "version": "5.1.2",
5207
           "bundled": true,
5221
           "bundled": true,
5208
-          "dev": true
5222
+          "dev": true,
5223
+          "optional": true
5209
         },
5224
         },
5210
         "safer-buffer": {
5225
         "safer-buffer": {
5211
           "version": "2.1.2",
5226
           "version": "2.1.2",
5247
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5262
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5248
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5263
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5249
           "dev": true,
5264
           "dev": true,
5265
+          "optional": true,
5250
           "requires": {
5266
           "requires": {
5251
             "code-point-at": "^1.0.0",
5267
             "code-point-at": "^1.0.0",
5252
             "is-fullwidth-code-point": "^1.0.0",
5268
             "is-fullwidth-code-point": "^1.0.0",
5268
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5284
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5269
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5285
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5270
           "dev": true,
5286
           "dev": true,
5287
+          "optional": true,
5271
           "requires": {
5288
           "requires": {
5272
             "ansi-regex": "^2.0.0"
5289
             "ansi-regex": "^2.0.0"
5273
           }
5290
           }
5315
         "wrappy": {
5332
         "wrappy": {
5316
           "version": "1.0.2",
5333
           "version": "1.0.2",
5317
           "bundled": true,
5334
           "bundled": true,
5318
-          "dev": true
5335
+          "dev": true,
5336
+          "optional": true
5319
         },
5337
         },
5320
         "yallist": {
5338
         "yallist": {
5321
           "version": "3.0.3",
5339
           "version": "3.0.3",
5322
           "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5340
           "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5323
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5341
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5324
-          "dev": true
5342
+          "dev": true,
5343
+          "optional": true
5325
         }
5344
         }
5326
       }
5345
       }
5327
     },
5346
     },
5351
     "gauge": {
5370
     "gauge": {
5352
       "version": "2.7.4",
5371
       "version": "2.7.4",
5353
       "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
5372
       "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
5354
-      "integrity": "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==",
5373
+      "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
5355
       "requires": {
5374
       "requires": {
5356
         "aproba": "^1.0.3",
5375
         "aproba": "^1.0.3",
5357
         "console-control-strings": "^1.0.0",
5376
         "console-control-strings": "^1.0.0",
5366
         "ansi-regex": {
5385
         "ansi-regex": {
5367
           "version": "2.1.1",
5386
           "version": "2.1.1",
5368
           "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
5387
           "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
5369
-          "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA=="
5388
+          "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="
5370
         },
5389
         },
5371
         "is-fullwidth-code-point": {
5390
         "is-fullwidth-code-point": {
5372
           "version": "1.0.0",
5391
           "version": "1.0.0",
5373
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
5392
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
5374
-          "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",
5393
+          "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
5375
           "requires": {
5394
           "requires": {
5376
             "number-is-nan": "^1.0.0"
5395
             "number-is-nan": "^1.0.0"
5377
           }
5396
           }
5379
         "string-width": {
5398
         "string-width": {
5380
           "version": "1.0.2",
5399
           "version": "1.0.2",
5381
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5400
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5382
-          "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",
5401
+          "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5383
           "requires": {
5402
           "requires": {
5384
             "code-point-at": "^1.0.0",
5403
             "code-point-at": "^1.0.0",
5385
             "is-fullwidth-code-point": "^1.0.0",
5404
             "is-fullwidth-code-point": "^1.0.0",
5389
         "strip-ansi": {
5408
         "strip-ansi": {
5390
           "version": "3.0.1",
5409
           "version": "3.0.1",
5391
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5410
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5392
-          "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
5411
+          "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5393
           "requires": {
5412
           "requires": {
5394
             "ansi-regex": "^2.0.0"
5413
             "ansi-regex": "^2.0.0"
5395
           }
5414
           }
5434
     "getpass": {
5453
     "getpass": {
5435
       "version": "0.1.7",
5454
       "version": "0.1.7",
5436
       "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
5455
       "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
5437
-      "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==",
5456
+      "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
5438
       "requires": {
5457
       "requires": {
5439
         "assert-plus": "^1.0.0"
5458
         "assert-plus": "^1.0.0"
5440
       }
5459
       }
5583
     "har-schema": {
5602
     "har-schema": {
5584
       "version": "2.0.0",
5603
       "version": "2.0.0",
5585
       "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
5604
       "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
5586
-      "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q=="
5605
+      "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
5587
     },
5606
     },
5588
     "har-validator": {
5607
     "har-validator": {
5589
       "version": "5.1.5",
5608
       "version": "5.1.5",
5656
     "has-unicode": {
5675
     "has-unicode": {
5657
       "version": "2.0.1",
5676
       "version": "2.0.1",
5658
       "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
5677
       "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
5659
-      "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
5678
+      "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
5660
     },
5679
     },
5661
     "has-value": {
5680
     "has-value": {
5662
       "version": "1.0.0",
5681
       "version": "1.0.0",
6070
     "http-signature": {
6089
     "http-signature": {
6071
       "version": "1.2.0",
6090
       "version": "1.2.0",
6072
       "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
6091
       "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
6073
-      "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==",
6092
+      "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
6074
       "requires": {
6093
       "requires": {
6075
         "assert-plus": "^1.0.0",
6094
         "assert-plus": "^1.0.0",
6076
         "jsprim": "^1.2.2",
6095
         "jsprim": "^1.2.2",
6184
       "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz",
6203
       "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz",
6185
       "integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ=="
6204
       "integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ=="
6186
     },
6205
     },
6206
+    "increase-memory-limit": {
6207
+      "version": "1.0.7",
6208
+      "resolved": "https://registry.npmjs.org/increase-memory-limit/-/increase-memory-limit-1.0.7.tgz",
6209
+      "integrity": "sha512-ozyn+HHAPD9VxMT1U50A7G8XXlktUWhnnEDYSeDYnQjKsNrBWHqq6XfEA0uhMdDPD+q/7rXWlzF1CbXX/c1LiQ==",
6210
+      "requires": {
6211
+        "glob": "^7.1.1"
6212
+      }
6213
+    },
6187
     "indent-string": {
6214
     "indent-string": {
6188
       "version": "3.2.0",
6215
       "version": "3.2.0",
6189
       "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz",
6216
       "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz",
6580
     "is-typedarray": {
6607
     "is-typedarray": {
6581
       "version": "1.0.0",
6608
       "version": "1.0.0",
6582
       "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
6609
       "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
6583
-      "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA=="
6610
+      "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
6584
     },
6611
     },
6585
     "is-utf8": {
6612
     "is-utf8": {
6586
       "version": "0.2.1",
6613
       "version": "0.2.1",
6618
     "isstream": {
6645
     "isstream": {
6619
       "version": "0.1.2",
6646
       "version": "0.1.2",
6620
       "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
6647
       "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
6621
-      "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g=="
6648
+      "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
6622
     },
6649
     },
6623
     "jest-get-type": {
6650
     "jest-get-type": {
6624
       "version": "22.4.3",
6651
       "version": "22.4.3",
6672
     "jsbn": {
6699
     "jsbn": {
6673
       "version": "0.1.1",
6700
       "version": "0.1.1",
6674
       "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
6701
       "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
6675
-      "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg=="
6702
+      "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
6676
     },
6703
     },
6677
     "jsesc": {
6704
     "jsesc": {
6678
       "version": "1.3.0",
6705
       "version": "1.3.0",
6711
     "json-stringify-safe": {
6738
     "json-stringify-safe": {
6712
       "version": "5.0.1",
6739
       "version": "5.0.1",
6713
       "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
6740
       "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
6714
-      "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="
6741
+      "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
6715
     },
6742
     },
6716
     "json3": {
6743
     "json3": {
6717
       "version": "3.3.2",
6744
       "version": "3.3.2",
7685
         "semver": {
7712
         "semver": {
7686
           "version": "5.3.0",
7713
           "version": "5.3.0",
7687
           "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
7714
           "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
7688
-          "integrity": "sha512-mfmm3/H9+67MCVix1h+IXTpDwL6710LyHuk7+cWC9T1mE0qz4iHhh6r4hU2wrIT9iTsAAC2XQRvfblL028cpLw=="
7715
+          "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8="
7689
         }
7716
         }
7690
       }
7717
       }
7691
     },
7718
     },
7880
     "nopt": {
7907
     "nopt": {
7881
       "version": "3.0.6",
7908
       "version": "3.0.6",
7882
       "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
7909
       "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
7883
-      "integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==",
7910
+      "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
7884
       "requires": {
7911
       "requires": {
7885
         "abbrev": "1"
7912
         "abbrev": "1"
7886
       }
7913
       }
8494
     "performance-now": {
8521
     "performance-now": {
8495
       "version": "2.1.0",
8522
       "version": "2.1.0",
8496
       "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
8523
       "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
8497
-      "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow=="
8524
+      "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
8498
     },
8525
     },
8499
     "pify": {
8526
     "pify": {
8500
       "version": "3.0.0",
8527
       "version": "3.0.0",
12265
     "scss-tokenizer": {
12292
     "scss-tokenizer": {
12266
       "version": "0.2.3",
12293
       "version": "0.2.3",
12267
       "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz",
12294
       "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz",
12268
-      "integrity": "sha512-dYE8LhncfBUar6POCxMTm0Ln+erjeczqEvCJib5/7XNkdw1FkUGgwMPY360FY0FgPWQxHWCx29Jl3oejyGLM9Q==",
12295
+      "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=",
12269
       "requires": {
12296
       "requires": {
12270
         "js-base64": "^2.1.8",
12297
         "js-base64": "^2.1.8",
12271
         "source-map": "^0.4.2"
12298
         "source-map": "^0.4.2"
12274
         "source-map": {
12301
         "source-map": {
12275
           "version": "0.4.4",
12302
           "version": "0.4.4",
12276
           "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
12303
           "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
12277
-          "integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==",
12304
+          "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=",
12278
           "requires": {
12305
           "requires": {
12279
             "amdefine": ">=0.0.4"
12306
             "amdefine": ">=0.0.4"
12280
           }
12307
           }
13721
     "tunnel-agent": {
13748
     "tunnel-agent": {
13722
       "version": "0.6.0",
13749
       "version": "0.6.0",
13723
       "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
13750
       "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
13724
-      "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
13751
+      "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
13725
       "requires": {
13752
       "requires": {
13726
         "safe-buffer": "^5.0.1"
13753
         "safe-buffer": "^5.0.1"
13727
       }
13754
       }
13729
     "tweetnacl": {
13756
     "tweetnacl": {
13730
       "version": "0.14.5",
13757
       "version": "0.14.5",
13731
       "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
13758
       "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
13732
-      "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA=="
13759
+      "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
13733
     },
13760
     },
13734
     "type-check": {
13761
     "type-check": {
13735
       "version": "0.3.2",
13762
       "version": "0.3.2",
14099
     "verror": {
14126
     "verror": {
14100
       "version": "1.10.0",
14127
       "version": "1.10.0",
14101
       "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
14128
       "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
14102
-      "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==",
14129
+      "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
14103
       "requires": {
14130
       "requires": {
14104
         "assert-plus": "^1.0.0",
14131
         "assert-plus": "^1.0.0",
14105
         "core-util-is": "1.0.2",
14132
         "core-util-is": "1.0.2",

+ 2 - 1
package.json View File

12
     "lint": "eslint --ext .js,.vue src",
12
     "lint": "eslint --ext .js,.vue src",
13
     "test": "npm run lint",
13
     "test": "npm run lint",
14
     "precommit": "lint-staged",
14
     "precommit": "lint-staged",
15
-    "build": "cross-env NODE_ENV=production env_config=sit node build/build.js && npm run fixfont && npm run fiximg",
15
+    "build": "cross-env NODE_ENV=production env_config=sit node --max_old_space_size=8192 build/build.js && npm run fixfont && npm run fiximg",
16
     "fixfont": "xcopy %cd%\\dist\\static\\fonts %cd%\\dist\\static\\css\\static\\fonts /s /y /d /e /i",
16
     "fixfont": "xcopy %cd%\\dist\\static\\fonts %cd%\\dist\\static\\css\\static\\fonts /s /y /d /e /i",
17
     "fiximg": "xcopy %cd%\\dist\\static\\img %cd%\\dist\\static\\css\\static\\img /s /y /d /e /i"
17
     "fiximg": "xcopy %cd%\\dist\\static\\img %cd%\\dist\\static\\css\\static\\img /s /y /d /e /i"
18
   },
18
   },
50
     "element-ui": "^2.13.2",
50
     "element-ui": "^2.13.2",
51
     "file-saver": "^1.3.8",
51
     "file-saver": "^1.3.8",
52
     "font-awesome": "4.7.0",
52
     "font-awesome": "4.7.0",
53
+    "increase-memory-limit": "^1.0.7",
53
     "js-cookie": "2.2.0",
54
     "js-cookie": "2.2.0",
54
     "jsbarcode": "^3.11.5",
55
     "jsbarcode": "^3.11.5",
55
     "jsonlint": "1.6.3",
56
     "jsonlint": "1.6.3",

+ 6 - 5
src/api/advice.js View File

505
 }
505
 }
506
 
506
 
507
 export function getNewSchedualDoctors(params) {
507
 export function getNewSchedualDoctors(params) {
508
+  console.log('params-----', params)
508
   return request({
509
   return request({
509
     url: '/api/schedule/new/advices',
510
     url: '/api/schedule/new/advices',
510
     method: 'get',
511
     method: 'get',
568
   })
569
   })
569
 }
570
 }
570
 
571
 
571
-export function GetMobileScheduleList(params){
572
+export function GetMobileScheduleList(params) {
572
   return request({
573
   return request({
573
-    url:"/api/schedule/getmobileschedulelist",
574
-    method:"Get",
575
-    params:params,
574
+    url: '/api/schedule/getmobileschedulelist',
575
+    method: 'Get',
576
+    params: params
576
   })
577
   })
577
-}
578
+}

+ 40 - 0
src/api/patient.js View File

612
     params: params
612
     params: params
613
   })
613
   })
614
 }
614
 }
615
+
616
+export function createFirstDisease(data) {
617
+  return request({
618
+    url: '/api/patient/createfirstdisease',
619
+    method: 'post',
620
+    data: data
621
+  })
622
+}
623
+
624
+export function getFirstDiseaseList(params) {
625
+  return request({
626
+    url: '/api/patient/getfirstdiseaselist',
627
+    method: 'Get',
628
+    params: params
629
+  })
630
+}
631
+
632
+export function getFirstDetail(id, params) {
633
+  return request({
634
+    url: '/api/patient/getfirstdetailbyid?id=' + id,
635
+    method: 'get',
636
+    params: params
637
+  })
638
+}
639
+
640
+export function updateFirstDisease(data) {
641
+  return request({
642
+    url: '/api/patient/updatefirstdisease',
643
+    method: 'post',
644
+    data: data
645
+  })
646
+}
647
+
648
+export function deleteFirstDisease(params) {
649
+  return request({
650
+    url: '/api/patient/deletefirstdisease',
651
+    method: 'get',
652
+    params: params
653
+  })
654
+}

+ 8 - 1
src/lang/zh.js View File

405
     illness_discharge: '出院时病情',
405
     illness_discharge: '出院时病情',
406
     discharge_advice: '出院医嘱',
406
     discharge_advice: '出院医嘱',
407
     dialysis_remark: '透析备注',
407
     dialysis_remark: '透析备注',
408
-    catheter_operation:'导管备注',
408
+    catheter_operation: '导管备注',
409
+    main_content: '主诉内容',
410
+    patient_case: '病例特点',
411
+    tentative_diagnosis: '初步诊断',
412
+    diagnostic_basis: '诊断依据',
413
+    differential_diagnosis: '鉴别诊断',
414
+    treatment_plan: '诊疗计划'
415
+
409
   }
416
   }
410
 }
417
 }

+ 14 - 1
src/router/modules/dialysis.js View File

789
         title: '批量打印',
789
         title: '批量打印',
790
         noCache: true
790
         noCache: true
791
       }
791
       }
792
-    }
792
+    },
793
+
794
+    {
795
+      path: '/dialysis/print/batch/fiftyOne',
796
+      component: () =>
797
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne'),
798
+      hidden: true,
799
+      is_menu: false,
800
+      name: 'batch_print_order_fiftyOne',
801
+      meta: {
802
+        title: '批量打印',
803
+        noCache: true
804
+      }
805
+    },
793
   ]
806
   ]
794
 }
807
 }

+ 22 - 0
src/router/modules/patient.js View File

247
       title: 'templateSummary',
247
       title: 'templateSummary',
248
       noCache: true
248
       noCache: true
249
     }
249
     }
250
+  },
251
+  {
252
+    path: '/patient/patient/:id/firstDisease',
253
+    component: () => import('@/xt_pages/user/firstDisease'),
254
+    hidden: true,
255
+    is_menu: false,
256
+    name: 'firstDisease',
257
+    meta: {
258
+      title: 'firstDisease',
259
+      noCache: true
260
+    }
261
+  },
262
+  {
263
+    path: '/patient/patient/firstDisease/print',
264
+    component: () => import('@/xt_pages/user/firstDiseasePrint'),
265
+    hidden: true,
266
+    is_menu: false,
267
+    name: 'firstDiseasePrint',
268
+    meta: {
269
+      title: 'firstDiseasePrint',
270
+      noCache: true
271
+    }
250
   }
272
   }
251
 
273
 
252
   ]
274
   ]

+ 21 - 0
src/xt_pages/LICENSE View File

1
+MIT License
2
+
3
+Copyright (c) 2017-present PanJiaChen
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in all
13
+copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+SOFTWARE.

+ 20 - 2
src/xt_pages/Pharmacy/DrugDispensing.vue View File

484
       isVisibility: "",
484
       isVisibility: "",
485
       propsTable: "",
485
       propsTable: "",
486
       doctorList: [],
486
       doctorList: [],
487
-      admin_user_id: 0,
487
+      admin_user_id:0,
488
       waiting_drug: [], //待发药列表
488
       waiting_drug: [], //待发药列表
489
       issued_drug: [], //已发药列表
489
       issued_drug: [], //已发药列表
490
       currentRow: null,
490
       currentRow: null,
1091
       };
1091
       };
1092
       getpatientswithdrugs(params).then((res) => {
1092
       getpatientswithdrugs(params).then((res) => {
1093
         if (res.data.state == 1) {
1093
         if (res.data.state == 1) {
1094
-          this.tableData = res.data.data.list; //列表数据
1094
+          var list = res.data.data.list; //列表数据
1095
+
1096
+          if(this.$store.getters.xt_user.org.id == 10188 || this.$store.getters.xt_user.org.id == 10217 ){
1097
+            this.tableData = []
1098
+            if(list!=null && list.length >0){
1099
+              for(let i=0;i<list.length;i++){
1100
+                if(list[i].data_sources != "临时医嘱"){
1101
+                  this.tableData.push(list[i])
1102
+                }
1103
+              }
1104
+            }
1105
+
1106
+          }
1107
+          if(this.$store.getters.xt_user.org.id != 10188 && this.$store.getters.xt_user.org.id != 10217){
1108
+            this.tableData = []
1109
+            this.tableData = list
1110
+          }
1111
+         
1112
+         
1095
           this.total = res.data.data.total; //合计
1113
           this.total = res.data.data.total; //合计
1096
         } else {
1114
         } else {
1097
           this.$message.error(res.data.msg);
1115
           this.$message.error(res.data.msg);

+ 18 - 1
src/xt_pages/Pharmacy/PatientDispensing.vue View File

515
     },
515
     },
516
     //获取患者信息详情
516
     //获取患者信息详情
517
     getpatientdetails(val) {
517
     getpatientdetails(val) {
518
+      console.log("val2332323223",this.currentRow)
518
       var params = {
519
       var params = {
519
         patient_id: this.currentRow.PatientID,
520
         patient_id: this.currentRow.PatientID,
520
         is_medicine: val,
521
         is_medicine: val,
522
       };
523
       };
523
       getpharmacycontent(params).then((res) => {
524
       getpharmacycontent(params).then((res) => {
524
         if (res.data.state == 1) {
525
         if (res.data.state == 1) {
525
-          this.tableData = res.data.data.list;
526
+           var list = res.data.data.list;
527
+           console.log("hhhhawoowowow",list)
528
+          if(this.$store.getters.xt_user.org.id == 10188 || this.$store.getters.xt_user.org.id == 10217 || this.$store.getters.xt_user.org.id == 0 ){
529
+            this.tableData = []
530
+            if(list!=null && list.length >0){
531
+              for(let i=0;i<list.length;i++){
532
+                if(list[i].DataSources != "临时医嘱"){
533
+                  this.tableData.push(list[i])
534
+                }
535
+              }
536
+            }
537
+
538
+          }
539
+          if(this.$store.getters.xt_user.org.id != 10188 && this.$store.getters.xt_user.org.id != 10217 && this.$store.getters.xt_user.org.id != 0){
540
+            this.tableData = []
541
+            this.tableData = list
542
+          }
526
         } else {
543
         } else {
527
           this.$message.error(res.data.msg);
544
           this.$message.error(res.data.msg);
528
         }
545
         }

+ 6 - 0
src/xt_pages/data/template.vue View File

56
         { label: this.$t("data_config.discharge_advice"), key:"discharge_advice"},
56
         { label: this.$t("data_config.discharge_advice"), key:"discharge_advice"},
57
         { label: this.$t("data_config.dialysis_remark"), key:"dialysis_remark"},
57
         { label: this.$t("data_config.dialysis_remark"), key:"dialysis_remark"},
58
         { label: this.$t("data_config.catheter_operation"), key:"catheter_operation"},
58
         { label: this.$t("data_config.catheter_operation"), key:"catheter_operation"},
59
+        { label: this.$t("data_config.main_content"), key:"main_content"},
60
+        { label: this.$t("data_config.patient_case"), key:"patient_case"},
61
+        { label: this.$t("data_config.tentative_diagnosis"), key:"tentative_diagnosis"},
62
+        { label: this.$t("data_config.diagnostic_basis"), key:"diagnostic_basis"},
63
+        { label: this.$t("data_config.differential_diagnosis"), key:"differential_diagnosis"},
64
+        { label: this.$t("data_config.treatment_plan"), key:"treatment_plan"},
59
       ],
65
       ],
60
       activeName: "education",
66
       activeName: "education",
61
       createdTimes: 0
67
       createdTimes: 0

+ 7 - 2
src/xt_pages/dialysis/PatientBox.vue View File

158
         </p>
158
         </p>
159
 
159
 
160
 
160
 
161
-        <p v-if="$store.getters.xt_user.org.id!=9671 && $store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
161
+        <p v-if="$store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340">
162
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
162
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
163
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
163
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
164
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
164
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
165
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
165
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
166
         </p>
166
         </p>
167
-        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
167
+        <p v-if="$store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
168
              透析器/灌流器:
168
              透析器/灌流器:
169
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
169
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
170
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
170
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_irrigation}}</span>
171
+             
172
+        </p>
173
+        <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==10445">
174
+           滤过器:
175
+           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_strainer: ""}}</span>
171
         </p>
176
         </p>
172
       
177
       
173
         <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">
178
         <p v-if="$store.getters.xt_user.org.id==9671 || $store.getters.xt_user.org.id==9675 || $store.getters.xt_user.org.id==10340">

File diff suppressed because it is too large
+ 3142 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue


+ 111 - 14
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

39
                 display: inline-block;
39
                 display: inline-block;
40
               "
40
               "
41
             >
41
             >
42
-              血液净化治疗记录单
42
+              <span v-if="org_id != 0 && org_id!=10449 && org_id!=3877">
43
+                血液净化治疗记录单
44
+              </span>
45
+              <span v-if="org_id == 0 || org_id == 3877 || org_id == 10449">
46
+                <span v-if="record&&record.prescription.mode_id!=13">血液净化治疗记录单</span>
47
+                <span v-if="record&&record.prescription.mode_id==13">连续性肾脏替代治疗(CRRT)记录单</span>
48
+              </span>
43
             </div>
49
             </div>
44
           </div>
50
           </div>
45
           <div class="row">
51
           <div class="row">
928
                               : "/"
934
                               : "/"
929
                           }}
935
                           }}
930
                         </div>
936
                         </div>
931
-                        L
937
+                         <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469">ml</span> 
938
+                         <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469">L</span>
932
                       </div>
939
                       </div>
933
                       <div class="inline_block" style="flex: 1">
940
                       <div class="inline_block" style="flex: 1">
934
                         干体重:
941
                         干体重:
1021
                         ml/min
1028
                         ml/min
1022
                       </div>
1029
                       </div>
1023
                     </div>
1030
                     </div>
1031
+
1024
                     <div class="row" style="padding: 2px 0; line-height: 23px">
1032
                     <div class="row" style="padding: 2px 0; line-height: 23px">
1025
                       <div class="inline_block">
1033
                       <div class="inline_block">
1026
                         抗凝剂:
1034
                         抗凝剂:
1171
                         </div>
1179
                         </div>
1172
                       </div>
1180
                       </div>
1173
                     </div>
1181
                     </div>
1182
+
1183
+                    <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==0 ||org_id == 3877 || org_id == 10449">
1184
+                      <div class="inline_block">
1185
+                        置换速度:
1186
+                        <div
1187
+                          class="under_line"
1188
+                          style="width: 50px; text-align: center"
1189
+                        >
1190
+                          {{
1191
+                            record.prescription &&
1192
+                            record.prescription.displace_speed
1193
+                              ? record.prescription.displace_speed
1194
+                              : "/"
1195
+                          }}
1196
+                        </div>
1197
+                        ml/h
1198
+                      </div>
1199
+                      <span>&nbsp;&nbsp;&nbsp;</span>
1200
+                      <div class="inline_block">
1201
+                        透析液流速:
1202
+                        <div
1203
+                          class="under_line"
1204
+                          style="width: 50px; text-align: center"
1205
+                        >
1206
+                          {{
1207
+                            record.prescription &&
1208
+                            record.prescription.dialysis_fluid_flow
1209
+                              ? record.prescription.dialysis_fluid_flow
1210
+                              : "/"
1211
+                          }}
1212
+                        </div>
1213
+                        ml/h
1214
+                      </div>
1215
+                      
1216
+                      <span>&nbsp;&nbsp;&nbsp;</span>
1217
+                      <div class="inline_block">
1218
+                        碳酸氢钠流速:
1219
+                        <div
1220
+                          class="under_line"
1221
+                          style="width: 50px; text-align: center"
1222
+                        >
1223
+                          {{
1224
+                            record.prescription &&
1225
+                            record.prescription.sodium_bicarbonate_flow
1226
+                              ? record.prescription.sodium_bicarbonate_flow
1227
+                              : "/"
1228
+                          }}
1229
+                        </div>
1230
+                        ml/h
1231
+                      </div>
1232
+                    </div>
1174
                   </td>
1233
                   </td>
1175
                 </tr>
1234
                 </tr>
1176
                 <tr>
1235
                 <tr>
1224
                           >
1283
                           >
1225
                             SpO₂<br />(%)
1284
                             SpO₂<br />(%)
1226
                           </td>
1285
                           </td>
1227
-                          <td width="50">超滤量<br />(ml)</td>
1286
+                          <td width="50" v-if="org_id != 0 && org_id != 3877 && org_id != 10449">超滤量<br />(ml)</td>
1287
+                          <td width="50" v-if="org_id ==0 || org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1228
                           <td
1288
                           <td
1229
                             v-if="
1289
                             v-if="
1230
                               record.prescription.mode_id == 2 ||
1290
                               record.prescription.mode_id == 2 ||
1235
                           >
1295
                           >
1236
                             置换量<br />(ml)
1296
                             置换量<br />(ml)
1237
                           </td>
1297
                           </td>
1238
-
1298
+                          <td v-if="org_id == 3877 || org_id == 0 || org_id == 10449" width="50">滤前压(mmHg)</td>
1239
                           <td
1299
                           <td
1240
                             width="50"
1300
                             width="50"
1241
                             v-if="
1301
                             v-if="
1369
                           </td>
1429
                           </td>
1370
 
1430
 
1371
                           <td>
1431
                           <td>
1372
-                            <span>{{
1432
+                            <span v-if="org_id == 9671 || org_id == 10440">
1433
+                                {{
1434
+                              monitor_record.ultrafiltration_volume
1435
+                                ? monitor_record.ultrafiltration_volume
1436
+                                : "0"
1437
+                            }}
1438
+                            </span>
1439
+                             <span v-if="org_id!=9671 && org_id!=10440">
1440
+                                {{
1373
                               monitor_record.ultrafiltration_volume
1441
                               monitor_record.ultrafiltration_volume
1374
                                 ? monitor_record.ultrafiltration_volume
1442
                                 ? monitor_record.ultrafiltration_volume
1375
                                 : ""
1443
                                 : ""
1376
-                            }}</span>
1444
+                            }}
1445
+                            </span>
1377
                           </td>
1446
                           </td>
1378
 
1447
 
1379
                           <td
1448
                           <td
1390
                                 : ""
1459
                                 : ""
1391
                             }}
1460
                             }}
1392
                           </td>
1461
                           </td>
1462
+                          <td v-if="org_id == 3877 || org_id == 0 || org_id == 10449">
1463
+                            {{
1464
+                              monitor_record.filter_pressure
1465
+                                ? monitor_record.filter_pressure
1466
+                                : ""
1467
+                            }}
1468
+                          </td>
1393
                           <td
1469
                           <td
1394
                             width="50"
1470
                             width="50"
1395
                             v-if="
1471
                             v-if="
1438
                                   "
1514
                                   "
1439
                                   >【开始透析】</template
1515
                                   >【开始透析】</template
1440
                                 >
1516
                                 >
1441
-                                <template
1517
+                                <!-- <template
1442
                                   v-if="
1518
                                   v-if="
1443
                                     record.dialysis_order &&
1519
                                     record.dialysis_order &&
1444
                                     monitor_record.operate_time ==
1520
                                     monitor_record.operate_time ==
1445
                                       record.dialysis_order.end_time
1521
                                       record.dialysis_order.end_time
1446
                                   "
1522
                                   "
1447
                                   >【结束透析】</template
1523
                                   >【结束透析】</template
1448
-                                >
1524
+                                > -->
1449
                                 {{ monitor_record.end }}
1525
                                 {{ monitor_record.end }}
1450
                                 {{ monitor_record.symptom }} &nbsp;{{
1526
                                 {{ monitor_record.symptom }} &nbsp;{{
1451
                                   monitor_record.dispose
1527
                                   monitor_record.dispose
1820
                   display: inline-block;
1896
                   display: inline-block;
1821
                 "
1897
                 "
1822
               >
1898
               >
1823
-                血液净化治疗记录单
1899
+                <span v-if="org_id != 0 && org_id!=10449 && org_id!=3877">
1900
+                  血液净化治疗记录单
1901
+                </span>
1902
+                <span v-if="org_id == 0 || org_id == 3877 || org_id == 10449">
1903
+                  <span v-if="record&&record.prescription.mode_id!=13">血液净化治疗记录单</span>
1904
+                  <span v-if="record&&record.prescription.mode_id==13">连续性肾脏替代治疗(CRRT)记录单</span>
1905
+                </span>
1824
               </div>
1906
               </div>
1825
             </div>
1907
             </div>
1826
             <div class="row">
1908
             <div class="row">
2734
                           <template
2816
                           <template
2735
                             v-if="
2817
                             v-if="
2736
                               record.prescription &&
2818
                               record.prescription &&
2737
-                              record.prescription.prescription_doctor
2819
+                              record.prescription.creater
2738
                             "
2820
                             "
2739
                           >
2821
                           >
2740
                             <span
2822
                             <span
2741
                               v-if="
2823
                               v-if="
2742
                                 setAdminUserES(
2824
                                 setAdminUserES(
2743
                                   record.prescription,
2825
                                   record.prescription,
2744
-                                  'prescription_doctor'
2826
+                                  'creater'
2745
                                 ) == ''
2827
                                 ) == ''
2746
                               "
2828
                               "
2747
                               >{{
2829
                               >{{
2748
                                 getAdminUser(
2830
                                 getAdminUser(
2749
                                   record.prescription,
2831
                                   record.prescription,
2750
-                                  "prescription_doctor"
2832
+                                  "creater"
2751
                                 )
2833
                                 )
2752
                               }}</span
2834
                               }}</span
2753
                             >
2835
                             >
2756
                               :src="
2838
                               :src="
2757
                                 setAdminUserES(
2839
                                 setAdminUserES(
2758
                                   record.prescription,
2840
                                   record.prescription,
2759
-                                  'prescription_doctor'
2841
+                                  'creater'
2760
                                 )
2842
                                 )
2761
                               "
2843
                               "
2762
                               alt=""
2844
                               alt=""
2915
         var resp = rs.data;
2997
         var resp = rs.data;
2916
         if (resp.state == 1) {
2998
         if (resp.state == 1) {
2917
           this.records = this.records.concat(resp.data.schedules);
2999
           this.records = this.records.concat(resp.data.schedules);
2918
-
3000
+          var tempmonitorflag = true;
3001
+          for(let i=0;i<this.records.length;i++){
3002
+            for(let j=0;j<this.records[i].monitor_records.length;j++){
3003
+              this.records[i].monitor_records[j].end = ""
3004
+              if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
3005
+              this.records[i].monitor_records[j].end = "【结束透析】";
3006
+              tempmonitorflag = false;
3007
+            }
3008
+            if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
3009
+              this.records[i].monitor_records[j].end = "【结束透析】";
3010
+             }
3011
+             if(this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end == ""){
3012
+               this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end = "【结束透析】"
3013
+             }
3014
+            }
3015
+          }
2919
           for (const recordIndex in this.records) {
3016
           for (const recordIndex in this.records) {
2920
             var dlegh = 0;
3017
             var dlegh = 0;
2921
             if (
3018
             if (

+ 20 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue View File

1329
                                   "
1329
                                   "
1330
                                   >【开始透析】</template
1330
                                   >【开始透析】</template
1331
                                 >
1331
                                 >
1332
-                                <template
1332
+                                <!-- <template
1333
                                   v-if="
1333
                                   v-if="
1334
                                     record.dialysis_order &&
1334
                                     record.dialysis_order &&
1335
                                     monitor_record.operate_time ==
1335
                                     monitor_record.operate_time ==
1336
                                       record.dialysis_order.end_time
1336
                                       record.dialysis_order.end_time
1337
                                   "
1337
                                   "
1338
                                   >【结束透析】</template
1338
                                   >【结束透析】</template
1339
-                                >
1339
+                                > -->
1340
                                 {{ monitor_record.end }}
1340
                                 {{ monitor_record.end }}
1341
                                 {{ monitor_record.symptom }} &nbsp;{{
1341
                                 {{ monitor_record.symptom }} &nbsp;{{
1342
                                   monitor_record.dispose
1342
                                   monitor_record.dispose
2675
         var resp = rs.data;
2675
         var resp = rs.data;
2676
         if (resp.state == 1) {
2676
         if (resp.state == 1) {
2677
           this.records = this.records.concat(resp.data.schedules);
2677
           this.records = this.records.concat(resp.data.schedules);
2678
-
2678
+          console.log("this.records------",this.records)
2679
+          var tempmonitorflag = true;
2680
+          for(let i=0;i<this.records.length;i++){
2681
+            for(let j=0;j<this.records[i].monitor_records.length;j++){
2682
+              this.records[i].monitor_records[j].end = ""
2683
+              if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time ==  this.records[i].dialysis_order.end_time) {
2684
+              this.records[i].monitor_records[j].end = "【结束透析】";
2685
+              tempmonitorflag = false;
2686
+            }
2687
+            if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
2688
+              this.records[i].monitor_records[j].end = "【结束透析】";
2689
+            }
2690
+             if(this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end == ""){
2691
+               this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end = "【结束透析】"
2692
+             }
2693
+            }
2694
+          }
2695
+          console.log("hhhhhhhhh",this.records)
2679
           for (const recordIndex in this.records) {
2696
           for (const recordIndex in this.records) {
2680
             var dlegh = 0;
2697
             var dlegh = 0;
2681
             if (
2698
             if (

+ 68 - 30
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue View File

200
                   </td>
200
                   </td>
201
                 </tr>
201
                 </tr>
202
                 <tr>
202
                 <tr>
203
-                  <td style="text-align:left;" colspan="1">
204
-                    <span style="display:inline-block;margin-left:15px;"
205
-                      >透前体重:{{record.assessment_before_dislysis.weight_before?record.assessment_before_dislysis.weight_before:"/"}}&nbsp;kg</span>
206
-                  </td>
203
+                
207
                   <td style="text-align:left;" colspan="1">
204
                   <td style="text-align:left;" colspan="1">
208
                     <span style="display:inline-block;margin-left:15px;"
205
                     <span style="display:inline-block;margin-left:15px;"
209
                       >设定脱水量:{{record.prescription.target_ultrafiltration?record.prescription.target_ultrafiltration:"/"}}&nbsp;ml</span
206
                       >设定脱水量:{{record.prescription.target_ultrafiltration?record.prescription.target_ultrafiltration:"/"}}&nbsp;ml</span
217
                          ></label-box>
214
                          ></label-box>
218
                      </span>
215
                      </span>
219
                    </td>
216
                    </td>
220
-                   <td style="text-align: left" colspan="2">
217
+                   <td style="text-align: left" colspan="3">
221
               <span style="display: inline-block; margin-left: 15px">
218
               <span style="display: inline-block; margin-left: 15px">
222
                 <span v-if="record.prescription.anticoagulant == 2">普通肝素首剂:</span>
219
                 <span v-if="record.prescription.anticoagulant == 2">普通肝素首剂:</span>
223
                 <span v-if="record.prescription.anticoagulant == 3"
220
                 <span v-if="record.prescription.anticoagulant == 3"
306
               <span v-if="record.prescription.anticoagulant == 2">mg</span>
303
               <span v-if="record.prescription.anticoagulant == 2">mg</span>
307
               <span v-if="record.prescription.anticoagulant == 1">mg</span>
304
               <span v-if="record.prescription.anticoagulant == 1">mg</span>
308
             </td>
305
             </td>
309
-                </tr>
306
+           
307
+            </tr>
308
+                 <td style="text-align:left;" colspan="1">
309
+                    <span style="display:inline-block;margin-left:15px;"
310
+                      >透前体重:{{record.assessment_before_dislysis.weight_before?record.assessment_before_dislysis.weight_before:"/"}}&nbsp;kg</span>
311
+                  </td>
312
+                 <td style="text-align:left;" colspan="1" >
313
+                    <span style="display:inline-block;margin-left:15px;"
314
+                      >透析器型号:
315
+                    <span v-if="record.prescription.dialysis_dialyszers!=''">
316
+                      {{
317
+                        record.prescription.dialysis_dialyszers
318
+                         ?  record.prescription.dialysis_dialyszers
319
+                           : "/"
320
+                        }}
321
+                      </span> 
322
+                    
323
+                      </span>
324
+                  </td>
325
+
326
+                  <td style="text-align:left;" colspan="2">
327
+                    <span style="display:inline-block;margin-left:15px;"
328
+                      >灌流器型号:
329
+                   
330
+                      <span v-if="record.prescription.dialysis_irrigation!=''">
331
+                        &nbsp;&nbsp;{{
332
+                        record.prescription.dialysis_irrigation
333
+                        ? record.prescription.dialysis_irrigation
334
+                        : "/"
335
+                    }}
336
+                      </span>
337
+                      </span>
338
+                  </td>
339
+
340
+                   <td style="text-align:left;" colspan="2">
341
+                    <span style="display:inline-block;margin-left:15px;"
342
+                      >滤过器型号:
343
+                      <span v-if="record.prescription.dialysis_strainer!=''">
344
+                      &nbsp;&nbsp;{{
345
+                          record.prescription.dialysis_strainer
346
+                          ? record.prescription.dialysis_strainer
347
+                          : "/"
348
+                      }}
349
+                      </span> 
350
+                      </span>
351
+                  </td>
352
+                  <td></td>
353
+             <tr>
354
+
355
+             </tr>
310
                 <tr>
356
                 <tr>
311
                   <td style="text-align:left;" colspan="1">
357
                   <td style="text-align:left;" colspan="1">
312
                     <span style="display:inline-block;margin-left:15px;"
358
                     <span style="display:inline-block;margin-left:15px;"
340
                           }}分钟</span>
386
                           }}分钟</span>
341
                       &nbsp;
387
                       &nbsp;
342
                   </td>
388
                   </td>
343
-                   <td style="text-align:left;" >
344
-                    <span style="display:inline-block;margin-left:15px;"
345
-                      >透析/灌流器型号:
346
-                     {{
347
-                        record.prescription.dialysis_dialyszers
348
-                         ?  record.prescription.dialysis_dialyszers
349
-                           : "/"
350
-                        }}&nbsp;&nbsp;{{
351
-                        record.prescription.dialysis_irrigation
352
-                        ? record.prescription.dialysis_irrigation
353
-                        : "/"
354
-                    }}
355
-                      </span>
356
-                  </td>
357
-                   <td style="text-align:left;" colspan="2">
389
+               
390
+                   <td style="text-align:left;" colspan="3">
358
                     <span style="display:inline-block;margin-left:15px;"
391
                     <span style="display:inline-block;margin-left:15px;"
359
                       >置换方式:
392
                       >置换方式:
360
                        <label-box
393
                        <label-box
361
                          :isChecked="
394
                          :isChecked="
362
-                          record.prescription.displace_liqui_part == 1 ? true : false
395
+                          record.prescription.displace_liqui_part == 1 && record.prescription.mode_id != 2 &&  record.prescription.mode_id != 5 && record.prescription.mode_id != 12 ? true : false
363
                           "
396
                           "
364
                          showValue="前"
397
                          showValue="前"
365
                          ></label-box
398
                          ></label-box
366
                          >&nbsp;
399
                          >&nbsp;
367
                         <label-box
400
                         <label-box
368
                           :isChecked="
401
                           :isChecked="
369
-                            record.prescription.displace_liqui_part == 2 ? true : false
402
+                            record.prescription.displace_liqui_part == 2 && record.prescription.mode_id != 2 &&  record.prescription.mode_id != 5 && record.prescription.mode_id != 12? true : false
370
                           "
403
                           "
371
                           showValue="后"
404
                           showValue="后"
372
                         ></label-box>
405
                         ></label-box>
373
-                          &nbsp; (总量:{{
406
+                          &nbsp; (总量:
407
+                          <span v-if="record.prescription.mode_id == 2 || record.prescription.mode_id == 5 || record.prescription.mode_id == 12">{{
374
                             record.prescription.displace_liqui_value
408
                             record.prescription.displace_liqui_value
375
                               ? record.prescription.displace_liqui_value
409
                               ? record.prescription.displace_liqui_value
376
                               : "/"
410
                               : "/"
377
                           }}L)
411
                           }}L)
412
+                          </span>
378
                       </span>&nbsp;
413
                       </span>&nbsp;
379
                   </td>
414
                   </td>
380
                 </tr>
415
                 </tr>
398
                             :src="
433
                             :src="
399
                               setAdminUserES(
434
                               setAdminUserES(
400
                                 record.dialysis_order,
435
                                 record.dialysis_order,
401
-                                'start_nurse'
436
+                                'quality_nurse_id'
402
                               )
437
                               )
403
                             "
438
                             "
404
                             alt=""
439
                             alt=""
436
                           />
471
                           />
437
                       </span>
472
                       </span>
438
                   </td>
473
                   </td>
439
-                   <td style="text-align:left;" colspan="3">
474
+                   <td style="text-align:left;" colspan="2">
440
                     <span style="display: inline-block; margin-left: 15px">
475
                     <span style="display: inline-block; margin-left: 15px">
441
                     穿刺护士:
476
                     穿刺护士:
442
                        <span
477
                        <span
464
                             style="height: 30px;"
499
                             style="height: 30px;"
465
                           />
500
                           />
466
                       </span>
501
                       </span>
467
-                      <span style="display: inline-block; margin-left: 15px">
502
+                      
503
+                  </td>
504
+                   <td style="text-align:left;" colspan="1">
505
+                   <span style="display: inline-block; margin-left: 15px">
468
                         核对护士:
506
                         核对护士:
469
                        <span
507
                        <span
470
                        style="height: 30px; display: inline-block"
508
                        style="height: 30px; display: inline-block"
492
                             style="height: 30px;"
530
                             style="height: 30px;"
493
                           />
531
                           />
494
                       </span>
532
                       </span>
495
-                  </td>
533
+                   </td>
496
                   <td style="text-align:left;" colspan="3">
534
                   <td style="text-align:left;" colspan="3">
497
                     <!-- <span style="display:inline-block;margin-left:15px;display:flex;align-items:center;height:36px;"
535
                     <!-- <span style="display:inline-block;margin-left:15px;display:flex;align-items:center;height:36px;"
498
                       >医生签名:
536
                       >医生签名:
1358
                               >* {{ advice[0].prescribing_number
1396
                               >* {{ advice[0].prescribing_number
1359
                               }}{{ advice[0].prescribing_number_unit }}</span
1397
                               }}{{ advice[0].prescribing_number_unit }}</span
1360
                             >
1398
                             >
1361
-                            <span v-if="advice[0].single_dose != 0"
1362
-                              >{{ advice[0].single_dose
1399
+                            <span v-if="advice[0].single_dose != 0"> 
1400
+                             <span v-if="advice[0].single_dose >0"> 单次用量 </span>{{ advice[0].single_dose
1363
                               }}{{ advice[0].single_dose_unit }}</span
1401
                               }}{{ advice[0].single_dose_unit }}</span
1364
                             >
1402
                             >
1365
                             <span>{{ advice[0].delivery_way }}</span>
1403
                             <span>{{ advice[0].delivery_way }}</span>

+ 35 - 13
src/xt_pages/dialysis/batch_print/batch_print_order_twentyFive.vue View File

1330
         return age
1330
         return age
1331
       }
1331
       }
1332
     },
1332
     },
1333
+    // getAge: function(val) {
1334
+    //   val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
1335
+    //   if (
1336
+    //     this.org_template_info.template_id == 2 ||
1337
+    //     this.org_template_info.template_id == 0
1338
+    //   ) {
1339
+    //     if (val.age == 0) {
1340
+    //       return jsGetAge(val.birth, "-");
1341
+    //     } else {
1342
+    //       return val.age;
1343
+    //     }
1344
+    //   } else {
1345
+    //     return jsGetAge(val.birth, "-");
1346
+    //   }
1347
+    // },
1333
     getAge: function(val) {
1348
     getAge: function(val) {
1334
-      val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
1335
-      if (
1336
-        this.org_template_info.template_id == 2 ||
1337
-        this.org_template_info.template_id == 0
1338
-      ) {
1339
-        if (val.age == 0) {
1340
-          return jsGetAge(val.birth, "-");
1341
-        } else {
1342
-          return val.age;
1343
-        }
1344
-      } else {
1345
-        return jsGetAge(val.birth, "-");
1349
+     
1350
+     if (val.id_card_no) {
1351
+       var thisLen = val.id_card_no.length
1352
+
1353
+       var birth = ''
1354
+       if (thisLen == 15) {
1355
+         birth = '19' + val.id_card_no.substr(6, 6)
1356
+       } else {
1357
+         birth = val.id_card_no.substr(6, 8)
1358
+       }
1359
+       var birthtwo =
1360
+         birth.substr(0, 4) +
1361
+         '-' +
1362
+         birth.substr(4, 2) +
1363
+         '-' +
1364
+         birth.substr(6, 2)
1365
+
1366
+       var age = jsGetAge(birthtwo, '-')
1367
+       return age
1346
       }
1368
       }
1347
-    },
1369
+     },
1348
     printAction: function() {
1370
     printAction: function() {
1349
       const style =
1371
       const style =
1350
         '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}';
1372
         '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}';

+ 34 - 11
src/xt_pages/dialysis/bloodPresssWatch.vue View File

329
           >批量打印</el-button
329
           >批量打印</el-button
330
         >
330
         >
331
       </template>
331
       </template>
332
+      <template v-if="this.template_id == 51">
333
+        <el-button
334
+          size="small"
335
+          icon="el-icon-printer"
336
+          :disabled="selecting_schs.length == 0"
337
+          @click="batchPrintAction"
338
+          type="primary"
339
+          >批量打印</el-button>
340
+      </template>
332
       <template v-if="this.template_id == 59">
341
       <template v-if="this.template_id == 59">
333
         <el-button
342
         <el-button
334
           size="small"
343
           size="small"
336
           :disabled="selecting_schs.length == 0"
345
           :disabled="selecting_schs.length == 0"
337
           @click="batchPrintAction"
346
           @click="batchPrintAction"
338
           type="primary"
347
           type="primary"
339
-          >打印</el-button>
348
+          >批量打印</el-button>
340
       </template>
349
       </template>
341
       <template v-if="this.template_id == 60">
350
       <template v-if="this.template_id == 60">
342
         <el-button
351
         <el-button
534
           align="center"
543
           align="center"
535
           width="100"
544
           width="100"
536
         ></el-table-column>
545
         ></el-table-column>
537
-
546
+        <el-table-column
547
+          prop="dry_weight"
548
+          label="干体重(kg)"
549
+          align="center"
550
+          width="120"
551
+        ></el-table-column>
538
         <el-table-column
552
         <el-table-column
539
           prop="dialysis_before_weight"
553
           prop="dialysis_before_weight"
540
           label="透前称重(kg)"
554
           label="透前称重(kg)"
1408
         this.getTemplateInfo();
1422
         this.getTemplateInfo();
1409
       }else {
1423
       }else {
1410
         var start_month = moment().startOf('month').format('YYYY-MM-DD')
1424
         var start_month = moment().startOf('month').format('YYYY-MM-DD')
1411
-        var start_time = this.getTimestamp(start_month)
1425
+        var start_time = this.getTimestamp(start_month) 
1412
         this.listQuery.start_time = start_time
1426
         this.listQuery.start_time = start_time
1413
         var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1427
         var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1414
         var end_time = this.getTimestamp(end_month)
1428
         var end_time = this.getTimestamp(end_month)
1415
-        this.listQuery.end_time = end_time
1429
+        this.listQuery.end_time = end_time 
1416
         this.getSchedualPatientList()
1430
         this.getSchedualPatientList()
1417
       
1431
       
1418
         this.getAllZone();
1432
         this.getAllZone();
1435
       var date = new Date(nowDate + " 00:00:00");
1449
       var date = new Date(nowDate + " 00:00:00");
1436
       this.listQuery.schedul_time = date.getTime();
1450
       this.listQuery.schedul_time = date.getTime();
1437
       var start_month = moment().startOf('month').format('YYYY-MM-DD')
1451
       var start_month = moment().startOf('month').format('YYYY-MM-DD')
1438
-      var start_time = this.getTimestamp(start_month)
1452
+      var start_time = this.getTimestamp(start_month) 
1453
+     
1439
       this.listQuery.start_time = start_time
1454
       this.listQuery.start_time = start_time
1440
       var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1455
       var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1441
       var end_time = this.getTimestamp(end_month)
1456
       var end_time = this.getTimestamp(end_month)
1442
       this.listQuery.end_time = end_time
1457
       this.listQuery.end_time = end_time
1443
-      console.log("listQuery---------",this.listQuery)
1458
+     
1444
       this.getAllZone();
1459
       this.getAllZone();
1445
       this.getSchedualPatientList();
1460
       this.getSchedualPatientList();
1446
       this.getTemplateInfo();
1461
       this.getTemplateInfo();
1513
     },
1528
     },
1514
     getTimestamp(time) { //把时间日期转成时间戳
1529
     getTimestamp(time) { //把时间日期转成时间戳
1515
 
1530
 
1516
-      return (new Date(time)).getTime()
1531
+      return (new Date(time)).getTime() - 28800000
1517
     },
1532
     },
1518
     getTimestampOne(time) { //把时间日期转成时间戳
1533
     getTimestampOne(time) { //把时间日期转成时间戳
1519
 
1534
 
1529
         this.listQuery.schedul_time = "";
1544
         this.listQuery.schedul_time = "";
1530
 
1545
 
1531
       }
1546
       }
1532
-      console.log("params332322332323232",this.listQuery)
1547
+    
1548
+      
1549
+      console.log("params332322332323232",this.listQuery.start_time)
1533
       this.SchedualPatientsTableData = [];
1550
       this.SchedualPatientsTableData = [];
1534
       getSchedualPatient(this.listQuery).then(response => {
1551
       getSchedualPatient(this.listQuery).then(response => {
1535
 
1552
 
1540
         } else {
1557
         } else {
1541
           this.loading = false;
1558
           this.loading = false;
1542
           this.total = response.data.data.total;
1559
           this.total = response.data.data.total;
1543
-          // console.log(response.data.data)
1560
+          console.log(response.data.data.schedule)
1544
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1561
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1545
 
1562
 
1546
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
1563
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
1576
               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1593
               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1577
                 SchedualPatientsTable["dialysis_before_weight"] =response.data.data.schedule[i].assessment_before_dislysis.weight_before;
1594
                 SchedualPatientsTable["dialysis_before_weight"] =response.data.data.schedule[i].assessment_before_dislysis.weight_before;
1578
               }
1595
               }
1596
+
1597
+               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1598
+                SchedualPatientsTable["dry_weight"] =response.data.data.schedule[i].assessment_before_dislysis.dry_weight;
1599
+              }
1579
               if (response.data.data.schedule[i].assessment_after_dislysis !=null) {
1600
               if (response.data.data.schedule[i].assessment_after_dislysis !=null) {
1580
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
1601
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
1581
               }
1602
               }
1870
 
1891
 
1871
 
1892
 
1872
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
1893
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
1873
-              console.log("wode数据",(-100).toString())
1874
-              console.log("数据哦哦😯噢232o",this.SchedualPatientsTableData)
1894
+              // console.log("wode数据",(-100).toString())
1895
+              // console.log("数据哦哦😯噢232o",this.SchedualPatientsTableData)
1875
 
1896
 
1876
             }
1897
             }
1877
           }
1898
           }
2057
         this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
2078
         this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
2058
       } else if (this.template_id == 48) {
2079
       } else if (this.template_id == 48) {
2059
         this.$router.push({ path: "/dialysis/print/batch/six" });
2080
         this.$router.push({ path: "/dialysis/print/batch/six" });
2081
+      }else if (this.template_id == 51) {
2082
+        this.$router.push({ path: "/dialysis/print/batch/fiftyOne" });
2060
       }else if (this.template_id == 59) {
2083
       }else if (this.template_id == 59) {
2061
         this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
2084
         this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
2062
       }else if (this.template_id == 60) {
2085
       }else if (this.template_id == 60) {

+ 37 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

124
           <span class="unit"></span>
124
           <span class="unit"></span>
125
         </li>
125
         </li>
126
 
126
 
127
+         <li v-if="isShow('滤过器')">
128
+          <label>滤过器 : </label>
129
+          <span class="content">{{ dialysis_strainer }}</span>
130
+          <span class="unit"></span>
131
+        </li>
132
+
127
         <li v-if="isShow('透析前使用特殊药物')">
133
         <li v-if="isShow('透析前使用特殊药物')">
128
           <label>透析前使用特殊药物: </label>
134
           <label>透析前使用特殊药物: </label>
129
           <span class="content">{{ special_medicine }}</span>
135
           <span class="content">{{ special_medicine }}</span>
142
           <label>目标超滤量 : </label>
148
           <label>目标超滤量 : </label>
143
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
149
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
144
           
150
           
145
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
146
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
151
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395  && this.$store.getters.xt_user.template_info.template_id!=60  && this.$store.getters.xt_user.template_info.org_id != 10340  && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10441 && this.$store.getters.xt_user.template_info.org_id != 10445 && this.$store.getters.xt_user.template_info.org_id != 9829 &&  this.$store.getters.xt_user.template_info.org_id != 10440  &&  this.$store.getters.xt_user.template_info.org_id != 10469"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
152
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id==10441 || this.$store.getters.xt_user.template_info.org_id==10445 || this.$store.getters.xt_user.template_info.org_id == 9829 ||  this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
147
         </li>
153
         </li>
148
 
154
 
149
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
155
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
157
           <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
163
           <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
158
         </li> -->
164
         </li> -->
159
 
165
 
166
+
167
+        <li v-if="isShow('处方脱水量')">
168
+          <label>处方脱水量 : </label>
169
+          <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
170
+          <span class="unit">{{ prescription_water != "0" ? "ml" : "" }}</span>
171
+        </li>
172
+
173
+       
160
         <li v-if="isShow('钾')">
174
         <li v-if="isShow('钾')">
161
           <label>钾 : </label>
175
           <label>钾 : </label>
162
           <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
176
           <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
572
           <span class="content">{{this.prescription.sodium_curve}}</span>
586
           <span class="content">{{this.prescription.sodium_curve}}</span>
573
         </li>
587
         </li>
574
 
588
 
589
+        <li v-if="isShow('开始钠')">
590
+          <label>开始钠: </label>
591
+          <span class="content">{{this.prescription.start_sodium}}</span>
592
+        </li>
593
+
594
+        <li v-if="isShow('透析液流速')">
595
+          <label>透析液流速(ml/h): </label>
596
+          <span class="content">{{this.prescription.dialysis_fluid_flow}}</span>
597
+        </li>
598
+
599
+        <li v-if="isShow('碳酸氢钠流速')">
600
+          <label>碳酸氢钠流速(ml/h): </label>
601
+          <span class="content">{{this.prescription.sodium_bicarbonate_flow}}</span>
602
+        </li>
603
+
575
         <li v-if="isShow('病情处理')">
604
         <li v-if="isShow('病情处理')">
576
           <label>病情处理: </label>
605
           <label>病情处理: </label>
577
           <span class="content">{{this.prescription.treatment_remark}}</span>
606
           <span class="content">{{this.prescription.treatment_remark}}</span>
901
     },
930
     },
902
     reduce_amount:function(){
931
     reduce_amount:function(){
903
        return this.getValueStr('reduce_amount','reduce_amount')
932
        return this.getValueStr('reduce_amount','reduce_amount')
933
+    },
934
+    prescription_water:function(){
935
+      return this.getValueStr('prescription_water','prescription_water')
936
+    },
937
+    dialysis_strainer:function(){
938
+       return this.getValueStr('dialysis_strainer','dialysis_strainer')
904
     }
939
     }
905
   
940
   
906
   },
941
   },

+ 8 - 0
src/xt_pages/dialysis/details/NavIgation.vue View File

121
       :admin_users="admin_users"
121
       :admin_users="admin_users"
122
       :dry_weight="last_dryWeight_dislysis"
122
       :dry_weight="last_dryWeight_dislysis"
123
       :lastAssessment="lastAssessment"
123
       :lastAssessment="lastAssessment"
124
+       :prescription="prescription"
124
     ></assessment-before-dislysis-dialog>
125
     ></assessment-before-dislysis-dialog>
125
 
126
 
126
     <treatment-summary-dialog
127
     <treatment-summary-dialog
662
       this.$refs.finish_dialog.show(this.dialysis_order);
663
       this.$refs.finish_dialog.show(this.dialysis_order);
663
     },
664
     },
664
     showPrescription: function() {
665
     showPrescription: function() {
666
+      console.log("prescirpiton+++++++++++",this.prescription)
665
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open,this.admin_users);
667
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open,this.admin_users);
666
     },
668
     },
667
     showAccepts: function() {
669
     showAccepts: function() {
685
         this.assessment_after_dislysis
687
         this.assessment_after_dislysis
686
       );
688
       );
687
       this.$emit("assessmentAfterDislysis", this.assessment_after_dislysis);
689
       this.$emit("assessmentAfterDislysis", this.assessment_after_dislysis);
690
+    },
691
+    showPre(){
692
+
693
+    },
694
+    getParentMethods:function(val){
695
+      this.$parent.getScheduleDetail()
688
     }
696
     }
689
   }
697
   }
690
 };
698
 };

+ 19 - 4
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue View File

130
             </el-option>
130
             </el-option>
131
            </el-select>
131
            </el-select>
132
            <label class="title"> <span class="name">病区选择</span> : </label>
132
            <label class="title"> <span class="name">病区选择</span> : </label>
133
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
133
+           <el-select v-model="partion_type" placeholder="请选择" multiple @change="changePartionType">
134
             <el-option
134
             <el-option
135
               v-for="item in partitionArr"
135
               v-for="item in partitionArr"
136
               :key="item.id"
136
               :key="item.id"
258
             return v.getTime() < new Date().getTime() - 86400000;
258
             return v.getTime() < new Date().getTime() - 86400000;
259
           },
259
           },
260
         },
260
         },
261
+        zoneIdList:[],
262
+        partion_str:"",
261
       }
263
       }
262
     },
264
     },
263
     created() {
265
     created() {
398
             return false
400
             return false
399
           } else {
401
           } else {
400
             this.partitionArr = response.data.data.zone
402
             this.partitionArr = response.data.data.zone
401
-            this.partitionArr.unshift({ id: 0, name: '全部' })
403
+            for(let i=0;i<this.partitionArr.length;i++){
404
+              this.zoneIdList.push(this.partitionArr[i].id)
405
+            }
406
+            // this.partitionArr.unshift({ id: 0, name: '全部' })
402
           }
407
           }
403
         })
408
         })
404
       },
409
       },
405
       statistics() {
410
       statistics() {
406
          this.tableList = []
411
          this.tableList = []
412
+
413
+          var str = ""
414
+         if(this.partion_type==0){
415
+            str = this.zoneIdList.join(",")
416
+         }
417
+         if(this.partion_type!=0){
418
+            str = this.partion_type.join(",")
419
+         }
420
+         this.partion_str = ""
421
+         this.partion_str = str  
407
           var params = {
422
           var params = {
408
             schedule_type:this.schedule_type,
423
             schedule_type:this.schedule_type,
409
-            partion_type:this.partion_type,
424
+            partion_type:str,
410
             selected_date:this.query.schedule_date,
425
             selected_date:this.query.schedule_date,
411
           }
426
           }
412
         // console.log("params2332232wo",params)
427
         // console.log("params2332232wo",params)
726
        this.$router.push({path:'/dialysis/consumable/dialysisdrugprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
741
        this.$router.push({path:'/dialysis/consumable/dialysisdrugprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
727
       },
742
       },
728
       toPrintOne(){
743
       toPrintOne(){
729
-        this.$router.push({path:'/dialysis/consumable/dialysisdrugcountprint?schedule_type='+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.config.is_open})
744
+        this.$router.push({path:'/dialysis/consumable/dialysisdrugcountprint?schedule_type='+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.config.is_open})
730
       },
745
       },
731
      changeScheduleType(){
746
      changeScheduleType(){
732
       this.tableList = []
747
       this.tableList = []

+ 35 - 7
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

212
             </el-option>
212
             </el-option>
213
            </el-select>
213
            </el-select>
214
            <label class="title"> <span class="name">病区选择</span> : </label>
214
            <label class="title"> <span class="name">病区选择</span> : </label>
215
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
215
+           <el-select v-model="partion_type" placeholder="请选择" multiple @change="changePartionType" >
216
             <el-option
216
             <el-option
217
               v-for="item in partitionArr"
217
               v-for="item in partitionArr"
218
               :key="item.id"
218
               :key="item.id"
320
             </el-option>
320
             </el-option>
321
            </el-select>
321
            </el-select>
322
            <label class="title"> <span class="name">病区选择</span> : </label>
322
            <label class="title"> <span class="name">病区选择</span> : </label>
323
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
323
+           <el-select v-model="partion_type" placeholder="请选择" multiple @change="changePartionType">
324
             <el-option
324
             <el-option
325
               v-for="item in partitionArr"
325
               v-for="item in partitionArr"
326
               :key="item.id"
326
               :key="item.id"
475
         typeList:[],
475
         typeList:[],
476
         ids:"",
476
         ids:"",
477
         org_id:0,
477
         org_id:0,
478
+        zoneIdList:[],
479
+        pationType_str:"",
478
       }
480
       }
479
     },
481
     },
480
     created() {
482
     created() {
754
             return false
756
             return false
755
           } else {
757
           } else {
756
             this.partitionArr = response.data.data.zone
758
             this.partitionArr = response.data.data.zone
757
-            this.partitionArr.unshift({ id: 0, name: '全部' })
759
+            for(let i=0;i<this.partitionArr.length;i++){
760
+              this.zoneIdList.push(this.partitionArr[i].id)
761
+            }
762
+            // this.partitionArr.unshift({ id: 0, name: '全部' })
758
           }
763
           }
759
         })
764
         })
760
       },
765
       },
761
       statistics() {
766
       statistics() {
762
         this.tableList = []
767
         this.tableList = []
768
+        
769
+        var arr = this.zoneIdList.join(",")
770
+        var str = ""
771
+         if(this.partion_type == 0){
772
+            str = arr
773
+         }
774
+         if(this.partion_type != 0){
775
+            str = this.partion_type.join(',')
776
+         }
777
+         this.pationType_str = ""
778
+         this.pationType_str = str
779
+        console.log("str-==-------",str)
763
         var params = {
780
         var params = {
764
           schedule_type:this.schedule_type,
781
           schedule_type:this.schedule_type,
765
-          partion_type:this.partion_type,
782
+          partion_type:str,
766
           selected_date:this.query.schedule_date,
783
           selected_date:this.query.schedule_date,
767
         }
784
         }
785
+       
768
        getDialysisGoodTotalCount(params).then(response=>{
786
        getDialysisGoodTotalCount(params).then(response=>{
769
           if(response.data.state == 1){
787
           if(response.data.state == 1){
770
             this.startDialogVisible = true
788
             this.startDialogVisible = true
1102
       },
1120
       },
1103
       toStatistics(){
1121
       toStatistics(){
1104
         this.tableList = []
1122
         this.tableList = []
1123
+        var arr = this.zoneIdList.join(",")
1124
+        var str = ""
1125
+         if(this.partion_type == 0){
1126
+            str = arr
1127
+         }
1128
+         if(this.partion_type != 0){
1129
+            str = this.partion_type.join(',')
1130
+         }
1131
+         this.pationType_str=""
1132
+         this.pationType_str = str
1105
          var params = {
1133
          var params = {
1106
           schedule_type:this.schedule_type,
1134
           schedule_type:this.schedule_type,
1107
-          partion_type:this.partion_type,
1135
+          partion_type:str,
1108
           selected_date:this.query.schedule_date,
1136
           selected_date:this.query.schedule_date,
1109
         }
1137
         }
1110
         getHisDialysisGoodCount(params).then(response=>{
1138
         getHisDialysisGoodCount(params).then(response=>{
1974
      this.$router.push({path:'/dialysis/consumable/dialysisgoodprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
2002
      this.$router.push({path:'/dialysis/consumable/dialysisgoodprint?limit='+this.query.limit+"&page="+this.query.page+"&partition_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&schedule_type="+this.query.schedule_type+"&keywords="+this.query.keywords+"&ids="+this.ids})
1975
     },
2003
     },
1976
     toPrintOne(){
2004
     toPrintOne(){
1977
-      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
2005
+      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.pationType_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
1978
     },
2006
     },
1979
     toHisPrint(){
2007
     toHisPrint(){
1980
-      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
2008
+      this.$router.push({path:"/dialysis/consumable/dialysisgoodcountprint?schedule_type="+this.schedule_type+"&partion_type="+this.pationType_str+"&schedule_date="+this.query.schedule_date+"&is_open="+this.his_config.is_open})
1981
     },
2009
     },
1982
     toExportListOne(){
2010
     toExportListOne(){
1983
       import('@/vendor/Export2Excel').then(excel => {
2011
       import('@/vendor/Export2Excel').then(excel => {

+ 8 - 8
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

28
           <el-col :span="8" v-if="isShow('实际超滤量')">
28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
             <el-form-item
29
             <el-form-item
30
               label="实际超滤量(ml): "
30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445"  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410"  >
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>
377
                 :value="item.id"
377
                 :value="item.id"
378
                 :key="item.id"
378
                 :key="item.id"
379
               ></el-option>
379
               ></el-option>
380
-            </el-select> 
380
+            </el-select>
381
           </el-form-item>
381
           </el-form-item>
382
         </el-col>
382
         </el-col>
383
 
383
 
625
             </el-form-item>
625
             </el-form-item>
626
         </el-col>
626
         </el-col>
627
 
627
 
628
-      
628
+
629
       </el-form>
629
       </el-form>
630
 
630
 
631
 
631
 
967
       data['weight_after'] = this.form.weight_after ? parseFloat(this.form.weight_after) : 0
967
       data['weight_after'] = this.form.weight_after ? parseFloat(this.form.weight_after) : 0
968
       data['weight_loss'] = this.form.weight_loss ? parseFloat(this.form.weight_loss) : 0
968
       data['weight_loss'] = this.form.weight_loss ? parseFloat(this.form.weight_loss) : 0
969
       data['temperature'] = this.form.temperature ? parseFloat(this.form.temperature) : 0
969
       data['temperature'] = this.form.temperature ? parseFloat(this.form.temperature) : 0
970
-      data['breathing_rate'] = this.form.breathing_rate 
970
+      data['breathing_rate'] = this.form.breathing_rate
971
       data['systolic_blood_pressure'] = this.form.systolic_blood_pressure ? parseFloat(this.form.systolic_blood_pressure) : 0
971
       data['systolic_blood_pressure'] = this.form.systolic_blood_pressure ? parseFloat(this.form.systolic_blood_pressure) : 0
972
       data['diastolic_blood_pressure'] = this.form.diastolic_blood_pressure ? parseFloat(this.form.diastolic_blood_pressure) : 0
972
       data['diastolic_blood_pressure'] = this.form.diastolic_blood_pressure ? parseFloat(this.form.diastolic_blood_pressure) : 0
973
       data['pulse_frequency'] = this.form.pulse_frequency ? parseFloat(this.form.pulse_frequency) : 0
973
       data['pulse_frequency'] = this.form.pulse_frequency ? parseFloat(this.form.pulse_frequency) : 0
1211
       if(predialysis.id > 0){
1211
       if(predialysis.id > 0){
1212
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1212
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1213
       }
1213
       }
1214
-     
1214
+
1215
       //针对长沙南雅 ,透后体重 - 目标超滤量
1215
       //针对长沙南雅 ,透后体重 - 目标超滤量
1216
       // if(predialysis.id > 0){
1216
       // if(predialysis.id > 0){
1217
       //  if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340){
1217
       //  if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340){
1218
       //    if(predialysis.weight_after == 0){
1218
       //    if(predialysis.weight_after == 0){
1219
       //      if(this.predialysis_evaluation!=null && this.prescription.target_ultrafiltration!=null){
1219
       //      if(this.predialysis_evaluation!=null && this.prescription.target_ultrafiltration!=null){
1220
       //        this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1220
       //        this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1221
-      //      }  
1221
+      //      }
1222
       //    }
1222
       //    }
1223
       //  }
1223
       //  }
1224
       // }
1224
       // }
1253
         //    if(this.prescription!=null && this.predialysis_evaluation!=null){
1253
         //    if(this.prescription!=null && this.predialysis_evaluation!=null){
1254
         //     this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1254
         //     this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1255
         //    }
1255
         //    }
1256
-          
1256
+
1257
         // }
1257
         // }
1258
       }
1258
       }
1259
 
1259
 
1366
 
1366
 
1367
     var date = this.$route.query && this.$route.query.date
1367
     var date = this.$route.query && this.$route.query.date
1368
     this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1368
     this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1369
-    if(this.$store.getters.xt_user.template_info.org_id == 0 ||  this.$store.getters.xt_user.template_info.org_id==9829){
1369
+    if(this.$store.getters.xt_user.template_info.org_id == 0 ||  this.$store.getters.xt_user.template_info.org_id==9829 ||  this.$store.getters.xt_user.template_info.org_id==10469){
1370
       this.form.pulse_frequency = 80
1370
       this.form.pulse_frequency = 80
1371
     }
1371
     }
1372
   },
1372
   },

+ 42 - 13
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

213
                 </template>
213
                 </template>
214
               </el-table-column>
214
               </el-table-column>
215
 
215
 
216
-              <!--<el-table-column label="医嘱嘱托" min-width="80" property="remark" align="center">-->
217
-              <!--<template slot-scope="scope">-->
218
-              <!--<span v-if="scope.row.parent_row==0">{{scope.row.remark}}</span>-->
219
-              <!--</template>-->
220
-              <!--</el-table-column>-->
216
+              <el-table-column label="医嘱嘱托" min-width="80" property="remark" align="center">-->
217
+              <template slot-scope="scope">
218
+              <span v-if="scope.row.parent_row==0">{{scope.row.remark}}</span>
219
+              </template>
220
+             </el-table-column>
221
             </el-table>
221
             </el-table>
222
           </el-col>
222
           </el-col>
223
         </el-row>
223
         </el-row>
538
             </el-form-item>
538
             </el-form-item>
539
           </el-col>
539
           </el-col>
540
         </el-row>
540
         </el-row>
541
-        <!--<el-row>-->
542
-        <!--<el-col :span="12">-->
543
-        <!--<el-form-item label="医嘱嘱托 :" prop="delivery_way">-->
544
-        <!--<el-input v-model="nameForm.remark"></el-input>-->
545
-        <!--</el-form-item>-->
546
-        <!--</el-col>-->
547
-
548
-        <!--</el-row>-->
541
+       <el-row>
542
+       <el-col :span="12">
543
+      <el-form-item label="医嘱嘱托 :" prop="delivery_way">
544
+     <el-input v-model="nameForm.remark"></el-input>
545
+      </el-form-item>
546
+      </el-col>
547
+    </el-row>
549
       </el-form>
548
       </el-form>
550
       <div slot="footer" class="dialog-footer">
549
       <div slot="footer" class="dialog-footer">
551
         <el-button @click="nameFormVisible = false">取消</el-button>
550
         <el-button @click="nameFormVisible = false">取消</el-button>
1619
           }
1618
           }
1620
       }
1619
       }
1621
 
1620
 
1621
+    
1622
+      if( this.$store.getters.xt_user.org.id == 10469 ){
1623
+          var year = date.getFullYear()
1624
+          var month = date.getMonth() + 1
1625
+          var day = date.getDate()
1626
+
1627
+          var hours = date.getHours()
1628
+          var minites = date.getMinutes()
1629
+
1630
+          if (month < 10) {
1631
+            month = '0' + month
1632
+          }
1633
+          if (day < 10) {
1634
+            day = '0' + day
1635
+          }
1636
+          if (hours < 10) {
1637
+            hours = '0' + hours
1638
+          }
1639
+          if (minites < 10) {
1640
+            minites = '0' + minites
1641
+          }
1642
+          if (this.schedulePatient.schedule_type == 1) {
1643
+            this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
1644
+          } else if (this.schedulePatient.schedule_type == 2) {
1645
+            this.groupForm.start_time= year + '-' + month + '-' + day + ' ' + '11:00'
1646
+          } else if (this.schedulePatient.schedule_type == 3) {
1647
+           this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
1648
+          }
1649
+      }
1650
+
1622
     },
1651
     },
1623
     selectAllTemplateAdvice(selection) {
1652
     selectAllTemplateAdvice(selection) {
1624
       console.log("params",selection)
1653
       console.log("params",selection)

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

190
                 align="center"
190
                 align="center"
191
               >
191
               >
192
                 <template slot-scope="scope">
192
                 <template slot-scope="scope">
193
-                  <span v-if="scope.row.parent_row == 0">{{
193
+                  <span>{{
194
                     scope.row.remark
194
                     scope.row.remark
195
                   }}</span>
195
                   }}</span>
196
                 </template>
196
                 </template>

+ 62 - 7
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

649
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
649
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
650
             </el-form-item>
650
             </el-form-item>
651
           </el-col>
651
           </el-col>
652
+
653
+
654
+           <el-col :span="8">
655
+            <el-form-item label="透前净体重:" 
656
+              v-if="this.$store.getters.xt_user.template_info.template_id == 6">
657
+              <el-input v-model="body_weight_before" readonly></el-input>
658
+            </el-form-item>
659
+          </el-col>
652
          
660
          
653
         
661
         
654
  
662
  
846
         skins:[],
854
         skins:[],
847
         pinholings:[],
855
         pinholings:[],
848
         catheter_maintenancelist:[],
856
         catheter_maintenancelist:[],
849
-        thrombuShow:false
857
+        thrombuShow:false,
858
+        body_weight_before:"",
850
       }
859
       }
851
     },
860
     },
852
     props: {
861
     props: {
874
          default: () => {
883
          default: () => {
875
           return []
884
           return []
876
         }
885
         }
877
-      }
886
+      },
887
+
888
+       prescription: {
889
+        // 透析处方
890
+        type: Object,
891
+        default: () => {
892
+          return { id: 0 }
893
+        }
894
+      },
878
 
895
 
879
     },
896
     },
880
     methods: {
897
     methods: {
1083
           case '3': // 透析前症状
1100
           case '3': // 透析前症状
1084
 
1101
 
1085
             this.InnerDialogProps.values = this.symptom_before_dialysis
1102
             this.InnerDialogProps.values = this.symptom_before_dialysis
1086
-            this.InnerDialogProps.titles = '透析期间'
1103
+            this.InnerDialogProps.titles = '透析前症状'
1087
             this.InnerDialogProps.type = 'symptom_before_dialysis'
1104
             this.InnerDialogProps.type = 'symptom_before_dialysis'
1088
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.symptom_before_dialysis
1105
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.symptom_before_dialysis
1089
             this.InnerDialogProps.isShowTextArea = false
1106
             this.InnerDialogProps.isShowTextArea = false
1350
               type: 'success',
1367
               type: 'success',
1351
               duration: 2000
1368
               duration: 2000
1352
             })
1369
             })
1353
-
1370
+            
1371
+            if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id==3877 || this.$store.getters.xt_user.template_info.org_id ==10469){
1372
+              this.$parent.getParentMethods()
1373
+            }
1374
+            
1354
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1375
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1355
-            // console.log("返回数据",assessment_before_dislysis_resp)
1356
-            // prop
1376
+           
1357
             var predialysis_evaluation = this.predialysis_evaluation
1377
             var predialysis_evaluation = this.predialysis_evaluation
1358
             for (var index in assessment_before_dislysis_resp) {
1378
             for (var index in assessment_before_dislysis_resp) {
1359
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1379
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1360
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1380
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1361
             }
1381
             }
1382
+             
1383
+           
1362
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1384
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1363
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {
1385
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {
1364
               console.log('res',res.data)
1386
               console.log('res',res.data)
1365
 
1387
 
1366
             }) 
1388
             }) 
1367
             this.hide()
1389
             this.hide()
1390
+            console.log("hhh23h3h223h23h23h23h2h3")
1368
           }
1391
           }
1369
         })
1392
         })
1370
           } else {
1393
           } else {
1565
             this.assessmentBeforeDislysis['pulse_frequency'] = ''
1588
             this.assessmentBeforeDislysis['pulse_frequency'] = ''
1566
           }
1589
           }
1567
         }
1590
         }
1568
-      }
1591
+      },
1592
+      'assessmentBeforeDislysis.weight_before': {
1593
+        handler (newWeight, oldWeight) {
1594
+          let weight = parseFloat(
1595
+            newWeight - this.assessmentBeforeDislysis.additional_weight
1596
+          ).toFixed(1)
1597
+          if (weight > 0) {
1598
+            this.body_weight_before = weight
1599
+          } else {
1600
+            this.body_weight_before = ''
1601
+          }
1602
+        },
1603
+        deep: true,
1604
+        immediate: true
1605
+      },
1606
+
1607
+    'assessmentBeforeDislysis.additional_weight': {
1608
+      handler (newWeight, oldWeight) {
1609
+        if (newWeight > 0) {
1610
+          let weight = parseFloat(
1611
+            this.assessmentBeforeDislysis.weight_before - newWeight
1612
+          ).toFixed(1)
1613
+          if (weight > 0) {
1614
+            this.body_weight_before = weight
1615
+          } else {
1616
+            this.body_weight_before = ''
1617
+          }
1618
+        }
1619
+      },
1620
+      deep: true,
1621
+      immediate: true,
1622
+      data: []
1623
+    },
1569
     }
1624
     }
1570
   }
1625
   }
1571
 
1626
 

+ 10 - 5
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

20
           label="班次"
20
           label="班次"
21
           v-if="isShowFiled('班次')"
21
           v-if="isShowFiled('班次')"
22
           :prop="isName('班次')"
22
           :prop="isName('班次')"
23
-          :rules="isCheckmust('班次')"
23
+         
24
         >
24
         >
25
           <el-select
25
           <el-select
26
             v-model="form.schedual_type"
26
             v-model="form.schedual_type"
70
           label="穿刺者"
70
           label="穿刺者"
71
           v-if="isShowFiled('穿刺者')"
71
           v-if="isShowFiled('穿刺者')"
72
           prop="puncture_nurse_id"
72
           prop="puncture_nurse_id"
73
-          :rules="isCheckmust('穿刺者')"
73
+         
74
         >
74
         >
75
           <el-select
75
           <el-select
76
             v-model="form.puncture_nurse_id"
76
             v-model="form.puncture_nurse_id"
487
     if (this.form.new_fistula_nurse == 0) {
487
     if (this.form.new_fistula_nurse == 0) {
488
       this.form.new_fistula_nurse = this.$store.getters.xt_user.user.id;
488
       this.form.new_fistula_nurse = this.$store.getters.xt_user.user.id;
489
     }
489
     }
490
-    console.log("dialysis_order9999999999wo", this.dialysis_order);
490
+    // console.log("dialysis_order9999999999wo", this.dialysis_order);
491
     this.form.puncture_needle = this.dialysis_order.puncture_needle;
491
     this.form.puncture_needle = this.dialysis_order.puncture_needle;
492
     this.form.puncture_way = this.dialysis_order.puncture_way;
492
     this.form.puncture_way = this.dialysis_order.puncture_way;
493
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
493
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
494
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
494
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
495
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
495
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
496
     this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
496
     this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
497
+    // this.form.schedual_type = this.dialysis_order.schedule_type
498
+    // this.schedual_type = this.dialysis_order.schedule_type
499
+    // console.log("班次",this.form.schedual_type)
497
     this.punctureNeedleOptions = getDataConfig(
500
     this.punctureNeedleOptions = getDataConfig(
498
       "hemodialysis",
501
       "hemodialysis",
499
       "puncture_needle"
502
       "puncture_needle"
549
       this.form.blood_access_id = this.dialysis_order.blood_access_id;
552
       this.form.blood_access_id = this.dialysis_order.blood_access_id;
550
      
553
      
551
       var blood_access_option_name = this.changeBloodAccessOpionOne(this.dialysis_order.blood_access_id)
554
       var blood_access_option_name = this.changeBloodAccessOpionOne(this.dialysis_order.blood_access_id)
552
-    
555
+      // this.form.schedual_type = this.dialysis_order.schedule_type
556
+      // console.log("8823832323223",this.form.schedual_type)
553
       this.blood_access_option_name = blood_access_option_name
557
       this.blood_access_option_name = blood_access_option_name
554
       this.form.catheter_operation = this.dialysis_order.catheter_operation
558
       this.form.catheter_operation = this.dialysis_order.catheter_operation
555
       this.form.nuclein_date =
559
       this.form.nuclein_date =
796
           ":" +
800
           ":" +
797
           (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
801
           (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
798
       }
802
       }
799
-
803
+      console.log("hhahhahahahaha",this.dialysis_order)
800
       if (this.dialysis_order.id == 0) {
804
       if (this.dialysis_order.id == 0) {
801
         let now = new Date();
805
         let now = new Date();
802
         let hour = now.getHours();
806
         let hour = now.getHours();
808
           this.schedual_type = 3;
812
           this.schedual_type = 3;
809
         }
813
         }
810
       } else {
814
       } else {
815
+        this.form.schedual_type = this.dialysis_order.schedual_type;
811
         this.schedual_type = this.dialysis_order.schedual_type;
816
         this.schedual_type = this.dialysis_order.schedual_type;
812
       }
817
       }
813
 
818
 

+ 158 - 13
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

95
                     </el-col>
95
                     </el-col>
96
 
96
 
97
                     <el-col :span="8"
97
                     <el-col :span="8"
98
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440)">
98
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469)">
99
                         <el-form-item label="目标超滤量(ml):">
99
                         <el-form-item label="目标超滤量(ml):">
100
                             <el-input
100
                             <el-input
101
                                     type="number"
101
                                     type="number"
104
                         </el-form-item>
104
                         </el-form-item>
105
                     </el-col>
105
                     </el-col>
106
 
106
 
107
+                    
108
+
107
 
109
 
108
                     <el-col :span="8"
110
                     <el-col :span="8"
109
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
111
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469">
110
                         <el-form-item label="目标超滤量(L):">
112
                         <el-form-item label="目标超滤量(L):">
111
                             <el-input
113
                             <el-input
112
                                     type="number"
114
                                     type="number"
115
                         </el-form-item>
117
                         </el-form-item>
116
                     </el-col>
118
                     </el-col>
117
 
119
 
120
+                    <el-col :span="8"
121
+                            v-if="isShows('处方脱水量')">
122
+                        <el-form-item label="处方脱水量(ml):">
123
+                            <el-input
124
+                                    type="number"
125
+                                    v-model="dialysisPrescription.prescription_water"
126
+                            ></el-input>
127
+                        </el-form-item>
128
+                    </el-col>
129
+
118
                    <el-col :span="8" v-if="isShows('带水上机')">
130
                    <el-col :span="8" v-if="isShows('带水上机')">
119
                         <el-form-item label="带水上机:">
131
                         <el-form-item label="带水上机:">
120
                            <el-select v-model="dialysisPrescription.water_machine">
132
                            <el-select v-model="dialysisPrescription.water_machine">
273
                     </el-col>
285
                     </el-col>
274
 
286
 
275
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
287
                     <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂')  && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
276
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
288
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440  && this.$store.getters.xt_user.template_info.org_id != 10469">
277
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
289
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
278
                             <el-form-item
290
                             <el-form-item
279
                                     v-if='dialysisPrescription.anticoagulant != 1 &&this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id!=9990'
291
                                     v-if='dialysisPrescription.anticoagulant != 1 &&this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id!=9990'
356
 
368
 
357
 
369
 
358
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
370
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持')  && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
359
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
371
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157  && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671  && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469">
360
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 ">
372
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 ">
361
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
373
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
362
                                           v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987  && this.$store.getters.xt_user.template_info.org_id != 54 && this.$store.getters.xt_user.template_info.org_id != 9990">
374
                                           v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987  && this.$store.getters.xt_user.template_info.org_id != 54 && this.$store.getters.xt_user.template_info.org_id != 9990">
420
 
432
 
421
 
433
 
422
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
434
                     <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
423
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440">
435
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469">
424
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
436
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
425
                             <el-form-item
437
                             <el-form-item
426
                                     v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990'
438
                                     v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990'
597
                           type="number"
609
                           type="number"
598
                           v-model="dialysisPrescription.glucose"
610
                           v-model="dialysisPrescription.glucose"
599
                         ></el-input>
611
                         ></el-input>
600
-                      </el-form-item>
612
+                      </el-form-item>28
601
                     </el-col> -->
613
                     </el-col> -->
602
                     <el-col :span="8" v-if="isShows('透析液流量')">
614
                     <el-col :span="8" v-if="isShows('透析液流量')">
603
                         <el-form-item label="透析液流量(ml/min):">
615
                         <el-form-item label="透析液流量(ml/min):">
649
                         </el-form-item>
661
                         </el-form-item>
650
                     </el-col>
662
                     </el-col>
651
 
663
 
664
+
665
+                     <el-col :span="8" v-if="isShows('滤过器')">
666
+                        <el-form-item label="滤过器:">
667
+                            <el-input v-model="dialysisPrescription.dialysis_strainer"
668
+                                      @focus="showInnerDialog('12')"></el-input>
669
+                        </el-form-item>
670
+                    </el-col>
671
+
652
                     <el-col :span="8" v-if="isShows('血浆分离器')">
672
                     <el-col :span="8" v-if="isShows('血浆分离器')">
653
                         <el-form-item label="血浆分离器:">
673
                         <el-form-item label="血浆分离器:">
654
                             <el-input v-model="dialysisPrescription.plasma_separator"
674
                             <el-input v-model="dialysisPrescription.plasma_separator"
1011
                     </el-col>
1031
                     </el-col>
1012
                 </el-row>
1032
                 </el-row>
1013
 
1033
 
1034
+                <el-row>
1035
+                  <el-col :span="8" v-if="isShows('透析液流速')">
1036
+                        <el-form-item label="透析液流速(ml/h):">
1037
+                            <el-input
1038
+                                  
1039
+                                    v-model="dialysisPrescription.dialysis_fluid_flow"
1040
+                                    :rows="5"
1041
+                            ></el-input>
1042
+                        </el-form-item>
1043
+                    </el-col>
1044
+
1045
+                    <el-col :span="8" v-if="isShows('碳酸氢钠流速')">
1046
+                        <el-form-item label="碳酸氢钠流速(ml/h):">
1047
+                            <el-input
1048
+                                    v-model="dialysisPrescription.sodium_bicarbonate_flow"
1049
+                                    :rows="5"
1050
+                            ></el-input>
1051
+                        </el-form-item>
1052
+                    </el-col>
1053
+                </el-row>
1054
+
1014
               <el-row :gutter="20">
1055
               <el-row :gutter="20">
1015
                     <el-col :span="24"  v-if="isShows('病情处理')">
1056
                     <el-col :span="24"  v-if="isShows('病情处理')">
1016
                         <el-form-item  label="病情处理: ">
1057
                         <el-form-item  label="病情处理: ">
1559
           prescription_sodium:"",
1600
           prescription_sodium:"",
1560
           start_sodium:"",
1601
           start_sodium:"",
1561
           sodium_curve:"",
1602
           sodium_curve:"",
1603
+          dialysis_fluid_flow:"",
1604
+          sodium_bicarbonate_flow:"",
1605
+          prescription_water:"",
1606
+          dialysis_strainer:"",
1562
         },
1607
         },
1563
 
1608
 
1564
         anticoagulant: {
1609
         anticoagulant: {
1582
         bloods: [],
1627
         bloods: [],
1583
         irrigations: [],
1628
         irrigations: [],
1584
         dialyzers: [],
1629
         dialyzers: [],
1630
+        dialysisStrainerList:[],
1585
         illnessList: [],
1631
         illnessList: [],
1586
         plasmaSeparatorList: [],
1632
         plasmaSeparatorList: [],
1587
         bilirubinAdsorptionColumn: [],
1633
         bilirubinAdsorptionColumn: [],
1624
 
1670
 
1625
       },
1671
       },
1626
       showInnerDialog: function(val) {
1672
       showInnerDialog: function(val) {
1673
+       
1627
         this.InnerDialogProps.visibility = true
1674
         this.InnerDialogProps.visibility = true
1628
         switch (val) {
1675
         switch (val) {
1629
           case '5': // 透析器/灌流器
1676
           case '5': // 透析器/灌流器
1631
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1678
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1632
             this.InnerDialogProps.titles = '透析器/灌流器'
1679
             this.InnerDialogProps.titles = '透析器/灌流器'
1633
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1680
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1634
-
1681
+           
1635
             this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
1682
             this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
1636
             this.InnerDialogProps.isShowTextArea = false
1683
             this.InnerDialogProps.isShowTextArea = false
1637
             break
1684
             break
1690
             this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
1737
             this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
1691
             this.InnerDialogProps.isShowTextArea = false
1738
             this.InnerDialogProps.isShowTextArea = false
1692
             break
1739
             break
1740
+
1741
+          case '12':
1742
+            for (let i = 0; i < this.dialysisStrainerList.length; i++) {
1743
+              this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
1744
+            }
1745
+            this.InnerDialogProps.values = this.dialysisStrainerList
1746
+            this.InnerDialogProps.titles = '滤过器'
1747
+            this.InnerDialogProps.type = 'dialysis_strainer'
1748
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_strainer
1749
+            this.InnerDialogProps.isShowTextArea = false
1750
+            break
1693
         }
1751
         }
1694
       },
1752
       },
1695
       innerDialogComfirm: function(val) {
1753
       innerDialogComfirm: function(val) {
1754
+      
1755
+
1696
         this.InnerDialogProps.visibility = false
1756
         this.InnerDialogProps.visibility = false
1697
         switch (val.type) {
1757
         switch (val.type) {
1758
+
1698
           case 'dialyzer_perfusion_apparatus':
1759
           case 'dialyzer_perfusion_apparatus':
1699
-            this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
1760
+            var newArr = []
1761
+            if(this.dialyzerPerfusionApparatus!=null && this.dialyzerPerfusionApparatus.length>0){
1762
+              for(let i=0;i<this.dialyzerPerfusionApparatus.length;i++){
1763
+                for(let j=0;j<val.value.length;j++){
1764
+                   if(this.dialyzerPerfusionApparatus[i].name == val.value[j]){
1765
+                     newArr.push(val.value[j])
1766
+                   }
1767
+                }
1768
+              }
1769
+            } 
1770
+            if(newArr!=null && newArr.length>0){
1771
+              
1772
+              this.dialysisPrescription.dialyzer_perfusion_apparatus = newArr.join(',')
1773
+            }else{
1774
+              this.dialysisPrescription.dialyzer_perfusion_apparatus = ""
1775
+            }
1776
+           
1700
             break
1777
             break
1701
           case 'blood':
1778
           case 'blood':
1779
+            
1702
             this.dialysisPrescription.blood = val.value.join(',')
1780
             this.dialysisPrescription.blood = val.value.join(',')
1703
             break
1781
             break
1704
           case 'dialyzers':
1782
           case 'dialyzers':
1705
-            this.dialysisPrescription.dialysis_dialyszers = val.value.join(',')
1783
+            
1784
+            var newArr = []
1785
+            if(this.dialyzers!=null && this.dialyzers.length >0){
1786
+              for(let i=0;i<this.dialyzers.length;i++){
1787
+                for(let j=0;j<val.value.length;j++){
1788
+                  if(this.dialyzers[i].specification_name == val.value[j]){
1789
+                      newArr.push(val.value[j])
1790
+                  }
1791
+                }
1792
+              }
1793
+            }
1794
+            if(newArr!=null && newArr.length >0){
1795
+             this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
1796
+            }else{
1797
+              this.dialysisPrescription.dialysis_dialyszers = ""
1798
+            }
1799
+            
1706
             break
1800
             break
1707
           case 'irrigations':
1801
           case 'irrigations':
1708
-            this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1802
+            var newArr = []
1803
+            if(this.irrigations!=null && this.irrigations.length >0){
1804
+              for(let i=0;i<this.irrigations.length;i++){
1805
+                for(let j=0;j<val.value.length;j++){
1806
+                  if(this.irrigations[i].specification_name == val.value[j]){
1807
+                     newArr.push(val.value[j])
1808
+                  }
1809
+                }
1810
+              }
1811
+            }
1812
+            if(newArr!=null && newArr.length>0){
1813
+             this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
1814
+            }else{
1815
+              this.dialysisPrescription.dialysis_irrigation = ""
1816
+            }
1817
+            
1709
             break
1818
             break
1710
           case 'plasma_separator':
1819
           case 'plasma_separator':
1711
             this.dialysisPrescription.plasma_separator = val.value.join(',')
1820
             this.dialysisPrescription.plasma_separator = val.value.join(',')
1716
           case 'puncture_needle':
1825
           case 'puncture_needle':
1717
             this.dialysisPrescription.puncture_needle = val.value.join(',')
1826
             this.dialysisPrescription.puncture_needle = val.value.join(',')
1718
             break
1827
             break
1828
+          case 'dialysis_strainer':
1829
+            this.dialysisPrescription.dialysis_strainer = val.value.join(',')
1830
+            break
1719
         }
1831
         }
1720
       },
1832
       },
1721
       innerDialogCancle: function() {
1833
       innerDialogCancle: function() {
2207
       },
2319
       },
2208
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2320
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2209
         console.log("pres",pre)
2321
         console.log("pres",pre)
2322
+        console.log("schedual",schedual)
2210
         if (pre != undefined) {
2323
         if (pre != undefined) {
2211
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2324
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2212
           if (pre.oxygen_uptake == 1) {
2325
           if (pre.oxygen_uptake == 1) {
2318
             } else if (schedual.schedule_type == 3) {
2431
             } else if (schedual.schedule_type == 3) {
2319
               this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2432
               this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2320
             }
2433
             }
2434
+           }else if(this.$store.getters.xt_user.org.id == 10440){
2435
+              if (schedual.schedule_type == 1) {
2436
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
2437
+            } else if (schedual.schedule_type == 2) {
2438
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2439
+            } else if (schedual.schedule_type == 3) {
2440
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2441
+            }
2321
            }else if(this.$store.getters.xt_user.org.id == 9829){
2442
            }else if(this.$store.getters.xt_user.org.id == 9829){
2322
               if (schedual.schedule_type == 1) {
2443
               if (schedual.schedule_type == 1) {
2323
               this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
2444
               this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
2326
             } else if (schedual.schedule_type == 3) {
2447
             } else if (schedual.schedule_type == 3) {
2327
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:30'
2448
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:30'
2328
             }
2449
             }
2450
+           }else if(this.$store.getters.xt_user.org.id == 10469){
2451
+              if (schedual.schedule_type == 1) {
2452
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
2453
+            } else if (schedual.schedule_type == 2) {
2454
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2455
+            } else if (schedual.schedule_type == 3) {
2456
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2457
+            }
2329
            } else {
2458
            } else {
2330
             if (schedual.schedule_type == 1) {
2459
             if (schedual.schedule_type == 1) {
2331
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
2460
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
3844
     },
3973
     },
3845
 
3974
 
3846
     watch: {
3975
     watch: {
3847
-      'dialysisPrescription.blood_flow_volume': function () {
3848
-        this.dialysisPrescription.replacement_flow = replacementFlow(this.dialysisPrescription.blood_flow_volume)
3849
-      },
3976
+      // 'dialysisPrescription.blood_flow_volume': function () {
3977
+      //   this.dialysisPrescription.blood_flow_volume = replacementFlow(this.dialysisPrescription.blood_flow_volume)
3978
+      // },
3979
+      // 'dialysisPrescription.replacement_flow': function () {
3980
+      //   console.log("血流量",this.dialysisPrescription.replacement_flow)
3981
+      //   this.dialysisPrescription.replacement_flow = this.dialysisPrescription.replacement_flow
3982
+      // },
3850
       'dialysisPrescription.dialysis_duration_hour': function() {
3983
       'dialysisPrescription.dialysis_duration_hour': function() {
3851
         let dialysis_duration_minute = 0
3984
         let dialysis_duration_minute = 0
3852
         let dialysis_duration_hour = 0
3985
         let dialysis_duration_hour = 0
4412
         console.log('stockType', this.stockType)
4545
         console.log('stockType', this.stockType)
4413
         var arr = []
4546
         var arr = []
4414
         var arrTwo = []
4547
         var arrTwo = []
4548
+        var arrThree = []
4415
         for (let i = 0; i < this.stockType.length; i++) {
4549
         for (let i = 0; i < this.stockType.length; i++) {
4416
           if (this.stockType[i].stock_attribute == 2) {
4550
           if (this.stockType[i].stock_attribute == 2) {
4417
             arr.push(this.stockType[i])
4551
             arr.push(this.stockType[i])
4419
           if (this.stockType[i].stock_attribute == 3) {
4553
           if (this.stockType[i].stock_attribute == 3) {
4420
             arrTwo.push(this.stockType[i])
4554
             arrTwo.push(this.stockType[i])
4421
           }
4555
           }
4556
+          if(this.stockType[i].stock_attribute == 4){
4557
+            arrThree.push(this.stockType[i])
4558
+          }
4422
         }
4559
         }
4423
         var dialyzator = []
4560
         var dialyzator = []
4424
         var irrigation = []
4561
         var irrigation = []
4562
+        var dialysis_strainer = []
4425
         for (let i = 0; i < arr.length; i++) {
4563
         for (let i = 0; i < arr.length; i++) {
4426
           for (let j = 0; j < arr[i].GoodInfo.length; j++) {
4564
           for (let j = 0; j < arr[i].GoodInfo.length; j++) {
4427
             dialyzator.push(arr[i].GoodInfo[j])
4565
             dialyzator.push(arr[i].GoodInfo[j])
4435
           }
4573
           }
4436
         }
4574
         }
4437
         this.irrigations = irrigation
4575
         this.irrigations = irrigation
4576
+        
4577
+        for(let i=0;i<arrThree.length;i++){
4578
+          for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
4579
+            dialysis_strainer.push(arrThree[i].GoodInfo[j])
4580
+          }
4581
+        }
4438
        
4582
        
4583
+        this.dialysisStrainerList = dialysis_strainer
4439
       },
4584
       },
4440
       
4585
       
4441
       admin_user_id:function(){
4586
       admin_user_id:function(){

+ 43 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

121
           <el-checkbox :label="dialys_mode"></el-checkbox>
121
           <el-checkbox :label="dialys_mode"></el-checkbox>
122
           <el-checkbox :label="long_time"></el-checkbox>
122
           <el-checkbox :label="long_time"></el-checkbox>
123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
124
+          <el-checkbox :label="prescription_water" v-if="org_id == 10469"></el-checkbox>
124
           <el-checkbox :label="anticoagulant"></el-checkbox>
125
           <el-checkbox :label="anticoagulant"></el-checkbox>
125
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
127
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
333
       dialys_mode: "透析模式:",
334
       dialys_mode: "透析模式:",
334
       long_time: "透析时长:",
335
       long_time: "透析时长:",
335
       target_ultrafiltration: "目标超滤量:",
336
       target_ultrafiltration: "目标超滤量:",
337
+      prescription_water:"处方脱水量:",
336
       anticoagulant: "抗凝剂:",
338
       anticoagulant: "抗凝剂:",
337
       anticoagulant_shouji: "首剂:",
339
       anticoagulant_shouji: "首剂:",
338
       anticoagulant_weichi: "维持:",
340
       anticoagulant_weichi: "维持:",
818
               : "")
820
               : "")
819
         );
821
         );
820
       }
822
       }
821
-      if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
823
+       if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
822
         arr.push("目标超滤量:");
824
         arr.push("目标超滤量:");
823
       }
825
       }
826
+      if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
827
+        arr.push("处方脱水量:");
828
+      }
829
+      
830
+      if (str.indexOf("处方脱水量") != -1 && this.prescription != null) {
831
+        arr.push(
832
+          "处方脱水量:" +
833
+            (this.prescription.prescription_water
834
+              ? this.prescription.prescription_water
835
+              : "")
836
+        );
837
+      }
838
+
839
+        if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
840
+        arr.push("处方脱水量:");
841
+      }
842
+     
843
+
824
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
844
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
825
         arr.push(
845
         arr.push(
826
           "抗凝剂:" +
846
           "抗凝剂:" +
1333
           this.target_ultrafiltration = this.target_ultrafiltration;
1353
           this.target_ultrafiltration = this.target_ultrafiltration;
1334
         }
1354
         }
1335
 
1355
 
1356
+         if (this.prescription.prescription_water != "") {
1357
+          this.prescription_water = "处方脱水量:";
1358
+          this.prescription_water =
1359
+            this.prescription_water +
1360
+            (this.prescription.prescription_water
1361
+              ? this.prescription.prescription_water
1362
+              : "");
1363
+        } else {
1364
+          this.prescription_water = this.prescription_water;
1365
+        }
1366
+
1336
         if (this.prescription.anticoagulant != "") {
1367
         if (this.prescription.anticoagulant != "") {
1337
           this.anticoagulant = "抗凝剂:";
1368
           this.anticoagulant = "抗凝剂:";
1338
           this.anticoagulant =
1369
           this.anticoagulant =
1490
                 : "")
1521
                 : "")
1491
           );
1522
           );
1492
         }
1523
         }
1524
+
1525
+         if (
1526
+          this.double_check.dialysis_parameter_desc.indexOf("处方脱水量") != -1
1527
+        ) {
1528
+          this.checkListOne.push(
1529
+            "处方脱水量:" +
1530
+              (this.prescription.prescription_water
1531
+                ? this.prescription.prescription_water
1532
+                : "")
1533
+          );
1534
+        }
1493
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1535
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1494
           this.checkListOne.push(
1536
           this.checkListOne.push(
1495
             "抗凝剂:" +
1537
             "抗凝剂:" +

+ 74 - 13
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

238
                 org_id == 10210 ||
238
                 org_id == 10210 ||
239
                 org_id == 9555 || org_id == 10387
239
                 org_id == 9555 || org_id == 10387
240
                 || org_id == 10432
240
                 || org_id == 10432
241
-                || org_id == 10445)
241
+                || org_id == 10445
242
+                || org_id == 10410)
242
             "
243
             "
243
           >
244
           >
244
             <template slot-scope="scope">
245
             <template slot-scope="scope">
246
+             <span v-if="org_id == 10440 || org_id == 9671">
247
+              {{
248
+                scope.row.ultrafiltration_volume
249
+                  ? scope.row.ultrafiltration_volume
250
+                  : "0"
251
+              }}
252
+              </span> 
253
+               <span v-if="org_id != 10440 && org_id!=9671">
245
               {{
254
               {{
246
                 scope.row.ultrafiltration_volume
255
                 scope.row.ultrafiltration_volume
247
                   ? scope.row.ultrafiltration_volume
256
                   ? scope.row.ultrafiltration_volume
248
                   : ""
257
                   : ""
249
               }}
258
               }}
259
+              </span> 
250
             </template>
260
             </template>
251
           </el-table-column>
261
           </el-table-column>
252
           <el-table-column
262
           <el-table-column
296
               org_id!= 10210 &&
306
               org_id!= 10210 &&
297
               org_id != 9555 && org_id!=10387
307
               org_id != 9555 && org_id!=10387
298
               && org_id!=10432 && org_id!=10445
308
               && org_id!=10432 && org_id!=10445
309
+              && org_id!=10410
299
             "
310
             "
300
           >
311
           >
301
             <template slot-scope="scope">
312
             <template slot-scope="scope">
345
                 template_id == 47 ||
356
                 template_id == 47 ||
346
                 template_id == 60 ||
357
                 template_id == 60 ||
347
                 org_id == 10432 ||
358
                 org_id == 10432 ||
348
-                org_id == 10445)
359
+                org_id == 10445 ||
360
+                org_id == 10410)
349
             "
361
             "
350
           >
362
           >
351
             <template slot-scope="scope">
363
             <template slot-scope="scope">
394
               template_id != 47 &&
406
               template_id != 47 &&
395
               template_id != 60 &&
407
               template_id != 60 &&
396
               org_id!=10432 &&
408
               org_id!=10432 &&
397
-              org_id!=10445
409
+              org_id!=10445 &&
410
+              org_id!=10410
398
             "
411
             "
399
           >
412
           >
400
             <template slot-scope="scope">
413
             <template slot-scope="scope">
832
             </template>
845
             </template>
833
           </el-table-column>
846
           </el-table-column>
834
 
847
 
848
+          <el-table-column
849
+            prop="heparin"
850
+            align="center"
851
+            label="滤前压(mmHg)"
852
+            width="140"
853
+            v-if="isShow('滤前压')"
854
+          >
855
+            <template slot-scope="scope">
856
+              {{ scope.row.filter_pressure }}
857
+            </template>
858
+          </el-table-column>
859
+
835
           <el-table-column
860
           <el-table-column
836
             prop="heparin"
861
             prop="heparin"
837
             align="center"
862
             align="center"
1066
                 template_id == 47 ||
1091
                 template_id == 47 ||
1067
                 template_id == 60 ||
1092
                 template_id == 60 ||
1068
                 org_id== 10432 || 
1093
                 org_id== 10432 || 
1069
-                org_id== 10445)
1094
+                org_id== 10445 ||
1095
+                org_id== 10410)
1070
             "
1096
             "
1071
           >
1097
           >
1072
             <el-form-item label="超滤率(ml/h)" :prop="isName('超滤率')"
1098
             <el-form-item label="超滤率(ml/h)" :prop="isName('超滤率')"
1109
               template_id != 47 &&
1135
               template_id != 47 &&
1110
               template_id != 60 &&
1136
               template_id != 60 &&
1111
               org_id!=10432 && 
1137
               org_id!=10432 && 
1112
-              org_id!=10445
1138
+              org_id!=10445 &&
1139
+              org_id!=10410
1113
             "
1140
             "
1114
           >
1141
           >
1115
             <el-form-item label="超滤率(L/h)" :prop="isName('超滤率')"
1142
             <el-form-item label="超滤率(L/h)" :prop="isName('超滤率')"
1162
                 org_id == 10340 ||
1189
                 org_id == 10340 ||
1163
                 org_id == 10387 ||
1190
                 org_id == 10387 ||
1164
                 org_id == 10432 ||
1191
                 org_id == 10432 ||
1165
-                org_id == 10445)
1192
+                org_id == 10445 ||
1193
+                org_id == 10410)
1166
             "
1194
             "
1167
           >
1195
           >
1168
             <el-form-item label="超滤量(ml):" :prop="isName('超滤量')"
1196
             <el-form-item label="超滤量(ml):" :prop="isName('超滤量')"
1215
               org_id != 9555 &&
1243
               org_id != 9555 &&
1216
               org_id!=10387&&
1244
               org_id!=10387&&
1217
               org_id!=10432 && 
1245
               org_id!=10432 && 
1218
-              org_id!=10445
1246
+              org_id!=10445 && 
1247
+              org_id!=10410
1219
             "
1248
             "
1220
           >
1249
           >
1221
             <el-form-item label="超滤量(L):" :prop="isName('超滤量')"
1250
             <el-form-item label="超滤量(L):" :prop="isName('超滤量')"
1523
             </el-form-item>
1552
             </el-form-item>
1524
           </el-col>
1553
           </el-col>
1525
 
1554
 
1555
+          <el-col :span="8" v-if="isShow('滤前压')">
1556
+            <el-form-item label="滤前压(mmHg):">
1557
+              <el-input v-model="form.filter_pressure"></el-input>
1558
+            </el-form-item>
1559
+          </el-col>
1560
+
1526
           <!-- </el-row>
1561
           <!-- </el-row>
1527
 
1562
 
1528
           <el-row :gutter="20"> -->
1563
           <el-row :gutter="20"> -->
1737
         blood_monitor: "",
1772
         blood_monitor: "",
1738
         heparin_amount: "", //肝素量
1773
         heparin_amount: "", //肝素量
1739
         dehydration: "",
1774
         dehydration: "",
1775
+        filter_pressure:"",
1740
       },
1776
       },
1741
 
1777
 
1742
       table_current_row: null,
1778
       table_current_row: null,
1962
       
1998
       
1963
         this.form.temperature = ""
1999
         this.form.temperature = ""
1964
 
2000
 
1965
-        this.form.pulse_frequency = ""; // this.last_monitor_record.pulse_frequency;
2001
+        // this.last_monitor_record.pulse_frequency;
1966
         // this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : '';
2002
         // this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : '';
1967
         this.form.systolic_bp = ""; // this.last_monitor_record.systolic_blood_pressure;
2003
         this.form.systolic_bp = ""; // this.last_monitor_record.systolic_blood_pressure;
1968
         this.form.diastolic_bp = ""; // this.last_monitor_record.diastolic_blood_pressure;
2004
         this.form.diastolic_bp = ""; // this.last_monitor_record.diastolic_blood_pressure;
1970
         // 静脉压
2006
         // 静脉压
1971
         if (this.org_id == 10060 || this.org_id == 10387) {
2007
         if (this.org_id == 10060 || this.org_id == 10387) {
1972
           this.form.venous_pressure = resp.monitor.venous_pressure;
2008
           this.form.venous_pressure = resp.monitor.venous_pressure;
1973
-        }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 ){
2009
+        }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10469 ){
1974
           this.form.venous_pressure = 80
2010
           this.form.venous_pressure = 80
1975
         } else {
2011
         } else {
1976
           this.form.venous_pressure = ""; // this.last_monitor_record.venous_pressure;
2012
           this.form.venous_pressure = ""; // this.last_monitor_record.venous_pressure;
1977
         }
2013
         }
1978
 
2014
 
2015
+        if(this.org_id == 10440){
2016
+           this.form.pulse_frequency = 80
2017
+        }else{
2018
+           this.form.pulse_frequency = ""
2019
+        }
2020
+
1979
         this.form.venous_pressure_type = resp.monitor.venous_pressure_type? resp.monitor.venous_pressure_type: 1;
2021
         this.form.venous_pressure_type = resp.monitor.venous_pressure_type? resp.monitor.venous_pressure_type: 1;
1980
         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10387){
2022
         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10387){
1981
            this.form.arterial_pressure = resp.monitor.arterial_pressure? resp.monitor.arterial_pressure: "-100"; // this.last_monitor_record.arterial_pressure;
2023
            this.form.arterial_pressure = resp.monitor.arterial_pressure? resp.monitor.arterial_pressure: "-100"; // this.last_monitor_record.arterial_pressure;
2019
           ? resp.monitor.dialysate_temperature
2061
           ? resp.monitor.dialysate_temperature
2020
           : "";
2062
           : "";
2021
         
2063
         
2022
-         if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340){
2064
+         if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340 || this.org_id == 10469){
2023
             this.form.temperature = "36.5"
2065
             this.form.temperature = "36.5"
2024
 
2066
 
2025
          }else{
2067
          }else{
2138
         this.form.venous_pressure_type = 1;
2180
         this.form.venous_pressure_type = 1;
2139
         this.form.transmembrane_pressure = "";
2181
         this.form.transmembrane_pressure = "";
2140
         this.form.transmembrane_pressure_type = 1;
2182
         this.form.transmembrane_pressure_type = 1;
2141
-        this.form.ultrafiltration_volume = "";
2183
+        if(this.org_id == 9671 || this.org_id == 10440){
2184
+           this.form.ultrafiltration_volume = 0
2185
+        }
2186
+        if(this.org_id != 9671 && this.org_id != 10440){
2187
+          this.form.ultrafiltration_volume = "";
2188
+        }
2189
+       
2142
         this.form.ultrafiltration_rate = "";
2190
         this.form.ultrafiltration_rate = "";
2143
         this.form.arterial_pressure = "";
2191
         this.form.arterial_pressure = "";
2144
         this.form.arterial_pressure_type = 1;
2192
         this.form.arterial_pressure_type = 1;
2168
         this.form.blood_monitor = "";
2216
         this.form.blood_monitor = "";
2169
         this.form.dehydration = "";
2217
         this.form.dehydration = "";
2170
         this.form.heparin_amount = "";
2218
         this.form.heparin_amount = "";
2219
+        this.form.filter_pressure =""
2171
       } else {
2220
       } else {
2172
         (this.form.id = monitor.id),
2221
         (this.form.id = monitor.id),
2173
           // this.form.operate_date = monitor.operate_date
2222
           // this.form.operate_date = monitor.operate_date
2202
           monitor.transmembrane_pressure_type
2251
           monitor.transmembrane_pressure_type
2203
             ? monitor.transmembrane_pressure_type
2252
             ? monitor.transmembrane_pressure_type
2204
             : "";
2253
             : "";
2205
-        this.form.ultrafiltration_volume = monitor.ultrafiltration_volume
2254
+        if(this.org_id == 9671 || this.org_id == 10440){
2255
+          this.form.ultrafiltration_volume = monitor.ultrafiltration_volume
2206
           ? monitor.ultrafiltration_volume
2256
           ? monitor.ultrafiltration_volume
2207
-          : "";
2257
+          : "0";
2258
+        }
2259
+        if(this.org_id != 9671 && this.org_id !=10440){
2260
+          this.form.ultrafiltration_volume = monitor.ultrafiltration_volume
2261
+            ? monitor.ultrafiltration_volume
2262
+            : "";
2263
+        }
2264
+        
2208
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2265
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2209
           ? monitor.ultrafiltration_rate
2266
           ? monitor.ultrafiltration_rate
2210
           : "";
2267
           : "";
2278
         this.form.heparin_amount = monitor.heparin_amount
2335
         this.form.heparin_amount = monitor.heparin_amount
2279
           ? monitor.heparin_amount
2336
           ? monitor.heparin_amount
2280
           : "";
2337
           : "";
2338
+        this.form.filter_pressure = monitor.filter_pressure
2339
+        ? monitor.filter_pressure
2340
+        : "";  
2281
         // 设置三个下拉框的值,直接调用事件偷懒
2341
         // 设置三个下拉框的值,直接调用事件偷懒
2282
         this.symptomTextareaBlur();
2342
         this.symptomTextareaBlur();
2283
         this.disposeTextareaBlur();
2343
         this.disposeTextareaBlur();
2421
         parseFloat(this.form.dehydration) == NaN
2481
         parseFloat(this.form.dehydration) == NaN
2422
           ? 0
2482
           ? 0
2423
           : parseFloat(this.form.dehydration);
2483
           : parseFloat(this.form.dehydration);
2484
+      this.form.filter_pressure = this.form.filter_pressure?this.form.filter_pressure:""
2424
       let mode = "1";
2485
       let mode = "1";
2425
       if (this.form.id > 0) {
2486
       if (this.form.id > 0) {
2426
         mode = "2";
2487
         mode = "2";

+ 10 - 5
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10387 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10387 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410" width="50px"> 超滤率 <br />(L/h) </th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445) " width="92px" > 置换率(ml/min) </th>
23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445) " width="92px" > 置换率(ml/min) </th>
43
           <th v-if="isShow('血压监测')" width="92px">血压监测</th>
43
           <th v-if="isShow('血压监测')" width="92px">血压监测</th>
44
           <th v-if="isShow('肝素量')" width="92px">肝素量(mg)</th>
44
           <th v-if="isShow('肝素量')" width="92px">肝素量(mg)</th>
45
           <th v-if="isShow('脱水')" width="92px">脱水(L)</th>
45
           <th v-if="isShow('脱水')" width="92px">脱水(L)</th>
46
+          <th v-if="isShow('滤前压')" width="92px">滤前压(mmHg)</th>
46
           <th v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)" width="92px">KT/V</th>
47
           <th v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)" width="92px">KT/V</th>
47
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
48
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
48
 
49
 
59
 
60
 
60
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
61
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
61
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
62
           <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
62
-          <td v-if="isShow('超滤量')"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }} </td>
63
+          <td v-if="isShow('超滤量')"> 
64
+            <span v-if="org_id!=9671 && org_id!=10440">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}  </span> 
65
+            <span v-if="org_id ==9671 || org_id==10440">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}  </span> 
66
+          </td>
63
           <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
67
           <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
64
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
68
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
65
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
69
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
91
           <th v-if="isShow('血压监测')" width="92px">{{monitor.blood_monitor ? monitor.blood_monitor : ""}}</th>
95
           <th v-if="isShow('血压监测')" width="92px">{{monitor.blood_monitor ? monitor.blood_monitor : ""}}</th>
92
           <th v-if="isShow('肝素量')" width="92px">{{monitor.heparin_amount ? monitor.heparin_amount : ""}}</th>
96
           <th v-if="isShow('肝素量')" width="92px">{{monitor.heparin_amount ? monitor.heparin_amount : ""}}</th>
93
           <th v-if="isShow('脱水')" width="92px">{{monitor.dehydration ? monitor.dehydration : ""}}</th>
97
           <th v-if="isShow('脱水')" width="92px">{{monitor.dehydration ? monitor.dehydration : ""}}</th>
98
+          <th v-if="isShow('滤前压')" width="92px">{{monitor.filter_pressure ? monitor.filter_pressure : ""}}</th>
94
           <td v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)">{{ monitor.ktv?monitor.ktv:""}}</td>
99
           <td v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)">{{ monitor.ktv?monitor.ktv:""}}</td>
95
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
100
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
96
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
101
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>

+ 2 - 0
src/xt_pages/dialysis/details/index.vue View File

31
           icon="el-icon-printer"
31
           icon="el-icon-printer"
32
           >打印</el-button
32
           >打印</el-button
33
         >
33
         >
34
+      
34
       </div>
35
       </div>
35
     </div>
36
     </div>
36
 
37
 
1718
       }
1719
       }
1719
     },
1720
     },
1720
     requestDialysisSchedules: function() {
1721
     requestDialysisSchedules: function() {
1722
+      console.log("时间人民站起来了呃")
1721
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1723
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1722
       getDialysisSchedules(ymd).then(rs => {
1724
       getDialysisSchedules(ymd).then(rs => {
1723
         var resp = rs.data
1725
         var resp = rs.data

+ 39 - 13
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

14
       </template>
14
       </template>
15
       <template
15
       <template
16
         v-if="
16
         v-if="
17
-          org_template_info.template_id == 2 ||
18
-          org_template_info.template_id == 0
17
+          org_template_info.template_id == 2
18
+       
19
         "
19
         "
20
       >
20
       >
21
         <div>
21
         <div>
110
           org_template_info.template_id == 11 ||
110
           org_template_info.template_id == 11 ||
111
           org_template_info.template_id == 50 ||
111
           org_template_info.template_id == 50 ||
112
           org_template_info.template_id == 52 ||
112
           org_template_info.template_id == 52 ||
113
-          org_template_info.template_id == 53
113
+          org_template_info.template_id == 53  ||
114
+          $store.getters.xt_user.org.id == 0
114
         "
115
         "
115
       >
116
       >
117
+      <div>
116
         <el-button
118
         <el-button
119
+          
117
           :loading="loading"
120
           :loading="loading"
118
           size="small"
121
           size="small"
119
           icon="el-icon-printer"
122
           icon="el-icon-printer"
121
           type="primary"
124
           type="primary"
122
           >打印</el-button
125
           >打印</el-button
123
         >
126
         >
127
+        <el-button
128
+            :loading="loading"
129
+            size="small"
130
+            icon="el-icon-printer"
131
+            @click="printThisTwoPage"
132
+            type="primary"
133
+            >打印医嘱单</el-button
134
+         >
135
+      </div>
124
       </template>
136
       </template>
125
 
137
 
126
       <template v-if="org_template_info.template_id == 47">
138
       <template v-if="org_template_info.template_id == 47">
186
       </template>
198
       </template>
187
       <template
199
       <template
188
         v-if="
200
         v-if="
189
-          org_template_info.template_id == 14 ||
190
-          org_template_info.template_id == 0
201
+          org_template_info.template_id == 14
202
+         
191
         "
203
         "
192
       >
204
       >
193
         <div>
205
         <div>
289
       </template> -->
301
       </template> -->
290
       <template
302
       <template
291
         v-if="
303
         v-if="
292
-          org_template_info.template_id == 21 ||
293
-          org_template_info.template_id == 0
304
+          org_template_info.template_id == 21 
305
+         
294
         "
306
         "
295
       >
307
       >
296
         <div>
308
         <div>
1181
             v-if="org_template_info.template_id == 53"
1193
             v-if="org_template_info.template_id == 53"
1182
           >
1194
           >
1183
           </DialysisPrintOrderFiftyThree>
1195
           </DialysisPrintOrderFiftyThree>
1196
+
1197
+         
1198
+        
1184
            <DialysisPrintOrderFiftyFour
1199
            <DialysisPrintOrderFiftyFour
1185
             v-bind:childResponse="childResponse"
1200
             v-bind:childResponse="childResponse"
1186
             v-if="org_template_info.template_id == 54"
1201
             v-if="org_template_info.template_id == 54"
1577
           scanStyles: false,
1592
           scanStyles: false,
1578
         });
1593
         });
1579
       } else if (
1594
       } else if (
1580
-        this.org_template_info.template_id == 2 ||
1581
-        this.org_template_info.template_id == 0
1595
+        this.org_template_info.template_id == 2
1596
+       
1582
       ) {
1597
       ) {
1583
         printJS({
1598
         printJS({
1584
           printable: "dialysis-print-box-1",
1599
           printable: "dialysis-print-box-1",
1616
         // this.org_template_info.template_id == 51 ||
1631
         // this.org_template_info.template_id == 51 ||
1617
         this.org_template_info.template_id == 58 ||
1632
         this.org_template_info.template_id == 58 ||
1618
         this.org_template_info.template_id == 60 ||
1633
         this.org_template_info.template_id == 60 ||
1619
-        this.org_template_info.template_id == 61
1634
+        this.org_template_info.template_id == 61  ||
1635
+        this.org_template_info.template_id ==0
1620
       ) {
1636
       ) {
1621
         printJS({
1637
         printJS({
1622
           printable: "dialysis-print-box-1",
1638
           printable: "dialysis-print-box-1",
1978
         });
1994
         });
1979
       } else if (
1995
       } else if (
1980
         this.org_template_info.template_id == 2 ||
1996
         this.org_template_info.template_id == 2 ||
1981
-        this.org_template_info.template_id == 0 ||
1982
         this.org_template_info.template_id == 5 ||
1997
         this.org_template_info.template_id == 5 ||
1983
         this.org_template_info.template_id == 22 ||
1998
         this.org_template_info.template_id == 22 ||
1984
         this.org_template_info.template_id == 33
1999
         this.org_template_info.template_id == 33
2027
         '@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:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align: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;}';
2042
         '@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:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align: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;}';
2028
       const style2 =
2043
       const style2 =
2029
         '@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;}';
2044
         '@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;}';
2030
-
2045
+     
2046
+      // 雷州惠爱样式
2047
+      const style12 ='@page {margin-top:10px;}@media print {.dialysis-print-order{width:960px;margin:0 auto;margin-top:30px;} .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} .print-table tbody tr td{border-collapse:collapse;} .dialysis-print-order .print-table .short_tr th p{height:20px !important; line-height:20px !important;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;white-space:normal;height: fit-content;} .dialysis-print-order .td_div1{display:flex;white-space: normal;} .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-table tr th p{height: 20px; line-height: 20px}  .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;}  .dialysis-print-order tbody .print-table tr{page-break-inside:avoid;} .dialysis-print-order tbody .print-table tr td{border: 1px solid #000;} ';
2031
       if (this.org_template_info.template_id == 1) {
2048
       if (this.org_template_info.template_id == 1) {
2032
         printJS({
2049
         printJS({
2033
           printable: "dialysis-print-box",
2050
           printable: "dialysis-print-box",
2037
         });
2054
         });
2038
       } else if (
2055
       } else if (
2039
         this.org_template_info.template_id == 2 ||
2056
         this.org_template_info.template_id == 2 ||
2040
-        this.org_template_info.template_id == 0 ||
2041
         this.org_template_info.template_id == 5 ||
2057
         this.org_template_info.template_id == 5 ||
2042
         this.org_template_info.template_id == 22 ||
2058
         this.org_template_info.template_id == 22 ||
2043
         this.org_template_info.template_id == 33
2059
         this.org_template_info.template_id == 33
2076
           style: style,
2092
           style: style,
2077
           scanStyles: false,
2093
           scanStyles: false,
2078
         });
2094
         });
2095
+      } else if (this.org_template_info.template_id == 53) {
2096
+        printJS({
2097
+          printable: "dialysis-print-box-1-2",
2098
+          type: "html",
2099
+          style: style12,
2100
+          scanStyles: false,
2101
+        });
2079
       }
2102
       }
2080
     },
2103
     },
2104
+   
2081
     getNumber() {
2105
     getNumber() {
2082
       if (this.dialysisOrder != null) {
2106
       if (this.dialysisOrder != null) {
2083
         return (
2107
         return (
2782
     },
2806
     },
2783
   },
2807
   },
2784
   created() {
2808
   created() {
2809
+    console.log("hhahahhahahahah=======",this.org_template_info.template_id)
2810
+    console.log("this.$store.getters.xt_user.org.id",this.$store.getters.xt_user.org.id)
2785
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2811
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2786
     var zone_selected = this.$store.getters.zone_selected;
2812
     var zone_selected = this.$store.getters.zone_selected;
2787
     var patient_state_selected = this.$store.getters.patient_state_selected;
2813
     var patient_state_selected = this.$store.getters.patient_state_selected;

+ 81 - 33
src/xt_pages/dialysis/doctorNewAdviceStaticPrint.vue View File

27
                 <tr>
27
                 <tr>
28
                   <td width="50">序号</td>
28
                   <td width="50">序号</td>
29
                   <td width="100">区域</td>
29
                   <td width="100">区域</td>
30
-                  <td width="100">责护</td>
30
+                  <!-- <td width="100">责护</td> -->
31
                   <td width="100">透析模式</td>
31
                   <td width="100">透析模式</td>
32
-                  <td  v-for="(item,index) in tabHead"  :key="index" :label="item.advice_name" width="150">
32
+                  <td  v-for="(item,index) in tabHead"  :key="index" :label="item.advice_name" width="200">
33
                      {{item.advice_name}}
33
                      {{item.advice_name}}
34
                   </td>
34
                   </td>
35
                 </tr>
35
                 </tr>
41
                     <span v-if="item.is_total ==0">总计</span>
41
                     <span v-if="item.is_total ==0">总计</span>
42
                   </td>
42
                   </td>
43
                   <td>
43
                   <td>
44
-                    <span v-if="item.is_total == 1">{{getZoneName(item.child)}}</span> 
44
+                    <span v-if="item.is_total == 1">
45
+                      <!-- {{getZoneName(item.child)}} -->
46
+                      {{item.zone_name}}
47
+                    </span> 
45
                   </td>
48
                   </td>
46
-                  <td>
49
+                  <!-- <td>
47
                     <span v-if="item.is_total == 1"> {{getAdminUserName(item.execution_staff)}}</span>
50
                     <span v-if="item.is_total == 1"> {{getAdminUserName(item.execution_staff)}}</span>
48
-                  </td>
51
+                  </td> -->
49
                   <td>
52
                   <td>
50
                     <span v-if="item.is_total == 1"> {{getModeId(item.child)}}</span>
53
                     <span v-if="item.is_total == 1"> {{getModeId(item.child)}}</span>
51
                   </td>
54
                   </td>
52
                   <td v-for="(it,i) in tabHead"  :key="i">
55
                   <td v-for="(it,i) in tabHead"  :key="i">
53
                     <span v-if="item.is_total == 1">
56
                     <span v-if="item.is_total == 1">
54
-                      <span v-if="item.child[i]!=null">{{getDrugCount(item.child,it.advice_name)}}</span>
57
+                      <span v-if="item.child[i]!=null">
58
+                        {{getDrugCount(item.child,it.advice_name)}}
59
+                      </span>
60
+                      <span v-if="it&&it.advice_name == '肝素钠注射剂'">
61
+                        {{getDrugAdviceCount(it.advice_name,item.zone_name)}}  
62
+                      </span>
55
                     </span>
63
                     </span>
56
                     <span v-if="item.is_total == 0">
64
                     <span v-if="item.is_total == 0">
57
                       {{getAllSumCount(it.advice_name)}}
65
                       {{getAllSumCount(it.advice_name)}}
113
           tabHead:[],
121
           tabHead:[],
114
           tableDataList:[],
122
           tableDataList:[],
115
           adminUserList:[],
123
           adminUserList:[],
124
+          doctorMap:[],
116
         }
125
         }
117
       },
126
       },
118
       components: {
127
       components: {
181
                 this.tabHead = arr
190
                 this.tabHead = arr
182
                 console.log("arr---------------------",this.tabHead)
191
                 console.log("arr---------------------",this.tabHead)
183
               }
192
               }
184
-
193
+              
194
+              this.doctorMap = []
185
               if(doctorList!=null && doctorList.length > 0){
195
               if(doctorList!=null && doctorList.length > 0){
186
-                
187
                 let dataInfo = {}
196
                 let dataInfo = {}
188
                   doctorList.forEach((item, index) => {
197
                   doctorList.forEach((item, index) => {
189
-                  let { execution_staff } = item
190
-                  if (!dataInfo[execution_staff])  {
191
-                    dataInfo[execution_staff] = {
192
-                      execution_staff:item.execution_staff,
198
+                  if(item.advice_name == "肝素钠注射剂"){
199
+                    this.doctorMap.push(item)
200
+                  } 
201
+                  let { zone_name } = item
202
+                  if (!dataInfo[zone_name])  {
203
+                    dataInfo[zone_name] = {
204
+                      zone_name:item.zone_name,
193
                       child: [],
205
                       child: [],
194
                       count:0,
206
                       count:0,
195
                       sort:item.sort,
207
                       sort:item.sort,
200
                 if(newArr!=null && newArr.length >0){
212
                 if(newArr!=null && newArr.length >0){
201
                   for(let i=0;i<newArr.length;i++){
213
                   for(let i=0;i<newArr.length;i++){
202
                     for(let j=0;j<doctorList.length;j++){
214
                     for(let j=0;j<doctorList.length;j++){
203
-                      if(newArr[i].execution_staff == doctorList[j].execution_staff){
215
+                      if(newArr[i].zone_name == doctorList[j].zone_name){
204
                          newArr[i].child.push(doctorList[j])
216
                          newArr[i].child.push(doctorList[j])
205
                       }
217
                       }
206
                     }
218
                     }
515
 
527
 
516
       getAllSumCount(advice_name){
528
       getAllSumCount(advice_name){
517
        
529
        
518
-       var hisNewArr =[]
519
-      if(this.tabHead.length!=null && this.tabHead.length >0){
520
-        for(let i=0;i<this.tabHead.length;i++){
521
-          if(this.tabHead[i].advice_name == advice_name){
522
-            hisNewArr.push(this.tabHead[i])
530
+        var hisNewArr =[]
531
+        if(this.tabHead.length!=null && this.tabHead.length >0){
532
+          for(let i=0;i<this.tabHead.length;i++){
533
+            if(this.tabHead[i].advice_name == advice_name){
534
+              hisNewArr.push(this.tabHead[i])
535
+            }
523
           }
536
           }
524
         }
537
         }
525
-      }
526
-      
527
-      var total = 0
528
-      if(hisNewArr!=null && hisNewArr.length > 0){
529
-        for(let i=0;i<hisNewArr.length;i++){
530
-         for(let j=0;j<hisNewArr[i].child.length;j++){
531
-            total += parseInt(hisNewArr[i].child[j].prescribing_number)
532
-         }
538
+        
539
+        var total = 0
540
+        if(hisNewArr!=null && hisNewArr.length > 0){
541
+          for(let i=0;i<hisNewArr.length;i++){
542
+          for(let j=0;j<hisNewArr[i].child.length;j++){
543
+              total += parseInt(hisNewArr[i].child[j].prescribing_number)
544
+          }
545
+          }
546
+        }
547
+        if (total > 0) {
548
+          return total
549
+        }else{
550
+          return 0
533
         }
551
         }
534
-      }
535
-      if (total > 0) {
536
-        return total
537
-      }else{
538
-        return 0
539
-      }
540
 
552
 
541
-     }
553
+     },
554
+     getDrugAdviceCount(advice_name,zone_name){
555
+        var str = ""
556
+        var arr =[]
557
+        var arrOne = []
558
+        if(this.doctorMap!=null && this.doctorMap.length>0){
559
+
560
+           for(let i=0;i<this.doctorMap.length;i++){
561
+            if(this.doctorMap[i].advice_name!="" || this.doctorMap[i].advice_name!=undefined){
562
+                this.doctorMap[i].advice_name = this.doctorMap[i].advice_name.replace(/\s/g,"")
563
+            }
564
+             if(this.doctorMap[i].advice_name == advice_name && this.doctorMap[i].zone_name == zone_name && this.doctorMap[i].delivery_way =="导管封管"){
565
+                arr.push(this.doctorMap[i])
566
+             }
567
+
568
+             if(this.doctorMap[i].advice_name == advice_name && this.doctorMap[i].zone_name == zone_name && this.doctorMap[i].delivery_way.indexOf("泵入")!=-1){
569
+                arrOne.push(this.doctorMap[i])
570
+             }
571
+           }
572
+        }
573
+
574
+        if(arr!=null && arr.length >0){
575
+            var total = 0
576
+           for(let i=0;i<arr.length;i++){
577
+              total +=arr[i].prescribing_number
578
+           }
579
+          str =  "封管" +"("+total+")"
580
+        }
581
+        if(arrOne!=null && arrOne.length >0){
582
+            var total_one = 0
583
+           for(let i=0;i<arrOne.length;i++){
584
+             total_one +=arrOne[i].prescribing_number
585
+           }
586
+          str = str + "泵入" +"("+total_one+")"
587
+        }
588
+        return str
589
+      },
542
      }
590
      }
543
     }
591
     }
544
   </script>
592
   </script>

+ 175 - 54
src/xt_pages/dialysis/newDoctorAdvice.vue View File

137
         </div>
137
         </div>
138
       </div>
138
       </div>
139
 
139
 
140
+      <div class="cell clearfix">
141
+        <label class="title"> <span class="name">执行频率</span> : </label>
142
+        <div class="time">
143
+          <ul class>
144
+            <li
145
+              :class="item.id == execution_frequency ? 'active' : ''"
146
+              @click="selectFrequencyWay(item.id)"
147
+              v-for="item in excutList"
148
+              :key="item.id"
149
+            >
150
+              {{ item.name }}
151
+            </li>
152
+          </ul>
153
+        </div>
154
+      </div>
155
+
140
        <div class="cell clearfix">
156
        <div class="cell clearfix">
141
         <label class="title"> <span class="name">执行状态</span> : </label>
157
         <label class="title"> <span class="name">执行状态</span> : </label>
142
         <div class="time">
158
         <div class="time">
159
       </div> -->
175
       </div> -->
160
 
176
 
161
       <div style="margin-top: 10px;margin-bottom:10px">
177
       <div style="margin-top: 10px;margin-bottom:10px">
162
-        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671 && org_id!=0 && org_id!=10340 ">统计</el-button>
178
+        <el-button type="primary" size="small" @click="toStatic" v-if="org_id!=9671  && org_id!=10340 ">统计</el-button>
163
 
179
 
164
-        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id == 0 || org_id==10340">统计</el-button>
180
+        <el-button type="primary" size="small" @click="toStaticOne" v-if="org_id == 9671 || org_id==10340">统计</el-button>
165
       </div>
181
       </div>
166
 
182
 
167
 
183
 
523
             </el-option>
539
             </el-option>
524
            </el-select>
540
            </el-select>
525
            <label class="title"> <span class="name">病区选择</span> : </label>
541
            <label class="title"> <span class="name">病区选择</span> : </label>
526
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
542
+           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType" multiple >
527
             <el-option
543
             <el-option
528
               v-for="item in partitionArr"
544
               v-for="item in partitionArr"
529
               :key="item.id"
545
               :key="item.id"
595
             </el-option>
611
             </el-option>
596
            </el-select>
612
            </el-select>
597
            <label class="title"> <span class="name">病区选择</span> : </label>
613
            <label class="title"> <span class="name">病区选择</span> : </label>
598
-           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionTypeOne">
614
+           <el-select v-model="partion_type" placeholder="请选择" @change="changePartionTypeOne" multiple>
599
             <el-option
615
             <el-option
600
               v-for="item in partitionArr"
616
               v-for="item in partitionArr"
601
               :key="item.id"
617
               :key="item.id"
638
           width="100"
654
           width="100"
639
         >
655
         >
640
           <template slot-scope="scope" >
656
           <template slot-scope="scope" >
641
-            <span v-if="scope.row.is_total ==1">{{getZoneName(scope.row.child)}}</span>
657
+            <span v-if="scope.row.is_total ==1">
658
+              <!-- {{getZoneName(scope.row.child)}} -->
659
+              {{scope.row.zone_name }}
660
+           </span>
642
           </template>
661
           </template>
643
 
662
 
644
         </el-table-column>
663
         </el-table-column>
645
-       <el-table-column
664
+       <!-- <el-table-column
646
           align="center"
665
           align="center"
647
           prop="name"
666
           prop="name"
648
           label="责护"
667
           label="责护"
654
             </span>
673
             </span>
655
           </template>
674
           </template>
656
 
675
 
657
-        </el-table-column>
676
+        </el-table-column> -->
658
 
677
 
659
         <el-table-column
678
         <el-table-column
660
           align="center"
679
           align="center"
680
           <template slot-scope="scope">
699
           <template slot-scope="scope">
681
             <span v-if="scope.row.is_total ==1">
700
             <span v-if="scope.row.is_total ==1">
682
               <span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
701
               <span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
702
+              <span v-if="item&&item.advice_name == '肝素钠注射剂'">
703
+                 {{getDrugAdviceCount(item.advice_name,scope.row.zone_name)}}
704
+              </span>
683
             </span>
705
             </span>
684
             <span v-if="scope.row.is_total == 0">
706
             <span v-if="scope.row.is_total == 0">
685
                  {{getAllSumCount(item.advice_name)}}
707
                  {{getAllSumCount(item.advice_name)}}
794
       tabHead:[],
816
       tabHead:[],
795
       tableDataList:[],
817
       tableDataList:[],
796
       adminUserList:[],
818
       adminUserList:[],
819
+      doctorMap:[],
820
+      excutList:[],
821
+      execution_frequency:"",
822
+      zoneIdList:[],
823
+      partion_str:"",
797
     };
824
     };
798
   },
825
   },
799
   created() {
826
   created() {
829
       });
856
       });
830
     },
857
     },
831
     clickCurrent(val) {
858
     clickCurrent(val) {
832
-     // console.log(val);
859
+      //console.log(val);
833
       this.$router.push({
860
       this.$router.push({
834
         path: "/dialysis/details",
861
         path: "/dialysis/details",
835
         query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
862
         query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
856
        this.delivery_way = val
883
        this.delivery_way = val
857
        this.requestSchedualDoctors(this.time)
884
        this.requestSchedualDoctors(this.time)
858
     },
885
     },
886
+    selectFrequencyWay(val){
887
+      this.execution_frequency = val
888
+      this.requestSchedualDoctors(this.time)
889
+    },
859
 
890
 
860
     selectExcutionWay(val){
891
     selectExcutionWay(val){
861
        this.excution_way = val
892
        this.excution_way = val
874
           return false;
905
           return false;
875
         } else {
906
         } else {
876
           this.partitionArr = response.data.data.zone;
907
           this.partitionArr = response.data.data.zone;
877
-          this.partitionArr.unshift({ id: 0, name: "全部" });
908
+          for(let i=0;i<this.partitionArr.length;i++){
909
+           this.zoneIdList.push(this.partitionArr[i].id)
910
+          }
911
+         
912
+          // this.partitionArr.unshift({ id: 0, name: "全部" });
878
           var dics  =  response.data.data.dics
913
           var dics  =  response.data.data.dics
879
           var obj = {id:0,name:"全部"}
914
           var obj = {id:0,name:"全部"}
880
           this.deliveryWay.push(obj)
915
           this.deliveryWay.push(obj)
881
           this.deliveryWay.push(...dics)
916
           this.deliveryWay.push(...dics)
917
+          var objOne = {id:0,name:"全部"}
918
+           this.excutList.push(objOne)
919
+           var efs = response.data.data.efs
920
+           this.excutList.push(...efs)
921
+          console.log("执行瓶绿",this.excutList)
882
         }
922
         }
883
       });
923
       });
884
     },
924
     },
893
         if(name == '全部'){
933
         if(name == '全部'){
894
           name = ""
934
           name = ""
895
         }
935
         }
936
+       
937
+        var nameOne = ""
938
+         for(let i=0;i<this.excutList.length;i++){
939
+            if(this.execution_frequency == this.excutList[i].id){
940
+              nameOne = this.excutList[i].name
941
+            }
942
+        }
943
+
944
+         if(nameOne == '全部'){
945
+          nameOne = ""
946
+        }
896
 
947
 
897
         let newTime =  moment(time).format('YYYY-MM-DD')
948
         let newTime =  moment(time).format('YYYY-MM-DD')
898
 
949
 
899
          var schedule_type = this.listQuery.schedul_type
950
          var schedule_type = this.listQuery.schedul_type
900
          var partition_type = this.listQuery.partition_type
951
          var partition_type = this.listQuery.partition_type
901
-
902
-        getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType}).then(rs => {
952
+       
953
+        getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType,execution_frequency:nameOne}).then(rs => {
903
         var resp = rs.data
954
         var resp = rs.data
904
         if (resp.state == 1) {
955
         if (resp.state == 1) {
905
             this.admin_users = resp.data.adminUser
956
             this.admin_users = resp.data.adminUser
952
                     })
1003
                     })
953
                   }
1004
                   }
954
                 })
1005
                 })
955
-                console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
1006
+                console.log("中国人民名份反反复复方法 ",resp.data.hisAdvices)
956
               }
1007
               }
957
             }
1008
             }
958
 
1009
 
1251
         if(name == '全部'){
1302
         if(name == '全部'){
1252
           name = ""
1303
           name = ""
1253
        }
1304
        }
1254
-      this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1305
+        var nameOne = ""
1306
+         for(let i=0;i<this.excutList.length;i++){
1307
+            if(this.execution_frequency == this.excutList[i].id){
1308
+              nameOne = this.excutList[i].name
1309
+            }
1310
+        }
1311
+
1312
+         if(nameOne == '全部'){
1313
+          nameOne = ""
1314
+        }
1315
+      this.$router.push({ path: "/dialysis/signPrint",query:{time: new Date(this.time).getTime(),delivery_way:name,execution_frequency:nameOne,patient_id:this.patient_id} });
1255
 
1316
 
1256
     },
1317
     },
1257
     batchPrintActionOne: function() {
1318
     batchPrintActionOne: function() {
1475
         return searchArray
1536
         return searchArray
1476
       },
1537
       },
1477
      handleSelect(val) {
1538
      handleSelect(val) {
1539
+       console.log("val323223232323232323",val)
1478
        this.patient_id = val.id
1540
        this.patient_id = val.id
1541
+       this.listQuery.keyword = val.name
1479
        this.requestSchedualDoctors(this.time)
1542
        this.requestSchedualDoctors(this.time)
1480
       },
1543
       },
1481
      toSeach(){
1544
      toSeach(){
1667
     },
1730
     },
1668
 
1731
 
1669
      toStatic() {
1732
      toStatic() {
1733
+          var str = ""
1734
+         if(this.partion_type==0){
1735
+            str = this.zoneIdList.join(",")
1736
+         }
1737
+         if(this.partion_type!=0){
1738
+            str = this.partion_type.join(",")
1739
+         }
1740
+         this.partion_str = ""
1741
+         this.partion_str = str  
1670
          this.tableList = []
1742
          this.tableList = []
1671
           var params = {
1743
           var params = {
1672
             schedule_type:this.schedule_type,
1744
             schedule_type:this.schedule_type,
1673
-            partion_type:this.partion_type,
1745
+            partion_type:str,
1674
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1746
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1675
           }
1747
           }
1748
+
1676
          console.log("params2332232wo",params)
1749
          console.log("params2332232wo",params)
1677
         getDialysisAdviceToday(params).then(response=>{
1750
         getDialysisAdviceToday(params).then(response=>{
1678
           if(response.data.state == 1){
1751
           if(response.data.state == 1){
1804
 
1877
 
1805
       },
1878
       },
1806
       toStaticOne() {
1879
       toStaticOne() {
1880
+         var str = ""
1881
+         if(this.partion_type==0){
1882
+            str = this.zoneIdList.join(",")
1883
+         }
1884
+         if(this.partion_type!=0){
1885
+            str = this.partion_type.join(",")
1886
+         }
1887
+         this.partion_str = ""
1888
+         this.partion_str = str  
1807
          this.tableList = []
1889
          this.tableList = []
1808
           var params = {
1890
           var params = {
1809
             schedule_type:this.schedule_type,
1891
             schedule_type:this.schedule_type,
1810
-            partion_type:this.partion_type,
1892
+            partion_type:str,
1811
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1893
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1812
           }
1894
           }
1813
 
1895
 
1865
                 console.log("tabHead",this.tabHead)
1947
                 console.log("tabHead",this.tabHead)
1866
               }
1948
               }
1867
 
1949
 
1950
+              this.doctorMap = []
1868
               if(doctorList!=null && doctorList.length > 0){
1951
               if(doctorList!=null && doctorList.length > 0){
1869
-
1870
                 let dataInfoOne = {}
1952
                 let dataInfoOne = {}
1871
                   doctorList.forEach((item, index) => {
1953
                   doctorList.forEach((item, index) => {
1872
-                  let { execution_staff } = item
1873
-                  if (!dataInfoOne[execution_staff])  {
1874
-                    dataInfoOne[execution_staff] = {
1875
-                      execution_staff:item.execution_staff,
1954
+                    if(item.advice_name == "肝素钠注射剂"){
1955
+                      this.doctorMap.push(item)
1956
+                    }
1957
+                  let { zone_name } = item
1958
+                  if (!dataInfoOne[zone_name])  {
1959
+                    dataInfoOne[zone_name] = {
1960
+                      zone_name:item.zone_name,
1876
                       child: [],
1961
                       child: [],
1877
                       count:0,
1962
                       count:0,
1878
                       sort:item.sort,
1963
                       sort:item.sort,
1883
                 if(newArr!=null && newArr.length >0){
1968
                 if(newArr!=null && newArr.length >0){
1884
                   for(let i=0;i<newArr.length;i++){
1969
                   for(let i=0;i<newArr.length;i++){
1885
                     for(let j=0;j<doctorList.length;j++){
1970
                     for(let j=0;j<doctorList.length;j++){
1886
-                      if(newArr[i].execution_staff == doctorList[j].execution_staff){
1971
+                      if(newArr[i].zone_name == doctorList[j].zone_name){
1887
                          newArr[i].child.push(doctorList[j])
1972
                          newArr[i].child.push(doctorList[j])
1888
                       }
1973
                       }
1889
                     }
1974
                     }
1897
                   }
1982
                   }
1898
                 }
1983
                 }
1899
 
1984
 
1900
-                var obj = {is_total:0,count:0,execution_staff:0,child:[]}
1985
+                var obj = {is_total:0,count:0,execution_staff:0,child:[],zone_name:""}
1901
                 newList.push(obj)
1986
                 newList.push(obj)
1902
                 this.tableDataList = newList
1987
                 this.tableDataList = newList
1903
                 console.log("999999999999999999-------",this.tableDataList)
1988
                 console.log("999999999999999999-------",this.tableDataList)
1912
         })
1997
         })
1913
 
1998
 
1914
       },
1999
       },
2000
+      getDrugAdviceCount(advice_name,zone_name){
2001
+        var str = ""
2002
+        var arr =[]
2003
+        var arrOne = []
2004
+        if(this.doctorMap!=null && this.doctorMap.length>0){
2005
+
2006
+           for(let i=0;i<this.doctorMap.length;i++){
2007
+            if(this.doctorMap[i].advice_name!="" || this.doctorMap[i].advice_name!=undefined){
2008
+                this.doctorMap[i].advice_name = this.doctorMap[i].advice_name.replace(/\s/g,"")
2009
+            }
2010
+             if(this.doctorMap[i].advice_name == advice_name && this.doctorMap[i].zone_name == zone_name && this.doctorMap[i].delivery_way =="导管封管"){
2011
+                arr.push(this.doctorMap[i])
2012
+             }
1915
 
2013
 
2014
+             if(this.doctorMap[i].advice_name == advice_name && this.doctorMap[i].zone_name == zone_name && this.doctorMap[i].delivery_way.indexOf("泵入")!=-1){
2015
+                arrOne.push(this.doctorMap[i])
2016
+             }
2017
+           }
2018
+        }
2019
+
2020
+        if(arr!=null && arr.length >0){
2021
+            var total = 0
2022
+           for(let i=0;i<arr.length;i++){
2023
+              total +=arr[i].prescribing_number
2024
+           }
2025
+          str =  "封管" +"("+total+")"
2026
+        }
2027
+        if(arrOne!=null && arrOne.length >0){
2028
+            var total_one = 0
2029
+           for(let i=0;i<arrOne.length;i++){
2030
+             total_one +=arrOne[i].prescribing_number
2031
+           }
2032
+          str = str + "泵入" +"("+total_one+")"
2033
+        }
2034
+        return str
2035
+      },
1916
      getSpecification(id){
2036
      getSpecification(id){
1917
         var specification_name = ""
2037
         var specification_name = ""
1918
         for(let i=0;i<this.druglist.length;i++){
2038
         for(let i=0;i<this.druglist.length;i++){
1962
       },
2082
       },
1963
       toPrintOne(){
2083
       toPrintOne(){
1964
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
2084
          var schedule_date = moment(this.time).format('YYYY-MM-DD')
1965
-        this.$router.push({path:"/dialysis/doctorAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2085
+        this.$router.push({path:"/dialysis/doctorAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
1966
       },
2086
       },
1967
       toPrintTwo(){
2087
       toPrintTwo(){
1968
         var schedule_date = moment(this.time).format('YYYY-MM-DD')
2088
         var schedule_date = moment(this.time).format('YYYY-MM-DD')
1969
-        this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
2089
+        this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_str+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
1970
       },
2090
       },
1971
       toExportListOne(){
2091
       toExportListOne(){
1972
         import('@/vendor/Export2Excel').then(excel => {
2092
         import('@/vendor/Export2Excel').then(excel => {
2289
       GetMobileScheduleList().then(response=>{
2409
       GetMobileScheduleList().then(response=>{
2290
         if(response.data.state == 1){
2410
         if(response.data.state == 1){
2291
           var schedule = response.data.data.schedule
2411
           var schedule = response.data.data.schedule
2292
-          console.log("schedule---------------",schedule)
2293
-          var arr = []
2294
-          for(let i=0;i<schedule.length;i++){
2295
-            if(schedule[i].monitor_record.ultrafiltration_volume!=schedule[i].xt_assesment_after_dislysis.actual_ultrafiltration){
2296
-              arr.push(schedule[i])
2297
-            }
2298
-          }
2299
-
2300
-
2301
-          import('@/vendor/Export2Excel').then(excel => {
2302
-
2303
-         if(arr!=null && arr.length > 0){
2304
-           for(let i=0;i<arr.length;i++){
2305
-             arr[i].patient_name = arr[i].patient.name
2306
-             arr[i].target_ultrafiltration = arr[i].dialysis_prescription.target_ultrafiltration
2307
-             arr[i].ultrafiltration_volume = arr[i].monitor_record.ultrafiltration_volume
2308
-             arr[i].actual_ultrafiltration = arr[i].xt_assesment_after_dislysis.actual_ultrafiltration
2309
-             arr[i].start_time =  this.getTimeSix(arr[i].schedule_date)
2310
-           }
2311
-         }
2312
-         const tHeader = ['序号','日期','患者姓名','目标超滤量','监测超滤量','实际超滤量']
2313
-         const filterVal = ['index','start_time','patient_name','target_ultrafiltration','ultrafiltration_volume','actual_ultrafiltration']
2314
-
2315
-         const data = this.formatJson(filterVal, arr)
2316
-         excel.export_json_to_excel({
2317
-           header: tHeader,
2318
-           data,
2319
-           filename: '监测数据统计'
2320
-          })
2321
-         })
2412
+          this.$message.success("保存成功!")
2413
+        //   console.log("schedule---------------",schedule)
2414
+        //   var arr = []
2415
+        //   for(let i=0;i<schedule.length;i++){
2416
+        //     if(schedule[i].monitor_record.ultrafiltration_volume!=schedule[i].xt_assesment_after_dislysis.actual_ultrafiltration){
2417
+        //       arr.push(schedule[i])
2418
+        //     }
2419
+        //   }
2420
+
2421
+
2422
+        //   import('@/vendor/Export2Excel').then(excel => {
2423
+
2424
+        //  if(arr!=null && arr.length > 0){
2425
+        //    for(let i=0;i<arr.length;i++){
2426
+        //      arr[i].patient_name = arr[i].patient.name
2427
+        //      arr[i].target_ultrafiltration = arr[i].dialysis_prescription.target_ultrafiltration
2428
+        //      arr[i].ultrafiltration_volume = arr[i].monitor_record.ultrafiltration_volume
2429
+        //      arr[i].actual_ultrafiltration = arr[i].xt_assesment_after_dislysis.actual_ultrafiltration
2430
+        //      arr[i].start_time =  this.getTimeSix(arr[i].schedule_date)
2431
+        //    }
2432
+        //  }
2433
+        //  const tHeader = ['序号','日期','患者姓名','目标超滤量','监测超滤量','实际超滤量']
2434
+        //  const filterVal = ['index','start_time','patient_name','target_ultrafiltration','ultrafiltration_volume','actual_ultrafiltration']
2435
+
2436
+        //  const data = this.formatJson(filterVal, arr)
2437
+        //  excel.export_json_to_excel({
2438
+        //    header: tHeader,
2439
+        //    data,
2440
+        //    filename: '监测数据统计'
2441
+        //   })
2442
+        //  })
2322
         }
2443
         }
2323
       })
2444
       })
2324
     }
2445
     }

+ 42 - 6
src/xt_pages/dialysis/signPrint.vue View File

14
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
14
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
15
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
15
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
16
                         <div>姓名:{{item.patient.name}}</div>  
16
                         <div>姓名:{{item.patient.name}}</div>  
17
-                        <div>医嘱内容:{{ it.advice_name }}</div>  
18
-                        <div>给药途径:{{it.execution_frequency}}</div>  
19
-                        <div>执行频率:{{it.delivery_way}}</div>  
17
+                        <div>医嘱内容:{{ it.advice_name }} 
18
+                           <span v-if="it.prescribing_number>0 && org_id !=0 && org_id!=10440">
19
+                            {{it.prescribing_number}}{{ it.prescribing_number_unit }}
20
+                          </span> 
21
+                        </div>  
22
+                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
23
+                          规格:{{getSpecialName(it.drug_id)}} 
24
+                         
25
+                        </div>  
26
+                        <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
27
+                        <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
28
+                        <div>给药途径:{{it.delivery_way}}</div>  
20
                         <div>打印时间:{{time}}</div>   
29
                         <div>打印时间:{{time}}</div>   
21
                     </div>  
30
                     </div>  
22
                 </div>
31
                 </div>
29
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
38
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
30
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
39
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
31
                         <div>姓名:{{item.patient.name}}</div>  
40
                         <div>姓名:{{item.patient.name}}</div>  
32
-                        <div>医嘱内容:{{getAdvice(item.doctor_advice)}}</div>  
41
+                        <div>医嘱内容:{{getAdvice(item.doctor_advice)}} 
42
+                           <span v-if="it.prescribing_number >0&& org_id !=0 && org_id!=10440"> {{it.prescribing_number}}{{ it.prescribing_number_unit }}</span>
43
+                        </div>  
44
+                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
45
+                          规格:{{getSpecialName(it.drug_id)}} 
46
+                         
47
+                        </div>  
48
+                        <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}&nbsp;{{it.single_dose_unit }}</div>
33
                         <div>给药途径:{{item.doctor_advice[0].execution_frequency}}</div>  
49
                         <div>给药途径:{{item.doctor_advice[0].execution_frequency}}</div>  
34
-                        <div>执行频率:{{item.doctor_advice[0].delivery_way}}</div>  
50
+                        <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{item.doctor_advice[0].delivery_way}}</div>  
35
                         <div>打印时间:{{time}}</div>   
51
                         <div>打印时间:{{time}}</div>   
36
                     </div>  
52
                     </div>  
37
                   
53
                   
68
             show:true,
84
             show:true,
69
             showOne:false,
85
             showOne:false,
70
             delivery_way:"",
86
             delivery_way:"",
71
-            list:[]
87
+            list:[],
88
+            execution_frequency:"",
89
+            org_id:0,
90
+            drugList:[],
72
         }
91
         }
73
     },
92
     },
74
     methods:{
93
     methods:{
90
             patient_type: 0,
109
             patient_type: 0,
91
             advice_type: 2,
110
             advice_type: 2,
92
             delivery_way:this.delivery_way,
111
             delivery_way:this.delivery_way,
112
+            execution_frequency:this.execution_frequency,
113
+            patient_id:this.$route.query.patient_id,
93
             }).then(rs => {
114
             }).then(rs => {
94
                 var resp = rs.data
115
                 var resp = rs.data
95
                 if (resp.state == 1) {
116
                 if (resp.state == 1) {
254
                
275
                
255
                  if(config.is_open == 1){
276
                  if(config.is_open == 1){
256
                    var schedulesArr = resp.data.hisAdvices
277
                    var schedulesArr = resp.data.hisAdvices
278
+                   this.drugList = resp.data.drug
257
                    let schedules = []
279
                    let schedules = []
258
                    var ids = this.$store.getters.temp_params.advice_ids
280
                    var ids = this.$store.getters.temp_params.advice_ids
259
                    console.log('ids',ids)
281
                    console.log('ids',ids)
516
         return ""
538
         return ""
517
       }
539
       }
518
     },
540
     },
541
+    getSpecialName(drug_id){
542
+        var name = ""
543
+        for(let i=0;i<this.drugList.length;i++){
544
+            if(drug_id == this.drugList[i].id){
545
+            name = this.drugList[i].dose + this.drugList[i].dose_unit + "*" + this.drugList[i].min_number + this.drugList[i].min_unit +"/"+this.drugList[i].max_unit
546
+            }
547
+        }
548
+        return name
549
+     }
519
     },
550
     },
520
     computed: {
551
     computed: {
521
     filtedScheduals: function () {
552
     filtedScheduals: function () {
628
         console.log("222222",scheduleMap)
659
         console.log("222222",scheduleMap)
629
         return scheduleMap
660
         return scheduleMap
630
         },
661
         },
662
+
663
+      
631
     
664
     
632
     },
665
     },
633
     created(){
666
     created(){
634
       var time = this.$route.query.time
667
       var time = this.$route.query.time
635
       var delivery_way = this.$route.query.delivery_way
668
       var delivery_way = this.$route.query.delivery_way
669
+      this.org_id = this.$store.getters.xt_user.org.id
636
       console.log("delivery_Way",delivery_way)
670
       console.log("delivery_Way",delivery_way)
637
       this.delivery_way = delivery_way
671
       this.delivery_way = delivery_way
672
+      var execution_frequency = this.$route.query.execution_frequency
673
+      this.execution_frequency = execution_frequency
638
       this.time = moment(time).format('YYYY-MM-DD')
674
       this.time = moment(time).format('YYYY-MM-DD')
639
       console.log(11,this.$route.query)
675
       console.log(11,this.$route.query)
640
       this.requestSchedualDoctors(time)
676
       this.requestSchedualDoctors(time)

+ 31 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

289
                                 }}
289
                                 }}
290
                               </div>
290
                               </div>
291
                             </div>
291
                             </div>
292
+                          
293
+                          </div>
294
+
295
+                          <div
296
+                            class="row"
297
+                            style="
298
+                              padding: 2px 0;
299
+                              line-height: 23px;
300
+                              display: flex;
301
+                            "
302
+                          >
303
+                          
292
                             <div class="inline_block" style="flex: 1">
304
                             <div class="inline_block" style="flex: 1">
293
                               透前症状:
305
                               透前症状:
294
                               <div
306
                               <div
1148
                               <span v-if="prescription.anticoagulant == 4"
1160
                               <span v-if="prescription.anticoagulant == 4"
1149
                                 >mg</span
1161
                                 >mg</span
1150
                               >
1162
                               >
1151
-                              <span v-if="prescription.anticoagulant == 3"
1163
+                              <span v-if="prescription.anticoagulant == 3 || prescription.anticoagulant == 6 || prescription.anticoagulant == 7"
1152
                                 >iu</span
1164
                                 >iu</span
1153
                               >
1165
                               >
1154
                               <span v-if="prescription.anticoagulant == 2"
1166
                               <span v-if="prescription.anticoagulant == 2"
2582
                                 />
2594
                                 />
2583
                               </div>
2595
                               </div>
2584
                             </div>
2596
                             </div>
2585
-                            <div class="inline_block" style="flex: 1">
2597
+                            <!-- <div class="inline_block" style="flex: 1">
2586
                               下机护士:
2598
                               下机护士:
2587
                               <div
2599
                               <div
2588
                                 class="under_line"
2600
                                 class="under_line"
2620
                                   v-else
2632
                                   v-else
2621
                                 />
2633
                                 />
2622
                               </div>
2634
                               </div>
2635
+                            </div> -->
2636
+                            <div class="inline_block" style="flex: 1">
2637
+                              患者签名:
2638
+                              <div
2639
+                                class="under_line"
2640
+                                style="width: 80px; text-align: center"
2641
+                              >
2642
+                               
2643
+                                <img
2644
+                                  style="height: 30px"
2645
+                                  :src="dialysisOrder == null? 0: dialysisOrder.url"
2646
+                                  alt=""
2647
+                                  srcset=""
2648
+                                />
2649
+                              </div>
2623
                             </div>
2650
                             </div>
2624
                             <div class="inline_block" style="flex: 1">
2651
                             <div class="inline_block" style="flex: 1">
2625
                               治疗医生:
2652
                               治疗医生:
3496
         }
3523
         }
3497
 
3524
 
3498
         this.totollength = this.doctor_advices.length + this.monitors.length;
3525
         this.totollength = this.doctor_advices.length + this.monitors.length;
3499
-        if (this.totollength > 18) {
3500
-          var temp_advice_length = 17 - this.monitors.length;
3526
+        if (this.totollength > 32) {
3527
+          var temp_advice_length = 31 - this.monitors.length;
3501
           var doctor_advices_1 = [];
3528
           var doctor_advices_1 = [];
3502
           var doctor_advices_2 = [];
3529
           var doctor_advices_2 = [];
3503
           for (let index = 0; index < this.doctor_advices.length; index++) {
3530
           for (let index = 0; index < this.doctor_advices.length; index++) {

+ 296 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

374
                       医师签名:
374
                       医师签名:
375
                       <span
375
                       <span
376
                         style="height: 20px"
376
                         style="height: 20px"
377
-                        v-if="setAdminUserES(prescription.modifier) == ''"
377
+                        v-if="setAdminUserES(advices[0].advice_doctor) == ''"
378
                       >
378
                       >
379
-                        {{ getAdminUser(prescription.modifier) }}
379
+                        {{ getAdminUser(advices[0].advice_doctor) }}
380
                       </span>
380
                       </span>
381
                       <img
381
                       <img
382
                         class="es-img"
382
                         class="es-img"
383
                         style="height: 25px"
383
                         style="height: 25px"
384
-                        :src="setAdminUserES(prescription.modifier)"
384
+                        :src="setAdminUserES(advices[0].advice_doctor)"
385
                         alt
385
                         alt
386
                         srcset
386
                         srcset
387
                         v-else
387
                         v-else
795
               </table>
795
               </table>
796
             </td>
796
             </td>
797
           </tr>
797
           </tr>
798
-          <tr style="transform: translateY(4px)">
798
+          <tr style="transform: translateY(4px)" v-if="org_id!=10346 && org_id!=0">
799
             <td>
799
             <td>
800
               <table class="print-table" border="1" style="text-align: center">
800
               <table class="print-table" border="1" style="text-align: center">
801
                 <tr>
801
                 <tr>
805
                   <td
805
                   <td
806
                     style="height: 20px"
806
                     style="height: 20px"
807
                     width="90"
807
                     width="90"
808
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
808
+                    v-if="org_id == 10346 || org_id == 9675"
809
                   >
809
                   >
810
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
810
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
811
                   </td>
811
                   </td>
815
                   <td
815
                   <td
816
                     style="height: 20px"
816
                     style="height: 20px"
817
                     width="70"
817
                     width="70"
818
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
818
+                    v-if="org_id == 10346 || org_id == 9675"
819
                   >
819
                   >
820
                     <p style="height: 20px; line-height: 20px">执行时间</p>
820
                     <p style="height: 20px; line-height: 20px">执行时间</p>
821
                   </td>
821
                   </td>
822
+             
822
                   <td style="height: 20px" width="90">
823
                   <td style="height: 20px" width="90">
823
                     <p style="height: 20px; line-height: 20px">执行</p>
824
                     <p style="height: 20px; line-height: 20px">执行</p>
824
                   </td>
825
                   </td>
841
               </table>
842
               </table>
842
             </td>
843
             </td>
843
           </tr>
844
           </tr>
845
+          <div v-if="org_id!=10346 && org_id!=0">
844
           <tr
846
           <tr
845
             v-for="(advice, advice_index) in advices"
847
             v-for="(advice, advice_index) in advices"
846
             :key="advice_index"
848
             :key="advice_index"
855
                   <td
857
                   <td
856
                     style="line-height: 30px"
858
                     style="line-height: 30px"
857
                     width="90"
859
                     width="90"
858
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
860
+                    v-if="org_id == 10346 || org_id == 9675"
859
                   >
861
                   >
860
                     <span v-if="setAdminUserES(advice.advice_doctor) == ''">
862
                     <span v-if="setAdminUserES(advice.advice_doctor) == ''">
861
                       {{ getAdminUser(advice.advice_doctor) }}
863
                       {{ getAdminUser(advice.advice_doctor) }}
894
                   <td
896
                   <td
895
                     style="line-height: 10px"
897
                     style="line-height: 10px"
896
                     width="70"
898
                     width="70"
897
-                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
899
+                    v-if="org_id == 10346 || org_id == 9675"
898
                   >
900
                   >
899
                     <span v-if="advice.execution_time">{{
901
                     <span v-if="advice.execution_time">{{
900
                       getTime(advice.execution_time, "{h}:{i}")
902
                       getTime(advice.execution_time, "{h}:{i}")
901
                     }}</span>
903
                     }}</span>
902
                   </td>
904
                   </td>
905
+                  <!-- <td
906
+                    style="line-height: 30px"
907
+                    width="90"
908
+                    v-if="org_id == 10249 || org_id == 0"
909
+                  >
910
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">
911
+                      {{ getAdminUser(advice.advice_doctor) }}
912
+                    </span>
913
+                    <img
914
+                      style="height: 30px"
915
+                      :src="setAdminUserES(advice.advice_doctor)"
916
+                      alt=""
917
+                      srcset=""
918
+                    />
919
+                  </td> -->
903
                   <td style="line-height: 10px" width="90">
920
                   <td style="line-height: 10px" width="90">
904
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
921
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
905
                       getAdminUser(advice.execution_staff)
922
                       getAdminUser(advice.execution_staff)
1008
               </table>
1025
               </table>
1009
             </td>
1026
             </td>
1010
           </tr>
1027
           </tr>
1028
+          </div>
1011
 
1029
 
1012
           <tr style="transform: translateY(1px)">
1030
           <tr style="transform: translateY(1px)">
1013
             <td>
1031
             <td>
1043
                       <span
1061
                       <span
1044
                         v-if="
1062
                         v-if="
1045
                           setAdminUserES(
1063
                           setAdminUserES(
1046
-                            prescription == null
1064
+                            advices == null
1047
                               ? 0
1065
                               ? 0
1048
-                              : prescription.prescription_doctor
1049
-                              ? prescription.prescription_doctor
1066
+                              : advices[0].advice_doctor
1067
+                              ? advices[0].advice_doctor
1050
                               : ''
1068
                               : ''
1051
                           ) == ''
1069
                           ) == ''
1052
                         "
1070
                         "
1053
                       >
1071
                       >
1054
                         {{
1072
                         {{
1055
                           getAdminUser(
1073
                           getAdminUser(
1056
-                            prescription == null
1074
+                            advices == null
1057
                               ? 0
1075
                               ? 0
1058
-                              : prescription.prescription_doctor
1059
-                              ? prescription.prescription_doctor
1076
+                              : advices[0].advice_doctor
1077
+                              ? advices[0].advice_doctor
1060
                               : ""
1078
                               : ""
1061
                           )
1079
                           )
1062
                         }}
1080
                         }}
1125
         </tbody>
1143
         </tbody>
1126
       </table>
1144
       </table>
1127
     </div>
1145
     </div>
1146
+
1147
+
1148
+    <div id="dialysis-print-box-1-2" class="dialysis-print-order print-template-two print_page_main_content" style="position: relative;" v-if="org_id == 10346">
1149
+     
1150
+      <div class="dialysis-print-order">
1151
+      <table class="print-table">
1152
+        <thead style="transform: translateY(2px)">
1153
+          <tr>
1154
+            <td>
1155
+              <div class="order-yy-name">{{ orgname }}</div>
1156
+              <div class="order-title">血液净化科医嘱及执行单</div>
1157
+            </td>
1158
+          </tr>
1159
+          <tr>
1160
+            <td>
1161
+              <table class="print-table" border="1">
1162
+                <tr>
1163
+                  <td width="80" colspan="11" style="text-align: center">
1164
+                    治 疗 日 期:&nbsp;<span>{{ queryParams.xtdate }}</span>
1165
+                  </td>
1166
+                </tr>
1167
+                <tr>
1168
+                  <td colspan="11" style="padding-left: 10px">
1169
+                    <div class="list_table">
1170
+                      <div>姓 名:&nbsp;{{ patientInfo.name }}</div>
1171
+                      <div>
1172
+                        性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
1173
+                      </div>
1174
+                      <div>年龄:{{ getoldAge() }}</div>
1175
+                      <div>透析机号:&nbsp;{{ getNumber() }}</div>
1176
+                    </div>
1177
+                  </td>
1178
+                </tr>
1179
+              </table>
1180
+            </td>
1181
+          </tr>
1182
+        </thead>
1183
+        <tbody>
1184
+        
1185
+       
1186
+          <tr style="transform: translateY(4px)">
1187
+            <td>
1188
+              <table class="print-table" border="1" style="text-align: center">
1189
+                <tr>
1190
+                  <td style="height: 20px" width="60">
1191
+                    <p style="height: 20px; line-height: 20px">时间</p>
1192
+                  </td>
1193
+                  <td
1194
+                    style="height: 20px"
1195
+                    width="90"
1196
+                   
1197
+                  >
1198
+                    <p style="height: 20px; line-height: 20px">开嘱医生</p>
1199
+                  </td>
1200
+                  <td style="height: 20px" width="344">
1201
+                    <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
1202
+                  </td>
1203
+                  <td
1204
+                    style="height: 20px"
1205
+                    width="70"
1206
+                  
1207
+                  >
1208
+                    <p style="height: 20px; line-height: 20px">执行时间</p>
1209
+                  </td>
1210
+             
1211
+                  <td style="height: 20px" width="90">
1212
+                    <p style="height: 20px; line-height: 20px">执行</p>
1213
+                  </td>
1214
+                  <td style="height: 20px" width="90">
1215
+                    <p style="height: 20px; line-height: 20px">核对</p>
1216
+                  </td>
1217
+                  <td style="height: 20px" width="144">
1218
+                    <p style="height: 20px; line-height: 20px">上次透后体重</p>
1219
+                  </td>
1220
+                  <td style="height: 20px" width="60">
1221
+                    {{
1222
+                      patientInfo.total_dialysis +
1223
+                        patientInfo.user_sys_before_count >
1224
+                      0
1225
+                        ? assessmentafter.weight_after
1226
+                        : "/"
1227
+                    }}kg
1228
+                  </td>
1229
+                </tr>
1230
+              </table>
1231
+            </td>
1232
+          </tr>
1233
+          <div>
1234
+          <tr
1235
+            v-for="(advice, advice_index) in advices"
1236
+            :key="advice_index"
1237
+            style="transform: translateY(3px)"
1238
+          >
1239
+            <td>
1240
+              <table class="print-table" border="1">
1241
+                <tr>
1242
+                  <td width="60">
1243
+                    {{ getTime(advice.start_time, "{h}:{i}") }}
1244
+                  </td>
1245
+                  <td
1246
+                    style="line-height: 30px"
1247
+                    width="90"
1248
+                  >
1249
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">
1250
+                      {{ getAdminUser(advice.advice_doctor) }}
1251
+                    </span>
1252
+                    <img
1253
+                      style="height: 30px"
1254
+                      :src="setAdminUserES(advice.advice_doctor)"
1255
+                      alt=""
1256
+                      srcset=""
1257
+                    />
1258
+                  </td>
1259
+                  <td style="text-align: left; padding-left: 5px" width="340">
1260
+                    <span v-if="advice.parent_id > 0">---></span>
1261
+                    <span>{{ advice.advice_name }}</span>
1262
+                    <span v-if="advice && advice.advice_desc"
1263
+                      >({{ advice.advice_desc
1264
+                      }}{{ advice.drug_spec_unit }})</span
1265
+                    >
1266
+                    <span v-if="advice.prescribing_number"
1267
+                      >&nbsp;&nbsp; {{ advice.prescribing_number
1268
+                      }}{{ advice.prescribing_number_unit }}</span
1269
+                    >
1270
+                    <span v-if="advice.single_dose != 0"
1271
+                      >{{ advice.single_dose
1272
+                      }}{{ advice.single_dose_unit }}</span
1273
+                    >
1274
+
1275
+                    <span v-if="advice.parent_id == 0">{{
1276
+                      advice.delivery_way
1277
+                    }}</span>
1278
+                    <span v-if="advice.parent_id == 0">{{
1279
+                      advice.execution_frequency
1280
+                    }}</span>
1281
+                    <span>{{ advice.remark }}</span>
1282
+                  </td>
1283
+                  <td
1284
+                    style="line-height: 10px"
1285
+                    width="70"
1286
+                  >
1287
+                    <span v-if="advice.execution_time">{{
1288
+                      getTime(advice.execution_time, "{h}:{i}")
1289
+                    }}</span>
1290
+                  </td>
1291
+              
1292
+                  <td style="line-height: 10px" width="90">
1293
+                    <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
1294
+                      getAdminUser(advice.execution_staff)
1295
+                    }}</span>
1296
+                    <img
1297
+                      style="height: 30px"
1298
+                      :src="setAdminUserES(advice.execution_staff)"
1299
+                      alt=""
1300
+                      srcset=""
1301
+                    />
1302
+                  </td>
1303
+                  <td style="line-height: 30px" width="90">
1304
+                    <span v-if="setAdminUserES(advice.checker) == ''">{{
1305
+                      getAdminUser(advice.checker)
1306
+                    }}</span>
1307
+                    <img
1308
+                      style="height: 30px"
1309
+                      :src="setAdminUserES(advice.checker)"
1310
+                      alt=""
1311
+                      srcset=""
1312
+                      v-else
1313
+                    />
1314
+                  </td>
1315
+
1316
+                  <td v-if="advice_index === 0" width="145">透前体重:</td>
1317
+                  <td v-if="advice_index === 0" width="60">
1318
+                    {{
1319
+                      patientInfo.total_dialysis +
1320
+                        patientInfo.user_sys_before_count >
1321
+                      0
1322
+                        ? predialysis.weight_before
1323
+                        : "/"
1324
+                    }}kg
1325
+                  </td>
1326
+                  <td v-if="advice_index === 1" width="145">体重增加量:</td>
1327
+                  <td v-if="advice_index === 1" width="60">
1328
+                    {{
1329
+                      assessmentafter.weight_after == 0 ||
1330
+                      predialysis.weight_before == 0
1331
+                        ? 0
1332
+                        : (
1333
+                            predialysis.weight_before -
1334
+                            assessmentafter.weight_after
1335
+                          ).toFixed(2)
1336
+                    }}kg
1337
+                  </td>
1338
+                  <td v-if="advice_index === 2" width="145">干体重(DW):</td>
1339
+                  <td v-if="advice_index === 2" width="60">
1340
+                    {{
1341
+                      patientInfo.total_dialysis +
1342
+                        patientInfo.user_sys_before_count >
1343
+                      0
1344
+                        ? predialysis.dry_weight
1345
+                        : "/"
1346
+                    }}kg
1347
+                  </td>
1348
+                  <td v-if="advice_index === 3" width="145">较干体重增加量:</td>
1349
+                  <td v-if="advice_index === 3" width="60">
1350
+                    {{
1351
+                      patientInfo.total_dialysis +
1352
+                        patientInfo.user_sys_before_count >
1353
+                        0 && afterdialysis.weight_after != 0
1354
+                        ? (
1355
+                            afterdialysis.weight_after - predialysis.dry_weight
1356
+                          ).toFixed(2)
1357
+                        : 0
1358
+                    }}kg
1359
+                  </td>
1360
+                  <td v-if="advice_index === 4" width="145">机器显示脱水量:</td>
1361
+                  <td v-if="advice_index === 4" width="60">
1362
+                    {{
1363
+                      patientInfo.total_dialysis +
1364
+                        patientInfo.user_sys_before_count >
1365
+                      0
1366
+                        ? afterdialysis.actual_ultrafiltration
1367
+                        : "/"
1368
+                    }}ml
1369
+                  </td>
1370
+                  <td v-if="advice_index === 5" width="145">透后体重:</td>
1371
+                  <td v-if="advice_index === 5" width="60">
1372
+                    {{
1373
+                      patientInfo.total_dialysis +
1374
+                        patientInfo.user_sys_before_count >
1375
+                      0
1376
+                        ? afterdialysis.weight_after
1377
+                        : "/"
1378
+                    }}kg
1379
+                  </td>
1380
+                  <td v-if="advice_index === 6" width="145">
1381
+                    本次透析体重下降量:
1382
+                  </td>
1383
+                  <td v-if="advice_index === 6" width="60">
1384
+                    {{
1385
+                      afterdialysis.weight_after == 0 ||
1386
+                      predialysis.weight_before == 0
1387
+                        ? 0
1388
+                        : (
1389
+                            predialysis.weight_before -
1390
+                            afterdialysis.weight_after
1391
+                          ).toFixed(2)
1392
+                    }}kg
1393
+                  </td>
1394
+                  <td v-if="advice_index > 6" width="145"></td>
1395
+                  <td v-if="advice_index > 6" width="60"></td>
1396
+                </tr>
1397
+              </table>
1398
+            </td>
1399
+          </tr>
1400
+          </div>
1401
+
1402
+         
1403
+        </tbody>
1404
+      </table>
1405
+    </div>
1406
+     
1407
+
1408
+   
1409
+  </div>
1128
   </div>
1410
   </div>
1129
 </template>
1411
 </template>
1130
 
1412
 

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


+ 236 - 15
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

19
             {{ orgname }}
19
             {{ orgname }}
20
           </div>
20
           </div>
21
           <div
21
           <div
22
+            v-if="org_id!=0 && org_id!=10449 && org_id!=3877 && org_id!=9671"
22
             class="order-title"
23
             class="order-title"
23
             style="
24
             style="
24
               letter-spacing: 0;
25
               letter-spacing: 0;
29
           >
30
           >
30
             血液净化治疗记录单
31
             血液净化治疗记录单
31
           </div>
32
           </div>
33
+
34
+          <div
35
+            v-if="org_id ==0 || org_id ==10449 || org_id ==3877 || org_id ==9671"
36
+            class="order-title"
37
+            style="
38
+              letter-spacing: 0;
39
+              font-weight: 600;
40
+              font-size: 22px;
41
+              display: inline-block;
42
+            "
43
+          >
44
+           <span v-if="prescription.mode_id!=13">血液净化治疗记录单</span>
45
+           <span v-if="prescription.mode_id==13">连续性肾脏替代治疗(CRRT)记录单</span>
46
+          </div>
32
         </div>
47
         </div>
33
         <div class="row">
48
         <div class="row">
34
           <div class="inline_block">
49
           <div class="inline_block">
892
                         class="under_line"
907
                         class="under_line"
893
                         style="width: 100px; text-align: center"
908
                         style="width: 100px; text-align: center"
894
                       >
909
                       >
895
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 ">{{
910
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 ">{{
896
                           lastafterdialysis.weight_after
911
                           lastafterdialysis.weight_after
897
                         }}</span>
912
                         }}</span>
898
-                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956">{{
913
+                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440">{{
899
                           predialysis.weight_after_last_transparency
914
                           predialysis.weight_after_last_transparency
900
                             ? predialysis.weight_after_last_transparency
915
                             ? predialysis.weight_after_last_transparency
901
                             : "未称重"
916
                             : "未称重"
944
                             : "/"
959
                             : "/"
945
                         }}
960
                         }}
946
                       </div>
961
                       </div>
947
-                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440">ml</span> 
948
-                      <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440">L</span>
962
+                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469">ml</span> 
963
+                      <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469">L</span>
949
                     </div>
964
                     </div>
950
                     <div class="inline_block" style="flex: 1">
965
                     <div class="inline_block" style="flex: 1">
951
                       干体重:
966
                       干体重:
1052
                         }}
1067
                         }}
1053
                       </div>
1068
                       </div>
1054
                      
1069
                      
1055
-                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1070
+                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1056
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1071
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1057
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1072
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1058
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1073
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1059
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1074
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1060
                     </span>
1075
                     </span>
1061
 
1076
 
1062
-                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id!=10440">
1077
+                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469">
1063
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1078
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1064
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1079
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1065
                       <span v-if="prescription.anticoagulant == 2">mg</span>
1080
                       <span v-if="prescription.anticoagulant == 2">mg</span>
1098
                             : "0"
1113
                             : "0"
1099
                         }}
1114
                         }}
1100
                       </div>
1115
                       </div>
1101
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1116
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1102
 
1117
 
1103
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1118
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1104
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
1119
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
1106
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1121
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1107
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1122
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1108
                       </span>
1123
                       </span>
1109
-                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440">
1124
+                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469">
1110
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1125
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1111
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1126
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1112
                           <span v-if="prescription.anticoagulant == 4">ml</span>
1127
                           <span v-if="prescription.anticoagulant == 4">ml</span>
1171
                             : "/"
1186
                             : "/"
1172
                         }}
1187
                         }}
1173
                       </div>
1188
                       </div>
1174
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440">
1189
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1175
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1190
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1176
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1191
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1177
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1192
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1178
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1193
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1179
                      </span>
1194
                      </span>
1180
-                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440">
1195
+                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469">
1181
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1196
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1182
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1197
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1183
                        <span v-if="prescription.anticoagulant == 4">ml</span>
1198
                        <span v-if="prescription.anticoagulant == 4">ml</span>
1207
                       </div>
1222
                       </div>
1208
                     </div>
1223
                     </div>
1209
                   </div>
1224
                   </div>
1225
+
1226
+
1227
+                  <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==0 || org_id == 3877 || org_id ==10449 || org_id == 9671">
1228
+                    <div
1229
+                      class="inline_block"
1230
+                      style="margin-left: 20px"
1231
+                      v-if="prescription.anticoagulant != 5"
1232
+                    >
1233
+                      置换速度:
1234
+                      <div
1235
+                        class="under_line"
1236
+                        style="width: 50px; text-align: center"
1237
+                      >
1238
+                        {{
1239
+                          prescription.displace_speed
1240
+                            ? prescription.displace_speed
1241
+                            : ""
1242
+                        }}
1243
+                      </div>
1244
+                      <span>ml/h</span>
1245
+                   
1246
+                  
1247
+                    </div>
1248
+                    <div
1249
+                      class="inline_block"
1250
+                      style="margin-left: 20px"
1251
+                      v-if="prescription.anticoagulant != 5"
1252
+                    >
1253
+                    透析液流速:
1254
+                      <div
1255
+                        class="under_line"
1256
+                        style="width: 50px; text-align: center"
1257
+                      >
1258
+                        {{
1259
+                          prescription.dialysis_fluid_flow
1260
+                            ? prescription.dialysis_fluid_flow
1261
+                            : ""
1262
+                        }}
1263
+                      </div>
1264
+                      <span>ml/h</span>
1265
+                   
1266
+                  
1267
+                    </div>
1268
+                    <div class="inline_block" style="margin-left: 20px">
1269
+                      碳酸氢钠流速:
1270
+                      <div
1271
+                        class="under_line"
1272
+                        style="width: 50px; text-align: center"
1273
+                      >
1274
+                        {{
1275
+                          prescription.sodium_bicarbonate_flow
1276
+                            ? prescription.sodium_bicarbonate_flow
1277
+                            : ""
1278
+                        }}
1279
+                      </div>
1280
+                     
1281
+                     
1282
+                    </div>
1283
+                    <span>ml/h</span>
1284
+                   
1285
+              
1286
+                  
1287
+                  </div>
1288
+
1289
+                   <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==10469 || org_id == 9671">
1290
+                    <div
1291
+                      class="inline_block"
1292
+                      style="margin-left: 20px"
1293
+                    >
1294
+                      透析机型号:
1295
+                      <div
1296
+                        class="under_line"
1297
+                        style="width: 50px; text-align: center"
1298
+                      >
1299
+                       {{predialysis.machine_type ? predialysis.machine_type : ""}}
1300
+                      </div>
1301
+                    
1302
+                    </div>
1303
+                    <div
1304
+                      class="inline_block"
1305
+                      style="margin-left: 20px"
1306
+                    >
1307
+                    跌倒风险评估评分:
1308
+                      <div
1309
+                        class="under_line"
1310
+                        style="width: 50px; text-align: center"
1311
+                      >
1312
+                        {{ receiverTreatmentAccess.score }}
1313
+                      </div>
1314
+                    </div>
1315
+                  </div>
1316
+
1317
+
1210
                   <div
1318
                   <div
1211
                     class="row"
1319
                     class="row"
1212
                     style="padding: 2px 0; line-height: 23px; display: flex"
1320
                     style="padding: 2px 0; line-height: 23px; display: flex"
1288
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1396
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1289
                         <td width="50" v-if="org_id != 10121">电导度<br />(ms/cm)</td>
1397
                         <td width="50" v-if="org_id != 10121">电导度<br />(ms/cm)</td>
1290
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1398
                         <td width="50" v-if="org_id == 10121">SpO₂<br />(%)</td>
1291
-                        <td width="50">超滤量<br />(ml)</td>
1399
+                        <td width="50" v-if="org_id != 3877 && org_id != 10449 && org_id != 0">超滤量<br />(ml)</td>
1400
+                        <td width="50" v-if="org_id ==3877 || org_id == 10449 || org_id ==0">累计超滤量<br />(ml)</td>
1292
                         <td
1401
                         <td
1293
                           v-if="
1402
                           v-if="
1294
                             prescription.mode_id == 2 ||
1403
                             prescription.mode_id == 2 ||
1299
                         >
1408
                         >
1300
                           置换量<br />(ml)
1409
                           置换量<br />(ml)
1301
                         </td>
1410
                         </td>
1411
+                        <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
1302
                         <td width="50" v-if="org_id == 9538">KT/V</td>
1412
                         <td width="50" v-if="org_id == 9538">KT/V</td>
1303
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1413
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1304
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1414
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1383
                       
1493
                       
1384
 
1494
 
1385
                         <td>
1495
                         <td>
1386
-                          {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}
1496
+                          <span v-if="org_id!=9671 && org_id!=10440"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
1497
+                          <span v-if="org_id==9671 || org_id==10440"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
1387
                         </td>
1498
                         </td>
1388
                         <!-- <td style="width:50px">
1499
                         <!-- <td style="width:50px">
1389
                           <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))">
1500
                           <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))">
1409
                             }}
1520
                             }}
1410
                           </span>
1521
                           </span>
1411
                         </td>
1522
                         </td>
1523
+                        <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1412
                         <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671">
1524
                         <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671">
1413
                           {{ monitor.ktv }}
1525
                           {{ monitor.ktv }}
1414
                         </td>
1526
                         </td>
1675
                 display: inline-block;
1787
                 display: inline-block;
1676
               "
1788
               "
1677
             >
1789
             >
1678
-              血液净化治疗记录单
1790
+             <span v-if="org_id!=3877 && org_id!=0 && org_id!=10449">血液净化治疗记录单</span>
1791
+             <span v-if="org_id == 3877 || org_id == 0 || org_id == 10449">
1792
+              <span v-if="prescription.mode_id!=13">血液净化治疗记录单</span>
1793
+              <span v-if="prescription.mode_id==13">连续性肾脏替代治疗(CRRT)记录单</span>
1794
+             </span>
1795
+            
1679
             </div>
1796
             </div>
1680
           </div>
1797
           </div>
1681
           <div class="row">
1798
           <div class="row">
2450
                     class="row"
2567
                     class="row"
2451
                     style="padding: 2px 0; line-height: 23px; display: flex"
2568
                     style="padding: 2px 0; line-height: 23px; display: flex"
2452
                   >
2569
                   >
2570
+                   <div v-if="org_id == 0 || org_id == 10440">
2571
+                    
2572
+                  
2573
+
2574
+                    <div class="inline_block" style="flex: 1">
2575
+                      上机护士:
2576
+                      <div
2577
+                        class="under_line"
2578
+                        style="width: 80px; text-align: center"
2579
+                      >
2580
+                        <span
2581
+                          style="height: 30px; display: inline-block"
2582
+                          v-if="
2583
+                            setAdminUserES(
2584
+                              dialysisOrder == null
2585
+                                ? 0
2586
+                                : dialysisOrder.start_nurse
2587
+                            ) == ''
2588
+                          "
2589
+                        >
2590
+                          {{
2591
+                            getAdminUser(
2592
+                              dialysisOrder == null
2593
+                                ? 0
2594
+                                : dialysisOrder.start_nurse
2595
+                            )
2596
+                          }}</span
2597
+                        >
2598
+                        <img
2599
+                          style="height: 30px"
2600
+                          :src="
2601
+                            setAdminUserES(
2602
+                              dialysisOrder == null
2603
+                                ? 0
2604
+                                : dialysisOrder.start_nurse
2605
+                            )
2606
+                          "
2607
+                          alt=""
2608
+                          srcset=""
2609
+                          v-else
2610
+                        />
2611
+                      </div>
2612
+                    </div>
2613
+                  
2614
+                  
2615
+                  </div>
2616
+                  <div v-if="org_id!=0 && org_id!=10440">
2453
                     <div class="inline_block" style="flex: 1">
2617
                     <div class="inline_block" style="flex: 1">
2454
                       穿刺护士:
2618
                       穿刺护士:
2455
                       <div
2619
                       <div
2489
                         />
2653
                         />
2490
                       </div>
2654
                       </div>
2491
                     </div>
2655
                     </div>
2656
+                  </div>
2657
+                   
2658
+                  <div v-if="org_id==0||org_id==10440">
2659
+                    
2660
+                    <div class="inline_block" style="flex: 1">                 
2661
+                     <div>
2662
+                      <span>责任护士:</span> 
2663
+                      <div
2664
+                        class="under_line"
2665
+                        style="width: 80px; text-align: center"
2666
+                       
2667
+                      >
2668
+                    
2669
+                        <span
2670
+                          style="height: 30px; display: inline-block"
2671
+                          v-if="
2672
+                            setAdminUserES(
2673
+                              dialysisOrder == null
2674
+                                ? 0
2675
+                                : dialysisOrder.start_nurse
2676
+                            ) == ''
2677
+                          "
2678
+                        >
2679
+                          {{
2680
+                            getAdminUser(
2681
+                              dialysisOrder == null
2682
+                                ? 0
2683
+                                : dialysisOrder.start_nurse
2684
+                            )
2685
+                          }}</span
2686
+                        >
2687
+                        <img
2688
+                          style="height: 30px"
2689
+                          :src="
2690
+                            setAdminUserES(
2691
+                              dialysisOrder == null
2692
+                                ? 0
2693
+                                : dialysisOrder.start_nurse
2694
+                            )
2695
+                          "
2696
+                          alt=""
2697
+                          srcset=""
2698
+                          v-else
2699
+                        />
2700
+                      </div>
2701
+                    </div>
2702
+
2703
+                    </div>
2704
+
2705
+                  </div>
2706
+
2707
+                  <div v-if="org_id!=0&&org_id!=10440">
2492
                     <div class="inline_block" style="flex: 1">
2708
                     <div class="inline_block" style="flex: 1">
2493
                       <span v-if="org_id==10414">责任护士:</span> 
2709
                       <span v-if="org_id==10414">责任护士:</span> 
2494
                       <span v-else>治疗护士:</span> 
2710
                       <span v-else>治疗护士:</span> 
2530
                         />
2746
                         />
2531
                       </div>
2747
                       </div>
2532
                     </div>
2748
                     </div>
2749
+                  </div>
2750
+                  
2751
+
2752
+
2533
                     <div class="inline_block" style="flex: 1">
2753
                     <div class="inline_block" style="flex: 1">
2534
                       <span v-if="org_id==10387" >核对护士:</span> 
2754
                       <span v-if="org_id==10387" >核对护士:</span> 
2535
                       <span v-else >核对人员:</span> 
2755
                       <span v-else >核对人员:</span> 
2642
                       </div>
2862
                       </div>
2643
                     </div>
2863
                     </div>
2644
                     <div class="inline_block" style="flex: 1">
2864
                     <div class="inline_block" style="flex: 1">
2645
-                      下机护士:
2865
+                       下机护士:
2646
                       <div
2866
                       <div
2647
                         class="under_line"
2867
                         class="under_line"
2648
                         style="width: 80px; text-align: center"
2868
                         style="width: 80px; text-align: center"
3479
         for (let index = 0; index < this.doctor_advices.length; index++) {
3699
         for (let index = 0; index < this.doctor_advices.length; index++) {
3480
           this.doctor_advices[index]["isShow"] = 2;
3700
           this.doctor_advices[index]["isShow"] = 2;
3481
         }
3701
         }
3482
-
3702
+       console.log("total--------------------------",this.doctor_advices)
3483
         // if (this.doctor_advices.length > 0) {
3703
         // if (this.doctor_advices.length > 0) {
3484
         //   var group = this.newAdviceGroupObject()
3704
         //   var group = this.newAdviceGroupObject()
3485
         //   var initGroupBlock = function(group, advice) {
3705
         //   var initGroupBlock = function(group, advice) {
3575
         }
3795
         }
3576
 
3796
 
3577
         this.totollength = this.doctor_advices.length + this.monitors.length;
3797
         this.totollength = this.doctor_advices.length + this.monitors.length;
3798
+        console.log("this.totollength",this.totollength)
3578
         if (this.totollength > 18) {
3799
         if (this.totollength > 18) {
3579
           var temp_advice_length = 17 - this.monitors.length;
3800
           var temp_advice_length = 17 - this.monitors.length;
3580
           var doctor_advices_1 = [];
3801
           var doctor_advices_1 = [];

+ 84 - 49
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue View File

201
             </td>
201
             </td>
202
           </tr>
202
           </tr>
203
           <tr>
203
           <tr>
204
-            <td style="text-align: left" colspan="1">
205
-              <span style="display: inline-block; margin-left: 15px">
206
-                透前体重:{{
207
-                  predialysis.weight_before ? predialysis.weight_before : "/"
208
-                }}kg
209
-              </span>
210
-            </td>
204
+            <!-- <td style="text-align: left" colspan="1">
205
+             
206
+            </td> -->
211
             <td style="text-align: left" colspan="1">
207
             <td style="text-align: left" colspan="1">
212
               <span style="display: inline-block; margin-left: 15px">
208
               <span style="display: inline-block; margin-left: 15px">
213
                 设定脱水量:{{
209
                 设定脱水量:{{
225
                 ></label-box>
221
                 ></label-box>
226
               </span>
222
               </span>
227
             </td>
223
             </td>
228
-            <td style="text-align: left" colspan="2">
224
+            <td style="text-align: left" colspan="3">
229
               <span style="display: inline-block; margin-left: 15px">
225
               <span style="display: inline-block; margin-left: 15px">
230
                 <span v-if="prescription.anticoagulant == 2">普通肝素首剂:</span>
226
                 <span v-if="prescription.anticoagulant == 2">普通肝素首剂:</span>
231
                 <span v-if="prescription.anticoagulant == 3"
227
                 <span v-if="prescription.anticoagulant == 3"
294
               <span v-if="prescription.anticoagulant == 2">mg/h</span>
290
               <span v-if="prescription.anticoagulant == 2">mg/h</span>
295
               <span v-if="prescription.anticoagulant == 1">mg/h</span>
291
               <span v-if="prescription.anticoagulant == 1">mg/h</span>
296
             </td>
292
             </td>
297
-            <td style="text-align: left" colspan="2">
293
+            <td style="text-align: left" colspan="1">
298
               <span style="display: inline-block; ">
294
               <span style="display: inline-block; ">
299
                 总量:
295
                 总量:
300
                 {{
296
                 {{
315
               <span v-if="prescription.anticoagulant == 1">mg</span>
311
               <span v-if="prescription.anticoagulant == 1">mg</span>
316
             </td>
312
             </td>
317
           </tr>
313
           </tr>
314
+          <tr>
315
+            <td style="text-align: left" colspan="1">
316
+               <span style="display: inline-block; margin-left: 15px">
317
+                透前体重:{{
318
+                  predialysis.weight_before ? predialysis.weight_before : "/"
319
+                }}kg
320
+              </span>
321
+            </td>
322
+            <td style="text-align: left" colspan="1">
323
+              <span style="display: inline-block; margin-left: 15px">
324
+                透析器型号:
325
+                <span v-if="prescription.dialysis_dialyszers!=''">{{
326
+                  prescription.dialysis_dialyszers
327
+                    ? prescription.dialysis_dialyszers
328
+                    : "/"
329
+                }}
330
+                </span>
331
+              </span>
332
+            </td> 
333
+            <td style="text-align: left" colspan="2">
334
+              <span style="display: inline-block; margin-left: 15px">
335
+                灌流器型号:
336
+                <span v-if="prescription.dialysis_irrigation!=''">
337
+                 &nbsp;&nbsp;{{
338
+                  prescription.dialysis_irrigation
339
+                    ? prescription.dialysis_irrigation
340
+                    : "/"
341
+                }}
342
+               </span>
343
+              </span>
344
+            </td> 
345
+
346
+            <td style="text-align: left" colspan="2">
347
+              <span style="display: inline-block; margin-left: 15px">
348
+                滤过器型号:
349
+                <span v-if="prescription.dialysis_strainer!=''">
350
+                &nbsp;&nbsp;{{
351
+                    prescription.dialysis_strainer
352
+                      ? prescription.dialysis_strainer
353
+                      : "/"
354
+                  }}
355
+               </span>
356
+              </span>
357
+            </td> 
358
+           
359
+          </tr>
318
           <tr>
360
           <tr>
319
             <td style="text-align: left" colspan="1">
361
             <td style="text-align: left" colspan="1">
320
               <span style="display: inline-block; margin-left: 15px">
362
               <span style="display: inline-block; margin-left: 15px">
352
                 }}分钟
394
                 }}分钟
353
               </span>
395
               </span>
354
             </td>
396
             </td>
355
-            <td style="text-align: left" colspan="1">
356
-              <span style="display: inline-block; margin-left: 15px">
357
-                透析/灌流器型号:{{
358
-                  prescription.dialysis_dialyszers
359
-                    ? prescription.dialysis_dialyszers
360
-                    : "/"
361
-                }}&nbsp;&nbsp;{{
362
-                  prescription.dialysis_irrigation
363
-                    ? prescription.dialysis_irrigation
364
-                    : "/"
365
-                }}
366
-              </span>
367
-            </td>
368
-            <td style="text-align: left" colspan="2">
397
+         
398
+            <td style="text-align: left" colspan="3">
369
               <span style="display: inline-block; margin-left: 15px">
399
               <span style="display: inline-block; margin-left: 15px">
370
                 置换方式:
400
                 置换方式:
371
                 <label-box
401
                 <label-box
372
                   :isChecked="
402
                   :isChecked="
373
-                    prescription.displace_liqui_part == 1 ? true : false
403
+                    prescription.displace_liqui_part == 1 && prescription.mode_id != 2 && prescription.mode_id != 5 && prescription.mode_id != 12? true : false
374
                   "
404
                   "
375
                   showValue="前"
405
                   showValue="前"
376
                 ></label-box
406
                 ></label-box
377
                 >&nbsp;
407
                 >&nbsp;
378
                 <label-box
408
                 <label-box
379
                   :isChecked="
409
                   :isChecked="
380
-                    prescription.displace_liqui_part == 2 ? true : false
410
+                    prescription.displace_liqui_part == 2 && prescription.mode_id != 2 && prescription.mode_id != 5 && prescription.mode_id != 12? true : false
381
                   "
411
                   "
382
                   showValue="后"
412
                   showValue="后"
383
                 ></label-box>
413
                 ></label-box>
384
-                &nbsp; (总量:{{
414
+                &nbsp; (总量:
415
+                <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{
385
                   prescription.displace_liqui_value
416
                   prescription.displace_liqui_value
386
                     ? prescription.displace_liqui_value
417
                     ? prescription.displace_liqui_value
387
                     : "/"
418
                     : "/"
388
                 }}L)
419
                 }}L)
420
+                </span>
389
               </span>
421
               </span>
390
             </td>
422
             </td>
391
           </tr>
423
           </tr>
392
           <tr>
424
           <tr>
393
-            <!-- <td style="text-align: left" colspan="1">
425
+            <td style="text-align: left" colspan="1">
394
               <span style="display: inline-block; margin-left: 15px">
426
               <span style="display: inline-block; margin-left: 15px">
395
                 责任护士:
427
                 责任护士:
396
                 <span
428
                 <span
401
                   <img style="height:30px;" :src="setAdminUserES(dialysisOrder.quality_nurse_id)" alt srcset />
433
                   <img style="height:30px;" :src="setAdminUserES(dialysisOrder.quality_nurse_id)" alt srcset />
402
                 </span>
434
                 </span>
403
               </span>
435
               </span>
404
-            </td> -->
436
+            </td>
405
             <td style="text-align: left" colspan="1">
437
             <td style="text-align: left" colspan="1">
406
               <span style="display: inline-block; margin-left: 15px">
438
               <span style="display: inline-block; margin-left: 15px">
407
                 <span
439
                 <span
431
                 </span>
463
                 </span>
432
               </span>
464
               </span>
433
 
465
 
434
-              <span style="display: inline-block; margin-left: 15px">
435
-                核对护士:<span
436
-                  style="height: 30px; display: inline-block"
437
-                  v-if="setAdminUserES(check == null ? 0 : check.creater) == ''"
438
-                >
439
-                  {{ getAdminUser(check == null ? 0 : check.creater) }}
440
-                </span>
441
-                <img
442
-                  style="height: 30px"
443
-                  :src="setAdminUserES(check == null ? 0 : check.creater)"
444
-                  alt=""
445
-                  srcset=""
446
-                  v-else
447
-                />
448
-              </span>
466
+             
449
             </td>
467
             </td>
468
+            <td style="text-align: left" colspan="1">
469
+                <span style="display: inline-block; margin-left: 15px">
470
+                  核对护士:<span
471
+                    style="height: 30px; display: inline-block"
472
+                    v-if="setAdminUserES(check == null ? 0 : check.creater) == ''"
473
+                  >
474
+                    {{ getAdminUser(check == null ? 0 : check.creater) }}
475
+                  </span>
476
+                  <img
477
+                    style="height: 30px"
478
+                    :src="setAdminUserES(check == null ? 0 : check.creater)"
479
+                    alt=""
480
+                    srcset=""
481
+                    v-else
482
+                  />
483
+                </span>
484
+              </td>
450
             <td style="text-align: left" colspan="3">
485
             <td style="text-align: left" colspan="3">
451
               <span style="display: inline-block; margin-left: 15px">
486
               <span style="display: inline-block; margin-left: 15px">
452
                 <span
487
                 <span
957
               超滤率
992
               超滤率
958
               <br />ml/h
993
               <br />ml/h
959
             </td>
994
             </td>
960
-            <td style="min-width: 60px">
995
+            <!-- <td style="min-width: 60px">
961
               超滤量
996
               超滤量
962
               <br />ml
997
               <br />ml
963
-            </td>
998
+            </td> -->
964
             <td style="min-width: 60px">
999
             <td style="min-width: 60px">
965
               电导度
1000
               电导度
966
               <br />
1001
               <br />
993
             </td>
1028
             </td>
994
             <td>{{ monitor.transmembrane_pressure }}</td>
1029
             <td>{{ monitor.transmembrane_pressure }}</td>
995
             <td>{{ monitor.ultrafiltration_rate }}</td>
1030
             <td>{{ monitor.ultrafiltration_rate }}</td>
996
-            <td>{{ monitor.ultrafiltration_volume }}</td>
1031
+            <!-- <td>{{ monitor.ultrafiltration_volume }}</td> -->
997
             <td>{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
1032
             <td>{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
998
             <td>
1033
             <td>
999
               <span style="line-height: 18px; display: block">
1034
               <span style="line-height: 18px; display: block">
1241
                 &nbsp;&nbsp; {{ advice.prescribing_number
1276
                 &nbsp;&nbsp; {{ advice.prescribing_number
1242
                 }}{{ advice.prescribing_number_unit }}
1277
                 }}{{ advice.prescribing_number_unit }}
1243
               </span>
1278
               </span>
1244
-              <span v-if="advice.single_dose != 0"
1245
-                >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span
1246
-              >
1279
+              <span v-if="advice.single_dose != 0"> 
1280
+               <span v-if="advice.single_dose >0">单次用量 </span>  
1281
+                {{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
1247
               <span v-if="advice.parent_id == 0">{{
1282
               <span v-if="advice.parent_id == 0">{{
1248
                 advice.delivery_way
1283
                 advice.delivery_way
1249
               }}</span>
1284
               }}</span>

+ 35 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

1856
       }
1856
       }
1857
       return "";
1857
       return "";
1858
     },
1858
     },
1859
+    // getAge: function(val) {
1860
+    //   if (
1861
+    //     this.org_template_info.template_id == 2 ||
1862
+    //     this.org_template_info.template_id == 0
1863
+    //   ) {
1864
+    //     if (val.age == 0) {
1865
+    //       return jsGetAge(val.birth, "-");
1866
+    //     } else {
1867
+    //       return val.age;
1868
+    //     }
1869
+    //   } else {
1870
+    //     return jsGetAge(val.birth, "-");
1871
+    //   }
1872
+    // },
1859
     getAge: function(val) {
1873
     getAge: function(val) {
1860
-      if (
1861
-        this.org_template_info.template_id == 2 ||
1862
-        this.org_template_info.template_id == 0
1863
-      ) {
1864
-        if (val.age == 0) {
1865
-          return jsGetAge(val.birth, "-");
1866
-        } else {
1867
-          return val.age;
1868
-        }
1869
-      } else {
1870
-        return jsGetAge(val.birth, "-");
1871
-      }
1872
-    },
1874
+     
1875
+     if (val.id_card_no) {
1876
+       var thisLen = val.id_card_no.length
1877
+
1878
+       var birth = ''
1879
+       if (thisLen == 15) {
1880
+         birth = '19' + val.id_card_no.substr(6, 6)
1881
+       } else {
1882
+         birth = val.id_card_no.substr(6, 8)
1883
+       }
1884
+       var birthtwo =
1885
+         birth.substr(0, 4) +
1886
+         '-' +
1887
+         birth.substr(4, 2) +
1888
+         '-' +
1889
+         birth.substr(6, 2)
1890
+
1891
+       var age = jsGetAge(birthtwo, '-')
1892
+       return age
1893
+     }
1894
+   },
1873
     newAdviceGroupObject: function() {
1895
     newAdviceGroupObject: function() {
1874
       return Object.assign(
1896
       return Object.assign(
1875
         {},
1897
         {},

+ 7 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue View File

536
                     <tr>
536
                     <tr>
537
                       <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
537
                       <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
538
                       <td width="220" style="text-align:left;border:none;">
538
                       <td width="220" style="text-align:left;border:none;">
539
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器0') > -1 ? true : false) :false" showValue="0"></label-box>
539
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor == '透析器0' ? true : false) :false" showValue="0"></label-box>
540
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor == '透析器+' ? true : false) :false" showValue="+"></label-box>
541
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor == '透析器++' ? true : false) :false" showValue="+ +"></label-box>
542
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor == '透析器+++' ? true : false) :false" showValue="+ + +"></label-box>
543
+                        <!-- <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器0') > -1 ? true : false) :false" showValue="0"></label-box>
540
                         <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+') > -1 ? true : false) :false" showValue="+"></label-box>
544
                         <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+') > -1 ? true : false) :false" showValue="+"></label-box>
541
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器++') > -1 ? true : false) :false" showValue="+ +"></label-box>
542
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+++') > -1 ? true : false) :false" showValue="+ + +"></label-box>
545
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器++')> -1 ? true : false) :false" showValue="+ +"></label-box>
546
+                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+++')> -1 ? true : false) :false" showValue="+ + +"></label-box> -->
543
                       </td>
547
                       </td>
544
                       <td width="90" style="border:none;padding-left:5px">静脉管道:</td>
548
                       <td width="90" style="border:none;padding-left:5px">静脉管道:</td>
545
                       <td width="220" style="text-align:left;border:none;">
549
                       <td width="220" style="text-align:left;border:none;">

+ 25 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue View File

1806
         }
1806
         }
1807
         return ''
1807
         return ''
1808
       },
1808
       },
1809
+      // getAge: function(val) {
1810
+      //   if (val.birthday != 0) {
1811
+      //     return jsGetAge(val.birth, '-')
1812
+      //   }
1813
+      //   return ''
1814
+      // },
1809
       getAge: function(val) {
1815
       getAge: function(val) {
1810
-        if (val.birthday != 0) {
1811
-          return jsGetAge(val.birth, '-')
1816
+     
1817
+      if (val.id_card_no) {
1818
+        var thisLen = val.id_card_no.length
1819
+
1820
+        var birth = ''
1821
+        if (thisLen == 15) {
1822
+          birth = '19' + val.id_card_no.substr(6, 6)
1823
+        } else {
1824
+          birth = val.id_card_no.substr(6, 8)
1812
         }
1825
         }
1813
-        return ''
1826
+        var birthtwo =
1827
+          birth.substr(0, 4) +
1828
+          '-' +
1829
+          birth.substr(4, 2) +
1830
+          '-' +
1831
+          birth.substr(6, 2)
1832
+
1833
+        var age = jsGetAge(birthtwo, '-')
1834
+        return age
1835
+       }
1814
       },
1836
       },
1815
       newAdviceGroupObject: function() {
1837
       newAdviceGroupObject: function() {
1816
         return Object.assign(
1838
         return Object.assign(

BIN
src/xt_pages/favicon.ico View File


+ 142 - 1
src/xt_pages/hospitalStation/summary.vue View File

215
             >
215
             >
216
               上传结算清单
216
               上传结算清单
217
             </el-button>
217
             </el-button>
218
+            <el-button
219
+              size="mini"
220
+              type="primary"
221
+              @click="confirmUploadInfo(scope.row)"
222
+              v-if="$store.getters.xt_user.org_id == 10265"
223
+            >
224
+              确认结算清单
225
+            </el-button>
226
+            <el-button
227
+              size="mini"
228
+              type="primary"
229
+              @click="cancelUploadTwo(scope.row)"
230
+              v-if="$store.getters.xt_user.org_id == 10265"
231
+            >
232
+              取消结算清单
233
+            </el-button>
234
+
235
+            <el-button
236
+              size="mini"
237
+              type="primary"
238
+              @click="queryData(scope.row)"
239
+              v-if="$store.getters.xt_user.org_id == 10265"
240
+            >
241
+              查询结算清单
242
+            </el-button>
243
+
218
             <el-button
244
             <el-button
219
               size="mini"
245
               size="mini"
220
               type="primary"
246
               type="primary"
452
   },
478
   },
453
 
479
 
454
   methods: {
480
   methods: {
481
+    confirmUploadInfo(row){
482
+      var that = this;
483
+      axios
484
+        .get("http://127.0.0.1:9532/api/4102", {
485
+          params: {
486
+            order_id: row.id,
487
+            admin_user_id: this.$store.getters.xt_user.user.id,
488
+            stas_type: 1
489
+          },
490
+        })
491
+        .then(function (response) {
492
+          if (response.data.state == 0) {
493
+            that.$message.error(response.data.msg);
494
+            return false;
495
+          } else {
496
+            if (response.data.data.failed_code == -10) {
497
+              that
498
+                .$confirm(response.data.data.msg, "医保错误信息", {
499
+                  confirmButtonText: "确 定",
500
+                  type: "warning",
501
+                })
502
+                .then(() => {
503
+                })
504
+                .catch(() => {
505
+                });
506
+            } else {
507
+              that.$message.success("确认成功");
508
+              row.result.id = response.data.data.result.id;
509
+            }
510
+          }
511
+        })
512
+        .catch(function (error) {
513
+        });
514
+
515
+
516
+    },
517
+    cancelUploadTwo(row){
518
+      if(this.$store.getters.xt_user.org_id == 10265){
519
+        var that = this;
520
+        axios
521
+          .get("http://127.0.0.1:9532/api/4102", {
522
+            params: {
523
+              order_id: row.id,
524
+              admin_user_id: this.$store.getters.xt_user.user.id,
525
+              stas_type: 0
526
+            },
527
+          })
528
+          .then(function (response) {
529
+            if (response.data.state == 0) {
530
+              that.$message.error(response.data.msg);
531
+              return false;
532
+            } else {
533
+              if (response.data.data.failed_code == -10) {
534
+                // that.$message.error(response.data.data.msg)
535
+                that
536
+                  .$confirm(response.data.data.msg, "医保错误信息", {
537
+                    confirmButtonText: "确 定",
538
+                    type: "warning",
539
+                  })
540
+                  .then(() => {
541
+                  })
542
+                  .catch(() => {
543
+                  });
544
+              } else {
545
+                that.$message.success("撤销成功");
546
+                row.result.id = 0;
547
+              }
548
+            }
549
+          })
550
+          .catch(function (error) {
551
+          });
552
+      }
553
+    },
554
+    queryData(row){
555
+      var that = this;
556
+      axios
557
+        .get("http://127.0.0.1:9532/api/4103", {
558
+          params: {
559
+            order_id: row.id,
560
+            admin_user_id: this.$store.getters.xt_user.user.id,
561
+          },
562
+        })
563
+        .then(function (response) {
564
+          if (response.data.state == 0) {
565
+            that.$message.error(response.data.msg);
566
+            return false;
567
+          } else {
568
+            if (response.data.data.failed_code == -10) {
569
+              that
570
+                .$confirm(response.data.data.msg, "医保错误信息", {
571
+                  confirmButtonText: "确 定",
572
+                  type: "warning",
573
+                })
574
+                .then(() => {
575
+                })
576
+                .catch(() => {
577
+                });
578
+            } else {
579
+              that
580
+                .$confirm(response.data.data.msg, "医保信息", {
581
+                  confirmButtonText: "确 定",
582
+                })
583
+                .then(() => {
584
+                })
585
+                .catch(() => {
586
+                });
587
+            }
588
+          }
589
+        })
590
+        .catch(function (error) {
591
+        });
592
+
593
+
594
+    },
595
+
455
     setStorage() {
596
     setStorage() {
456
       this.$store.commit("SET_PAGEDATA", {
597
       this.$store.commit("SET_PAGEDATA", {
457
         page: this.page,
598
         page: this.page,
1123
         setl_time: obj.setl_time,
1264
         setl_time: obj.setl_time,
1124
       };
1265
       };
1125
       this.invoiceParams = paramsObj;
1266
       this.invoiceParams = paramsObj;
1126
-      
1267
+
1127
       const loading = this.$loading({
1268
       const loading = this.$loading({
1128
           lock: true,
1269
           lock: true,
1129
           text: '正在加载中...',
1270
           text: '正在加载中...',

+ 38 - 0
src/xt_pages/index.html View File

1
+<!DOCTYPE html>
2
+<html>
3
+  <head>
4
+    <meta charset="utf-8" />
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
+    <meta name="renderer" content="webkit" />
7
+    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
8
+    <meta
9
+      name="viewport"
10
+      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
11
+    />
12
+    <title>酷医云-透析管理平台</title>
13
+    <!-- <link
14
+      rel="stylesheet"
15
+      href="//at.alicdn.com/t/font_1480998_l66fq6mc0y.css"
16
+    /> -->
17
+
18
+  </head>
19
+
20
+  <body>
21
+    <script src="https://images.shengws.com/reconnecting-websocket.min.js"></script>
22
+    <script src="https://images.shengws.com/jquery.min.js"></script>
23
+    <script src="<%= htmlWebpackPlugin.options.path %>/tinymce4.7.5/tinymce.min.js"></script>
24
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.config.js"></script>
25
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.all.min.js"></script>
26
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.service.js"></script>
27
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/i18n/zh-cn/zh-cn.js"></script>
28
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.parse.min.js"></script>
29
+
30
+    <div id="app"></div>
31
+    <!-- built files will be auto injected -->
32
+    <link
33
+      rel="stylesheet"
34
+      href="//at.alicdn.com/t/font_795029_9ftx46rzd47.css"
35
+    />
36
+
37
+  </body>
38
+</html>

+ 4 - 2
src/xt_pages/management/components/QualityForm.vue View File

2907
             }
2907
             }
2908
           }
2908
           }
2909
           this.tableFour = devicePh
2909
           this.tableFour = devicePh
2910
-          console.log("deviceph",devicePh)
2910
+        
2911
          
2911
          
2912
 
2912
 
2913
         }
2913
         }
2966
       }
2966
       }
2967
     },
2967
     },
2968
     changeTable(val) {
2968
     changeTable(val) {
2969
+      
2969
       if (val === 1) {
2970
       if (val === 1) {
2970
         this.showOne = false;
2971
         this.showOne = false;
2971
         this.showTwo = false;
2972
         this.showTwo = false;
3649
               dialyste[index].sampling_locationb = "反渗水末端取样口";
3650
               dialyste[index].sampling_locationb = "反渗水末端取样口";
3650
             }
3651
             }
3651
           }
3652
           }
3653
+
3652
           this.table = dialyste;
3654
           this.table = dialyste;
3653
 
3655
 
3654
           var ions = response.data.data.ions;
3656
           var ions = response.data.data.ions;
3655
-          console.log("ions",ions)
3657
+         
3656
           this.tableDatas = ions;
3658
           this.tableDatas = ions;
3657
           var oxygenates =  response.data.data.oxygenates
3659
           var oxygenates =  response.data.data.oxygenates
3658
           for (let index = 0; index < oxygenates.length; index++) {
3660
           for (let index = 0; index < oxygenates.length; index++) {

+ 115 - 113
src/xt_pages/management/home.vue View File

1772
 
1772
 
1773
 
1773
 
1774
 
1774
 
1775
+                           
1776
+                            <el-divider></el-divider>
1777
+                         </div>     
1778
+                             
1779
+                        
1775
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1780
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1776
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1781
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1777
                               <el-row>
1782
                               <el-row>
1895
                               </el-row>
1900
                               </el-row>
1896
                             </el-form>
1901
                             </el-form>
1897
                             <el-divider></el-divider>
1902
                             <el-divider></el-divider>
1898
-                         </div>     
1899
-                             
1900
-
1901
-                             
1902
 
1903
 
1903
 
1904
 
1904
 
1905
 
2031
 
2032
 
2032
 
2033
 
2033
                                <span style="margin-bottom: 20px;display: block;">水游离氯检测</span>
2034
                                <span style="margin-bottom: 20px;display: block;">水游离氯检测</span>
2034
-                            <el-form ref="qualityFormSix" :model="qualityFormSix" :rules="diaRules">
2035
-                              <el-row>
2035
+                              <el-form ref="qualityFormSix" :model="qualityFormSix" :rules="diaRules">
2036
+                                <el-row>
2037
+                                    <el-col :span="8">
2038
+                                      <el-form-item label="取样日期:">
2039
+                                          <el-date-picker
2040
+                                            v-model="qualityFormSix.sampling_date"
2041
+                                            prefix-icon="none"
2042
+                                            type="date"
2043
+                                            placeholder="请选择"
2044
+                                            format="yyyy-MM-dd"
2045
+                                            value-format="yyyy-MM-dd"
2046
+                                            style="width:150px">
2047
+                                          </el-date-picker>
2048
+                                      </el-form-item>
2049
+                                    </el-col>
2050
+                                    <el-col :span="8">
2051
+                                        <el-form-item label="取样标本:">
2052
+                                            <el-select style="width:150px"  v-model="qualityFormSix.specimenb" @change="changeSpecimen">
2053
+                                              <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
2054
+                                            </el-select>
2055
+                                        </el-form-item>
2056
+                                    </el-col>
2057
+                                    <el-col :span="8">
2058
+                                      <el-form-item label="A浓缩液批号:">
2059
+                                        <el-input style="width:150px" v-model="qualityFormSix.concentrate_noc" :disabled="disable"></el-input>
2060
+                                      </el-form-item>
2061
+                                    </el-col>
2062
+
2063
+                                </el-row>
2064
+                                <el-row>
2036
                                   <el-col :span="8">
2065
                                   <el-col :span="8">
2037
-                                     <el-form-item label="取样日期:">
2038
-                                        <el-date-picker
2039
-                                          v-model="qualityFormSix.sampling_date"
2040
-                                          prefix-icon="none"
2041
-                                          type="date"
2042
-                                          placeholder="请选择"
2043
-                                          format="yyyy-MM-dd"
2044
-                                          value-format="yyyy-MM-dd"
2045
-                                          style="width:150px">
2046
-                                        </el-date-picker>
2047
-                                     </el-form-item>
2066
+                                        <el-form-item label="B浓缩液批号:">
2067
+                                            <el-input style="width:150px" v-model ="qualityFormSix.concentrateb_nod" :disabled="diableTwo"></el-input>
2068
+                                        </el-form-item>
2069
+                                    </el-col>
2070
+                                    <el-col :span="8">
2071
+                                    <el-form-item label="采样部位:">
2072
+                                      <el-select style="width:150px"  v-model="qualityFormSix.sampling_locationb">
2073
+                                        <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
2074
+                                      </el-select>
2075
+                                    </el-form-item>
2048
                                   </el-col>
2076
                                   </el-col>
2049
                                   <el-col :span="8">
2077
                                   <el-col :span="8">
2050
-                                       <el-form-item label="取样标本:">
2051
-                                          <el-select style="width:150px"  v-model="qualityFormSix.specimenb" @change="changeSpecimen">
2052
-                                             <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
2053
-                                          </el-select>
2054
-                                       </el-form-item>
2078
+                                    <el-form-item label="检测单位:" required prop="detection_unit">
2079
+                                        <el-input style="width:150px" v-model ="qualityFormSix.detection_unit"></el-input>
2080
+                                    </el-form-item>
2055
                                   </el-col>
2081
                                   </el-col>
2082
+                                </el-row>
2083
+                                <el-row>
2056
                                   <el-col :span="8">
2084
                                   <el-col :span="8">
2057
-                                     <el-form-item label="A浓缩液批号:">
2058
-                                       <el-input style="width:150px" v-model="qualityFormSix.concentrate_noc" :disabled="disable"></el-input>
2059
-                                     </el-form-item>
2060
-                                  </el-col>
2061
-
2062
-                              </el-row>
2063
-                              <el-row>
2064
-                                 <el-col :span="8">
2065
-                                      <el-form-item label="B浓缩液批号:">
2066
-                                          <el-input style="width:150px" v-model ="qualityFormSix.concentrateb_nod" :disabled="diableTwo"></el-input>
2067
-                                      </el-form-item>
2085
+                                    <el-form-item label="取样者:" required prop="samplerb">
2086
+                                        <el-select style="width:150px"  v-model="qualityFormSix.samplerb">
2087
+                                          <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
2088
+                                        </el-select>
2089
+                                    </el-form-item>
2068
                                   </el-col>
2090
                                   </el-col>
2069
-                                   <el-col :span="8">
2070
-                                  <el-form-item label="采样部位:">
2071
-                                    <el-select style="width:150px"  v-model="qualityFormSix.sampling_locationb">
2072
-                                       <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
2073
-                                    </el-select>
2074
-                                   </el-form-item>
2075
-                                </el-col>
2076
-                                <el-col :span="8">
2077
-                                   <el-form-item label="检测单位:" required prop="detection_unit">
2078
-                                      <el-input style="width:150px" v-model ="qualityFormSix.detection_unit"></el-input>
2079
-                                   </el-form-item>
2080
-                                </el-col>
2081
-                              </el-row>
2082
-                              <el-row>
2083
-                                <el-col :span="8">
2084
-                                   <el-form-item label="取样者:" required prop="samplerb">
2085
-                                      <el-select style="width:150px"  v-model="qualityFormSix.samplerb">
2086
-                                        <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
2087
-                                      </el-select>
2088
-                                   </el-form-item>
2089
-                                </el-col>
2090
-                                <el-col :span="8">
2091
-                                  <el-form-item label="出报告日期:" required prop="reporting_dateb">
2092
-                                     <el-date-picker
2093
-                                       v-model="qualityFormSix.reporting_dateb"
2094
-                                       prefix-icon="none"
2095
-                                       type="date"
2096
-                                       placeholder="请选择"
2097
-                                       format="yyyy-MM-dd"
2098
-                                       value-format="yyyy-MM-dd"
2099
-                                       style="width:150px">
2100
-                                    </el-date-picker>
2101
-                                  </el-form-item>
2102
-                                </el-col>
2103
-                               
2104
-                                <el-col :span="8">
2105
-                                  <el-form-item label="顺序号:" required prop="sort">
2106
-                                     <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
2107
-                                  </el-form-item>
2108
-                                </el-col>
2109
-                              </el-row>
2110
-                              <el-row>
2111
                                   <el-col :span="8">
2091
                                   <el-col :span="8">
2112
-                                      <el-form-item label="检测合格:" required prop="pass_examination">
2113
-                                        <el-radio v-model="qualityFormSix.pass_examination" label="1">是</el-radio>
2114
-                                        <el-radio v-model="qualityFormSix.pass_examination" label="2">否</el-radio>
2115
-                                      </el-form-item>
2092
+                                    <el-form-item label="出报告日期:" required prop="reporting_dateb">
2093
+                                      <el-date-picker
2094
+                                        v-model="qualityFormSix.reporting_dateb"
2095
+                                        prefix-icon="none"
2096
+                                        type="date"
2097
+                                        placeholder="请选择"
2098
+                                        format="yyyy-MM-dd"
2099
+                                        value-format="yyyy-MM-dd"
2100
+                                        style="width:150px">
2101
+                                      </el-date-picker>
2102
+                                    </el-form-item>
2116
                                   </el-col>
2103
                                   </el-col>
2104
+                                
2117
                                   <el-col :span="8">
2105
                                   <el-col :span="8">
2118
-                                      <el-form-item label="修改标志:" required prop="modifications">
2119
-                                        <el-select style="width:150px"  v-model="qualityFormSix.modifications">
2120
-                                          <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2121
-                                        </el-select>
2122
-                                      </el-form-item>
2106
+                                    <el-form-item label="顺序号:" required prop="sort">
2107
+                                      <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
2108
+                                    </el-form-item>
2123
                                   </el-col>
2109
                                   </el-col>
2124
-                             </el-row>
2125
-                              <el-row>
2126
-                                <el-col :span="24">
2127
-                                 <el-form-item label="检测结果:(EU/ml)" label-width="100px">
2128
-                                     <el-input
2129
-                                        type="textarea"
2130
-                                        :rows="2"
2131
-                                         placeholder="请输入内容"
2132
-                                         style="width:600px"
2133
-                                         v-model="qualityFormSix.detection_resultb"
2134
-                                         >
2135
-                                      </el-input>
2136
-                                  </el-form-item>
2137
-                                </el-col>
2110
+                                </el-row>
2111
+                                <el-row>
2112
+                                    <el-col :span="8">
2113
+                                        <el-form-item label="检测合格:" required prop="pass_examination">
2114
+                                          <el-radio v-model="qualityFormSix.pass_examination" label="1">是</el-radio>
2115
+                                          <el-radio v-model="qualityFormSix.pass_examination" label="2">否</el-radio>
2116
+                                        </el-form-item>
2117
+                                    </el-col>
2118
+                                    <el-col :span="8">
2119
+                                        <el-form-item label="修改标志:" required prop="modifications">
2120
+                                          <el-select style="width:150px"  v-model="qualityFormSix.modifications">
2121
+                                            <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2122
+                                          </el-select>
2123
+                                        </el-form-item>
2124
+                                    </el-col>
2138
                               </el-row>
2125
                               </el-row>
2139
-                              <!-- <el-row>
2126
+                                <el-row>
2140
                                   <el-col :span="24">
2127
                                   <el-col :span="24">
2141
-                                    <span style="color:#FF9900">注:水游离氯检测应至少每3个月1次,每台透析机每年至少检测一次</span>
2142
-                                   </el-col>
2143
-                              </el-row> -->
2144
-                              <el-row>
2145
-                                <div class="clearn">
2146
-                                  <el-col :span="4">
2147
-                                    <el-button @click="cleanLincomycin">取消</el-button>
2148
-                                  </el-col>
2149
-                                   <el-col :span="4">
2150
-                                    <el-button type="primary" @click="saveWater('qualityFormSix')">保存</el-button>
2128
+                                  <el-form-item label="检测结果:(EU/ml)" label-width="100px">
2129
+                                      <el-input
2130
+                                          type="textarea"
2131
+                                          :rows="2"
2132
+                                          placeholder="请输入内容"
2133
+                                          style="width:600px"
2134
+                                          v-model="qualityFormSix.detection_resultb"
2135
+                                          >
2136
+                                        </el-input>
2137
+                                    </el-form-item>
2151
                                   </el-col>
2138
                                   </el-col>
2152
-                                </div>
2153
-                              </el-row>
2154
-                            </el-form>
2139
+                                </el-row>
2140
+                                <!-- <el-row>
2141
+                                    <el-col :span="24">
2142
+                                      <span style="color:#FF9900">注:水游离氯检测应至少每3个月1次,每台透析机每年至少检测一次</span>
2143
+                                    </el-col>
2144
+                                </el-row> -->
2145
+                                <el-row>
2146
+                                  <div class="clearn">
2147
+                                    <el-col :span="4">
2148
+                                      <el-button @click="cleanLincomycin">取消</el-button>
2149
+                                    </el-col>
2150
+                                    <el-col :span="4">
2151
+                                      <el-button type="primary" @click="saveWater('qualityFormSix')">保存</el-button>
2152
+                                    </el-col>
2153
+                                  </div>
2154
+                                </el-row>
2155
+                              </el-form>
2155
                             <el-divider></el-divider>
2156
                             <el-divider></el-divider>
2156
 
2157
 
2157
                            
2158
                            
3355
         this.tabIndex = index
3356
         this.tabIndex = index
3356
       },
3357
       },
3357
       handleCurrentChange(val) {
3358
       handleCurrentChange(val) {
3358
-        console.log("Val222222222",val)
3359
+        console.log("val-------------------------",val)
3360
+        // 通过设备型号区分质量控制
3359
         this.device_type = val.device_type
3361
         this.device_type = val.device_type
3360
         this.unitType = val.unit_type
3362
         this.unitType = val.unit_type
3361
         this.currentRow = val
3363
         this.currentRow = val

+ 3 - 1
src/xt_pages/management/index.vue View File

126
           <template slot-scope="scope">{{ scope.row.machine_status }}</template>
126
           <template slot-scope="scope">{{ scope.row.machine_status }}</template>
127
         </el-table-column>
127
         </el-table-column>
128
 
128
 
129
-        <el-table-column label="使用次数" align="center">
129
+        <el-table-column label="使用次数" align="center" v-if="org_id!=0&&org_id!=10440">
130
           <template slot-scope="scope">{{getTotal(scope.row.bed_id,scope.row.user_total) }}</template>
130
           <template slot-scope="scope">{{getTotal(scope.row.bed_id,scope.row.user_total) }}</template>
131
         </el-table-column>
131
         </el-table-column>
132
 
132
 
214
       },
214
       },
215
       total: 0,
215
       total: 0,
216
       count:[],
216
       count:[],
217
+      org_id:0,
217
     };
218
     };
218
   },
219
   },
219
   methods: {
220
   methods: {
403
     this.getAllSubregion();
404
     this.getAllSubregion();
404
     this.getAllMachineInfo();
405
     this.getAllMachineInfo();
405
     this.getUserMachTotalCount()
406
     this.getUserMachTotalCount()
407
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
406
   }
408
   }
407
 };
409
 };
408
 </script>
410
 </script>

File diff suppressed because it is too large
+ 554 - 554
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue


File diff suppressed because it is too large
+ 1048 - 1048
src/xt_pages/outpatientCharges/statementPrint.vue


+ 116 - 22
src/xt_pages/outpatientCharges/summary.vue View File

110
           >
110
           >
111
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
111
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
112
           <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
112
           <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
113
-          <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>
113
+<!--          <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>-->
114
 
114
 
115
 
115
 
116
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
116
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
118
           <!--          </el-button-->
118
           <!--          </el-button-->
119
           <!--          >-->
119
           <!--          >-->
120
 
120
 
121
-                              <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>
121
+<!--                              <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>-->
122
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
122
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
123
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
123
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
124
 <!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
124
 <!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
529
           return "普通住院";
529
           return "普通住院";
530
           break;
530
           break;
531
       }
531
       }
532
-    },cancelUploadTwo(row){
532
+    },
533
+    cancelUploadTwo(row){
533
       if(this.$store.getters.xt_user.org_id == 10265){
534
       if(this.$store.getters.xt_user.org_id == 10265){
534
         var that = this;
535
         var that = this;
535
         axios
536
         axios
634
           })
635
           })
635
           .catch(function (error) {
636
           .catch(function (error) {
636
           });
637
           });
637
-    },queryData(row){
638
+    },
639
+    queryData(row){
638
       var that = this;
640
       var that = this;
639
       axios
641
       axios
640
         .get("http://127.0.0.1:9532/api/4103", {
642
         .get("http://127.0.0.1:9532/api/4103", {
1010
           });
1012
           });
1011
         }
1013
         }
1012
       });
1014
       });
1015
+    },getItemTypeName(order_infos,id,type){
1016
+      console.log(type )
1017
+
1018
+      var  name = ""
1019
+      for(let i = 0; i < order_infos.length;i++){
1020
+        if(type == 1){
1021
+          if(order_infos[i].advice_id == id){
1022
+
1023
+            name =   this.getItemName(order_infos[i].med_chrgitm_type)
1024
+          }
1025
+        }else{
1026
+          if(order_infos[i].project_id == id){
1027
+
1028
+            name =   this.getItemName(order_infos[i].med_chrgitm_type)
1029
+          }
1030
+        }
1031
+
1032
+      }
1033
+      return name
1034
+    },       getItemName(med_chrgitm_type) {
1035
+      switch (med_chrgitm_type) {
1036
+        case '01':
1037
+          return '床位费'
1038
+          break
1039
+        case '02':
1040
+          return '诊察费'
1041
+
1042
+          break
1043
+        case '03':
1044
+          return '检查费'
1045
+
1046
+          break
1047
+        case '04':
1048
+          return '化验费'
1049
+          break
1050
+        case '05':
1051
+          return '治疗费'
1052
+
1053
+          break
1054
+        case '06':
1055
+          return '手术费'
1056
+
1057
+          break
1058
+        case '07':
1059
+          return '护理费'
1060
+
1061
+          break
1062
+        case '08':
1063
+          return '材料费'
1064
+
1065
+          break
1066
+        case '09':
1067
+          return '西药费'
1068
+
1069
+          break
1070
+        case '10':
1071
+          return '中药饮片费'
1072
+
1073
+          break
1074
+        case '11':
1075
+          return '中成药费'
1076
+
1077
+          break
1078
+        case '12':
1079
+          return '一般诊疗费'
1080
+
1081
+          break
1082
+        case '13':
1083
+          return '挂号费'
1084
+          break
1085
+        case '14':
1086
+          return '其他费'
1087
+          break
1088
+        case '0':
1089
+          return '其他费'
1090
+          break
1091
+
1092
+      }
1093
+
1013
     },
1094
     },
1095
+
1014
     export_detail_three() {
1096
     export_detail_three() {
1015
       let params = {};
1097
       let params = {};
1016
       getHisDataThree(params).then((response) => {
1098
       getHisDataThree(params).then((response) => {
1028
                 name: order.patient.name,
1110
                 name: order.patient.name,
1029
                 id_card_no: order.patient.id_card_no,
1111
                 id_card_no: order.patient.id_card_no,
1030
                 year: "2023",
1112
                 year: "2023",
1031
-                month: "1",
1113
+                month: "2",
1032
                 code: data[b].code,
1114
                 code: data[b].code,
1033
                 pric: data[b].count * data[b].price,
1115
                 pric: data[b].count * data[b].price,
1034
                 item_name: data[b].name,
1116
                 item_name: data[b].name,
1035
                 unit: data[b].unit,
1117
                 unit: data[b].unit,
1036
                 count: data[b].count,
1118
                 count: data[b].count,
1119
+                item_type_name:this.getItemTypeName(order.order_info, data[b].id,data[b].type)
1037
 
1120
 
1038
               }
1121
               }
1039
               if (order.insutype == "310") {
1122
               if (order.insutype == "310") {
1055
                 "医保类型": list[i].insutype,
1138
                 "医保类型": list[i].insutype,
1056
                 "年": list[i].year,
1139
                 "年": list[i].year,
1057
                 "月": list[i].month,
1140
                 "月": list[i].month,
1141
+
1058
                 "药品编码": list[i].code,
1142
                 "药品编码": list[i].code,
1143
+                "费用类型": list[i].item_type_name,
1059
                 "名称": list[i].item_name,
1144
                 "名称": list[i].item_name,
1060
                 "单位": list[i].unit,
1145
                 "单位": list[i].unit,
1061
                 "数量": list[i].count,
1146
                 "数量": list[i].count,
1073
               "年",
1158
               "年",
1074
               "月",
1159
               "月",
1075
               "药品编码",
1160
               "药品编码",
1161
+              "费用类型",
1076
               "名称",
1162
               "名称",
1077
               "单位",
1163
               "单位",
1078
               "数量",
1164
               "数量",
1086
               "年",
1172
               "年",
1087
               "月",
1173
               "月",
1088
               "药品编码",
1174
               "药品编码",
1175
+              "费用类型",
1089
               "名称",
1176
               "名称",
1090
               "单位",
1177
               "单位",
1091
               "数量",
1178
               "数量",
2298
 
2385
 
2299
             } else if (order.his_patient.insuplc_admdvs == "440704"){
2386
             } else if (order.his_patient.insuplc_admdvs == "440704"){
2300
 
2387
 
2301
-              insuplc_admdvs_name = "江区"
2388
+              insuplc_admdvs_name = "江区"
2302
 
2389
 
2303
 
2390
 
2304
             } else if (order.his_patient.insuplc_admdvs == "440705"){
2391
             } else if (order.his_patient.insuplc_admdvs == "440705"){
2305
 
2392
 
2306
-              insuplc_admdvs_name = "蓬江区"
2393
+              insuplc_admdvs_name = "新会区"
2307
 
2394
 
2308
 
2395
 
2309
             }else if (order.his_patient.insuplc_admdvs == "440781"){
2396
             }else if (order.his_patient.insuplc_admdvs == "440781"){
2310
 
2397
 
2311
-              insuplc_admdvs_name = "蓬江区"
2312
-
2398
+              insuplc_admdvs_name = "台山市"
2313
 
2399
 
2314
             }else if (order.his_patient.insuplc_admdvs == "440783"){
2400
             }else if (order.his_patient.insuplc_admdvs == "440783"){
2315
-
2316
-              insuplc_admdvs_name = "蓬江区"
2317
-
2401
+              insuplc_admdvs_name = "开平市"
2318
 
2402
 
2319
             }else if (order.his_patient.insuplc_admdvs == "440784"){
2403
             }else if (order.his_patient.insuplc_admdvs == "440784"){
2320
-
2321
-
2404
+              insuplc_admdvs_name = "鹤山市"
2322
 
2405
 
2323
             }else if (order.his_patient.insuplc_admdvs == "440785"){
2406
             }else if (order.his_patient.insuplc_admdvs == "440785"){
2324
-
2325
-
2407
+              insuplc_admdvs_name = "恩平市"
2326
 
2408
 
2327
             }else if (order.his_patient.insuplc_admdvs == "440799"){
2409
             }else if (order.his_patient.insuplc_admdvs == "440799"){
2328
-
2329
-
2330
-
2410
+              insuplc_admdvs_name = "市直"
2331
             }
2411
             }
2332
 
2412
 
2333
 
2413
 
2334
-
2335
             let obj = {
2414
             let obj = {
2336
               就诊号: order.mdtrt_id,
2415
               就诊号: order.mdtrt_id,
2337
               患者姓名: name,
2416
               患者姓名: name,
2338
               开处时间: time,
2417
               开处时间: time,
2339
               险种类型: insutypeName,
2418
               险种类型: insutypeName,
2340
               参保所属医保区划: order.his_patient.insuplc_admdvs,
2419
               参保所属医保区划: order.his_patient.insuplc_admdvs,
2341
-              属地名称: order.his_patient.insuplc_admdvs,
2420
+              参保号:order.his_patient.id_card_no,
2421
+              属地名称: insuplc_admdvs_name,
2342
               应收金额: order.medfee_sumamt,
2422
               应收金额: order.medfee_sumamt,
2343
               实收金额: order.medfee_sumamt,
2423
               实收金额: order.medfee_sumamt,
2344
               医保统筹金额: order.hifp_pay,
2424
               医保统筹金额: order.hifp_pay,
2372
               "患者姓名",
2452
               "患者姓名",
2373
               "开处时间",
2453
               "开处时间",
2374
               "险种类型",
2454
               "险种类型",
2455
+              "参保所属医保区划",
2456
+              "参保号",
2457
+              "属地名称",
2375
               "应收金额",
2458
               "应收金额",
2376
               "实收金额",
2459
               "实收金额",
2377
               "医保统筹金额",
2460
               "医保统筹金额",
2401
               "患者姓名",
2484
               "患者姓名",
2402
               "开处时间",
2485
               "开处时间",
2403
               "险种类型",
2486
               "险种类型",
2487
+              "参保所属医保区划",
2488
+              "参保号",
2489
+              "属地名称",
2404
               "应收金额",
2490
               "应收金额",
2405
               "实收金额",
2491
               "实收金额",
2406
               "医保统筹金额",
2492
               "医保统筹金额",
2502
               price: month_prescriptions[i].project[a].price
2588
               price: month_prescriptions[i].project[a].price
2503
 
2589
 
2504
             }
2590
             }
2591
+
2505
             project_ids.push(obj)
2592
             project_ids.push(obj)
2506
             project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2593
             project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2507
           }
2594
           }
2523
             obj['code'] = drug_month_prescriptions.advices[a].id
2610
             obj['code'] = drug_month_prescriptions.advices[a].id
2524
             obj['unit'] = drug_month_prescriptions.advices[a].drug.min_unit
2611
             obj['unit'] = drug_month_prescriptions.advices[a].drug.min_unit
2525
             obj['price'] = parseFloat(drug_month_prescriptions.advices[a].price)
2612
             obj['price'] = parseFloat(drug_month_prescriptions.advices[a].price)
2613
+            obj['id'] = drug_month_prescriptions.advices[a].id
2614
+            obj['type'] = 1
2615
+
2616
+
2526
             count = count + drug_month_prescriptions.advices[a].prescribing_number
2617
             count = count + drug_month_prescriptions.advices[a].prescribing_number
2527
           }
2618
           }
2528
         }
2619
         }
2541
               obj['code'] = project_month_prescriptions.project[a].id
2632
               obj['code'] = project_month_prescriptions.project[a].id
2542
               obj['unit'] = project_month_prescriptions.project[a].project.unit
2633
               obj['unit'] = project_month_prescriptions.project[a].project.unit
2543
               obj['type'] = 2
2634
               obj['type'] = 2
2635
+              obj['id'] = project_month_prescriptions.project[a].id
2636
+
2544
 
2637
 
2545
             } else if (project_month_prescriptions.project[a].type == 3) {
2638
             } else if (project_month_prescriptions.project[a].type == 3) {
2546
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
2639
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
2547
               obj['code'] = project_month_prescriptions.project[a].id
2640
               obj['code'] = project_month_prescriptions.project[a].id
2548
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
2641
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
2549
               obj['type'] = 3
2642
               obj['type'] = 3
2643
+              obj['id'] = project_month_prescriptions.project[a].id
2550
 
2644
 
2551
             }
2645
             }
2552
             count = count + parseFloat(project_month_prescriptions.project[a].count)
2646
             count = count + parseFloat(project_month_prescriptions.project[a].count)
2553
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
2647
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
2554
-            obj['type'] = 1
2648
+            obj['type'] = 2
2555
 
2649
 
2556
           }
2650
           }
2557
         }
2651
         }

+ 4 - 1
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/treatBatchPrint.vue View File

7
       class="prescription-print"
7
       class="prescription-print"
8
       v-for="(item,index) in i.prescriptions"
8
       v-for="(item,index) in i.prescriptions"
9
       :key="index"
9
       :key="index"
10
+
10
     >
11
     >
12
+
11
       <span v-if="org_id == 10138">
13
       <span v-if="org_id == 10138">
12
         <img
14
         <img
13
           src="https://kuyi.shengws.com/bailin/bltotle.jpg"
15
           src="https://kuyi.shengws.com/bailin/bltotle.jpg"
158
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
160
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
159
               </div> -->
161
               </div> -->
160
         <div class="drugsBox" v-for="(it, index) in item.project" :key="index">
162
         <div class="drugsBox" v-for="(it, index) in item.project" :key="index">
161
-          <div class="drugsOne">
163
+          <div class="drugsOne" v-if="(item.type == 2 && item.project.cost_classify != 3) || item.type ==3">
162
             <span style="font-weight: bold">{{ index + 1 + "." }}</span
164
             <span style="font-weight: bold">{{ index + 1 + "." }}</span
163
             >{{
165
             >{{
164
               it.type == 2 ? it.project.project_name : it.good_info.good_name
166
               it.type == 2 ? it.project.project_name : it.good_info.good_name
209
         alt=""
211
         alt=""
210
       /></span>
212
       /></span>
211
       <div style="page-break-after: always"></div>
213
       <div style="page-break-after: always"></div>
214
+
212
     </div>
215
     </div>
213
 
216
 
214
     <!-- <div id='prescriptionPrint'>
217
     <!-- <div id='prescriptionPrint'>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2616
                           newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2616
                           newProjectArr[i].out_count += parseInt(newProjectArr[i].child[j].total)
2617
                         }
2617
                         }
2618
                       }
2618
                       }
2619
-                      console.log("河滨232332newArr",newProjectArr)
2619
+                      
2620
                       for(let i=0;i<newProjectArr.length;i++){
2620
                       for(let i=0;i<newProjectArr.length;i++){
2621
                         if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2621
                         if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2622
                               this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2622
                               this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2628
 
2628
 
2629
                     }
2629
                     }
2630
                }
2630
                }
2631
-
2631
+               console.log("params23332232323232323------",data)
2632
                 createHisPrescription(data, params).then(response => {
2632
                 createHisPrescription(data, params).then(response => {
2633
                   if (response.data.state == 1) {
2633
                   if (response.data.state == 1) {
2634
                     this.$emit('change', this.patientInfo.id)
2634
                     this.$emit('change', this.patientInfo.id)

+ 43 - 5
src/xt_pages/outpatientDoctorStation/pastInquiries.vue View File

429
 
429
 
430
           let new_patients = []
430
           let new_patients = []
431
           if (type != 3) {
431
           if (type != 3) {
432
-            Arr.forEach((i) => {
433
-              if (i.prescriptions.length != 0) {
434
-                new_patients.push(i)
435
-              }
436
-            })
432
+
433
+            if (type == 1){
434
+              Arr.forEach((i) => {
435
+                if (i.prescriptions.length != 0) {
436
+                  new_patients.push(i)
437
+                }
438
+              })
439
+
440
+            }else {
441
+              Arr.forEach((i) => {
442
+                if (i.prescriptions.length != 0) {
443
+                  for(let b = 0; b < i.prescriptions.length;b++) {
444
+                    for (let c = 0; c < i.prescriptions[b].project.length; c++) {
445
+                      if(b == 1) {
446
+                        console.log(i.prescriptions[b].project.length)
447
+                        console.log(i.prescriptions[b].project[c].project.cost_classify)
448
+                        console.log(i.prescriptions[b].project[c].type)
449
+                      }
450
+                      if(i.prescriptions[b].project[c].type == 2 && i.prescriptions[b].project[c].project.cost_classify == 3){
451
+                        i.prescriptions[b].project.splice(c,1)
452
+                        c--
453
+                      }
454
+                    }
455
+                  }
456
+                  new_patients.push(i)
457
+                }
458
+              })
459
+              let new_patients_two = []
460
+
461
+              new_patients.forEach((i) => {
462
+                if (i.prescriptions.length != 0) {
463
+                  for(let b = 0; b < i.prescriptions.length;b++) {
464
+                    if(i.prescriptions[b].project.length == 0){
465
+                      i.prescriptions.splice(b,1)
466
+                      b--
467
+                    }
468
+                  }
469
+                  new_patients_two.push(i)
470
+                }
471
+              })
472
+              new_patients = new_patients_two
473
+            }
474
+
437
           } else {
475
           } else {
438
             Arr.forEach((el) => {
476
             Arr.forEach((el) => {
439
               el.new_prescriptions.forEach((o) => {
477
               el.new_prescriptions.forEach((o) => {

+ 23 - 1
src/xt_pages/outpatientTool/detailPrint.vue View File

18
           <tr>
18
           <tr>
19
             <td>患者姓名:{{ patient.name }}</td>
19
             <td>患者姓名:{{ patient.name }}</td>
20
             <td>性别:{{ patient.gender == 1 ? "男" : "女" }}</td>
20
             <td>性别:{{ patient.gender == 1 ? "男" : "女" }}</td>
21
+            <td>性别:{{patient.id_card_no}}</td>
22
+
23
+            <TD>年龄:{{ getAge(patient.id_card_no)?getAge(patient.id_card_no)+'岁':''}}</TD>
21
             <td>结算类别:
24
             <td>结算类别:
22
             <span v-if="his_patient!=null&&his_patient.balance_accounts_type >0"> {{ getType(his_patient.balance_accounts_type) }} </span>
25
             <span v-if="his_patient!=null&&his_patient.balance_accounts_type >0"> {{ getType(his_patient.balance_accounts_type) }} </span>
23
             <span v-if="his_record_patient!=null&&his_record_patient.balance_accounts_type >0">{{getType(his_record_patient.balance_accounts_type)}}</span></td>
26
             <span v-if="his_record_patient!=null&&his_record_patient.balance_accounts_type >0">{{getType(his_record_patient.balance_accounts_type)}}</span></td>
164
 
167
 
165
 <script>
168
 <script>
166
 import print from "print-js";
169
 import print from "print-js";
167
-import { uParseTime } from "@/utils/tools";
170
+import {jsGetAge, uParseTime } from "@/utils/tools";
168
 import { getHisSummaryDetailList } from "@/api/his/his_tools";
171
 import { getHisSummaryDetailList } from "@/api/his/his_tools";
169
 export default {
172
 export default {
170
   data() {
173
   data() {
190
     };
193
     };
191
   },
194
   },
192
   methods: {
195
   methods: {
196
+    getAge(val){
197
+      console.log(val)
198
+      var thisLen = val.length;
199
+      var birth = "";
200
+      if (thisLen == 15) {
201
+        birth = "19" + val.substr(6, 6);
202
+      } else {
203
+        birth = val.substr(6, 8);
204
+      }
205
+      var birthTwo =
206
+        birth.substr(0, 4) +
207
+        "-" +
208
+        birth.substr(4, 2) +
209
+        "-" +
210
+        birth.substr(6, 2);
211
+      var age = jsGetAge(birthTwo, "-");
212
+      return age;
213
+    },
193
     printtpage() {
214
     printtpage() {
194
       const style =
215
       const style =
195
         '@media print {.list-print{width:960px;margin:0 auto} .listTitle {font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo {display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;}.listTable {width: 100%;text-align: center;border-collapse: collapse;line-height: 25px;font-size: 14px;border-color: #000;text-align: left;} .listTable tr td {padding: 0 5px;}.tableBottom {font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne {margin-right: 40px;}';
216
         '@media print {.list-print{width:960px;margin:0 auto} .listTitle {font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo {display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;}.listTable {width: 100%;text-align: center;border-collapse: collapse;line-height: 25px;font-size: 14px;border-color: #000;text-align: left;} .listTable tr td {padding: 0 5px;}.tableBottom {font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne {margin-right: 40px;}';
237
 
258
 
238
           this.list = list;
259
           this.list = list;
239
           this.patient = response.data.data.patient;
260
           this.patient = response.data.data.patient;
261
+          console.log(this.patient)
240
 
262
 
241
           this.his_patient = response.data.data.his_patient;
263
           this.his_patient = response.data.data.his_patient;
242
 
264
 

File diff suppressed because it is too large
+ 15208 - 0
src/xt_pages/package-lock.json


+ 144 - 0
src/xt_pages/package.json View File

1
+{
2
+  "name": "vue-element-admin",
3
+  "version": "3.7.3",
4
+  "description": "A magical vue admin. Typical templates for enterprise applications. Newest development stack of vue. Lots of awesome features",
5
+  "author": "Pan <panfree23@gmail.com>",
6
+  "license": "MIT",
7
+  "scripts": {
8
+    "dev": "cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9
+    "build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js",
10
+    "build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js && npm run fixfont && npm run fiximg",
11
+    "build-cdn": "node build/build-cdn.js",
12
+    "lint": "eslint --ext .js,.vue src",
13
+    "test": "npm run lint",
14
+    "precommit": "lint-staged",
15
+    "build": "cross-env NODE_ENV=production env_config=sit node build/build.js && npm run fixfont && npm run fiximg",
16
+    "fixfont": "xcopy %cd%\\dist\\static\\fonts %cd%\\dist\\static\\css\\static\\fonts /s /y /d /e /i",
17
+    "fiximg": "xcopy %cd%\\dist\\static\\img %cd%\\dist\\static\\css\\static\\img /s /y /d /e /i"
18
+  },
19
+  "lint-staged": {
20
+    "src/**/*.{js,vue}": [
21
+      "eslint --fix",
22
+      "git add"
23
+    ]
24
+  },
25
+  "keywords": [
26
+    "vue",
27
+    "element-ui",
28
+    "admin",
29
+    "management-system",
30
+    "admin-template"
31
+  ],
32
+  "repository": {
33
+    "type": "git",
34
+    "url": "git+https://github.com/PanJiaChen/vue-element-admin.git"
35
+  },
36
+  "bugs": {
37
+    "url": "https://github.com/PanJiaChen/vue-element-admin/issues"
38
+  },
39
+  "dependencies": {
40
+    "@types/moment": "^2.13.0",
41
+    "ajv": "^6.5.3",
42
+    "axios": "0.17.1",
43
+    "clipboard": "^1.7.1",
44
+    "codemirror": "5.32.0",
45
+    "connect": "3.6.6",
46
+    "default-passive-events": "^2.0.0",
47
+    "driver.js": "0.5.2",
48
+    "dropzone": "5.2.0",
49
+    "echarts": "3.8.5",
50
+    "element-ui": "^2.13.2",
51
+    "file-saver": "^1.3.8",
52
+    "font-awesome": "4.7.0",
53
+    "js-cookie": "2.2.0",
54
+    "jsbarcode": "^3.11.5",
55
+    "jsonlint": "1.6.3",
56
+    "jszip": "3.1.5",
57
+    "mockjs": "1.0.1-beta3",
58
+    "moment": "^2.24.0",
59
+    "node-sass": "4.14.1",
60
+    "normalize.css": "7.0.0",
61
+    "nprogress": "0.2.0",
62
+    "print-js": "^1.0.50",
63
+    "qrcodejs2": "0.0.2",
64
+    "screenfull": "4.2.0",
65
+    "serve-static": "1.13.2",
66
+    "showdown": "1.8.5",
67
+    "simplemde": "1.11.2",
68
+    "sortablejs": "1.7.0",
69
+    "v-fit-columns": "^0.2.0",
70
+    "vue": "2.5.16",
71
+    "vue-clipboard": "0.0.1",
72
+    "vue-clipboard2": "^0.3.1",
73
+    "vue-count-to": "1.0.13",
74
+    "vue-i18n": "7.3.2",
75
+    "vue-multiselect": "2.0.8",
76
+    "vue-router": "3.0.1",
77
+    "vue-splitpane": "1.0.2",
78
+    "vuedraggable": "^2.16.0",
79
+    "vuex": "3.0.1",
80
+    "xlsx": "^0.11.19"
81
+  },
82
+  "devDependencies": {
83
+    "autoprefixer": "7.2.3",
84
+    "babel-core": "6.26.0",
85
+    "babel-eslint": "8.0.3",
86
+    "babel-helper-vue-jsx-merge-props": "2.0.3",
87
+    "babel-loader": "7.1.2",
88
+    "babel-plugin-dynamic-import-node": "^1.2.0",
89
+    "babel-plugin-syntax-jsx": "6.18.0",
90
+    "babel-plugin-transform-runtime": "6.23.0",
91
+    "babel-plugin-transform-vue-jsx": "3.5.0",
92
+    "babel-preset-env": "1.6.1",
93
+    "babel-preset-stage-2": "6.24.1",
94
+    "chalk": "2.3.0",
95
+    "copy-webpack-plugin": "4.3.0",
96
+    "cross-env": "^7.0.3",
97
+    "crypto-js": "^4.1.1",
98
+    "css-loader": "0.28.7",
99
+    "eslint": "4.13.1",
100
+    "eslint-friendly-formatter": "3.0.0",
101
+    "eslint-loader": "1.9.0",
102
+    "eslint-plugin-html": "4.0.1",
103
+    "extract-text-webpack-plugin": "3.0.2",
104
+    "file-loader": "1.1.5",
105
+    "friendly-errors-webpack-plugin": "1.6.1",
106
+    "html-webpack-plugin": "2.30.1",
107
+    "lint-staged": "7.2.0",
108
+    "node-notifier": "5.1.2",
109
+    "node-sass": "^4.14.1",
110
+    "optimize-css-assets-webpack-plugin": "3.2.0",
111
+    "ora": "1.3.0",
112
+    "portfinder": "1.0.13",
113
+    "postcss-import": "11.0.0",
114
+    "postcss-loader": "2.0.9",
115
+    "postcss-url": "7.3.0",
116
+    "qiniu-webpack-plugin": "^0.4.2",
117
+    "rimraf": "2.6.2",
118
+    "sass-loader": "^6.0.7",
119
+    "sass-resources-loader": "^1.3.4",
120
+    "script-loader": "^0.7.2",
121
+    "semver": "5.4.1",
122
+    "shelljs": "0.7.8",
123
+    "svg-sprite-loader": "3.5.2",
124
+    "uglifyjs-webpack-plugin": "1.1.3",
125
+    "url-loader": "0.6.2",
126
+    "vue-loader": "13.7.2",
127
+    "vue-style-loader": "3.0.3",
128
+    "vue-template-compiler": "2.5.16",
129
+    "webpack": "3.10.0",
130
+    "webpack-bundle-analyzer": "2.9.1",
131
+    "webpack-dev-server": "^2.9.7",
132
+    "webpack-merge": "4.1.1",
133
+    "write-json": "^3.0.1"
134
+  },
135
+  "engines": {
136
+    "node": ">= 4.0.0",
137
+    "npm": ">= 3.0.0"
138
+  },
139
+  "browserslist": [
140
+    "> 1%",
141
+    "last 2 versions",
142
+    "not ie <= 8"
143
+  ]
144
+}

+ 1 - 0
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue View File

626
           this.tableData[i].assessment_date = this.getTime(this.tableData[i].assessment_date,'{y}-{m}-{d}')
626
           this.tableData[i].assessment_date = this.getTime(this.tableData[i].assessment_date,'{y}-{m}-{d}')
627
           this.tableData[i].name = this.tableData[i].patient.name
627
           this.tableData[i].name = this.tableData[i].patient.name
628
           this.tableData[i].over_pluse =  this.tableData[i].weight_before -  this.tableData[i].last_after_weight
628
           this.tableData[i].over_pluse =  this.tableData[i].weight_before -  this.tableData[i].last_after_weight
629
+          this.tableData[i].weight_after = this.tableData[i].after.weight_after
629
         }
630
         }
630
        
631
        
631
         const tHeader = ['日期', '姓名', '干体重','前次透后体重','透前体重','透后体重','体重增加']
632
         const tHeader = ['日期', '姓名', '干体重','前次透后体重','透前体重','透后体重','体重增加']

+ 8 - 8
src/xt_pages/sign/lineUp.vue View File

43
                 <div class="lineUpMain">
43
                 <div class="lineUpMain">
44
                     <div class="lineUpMainLeft">
44
                     <div class="lineUpMainLeft">
45
                         <div class="lineUpMainLeftTitle">
45
                         <div class="lineUpMainLeftTitle">
46
-                            <p style="width:12%">排队号</p>
46
+                            <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">排队号</p>
47
                             <p style="width:14%">姓名</p>
47
                             <p style="width:14%">姓名</p>
48
-                            <p style="width:14%">病例号</p>
48
+                            <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">病例号</p>
49
                             <p style="width:14%">床位号</p>
49
                             <p style="width:14%">床位号</p>
50
                             <p style="width:14%">治疗状态</p>
50
                             <p style="width:14%">治疗状态</p>
51
                             <p style="width:14%">上机时间</p>
51
                             <p style="width:14%">上机时间</p>
53
                         </div>
53
                         </div>
54
                         <div class="lineUpList">
54
                         <div class="lineUpList">
55
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
55
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
56
-                                <p style="width:12%">
56
+                                <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id!=10440">
57
                                     <span v-if="item.schedule_type == 1">上午</span>
57
                                     <span v-if="item.schedule_type == 1">上午</span>
58
                                     <span v-if="item.schedule_type == 2">下午</span>
58
                                     <span v-if="item.schedule_type == 2">下午</span>
59
                                     <span v-if="item.schedule_type == 3">晚上</span>
59
                                     <span v-if="item.schedule_type == 3">晚上</span>
60
                                     {{ item.queue_no }}号
60
                                     {{ item.queue_no }}号
61
                                 </p>
61
                                 </p>
62
                                 <p style="width:14%">{{ item.patient_name }}</p>
62
                                 <p style="width:14%">{{ item.patient_name }}</p>
63
-                                <p style="width:14%">{{ item.dialysis_no }}</p>
63
+                                <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">{{ item.dialysis_no }}</p>
64
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
64
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
65
                                 <p style="width:14%">
65
                                 <p style="width:14%">
66
                                     <span v-if="item.status == 1">待接诊</span>
66
                                     <span v-if="item.status == 1">待接诊</span>
220
                 <div class="lineUpMain">
220
                 <div class="lineUpMain">
221
                     <div class="lineUpMainLeft">
221
                     <div class="lineUpMainLeft">
222
                         <div class="lineUpMainLeftTitle">
222
                         <div class="lineUpMainLeftTitle">
223
-                            <p style="width:12%">排队号</p>
223
+                            <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">排队号</p>
224
                             <p style="width:14%">姓名</p>
224
                             <p style="width:14%">姓名</p>
225
-                            <p style="width:14%">病例号</p>
225
+                            <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">病例号</p>
226
                             <p style="width:14%">床位号</p>
226
                             <p style="width:14%">床位号</p>
227
                             <p style="width:14%">治疗状态</p>
227
                             <p style="width:14%">治疗状态</p>
228
                             <p style="width:14%">上机时间</p>
228
                             <p style="width:14%">上机时间</p>
230
                         </div>
230
                         </div>
231
                         <div class="lineUpList">
231
                         <div class="lineUpList">
232
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
232
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
233
-                                <p style="width:12%">
233
+                                <p style="width:12%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">
234
                                     <span v-if="item.schedule_type == 1">上午</span>
234
                                     <span v-if="item.schedule_type == 1">上午</span>
235
                                     <span v-if="item.schedule_type == 2">下午</span>
235
                                     <span v-if="item.schedule_type == 2">下午</span>
236
                                     <span v-if="item.schedule_type == 3">晚上</span>
236
                                     <span v-if="item.schedule_type == 3">晚上</span>
237
                                     {{ item.queue_no }}号
237
                                     {{ item.queue_no }}号
238
                                 </p>
238
                                 </p>
239
                                 <p style="width:14%">{{ item.patient_name }}</p>
239
                                 <p style="width:14%">{{ item.patient_name }}</p>
240
-                                <p style="width:14%">{{ item.dialysis_no }}</p>
240
+                                <p style="width:14%" v-if="$store.getters.xt_user.org.id !=0 && $store.getters.xt_user.org.id !=10440">{{ item.dialysis_no }}</p>
241
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
241
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
242
                                 <p style="width:14%">
242
                                 <p style="width:14%">
243
                                     <span v-if="item.status == 1">待接诊</span>
243
                                     <span v-if="item.status == 1">待接诊</span>

+ 1 - 0
src/xt_pages/stock/Dialog/goodTypeDialog.vue View File

17
                   <el-radio label="1">无</el-radio>
17
                   <el-radio label="1">无</el-radio>
18
                   <el-radio label="2">透析器</el-radio>
18
                   <el-radio label="2">透析器</el-radio>
19
                   <el-radio label="3">灌流器</el-radio>
19
                   <el-radio label="3">灌流器</el-radio>
20
+                  <el-radio label="4">滤过器</el-radio>
20
               </el-radio-group>
21
               </el-radio-group>
21
           </el-form-item>
22
           </el-form-item>
22
         </el-col>
23
         </el-col>

+ 31 - 21
src/xt_pages/stock/detail/stockOutDetail.vue View File

149
         </el-table-column>
149
         </el-table-column>
150
         <el-table-column label="数量" align="center">
150
         <el-table-column label="数量" align="center">
151
           <template slot-scope="scope">
151
           <template slot-scope="scope">
152
-            <span v-if="orgId!=9583">{{ scope.row.count }}</span>
153
-            <span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
152
+            <span v-if="scope.row.is_total == 0">
153
+              <span v-if="orgId!=9583">{{ scope.row.count }}</span>
154
+              <span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
155
+            </span> 
156
+            <span v-if="scope.row.is_total == 1">
157
+              {{scope.row.count}}
158
+            </span>
154
           </template>
159
           </template>
155
         </el-table-column>
160
         </el-table-column>
156
         <el-table-column label="总价" align="center">
161
         <el-table-column label="总价" align="center">
341
           this.wareOutList =  response.data.data.list
346
           this.wareOutList =  response.data.data.list
342
           console.log("党的20大长长",this.wareOutList)
347
           console.log("党的20大长长",this.wareOutList)
343
           var total = 0
348
           var total = 0
344
-
349
+          var objOne = {
350
+            warehouse_out_order_number: "合计",
351
+            is_total: 1,
352
+            total:total.toFixed(2),
353
+            WarehouseOut: {
354
+              warehouse_out_time: 0
355
+            },
356
+            count:0
357
+          }
345
           for (let i = 0; i < response.data.data.list.length; i++) {
358
           for (let i = 0; i < response.data.data.list.length; i++) {
346
             this.tableData.push(response.data.data.list[i])
359
             this.tableData.push(response.data.data.list[i])
347
 
360
 
349
             total += response.data.data.list[i].price * response.data.data.list[i].count
362
             total += response.data.data.list[i].price * response.data.data.list[i].count
350
             obj["is_total"] = 0;
363
             obj["is_total"] = 0;
351
             this.cancelStockDate.push(obj);
364
             this.cancelStockDate.push(obj);
352
-
365
+            objOne.count += response.data.data.list[i].count
353
           }
366
           }
354
-          this.cancelStockDate.push({
355
-            warehouse_out_order_number: "合计",
356
-            is_total: 1,
357
-            total:total.toFixed(2),
358
-            WarehouseOut: {
359
-              warehouse_out_time: 0
360
-            }
361
-          });
367
+       
368
+          this.cancelStockDate.push(objOne);
362
 
369
 
363
         }
370
         }
364
       });
371
       });
399
           this.wareOutList =  response.data.data.list
406
           this.wareOutList =  response.data.data.list
400
           console.log("党的20大长长",this.wareOutList)
407
           console.log("党的20大长长",this.wareOutList)
401
           var total = 0
408
           var total = 0
409
+          var objOne = {
410
+            warehouse_out_order_number: "合计",
411
+            is_total: 1,
412
+            total: total.toFixed(2),
413
+            WarehouseOut: {
414
+              warehouse_out_time: 0
415
+            },
416
+            count:0,
417
+          }
402
           for (let i = 0; i < response.data.data.list.length; i++) {
418
           for (let i = 0; i < response.data.data.list.length; i++) {
403
             this.tableData.push(response.data.data.list[i])
419
             this.tableData.push(response.data.data.list[i])
404
             var obj = response.data.data.list[i];
420
             var obj = response.data.data.list[i];
408
             if(response.data.data.list[i].price == 0){
424
             if(response.data.data.list[i].price == 0){
409
                total += response.data.data.list[i].GoodInfo.packing_price * response.data.data.list[i].count
425
                total += response.data.data.list[i].GoodInfo.packing_price * response.data.data.list[i].count
410
             }
426
             }
411
-
427
+            objOne.count +=response.data.data.list[i].count
412
             obj["is_total"] = 0;
428
             obj["is_total"] = 0;
429
+            
413
             this.cancelStockDate.push(obj);
430
             this.cancelStockDate.push(obj);
414
           }
431
           }
415
 
432
 
416
           this.tableDataList = response.data.data.list
433
           this.tableDataList = response.data.data.list
417
 
434
 
418
-          this.cancelStockDate.push({
419
-            warehouse_out_order_number: "合计",
420
-            is_total: 1,
421
-            total: total.toFixed(2),
422
-            WarehouseOut: {
423
-              warehouse_out_time: 0
424
-            }
425
-          });
435
+          this.cancelStockDate.push(objOne);
426
 
436
 
427
         }
437
         }
428
       });
438
       });

+ 1 - 0
src/xt_pages/stock/drugs/components/drugQuery.vue View File

356
      goodList:[
356
      goodList:[
357
       {id:1,name:"全部药品"},
357
       {id:1,name:"全部药品"},
358
       {id:2,name:"库存预警"},
358
       {id:2,name:"库存预警"},
359
+      {id:3,name:"库存为零"},
359
      ],
360
      ],
360
      houseList:[],
361
      houseList:[],
361
      storehouse_id:0,
362
      storehouse_id:0,

+ 46 - 0
src/xt_pages/stock/drugs/drugStockFlow.vue View File

131
               {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
131
               {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
132
             
132
             
133
            </template>
133
            </template>
134
+        </el-table-column>
135
+         <!-- <el-table-column prop="drug_name" label="剩余库存" align="center">
136
+           <template slot-scope="scope">
137
+             {{scope.row.over_count}}
138
+           </template>
139
+        </el-table-column> -->
140
+        <el-table-column prop="drug_name" label="使用人" align="center">
141
+           <template slot-scope="scope">
142
+             <span > {{getPatientName(scope.row.patient_id)}}</span>
143
+           </template>
144
+        </el-table-column>
145
+        <el-table-column prop="drug_name" label="剩余库存" align="center">
146
+           <template slot-scope="scope">
147
+             <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
148
+           </template>
134
         </el-table-column>
149
         </el-table-column>
135
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
150
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
136
            <template slot-scope="scope">
151
            <template slot-scope="scope">
257
         total:0,
272
         total:0,
258
         drug:{},
273
         drug:{},
259
         houseList:[],
274
         houseList:[],
275
+        patientList:[],
260
       }
276
       }
261
     },
277
     },
262
     methods:{
278
     methods:{
509
             var drug = response.data.data.drug
525
             var drug = response.data.data.drug
510
            
526
            
511
             this.drug = drug
527
             this.drug = drug
528
+            this.patientList = response.data.data.patientList
512
 
529
 
513
             this.houseList = response.data.data.houseList
530
             this.houseList = response.data.data.houseList
514
           }
531
           }
552
       }
569
       }
553
       return storehouse_name
570
       return storehouse_name
554
      },
571
      },
572
+     getPatientName(id){
573
+       var name = ""
574
+       for(let i=0;i<this.patientList.length;i++){
575
+          if(id == this.patientList[i].id){
576
+              name = this.patientList[i].name
577
+          }
578
+       }
579
+       return name
580
+     },
581
+     getDrugCount(total,max_unit,min_unit,min_number){
582
+        var max_str = "";
583
+        var min_str = "";
584
+        if (total < min_number) {
585
+        min_str = total + min_unit;
586
+      }
587
+      if (total == 0) {
588
+        min_str = "";
589
+        max_str = "";
590
+      }
591
+      if (total >= min_number) {
592
+        if (parseInt(total / min_number) != 0) {
593
+          max_str = parseInt(total / min_number) + max_unit;
594
+        }
595
+        if (total % min_number != 0) {
596
+          min_str = (total % min_number) + min_unit;
597
+        }
598
+      }
599
+      return max_str + min_str;
600
+     }
555
     }
601
     }
556
   }
602
   }
557
 </script>
603
 </script>

+ 41 - 14
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

252
       >
252
       >
253
         <el-table-column label="药品名称" align="center">
253
         <el-table-column label="药品名称" align="center">
254
           <template slot-scope="scope">
254
           <template slot-scope="scope">
255
-            {{ scope.row.drug.drug_name }}
255
+            <span v-if="scope.row.is_total == 0">
256
+              {{ scope.row.drug.drug_name }}
257
+            </span> 
256
           </template>
258
           </template>
257
         </el-table-column>
259
         </el-table-column>
258
         <el-table-column label="药品类型" align="center">
260
         <el-table-column label="药品类型" align="center">
259
           <template slot-scope="scope">
261
           <template slot-scope="scope">
260
-            {{ getDrugType(scope.row.drug.drug_type) }}
262
+            <span v-if="scope.row.is_total == 0"> {{ getDrugType(scope.row.drug.drug_type) }}</span>
261
           </template>
263
           </template>
262
         </el-table-column>
264
         </el-table-column>
263
         <el-table-column label="规格&单位" align="center">
265
         <el-table-column label="规格&单位" align="center">
264
           <template slot-scope="scope">
266
           <template slot-scope="scope">
265
-            {{ scope.row.drug.dose }}&nbsp;{{ scope.row.drug.dose_unit }}*{{
267
+            <span v-if="scope.row.is_total ==0">{{ scope.row.drug.dose }}&nbsp;{{ scope.row.drug.dose_unit }}*{{
266
               scope.row.drug.min_number
268
               scope.row.drug.min_number
267
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
269
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
270
+            </span> 
268
           </template>
271
           </template>
269
         </el-table-column>
272
         </el-table-column>
270
         <el-table-column label="国家编码" align="center">
273
         <el-table-column label="国家编码" align="center">
271
           <template slot-scope="scope">
274
           <template slot-scope="scope">
272
-            {{ scope.row.drug.medical_insurance_number }}
275
+            <span v-if="scope.row.is_total == 0">
276
+               {{ scope.row.drug.medical_insurance_number }}
277
+            </span>
273
           </template>
278
           </template>
274
         </el-table-column>
279
         </el-table-column>
275
         <el-table-column label="批号" align="center">
280
         <el-table-column label="批号" align="center">
276
           <template slot-scope="scope">
281
           <template slot-scope="scope">
277
-            {{ scope.row.batch_number }}
282
+            <span v-if="scope.row.is_total == 0"> {{ scope.row.batch_number }}</span>
278
           </template>
283
           </template>
279
         </el-table-column>
284
         </el-table-column>
280
         <el-table-column label="仓库名称" align="center">
285
         <el-table-column label="仓库名称" align="center">
281
           <template slot-scope="scope">
286
           <template slot-scope="scope">
282
-            {{ getHouseName(scope.row.storehouse_id) }}
287
+            <span v-if="scope.row.is_total == 0">
288
+               {{ getHouseName(scope.row.storehouse_id) }}
289
+            </span>
283
           </template>
290
           </template>
284
         </el-table-column>
291
         </el-table-column>
285
         <el-table-column label="入库数量" align="center">
292
         <el-table-column label="入库数量" align="center">
286
           <template slot-scope="scope">
293
           <template slot-scope="scope">
287
-            {{ scope.row.warehousing_count }}{{ scope.row.max_unit }}
294
+            <span v-if="scope.row.is_total == 0">
295
+               {{ scope.row.warehousing_count }}{{ scope.row.max_unit }}
296
+            </span>
288
           </template>
297
           </template>
289
         </el-table-column>
298
         </el-table-column>
290
         <!-- <el-table-column label="拆零零售价" align="center">
299
         <!-- <el-table-column label="拆零零售价" align="center">
294
         </el-table-column> -->
303
         </el-table-column> -->
295
         <el-table-column label="进货价" align="center">
304
         <el-table-column label="进货价" align="center">
296
           <template slot-scope="scope">
305
           <template slot-scope="scope">
297
-            {{ scope.row.price }}
306
+            <span v-if="scope.row.is_total == 0">{{ scope.row.price }}</span> 
298
           </template>
307
           </template>
299
         </el-table-column>
308
         </el-table-column>
300
         <el-table-column label="总价" align="center">
309
         <el-table-column label="总价" align="center">
301
           <template slot-scope="scope">
310
           <template slot-scope="scope">
302
             <!-- {{scope.row.total_price}} -->
311
             <!-- {{scope.row.total_price}} -->
303
-            {{ (scope.row.warehousing_count * scope.row.price).toFixed(2) }}
312
+            <span v-if="scope.row.is_total == 0">{{ (scope.row.warehousing_count * scope.row.price).toFixed(2) }}</span> 
313
+            <span v-if="scope.row.is_total == 1">
314
+              {{(scope.row.total_count).toFixed(2)}}
315
+            </span>
304
           </template>
316
           </template>
305
         </el-table-column>
317
         </el-table-column>
306
         <el-table-column label="生产厂家" align="center">
318
         <el-table-column label="生产厂家" align="center">
307
           <template slot-scope="scope">
319
           <template slot-scope="scope">
308
-            {{ getManufacturer(scope.row.manufacturer) }}
320
+            <span v-if="scope.row.is_total== 0">
321
+               {{ getManufacturer(scope.row.manufacturer) }}
322
+            </span>
309
           </template>
323
           </template>
310
         </el-table-column>
324
         </el-table-column>
311
         <el-table-column label="生产日期" align="center">
325
         <el-table-column label="生产日期" align="center">
312
           <template slot-scope="scope">
326
           <template slot-scope="scope">
313
-            {{ getTime(scope.row.product_date) }}
327
+           <span v-if="scope.row.is_total ==0">{{ getTime(scope.row.product_date) }} </span>  
314
           </template>
328
           </template>
315
         </el-table-column>
329
         </el-table-column>
316
         <el-table-column label="有效日期" align="center">
330
         <el-table-column label="有效日期" align="center">
317
           <template slot-scope="scope">
331
           <template slot-scope="scope">
332
+           <span v-if="scope.row.is_total == 0">
318
             {{ getTime(scope.row.expiry_date) }}
333
             {{ getTime(scope.row.expiry_date) }}
334
+            </span> 
319
           </template>
335
           </template>
320
         </el-table-column>
336
         </el-table-column>
321
         <el-table-column label="经销商" align="center">
337
         <el-table-column label="经销商" align="center">
322
           <template slot-scope="scope">
338
           <template slot-scope="scope">
323
-            {{ getDealer(scope.row.dealer) }}
339
+            <span v-if="scope.row.is_total == 0">
340
+               {{ getDealer(scope.row.dealer) }}
341
+            </span>
324
           </template>
342
           </template>
325
         </el-table-column>
343
         </el-table-column>
326
         <el-table-column label="批准文号" align="center">
344
         <el-table-column label="批准文号" align="center">
327
           <template slot-scope="scope">
345
           <template slot-scope="scope">
328
-            {{ scope.row.number }}
346
+            <span v-if="scope.row.is_total == 0">
347
+               {{ scope.row.number }}
348
+            </span>
329
           </template>
349
           </template>
330
         </el-table-column>
350
         </el-table-column>
331
         <el-table-column label="备注" align="center">
351
         <el-table-column label="备注" align="center">
332
           <template slot-scope="scope">
352
           <template slot-scope="scope">
333
-            {{ scope.row.remark }}
353
+           <span v-if="scope.row.is_total == 0">
354
+             {{ scope.row.remark }}
355
+           </span>
334
           </template>
356
           </template>
335
         </el-table-column>
357
         </el-table-column>
336
       </el-table>
358
       </el-table>
774
           this.$message.error(response.data.msg);
796
           this.$message.error(response.data.msg);
775
           return false;
797
           return false;
776
         } else {
798
         } else {
799
+          var obj = {total_count:0,is_total:1}
777
           for (let i = 0; i < response.data.data.info.length; i++) {
800
           for (let i = 0; i < response.data.data.info.length; i++) {
801
+            response.data.data.info[i].is_total = 0
778
             this.showOne = true;
802
             this.showOne = true;
779
             this.WarehouseInfo.warehouseInfoDate.push(
803
             this.WarehouseInfo.warehouseInfoDate.push(
780
               response.data.data.info[i]
804
               response.data.data.info[i]
781
             );
805
             );
806
+            obj.total_count += (response.data.data.info[i].warehousing_count *response.data.data.info[i].price)
782
           }
807
           }
808
+          this.WarehouseInfo.warehouseInfoDate.push(obj)
809
+        
783
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
810
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
784
           this.getAllDrugList();
811
           this.getAllDrugList();
785
         }
812
         }

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue View File

51
                    <span>{{ item.warehousing_count }}</span>
51
                    <span>{{ item.warehousing_count }}</span>
52
               </td>
52
               </td>
53
               <td style="line-height: 18px">
53
               <td style="line-height: 18px">
54
-                <span>{{item.max_unit}}</span>
54
+                <span>{{item.limax_unit}}</span>
55
               </td>
55
               </td>
56
               <td style="line-height:18px">
56
               <td style="line-height:18px">
57
                   <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
57
                   <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>

+ 12 - 5
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
305
                     <span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
305
                     <span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
306
                     <span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
306
                     <span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
307
-                    <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
307
+                    <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}} </span>
308
                   </td>
308
                   </td>
309
                </tr>
309
                </tr>
310
             </template>
310
             </template>
1222
           this.dealerList = response.data.data.dealerList;
1222
           this.dealerList = response.data.data.dealerList;
1223
           var drugFlowList = response.data.data.drugFlowList;
1223
           var drugFlowList = response.data.data.drugFlowList;
1224
           var drugList = response.data.data.drugList
1224
           var drugList = response.data.data.drugList
1225
-        
1225
+         
1226
           this.tabList = drugList
1226
           this.tabList = drugList
1227
           var drugListOne = response.data.data.drugListFlow
1227
           var drugListOne = response.data.data.drugListFlow
1228
+          console.log("drugListOne----------",drugListOne)
1228
           //按批号分组
1229
           //按批号分组
1229
           var drugListTwo=  response.data.data.drugListOne
1230
           var drugListTwo=  response.data.data.drugListOne
1230
           console.log("drugListTwo9922wo",drugListTwo)
1231
           console.log("drugListTwo9922wo",drugListTwo)
1247
                        drugFlowList[i].childOne.push(drugListOne[j])
1248
                        drugFlowList[i].childOne.push(drugListOne[j])
1248
                    }
1249
                    }
1249
                 }
1250
                 }
1251
+                if(drugFlowList[i].drug_id == 1154){
1252
+                    console.log("drugflowlist------",drugFlowList[i].count)
1253
+                }
1250
               }
1254
               }
1251
             }
1255
             }
1252
           
1256
           
1311
                } 
1315
                } 
1312
             }
1316
             }
1313
           }
1317
           }
1318
+          console.log("list表格---------",list)
1314
           this.tableList = list;
1319
           this.tableList = list;
1315
         }
1320
         }
1316
         if(is_sys == 12){
1321
         if(is_sys == 12){
1821
       }
1826
       }
1822
       return max_str + min_str;
1827
       return max_str + min_str;
1823
     },
1828
     },
1824
-    getOutCountOne(batch_number,max_unit,min_unit,min_number){
1825
-     
1829
+    getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id){
1830
+      console.log("drug_id-----",drug_id)
1826
       var arr = []
1831
       var arr = []
1827
       var total = 0
1832
       var total = 0
1828
       var max_str = ""
1833
       var max_str = ""
1829
       var min_str = ""
1834
       var min_str = ""
1835
+      console.log("tablelost----",this.tabList)
1830
       for(let j=0;j<this.tabList.length;j++){
1836
       for(let j=0;j<this.tabList.length;j++){
1831
-        if(batch_number == this.tabList[j].batch_number){
1837
+      
1838
+        if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id){
1832
            arr.push(this.tabList[j])
1839
            arr.push(this.tabList[j])
1833
         }
1840
         }
1834
       }
1841
       }

+ 1 - 0
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue View File

915
           this.$message.error(response.data.msg);
915
           this.$message.error(response.data.msg);
916
           return false;
916
           return false;
917
         } else {
917
         } else {
918
+          this.recordInfo.recordData = []
918
           var manulist = response.data.data.manulist;
919
           var manulist = response.data.data.manulist;
919
           this.manufacturerList = manulist;
920
           this.manufacturerList = manulist;
920
           this.dealerList = response.data.data.dealerList;
921
           this.dealerList = response.data.data.dealerList;

+ 1 - 0
src/xt_pages/stock/query/goodNewQuery.vue View File

320
      goodList:[
320
      goodList:[
321
       {id:1,name:"全部耗材"},
321
       {id:1,name:"全部耗材"},
322
       {id:2,name:"库存预警"},
322
       {id:2,name:"库存预警"},
323
+      {id:3,name:"库存为零"},
323
      ],
324
      ],
324
      houseList:[],
325
      houseList:[],
325
      storehouse_id:0,
326
      storehouse_id:0,

+ 21 - 0
src/xt_pages/stock/stockFlow.vue View File

131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
132
            </template>
132
            </template>
133
         </el-table-column>
133
         </el-table-column>
134
+        <el-table-column prop="drug_name" label="使用人" align="center">
135
+           <template slot-scope="scope">
136
+             <span > {{getPatientName(scope.row.patient_id)}}</span>
137
+           </template>
138
+        </el-table-column>
139
+        <el-table-column prop="drug_name" label="剩余库存" align="center">
140
+           <template slot-scope="scope">
141
+             <span > {{scope.row.over_count}}</span>
142
+           </template>
143
+        </el-table-column>
134
        </el-table>
144
        </el-table>
135
        
145
        
136
       <el-pagination
146
       <el-pagination
236
         cancelCountList:[],
246
         cancelCountList:[],
237
         good:{},
247
         good:{},
238
         houseList:[],
248
         houseList:[],
249
+        patientList:[]
239
       }
250
       }
240
     },
251
     },
241
     methods:{
252
     methods:{
443
            var manufacturerList = response.data.data.manufacturerList
454
            var manufacturerList = response.data.data.manufacturerList
444
            this.manufacturerList = manufacturerList
455
            this.manufacturerList = manufacturerList
445
            this.houseList = response.data.data.houseList
456
            this.houseList = response.data.data.houseList
457
+           this.patientList = response.data.data.patients
446
           }
458
           }
447
        })
459
        })
448
      },
460
      },
469
          specification_name = this.good.specification_name
481
          specification_name = this.good.specification_name
470
        }
482
        }
471
        return specification_name
483
        return specification_name
484
+     },
485
+     getPatientName(id){
486
+       var name = ""
487
+       for(let i=0;i<this.patientList.length;i++){
488
+          if(id == this.patientList[i].id){
489
+              name = this.patientList[i].name
490
+          }
491
+       }
492
+       return name
472
      }
493
      }
473
     }
494
     }
474
   }
495
   }

+ 54 - 16
src/xt_pages/stock/stockInOrder.vue View File

239
         >
239
         >
240
         <el-table-column label="耗材名称" align="center">
240
         <el-table-column label="耗材名称" align="center">
241
           <template slot-scope="scope">
241
           <template slot-scope="scope">
242
+           <span v-if="scope.row.is_total == 0">
242
             {{ scope.row.GoodInfo.good_name }}
243
             {{ scope.row.GoodInfo.good_name }}
244
+            </span> 
243
           </template>
245
           </template>
244
         </el-table-column>
246
         </el-table-column>
245
         <el-table-column label="耗材类型" align="center">
247
         <el-table-column label="耗材类型" align="center">
246
           <template slot-scope="scope">
248
           <template slot-scope="scope">
247
-            {{  getTypeName(scope.row.GoodInfo.good_type_id)}}
249
+            <span v-if="scope.row.is_total ==0">
250
+              {{ getTypeName(scope.row.GoodInfo.good_type_id)}}
251
+            </span> 
248
           </template>
252
           </template>
249
         </el-table-column>
253
         </el-table-column>
250
         <el-table-column label="规格&单位" align="center">
254
         <el-table-column label="规格&单位" align="center">
251
           <template slot-scope="scope">
255
           <template slot-scope="scope">
252
-            {{ scope.row.GoodInfo.specification_name}} / {{scope.row.GoodInfo.packing_unit}}
256
+            <span v-if="scope.row.is_total == 0">
257
+               {{ scope.row.GoodInfo.specification_name}} / {{scope.row.GoodInfo.packing_unit}}
258
+            </span>
253
           </template>
259
           </template>
254
         </el-table-column>
260
         </el-table-column>
255
         <el-table-column label="国家编码" align="center">
261
         <el-table-column label="国家编码" align="center">
256
           <template slot-scope="scope">
262
           <template slot-scope="scope">
257
-            {{ scope.row.GoodInfo.social_security_directory_code}}
263
+            <span v-if="scope.row.is_total == 0">
264
+              {{ scope.row.GoodInfo.social_security_directory_code}}
265
+            </span> 
258
           </template>
266
           </template>
259
         </el-table-column>
267
         </el-table-column>
260
         <el-table-column label="批号" align="center">
268
         <el-table-column label="批号" align="center">
261
           <template slot-scope="scope">
269
           <template slot-scope="scope">
262
-            {{ scope.row.number}}
270
+            <span v-if="scope.row.is_total== 0">
271
+               {{ scope.row.number}}
272
+            </span>
263
           </template>
273
           </template>
264
         </el-table-column>
274
         </el-table-column>
265
          <el-table-column label="仓库名称" align="center">
275
          <el-table-column label="仓库名称" align="center">
266
           <template slot-scope="scope">
276
           <template slot-scope="scope">
267
-            {{getHouseName(scope.row.storehouse_id)}}
277
+            <span v-if="scope.row.is_total == 0">
278
+              {{getHouseName(scope.row.storehouse_id)}}
279
+            </span> 
268
           </template>
280
           </template>
269
         </el-table-column>
281
         </el-table-column>
270
 
282
 
271
         <el-table-column label="入库数量" align="center">
283
         <el-table-column label="入库数量" align="center">
272
           <template slot-scope="scope">
284
           <template slot-scope="scope">
273
-            {{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}}
285
+           <span v-if="scope.row.is_total == 0">{{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}} </span> 
274
           </template>
286
           </template>
275
         </el-table-column>
287
         </el-table-column>
276
          <!-- <el-table-column label="零售价" align="center">
288
          <!-- <el-table-column label="零售价" align="center">
280
         </el-table-column> -->
292
         </el-table-column> -->
281
         <el-table-column label="进货价" align="center">
293
         <el-table-column label="进货价" align="center">
282
           <template slot-scope="scope">
294
           <template slot-scope="scope">
283
-            {{ scope.row.price}}
295
+            <span v-if="scope.row.is_total == 0">
296
+              {{ scope.row.price}}
297
+            </span> 
284
           </template>
298
           </template>
285
         </el-table-column>
299
         </el-table-column>
286
         <el-table-column label="总价" align="center">
300
         <el-table-column label="总价" align="center">
287
           <template slot-scope="scope">
301
           <template slot-scope="scope">
288
-            {{ (scope.row.warehousing_count * scope.row.price).toFixed(2)}}
302
+            <span v-if="scope.row.is_total==0">
303
+               {{ (scope.row.warehousing_count * scope.row.price).toFixed(2)}}
304
+            </span>
305
+            <span v-if="scope.row.is_total== 1">
306
+              {{(scope.row.total_count).toFixed(2)}}
307
+            </span>
289
           </template>
308
           </template>
290
         </el-table-column>
309
         </el-table-column>
291
         <el-table-column label="生产厂家" align="center">
310
         <el-table-column label="生产厂家" align="center">
292
           <template slot-scope="scope">
311
           <template slot-scope="scope">
293
-            {{ getManufactuerName(scope.row.manufacturer)}}
312
+            <span v-if="scope.row.is_total == 0">
313
+              {{ getManufactuerName(scope.row.manufacturer)}}
314
+             </span> 
294
           </template>
315
           </template>
295
         </el-table-column>
316
         </el-table-column>
296
         <el-table-column label="生产日期" align="center">
317
         <el-table-column label="生产日期" align="center">
297
           <template slot-scope="scope">
318
           <template slot-scope="scope">
298
-            {{ getTime(scope.row.product_date,"{y}-{m}-{d}")}}
319
+           <span v-if="scope.row.is_total == 0">
320
+             {{ getTime(scope.row.product_date,"{y}-{m}-{d}")}}
321
+            </span> 
299
           </template>
322
           </template>
300
         </el-table-column>
323
         </el-table-column>
301
         <el-table-column label="有效期" align="center">
324
         <el-table-column label="有效期" align="center">
302
           <template slot-scope="scope">
325
           <template slot-scope="scope">
303
-            {{ getTime(scope.row.expiry_date,"{y}-{m}-{d}")}}
326
+            <span v-if="scope.row.is_total == 0">
327
+               {{ getTime(scope.row.expiry_date,"{y}-{m}-{d}")}}
328
+            </span>
304
           </template>
329
           </template>
305
         </el-table-column>
330
         </el-table-column>
306
        <el-table-column label="经销商" align="center">
331
        <el-table-column label="经销商" align="center">
307
           <template slot-scope="scope">
332
           <template slot-scope="scope">
308
-            {{ getDealerName(scope.row.dealer)}}
333
+          <span v-if="scope.row.is_total == 0">
334
+             {{ getDealerName(scope.row.dealer)}}
335
+            </span>  
309
           </template>
336
           </template>
310
         </el-table-column>
337
         </el-table-column>
311
        <el-table-column label="批准文号" align="center">
338
        <el-table-column label="批准文号" align="center">
312
           <template slot-scope="scope">
339
           <template slot-scope="scope">
313
-            {{ scope.row.license_number}}
340
+           <span v-if="scope.row.is_total ==0"> {{ scope.row.license_number}}</span>
314
           </template>
341
           </template>
315
         </el-table-column>
342
         </el-table-column>
316
         <el-table-column label="注册编码" align="center">
343
         <el-table-column label="注册编码" align="center">
317
           <template slot-scope="scope">
344
           <template slot-scope="scope">
318
-            {{ scope.row.register_number}}
345
+            <span v-if="scope.row.is_total == 0">
346
+               {{ scope.row.register_number}}
347
+            </span>
319
           </template>
348
           </template>
320
         </el-table-column>
349
         </el-table-column>
321
         <el-table-column label="备注" align="center">
350
         <el-table-column label="备注" align="center">
322
           <template slot-scope="scope">
351
           <template slot-scope="scope">
323
-            {{ scope.row.remark }}
352
+            <span v-if="scope.row.is_total == 0">
353
+               {{ scope.row.remark }}
354
+            </span>
324
           </template>
355
           </template>
325
         </el-table-column>
356
         </el-table-column>
326
         </el-table>
357
         </el-table>
423
           <el-table-column label="总价" min-width="20" align="center">
454
           <el-table-column label="总价" min-width="20" align="center">
424
             <template slot-scope="scope">
455
             <template slot-scope="scope">
425
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
456
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
457
+             
426
             </template>
458
             </template>
427
           </el-table-column>
459
           </el-table-column>
428
 
460
 
1325
           return false;
1357
           return false;
1326
         } else {
1358
         } else {
1327
           this.tableShow = true
1359
           this.tableShow = true
1360
+          var  obj = {name:"总计",total_count:0,is_total:1}
1328
           for (let i = 0; i < response.data.data.info.length; i++) {
1361
           for (let i = 0; i < response.data.data.info.length; i++) {
1329
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1362
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1330
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1363
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1331
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1364
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1332
-
1365
+           
1333
             this.recordInfo.recordData.push(response.data.data.info[i]);
1366
             this.recordInfo.recordData.push(response.data.data.info[i]);
1367
+            console.log("tablelist+++==+",this.tableList)
1368
+            response.data.data.info[i].total_count = (response.data.data.info[i].warehousing_count * response.data.data.info[i].price).toFixed(2)
1369
+            response.data.data.info[i].is_total = 0
1370
+            obj.total_count += (response.data.data.info[i].warehousing_count * response.data.data.info[i].price)
1334
             this.tableList.push(response.data.data.info[i])
1371
             this.tableList.push(response.data.data.info[i])
1335
           }
1372
           }
1373
+           this.tableList.push(obj)
1336
            this.warehouse = response.data.data.warehousing;
1374
            this.warehouse = response.data.data.warehousing;
1337
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1375
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1338
 
1376
 

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

255
                 </el-form-item>
255
                 </el-form-item>
256
               </el-col>
256
               </el-col>
257
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
257
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
258
-                <el-form-item label="家属电话 : " prop="homeTelephone">
258
+                <el-form-item label="家属电话 : " prop="homeTelephone"  class="is-required">
259
                   <el-input
259
                   <el-input
260
                     v-model="form.homeTelephone"
260
                     v-model="form.homeTelephone"
261
                     maxlength="20"
261
                     maxlength="20"
441
               </el-col>
441
               </el-col>
442
 
442
 
443
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
443
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
444
-                <el-form-item label="家庭住址 : " prop="homeAddress">
444
+                <el-form-item label="家庭住址 : " prop="homeAddress"  class="is-required">
445
                   <el-input v-model="form.homeAddress"></el-input>
445
                   <el-input v-model="form.homeAddress"></el-input>
446
                 </el-form-item>
446
                 </el-form-item>
447
               </el-col>
447
               </el-col>
1336
         age: [{ required: true, message: "请填写年龄", trigger: "blur" }],
1336
         age: [{ required: true, message: "请填写年龄", trigger: "blur" }],
1337
         firstDialysisDate: [
1337
         firstDialysisDate: [
1338
           { required: true, message: "请选择日期", trigger: "blur" }
1338
           { required: true, message: "请选择日期", trigger: "blur" }
1339
-        ]
1340
-
1341
-        // homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
1342
-        // homeAddress: [{ required: true, message: "请填写住址", trigger: "blur" }],
1339
+        ],
1340
+      
1341
+        homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
1342
+        homeAddress: [{ required: true, message: "请填写住址", trigger: "blur" }],
1343
       },
1343
       },
1344
       adminUserOptions:[],
1344
       adminUserOptions:[],
1345
     };
1345
     };

+ 10 - 0
src/xt_pages/user/components/PatientSidebar.vue View File

121
             {
121
             {
122
               name: '1-5',
122
               name: '1-5',
123
               label: '抢救记录'
123
               label: '抢救记录'
124
+            },
125
+            {
126
+              name: '1-11',
127
+              label: '首次病程记录'
124
             }
128
             }
125
           ]
129
           ]
126
         },
130
         },
195
         this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
199
         this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
196
       }else if(name == '1-10'){
200
       }else if(name == '1-10'){
197
         this.$router.push({path:'/patient/patient/'+this.id+'/hospitalSummary'})
201
         this.$router.push({path:'/patient/patient/'+this.id+'/hospitalSummary'})
202
+      }else if(name == '1-11'){
203
+        this.$router.push({path:'/patient/patient/'+this.id+'/firstDisease'})
198
       }
204
       }
199
     },
205
     },
200
     changePatient(value) {
206
     changePatient(value) {
320
         this.$router.push({
326
         this.$router.push({
321
           path: '/patients/patient/' + this.id + '/dryWeight'
327
           path: '/patients/patient/' + this.id + '/dryWeight'
322
         })
328
         })
329
+      }else if(patientKey == '1-11'){
330
+       this.$router.push({
331
+          path: '/patients/patient/' + this.id + '/firstDisease'
332
+        })
323
       }
333
       }
324
        else if (patientKey == '1-5') {
334
        else if (patientKey == '1-5') {
325
         this.$router.push({ path: '/patients/rescue?id=' + this.id })
335
         this.$router.push({ path: '/patients/rescue?id=' + this.id })

+ 65 - 15
src/xt_pages/user/coursePrint.vue View File

60
 
60
 
61
               </div>
61
               </div>
62
             </div>
62
             </div>
63
+
64
+            <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;float:right" v-if="org_id == 0||org_id ==9671 || org_id == 10440">
65
+             医生签名:
66
+             <span v-if="setAdminUserES(item.recorder?item.recorder:item.recorder) == ''">
67
+                  {{getName(item.recorder)}}
68
+             </span>
69
+              <span v-else>
70
+                <img style="height:30px;" :src="setAdminUserES(item.recorder?item.recorder:item.recorder)" alt="" srcset="">
71
+              </span>
72
+            </div>
63
           </div>
73
           </div>
74
+
75
+        
64
         </div>
76
         </div>
65
       </div>
77
       </div>
66
     </div>
78
     </div>
91
         record:[],
103
         record:[],
92
         patient: {},
104
         patient: {},
93
         org_id:0,
105
         org_id:0,
106
+        adminUserList:[],
107
+        operators:[],
108
+        operatorMaps: {},
94
       }
109
       }
95
     },
110
     },
96
     created() {
111
     created() {
114
         if (resp.state == 1) {
129
         if (resp.state == 1) {
115
           this.record = resp.data.record
130
           this.record = resp.data.record
116
 
131
 
117
-          // for(let i=0;i<this.record.length;i++){
118
-          //   this.record[i].content = this.record[i].content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
119
-          // }
120
-
121
           this.patient = resp.data.patient
132
           this.patient = resp.data.patient
122
-
133
+         
134
+          this.adminUserList = resp.data.adminUser
135
+          this.operators = resp.data.operators
136
+           console.log("GetCoursePrintData",this.operators)
137
+           if (this.operators.length > 0) {
138
+            var operatorsLen = this.operators.length
139
+            for (var index = 0; index < operatorsLen; index++) {
140
+              this.$set(
141
+                this.operatorMaps,
142
+                this.operators[index].creator,
143
+                this.operators[index]
144
+              )
145
+            }
146
+          }
147
+          console.log("operatorMaps",this.operatorMaps)
123
           this.loading = false
148
           this.loading = false
124
         } else {
149
         } else {
125
           this.loading = false
150
           this.loading = false
131
     },
156
     },
132
     methods: {
157
     methods: {
133
       printAction: function() {
158
       printAction: function() {
134
-        const style = '@media print {.printP div{margin-bottom:5px;} .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: 20px;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: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{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;}'
135
-        printJS({
136
-          printable: 'print_content',
137
-          type: 'html',
138
-          documentTitle: '  ',
139
-          style: style,
140
-          scanStyles: false
141
-        })
142
-      }, getTime(value, temp) {
159
+      const style = '@media print {.printP div{margin-bottom:5px;} .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: 20px;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: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{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;}'
160
+      printJS({
161
+        printable: 'print_content',
162
+        type: 'html',
163
+        documentTitle: '  ',
164
+        style: style,
165
+        scanStyles: false
166
+      })
167
+    },
168
+      getTime(value, temp) {
143
         if (value != undefined) {
169
         if (value != undefined) {
144
           return uParseTime(value, temp)
170
           return uParseTime(value, temp)
145
         }
171
         }
146
         return ''
172
         return ''
147
-      }
173
+      },
174
+      getName(admin_user_id){
175
+        var name = ""
176
+        for(let i=0;i<this.adminUserList.length;i++){
177
+          if(this.adminUserList[i].id == admin_user_id){
178
+            name = this.adminUserList[i].name
179
+          }
180
+        }
181
+        return name
182
+      },
183
+       setAdminUserES(id) {
184
+        console.log("id2323233232232333322==-",id)
185
+        console.log("operatorMaps----",this.operatorMaps)
186
+        if (id === 0) {
187
+          return ''
188
+        }
189
+        if (id in this.operatorMaps) {
190
+           console.log("----------",this.operatorMaps[id].url)
191
+          return this.operatorMaps[id].url
192
+         
193
+        } else {
194
+          return ''
195
+        }
196
+        
197
+       },
148
     }
198
     }
149
   }
199
   }
150
 </script>
200
 </script>

+ 47 - 4
src/xt_pages/user/dialysisSolution.vue View File

226
         <el-row :gutter="20">
226
         <el-row :gutter="20">
227
           <el-col :span="6"  v-if="isShows('置换液') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液:{{getDisplaceLiqui(current_solution.displace_liqui_part)}}</div></el-col>
227
           <el-col :span="6"  v-if="isShows('置换液') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液:{{getDisplaceLiqui(current_solution.displace_liqui_part)}}</div></el-col>
228
           <el-col :span="6"  v-if="isShows('置换液总量') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液总量:{{current_solution.displace_liqui_value}}</div></el-col>
228
           <el-col :span="6"  v-if="isShows('置换液总量') && (current_solution.mode_id == 2 || current_solution.mode_id == 5 || current_solution.mode_id == 12)"><div class="grid-content bg-purple">置换液总量:{{current_solution.displace_liqui_value}}</div></el-col>
229
+           <el-col :span="6"  v-if="isShows('滤过器')"><div class="grid-content bg-purple">滤过器:{{current_solution.dialysis_strainer}}</div></el-col>
229
         </el-row>
230
         </el-row>
230
         <el-row :gutter="20">
231
         <el-row :gutter="20">
231
           <el-col :span="6"  v-if="isShows('吸氧')"><div class="grid-content bg-purple">吸氧:
232
           <el-col :span="6"  v-if="isShows('吸氧')"><div class="grid-content bg-purple">吸氧:
512
             </el-form-item>
513
             </el-form-item>
513
           </el-col>
514
           </el-col>
514
 
515
 
515
-          <el-col :span="8" v-if="isShows('灌流器') && (addPlan.mode == 2 || addPlan.mode == 3 || addPlan.mode == 12 || addPlan.mode == 5)">
516
+          <el-col :span="8" v-if="isShows('灌流器')">
516
             <el-form-item label="灌流器:">
517
             <el-form-item label="灌流器:">
517
               <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
518
               <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
518
             </el-form-item>
519
             </el-form-item>
519
           </el-col>
520
           </el-col>
520
 
521
 
522
+
523
+
524
+          <el-col :span="8" v-if="isShows('滤过器')">
525
+            <el-form-item label="滤过器:">
526
+              <el-input v-model="dialysis_strainer" @focus="showInnerDialog('11')"></el-input>
527
+            </el-form-item>
528
+          </el-col>
529
+
521
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
530
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
522
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
531
             <el-form-item label="碳酸氢盐(mmol/L): " prop="bicarbonate">
523
               <el-input v-model="addPlan.bicarbonate"></el-input>
532
               <el-input v-model="addPlan.bicarbonate"></el-input>
1074
           epo_count:"",
1083
           epo_count:"",
1075
           max_ultrafiltration_rate:"",
1084
           max_ultrafiltration_rate:"",
1076
           amylaceum:"",
1085
           amylaceum:"",
1086
+          dialysis_strainer:"",
1077
         },
1087
         },
1078
         childPlan: {
1088
         childPlan: {
1079
           mode: '',
1089
           mode: '',
1190
           anticoagulant_weichi: '',
1200
           anticoagulant_weichi: '',
1191
           anticoagulant_zongliang: '',
1201
           anticoagulant_zongliang: '',
1192
           anticoagulant_gaimingcheng: '',
1202
           anticoagulant_gaimingcheng: '',
1193
-          anticoagulant_gaijiliang: ''
1203
+          anticoagulant_gaijiliang: '',
1204
+          dialysis_strainer:"",
1194
         },
1205
         },
1195
         queryParams: {
1206
         queryParams: {
1196
           page: 1,
1207
           page: 1,
1202
         dialyzers:[],
1213
         dialyzers:[],
1203
         dialysis_dialyszers:'',
1214
         dialysis_dialyszers:'',
1204
         dialysis_irrigation:"",
1215
         dialysis_irrigation:"",
1216
+        dialysis_strainer:"",
1217
+        dialysisStrainerList:[],
1205
         plasmaSeparatorList:[],
1218
         plasmaSeparatorList:[],
1206
         bilirubinAdsorptionColumn:[],
1219
         bilirubinAdsorptionColumn:[],
1207
         oxygenList:[
1220
         oxygenList:[
1333
             this.InnerDialogProps.selected = this.addPlan.puncture_needle
1346
             this.InnerDialogProps.selected = this.addPlan.puncture_needle
1334
             this.InnerDialogProps.isShowTextArea = false
1347
             this.InnerDialogProps.isShowTextArea = false
1335
 
1348
 
1349
+            break
1350
+           case '11':
1351
+            for(let i=0;i<this.dialysisStrainerList.length;i++){
1352
+              this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
1353
+            }
1354
+            this.InnerDialogProps.values = this.dialysisStrainerList
1355
+            this.InnerDialogProps.titles = '滤过器'
1356
+            this.InnerDialogProps.type = 'dialysis_strainer'
1357
+            this.InnerDialogProps.selected = this.dialysis_strainer
1358
+            this.InnerDialogProps.isShowTextArea = false
1359
+
1336
             break
1360
             break
1337
         }
1361
         }
1338
       },
1362
       },
1358
           case 'puncture_needle':
1382
           case 'puncture_needle':
1359
             this.addPlan.puncture_needle = val.value.join(',')
1383
             this.addPlan.puncture_needle = val.value.join(',')
1360
             break
1384
             break
1385
+          case 'dialysis_strainer':
1386
+             this.dialysis_strainer = val.value.join(',')
1387
+            break
1361
         }
1388
         }
1362
       },
1389
       },
1363
       innerDialogCancle: function() {
1390
       innerDialogCancle: function() {
1661
             }
1688
             }
1662
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1689
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1663
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1690
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1691
+            this.addPlan.dialysis_strainer = this.dialysis_strainer
1664
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1692
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1665
             if(this.addPlan.mode!=2 && this.addPlan.mode!=5&&this.addPlan.mode!=12){
1693
             if(this.addPlan.mode!=2 && this.addPlan.mode!=5&&this.addPlan.mode!=12){
1666
               this.addPlan.displace_liqui_part = 0
1694
               this.addPlan.displace_liqui_part = 0
1727
                 this.current_solution.epo_count = response.data.data.solution.epo_count
1755
                 this.current_solution.epo_count = response.data.data.solution.epo_count
1728
                 this.current_solution.max_ultrafiltration_rate = response.data.data.solution.max_ultrafiltration_rate
1756
                 this.current_solution.max_ultrafiltration_rate = response.data.data.solution.max_ultrafiltration_rate
1729
                 this.current_solution.remark = response.data.data.solution.remark
1757
                 this.current_solution.remark = response.data.data.solution.remark
1758
+                this.current_solution.dialysis_strainer = response.data.data.dialysis_strainer
1730
                 this.FindePatientDialysisLongSolutions()
1759
                 this.FindePatientDialysisLongSolutions()
1731
                 return false
1760
                 return false
1732
               }
1761
               }
1745
             const mode = '1'
1774
             const mode = '1'
1746
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1775
             this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1747
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1776
             this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1777
+            this.addPlan.dialysis_strainer = this.dialysis_strainer
1748
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1778
             this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1749
             console.log("add",this.addPlan)
1779
             console.log("add",this.addPlan)
1750
             createPatientDialysisSolution(
1780
             createPatientDialysisSolution(
1796
         this.getDialysisSolutionDetailList()
1826
         this.getDialysisSolutionDetailList()
1797
       },
1827
       },
1798
       openEdit(index, row) {
1828
       openEdit(index, row) {
1799
-
1829
+        console.log("row-------",row)
1800
         this.current_index = index
1830
         this.current_index = index
1801
         this.addPlan.id = row.id
1831
         this.addPlan.id = row.id
1802
         this.addPlan.mode = row.mode_id
1832
         this.addPlan.mode = row.mode_id
1924
         this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1954
         this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1925
         this.dialysis_irrigation = row.dialysis_irrigation
1955
         this.dialysis_irrigation = row.dialysis_irrigation
1926
         this.dialysis_dialyszers = row.dialysis_dialyszers
1956
         this.dialysis_dialyszers = row.dialysis_dialyszers
1957
+        this.dialysis_strainer = row.dialysis_strainer
1958
+        this.addPlan.dialysis_strainer = row.dialysis_strainer
1927
         this.addPlan.oxygen_uptake = row.oxygen_uptake
1959
         this.addPlan.oxygen_uptake = row.oxygen_uptake
1928
         this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1960
         this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1929
         this.addPlan.oxygen_flow = row.oxygen_flow
1961
         this.addPlan.oxygen_flow = row.oxygen_flow
1930
         this.addPlan.oxygen_time = row.oxygen_time
1962
         this.addPlan.oxygen_time = row.oxygen_time
1963
+       
1931
         if(row.oxygen_uptake == 1){
1964
         if(row.oxygen_uptake == 1){
1932
           this.oxygenShow = true
1965
           this.oxygenShow = true
1933
         }
1966
         }
2112
             if(this.stockType.length >0 ){
2145
             if(this.stockType.length >0 ){
2113
               var arr = []
2146
               var arr = []
2114
               var arrTwo = []
2147
               var arrTwo = []
2148
+              var arrThree = []
2115
               for(let i=0;i<this.stockType.length;i++){
2149
               for(let i=0;i<this.stockType.length;i++){
2116
                 if(this.stockType[i].stock_attribute == 2){
2150
                 if(this.stockType[i].stock_attribute == 2){
2117
                   arr.push(this.stockType[i])
2151
                   arr.push(this.stockType[i])
2119
                 if(this.stockType[i].stock_attribute == 3){
2153
                 if(this.stockType[i].stock_attribute == 3){
2120
                   arrTwo.push(this.stockType[i])
2154
                   arrTwo.push(this.stockType[i])
2121
                 }
2155
                 }
2156
+                 if(this.stockType[i].stock_attribute == 4){
2157
+                  arrThree.push(this.stockType[i])
2158
+                }
2122
               }
2159
               }
2123
               var dialyzator = []
2160
               var dialyzator = []
2124
               var irrigation = []
2161
               var irrigation = []
2162
+              var dialysisStrainer = []
2125
               for(let i=0;i<arr.length;i++){
2163
               for(let i=0;i<arr.length;i++){
2126
                 for(let j=0;j<arr[i].GoodInfo.length;j++){
2164
                 for(let j=0;j<arr[i].GoodInfo.length;j++){
2127
                   dialyzator.push(arr[i].GoodInfo[j])
2165
                   dialyzator.push(arr[i].GoodInfo[j])
2129
               }
2167
               }
2130
               console.log("透析器",dialyzator)
2168
               console.log("透析器",dialyzator)
2131
               this.dialyzers = dialyzator
2169
               this.dialyzers = dialyzator
2132
-
2170
+              for(let i=0;i<arrThree.length;i++){
2171
+                for(let j=0;j<arrThree[i].GoodInfo.length;j++){
2172
+                  dialysisStrainer.push(arrThree[i].GoodInfo[j])
2173
+                }
2174
+              }
2175
+              this.dialysisStrainerList = dialysisStrainer
2133
               for(let i=0;i<arrTwo.length;i++){
2176
               for(let i=0;i<arrTwo.length;i++){
2134
                 for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
2177
                 for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
2135
                   irrigation.push(arrTwo[i].GoodInfo[j])
2178
                   irrigation.push(arrTwo[i].GoodInfo[j])

+ 18 - 1
src/xt_pages/user/doctorAdvice.vue View File

69
               v-for="item in adviceTypeArr"
69
               v-for="item in adviceTypeArr"
70
               :key="item.value"
70
               :key="item.value"
71
             >
71
             >
72
+            <span v-if="item.value == 1">
73
+             <span v-if="(org_id == 9671 || org_id == 10440)">
74
+                长期医嘱模版
75
+             </span>
76
+
77
+             <span v-if="(org_id != 9671 && org_id != 10440)">
78
+                {{ item.label }}
79
+             </span>
80
+            </span>
81
+            <span v-if="item.value != 1">
72
               {{ item.label }}
82
               {{ item.label }}
83
+            </span>
84
+            
85
+            
73
             </li>
86
             </li>
74
           </ul>
87
           </ul>
75
         </div>
88
         </div>
153
           fixed
166
           fixed
154
         >
167
         >
155
           <template slot-scope="scope">
168
           <template slot-scope="scope">
156
-            <span v-if="scope.row.advice_type == 1">长嘱</span>
169
+            <span v-if="scope.row.advice_type == 1">
170
+              <span v-if="org_id != 9671 && org_id != 10440">长嘱</span> 
171
+              <span v-if="org_id == 9671 || org_id == 10440">长期医嘱模版</span> 
172
+            </span>
157
             <span v-else-if="scope.row.advice_type == 3 || scope.row.advice_type == 2">临嘱</span>
173
             <span v-else-if="scope.row.advice_type == 3 || scope.row.advice_type == 2">临嘱</span>
158
             <span v-else-if="scope.row.advice_type == 4">普通医嘱</span>
174
             <span v-else-if="scope.row.advice_type == 4">普通医嘱</span>
159
             <span v-else></span>
175
             <span v-else></span>
560
                     v-for="item in adviceTypeOptions"
576
                     v-for="item in adviceTypeOptions"
561
                   ></el-option>
577
                   ></el-option>
562
                 </el-select>
578
                 </el-select>
579
+               
563
               </el-form-item>
580
               </el-form-item>
564
             </el-col>
581
             </el-col>
565
 
582
 

+ 871 - 0
src/xt_pages/user/firstDisease.vue View File

1
+<template>
2
+  <div class="patient-container">
3
+    <patient-sidebar :id="patient_id" defaultActive="1-11"></patient-sidebar>
4
+    <div v-loading="loading">
5
+      <div class="patient-app-container advice-container app-container">
6
+
7
+        <div>
8
+                    <span style="margin-left: 10px;float:right;">
9
+                        <el-button type="primary" icon="el-icon-circle-plus-outline" size="small"
10
+                                   @click="addAction">新增</el-button>
11
+
12
+                        <el-button type="primary" icon="el-icon-edit-outline" size="small"
13
+                                   @click="toEdit">修改</el-button>
14
+                      <el-button type="primary" icon="el-icon-printer" size="small"
15
+                                 @click="print">打印</el-button>
16
+                      <el-button size="small"  type="danger" @click="deleteAction">删除</el-button>
17
+                    </span>
18
+        </div>
19
+      
20
+        <div class="cell clearfix">
21
+          <label class="title"><span class="name">日期查询</span> : </label>
22
+          <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
23
+                          type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
24
+                          value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
25
+          <span class="">-</span>
26
+          <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
27
+                          type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
28
+                          value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
29
+        </div>
30
+        <div class="record">
31
+          <el-row :gutter="15">
32
+            <el-col :span="10">
33
+              <el-table :header-cell-style="{
34
+                  backgroundColor: 'rgb(245, 247, 250)',
35
+                  color: '#606266'
36
+                }"
37
+                :row-style="{ color: '#303133' }" ref="monthlyPlanTable" :data="tableData"
38
+                        border highlight-current-row @current-change="changeCurrentRecordTwo"
39
+                        @selection-change="selectSummary"
40
+                        :row-class-name="tableRow"
41
+              >
42
+                <el-table-column type="selection" width="60" align="center"></el-table-column>
43
+                <el-table-column label="标题" align="center">
44
+                  <template slot-scope="scope">
45
+                    {{scope.row.title}}
46
+                  </template>
47
+                </el-table-column>
48
+                <el-table-column label="记录日期" align="center">
49
+                  <template slot-scope="scope">
50
+                    {{getTimeOne(scope.row.record_date)}}
51
+                  </template>
52
+                </el-table-column>
53
+                <el-table-column label="记录医师" align="center">
54
+                  <template slot-scope="scope">
55
+                    {{getDoctor(scope.row.doctor)}}
56
+                  </template>
57
+                </el-table-column>
58
+              </el-table>
59
+            </el-col>
60
+            <el-col :span="14">
61
+              <div class="record_content_panel">
62
+                <div style="background-color:rgb(245, 247, 250)" class="title">出院小结内容</div>
63
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">标题:
64
+                   {{hosDetail.title}}
65
+                </div>
66
+            
67
+                
68
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">记录医师:
69
+                   {{getDoctor(hosDetail.doctor)}}
70
+                </div>
71
+                
72
+                 
73
+                
74
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">主诉内容:
75
+                   <span v-html="hosDetail.main_content"></span> 
76
+                 </div>
77
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">病例特点:
78
+                   <span v-html="hosDetail.patient_case"></span> 
79
+                 </div>
80
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">初步诊断:
81
+                    <span v-html="hosDetail.tentative_diagnosis"></span>
82
+                 </div>
83
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">诊断依据:
84
+                    <span v-html="hosDetail.diagnostic_basis"></span>
85
+                 </div>
86
+                   <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">鉴别诊断:
87
+                    <span v-html="hosDetail.differential_diagnosis"></span>
88
+                 </div>
89
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">诊疗计划:
90
+                    <span v-html="hosDetail.treatment_plan"></span>
91
+                 </div>
92
+               
93
+              </div>
94
+            </el-col>
95
+          </el-row>
96
+        </div>
97
+      </div>
98
+
99
+  
100
+     
101
+      <el-dialog title="新增首次病程记录" width="60%" top="5vh" :visible.sync="show_dialog">
102
+        <div>
103
+          <div class="new_record_form">
104
+            <div class="cell clearfix">
105
+              <label class="title"><span class="name">标题</span> : </label>
106
+               <el-input v-model="form.title" style="width:200px"></el-input>
107
+
108
+              <label class="title"><span class="name">记录医师</span>:</label>
109
+               <el-select v-model="form.doctor" placeholder="请选择">
110
+                  <el-option
111
+                  v-for="item in doctorList"
112
+                  :key="item.admin_user_id"
113
+                  :label="item.user_name"
114
+                  :value="item.admin_user_id">
115
+                  </el-option>
116
+              </el-select>
117
+            
118
+              <label class="title"><span class="name">记录日期</span> : </label>
119
+              <el-date-picker v-model="form.record_date"
120
+                    prefix-icon="el-icon-date" 
121
+                    style="width: 200px;"
122
+                    type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
123
+                    value-format="yyyy-MM-dd HH:mm">
124
+              </el-date-picker>   
125
+            </div>
126
+           
127
+        
128
+      
129
+            <div class="cell clearfix" style="margin-top:10px">
130
+              <label class="title"><span class="name">主诉内容</span> : </label>
131
+                <el-select v-model="form.main_content_id" placeholder="可选择病程模板" @change="changeMainContent">
132
+                  <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
133
+                            :value="option.content"></el-option>
134
+                </el-select>
135
+                
136
+                 <div class="textarea_panel">
137
+                    <keep-alive>
138
+                      <editor ref="editor"
139
+                              id="editor"
140
+                              style="width: 800px"
141
+                              v-bind:r_content="form.main_content">
142
+                      </editor>
143
+                    </keep-alive>
144
+                </div>
145
+
146
+                <label class="title"><span class="name">病例特点</span> : </label>
147
+                <el-select v-model="form.patient_case_id" placeholder="可选择病程模板" @change="changePatientCase">
148
+                  <el-option v-for="(option, index) in patientCaseList" :key="index" :label="option.title"
149
+                            :value="option.content"></el-option>
150
+                </el-select>
151
+                
152
+                 <div class="textarea_panel">
153
+                    <keep-alive>
154
+                      <editor ref="editorOne"
155
+                              id="editorOne"
156
+                              style="width: 800px"
157
+                              v-bind:r_content="form.patient_case">
158
+                      </editor>
159
+                    </keep-alive>
160
+                </div>
161
+
162
+                 <label class="title"><span class="name">初步诊断</span> : </label>
163
+                <el-select v-model="form.tentative_diagnosis_id" placeholder="可选择病程模板" @change="changeTentativeDiagnosis">
164
+                  <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
165
+                            :value="option.content"></el-option>
166
+                </el-select>
167
+                
168
+                 <div class="textarea_panel">
169
+                    <keep-alive>
170
+                      <editor ref="editorTwo"
171
+                              id="editorTwo"
172
+                              style="width: 800px"
173
+                              v-bind:r_content="form.tentative_diagnosis">
174
+                      </editor>
175
+                    </keep-alive>
176
+                </div>
177
+
178
+                <label class="title"><span class="name">诊断依据</span> : </label>
179
+                <el-select v-model="form.diagnostic_basis_id" placeholder="可选择病程模板" @change="changeDiagnosticBasis">
180
+                  <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
181
+                            :value="option.content"></el-option>
182
+                </el-select>
183
+                
184
+                 <div class="textarea_panel">
185
+                    <keep-alive>
186
+                      <editor ref="editorThree"
187
+                              id="editorThree"
188
+                              style="width: 800px"
189
+                              v-bind:r_content="form.diagnostic_basis">
190
+                      </editor>
191
+                    </keep-alive>
192
+                </div>
193
+
194
+                <label class="title"><span class="name">鉴别诊断</span> : </label>
195
+                <el-select v-model="form.differential_diagnosis_id" placeholder="可选择病程模板" @change="changeDifferentialDiagnosis">
196
+                  <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
197
+                            :value="option.content"></el-option>
198
+                </el-select>
199
+                
200
+                 <div class="textarea_panel">
201
+                    <keep-alive>
202
+                      <editor ref="editorFour"
203
+                              id="editorFour"
204
+                              style="width: 800px"
205
+                              v-bind:r_content="form.differential_diagnosis">
206
+                      </editor>
207
+                    </keep-alive>
208
+                </div>
209
+
210
+                <label class="title"><span class="name">诊疗计划</span> : </label>
211
+                <el-select v-model="form.treatment_plan_id" placeholder="可选择病程模板" @change="changeTreateMentContent">
212
+                  <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
213
+                            :value="option.content"></el-option>
214
+                </el-select>
215
+                
216
+                 <div class="textarea_panel">
217
+                    <keep-alive>
218
+                      <editor ref="editorFive"
219
+                              id="editorFive"
220
+                              style="width: 800px"
221
+                              v-bind:r_content="form.treatment_plan">
222
+                      </editor>
223
+                    </keep-alive>
224
+                </div>
225
+            </div>
226
+
227
+    
228
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
229
+              <el-button @click="show_dialog = false">取消</el-button>
230
+              <el-button type="primary"
231
+                         @click="createAction" :loading="uploading_new_record">保存
232
+              </el-button>
233
+            </div>
234
+          </div>
235
+        </div>
236
+      </el-dialog>
237
+      
238
+      <el-dialog title="编辑首次病程记录" width="60%" top="5vh" :visible.sync="edit_show_dialog">
239
+        <div>
240
+          <div class="new_record_form">
241
+            <div class="cell clearfix">
242
+              <label class="title"><span class="name">标题</span> : </label>
243
+               <el-input v-model="form.title" style="width:200px"></el-input>
244
+
245
+              <label class="title"><span class="name">记录医师</span>:</label>
246
+               <el-select v-model="form.doctor" placeholder="请选择">
247
+                  <el-option
248
+                  v-for="item in doctorList"
249
+                  :key="item.admin_user_id"
250
+                  :label="item.user_name"
251
+                  :value="item.admin_user_id">
252
+                  </el-option>
253
+              </el-select>
254
+            
255
+              <label class="title"><span class="name">记录日期</span> : </label>
256
+              <el-date-picker v-model="form.record_date"
257
+                    prefix-icon="el-icon-date" 
258
+                    style="width: 200px;"
259
+                    type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
260
+                    value-format="yyyy-MM-dd HH:mm">
261
+              </el-date-picker>   
262
+
263
+              
264
+            </div>
265
+
266
+             <div class="cell clearfix" style="margin-top:10px">
267
+              <label class="title"><span class="name">主诉内容</span> : </label>
268
+                <el-select v-model="form.main_content_id" placeholder="可选择病程模板" @change="changeMainContent">
269
+                  <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
270
+                            :value="option.content"></el-option>
271
+                </el-select>
272
+                
273
+                 <div class="textarea_panel">
274
+                    <keep-alive>
275
+                      <editor ref="editorTen"
276
+                              id="editorTen"
277
+                              style="width: 800px"
278
+                              v-bind:r_content="form.main_content">
279
+                      </editor>
280
+                    </keep-alive>
281
+                </div>
282
+
283
+                <label class="title"><span class="name">病例特点</span> : </label>
284
+                <el-select v-model="form.patient_case_id" placeholder="可选择病程模板" @change="changePatientCase">
285
+                  <el-option v-for="(option, index) in patientCaseList" :key="index" :label="option.title"
286
+                            :value="option.content"></el-option>
287
+                </el-select>
288
+                
289
+                 <div class="textarea_panel">
290
+                    <keep-alive>
291
+                      <editor ref="editorTenOne"
292
+                              id="editorTenOne"
293
+                              style="width: 800px"
294
+                              v-bind:r_content="form.patient_case">
295
+                      </editor>
296
+                    </keep-alive>
297
+                </div>
298
+
299
+                 <label class="title"><span class="name">初步诊断</span> : </label>
300
+                <el-select v-model="form.tentative_diagnosis_id" placeholder="可选择病程模板" @change="changeTentativeDiagnosis">
301
+                  <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
302
+                            :value="option.content"></el-option>
303
+                </el-select>
304
+                
305
+                 <div class="textarea_panel">
306
+                    <keep-alive>
307
+                      <editor ref="editorTenTwo"
308
+                              id="editorTenTwo"
309
+                              style="width: 800px"
310
+                              v-bind:r_content="form.tentative_diagnosis">
311
+                      </editor>
312
+                    </keep-alive>
313
+                </div>
314
+
315
+                <label class="title"><span class="name">诊断依据</span> : </label>
316
+                <el-select v-model="form.diagnostic_basis_id" placeholder="可选择病程模板" @change="changeDiagnosticBasis">
317
+                  <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
318
+                            :value="option.content"></el-option>
319
+                </el-select>
320
+                
321
+                 <div class="textarea_panel">
322
+                    <keep-alive>
323
+                      <editor ref="editorTenThree"
324
+                              id="editorTenThree"
325
+                              style="width: 800px"
326
+                              v-bind:r_content="form.diagnostic_basis">
327
+                      </editor>
328
+                    </keep-alive>
329
+                </div>
330
+
331
+                <label class="title"><span class="name">鉴别诊断</span> : </label>
332
+                <el-select v-model="form.differential_diagnosis_id" placeholder="可选择病程模板" @change="changeDifferentialDiagnosis">
333
+                  <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
334
+                            :value="option.content"></el-option>
335
+                </el-select>
336
+                
337
+                 <div class="textarea_panel">
338
+                    <keep-alive>
339
+                      <editor ref="editorTenFour"
340
+                              id="editorTenFour"
341
+                              style="width: 800px"
342
+                              v-bind:r_content="form.differential_diagnosis">
343
+                      </editor>
344
+                    </keep-alive>
345
+                </div>
346
+
347
+                <label class="title"><span class="name">诊疗计划</span> : </label>
348
+                <el-select v-model="form.treatment_plan_id" placeholder="可选择病程模板" @change="changeTreateMentContent">
349
+                  <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
350
+                            :value="option.content"></el-option>
351
+                </el-select>
352
+                
353
+                 <div class="textarea_panel">
354
+                    <keep-alive>
355
+                      <editor ref="editorTenFive"
356
+                              id="editorTenFive"
357
+                              style="width: 800px"
358
+                              v-bind:r_content="form.treatment_plan">
359
+                      </editor>
360
+                    </keep-alive>
361
+                </div>
362
+            </div>
363
+
364
+             <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
365
+              <el-button @click="edit_show_dialog = false">取消</el-button>
366
+              <el-button type="primary"
367
+                         @click="updateAction" :loading="uploading_new_record">保存
368
+              </el-button>
369
+            </div>
370
+          </div>
371
+        </div>
372
+      </el-dialog>
373
+    </div>
374
+  </div>
375
+</template>
376
+
377
+<script>
378
+  import PatientSidebar from './components/PatientSidebar'
379
+  import Editor from '@/components/Editor'
380
+
381
+  import { createFirstDisease,getFirstDiseaseList,getFirstDetail,updateFirstDisease,deleteFirstDisease} from '@/api/patient'
382
+  import { parseTime } from '@/utils'
383
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
384
+  import { uParseTime } from '@/utils/tools'
385
+  import { getDataConfig } from '@/utils/data'
386
+  import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
387
+ import MsgTip from '../dialysis/details/dialog/MsgTip'
388
+  import { getAllDoctorList } from "@/api/device"
389
+  const moment = require('moment')
390
+  export default {
391
+    name: 'hospitalSummary',
392
+    components: {
393
+      PatientSidebar,
394
+      BreadCrumb,
395
+      Editor,
396
+      MsgTip,
397
+      multiSelectBox,
398
+    },
399
+    data() {
400
+      return {
401
+        InnerDialogProps: {
402
+          values: [],
403
+          visibility: false,
404
+          isShowTextArea: true,
405
+          customContent: '',
406
+          titles: '',
407
+          type: '' // 不同弹框类型,用来匹配数据
408
+        },
409
+        loading: false,
410
+        title: '',
411
+        patient_id: 0,
412
+        date: [],
413
+        start_time: '',
414
+        end_time: '',
415
+        course_of_disease_time: '',
416
+        records: [],
417
+        doctors: [],
418
+        current_select_record: null,
419
+        show_dialog: false,
420
+        show_edit_dialog: false,
421
+        uploading_new_record: false,
422
+        edit_show_dialog:false,
423
+        mainContentList: this.$store.getters.configlist.main_content,
424
+        patientCaseList:this.$store.getters.configlist.patient_case,
425
+        tentativeDiagnosisList:this.$store.getters.configlist.tentative_diagnosis,
426
+        diagnosticBasisList:this.$store.getters.configlist.diagnostic_basis,
427
+        differentialDiagnosisList:this.$store.getters.configlist.differential_diagnosis,
428
+        treateMentList:this.$store.getters.configlist.treatment_plan,
429
+        select_template: '',
430
+        new_content: '',
431
+        edit_new_content: '',
432
+        edit_course_of_disease_time: '',
433
+        selectingRows: [],
434
+        table_current_index: -1,
435
+        edit_current_id: 0,
436
+        edit_title: '',
437
+        value:'',
438
+        form:{
439
+          id:0,
440
+          title:"",
441
+          doctor:this.$store.getters.xt_user.user.id,
442
+          record_date:this.getTimeOne(new Date()),
443
+          pathology:"",
444
+          record_time:"",
445
+          main_content_id:"",
446
+          main_content:"",
447
+          patient_case_id:"",
448
+          patient_case:"",
449
+          tentative_diagnosis_id:"",
450
+          tentative_diagnosis:"",
451
+          diagnostic_basis_id:"",
452
+          diagnostic_basis:"",
453
+          differential_diagnosis_id:"",
454
+          differential_diagnosis:"",
455
+          treatment_plan_id:"",
456
+          treatment_plan:""
457
+        },
458
+       tableData:[],
459
+       docList:[],
460
+       doctorList:[],
461
+       hosDetail:{},
462
+       ids:"",
463
+       patient:{},
464
+      }
465
+    },
466
+    created() {
467
+     
468
+      this.patient_id = this.$route.params && this.$route.params.id
469
+     
470
+     
471
+      var now = new Date()
472
+      this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
473
+
474
+      var nowDate = new Date()
475
+      var nowYear = nowDate.getFullYear()
476
+      var nowMonth = nowDate.getMonth() + 1
477
+
478
+      var nowDay = nowDate.getDate()
479
+      this.end_time =
480
+        nowYear +
481
+        '-' +
482
+        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
483
+        '-' +
484
+        (nowDay < 10 ? '0' + nowDay : nowDay)
485
+      nowDate.setMonth(nowDate.getMonth() - 1)
486
+      nowYear = nowDate.getFullYear()
487
+      nowMonth = nowDate.getMonth() + 1
488
+      nowDay = nowDate.getDate()
489
+      this.start_time =
490
+        nowYear +
491
+        '-' +
492
+        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
493
+        '-' +
494
+        (nowDay < 10 ? '0' + nowDay : nowDay)
495
+      this.other_start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' + (nowDay < 10 ? '0' + nowDay : nowDay)
496
+      
497
+     this.getAllDoctorList()
498
+     this.getlist()
499
+    
500
+    },
501
+    methods: {
502
+      getTime(val) {
503
+       if(val == "" || val == undefined){
504
+          return ""
505
+         }else {
506
+          return uParseTime(val, '{y}-{m}-{d}')
507
+         }
508
+      },
509
+
510
+      getTimeOne(val) {
511
+       if(val == "" || val == undefined){
512
+          return ""
513
+         }else {
514
+          return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
515
+         }
516
+      },
517
+
518
+      startTimeChange(val){
519
+       
520
+       this.start_time = val
521
+       this.getlist()
522
+      },
523
+      endTimeChange(val){
524
+       this.end_time = val
525
+       this.getlist()
526
+      },
527
+      print(){
528
+        this.$router.push({path:"/patient/patient/firstDisease/print?id="+this.form.id+"&patient_id="+this.patient_id})
529
+      },
530
+      tableRow(){
531
+
532
+       },
533
+      changeCurrentRecordTwo(row){
534
+       
535
+        this.form.id = 0
536
+        if(row!=null){
537
+          this.form.id = row.id 
538
+          this.getFirstDetail(row.id)
539
+        }
540
+      },
541
+      selectSummary(row){
542
+        var arr = []
543
+        for(let i=0;i<row.length;i++){
544
+          arr.push(row[i].id)
545
+        }
546
+       var ids = arr.join(",")
547
+       this.ids = ids
548
+      },
549
+     
550
+      changeMainContent(content){
551
+       this.form.main_content = content
552
+      },
553
+      changePatientCase(content){
554
+       this.form.patient_case = content
555
+      },
556
+      changeTentativeDiagnosis(content){
557
+      this.form.tentative_diagnosis = content
558
+      },
559
+      changeDiagnosticBasis(content){
560
+       this.form.diagnostic_basis =content
561
+      },
562
+      changeDifferentialDiagnosis(content){
563
+        this.form.differential_diagnosis = content
564
+      },
565
+      changeTreateMentContent(content){
566
+        this.form.treatment_plan = content
567
+      },
568
+      
569
+      createAction(){
570
+       
571
+         if(this.form.doctor == ""){
572
+            this.form.doctor = 0
573
+         }
574
+         var params = {
575
+          patient_id:parseInt(this.patient_id),
576
+          title:this.form.title,
577
+          main_content:this.$refs.editor.content,
578
+          patient_case:this.$refs.editorOne.content,
579
+          tentative_diagnosis:this.$refs.editorTwo.content,
580
+          diagnostic_basis:this.$refs.editorThree.content,
581
+          differential_diagnosis:this.$refs.editorFour.content,
582
+          treatment_plan:this.$refs.editorFive.content,
583
+          record_date:this.form.record_date,
584
+          doctor:this.form.doctor,
585
+         }
586
+         console.log("params",params)
587
+        
588
+         createFirstDisease(params).then(response=>{
589
+            if(response.data.state == 1){
590
+              var list = response.data.data.firstDisease
591
+             
592
+              this.$message.success("保存成功!")
593
+              this.show_dialog = false
594
+              this.getlist()
595
+            }
596
+         })
597
+      },
598
+      getAllDoctorList(){
599
+       getAllDoctorList().then(response=>{
600
+          if(response.data.state == 1){
601
+            var list = response.data.data.list
602
+
603
+            this.doctorList = list
604
+          }
605
+       })
606
+      },
607
+      getTime(val) {
608
+         if(val == ""){
609
+          return ""
610
+         }else {
611
+          return uParseTime(val, '{y}-{m}-{d}')
612
+         }
613
+      },
614
+
615
+      getlist(){
616
+          var params = {
617
+            start_time:this.start_time,
618
+            end_time:this.end_time,
619
+            patient_id:parseInt(this.patient_id),
620
+          }
621
+        getFirstDiseaseList(params).then(response=>{
622
+           if(response.data.state ==1){
623
+             var list =  response.data.data.list
624
+             this.tableData = list
625
+           }
626
+        })
627
+      },
628
+      getDoctor(id){
629
+        var name = ""
630
+        for(let i=0;i<this.doctorList.length;i++){
631
+          if(id == this.doctorList[i].admin_user_id){
632
+             name = this.doctorList[i].user_name
633
+          }
634
+        }
635
+        return name
636
+      },
637
+      getFirstDetail(id){
638
+        getFirstDetail(id).then(response=>{
639
+           if(response.data.state == 1){
640
+             var detail = response.data.data.detail
641
+            
642
+             this.hosDetail = detail
643
+           }
644
+        })
645
+      },
646
+      getHospitalSummaryDetailOne(id){
647
+        getFirstDetail(id).then(response=>{
648
+           if(response.data.state == 1){
649
+             var detail = response.data.data.detail
650
+             console.log("detial------",detail)
651
+             if(detail.doctor == 0){
652
+               this.form.doctor = ""
653
+             }
654
+             this.form.id = detail.id
655
+             this.form.title = detail.title
656
+             this.form.record_date = this.getTimeOne(detail.record_date)
657
+             this.form.doctor = detail.doctor
658
+             this.form.main_content = detail.main_content
659
+             this.form.patient_case = detail.patient_case
660
+             this.form.tentative_diagnosis = detail.tentative_diagnosis
661
+             this.form.diagnostic_basis = detail.diagnostic_basis
662
+             this.form.differential_diagnosis = detail.differential_diagnosis
663
+             this.form.treatment_plan =detail.treatment_plan
664
+             this.edit_show_dialog = true
665
+           }
666
+        })
667
+      },
668
+      toEdit(){
669
+        this.getHospitalSummaryDetailOne(this.form.id)
670
+      },
671
+      updateAction(){
672
+    
673
+        if(this.form.doctor == ""){
674
+            this.form.doctor = 0
675
+         }
676
+         if(this.form.dean == ""){
677
+           this.form.dean = 0
678
+         }
679
+
680
+         var main_content = ""
681
+         var patient_case = ""
682
+         var tentative_diagnosis = ""
683
+         var diagnostic_basis = ""
684
+         var differential_diagnosis = ""
685
+         var treatment_plan = ""
686
+         if(this.$refs.editorTen.content == ""){
687
+            main_content = this.hosDetail.main_content
688
+         }else{
689
+           main_content = this.$refs.editorTen.content
690
+         }
691
+
692
+         if(this.$refs.editorTenOne.content == ""){
693
+            patient_case = this.hosDetail.patient_case
694
+         }else{
695
+            patient_case = this.$refs.editorTenOne.content
696
+         }
697
+
698
+         if(this.$refs.editorTenTwo.content == ""){
699
+            tentative_diagnosis = this.hosDetail.tentative_diagnosis
700
+         }else{
701
+            tentative_diagnosis = this.$refs.editorTenTwo.content 
702
+         }
703
+
704
+         if(this.$refs.editorTenThree.content == ""){
705
+             diagnostic_basis = this.hosDetail.diagnostic_basis
706
+         }else{
707
+            diagnostic_basis = this.$refs.editorTenThree.content
708
+         }
709
+
710
+         if(this.$refs.editorTenFour.content == ""){
711
+            differential_diagnosis = this.hosDetail.differential_diagnosis
712
+         }else{
713
+            differential_diagnosis = this.$refs.editorTenFour.content
714
+         }
715
+
716
+         if(this.$refs.editorTenFive.content == ""){
717
+            treatment_plan = this.hosDetail.treatment_plan
718
+         }else{
719
+             treatment_plan = this.$refs.editorTenFive.content
720
+         }
721
+      
722
+         var params = {
723
+          id:this.form.id,
724
+          patient_id:parseInt(this.patient_id),
725
+          title:this.form.title,
726
+          doctor:this.form.doctor,
727
+          record_date:this.form.record_date,
728
+          main_content:main_content,
729
+          patient_case:patient_case,
730
+          tentative_diagnosis:tentative_diagnosis,
731
+          diagnostic_basis:diagnostic_basis,
732
+          differential_diagnosis:differential_diagnosis,
733
+          treatment_plan:treatment_plan,
734
+         }
735
+         console.log("poarams2323322323",params)
736
+        updateFirstDisease(params).then(response=>{
737
+          if(response.data.state == 1){
738
+            var detail = response.data.data.detail
739
+            this.edit_show_dialog = false
740
+            // this.$refs.monthlyPlanTable.setCurrentRow(detail)
741
+            this.getlist()
742
+          }
743
+        }) 
744
+      },
745
+      deleteAction(){
746
+          if(this.ids.length == 0){
747
+            this.$message.error("请勾选需要删除的数据")
748
+            return false
749
+          }
750
+          this.$confirm('确认删除吗?', '删除', {
751
+            confirmButtonText: '确 定',
752
+            cancelButtonText: '取 消',
753
+            type: 'warning'
754
+         }).then(() => {
755
+            var params = {
756
+              ids:this.ids,
757
+            }
758
+            deleteFirstDisease(params).then(response => {
759
+              if (response.data.state == 1) {
760
+                  var msg = response.data.data.msg
761
+                  this.getlist()
762
+                  this.$message.success("删除成功")
763
+              } else {
764
+                  this.$message.error("删除失败")
765
+              }
766
+            })
767
+          }).catch(() => {
768
+          }) 
769
+      },
770
+      addAction(){
771
+        this.form.title = ""
772
+        this.form.main_content = ""
773
+        this.form.patient_case = ""
774
+        this.form.tentative_diagnosis = ""
775
+        this.form.diagnostic_basis = ""
776
+        this.form.differential_diagnosis = ""
777
+        this.form.treatment_plan = ""
778
+        
779
+        this.show_dialog = true
780
+      },
781
+     
782
+    },
783
+    watch: {
784
+      tableData: function() {
785
+        this.$nextTick(function() {
786
+          this.$refs.monthlyPlanTable.setCurrentRow(this.tableData[0])
787
+        })
788
+      }
789
+    },
790
+  
791
+    
792
+  }
793
+</script>
794
+
795
+<style rel="stylesheet/css" lang="scss" scoped>
796
+  .borderBox{
797
+    border: 1px solid #DCDFE6;
798
+    padding: 10px;
799
+    margin-top: 10px;
800
+    border-radius: 4px;
801
+    p{
802
+      font-weight: bold;
803
+      font-size: 20px;
804
+      margin: 10px 0;
805
+    }
806
+  }
807
+  .container {
808
+    margin-left: 180px;
809
+    padding: 20px;
810
+    background: #fff;
811
+    min-height: calc(100vh - 173px);
812
+    margin-bottom: 15px;
813
+
814
+  .record {
815
+    padding-top: 20px;
816
+  }
817
+
818
+  }
819
+  .record_content_panel {
820
+    border-width: 1px;
821
+    border-style: solid;
822
+    border-color: #ebeef5;
823
+    min-height: 200px;
824
+
825
+  .title {
826
+    font-size: 14px;
827
+    font-weight: 500;
828
+    color: #909399;
829
+    line-height: 44px;
830
+    height: 44px;
831
+    text-align: center;
832
+    border-bottom-width: 1px;
833
+    border-bottom-style: solid;
834
+    border-bottom-color: #ebeef5;
835
+  }
836
+
837
+  .content {
838
+    padding: 12px 15px;
839
+    font-size: 15px;
840
+    color: gray;
841
+    line-height: 22px;
842
+  }
843
+
844
+  }
845
+
846
+  .new_record_form {
847
+
848
+  /*/ / padding: 10 px, 25 px;*/
849
+
850
+  .textarea_panel {
851
+    margin-top: 10px;
852
+  }
853
+
854
+  }
855
+</style>
856
+<style>
857
+.el-table td,
858
+.el-table th.is-leaf,
859
+.el-table--border,
860
+.el-table--group {
861
+  border-color: #d0d3da;
862
+}
863
+.el-table--border::after,
864
+.el-table--group::after,
865
+.el-table::before {
866
+  background-color: #d0d3da;
867
+}
868
+.el-select-dropdown {
869
+  max-width: 1000px !important;
870
+}
871
+</style>

+ 413 - 0
src/xt_pages/user/firstDiseasePrint.vue View File

1
+<template>
2
+  <div class="main-contain">
3
+
4
+    <div class="position">
5
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
6
+      <el-button size="small" icon="el-icon-printer" @click="printAction" type="primary">打印
7
+      </el-button>
8
+    </div>
9
+    <div class="app-container">
10
+      <div id="print_content">
11
+        <div class="print_page_main_content">
12
+           <div class="order-yy-name"></div>
13
+          <!-- <div class="order_title" style="padding-top:12px;text-align:center;">首次病程记录</div>
14
+        -->
15
+          <h1 style="text-align:center;">首次病程记录</h1>
16
+          <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;">
17
+            <div class="inline_block;">
18
+              <div style="font-size:20px">{{getTime(hosDetail.record_date)}}</div>
19
+            </div>
20
+            <div class="inline_block" style="margin-left: 30px">
21
+                   <div v-html="hosDetail.main_content"> </div>
22
+            </div>
23
+
24
+            <div class="inline_block" style="width:100%;">
25
+               <span style="font-size:20px">病例特点:</span>
26
+                <div v-html="hosDetail.patient_case" class="printP" style="text-indent:20px">
27
+
28
+              </div>
29
+            </div>
30
+
31
+             <div class="inline_block" style="width:100%;">
32
+              <span style="font-size:20px">初步诊断:</span>
33
+              <div v-html="hosDetail.tentative_diagnosis" class="printP" style="text-indent:20px">
34
+
35
+              </div>
36
+             </div>
37
+
38
+             <div class="inline_block" style="width:100%;">
39
+              <span style="font-size:20px"> 诊断依据:</span>
40
+              <div v-html="hosDetail.diagnostic_basis" class="printP" style="text-indent:20px">
41
+
42
+              </div>
43
+             </div>
44
+
45
+             <div class="inline_block" style="width:100%;">
46
+                <span  style="font-size:20px">鉴别诊断:</span> 
47
+                <div v-html="hosDetail.differential_diagnosis" class="printP" style="text-indent:20px">
48
+
49
+                </div>
50
+              </div>
51
+
52
+              <div class="inline_block" style="width:100%;">
53
+                 <span style="font-size:20px">诊疗计划:</span>
54
+                <div v-html="hosDetail.treatment_plan" class="printP" style="text-indent:20px">
55
+
56
+                </div>
57
+              </div>
58
+
59
+             <div class="inline_block" style="float:right;margin-right:50px">
60
+               <span style="font-size:20px">医生签名:</span>
61
+                <span v-if="setAdminUserES(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor)) == ''">
62
+                  {{getDoctor(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor))}}
63
+                  </span>
64
+                  <span v-else>
65
+                    <img style="height:30px;" :src="setAdminUserES(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor))" alt="" srcset="">
66
+                  </span>
67
+              </div>
68
+          </div>
69
+
70
+        
71
+        </div>
72
+      </div>
73
+    </div>
74
+  </div>
75
+
76
+</template>
77
+
78
+<script>
79
+import { jsGetAge, uParseTime } from '@/utils/tools'
80
+import LabelBox from '../dialysis/printItem/LabelBox'
81
+import CheckBox from '../dialysis/batch_print/option_check_box'
82
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
83
+import {getFirstDetail,getPatientInfo} from "@/api/patient"
84
+import { getAllDoctorList } from "@/api/device"
85
+import { getDataConfig } from "@/utils/data";
86
+export default {
87
+  name: 'dialysisPrintOrderOne',
88
+  components: {
89
+    LabelBox,
90
+    BreadCrumb,
91
+    CheckBox
92
+  },
93
+  data() {
94
+    return {
95
+      crumbs: [
96
+        { path: false, name: '透析管理' },
97
+        { path: false, name: '打印单' }
98
+      ],
99
+     hosDetail:{},
100
+     patient:{},
101
+     doctorList:[],
102
+    educationOptions:[],
103
+    operators:[],
104
+    operatorMaps: {},
105
+    }
106
+  },
107
+  methods: {
108
+    getDatge(value) {
109
+      var times = Date.parse(value) / 1000
110
+      var timestr = uParseTime(times, '{y}年{m}月{d}日')
111
+      return timestr
112
+    },
113
+    getTime(val) {
114
+       if(val == "" || val == undefined){
115
+          return ""
116
+         }else {
117
+          return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
118
+         }
119
+    },
120
+    printThisPage() {
121
+        var ptime = Math.round(new Date().getTime() / 1000)
122
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
123
+        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto;letter-spacing:5px} .dialysis-print-order p{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:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align: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;font-weight: bold;margin: 10px 0;}'
124
+        printJS({
125
+            printable: 'dialysis-print-box',
126
+            type: 'html',
127
+            style: style,
128
+            scanStyles: false
129
+        })
130
+      
131
+    },
132
+  
133
+    getAge: function(val) {
134
+      if (val.birthday != 0) {
135
+        return jsGetAge(val.birth, '-')
136
+      } else {
137
+        return ''
138
+      }
139
+    },
140
+  
141
+    getNewAge(UUserCard) {
142
+      if (UUserCard != null && UUserCard != '') {
143
+        // 获取年龄
144
+        var myDate = new Date()
145
+        var month = myDate.getMonth() + 1
146
+        var day = myDate.getDate()
147
+        var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
148
+        if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
149
+          age++
150
+        }
151
+        return age
152
+      }
153
+    },
154
+    getFirstDetail(id){
155
+       getFirstDetail(id).then(response=>{
156
+        if(response.data.state == 1){
157
+            var detail = response.data.data.detail
158
+        
159
+            this.hosDetail = detail
160
+        }
161
+     })
162
+    },
163
+    getlist(){
164
+       var params = {
165
+         patient_id:parseInt(this.$route.query.patient_id),
166
+       }
167
+       console.log("param223322322323",params)
168
+      getPatientInfo(params).then(response=>{
169
+         if(response.data.state == 1){
170
+           var patient = response.data.data.patient
171
+           this.patient = patient
172
+         }
173
+      })
174
+    },
175
+    getAllDoctorList(){
176
+      getAllDoctorList().then(response=>{
177
+        if(response.data.state == 1){
178
+        var list = response.data.data.list
179
+         this.doctorList = list
180
+         this.operators = response.data.data.operators
181
+           if (this.operators.length > 0) {
182
+            var operatorsLen = this.operators.length
183
+            for (var index = 0; index < operatorsLen; index++) {
184
+              this.$set(
185
+                this.operatorMaps,
186
+                this.operators[index].creator,
187
+                this.operators[index]
188
+              )
189
+            }
190
+          }
191
+        }
192
+       })
193
+     },
194
+     getDoctor(id){
195
+        var name = ""
196
+        for(let i=0;i<this.doctorList.length;i++){
197
+          if(id == this.doctorList[i].admin_user_id){
198
+             name = this.doctorList[i].user_name
199
+          }
200
+        }
201
+        return name
202
+    },
203
+    getProfession(id){
204
+      var name = ""
205
+      for(let i=0;i<this.educationOptions.length;i++){
206
+          if(id == this.educationOptions[i].id){
207
+           name = this.educationOptions[i].name
208
+          }
209
+      }
210
+      return name
211
+    },
212
+    getTimeDay(start,end){
213
+      var count = ""
214
+      count = (end-start)/86400
215
+      return count + 1
216
+    },
217
+    printAction: function() {
218
+      const style = '@media print {.printP div{margin-bottom:5px;} .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: 20px;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: 5px 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-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.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%;}.print-yema5{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;}'
219
+      printJS({
220
+        printable: 'print_content',
221
+        type: 'html',
222
+        documentTitle: '  ',
223
+        style: style,
224
+        scanStyles: false
225
+      })
226
+    },
227
+    getDoctor(id){
228
+      var name = ""
229
+      for(let i=0;i<this.doctorList.length;i++){
230
+          if(id == this.doctorList[i].admin_user_id){
231
+             name = this.doctorList[i].user_name
232
+          }
233
+        }
234
+       return name
235
+     },
236
+    setAdminUserES(id) {
237
+      if (id === 0) {
238
+        return ''
239
+      }
240
+      if (id in this.operatorMaps) {
241
+        return this.operatorMaps[id].url
242
+      } else {
243
+        return ''
244
+      }
245
+    },
246
+  },
247
+ 
248
+  created() {
249
+    this.educationOptions = getDataConfig("patient", "profession_options");
250
+    var xtuser = this.$store.getters.xt_user
251
+    this.orgname = xtuser.org.org_name
252
+    var id = this.$route.query.id
253
+    this.getlist()
254
+    this.getFirstDetail(id)
255
+    this.getAllDoctorList()
256
+    
257
+  }
258
+}
259
+</script>
260
+
261
+<style>
262
+.borderBox  p{
263
+  font-weight: bold;
264
+  margin: 10px 0;
265
+}
266
+.dialysis-print-order {
267
+  width: 960px;
268
+  margin: 0 auto;
269
+}
270
+
271
+.dialysis-print-order .order-yy-name {
272
+  margin: auto;
273
+  text-align: center;
274
+  font-size: 20px;
275
+  letter-spacing: 5px;
276
+}
277
+
278
+.dialysis-print-order .order-title {
279
+  margin: auto;
280
+  font-weight: 600;
281
+  text-align: center;
282
+  font-size: 22px;
283
+  padding: 10px 20px 20px 20px;
284
+}
285
+
286
+.dialysis-print-order .table-box {
287
+  width: 100%;
288
+  line-height: 23px;
289
+  font-size: 14px;
290
+}
291
+
292
+.dialysis-print-order .print-table {
293
+  width: 100%;
294
+  text-align: center;
295
+  border-collapse: collapse;
296
+  line-height: 40px;
297
+  font-size: 14px;
298
+}
299
+
300
+.dialysis-print-order .print-table-no {
301
+  width: 100%;
302
+  text-align: center;
303
+  border-collapse: collapse;
304
+  font-size: 14px;
305
+}
306
+
307
+.dialysis-print-order .under-line {
308
+  border-bottom: 1px solid #999;
309
+  width: 95%;
310
+  text-align: center;
311
+  margin-left: 2px;
312
+}
313
+
314
+.dialysis-print-order .title-box {
315
+  text-align: center;
316
+  font-size: 16px;
317
+}
318
+
319
+.dialysis-print-order .radio-lebel-box {
320
+  font-weight: 400;
321
+  cursor: pointer;
322
+}
323
+
324
+.dialysis-print-order .radio-no {
325
+  opacity: 0;
326
+  outline: none;
327
+  position: absolute;
328
+  margin: 0;
329
+  width: 0;
330
+  height: 0;
331
+  z-index: -1;
332
+}
333
+
334
+.dialysis-print-order .radio-inner {
335
+  white-space: nowrap;
336
+  cursor: pointer;
337
+  outline: none;
338
+  display: inline-block;
339
+  line-height: 1;
340
+  position: relative;
341
+  vertical-align: middle;
342
+}
343
+
344
+.dialysis-print-order .radio-fang {
345
+  display: inline-block;
346
+  position: relative;
347
+  border: 1px solid #000;
348
+  box-sizing: border-box;
349
+  width: 14px;
350
+  height: 14px;
351
+  background-color: #fff;
352
+  z-index: 1;
353
+  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
354
+    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
355
+}
356
+
357
+.dialysis-print-order .is-checked-radio::after {
358
+  content: "√";
359
+  font-size: 15px;
360
+}
361
+
362
+.dialysis-print-order .print-table-no tr td {
363
+  padding: 8px 5px;
364
+  line-height: 25px;
365
+}
366
+
367
+.dialysis-print-order .print-table tr td {
368
+  padding: 1px 1px;
369
+  /*line-height: 25px;*/
370
+}
371
+
372
+.es-img {
373
+  height: 25px;
374
+}
375
+
376
+.advice-name {
377
+  text-align: left;
378
+}
379
+
380
+.advice-children {
381
+  display: flex;
382
+}
383
+
384
+.title-box-pro {
385
+  border: 0 #fff;
386
+  line-height: 25px;
387
+  height: 25px;
388
+  text-align: left;
389
+  padding-left: 10px !important;
390
+}
391
+.title-box-pro-tr {
392
+  border: 0 #fff;
393
+}
394
+.text-align-left {
395
+  text-align: left !important;
396
+  padding-left: 10px !important;
397
+  font-size: 14px !important;
398
+  line-height: 25px;
399
+}
400
+.print-table-tr-new td {
401
+  line-height: 20px !important;
402
+}
403
+.border-top-solid {
404
+  border: solid 1px #000;
405
+}
406
+.print-template-two tr {
407
+  line-height: 30px;
408
+}
409
+.parent {
410
+  text-align: left;
411
+  padding-left: 20px !important;
412
+}
413
+</style>

+ 11 - 1
src/xt_pages/user/hospitalSummaryPrint.vue View File

65
               </span>
65
               </span>
66
             </td>
66
             </td>
67
           </tr>
67
           </tr>
68
-
68
+          <tr>
69
+            <td style="text-align:center;width:100px" colspan="1">
70
+              身份证:
71
+            </td>   
72
+            <td style="text-align:left;width:500px" colspan="12">
73
+            
74
+              <span style="display:inline-block;margin-left:10px;">
75
+                {{patient.id_card_no}}
76
+              </span>
77
+            </td>   
78
+          </tr>
69
           <tr>
79
           <tr>
70
             <td style="text-align:center;width:100px" colspan="1">
80
             <td style="text-align:center;width:100px" colspan="1">
71
               住址:
81
               住址:

+ 24 - 12
src/xt_pages/user/vascularAccess.vue View File

9
       <el-table class="oictable" :data="tableData" border style="width:100%">
9
       <el-table class="oictable" :data="tableData" border style="width:100%">
10
       <el-table-column prop="start_time" label="建立日期" width="100" align="center">
10
       <el-table-column prop="start_time" label="建立日期" width="100" align="center">
11
           <template slot-scope="scope">
11
           <template slot-scope="scope">
12
-            <span>{{ getTime(scope.row.start_time, "{y}-{m}-{d}")}}</span>
12
+            <span>{{ getTime(scope.row.start_time)}}</span>
13
           </template>
13
           </template>
14
      </el-table-column>
14
      </el-table-column>
15
       <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="120">
15
       <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="120">
34
       </el-table-column>
34
       </el-table-column>
35
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
35
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
36
           <template slot-scope="scope">
36
           <template slot-scope="scope">
37
-            <span>{{ getTime(scope.row.first_start_time, "{y}-{m}-{d}")}}</span>
37
+            <span>{{ getTime(scope.row.first_start_time)}}</span>
38
           </template>
38
           </template>
39
       </el-table-column>
39
       </el-table-column>
40
      
40
      
41
        <el-table-column prop="date" label="停用日期" align="center" width="100">
41
        <el-table-column prop="date" label="停用日期" align="center" width="100">
42
           <template slot-scope="scope">
42
           <template slot-scope="scope">
43
-            <span v-if="scope.row.stop_time>0">{{ getTime(scope.row.stop_time, "{y}-{m}-{d}")}}</span>
43
+            <span v-if="scope.row.stop_time>0">{{ getTime(scope.row.stop_time)}}</span>
44
              <span v-if="scope.row.stop_time<0"></span>
44
              <span v-if="scope.row.stop_time<0"></span>
45
           </template>
45
           </template>
46
       </el-table-column>
46
       </el-table-column>
673
            }  
673
            }  
674
         })   
674
         })   
675
       },
675
       },
676
-     getTime(value, temp) {
677
-        if (value != undefined) {
678
-            return uParseTime(value, temp);
679
-        }
680
-        return "";
681
-     },
676
+   //   getTime(value, temp) {
677
+        
678
+   //      if (value != undefined) {
679
+   //          return uParseTime(value, temp);
680
+   //      }
681
+
682
+   //      return "";
683
+   //   },
684
+     getTime(val) {
685
+         if(val < 0){
686
+           return ""
687
+         }
688
+         if(val == ""){
689
+          return ""
690
+         }else {
691
+          return uParseTime(val, '{y}-{m}-{d}')
692
+         }
693
+      },
682
      handleUpdateAdviceTemplate(id){
694
      handleUpdateAdviceTemplate(id){
683
         getVascularAccessByDetail(id).then(response=>{
695
         getVascularAccessByDetail(id).then(response=>{
684
            if(response.data.state ==1){
696
            if(response.data.state ==1){
739
               }
751
               }
740
              this.form.blood_access_part_opera_id = blood_part
752
              this.form.blood_access_part_opera_id = blood_part
741
 
753
 
742
-             this.form.first_start_time = this.getTime(accessDetail.first_start_time,"{y}-{m}-{d}")
754
+             this.form.first_start_time = this.getTime(accessDetail.first_start_time)
743
 
755
 
744
              var inflow_id = 0
756
              var inflow_id = 0
745
              for(let i=0;i<this.optionsPass.length;i++){
757
              for(let i=0;i<this.optionsPass.length;i++){
749
              }
761
              }
750
              this.form.inflow_pass = inflow_id
762
              this.form.inflow_pass = inflow_id
751
              this.form.remark = accessDetail.remark
763
              this.form.remark = accessDetail.remark
752
-             this.form.start_time = this.getTime(accessDetail.start_time,"{y}-{m}-{d}")
764
+             this.form.start_time = this.getTime(accessDetail.start_time)
753
              this.form.stop_reason = accessDetail.stop_reason
765
              this.form.stop_reason = accessDetail.stop_reason
754
-             this.form.stop_time = this.getTime(accessDetail.stop_time,"{y}-{m}-{d}")
766
+             this.form.stop_time = this.getTime(accessDetail.stop_time)
755
  
767
  
756
              this.form.user_status = accessDetail.user_status
768
              this.form.user_status = accessDetail.user_status
757
              this.form.other_vascular = accessDetail.other_vascular
769
              this.form.other_vascular = accessDetail.other_vascular

+ 60 - 31
src/xt_pages/workforce/appointment.vue View File

68
       <bread-crumb :crumbs="crumbs"></bread-crumb>
68
       <bread-crumb :crumbs="crumbs"></bread-crumb>
69
       <div style="display:flex;align-items:center">
69
       <div style="display:flex;align-items:center">
70
         <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
70
         <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
71
-        <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel>
71
+        <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
72
         <!-- <el-button @click="printTable" type="primary" size="small">打印排班</el-button> -->
72
         <!-- <el-button @click="printTable" type="primary" size="small">打印排班</el-button> -->
73
         <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
73
         <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
74
           导出排班
74
           导出排班
75
         </el-button>
75
         </el-button>
76
-        <el-button
76
+        <!-- <el-button
77
             @click="generateLog()"
77
             @click="generateLog()"
78
             class="filter-item"
78
             class="filter-item"
79
             type="primary"
79
             type="primary"
80
             v-if="is_edit"
80
             v-if="is_edit"
81
             size="small"
81
             size="small"
82
         >下载日志
82
         >下载日志
83
-        </el-button>
83
+        </el-button> -->
84
         <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
84
         <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
85
         </el-button>
85
         </el-button>
86
-        <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
87
-        <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
86
+        <!-- <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
87
+        <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button> -->
88
         <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
88
         <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
89
-        <el-button type="danger" size="small" v-if="is_edit" @click="is_edit = false ">退出编辑</el-button>
89
+        <!-- <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button> -->
90
       </div>
90
       </div>
91
     </div>
91
     </div>
92
     <div class="app-container">
92
     <div class="app-container">
93
-      <div style="right:30px;position:fixed;z-index:99">
93
+      <div style="right:30px;position:absolute;z-index:99">
94
         <span>导出周次:</span>
94
         <span>导出周次:</span>
95
         <el-date-picker
95
         <el-date-picker
96
             v-model="weekTime"
96
             v-model="weekTime"
119
 
119
 
120
       </el-tabs>
120
       </el-tabs>
121
 
121
 
122
-      <!-- </el-col>
123
-    </el-row> -->
124
-<!--  -->
125
-
126
       <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
122
       <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
127
                   :schedule-zone-row-prop="scheduleZoneRow"
123
                   :schedule-zone-row-prop="scheduleZoneRow"
128
                   :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
124
                   :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
130
       </table-data>
126
       </table-data>
131
 
127
 
132
       <edit-table-data ref="edittableData"  :week-time="activeName" :partitions-prop="partitions"
128
       <edit-table-data ref="edittableData"  :week-time="activeName" :partitions-prop="partitions"
133
-                       :schedule-zone-row-prop="scheduleZoneRow"
134
-                       :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
135
-                       @event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay"></edit-table-data>
136
-
129
+                        :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone"
130
+                         title="" @event1="changePartition"
131
+                         @event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay">
132
+                      
133
+        <div class="position">
134
+          <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
135
+          <div></div>
136
+        <div style="display:flex;align-items:center">
137
+          <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
138
+          <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel>
139
+          <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
140
+            导出排班
141
+          </el-button>
142
+          <el-button
143
+              @click="generateLog()"
144
+              class="filter-item"
145
+              type="primary"
146
+              v-if="is_edit"
147
+              size="small"
148
+          >下载日志 
149
+          </el-button>
150
+          <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
151
+          </el-button>
152
+          <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
153
+          <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
154
+          <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
155
+          <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
156
+        </div>
157
+      </div>
158
+        </edit-table-data>
137
 
159
 
138
       <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
160
       <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
139
         <el-form :model="form" ref="form" label-width="90px" :rules="rules">
161
         <el-form :model="form" ref="form" label-width="90px" :rules="rules">
225
       days: [],
247
       days: [],
226
       logs: [],
248
       logs: [],
227
       is_edit: false,
249
       is_edit: false,
250
+      schedulingTableVisible:false,//全屏
228
       scheduleZoneRow: [],
251
       scheduleZoneRow: [],
229
       downloadLoading: false,
252
       downloadLoading: false,
230
       msgTipVisible: false,
253
       msgTipVisible: false,
276
     ScheduleUploadExcel,
299
     ScheduleUploadExcel,
277
     tableData,
300
     tableData,
278
     BreadCrumb,
301
     BreadCrumb,
279
-    UploadExcel
302
+    UploadExcel,
303
+
280
   },
304
   },
281
   methods: {
305
   methods: {
282
     dragstart(event, item) {
306
     dragstart(event, item) {
644
         // console.log("111111111")
668
         // console.log("111111111")
645
         // console.log(that.scheduleZone)
669
         // console.log(that.scheduleZone)
646
       })
670
       })
647
-    },changeSch(val){
671
+    },
672
+    changeSch(val){
648
       // console.log(this.partitions)
673
       // console.log(this.partitions)
649
       // console.log(this.scheduleZoneRow)
674
       // console.log(this.scheduleZoneRow)
650
       // console.log(this.scheduleZone)
675
       // console.log(this.scheduleZone)
651
 
676
 
652
-
653
-
654
-    },changeWeekType(val){
655
-
656
-
657
-
658
-    },changeZone(val){
659
-
660
-
677
+    },
678
+    changeWeekType(val){
679
+    },
680
+    changeZone(val){
661
     },
681
     },
662
     setScheduleTemplateAction: function () {
682
     setScheduleTemplateAction: function () {
663
       this.$router.push({path: '/workforce/template'})
683
       this.$router.push({path: '/workforce/template'})
665
     export_file: function () {
685
     export_file: function () {
666
       // this.getWeekPanelsTwo()
686
       // this.getWeekPanelsTwo()
667
       this.export_file_step_two()
687
       this.export_file_step_two()
668
-    },export_file_step_two: function(){
688
+    },
689
+    export_file_step_two: function(){
669
 
690
 
670
       this.downloadLoading = true
691
       this.downloadLoading = true
671
       import('@/vendor/Export2Excel').then(excel => {
692
       import('@/vendor/Export2Excel').then(excel => {
2871
 
2892
 
2872
     getTime(val) {
2893
     getTime(val) {
2873
       return uParseTime(val, '{y}-{m}-{d}')
2894
       return uParseTime(val, '{y}-{m}-{d}')
2874
-    }, smartsch(){
2895
+    },
2896
+     smartsch(){
2875
       this.$nextTick(function() {
2897
       this.$nextTick(function() {
2876
         this.$refs.edittableData.showSmartDialog()
2898
         this.$refs.edittableData.showSmartDialog()
2877
       })
2899
       })
2878
-    },editsch() {
2900
+    },
2901
+    editsch() {
2879
       this.is_edit = true
2902
       this.is_edit = true
2880
-      this.$nextTick(function() {
2903
+      this.schedulingTableVisible=true
2904
+      this.$nextTick(function() {//, this.days,this.zones
2881
         this.$refs.edittableData.setEditData(this.patientList, this.$store.getters.treatment_mode, this.days,this.zones)
2905
         this.$refs.edittableData.setEditData(this.patientList, this.$store.getters.treatment_mode, this.days,this.zones)
2882
       })
2906
       })
2883
     },
2907
     },
2908
+    outisedit(){
2909
+      this.is_edit=false
2910
+      this.schedulingTableVisible=false
2911
+    },
2884
     copySchedule() {
2912
     copySchedule() {
2885
       this.newVisible = true
2913
       this.newVisible = true
2886
     },
2914
     },
3006
           this.templateObj = template
3034
           this.templateObj = template
3007
         }
3035
         }
3008
       })
3036
       })
3009
-    },getPatientList(){
3037
+    },
3038
+    getPatientList(){
3010
       patientLists().then(response => {
3039
       patientLists().then(response => {
3011
         if (response.data.state == 1) {
3040
         if (response.data.state == 1) {
3012
           var patientList = response.data.data.list
3041
           var patientList = response.data.data.list

+ 12 - 4
src/xt_pages/workforce/components/ScheduleItem.vue View File

1
 <template>
1
 <template>
2
+  <!-- 排班表填充内容 -->
2
     <div >
3
     <div >
3
 
4
 
4
             <div>
5
             <div>
5
                 <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span><br/>
6
                 <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span><br/>
6
                 <span v-if="scheduleDetail.mode_name.length>0" :class='modeColor(scheduleDetail.mode_name)'>({{scheduleDetail.mode_name}})</span>
7
                 <span v-if="scheduleDetail.mode_name.length>0" :class='modeColor(scheduleDetail.mode_name)'>({{scheduleDetail.mode_name}})</span>
7
-              <span >{{scheduleDetail.dialysis_machine_name}}</span>
8
-
8
+              <span v-if="schedulFlag">{{scheduleDetail.dialysis_machine_name}}</span>
9
             </div>
9
             </div>
10
     </div>
10
     </div>
11
 </template>
11
 </template>
26
               }
26
               }
27
           },
27
           },
28
       },
28
       },
29
+      schedulFlag:{
30
+        type:Boolean,
31
+        default:false
32
+      }
33
+  },
34
+  data() {
35
+    return {
36
+      schedul:false
37
+    }
29
   },
38
   },
30
-
31
 
39
 
32
   methods:{
40
   methods:{
33
         modeColor(name){
41
         modeColor(name){
45
 
53
 
46
 <style lang="scss" scoped>
54
 <style lang="scss" scoped>
47
 .modeRed{
55
 .modeRed{
48
-  color:#ed5555;
56
+  color:#ee780a;
49
 }
57
 }
50
 .modePurple{
58
 .modePurple{
51
   color: #53b86e;
59
   color: #53b86e;

File diff suppressed because it is too large
+ 1210 - 1102
src/xt_pages/workforce/components/editTableData.vue


File diff suppressed because it is too large
+ 936 - 806
src/xt_pages/workforce/components/tableData.vue


+ 119 - 94
src/xt_pages/workforce/components/template_table.vue View File

27
           <div style="margin-bottom: 10px; display: flex">
27
           <div style="margin-bottom: 10px; display: flex">
28
             <h3 style="line-height: 45px">
28
             <h3 style="line-height: 45px">
29
               <span
29
               <span
30
-                style="margin-right: 30px; font-size: 16px; white-space: nowrap"
30
+                style="margin-right: 15px; font-size: 16px; white-space: nowrap"
31
               >当前选择</span
31
               >当前选择</span
32
               >
32
               >
33
             </h3>
33
             </h3>
71
                     <el-table-column
71
                     <el-table-column
72
                       prop="name"
72
                       prop="name"
73
                       label="患者名称"
73
                       label="患者名称"
74
-                      width="104"
74
+                      
75
                       align="center"
75
                       align="center"
76
                     >
76
                     >
77
                     </el-table-column>
77
                     </el-table-column>
92
                     <el-table-column
92
                     <el-table-column
93
                       prop="name"
93
                       prop="name"
94
                       label="透析模式"
94
                       label="透析模式"
95
-                      width="104"
95
+
96
                       align="center"
96
                       align="center"
97
                     ></el-table-column>
97
                     ></el-table-column>
98
                   </el-table>
98
                   </el-table>
102
           </div>
102
           </div>
103
         </div>
103
         </div>
104
         <div class="right_contain">
104
         <div class="right_contain">
105
-          <!--          <span>分区:</span>-->
106
-          <!--          <el-select-->
107
-          <!--              v-model="partition_id"-->
108
-          <!--              multiple-->
109
-          <!--              placeholder="请选择"-->
110
-          <!--              @change="changePartiton"-->
111
-          <!--          >-->
112
-          <!--            <el-option-->
113
-          <!--                v-for="item in this.all_zones"-->
114
-          <!--                :key="item.id"-->
115
-          <!--                :label="item.name"-->
116
-          <!--                :value="item.id"-->
117
-          <!--            >-->
118
-          <!--            </el-option>-->
119
-          <!--          </el-select>-->
120
           <el-table
105
           <el-table
106
+            :fit="true"
121
             :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
107
             :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
122
             ref="table"
108
             ref="table"
123
             :data="opera_device_numbers"
109
             :data="opera_device_numbers"
125
             show-summary
111
             show-summary
126
             height="675"
112
             height="675"
127
             style="width: 100%; cursor: pointer"
113
             style="width: 100%; cursor: pointer"
128
-
129
-            :summary-method="getSummaries"
130
             row-class-name="table-row-new-class schedule-table-row"
114
             row-class-name="table-row-new-class schedule-table-row"
115
+            :summary-method="getSummaries"
131
             @cell-click="itemClick"
116
             @cell-click="itemClick"
132
             sum-text="总数"
117
             sum-text="总数"
133
           >
118
           >
119
+          <!--   -->
134
             <el-table-column
120
             <el-table-column
135
               label="分区"
121
               label="分区"
136
-              width="80"
122
+              min-width="50"
137
               align="center"
123
               align="center"
138
               fixed
124
               fixed
139
-              style="width: 100px; background-color: red; display: block"
140
             >
125
             >
141
               <template slot-scope="scope">
126
               <template slot-scope="scope">
142
                 {{ scope.row.zone.name }}
127
                 {{ scope.row.zone.name }}
143
               </template>
128
               </template>
144
             </el-table-column>
129
             </el-table-column>
145
 
130
 
146
-            <el-table-column label="机号" width="80" align="center" fixed>
131
+            <el-table-column label="机号" min-width="40" align="center" fixed>
147
               <template slot-scope="scope">
132
               <template slot-scope="scope">
148
                 <div>{{ scope.row.number }}</div>
133
                 <div>{{ scope.row.number }}</div>
149
               </template>
134
               </template>
150
             </el-table-column>
135
             </el-table-column>
151
 
136
 
152
-            <el-table-column label="周一" width="335" align="center">
153
-              <el-table-column prop="1_1" label="上" width="110" align="center">
137
+            <el-table-column label="周一"  align="center">
138
+              <el-table-column prop="1_1" label="上" min-width="40" align="center">
154
                 <template slot-scope="scope">
139
                 <template slot-scope="scope">
155
                   <div class="del_table_btn">
140
                   <div class="del_table_btn">
156
                     <el-button
141
                     <el-button
187
                   </div>
172
                   </div>
188
                 </template>
173
                 </template>
189
               </el-table-column>
174
               </el-table-column>
190
-              <el-table-column prop="1_2" label="下" width="110" align="center">
175
+              <el-table-column prop="1_2" label="下" min-width="40" align="center">
191
                 <template slot-scope="scope">
176
                 <template slot-scope="scope">
192
                   <div class="del_table_btn">
177
                   <div class="del_table_btn">
193
                     <el-button
178
                     <el-button
224
                   </div>
209
                   </div>
225
                 </template>
210
                 </template>
226
               </el-table-column>
211
               </el-table-column>
227
-              <el-table-column prop="1_3" label="晚" width="110" align="center">
212
+              <el-table-column prop="1_3" label="晚" min-width="40" align="center">
228
                 <template slot-scope="scope">
213
                 <template slot-scope="scope">
229
                   <div class="del_table_btn">
214
                   <div class="del_table_btn">
230
                     <el-button
215
                     <el-button
263
               </el-table-column>
248
               </el-table-column>
264
             </el-table-column>
249
             </el-table-column>
265
 
250
 
266
-            <el-table-column label="周二" width="335" align="center">
267
-              <el-table-column prop="2_1" label="上" width="110" align="center">
251
+            <el-table-column label="周二"  align="center">
252
+              <el-table-column prop="2_1" label="上" min-width="40" align="center">
268
                 <template slot-scope="scope">
253
                 <template slot-scope="scope">
269
                   <div class="del_table_btn">
254
                   <div class="del_table_btn">
270
                     <el-button
255
                     <el-button
300
                   </div>
285
                   </div>
301
                 </template>
286
                 </template>
302
               </el-table-column>
287
               </el-table-column>
303
-              <el-table-column prop="2_2" label="下" width="110" align="center">
288
+              <el-table-column prop="2_2" label="下" min-width="40" align="center">
304
                 <template slot-scope="scope">
289
                 <template slot-scope="scope">
305
                   <div class="del_table_btn">
290
                   <div class="del_table_btn">
306
                     <el-button
291
                     <el-button
337
                   </div>
322
                   </div>
338
                 </template>
323
                 </template>
339
               </el-table-column>
324
               </el-table-column>
340
-              <el-table-column prop="2_3" label="晚" width="110" align="center">
325
+              <el-table-column prop="2_3" label="晚" min-width="40" align="center">
341
                 <template slot-scope="scope">
326
                 <template slot-scope="scope">
342
                   <div class="del_table_btn">
327
                   <div class="del_table_btn">
343
                     <el-button
328
                     <el-button
376
               </el-table-column>
361
               </el-table-column>
377
             </el-table-column>
362
             </el-table-column>
378
 
363
 
379
-            <el-table-column label="周三" width="335" align="center">
380
-              <el-table-column prop="3_1" label="上" width="110" align="center">
364
+            <el-table-column label="周三"  align="center">
365
+              <el-table-column prop="3_1" label="上" min-width="40" align="center">
381
                 <template slot-scope="scope">
366
                 <template slot-scope="scope">
382
                   <div class="del_table_btn">
367
                   <div class="del_table_btn">
383
                     <el-button
368
                     <el-button
414
                   </div>
399
                   </div>
415
                 </template>
400
                 </template>
416
               </el-table-column>
401
               </el-table-column>
417
-              <el-table-column prop="3_2" label="下" width="110" align="center">
402
+              <el-table-column prop="3_2" label="下" min-width="40" align="center">
418
                 <template slot-scope="scope">
403
                 <template slot-scope="scope">
419
                   <div class="del_table_btn">
404
                   <div class="del_table_btn">
420
                     <el-button
405
                     <el-button
451
                   </div>
436
                   </div>
452
                 </template>
437
                 </template>
453
               </el-table-column>
438
               </el-table-column>
454
-              <el-table-column prop="3_3" label="晚" width="110" align="center">
439
+              <el-table-column prop="3_3" label="晚" min-width="40" align="center">
455
                 <template slot-scope="scope">
440
                 <template slot-scope="scope">
456
                   <div class="del_table_btn">
441
                   <div class="del_table_btn">
457
                     <el-button
442
                     <el-button
490
               </el-table-column>
475
               </el-table-column>
491
             </el-table-column>
476
             </el-table-column>
492
 
477
 
493
-            <el-table-column label="周四" width="335" align="center">
494
-              <el-table-column prop="4_1" label="上" width="110" align="center">
478
+            <el-table-column label="周四"  align="center">
479
+              <el-table-column prop="4_1" label="上" min-width="40" align="center">
495
                 <template slot-scope="scope">
480
                 <template slot-scope="scope">
496
                   <div class="del_table_btn">
481
                   <div class="del_table_btn">
497
                     <el-button
482
                     <el-button
528
                   </div>
513
                   </div>
529
                 </template>
514
                 </template>
530
               </el-table-column>
515
               </el-table-column>
531
-              <el-table-column prop="4_2" label="下" width="110" align="center">
516
+              <el-table-column prop="4_2" label="下" min-width="40" align="center">
532
                 <template slot-scope="scope">
517
                 <template slot-scope="scope">
533
                   <div class="del_table_btn">
518
                   <div class="del_table_btn">
534
                     <el-button
519
                     <el-button
565
                   </div>
550
                   </div>
566
                 </template>
551
                 </template>
567
               </el-table-column>
552
               </el-table-column>
568
-              <el-table-column prop="4_3" label="晚" width="110" align="center">
553
+              <el-table-column prop="4_3" label="晚" min-width="40" align="center">
569
                 <template slot-scope="scope">
554
                 <template slot-scope="scope">
570
                   <div class="del_table_btn">
555
                   <div class="del_table_btn">
571
                     <el-button
556
                     <el-button
604
               </el-table-column>
589
               </el-table-column>
605
             </el-table-column>
590
             </el-table-column>
606
 
591
 
607
-            <el-table-column label="周五" width="335" align="center">
608
-              <el-table-column prop="5_1" label="上" width="110" align="center">
592
+            <el-table-column label="周五" align="center">
593
+              <el-table-column prop="5_1" label="上" min-width="40" align="center">
609
                 <template slot-scope="scope">
594
                 <template slot-scope="scope">
610
                   <div class="del_table_btn">
595
                   <div class="del_table_btn">
611
                     <el-button
596
                     <el-button
642
                   </div>
627
                   </div>
643
                 </template>
628
                 </template>
644
               </el-table-column>
629
               </el-table-column>
645
-              <el-table-column prop="5_2" label="下" width="110" align="center">
630
+              <el-table-column prop="5_2" label="下" min-width="40" align="center">
646
                 <template slot-scope="scope">
631
                 <template slot-scope="scope">
647
                   <div class="del_table_btn">
632
                   <div class="del_table_btn">
648
                     <el-button
633
                     <el-button
679
                   </div>
664
                   </div>
680
                 </template>
665
                 </template>
681
               </el-table-column>
666
               </el-table-column>
682
-              <el-table-column prop="5_3" label="晚" width="110" align="center">
667
+              <el-table-column prop="5_3" label="晚" min-width="40" align="center">
683
                 <template slot-scope="scope">
668
                 <template slot-scope="scope">
684
                   <div class="del_table_btn">
669
                   <div class="del_table_btn">
685
                     <el-button
670
                     <el-button
718
               </el-table-column>
703
               </el-table-column>
719
             </el-table-column>
704
             </el-table-column>
720
 
705
 
721
-            <el-table-column label="周六" width="335" align="center">
722
-              <el-table-column prop="6_1" label="上" width="110" align="center">
706
+            <el-table-column label="周六"  align="center">
707
+              <el-table-column prop="6_1" label="上" min-width="40" align="center">
723
                 <template slot-scope="scope">
708
                 <template slot-scope="scope">
724
                   <div class="del_table_btn">
709
                   <div class="del_table_btn">
725
                     <el-button
710
                     <el-button
756
                   </div>
741
                   </div>
757
                 </template>
742
                 </template>
758
               </el-table-column>
743
               </el-table-column>
759
-              <el-table-column prop="6_2" label="下" width="110" align="center">
744
+              <el-table-column prop="6_2" label="下" min-width="40" align="center">
760
                 <template slot-scope="scope">
745
                 <template slot-scope="scope">
761
                   <div class="del_table_btn">
746
                   <div class="del_table_btn">
762
                     <el-button
747
                     <el-button
793
                   </div>
778
                   </div>
794
                 </template>
779
                 </template>
795
               </el-table-column>
780
               </el-table-column>
796
-              <el-table-column prop="6_3" label="晚" width="110" align="center">
781
+              <el-table-column prop="6_3" label="晚" min-width="40" align="center">
797
                 <template slot-scope="scope">
782
                 <template slot-scope="scope">
798
                   <div class="del_table_btn">
783
                   <div class="del_table_btn">
799
                     <el-button
784
                     <el-button
832
               </el-table-column>
817
               </el-table-column>
833
             </el-table-column>
818
             </el-table-column>
834
 
819
 
835
-            <el-table-column label="周日" min-width="335" align="center">
820
+            <el-table-column label="周日" align="center">
836
               <el-table-column
821
               <el-table-column
837
                 prop="7_1"
822
                 prop="7_1"
838
                 label="上"
823
                 label="上"
839
-                min-width="110"
824
+                min-width="40"
840
                 align="center"
825
                 align="center"
841
               >
826
               >
842
                 <template slot-scope="scope">
827
                 <template slot-scope="scope">
878
               <el-table-column
863
               <el-table-column
879
                 prop="7_2"
864
                 prop="7_2"
880
                 label="下"
865
                 label="下"
881
-                min-width="110"
866
+                min-width="40"
882
                 align="center"
867
                 align="center"
883
               >
868
               >
884
                 <template slot-scope="scope">
869
                 <template slot-scope="scope">
920
               <el-table-column
905
               <el-table-column
921
                 prop="7_3"
906
                 prop="7_3"
922
                 label="晚"
907
                 label="晚"
923
-                min-width="110"
908
+                min-width="40"
924
                 align="center"
909
                 align="center"
925
               >
910
               >
926
                 <template slot-scope="scope">
911
                 <template slot-scope="scope">
961
               </el-table-column>
946
               </el-table-column>
962
             </el-table-column>
947
             </el-table-column>
963
 
948
 
964
-            <el-table-column
949
+            <!-- <el-table-column
965
               prop="total"
950
               prop="total"
966
               label="总数"
951
               label="总数"
967
               width="60"
952
               width="60"
971
               <template slot-scope="scope">
956
               <template slot-scope="scope">
972
                 {{ scope.row.total }}
957
                 {{ scope.row.total }}
973
               </template>
958
               </template>
974
-            </el-table-column>
959
+            </el-table-column> -->
975
           </el-table>
960
           </el-table>
976
         </div>
961
         </div>
977
       </div>
962
       </div>
1353
 
1338
 
1354
       partition_id: 0,
1339
       partition_id: 0,
1355
       tableHeight: document.documentElement.clientHeight,
1340
       tableHeight: document.documentElement.clientHeight,
1356
-      template:null,
1341
+      template:0,
1357
       all_template:[],
1342
       all_template:[],
1358
       active_name:"first",
1343
       active_name:"first",
1359
     };
1344
     };
2097
       console.log("saveData")
2082
       console.log("saveData")
2098
       console.log(tempData)
2083
       console.log(tempData)
2099
       this.$emit("saveData", tempData,delData);
2084
       this.$emit("saveData", tempData,delData);
2100
-    },changeJihao(){
2085
+    },
2086
+    changeJihao(){
2101
       this.$forceUpdate()
2087
       this.$forceUpdate()
2102
-    },changeSchMachine(row) {
2088
+    },
2089
+    changeSchMachine(row) {
2103
       let params = {
2090
       let params = {
2104
         zone_id: row.zone_id,
2091
         zone_id: row.zone_id,
2105
         sch_type: row.time_type,
2092
         sch_type: row.time_type,
2368
 
2355
 
2369
       }
2356
       }
2370
 
2357
 
2371
-    },    deepClone(source) {
2358
+    }, 
2359
+    deepClone(source) {
2372
       if (!source && typeof source !== 'object') {
2360
       if (!source && typeof source !== 'object') {
2373
         throw new Error('error arguments', 'shallowClone')
2361
         throw new Error('error arguments', 'shallowClone')
2374
       }
2362
       }
2580
 
2568
 
2581
       }, 1000);
2569
       }, 1000);
2582
 
2570
 
2583
-    },curInfoDragStart(){
2571
+    },
2572
+    curInfoDragStart(){
2584
       this.cur_drag_obj = 1
2573
       this.cur_drag_obj = 1
2585
       this.cur_drag_info.patient_id = this.cur_info.patient_id
2574
       this.cur_drag_info.patient_id = this.cur_info.patient_id
2586
       this.cur_drag_info.patient_name = this.cur_info.patient_name
2575
       this.cur_drag_info.patient_name = this.cur_info.patient_name
2807
       this.all_zones = this.unique_two(this.all_zones);
2796
       this.all_zones = this.unique_two(this.all_zones);
2808
 
2797
 
2809
       return maked_device_numbers;
2798
       return maked_device_numbers;
2810
-    },   coverSch(){
2799
+    },  
2800
+    coverSch(){
2811
       let params={
2801
       let params={
2812
         template_id:this.template.id,
2802
         template_id:this.template.id,
2813
         week_type_one:this.cur_drag_info.schedule_week,
2803
         week_type_one:this.cur_drag_info.schedule_week,
2936
           };
2926
           };
2937
         }
2927
         }
2938
       }
2928
       }
2939
-    }, search_two: function () {
2929
+    }, 
2930
+    search_two: function () {
2940
       if (this.keywords.length == 0) {
2931
       if (this.keywords.length == 0) {
2941
         this.patients = this.all_patients;
2932
         this.patients = this.all_patients;
2942
       } else {
2933
       } else {
3002
       // else {
2993
       // else {
3003
       //   this.$refs.selector_dialog.showWith(item.pid, item.treat_mode_id, weekday, time_type, device_number_id)
2994
       //   this.$refs.selector_dialog.showWith(item.pid, item.treat_mode_id, weekday, time_type, device_number_id)
3004
       // }
2995
       // }
2996
+      // console.log('row[column.property]',row[column.property]);
2997
+      //   if (row[column.property].schedule_id > 0) {
2998
+      //     let patient_id = row[column.property].patient_id
2999
+      //       this.patient_id_hover = patient_id;
3000
+      //   } else {
3001
+      //     this.patient_id_hover = -1;
3002
+      //     this.currentData.mode_id = 1;
3003
+      //     this.currentData.id = 0;
3004
+      //     this.currentData.patient_id = 0;
3005
+      //     this.currentData.patient = "";
3006
+      //     this.currentData.contagions = [];
3007
+      //     this.getSchedulePatients();
3008
+      //     this.dialogTableVisible = true;
3009
+          
3010
+      //   }
3005
     },
3011
     },
3006
     will_add_schedule_actionTwo: function (
3012
     will_add_schedule_actionTwo: function (
3007
       patient_id,
3013
       patient_id,
3364
         this.data.push(obj);
3370
         this.data.push(obj);
3365
         this.$refs.selector_dialog.hide();
3371
         this.$refs.selector_dialog.hide();
3366
       }
3372
       }
3367
-    },    saveActionFour: function () {
3373
+    }, 
3374
+    saveActionFour: function () {
3368
       var add_items = [];
3375
       var add_items = [];
3369
       var del_items = [];
3376
       var del_items = [];
3370
       var change_items = [];
3377
       var change_items = [];
3769
 </script>
3776
 </script>
3770
 
3777
 
3771
 <style lang="scss" scoped>
3778
 <style lang="scss" scoped>
3772
-// /deep/ .el-dialog__wrapper {
3773
-//   .el-dialog {
3774
-     //     background: red;
3775
-//     .el-dialog__header {
3776
-       //       color: #fff;
3777
-       //       background-color: #409eff !important;
3778
-       //       border-color: #409eff;
3779
-       //     }
3780
-//   }
3781
-// }
3782
 .table_contain {
3779
 .table_contain {
3783
   display: flex;
3780
   display: flex;
3784
 
3781
 
3785
 .left_contain {
3782
 .left_contain {
3786
-  width: 230px;
3783
+  width: 14%;
3787
   margin-right: 15px;
3784
   margin-right: 15px;
3785
+  .item{
3786
+    width: 115px;
3787
+    padding: 6px 5px;
3788
+    margin: 0px 5px ;
3789
+    // border: solid 1px #eee;
3790
+    text-align: left;
3791
+  }
3788
 }
3792
 }
3789
 
3793
 
3790
 .right_contain {
3794
 .right_contain {
3791
-  width: 84%;
3795
+  width: 86%;
3796
+  .el-table{
3797
+    padding: 0 !important;
3798
+  }
3799
+  .del_table_btn{
3800
+    position: absolute;
3801
+    right: 0px;
3802
+    top: -3px;
3803
+    // visibility: hidden;
3804
+    .el-button {
3805
+      width: 15px;
3806
+      height: 15px;
3807
+      padding: 0px;
3808
+    }
3809
+  }
3792
 }
3810
 }
3811
+
3812
+// .el-table th .cell, .el-table td .cell {
3813
+//     margin: 0;
3814
+//     padding: 0 0px;
3815
+// }
3816
+// .el-table--medium td, .el-table--medium th {
3817
+//     padding: 5px 0 !important;
3818
+// }
3793
 }
3819
 }
3794
 .schedule-table-row {
3820
 .schedule-table-row {
3795
   background: #fff !important;
3821
   background: #fff !important;
3796
 }
3822
 }
3797
-
3798
 .schedule-table-row:hover {
3823
 .schedule-table-row:hover {
3799
   background: #fff !important;
3824
   background: #fff !important;
3800
 }
3825
 }
3809
 }
3834
 }
3810
 
3835
 
3811
 #table_data {
3836
 #table_data {
3812
-  /*min-height: calc(100vh - 350px);*/
3837
+  min-height: calc(100vh - 350px);
3813
 }
3838
 }
3814
 
3839
 
3815
 #table_data ::-webkit-scrollbar {
3840
 #table_data ::-webkit-scrollbar {
3836
 }
3861
 }
3837
 }
3862
 }
3838
 
3863
 
3839
-#table_data {
3840
-  min-height: calc(100vh - 350px);
3841
-}
3864
+// #table_data {
3865
+//   min-height: calc(100vh - 350px);
3866
+// }
3842
 
3867
 
3843
 #table_data ::-webkit-scrollbar {
3868
 #table_data ::-webkit-scrollbar {
3844
   height: 15px;
3869
   height: 15px;
3845
 }
3870
 }
3846
 
3871
 
3847
-.del_table_btn {
3848
-  position: absolute;
3849
-  right: 0px;
3850
-  top: -3px;
3851
-  z-index: 999;
3852
-  visibility: hidden;
3853
-
3854
-.el-button {
3855
-  width: 15px;
3856
-  height: 15px;
3857
-  padding: 0px;
3858
-}
3859
-}
3872
+// .del_table_btn {
3873
+//   position: absolute;
3874
+//   right: 0px;
3875
+//   top: -3px;
3876
+//   z-index: 999;
3877
+//   visibility: hidden;
3878
+
3879
+// .el-button {
3880
+//   width: 15px;
3881
+//   height: 15px;
3882
+//   padding: 0px;
3883
+// }
3884
+// }
3860
 
3885
 
3861
 #table_data {
3886
 #table_data {
3862
   min-height: calc(100vh - 350px);
3887
   min-height: calc(100vh - 350px);
3911
 }
3936
 }
3912
 }
3937
 }
3913
 
3938
 
3914
-.el-dialog__header {
3915
-  padding: 0 !important;
3916
-}
3939
+// .el-dialog__header {
3940
+//   padding: 0 !important;
3941
+// }
3917
 </style>
3942
 </style>

+ 2 - 2
src/xt_pages/workforce/printOne.vue View File

60
                     <div style="min-height: 80px">
60
                     <div style="min-height: 80px">
61
                       <div class="proj">
61
                       <div class="proj">
62
                         <div class="proj_item">
62
                         <div class="proj_item">
63
-                          <p v-html="getPatientName(item.schedule_type,it.partition_id)" class="zone_name">
63
+                          <p v-html="getPatientName(item.schedule_type,it.partition_id)" class="zone_name" style="font-size:20px">
64
                             
64
                             
65
                           </p>
65
                           </p>
66
                         </div>
66
                         </div>
665
           if (this.hiddenFlag) {
665
           if (this.hiddenFlag) {
666
             str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
666
             str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
667
           } else {
667
           } else {
668
-            str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + '  ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + '  ' + '上机备注:' + arr[i].order.order_remark + ')<br/>'
668
+            str += arr[i].name + '(' + '上次床位:' + arr[i].order.DeviceNumber.zone.name + '-' + arr[i].order.DeviceNumber.number + '  ' + '血管通路:' + this.getBloodAccess(arr[i].order.blood_access_id) + '  ' + '排班备注:' + arr[i].order.schedule_remark + ')<br/>'
669
           }
669
           }
670
         }
670
         }
671
       }
671
       }

+ 89 - 7
src/xt_pages/workforce/remind_print_setting.vue View File

19
         <div class="print_main_content">
19
         <div class="print_main_content">
20
           <div class="table_panel">
20
           <div class="table_panel">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
22
-              <div class="signPrint" v-if="org_id != 10188 && org_id!=10217  && org_id!=10340 && org_id!=9671 && org_id!=9675">
22
+              <div class="signPrint" v-if="org_id != 10188  && org_id!=10340 && org_id!=9671 && org_id!=9675">
23
+                <div>
24
+                  <span v-if="printObj.mode == 1">透析模式:
25
+                    <span v-if="main_collection.mode_id ==1">HD</span>
26
+                    <span v-if="main_collection.mode_id ==2">HDF</span>
27
+                    <span v-if="main_collection.mode_id ==3">HD+HP</span>
28
+                    <span v-if="main_collection.mode_id ==4">HP</span>
29
+                    <span v-if="main_collection.mode_id ==5">HF</span>
30
+                    <span v-if="main_collection.mode_id ==6">SCUF</span>
31
+                    <span v-if="main_collection.mode_id ==7">IUF</span>
32
+                    <span v-if="main_collection.mode_id ==8">HFHD</span>
33
+                    <span v-if="main_collection.mode_id ==9">HFHD+HP</span>
34
+                    <span v-if="main_collection.mode_id ==10">PHF</span>
35
+                    <span v-if="main_collection.mode_id ==11">HFR</span>
36
+                    <span v-if="main_collection.mode_id ==12">HDF+HP</span>
37
+                    <span v-if="main_collection.mode_id ==13">CRRT</span>
38
+                    <span v-if="main_collection.mode_id ==14">腹水回输</span>
39
+                    <span v-if="main_collection.mode_id ==19">IUF+HD</span>
40
+                    <span v-if="main_collection.mode_id ==20">UF</span>
41
+                    <span v-if="main_collection.mode_id ==21">HD+</span>
42
+                    <span v-if="main_collection.mode_id ==22">血浆胆红素吸附+HDF</span>
43
+                    <span v-if="main_collection.mode_id ==23">血浆胆红素吸附</span>
44
+                    <span v-if="main_collection.mode_id ==24">I-HDF</span>
45
+                    <span v-if="main_collection.mode_id ==25">HD高通</span>
46
+                    <span v-if="main_collection.mode_id ==26">CVVH</span>
47
+                    <span v-if="main_collection.mode_id ==27">CVVHD</span>
48
+                    <span v-if="main_collection.mode_id ==28">CVVHDF</span>
49
+                    <span v-if="main_collection.mode_id ==29">PE</span>
50
+                    <span v-if="main_collection.mode_id ==30">血浆胆红素吸附+HP</span>
51
+                    <span v-if="main_collection.mode_id ==31">HPD</span>
52
+                    <span v-if="main_collection.mode_id ==32">HDP</span>
53
+                  </span>
54
+                </div>
55
+                <div>
56
+                  <span v-if="printObj.week == 1">
57
+                     星期:
58
+                     <span v-if="main_collection.schedule_week ==1">星期一</span>
59
+                     <span v-if="main_collection.schedule_week ==2">星期二</span>
60
+                     <span v-if="main_collection.schedule_week ==3">星期三</span>
61
+                     <span v-if="main_collection.schedule_week ==4">星期四</span>
62
+                     <span v-if="main_collection.schedule_week ==5">星期五</span>
63
+                     <span v-if="main_collection.schedule_week ==6">星期六</span>
64
+                     <span v-if="main_collection.schedule_week ==7">星期日</span>
65
+                  </span>
66
+                </div>
23
                 <div>
67
                 <div>
24
                  <span v-if="printObj.zone == 1">分区/</span>
68
                  <span v-if="printObj.zone == 1">分区/</span>
25
                  <span v-if="printObj.number == 1">床位号:</span>
69
                  <span v-if="printObj.number == 1">床位号:</span>
31
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
32
                 </div>
76
                 </div>
33
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
77
                 <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>
78
+                  <span v-if="org_id == 10138 || org_id == 0 || org_id == 10278">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
35
                   <span v-else >
79
                   <span v-else >
36
-                   <span>{{getAnticoagulant(main_collection.dialysissolution.mode_id)}}</span>
80
+                   <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
37
                   </span>
81
                   </span>
38
                 </div>
82
                 </div>
39
                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
83
                <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
78
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">透前体重:{{main_collection.assessmentbefor.weight_before}}</div>
122
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">透前体重:{{main_collection.assessmentbefor.weight_before}}</div>
79
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">体重增加:{{(main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.dry_weight).toFixed(2)}}</div>
123
                 <div v-if="org_id == 10188 || org_id == 10217 || org_id == 10340 || org_id == 9671 || org_id == 9675">体重增加:{{(main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.dry_weight).toFixed(2)}}</div>
80
                 <div>用法:静脉注射</div>
124
                 <div>用法:静脉注射</div>
81
-                <div>打印时间:{{currentDate}}</div>
125
+                <!-- 透析器灌流器 -->
126
+               
127
+                 <div>
128
+                  <span v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器:</span>
129
+                  <span v-if="printObj.dialyzers == 1&& main_collection.dialysissolution.dialysis_dialyszers!=''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
130
+                  <span v-if="printObj.perfusion_apparatus == 1&& main_collection.dialysissolution.dialysis_irrigation!=''">{{main_collection.dialysissolution.dialysis_irrigation}}</span>
131
+
132
+                  <span v-if="org_id == 10440 && main_collection.dialysissolution.dialyzer_perfusion_apparatus!=''">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
133
+                </div>
134
+                <div v-if="printObj.doctor_advice == 1">
135
+                    医嘱:
136
+                   <span v-if="main_collection.doctoradvice!=''">{{getAdvice(main_collection.doctoradvice)}}</span>
137
+                </div>
138
+                
139
+               
140
+                <div v-if="org_id!=10440&&org_id!=0">打印时间:{{currentDate}}</div>
82
               </div>
141
               </div>
83
 
142
 
84
               <div class="signPrint" style="font-size:16px;" v-else>
143
               <div class="signPrint" style="font-size:16px;" v-else>
285
        getScheduleList(params).then(response=>{
344
        getScheduleList(params).then(response=>{
286
          if(response.data.state ==1){
345
          if(response.data.state ==1){
287
            var list = response.data.data.list
346
            var list = response.data.data.list
288
-          
347
+           
289
            for(let i=0;i<list.length;i++){
348
            for(let i=0;i<list.length;i++){
290
               list[i].sort = list[i].number.sort
349
               list[i].sort = list[i].number.sort
291
            }
350
            }
292
            var arr = list.sort(this.compare('sort'))
351
            var arr = list.sort(this.compare('sort'))
293
-           
352
+           console.log("arr--------",arr)
294
            this.scheduleData = arr
353
            this.scheduleData = arr
295
 
354
 
296
              let a = response.data.data.day
355
              let a = response.data.data.day
323
                 days = '星期日';
382
                 days = '星期日';
324
                 break;
383
                 break;
325
           }
384
           }
326
-          var str = year + "年" + month + "月" + day + "日  " + days;
385
+          var str = year + "年" + month + "月" + day + "日  ";
327
           this.currentDate = str
386
           this.currentDate = str
328
           }
387
           }
329
        })
388
        })
593
         if(name == 7){
652
         if(name == 7){
594
          name = "低分子肝素钠"
653
          name = "低分子肝素钠"
595
        }
654
        }
655
+       if(name == 8){
656
+         name = "依诺肝素"
657
+       }
658
+
659
+       if(name == 9){
660
+         name = "达肝素"
661
+       }
662
+       if(name == 10){
663
+         name = "体外抗凝"
664
+       }
665
+
666
+       if(name == 11){
667
+         name = "那屈肝素"
668
+       }
669
+
670
+       if(name == 12){
671
+         name = "无抗凝剂"
672
+       }
673
+       if(name == 13){
674
+         name = "那屈肝素钙"
675
+       }
676
+
677
+
596
 
678
 
597
        return name
679
        return name
598
      },
680
      },

+ 58 - 10
src/xt_pages/workforce/schedule_print.vue View File

57
                 </td>
57
                 </td>
58
                 <td :width="td_4_width" valign="top">
58
                 <td :width="td_4_width" valign="top">
59
                   <div class="proj" v-if="Object.keys(main_collection.hdf).length > 0">
59
                   <div class="proj" v-if="Object.keys(main_collection.hdf).length > 0">
60
-                    <div class="proj_title">血滤:</div>
60
+                    <div class="proj_title">血滤(HDF):</div>
61
                     <div class="proj_item" v-html="patient_other_names(main_collection.hdf)">
61
                     <div class="proj_item" v-html="patient_other_names(main_collection.hdf)">
62
                     </div>
62
                     </div>
63
                   </div>
63
                   </div>
64
                   <div class="proj" v-if="Object.keys(main_collection.hd_hp).length > 0">
64
                   <div class="proj" v-if="Object.keys(main_collection.hd_hp).length > 0">
65
-                    <div class="proj_title">灌流:</div>
65
+                    <div class="proj_title">灌流(HD+HP):</div>
66
                     <div class="proj_item" v-html="patient_other_names(main_collection.hd_hp)">>
66
                     <div class="proj_item" v-html="patient_other_names(main_collection.hd_hp)">>
67
                     </div>
67
                     </div>
68
                   </div>
68
                   </div>
69
+                   <div class="proj" v-if="Object.keys(main_collection.hfhd_hp).length > 0">
70
+                    <div class="proj_title">灌流(HFHD+HP):</div>
71
+                    <div class="proj_item" v-html="patient_other_names(main_collection.hfhd_hp)">>
72
+                    </div>
73
+                  </div>
69
                 </td>
74
                 </td>
70
               </tr>
75
               </tr>
71
               </tbody>
76
               </tbody>
110
             },
115
             },
111
             hdf: [ /* schedule, ... */],
116
             hdf: [ /* schedule, ... */],
112
             hd_hp: [ /* schedule, ... */],
117
             hd_hp: [ /* schedule, ... */],
113
-
118
+            hfhd_hp:[],
114
             new_hdf:{
119
             new_hdf:{
115
               am: { /* zone_name: [ schedule, ... ] */ },
120
               am: { /* zone_name: [ schedule, ... ] */ },
116
               pm: { /* zone_name: [ schedule, ... ] */ },
121
               pm: { /* zone_name: [ schedule, ... ] */ },
120
               am: { /* zone_name: [ schedule, ... ] */ },
125
               am: { /* zone_name: [ schedule, ... ] */ },
121
               pm: { /* zone_name: [ schedule, ... ] */ },
126
               pm: { /* zone_name: [ schedule, ... ] */ },
122
               evening: { /* zone_name: [ schedule, ... ] */ }
127
               evening: { /* zone_name: [ schedule, ... ] */ }
123
-            }
128
+            },
129
+            new_hfhd_hp:{
130
+              am: { /* zone_name: [ schedule, ... ] */ },
131
+              pm: { /* zone_name: [ schedule, ... ] */ },
132
+              evening: { /* zone_name: [ schedule, ... ] */ }
133
+            },
124
 
134
 
125
           },
135
           },
126
           {
136
           {
133
             },
143
             },
134
             hdf: [ /* schedule, ... */],
144
             hdf: [ /* schedule, ... */],
135
             hd_hp: [ /* schedule, ... */],
145
             hd_hp: [ /* schedule, ... */],
146
+            hfhd_hp:[],
136
             new_hdf:{
147
             new_hdf:{
137
               am: { /* zone_name: [ schedule, ... ] */ },
148
               am: { /* zone_name: [ schedule, ... ] */ },
138
               pm: { /* zone_name: [ schedule, ... ] */ },
149
               pm: { /* zone_name: [ schedule, ... ] */ },
142
               am: { /* zone_name: [ schedule, ... ] */ },
153
               am: { /* zone_name: [ schedule, ... ] */ },
143
               pm: { /* zone_name: [ schedule, ... ] */ },
154
               pm: { /* zone_name: [ schedule, ... ] */ },
144
               evening: { /* zone_name: [ schedule, ... ] */ }
155
               evening: { /* zone_name: [ schedule, ... ] */ }
145
-            }
156
+            },
157
+            new_hfhd_hp:{
158
+              am: { /* zone_name: [ schedule, ... ] */ },
159
+              pm: { /* zone_name: [ schedule, ... ] */ },
160
+              evening: { /* zone_name: [ schedule, ... ] */ }
161
+            },
146
           },
162
           },
147
           {
163
           {
148
             day: 3,
164
             day: 3,
154
             },
170
             },
155
             hdf: [ /* schedule, ... */],
171
             hdf: [ /* schedule, ... */],
156
             hd_hp: [ /* schedule, ... */],
172
             hd_hp: [ /* schedule, ... */],
173
+            hfhd_hp:[],
157
             new_hdf:{
174
             new_hdf:{
158
               am: { /* zone_name: [ schedule, ... ] */ },
175
               am: { /* zone_name: [ schedule, ... ] */ },
159
               pm: { /* zone_name: [ schedule, ... ] */ },
176
               pm: { /* zone_name: [ schedule, ... ] */ },
163
               am: { /* zone_name: [ schedule, ... ] */ },
180
               am: { /* zone_name: [ schedule, ... ] */ },
164
               pm: { /* zone_name: [ schedule, ... ] */ },
181
               pm: { /* zone_name: [ schedule, ... ] */ },
165
               evening: { /* zone_name: [ schedule, ... ] */ }
182
               evening: { /* zone_name: [ schedule, ... ] */ }
166
-            }
183
+            },
184
+             new_hfhd_hp:{
185
+              am: { /* zone_name: [ schedule, ... ] */ },
186
+              pm: { /* zone_name: [ schedule, ... ] */ },
187
+              evening: { /* zone_name: [ schedule, ... ] */ }
188
+            },
167
           },
189
           },
168
           {
190
           {
169
             day: 4,
191
             day: 4,
175
             },
197
             },
176
             hdf: [ /* schedule, ... */],
198
             hdf: [ /* schedule, ... */],
177
             hd_hp: [ /* schedule, ... */],
199
             hd_hp: [ /* schedule, ... */],
200
+            hfhd_hp:[],
178
             new_hdf:{
201
             new_hdf:{
179
               am: { /* zone_name: [ schedule, ... ] */ },
202
               am: { /* zone_name: [ schedule, ... ] */ },
180
               pm: { /* zone_name: [ schedule, ... ] */ },
203
               pm: { /* zone_name: [ schedule, ... ] */ },
184
               am: { /* zone_name: [ schedule, ... ] */ },
207
               am: { /* zone_name: [ schedule, ... ] */ },
185
               pm: { /* zone_name: [ schedule, ... ] */ },
208
               pm: { /* zone_name: [ schedule, ... ] */ },
186
               evening: { /* zone_name: [ schedule, ... ] */ }
209
               evening: { /* zone_name: [ schedule, ... ] */ }
187
-            }
210
+            },
211
+             new_hfhd_hp:{
212
+              am: { /* zone_name: [ schedule, ... ] */ },
213
+              pm: { /* zone_name: [ schedule, ... ] */ },
214
+              evening: { /* zone_name: [ schedule, ... ] */ }
215
+            },
188
           },
216
           },
189
           {
217
           {
190
             day: 5,
218
             day: 5,
196
             },
224
             },
197
             hdf: [ /* schedule, ... */],
225
             hdf: [ /* schedule, ... */],
198
             hd_hp: [ /* schedule, ... */],
226
             hd_hp: [ /* schedule, ... */],
227
+            hfhd_hp:[],
199
             new_hdf:{
228
             new_hdf:{
200
               am: { /* zone_name: [ schedule, ... ] */ },
229
               am: { /* zone_name: [ schedule, ... ] */ },
201
               pm: { /* zone_name: [ schedule, ... ] */ },
230
               pm: { /* zone_name: [ schedule, ... ] */ },
205
               am: { /* zone_name: [ schedule, ... ] */ },
234
               am: { /* zone_name: [ schedule, ... ] */ },
206
               pm: { /* zone_name: [ schedule, ... ] */ },
235
               pm: { /* zone_name: [ schedule, ... ] */ },
207
               evening: { /* zone_name: [ schedule, ... ] */ }
236
               evening: { /* zone_name: [ schedule, ... ] */ }
208
-            }
237
+            },
238
+             new_hfhd_hp:{
239
+              am: { /* zone_name: [ schedule, ... ] */ },
240
+              pm: { /* zone_name: [ schedule, ... ] */ },
241
+              evening: { /* zone_name: [ schedule, ... ] */ }
242
+            },
209
           },
243
           },
210
           {
244
           {
211
             day: 6,
245
             day: 6,
217
             },
251
             },
218
             hdf: [ /* schedule, ... */],
252
             hdf: [ /* schedule, ... */],
219
             hd_hp: [ /* schedule, ... */],
253
             hd_hp: [ /* schedule, ... */],
254
+            hfhd_hp:[],
220
             new_hdf:{
255
             new_hdf:{
221
               am: { /* zone_name: [ schedule, ... ] */ },
256
               am: { /* zone_name: [ schedule, ... ] */ },
222
               pm: { /* zone_name: [ schedule, ... ] */ },
257
               pm: { /* zone_name: [ schedule, ... ] */ },
226
               am: { /* zone_name: [ schedule, ... ] */ },
261
               am: { /* zone_name: [ schedule, ... ] */ },
227
               pm: { /* zone_name: [ schedule, ... ] */ },
262
               pm: { /* zone_name: [ schedule, ... ] */ },
228
               evening: { /* zone_name: [ schedule, ... ] */ }
263
               evening: { /* zone_name: [ schedule, ... ] */ }
229
-            }
264
+            },
265
+             new_hfhd_hp:{
266
+              am: { /* zone_name: [ schedule, ... ] */ },
267
+              pm: { /* zone_name: [ schedule, ... ] */ },
268
+              evening: { /* zone_name: [ schedule, ... ] */ }
269
+            },
230
           },
270
           },
231
           {
271
           {
232
             day: 7,
272
             day: 7,
238
             },
278
             },
239
             hdf: [ /* schedule, ... */],
279
             hdf: [ /* schedule, ... */],
240
             hd_hp: [ /* schedule, ... */],
280
             hd_hp: [ /* schedule, ... */],
281
+            hfhd_hp:[],
241
             new_hdf:{
282
             new_hdf:{
242
               am: { /* zone_name: [ schedule, ... ] */ },
283
               am: { /* zone_name: [ schedule, ... ] */ },
243
               pm: { /* zone_name: [ schedule, ... ] */ },
284
               pm: { /* zone_name: [ schedule, ... ] */ },
247
               am: { /* zone_name: [ schedule, ... ] */ },
288
               am: { /* zone_name: [ schedule, ... ] */ },
248
               pm: { /* zone_name: [ schedule, ... ] */ },
289
               pm: { /* zone_name: [ schedule, ... ] */ },
249
               evening: { /* zone_name: [ schedule, ... ] */ }
290
               evening: { /* zone_name: [ schedule, ... ] */ }
250
-            }
291
+            },
292
+             new_hfhd_hp:{
293
+              am: { /* zone_name: [ schedule, ... ] */ },
294
+              pm: { /* zone_name: [ schedule, ... ] */ },
295
+              evening: { /* zone_name: [ schedule, ... ] */ }
296
+            },
251
           }
297
           }
252
         ],
298
         ],
253
 
299
 
320
             } else if (schedule.mode.id == 3) { // HD+HF
366
             } else if (schedule.mode.id == 3) { // HD+HF
321
 
367
 
322
               main_collection.hd_hp.push(schedule)
368
               main_collection.hd_hp.push(schedule)
369
+            }else if(schedule.mode.id == 9){ //HFHD+HP
370
+               main_collection.hfhd_hp.push(schedule)
323
             }
371
             }
324
 
372
 
325
           }
373
           }

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))