Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
3404cd74d7
92 muutettua tiedostoa jossa 28973 lisäystä ja 4343 poistoa
  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 Näytä tiedosto

@@ -6,8 +6,8 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 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 11
   BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',

+ 1 - 1
config/index.js Näytä tiedosto

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

+ 74 - 47
package-lock.json Näytä tiedosto

@@ -239,7 +239,7 @@
239 239
     "amdefine": {
240 240
       "version": "1.0.1",
241 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 244
     "ansi-escapes": {
245 245
       "version": "3.2.0",
@@ -433,7 +433,7 @@
433 433
     "assert-plus": {
434 434
       "version": "1.0.0",
435 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 438
     "assign-symbols": {
439 439
       "version": "1.0.0",
@@ -459,7 +459,7 @@
459 459
     "async-foreach": {
460 460
       "version": "0.1.3",
461 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 464
     "async-limiter": {
465 465
       "version": "1.0.0",
@@ -478,7 +478,7 @@
478 478
     "asynckit": {
479 479
       "version": "0.4.0",
480 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 483
     "atob": {
484 484
       "version": "2.1.2",
@@ -503,7 +503,7 @@
503 503
     "aws-sign2": {
504 504
       "version": "0.7.0",
505 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 508
     "aws4": {
509 509
       "version": "1.11.0",
@@ -1489,7 +1489,7 @@
1489 1489
     "bcrypt-pbkdf": {
1490 1490
       "version": "1.0.2",
1491 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 1493
       "requires": {
1494 1494
         "tweetnacl": "^0.14.3"
1495 1495
       }
@@ -1509,7 +1509,7 @@
1509 1509
     "block-stream": {
1510 1510
       "version": "0.0.9",
1511 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 1513
       "requires": {
1514 1514
         "inherits": "~2.0.0"
1515 1515
       }
@@ -1918,7 +1918,7 @@
1918 1918
     "caseless": {
1919 1919
       "version": "0.12.0",
1920 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 1923
     "center-align": {
1924 1924
       "version": "0.1.3",
@@ -2511,7 +2511,7 @@
2511 2511
     "console-control-strings": {
2512 2512
       "version": "1.1.0",
2513 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 2516
     "consolidate": {
2517 2517
       "version": "0.14.5",
@@ -3144,7 +3144,7 @@
3144 3144
     "dashdash": {
3145 3145
       "version": "1.14.1",
3146 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 3148
       "requires": {
3149 3149
         "assert-plus": "^1.0.0"
3150 3150
       }
@@ -3310,7 +3310,7 @@
3310 3310
     "delayed-stream": {
3311 3311
       "version": "1.0.0",
3312 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 3315
     "delegate": {
3316 3316
       "version": "3.2.0",
@@ -3320,7 +3320,7 @@
3320 3320
     "delegates": {
3321 3321
       "version": "1.0.0",
3322 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 3325
     "depd": {
3326 3326
       "version": "1.1.2",
@@ -3498,7 +3498,7 @@
3498 3498
     "ecc-jsbn": {
3499 3499
       "version": "0.1.2",
3500 3500
       "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
3501
-      "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==",
3501
+      "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
3502 3502
       "requires": {
3503 3503
         "jsbn": "~0.1.0",
3504 3504
         "safer-buffer": "^2.1.0"
@@ -4355,7 +4355,7 @@
4355 4355
     "extsprintf": {
4356 4356
       "version": "1.3.0",
4357 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 4360
     "fast-deep-equal": {
4361 4361
       "version": "2.0.1",
@@ -4602,7 +4602,7 @@
4602 4602
     "forever-agent": {
4603 4603
       "version": "0.6.1",
4604 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 4607
     "form-data": {
4608 4608
       "version": "2.3.3",
@@ -4759,7 +4759,8 @@
4759 4759
         "ansi-regex": {
4760 4760
           "version": "2.1.1",
4761 4761
           "bundled": true,
4762
-          "dev": true
4762
+          "dev": true,
4763
+          "optional": true
4763 4764
         },
4764 4765
         "aproba": {
4765 4766
           "version": "1.2.0",
@@ -4782,13 +4783,15 @@
4782 4783
         "balanced-match": {
4783 4784
           "version": "1.0.0",
4784 4785
           "bundled": true,
4785
-          "dev": true
4786
+          "dev": true,
4787
+          "optional": true
4786 4788
         },
4787 4789
         "brace-expansion": {
4788 4790
           "version": "1.1.11",
4789 4791
           "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4790 4792
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4791 4793
           "dev": true,
4794
+          "optional": true,
4792 4795
           "requires": {
4793 4796
             "balanced-match": "^1.0.0",
4794 4797
             "concat-map": "0.0.1"
@@ -4804,19 +4807,22 @@
4804 4807
         "code-point-at": {
4805 4808
           "version": "1.1.0",
4806 4809
           "bundled": true,
4807
-          "dev": true
4810
+          "dev": true,
4811
+          "optional": true
4808 4812
         },
4809 4813
         "concat-map": {
4810 4814
           "version": "0.0.1",
4811 4815
           "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4812 4816
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4813
-          "dev": true
4817
+          "dev": true,
4818
+          "optional": true
4814 4819
         },
4815 4820
         "console-control-strings": {
4816 4821
           "version": "1.1.0",
4817 4822
           "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4818 4823
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4819
-          "dev": true
4824
+          "dev": true,
4825
+          "optional": true
4820 4826
         },
4821 4827
         "core-util-is": {
4822 4828
           "version": "1.0.2",
@@ -4946,7 +4952,8 @@
4946 4952
         "inherits": {
4947 4953
           "version": "2.0.3",
4948 4954
           "bundled": true,
4949
-          "dev": true
4955
+          "dev": true,
4956
+          "optional": true
4950 4957
         },
4951 4958
         "ini": {
4952 4959
           "version": "1.3.5",
@@ -4960,6 +4967,7 @@
4960 4967
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4961 4968
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4962 4969
           "dev": true,
4970
+          "optional": true,
4963 4971
           "requires": {
4964 4972
             "number-is-nan": "^1.0.0"
4965 4973
           }
@@ -4976,6 +4984,7 @@
4976 4984
           "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4977 4985
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4978 4986
           "dev": true,
4987
+          "optional": true,
4979 4988
           "requires": {
4980 4989
             "brace-expansion": "^1.1.7"
4981 4990
           }
@@ -4983,13 +4992,15 @@
4983 4992
         "minimist": {
4984 4993
           "version": "0.0.8",
4985 4994
           "bundled": true,
4986
-          "dev": true
4995
+          "dev": true,
4996
+          "optional": true
4987 4997
         },
4988 4998
         "minipass": {
4989 4999
           "version": "2.3.5",
4990 5000
           "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
4991 5001
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4992 5002
           "dev": true,
5003
+          "optional": true,
4993 5004
           "requires": {
4994 5005
             "safe-buffer": "^5.1.2",
4995 5006
             "yallist": "^3.0.0"
@@ -5010,6 +5021,7 @@
5010 5021
           "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
5011 5022
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
5012 5023
           "dev": true,
5024
+          "optional": true,
5013 5025
           "requires": {
5014 5026
             "minimist": "0.0.8"
5015 5027
           }
@@ -5097,7 +5109,8 @@
5097 5109
         "number-is-nan": {
5098 5110
           "version": "1.0.1",
5099 5111
           "bundled": true,
5100
-          "dev": true
5112
+          "dev": true,
5113
+          "optional": true
5101 5114
         },
5102 5115
         "object-assign": {
5103 5116
           "version": "4.1.1",
@@ -5111,6 +5124,7 @@
5111 5124
           "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5112 5125
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5113 5126
           "dev": true,
5127
+          "optional": true,
5114 5128
           "requires": {
5115 5129
             "wrappy": "1"
5116 5130
           }
@@ -5205,7 +5219,8 @@
5205 5219
         "safe-buffer": {
5206 5220
           "version": "5.1.2",
5207 5221
           "bundled": true,
5208
-          "dev": true
5222
+          "dev": true,
5223
+          "optional": true
5209 5224
         },
5210 5225
         "safer-buffer": {
5211 5226
           "version": "2.1.2",
@@ -5247,6 +5262,7 @@
5247 5262
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5248 5263
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5249 5264
           "dev": true,
5265
+          "optional": true,
5250 5266
           "requires": {
5251 5267
             "code-point-at": "^1.0.0",
5252 5268
             "is-fullwidth-code-point": "^1.0.0",
@@ -5268,6 +5284,7 @@
5268 5284
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5269 5285
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5270 5286
           "dev": true,
5287
+          "optional": true,
5271 5288
           "requires": {
5272 5289
             "ansi-regex": "^2.0.0"
5273 5290
           }
@@ -5315,13 +5332,15 @@
5315 5332
         "wrappy": {
5316 5333
           "version": "1.0.2",
5317 5334
           "bundled": true,
5318
-          "dev": true
5335
+          "dev": true,
5336
+          "optional": true
5319 5337
         },
5320 5338
         "yallist": {
5321 5339
           "version": "3.0.3",
5322 5340
           "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5323 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,7 +5370,7 @@
5351 5370
     "gauge": {
5352 5371
       "version": "2.7.4",
5353 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 5374
       "requires": {
5356 5375
         "aproba": "^1.0.3",
5357 5376
         "console-control-strings": "^1.0.0",
@@ -5366,12 +5385,12 @@
5366 5385
         "ansi-regex": {
5367 5386
           "version": "2.1.1",
5368 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 5390
         "is-fullwidth-code-point": {
5372 5391
           "version": "1.0.0",
5373 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 5394
           "requires": {
5376 5395
             "number-is-nan": "^1.0.0"
5377 5396
           }
@@ -5379,7 +5398,7 @@
5379 5398
         "string-width": {
5380 5399
           "version": "1.0.2",
5381 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 5402
           "requires": {
5384 5403
             "code-point-at": "^1.0.0",
5385 5404
             "is-fullwidth-code-point": "^1.0.0",
@@ -5389,7 +5408,7 @@
5389 5408
         "strip-ansi": {
5390 5409
           "version": "3.0.1",
5391 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 5412
           "requires": {
5394 5413
             "ansi-regex": "^2.0.0"
5395 5414
           }
@@ -5434,7 +5453,7 @@
5434 5453
     "getpass": {
5435 5454
       "version": "0.1.7",
5436 5455
       "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
5437
-      "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==",
5456
+      "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
5438 5457
       "requires": {
5439 5458
         "assert-plus": "^1.0.0"
5440 5459
       }
@@ -5583,7 +5602,7 @@
5583 5602
     "har-schema": {
5584 5603
       "version": "2.0.0",
5585 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 5607
     "har-validator": {
5589 5608
       "version": "5.1.5",
@@ -5656,7 +5675,7 @@
5656 5675
     "has-unicode": {
5657 5676
       "version": "2.0.1",
5658 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 5680
     "has-value": {
5662 5681
       "version": "1.0.0",
@@ -6070,7 +6089,7 @@
6070 6089
     "http-signature": {
6071 6090
       "version": "1.2.0",
6072 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 6093
       "requires": {
6075 6094
         "assert-plus": "^1.0.0",
6076 6095
         "jsprim": "^1.2.2",
@@ -6184,6 +6203,14 @@
6184 6203
       "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz",
6185 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 6214
     "indent-string": {
6188 6215
       "version": "3.2.0",
6189 6216
       "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz",
@@ -6580,7 +6607,7 @@
6580 6607
     "is-typedarray": {
6581 6608
       "version": "1.0.0",
6582 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 6612
     "is-utf8": {
6586 6613
       "version": "0.2.1",
@@ -6618,7 +6645,7 @@
6618 6645
     "isstream": {
6619 6646
       "version": "0.1.2",
6620 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 6650
     "jest-get-type": {
6624 6651
       "version": "22.4.3",
@@ -6672,7 +6699,7 @@
6672 6699
     "jsbn": {
6673 6700
       "version": "0.1.1",
6674 6701
       "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
6675
-      "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg=="
6702
+      "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
6676 6703
     },
6677 6704
     "jsesc": {
6678 6705
       "version": "1.3.0",
@@ -6711,7 +6738,7 @@
6711 6738
     "json-stringify-safe": {
6712 6739
       "version": "5.0.1",
6713 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 6743
     "json3": {
6717 6744
       "version": "3.3.2",
@@ -7685,7 +7712,7 @@
7685 7712
         "semver": {
7686 7713
           "version": "5.3.0",
7687 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,7 +7907,7 @@
7880 7907
     "nopt": {
7881 7908
       "version": "3.0.6",
7882 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 7911
       "requires": {
7885 7912
         "abbrev": "1"
7886 7913
       }
@@ -8494,7 +8521,7 @@
8494 8521
     "performance-now": {
8495 8522
       "version": "2.1.0",
8496 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 8526
     "pify": {
8500 8527
       "version": "3.0.0",
@@ -12265,7 +12292,7 @@
12265 12292
     "scss-tokenizer": {
12266 12293
       "version": "0.2.3",
12267 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 12296
       "requires": {
12270 12297
         "js-base64": "^2.1.8",
12271 12298
         "source-map": "^0.4.2"
@@ -12274,7 +12301,7 @@
12274 12301
         "source-map": {
12275 12302
           "version": "0.4.4",
12276 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 12305
           "requires": {
12279 12306
             "amdefine": ">=0.0.4"
12280 12307
           }
@@ -13721,7 +13748,7 @@
13721 13748
     "tunnel-agent": {
13722 13749
       "version": "0.6.0",
13723 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 13752
       "requires": {
13726 13753
         "safe-buffer": "^5.0.1"
13727 13754
       }
@@ -13729,7 +13756,7 @@
13729 13756
     "tweetnacl": {
13730 13757
       "version": "0.14.5",
13731 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 13761
     "type-check": {
13735 13762
       "version": "0.3.2",
@@ -14099,7 +14126,7 @@
14099 14126
     "verror": {
14100 14127
       "version": "1.10.0",
14101 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 14130
       "requires": {
14104 14131
         "assert-plus": "^1.0.0",
14105 14132
         "core-util-is": "1.0.2",

+ 2 - 1
package.json Näytä tiedosto

@@ -12,7 +12,7 @@
12 12
     "lint": "eslint --ext .js,.vue src",
13 13
     "test": "npm run lint",
14 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 16
     "fixfont": "xcopy %cd%\\dist\\static\\fonts %cd%\\dist\\static\\css\\static\\fonts /s /y /d /e /i",
17 17
     "fiximg": "xcopy %cd%\\dist\\static\\img %cd%\\dist\\static\\css\\static\\img /s /y /d /e /i"
18 18
   },
@@ -50,6 +50,7 @@
50 50
     "element-ui": "^2.13.2",
51 51
     "file-saver": "^1.3.8",
52 52
     "font-awesome": "4.7.0",
53
+    "increase-memory-limit": "^1.0.7",
53 54
     "js-cookie": "2.2.0",
54 55
     "jsbarcode": "^3.11.5",
55 56
     "jsonlint": "1.6.3",

+ 6 - 5
src/api/advice.js Näytä tiedosto

@@ -505,6 +505,7 @@ export function getSchedualDoctors(params) {
505 505
 }
506 506
 
507 507
 export function getNewSchedualDoctors(params) {
508
+  console.log('params-----', params)
508 509
   return request({
509 510
     url: '/api/schedule/new/advices',
510 511
     method: 'get',
@@ -568,10 +569,10 @@ export function excutionDoctorAdviceById(params) {
568 569
   })
569 570
 }
570 571
 
571
-export function GetMobileScheduleList(params){
572
+export function GetMobileScheduleList(params) {
572 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 Näytä tiedosto

@@ -612,3 +612,43 @@ export function getDialysisSolutionDetailList(params) {
612 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 Näytä tiedosto

@@ -405,6 +405,13 @@ export default {
405 405
     illness_discharge: '出院时病情',
406 406
     discharge_advice: '出院医嘱',
407 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 Näytä tiedosto

@@ -789,6 +789,19 @@ export default {
789 789
         title: '批量打印',
790 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 Näytä tiedosto

@@ -247,6 +247,28 @@ export default {
247 247
       title: 'templateSummary',
248 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 Näytä tiedosto

@@ -0,0 +1,21 @@
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 Näytä tiedosto

@@ -484,7 +484,7 @@ export default {
484 484
       isVisibility: "",
485 485
       propsTable: "",
486 486
       doctorList: [],
487
-      admin_user_id: 0,
487
+      admin_user_id:0,
488 488
       waiting_drug: [], //待发药列表
489 489
       issued_drug: [], //已发药列表
490 490
       currentRow: null,
@@ -1091,7 +1091,25 @@ export default {
1091 1091
       };
1092 1092
       getpatientswithdrugs(params).then((res) => {
1093 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 1113
           this.total = res.data.data.total; //合计
1096 1114
         } else {
1097 1115
           this.$message.error(res.data.msg);

+ 18 - 1
src/xt_pages/Pharmacy/PatientDispensing.vue Näytä tiedosto

@@ -515,6 +515,7 @@ export default {
515 515
     },
516 516
     //获取患者信息详情
517 517
     getpatientdetails(val) {
518
+      console.log("val2332323223",this.currentRow)
518 519
       var params = {
519 520
         patient_id: this.currentRow.PatientID,
520 521
         is_medicine: val,
@@ -522,7 +523,23 @@ export default {
522 523
       };
523 524
       getpharmacycontent(params).then((res) => {
524 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 543
         } else {
527 544
           this.$message.error(res.data.msg);
528 545
         }

+ 6 - 0
src/xt_pages/data/template.vue Näytä tiedosto

@@ -56,6 +56,12 @@ export default {
56 56
         { label: this.$t("data_config.discharge_advice"), key:"discharge_advice"},
57 57
         { label: this.$t("data_config.dialysis_remark"), key:"dialysis_remark"},
58 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 66
       activeName: "education",
61 67
       createdTimes: 0

+ 7 - 2
src/xt_pages/dialysis/PatientBox.vue Näytä tiedosto

@@ -158,16 +158,21 @@
158 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 162
           透析器/灌流器:{{schedule.prescription? schedule.prescription.dialyzer_perfusion_apparatus: ""}}
163 163
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_dialyszers: ""}}</span>
164 164
           <span v-if="schedule.prescription != null &&schedule.prescription.dialysis_irrigation != ''">/</span>
165 165
           <span v-if="schedule.prescription != null">{{schedule.prescription? schedule.prescription.dialysis_irrigation: ""}}</span>
166 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 169
              <span v-if="schedule.dialysis_order!=null">{{schedule.dialysis_order.dialysis_dialyszers}}</span>
170 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 176
         </p>
172 177
       
173 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 Näytä tiedosto

@@ -39,7 +39,13 @@
39 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 49
             </div>
44 50
           </div>
45 51
           <div class="row">
@@ -928,7 +934,8 @@
928 934
                               : "/"
929 935
                           }}
930 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 939
                       </div>
933 940
                       <div class="inline_block" style="flex: 1">
934 941
                         干体重:
@@ -1021,6 +1028,7 @@
1021 1028
                         ml/min
1022 1029
                       </div>
1023 1030
                     </div>
1031
+
1024 1032
                     <div class="row" style="padding: 2px 0; line-height: 23px">
1025 1033
                       <div class="inline_block">
1026 1034
                         抗凝剂:
@@ -1171,6 +1179,57 @@
1171 1179
                         </div>
1172 1180
                       </div>
1173 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 1233
                   </td>
1175 1234
                 </tr>
1176 1235
                 <tr>
@@ -1224,7 +1283,8 @@
1224 1283
                           >
1225 1284
                             SpO₂<br />(%)
1226 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 1288
                           <td
1229 1289
                             v-if="
1230 1290
                               record.prescription.mode_id == 2 ||
@@ -1235,7 +1295,7 @@
1235 1295
                           >
1236 1296
                             置换量<br />(ml)
1237 1297
                           </td>
1238
-
1298
+                          <td v-if="org_id == 3877 || org_id == 0 || org_id == 10449" width="50">滤前压(mmHg)</td>
1239 1299
                           <td
1240 1300
                             width="50"
1241 1301
                             v-if="
@@ -1369,11 +1429,20 @@
1369 1429
                           </td>
1370 1430
 
1371 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 1441
                               monitor_record.ultrafiltration_volume
1374 1442
                                 ? monitor_record.ultrafiltration_volume
1375 1443
                                 : ""
1376
-                            }}</span>
1444
+                            }}
1445
+                            </span>
1377 1446
                           </td>
1378 1447
 
1379 1448
                           <td
@@ -1390,6 +1459,13 @@
1390 1459
                                 : ""
1391 1460
                             }}
1392 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 1469
                           <td
1394 1470
                             width="50"
1395 1471
                             v-if="
@@ -1438,14 +1514,14 @@
1438 1514
                                   "
1439 1515
                                   >【开始透析】</template
1440 1516
                                 >
1441
-                                <template
1517
+                                <!-- <template
1442 1518
                                   v-if="
1443 1519
                                     record.dialysis_order &&
1444 1520
                                     monitor_record.operate_time ==
1445 1521
                                       record.dialysis_order.end_time
1446 1522
                                   "
1447 1523
                                   >【结束透析】</template
1448
-                                >
1524
+                                > -->
1449 1525
                                 {{ monitor_record.end }}
1450 1526
                                 {{ monitor_record.symptom }} &nbsp;{{
1451 1527
                                   monitor_record.dispose
@@ -1820,7 +1896,13 @@
1820 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 1906
               </div>
1825 1907
             </div>
1826 1908
             <div class="row">
@@ -2734,20 +2816,20 @@
2734 2816
                           <template
2735 2817
                             v-if="
2736 2818
                               record.prescription &&
2737
-                              record.prescription.prescription_doctor
2819
+                              record.prescription.creater
2738 2820
                             "
2739 2821
                           >
2740 2822
                             <span
2741 2823
                               v-if="
2742 2824
                                 setAdminUserES(
2743 2825
                                   record.prescription,
2744
-                                  'prescription_doctor'
2826
+                                  'creater'
2745 2827
                                 ) == ''
2746 2828
                               "
2747 2829
                               >{{
2748 2830
                                 getAdminUser(
2749 2831
                                   record.prescription,
2750
-                                  "prescription_doctor"
2832
+                                  "creater"
2751 2833
                                 )
2752 2834
                               }}</span
2753 2835
                             >
@@ -2756,7 +2838,7 @@
2756 2838
                               :src="
2757 2839
                                 setAdminUserES(
2758 2840
                                   record.prescription,
2759
-                                  'prescription_doctor'
2841
+                                  'creater'
2760 2842
                                 )
2761 2843
                               "
2762 2844
                               alt=""
@@ -2915,7 +2997,22 @@ export default {
2915 2997
         var resp = rs.data;
2916 2998
         if (resp.state == 1) {
2917 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 3016
           for (const recordIndex in this.records) {
2920 3017
             var dlegh = 0;
2921 3018
             if (

+ 20 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue Näytä tiedosto

@@ -1329,14 +1329,14 @@
1329 1329
                                   "
1330 1330
                                   >【开始透析】</template
1331 1331
                                 >
1332
-                                <template
1332
+                                <!-- <template
1333 1333
                                   v-if="
1334 1334
                                     record.dialysis_order &&
1335 1335
                                     monitor_record.operate_time ==
1336 1336
                                       record.dialysis_order.end_time
1337 1337
                                   "
1338 1338
                                   >【结束透析】</template
1339
-                                >
1339
+                                > -->
1340 1340
                                 {{ monitor_record.end }}
1341 1341
                                 {{ monitor_record.symptom }} &nbsp;{{
1342 1342
                                   monitor_record.dispose
@@ -2675,7 +2675,24 @@ export default {
2675 2675
         var resp = rs.data;
2676 2676
         if (resp.state == 1) {
2677 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 2696
           for (const recordIndex in this.records) {
2680 2697
             var dlegh = 0;
2681 2698
             if (

+ 68 - 30
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue Näytä tiedosto

@@ -200,10 +200,7 @@
200 200
                   </td>
201 201
                 </tr>
202 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 204
                   <td style="text-align:left;" colspan="1">
208 205
                     <span style="display:inline-block;margin-left:15px;"
209 206
                       >设定脱水量:{{record.prescription.target_ultrafiltration?record.prescription.target_ultrafiltration:"/"}}&nbsp;ml</span
@@ -217,7 +214,7 @@
217 214
                          ></label-box>
218 215
                      </span>
219 216
                    </td>
220
-                   <td style="text-align: left" colspan="2">
217
+                   <td style="text-align: left" colspan="3">
221 218
               <span style="display: inline-block; margin-left: 15px">
222 219
                 <span v-if="record.prescription.anticoagulant == 2">普通肝素首剂:</span>
223 220
                 <span v-if="record.prescription.anticoagulant == 3"
@@ -306,7 +303,56 @@
306 303
               <span v-if="record.prescription.anticoagulant == 2">mg</span>
307 304
               <span v-if="record.prescription.anticoagulant == 1">mg</span>
308 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 356
                 <tr>
311 357
                   <td style="text-align:left;" colspan="1">
312 358
                     <span style="display:inline-block;margin-left:15px;"
@@ -340,41 +386,30 @@
340 386
                           }}分钟</span>
341 387
                       &nbsp;
342 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 391
                     <span style="display:inline-block;margin-left:15px;"
359 392
                       >置换方式:
360 393
                        <label-box
361 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 397
                          showValue="前"
365 398
                          ></label-box
366 399
                          >&nbsp;
367 400
                         <label-box
368 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 404
                           showValue="后"
372 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 408
                             record.prescription.displace_liqui_value
375 409
                               ? record.prescription.displace_liqui_value
376 410
                               : "/"
377 411
                           }}L)
412
+                          </span>
378 413
                       </span>&nbsp;
379 414
                   </td>
380 415
                 </tr>
@@ -398,7 +433,7 @@
398 433
                             :src="
399 434
                               setAdminUserES(
400 435
                                 record.dialysis_order,
401
-                                'start_nurse'
436
+                                'quality_nurse_id'
402 437
                               )
403 438
                             "
404 439
                             alt=""
@@ -436,7 +471,7 @@
436 471
                           />
437 472
                       </span>
438 473
                   </td>
439
-                   <td style="text-align:left;" colspan="3">
474
+                   <td style="text-align:left;" colspan="2">
440 475
                     <span style="display: inline-block; margin-left: 15px">
441 476
                     穿刺护士:
442 477
                        <span
@@ -464,7 +499,10 @@
464 499
                             style="height: 30px;"
465 500
                           />
466 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 507
                        <span
470 508
                        style="height: 30px; display: inline-block"
@@ -492,7 +530,7 @@
492 530
                             style="height: 30px;"
493 531
                           />
494 532
                       </span>
495
-                  </td>
533
+                   </td>
496 534
                   <td style="text-align:left;" colspan="3">
497 535
                     <!-- <span style="display:inline-block;margin-left:15px;display:flex;align-items:center;height:36px;"
498 536
                       >医生签名:
@@ -1358,8 +1396,8 @@
1358 1396
                               >* {{ advice[0].prescribing_number
1359 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 1401
                               }}{{ advice[0].single_dose_unit }}</span
1364 1402
                             >
1365 1403
                             <span>{{ advice[0].delivery_way }}</span>

+ 35 - 13
src/xt_pages/dialysis/batch_print/batch_print_order_twentyFive.vue Näytä tiedosto

@@ -1330,21 +1330,43 @@ export default {
1330 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 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 1370
     printAction: function() {
1349 1371
       const style =
1350 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 Näytä tiedosto

@@ -329,6 +329,15 @@
329 329
           >批量打印</el-button
330 330
         >
331 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 341
       <template v-if="this.template_id == 59">
333 342
         <el-button
334 343
           size="small"
@@ -336,7 +345,7 @@
336 345
           :disabled="selecting_schs.length == 0"
337 346
           @click="batchPrintAction"
338 347
           type="primary"
339
-          >打印</el-button>
348
+          >批量打印</el-button>
340 349
       </template>
341 350
       <template v-if="this.template_id == 60">
342 351
         <el-button
@@ -534,7 +543,12 @@
534 543
           align="center"
535 544
           width="100"
536 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 552
         <el-table-column
539 553
           prop="dialysis_before_weight"
540 554
           label="透前称重(kg)"
@@ -1408,11 +1422,11 @@ export default {
1408 1422
         this.getTemplateInfo();
1409 1423
       }else {
1410 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 1426
         this.listQuery.start_time = start_time
1413 1427
         var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1414 1428
         var end_time = this.getTimestamp(end_month)
1415
-        this.listQuery.end_time = end_time
1429
+        this.listQuery.end_time = end_time 
1416 1430
         this.getSchedualPatientList()
1417 1431
       
1418 1432
         this.getAllZone();
@@ -1435,12 +1449,13 @@ export default {
1435 1449
       var date = new Date(nowDate + " 00:00:00");
1436 1450
       this.listQuery.schedul_time = date.getTime();
1437 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 1454
       this.listQuery.start_time = start_time
1440 1455
       var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1441 1456
       var end_time = this.getTimestamp(end_month)
1442 1457
       this.listQuery.end_time = end_time
1443
-      console.log("listQuery---------",this.listQuery)
1458
+     
1444 1459
       this.getAllZone();
1445 1460
       this.getSchedualPatientList();
1446 1461
       this.getTemplateInfo();
@@ -1513,7 +1528,7 @@ export default {
1513 1528
     },
1514 1529
     getTimestamp(time) { //把时间日期转成时间戳
1515 1530
 
1516
-      return (new Date(time)).getTime()
1531
+      return (new Date(time)).getTime() - 28800000
1517 1532
     },
1518 1533
     getTimestampOne(time) { //把时间日期转成时间戳
1519 1534
 
@@ -1529,7 +1544,9 @@ export default {
1529 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 1550
       this.SchedualPatientsTableData = [];
1534 1551
       getSchedualPatient(this.listQuery).then(response => {
1535 1552
 
@@ -1540,7 +1557,7 @@ export default {
1540 1557
         } else {
1541 1558
           this.loading = false;
1542 1559
           this.total = response.data.data.total;
1543
-          // console.log(response.data.data)
1560
+          console.log(response.data.data.schedule)
1544 1561
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1545 1562
 
1546 1563
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
@@ -1576,6 +1593,10 @@ export default {
1576 1593
               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1577 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 1600
               if (response.data.data.schedule[i].assessment_after_dislysis !=null) {
1580 1601
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
1581 1602
               }
@@ -1870,8 +1891,8 @@ export default {
1870 1891
 
1871 1892
 
1872 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,6 +2078,8 @@ export default {
2057 2078
         this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
2058 2079
       } else if (this.template_id == 48) {
2059 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 2083
       }else if (this.template_id == 59) {
2061 2084
         this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
2062 2085
       }else if (this.template_id == 60) {

+ 37 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue Näytä tiedosto

@@ -124,6 +124,12 @@
124 124
           <span class="unit"></span>
125 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 133
         <li v-if="isShow('透析前使用特殊药物')">
128 134
           <label>透析前使用特殊药物: </label>
129 135
           <span class="content">{{ special_medicine }}</span>
@@ -142,8 +148,8 @@
142 148
           <label>目标超滤量 : </label>
143 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 153
         </li>
148 154
 
149 155
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
@@ -157,6 +163,14 @@
157 163
           <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
158 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 174
         <li v-if="isShow('钾')">
161 175
           <label>钾 : </label>
162 176
           <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
@@ -572,6 +586,21 @@
572 586
           <span class="content">{{this.prescription.sodium_curve}}</span>
573 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 604
         <li v-if="isShow('病情处理')">
576 605
           <label>病情处理: </label>
577 606
           <span class="content">{{this.prescription.treatment_remark}}</span>
@@ -901,6 +930,12 @@ export default {
901 930
     },
902 931
     reduce_amount:function(){
903 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 Näytä tiedosto

@@ -121,6 +121,7 @@
121 121
       :admin_users="admin_users"
122 122
       :dry_weight="last_dryWeight_dislysis"
123 123
       :lastAssessment="lastAssessment"
124
+       :prescription="prescription"
124 125
     ></assessment-before-dislysis-dialog>
125 126
 
126 127
     <treatment-summary-dialog
@@ -662,6 +663,7 @@ export default {
662 663
       this.$refs.finish_dialog.show(this.dialysis_order);
663 664
     },
664 665
     showPrescription: function() {
666
+      console.log("prescirpiton+++++++++++",this.prescription)
665 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 669
     showAccepts: function() {
@@ -685,6 +687,12 @@ export default {
685 687
         this.assessment_after_dislysis
686 688
       );
687 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 Näytä tiedosto

@@ -130,7 +130,7 @@
130 130
             </el-option>
131 131
            </el-select>
132 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 134
             <el-option
135 135
               v-for="item in partitionArr"
136 136
               :key="item.id"
@@ -258,6 +258,8 @@
258 258
             return v.getTime() < new Date().getTime() - 86400000;
259 259
           },
260 260
         },
261
+        zoneIdList:[],
262
+        partion_str:"",
261 263
       }
262 264
     },
263 265
     created() {
@@ -398,15 +400,28 @@
398 400
             return false
399 401
           } else {
400 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 410
       statistics() {
406 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 422
           var params = {
408 423
             schedule_type:this.schedule_type,
409
-            partion_type:this.partion_type,
424
+            partion_type:str,
410 425
             selected_date:this.query.schedule_date,
411 426
           }
412 427
         // console.log("params2332232wo",params)
@@ -726,7 +741,7 @@
726 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 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 746
      changeScheduleType(){
732 747
       this.tableList = []

+ 35 - 7
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Näytä tiedosto

@@ -212,7 +212,7 @@
212 212
             </el-option>
213 213
            </el-select>
214 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 216
             <el-option
217 217
               v-for="item in partitionArr"
218 218
               :key="item.id"
@@ -320,7 +320,7 @@
320 320
             </el-option>
321 321
            </el-select>
322 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 324
             <el-option
325 325
               v-for="item in partitionArr"
326 326
               :key="item.id"
@@ -475,6 +475,8 @@
475 475
         typeList:[],
476 476
         ids:"",
477 477
         org_id:0,
478
+        zoneIdList:[],
479
+        pationType_str:"",
478 480
       }
479 481
     },
480 482
     created() {
@@ -754,17 +756,33 @@
754 756
             return false
755 757
           } else {
756 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 766
       statistics() {
762 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 780
         var params = {
764 781
           schedule_type:this.schedule_type,
765
-          partion_type:this.partion_type,
782
+          partion_type:str,
766 783
           selected_date:this.query.schedule_date,
767 784
         }
785
+       
768 786
        getDialysisGoodTotalCount(params).then(response=>{
769 787
           if(response.data.state == 1){
770 788
             this.startDialogVisible = true
@@ -1102,9 +1120,19 @@
1102 1120
       },
1103 1121
       toStatistics(){
1104 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 1133
          var params = {
1106 1134
           schedule_type:this.schedule_type,
1107
-          partion_type:this.partion_type,
1135
+          partion_type:str,
1108 1136
           selected_date:this.query.schedule_date,
1109 1137
         }
1110 1138
         getHisDialysisGoodCount(params).then(response=>{
@@ -1974,10 +2002,10 @@
1974 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 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 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 2010
     toExportListOne(){
1983 2011
       import('@/vendor/Export2Excel').then(excel => {

+ 8 - 8
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Näytä tiedosto

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 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 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>
@@ -377,7 +377,7 @@
377 377
                 :value="item.id"
378 378
                 :key="item.id"
379 379
               ></el-option>
380
-            </el-select> 
380
+            </el-select>
381 381
           </el-form-item>
382 382
         </el-col>
383 383
 
@@ -625,7 +625,7 @@
625 625
             </el-form-item>
626 626
         </el-col>
627 627
 
628
-      
628
+
629 629
       </el-form>
630 630
 
631 631
 
@@ -967,7 +967,7 @@ export default {
967 967
       data['weight_after'] = this.form.weight_after ? parseFloat(this.form.weight_after) : 0
968 968
       data['weight_loss'] = this.form.weight_loss ? parseFloat(this.form.weight_loss) : 0
969 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 971
       data['systolic_blood_pressure'] = this.form.systolic_blood_pressure ? parseFloat(this.form.systolic_blood_pressure) : 0
972 972
       data['diastolic_blood_pressure'] = this.form.diastolic_blood_pressure ? parseFloat(this.form.diastolic_blood_pressure) : 0
973 973
       data['pulse_frequency'] = this.form.pulse_frequency ? parseFloat(this.form.pulse_frequency) : 0
@@ -1211,14 +1211,14 @@ export default {
1211 1211
       if(predialysis.id > 0){
1212 1212
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1213 1213
       }
1214
-     
1214
+
1215 1215
       //针对长沙南雅 ,透后体重 - 目标超滤量
1216 1216
       // if(predialysis.id > 0){
1217 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 1218
       //    if(predialysis.weight_after == 0){
1219 1219
       //      if(this.predialysis_evaluation!=null && this.prescription.target_ultrafiltration!=null){
1220 1220
       //        this.form.weight_after = this.predialysis_evaluation.weight_before - (this.prescription.target_ultrafiltration/1000)
1221
-      //      }  
1221
+      //      }
1222 1222
       //    }
1223 1223
       //  }
1224 1224
       // }
@@ -1253,7 +1253,7 @@ export default {
1253 1253
         //    if(this.prescription!=null && this.predialysis_evaluation!=null){
1254 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,7 +1366,7 @@ export default {
1366 1366
 
1367 1367
     var date = this.$route.query && this.$route.query.date
1368 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 1370
       this.form.pulse_frequency = 80
1371 1371
     }
1372 1372
   },

+ 42 - 13
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Näytä tiedosto

@@ -213,11 +213,11 @@
213 213
                 </template>
214 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 221
             </el-table>
222 222
           </el-col>
223 223
         </el-row>
@@ -538,14 +538,13 @@
538 538
             </el-form-item>
539 539
           </el-col>
540 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 548
       </el-form>
550 549
       <div slot="footer" class="dialog-footer">
551 550
         <el-button @click="nameFormVisible = false">取消</el-button>
@@ -1619,6 +1618,36 @@ export default {
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 1652
     selectAllTemplateAdvice(selection) {
1624 1653
       console.log("params",selection)

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Näytä tiedosto

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

+ 62 - 7
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Näytä tiedosto

@@ -649,6 +649,14 @@
649 649
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
650 650
             </el-form-item>
651 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,7 +854,8 @@
846 854
         skins:[],
847 855
         pinholings:[],
848 856
         catheter_maintenancelist:[],
849
-        thrombuShow:false
857
+        thrombuShow:false,
858
+        body_weight_before:"",
850 859
       }
851 860
     },
852 861
     props: {
@@ -874,7 +883,15 @@
874 883
          default: () => {
875 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 897
     methods: {
@@ -1083,7 +1100,7 @@
1083 1100
           case '3': // 透析前症状
1084 1101
 
1085 1102
             this.InnerDialogProps.values = this.symptom_before_dialysis
1086
-            this.InnerDialogProps.titles = '透析期间'
1103
+            this.InnerDialogProps.titles = '透析前症状'
1087 1104
             this.InnerDialogProps.type = 'symptom_before_dialysis'
1088 1105
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.symptom_before_dialysis
1089 1106
             this.InnerDialogProps.isShowTextArea = false
@@ -1350,21 +1367,27 @@
1350 1367
               type: 'success',
1351 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 1375
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1355
-            // console.log("返回数据",assessment_before_dislysis_resp)
1356
-            // prop
1376
+           
1357 1377
             var predialysis_evaluation = this.predialysis_evaluation
1358 1378
             for (var index in assessment_before_dislysis_resp) {
1359 1379
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1360 1380
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1361 1381
             }
1382
+             
1383
+           
1362 1384
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1363 1385
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {
1364 1386
               console.log('res',res.data)
1365 1387
 
1366 1388
             }) 
1367 1389
             this.hide()
1390
+            console.log("hhh23h3h223h23h23h23h2h3")
1368 1391
           }
1369 1392
         })
1370 1393
           } else {
@@ -1565,7 +1588,39 @@
1565 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 Näytä tiedosto

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

+ 158 - 13
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Näytä tiedosto

@@ -95,7 +95,7 @@
95 95
                     </el-col>
96 96
 
97 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 99
                         <el-form-item label="目标超滤量(ml):">
100 100
                             <el-input
101 101
                                     type="number"
@@ -104,9 +104,11 @@
104 104
                         </el-form-item>
105 105
                     </el-col>
106 106
 
107
+                    
108
+
107 109
 
108 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 112
                         <el-form-item label="目标超滤量(L):">
111 113
                             <el-input
112 114
                                     type="number"
@@ -115,6 +117,16 @@
115 117
                         </el-form-item>
116 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 130
                    <el-col :span="8" v-if="isShows('带水上机')">
119 131
                         <el-form-item label="带水上机:">
120 132
                            <el-select v-model="dialysisPrescription.water_machine">
@@ -273,7 +285,7 @@
273 285
                     </el-col>
274 286
 
275 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 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 290
                             <el-form-item
279 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,7 +368,7 @@
356 368
 
357 369
 
358 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 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 373
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
362 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,7 +432,7 @@
420 432
 
421 433
 
422 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 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 437
                             <el-form-item
426 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,7 +609,7 @@
597 609
                           type="number"
598 610
                           v-model="dialysisPrescription.glucose"
599 611
                         ></el-input>
600
-                      </el-form-item>
612
+                      </el-form-item>28
601 613
                     </el-col> -->
602 614
                     <el-col :span="8" v-if="isShows('透析液流量')">
603 615
                         <el-form-item label="透析液流量(ml/min):">
@@ -649,6 +661,14 @@
649 661
                         </el-form-item>
650 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 672
                     <el-col :span="8" v-if="isShows('血浆分离器')">
653 673
                         <el-form-item label="血浆分离器:">
654 674
                             <el-input v-model="dialysisPrescription.plasma_separator"
@@ -1011,6 +1031,27 @@
1011 1031
                     </el-col>
1012 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 1055
               <el-row :gutter="20">
1015 1056
                     <el-col :span="24"  v-if="isShows('病情处理')">
1016 1057
                         <el-form-item  label="病情处理: ">
@@ -1559,6 +1600,10 @@
1559 1600
           prescription_sodium:"",
1560 1601
           start_sodium:"",
1561 1602
           sodium_curve:"",
1603
+          dialysis_fluid_flow:"",
1604
+          sodium_bicarbonate_flow:"",
1605
+          prescription_water:"",
1606
+          dialysis_strainer:"",
1562 1607
         },
1563 1608
 
1564 1609
         anticoagulant: {
@@ -1582,6 +1627,7 @@
1582 1627
         bloods: [],
1583 1628
         irrigations: [],
1584 1629
         dialyzers: [],
1630
+        dialysisStrainerList:[],
1585 1631
         illnessList: [],
1586 1632
         plasmaSeparatorList: [],
1587 1633
         bilirubinAdsorptionColumn: [],
@@ -1624,6 +1670,7 @@
1624 1670
 
1625 1671
       },
1626 1672
       showInnerDialog: function(val) {
1673
+       
1627 1674
         this.InnerDialogProps.visibility = true
1628 1675
         switch (val) {
1629 1676
           case '5': // 透析器/灌流器
@@ -1631,7 +1678,7 @@
1631 1678
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1632 1679
             this.InnerDialogProps.titles = '透析器/灌流器'
1633 1680
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1634
-
1681
+           
1635 1682
             this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
1636 1683
             this.InnerDialogProps.isShowTextArea = false
1637 1684
             break
@@ -1690,22 +1737,84 @@ mu
1690 1737
             this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
1691 1738
             this.InnerDialogProps.isShowTextArea = false
1692 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 1753
       innerDialogComfirm: function(val) {
1754
+      
1755
+
1696 1756
         this.InnerDialogProps.visibility = false
1697 1757
         switch (val.type) {
1758
+
1698 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 1777
             break
1701 1778
           case 'blood':
1779
+            
1702 1780
             this.dialysisPrescription.blood = val.value.join(',')
1703 1781
             break
1704 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 1800
             break
1707 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 1818
             break
1710 1819
           case 'plasma_separator':
1711 1820
             this.dialysisPrescription.plasma_separator = val.value.join(',')
@@ -1716,6 +1825,9 @@ mu
1716 1825
           case 'puncture_needle':
1717 1826
             this.dialysisPrescription.puncture_needle = val.value.join(',')
1718 1827
             break
1828
+          case 'dialysis_strainer':
1829
+            this.dialysisPrescription.dialysis_strainer = val.value.join(',')
1830
+            break
1719 1831
         }
1720 1832
       },
1721 1833
       innerDialogCancle: function() {
@@ -2207,6 +2319,7 @@ mu
2207 2319
       },
2208 2320
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2209 2321
         console.log("pres",pre)
2322
+        console.log("schedual",schedual)
2210 2323
         if (pre != undefined) {
2211 2324
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2212 2325
           if (pre.oxygen_uptake == 1) {
@@ -2318,6 +2431,14 @@ mu
2318 2431
             } else if (schedual.schedule_type == 3) {
2319 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 2442
            }else if(this.$store.getters.xt_user.org.id == 9829){
2322 2443
               if (schedual.schedule_type == 1) {
2323 2444
               this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
@@ -2326,6 +2447,14 @@ mu
2326 2447
             } else if (schedual.schedule_type == 3) {
2327 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 2458
            } else {
2330 2459
             if (schedual.schedule_type == 1) {
2331 2460
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
@@ -3844,9 +3973,13 @@ mu
3844 3973
     },
3845 3974
 
3846 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 3983
       'dialysisPrescription.dialysis_duration_hour': function() {
3851 3984
         let dialysis_duration_minute = 0
3852 3985
         let dialysis_duration_hour = 0
@@ -4412,6 +4545,7 @@ mu
4412 4545
         console.log('stockType', this.stockType)
4413 4546
         var arr = []
4414 4547
         var arrTwo = []
4548
+        var arrThree = []
4415 4549
         for (let i = 0; i < this.stockType.length; i++) {
4416 4550
           if (this.stockType[i].stock_attribute == 2) {
4417 4551
             arr.push(this.stockType[i])
@@ -4419,9 +4553,13 @@ mu
4419 4553
           if (this.stockType[i].stock_attribute == 3) {
4420 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 4560
         var dialyzator = []
4424 4561
         var irrigation = []
4562
+        var dialysis_strainer = []
4425 4563
         for (let i = 0; i < arr.length; i++) {
4426 4564
           for (let j = 0; j < arr[i].GoodInfo.length; j++) {
4427 4565
             dialyzator.push(arr[i].GoodInfo[j])
@@ -4435,7 +4573,14 @@ mu
4435 4573
           }
4436 4574
         }
4437 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 4586
       admin_user_id:function(){

+ 43 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Näytä tiedosto

@@ -121,6 +121,7 @@
121 121
           <el-checkbox :label="dialys_mode"></el-checkbox>
122 122
           <el-checkbox :label="long_time"></el-checkbox>
123 123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
124
+          <el-checkbox :label="prescription_water" v-if="org_id == 10469"></el-checkbox>
124 125
           <el-checkbox :label="anticoagulant"></el-checkbox>
125 126
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126 127
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
@@ -333,6 +334,7 @@ export default {
333 334
       dialys_mode: "透析模式:",
334 335
       long_time: "透析时长:",
335 336
       target_ultrafiltration: "目标超滤量:",
337
+      prescription_water:"处方脱水量:",
336 338
       anticoagulant: "抗凝剂:",
337 339
       anticoagulant_shouji: "首剂:",
338 340
       anticoagulant_weichi: "维持:",
@@ -818,9 +820,27 @@ export default {
818 820
               : "")
819 821
         );
820 822
       }
821
-      if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
823
+       if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
822 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 844
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
825 845
         arr.push(
826 846
           "抗凝剂:" +
@@ -1333,6 +1353,17 @@ export default {
1333 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 1367
         if (this.prescription.anticoagulant != "") {
1337 1368
           this.anticoagulant = "抗凝剂:";
1338 1369
           this.anticoagulant =
@@ -1490,6 +1521,17 @@ export default {
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 1535
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1494 1536
           this.checkListOne.push(
1495 1537
             "抗凝剂:" +

+ 74 - 13
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Näytä tiedosto

@@ -238,15 +238,25 @@
238 238
                 org_id == 10210 ||
239 239
                 org_id == 9555 || org_id == 10387
240 240
                 || org_id == 10432
241
-                || org_id == 10445)
241
+                || org_id == 10445
242
+                || org_id == 10410)
242 243
             "
243 244
           >
244 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 255
                 scope.row.ultrafiltration_volume
247 256
                   ? scope.row.ultrafiltration_volume
248 257
                   : ""
249 258
               }}
259
+              </span> 
250 260
             </template>
251 261
           </el-table-column>
252 262
           <el-table-column
@@ -296,6 +306,7 @@
296 306
               org_id!= 10210 &&
297 307
               org_id != 9555 && org_id!=10387
298 308
               && org_id!=10432 && org_id!=10445
309
+              && org_id!=10410
299 310
             "
300 311
           >
301 312
             <template slot-scope="scope">
@@ -345,7 +356,8 @@
345 356
                 template_id == 47 ||
346 357
                 template_id == 60 ||
347 358
                 org_id == 10432 ||
348
-                org_id == 10445)
359
+                org_id == 10445 ||
360
+                org_id == 10410)
349 361
             "
350 362
           >
351 363
             <template slot-scope="scope">
@@ -394,7 +406,8 @@
394 406
               template_id != 47 &&
395 407
               template_id != 60 &&
396 408
               org_id!=10432 &&
397
-              org_id!=10445
409
+              org_id!=10445 &&
410
+              org_id!=10410
398 411
             "
399 412
           >
400 413
             <template slot-scope="scope">
@@ -832,6 +845,18 @@
832 845
             </template>
833 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 860
           <el-table-column
836 861
             prop="heparin"
837 862
             align="center"
@@ -1066,7 +1091,8 @@
1066 1091
                 template_id == 47 ||
1067 1092
                 template_id == 60 ||
1068 1093
                 org_id== 10432 || 
1069
-                org_id== 10445)
1094
+                org_id== 10445 ||
1095
+                org_id== 10410)
1070 1096
             "
1071 1097
           >
1072 1098
             <el-form-item label="超滤率(ml/h)" :prop="isName('超滤率')"
@@ -1109,7 +1135,8 @@
1109 1135
               template_id != 47 &&
1110 1136
               template_id != 60 &&
1111 1137
               org_id!=10432 && 
1112
-              org_id!=10445
1138
+              org_id!=10445 &&
1139
+              org_id!=10410
1113 1140
             "
1114 1141
           >
1115 1142
             <el-form-item label="超滤率(L/h)" :prop="isName('超滤率')"
@@ -1162,7 +1189,8 @@
1162 1189
                 org_id == 10340 ||
1163 1190
                 org_id == 10387 ||
1164 1191
                 org_id == 10432 ||
1165
-                org_id == 10445)
1192
+                org_id == 10445 ||
1193
+                org_id == 10410)
1166 1194
             "
1167 1195
           >
1168 1196
             <el-form-item label="超滤量(ml):" :prop="isName('超滤量')"
@@ -1215,7 +1243,8 @@
1215 1243
               org_id != 9555 &&
1216 1244
               org_id!=10387&&
1217 1245
               org_id!=10432 && 
1218
-              org_id!=10445
1246
+              org_id!=10445 && 
1247
+              org_id!=10410
1219 1248
             "
1220 1249
           >
1221 1250
             <el-form-item label="超滤量(L):" :prop="isName('超滤量')"
@@ -1523,6 +1552,12 @@
1523 1552
             </el-form-item>
1524 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 1561
           <!-- </el-row>
1527 1562
 
1528 1563
           <el-row :gutter="20"> -->
@@ -1737,6 +1772,7 @@ export default {
1737 1772
         blood_monitor: "",
1738 1773
         heparin_amount: "", //肝素量
1739 1774
         dehydration: "",
1775
+        filter_pressure:"",
1740 1776
       },
1741 1777
 
1742 1778
       table_current_row: null,
@@ -1962,7 +1998,7 @@ export default {
1962 1998
       
1963 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 2002
         // this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : '';
1967 2003
         this.form.systolic_bp = ""; // this.last_monitor_record.systolic_blood_pressure;
1968 2004
         this.form.diastolic_bp = ""; // this.last_monitor_record.diastolic_blood_pressure;
@@ -1970,12 +2006,18 @@ export default {
1970 2006
         // 静脉压
1971 2007
         if (this.org_id == 10060 || this.org_id == 10387) {
1972 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 2010
           this.form.venous_pressure = 80
1975 2011
         } else {
1976 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 2021
         this.form.venous_pressure_type = resp.monitor.venous_pressure_type? resp.monitor.venous_pressure_type: 1;
1980 2022
         if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10387){
1981 2023
            this.form.arterial_pressure = resp.monitor.arterial_pressure? resp.monitor.arterial_pressure: "-100"; // this.last_monitor_record.arterial_pressure;
@@ -2019,7 +2061,7 @@ export default {
2019 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 2065
             this.form.temperature = "36.5"
2024 2066
 
2025 2067
          }else{
@@ -2138,7 +2180,13 @@ export default {
2138 2180
         this.form.venous_pressure_type = 1;
2139 2181
         this.form.transmembrane_pressure = "";
2140 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 2190
         this.form.ultrafiltration_rate = "";
2143 2191
         this.form.arterial_pressure = "";
2144 2192
         this.form.arterial_pressure_type = 1;
@@ -2168,6 +2216,7 @@ export default {
2168 2216
         this.form.blood_monitor = "";
2169 2217
         this.form.dehydration = "";
2170 2218
         this.form.heparin_amount = "";
2219
+        this.form.filter_pressure =""
2171 2220
       } else {
2172 2221
         (this.form.id = monitor.id),
2173 2222
           // this.form.operate_date = monitor.operate_date
@@ -2202,9 +2251,17 @@ export default {
2202 2251
           monitor.transmembrane_pressure_type
2203 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 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 2265
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2209 2266
           ? monitor.ultrafiltration_rate
2210 2267
           : "";
@@ -2278,6 +2335,9 @@ export default {
2278 2335
         this.form.heparin_amount = monitor.heparin_amount
2279 2336
           ? monitor.heparin_amount
2280 2337
           : "";
2338
+        this.form.filter_pressure = monitor.filter_pressure
2339
+        ? monitor.filter_pressure
2340
+        : "";  
2281 2341
         // 设置三个下拉框的值,直接调用事件偷懒
2282 2342
         this.symptomTextareaBlur();
2283 2343
         this.disposeTextareaBlur();
@@ -2421,6 +2481,7 @@ export default {
2421 2481
         parseFloat(this.form.dehydration) == NaN
2422 2482
           ? 0
2423 2483
           : parseFloat(this.form.dehydration);
2484
+      this.form.filter_pressure = this.form.filter_pressure?this.form.filter_pressure:""
2424 2485
       let mode = "1";
2425 2486
       if (this.form.id > 0) {
2426 2487
         mode = "2";

+ 10 - 5
src/xt_pages/dialysis/details/dialysisMonitoring.vue Näytä tiedosto

@@ -14,10 +14,10 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 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 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23 23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || 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,6 +43,7 @@
43 43
           <th v-if="isShow('血压监测')" width="92px">血压监测</th>
44 44
           <th v-if="isShow('肝素量')" width="92px">肝素量(mg)</th>
45 45
           <th v-if="isShow('脱水')" width="92px">脱水(L)</th>
46
+          <th v-if="isShow('滤前压')" width="92px">滤前压(mmHg)</th>
46 47
           <th v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)" width="92px">KT/V</th>
47 48
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
48 49
 
@@ -59,7 +60,10 @@
59 60
 
60 61
           <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
61 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 67
           <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
64 68
           <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
65 69
           <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
@@ -91,6 +95,7 @@
91 95
           <th v-if="isShow('血压监测')" width="92px">{{monitor.blood_monitor ? monitor.blood_monitor : ""}}</th>
92 96
           <th v-if="isShow('肝素量')" width="92px">{{monitor.heparin_amount ? monitor.heparin_amount : ""}}</th>
93 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 99
           <td v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)">{{ monitor.ktv?monitor.ktv:""}}</td>
95 100
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
96 101
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>

+ 2 - 0
src/xt_pages/dialysis/details/index.vue Näytä tiedosto

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

+ 39 - 13
src/xt_pages/dialysis/dialysisPrintOrder.vue Näytä tiedosto

@@ -14,8 +14,8 @@
14 14
       </template>
15 15
       <template
16 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 21
         <div>
@@ -110,10 +110,13 @@
110 110
           org_template_info.template_id == 11 ||
111 111
           org_template_info.template_id == 50 ||
112 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 118
         <el-button
119
+          
117 120
           :loading="loading"
118 121
           size="small"
119 122
           icon="el-icon-printer"
@@ -121,6 +124,15 @@
121 124
           type="primary"
122 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 136
       </template>
125 137
 
126 138
       <template v-if="org_template_info.template_id == 47">
@@ -186,8 +198,8 @@
186 198
       </template>
187 199
       <template
188 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 205
         <div>
@@ -289,8 +301,8 @@
289 301
       </template> -->
290 302
       <template
291 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 308
         <div>
@@ -1181,6 +1193,9 @@
1181 1193
             v-if="org_template_info.template_id == 53"
1182 1194
           >
1183 1195
           </DialysisPrintOrderFiftyThree>
1196
+
1197
+         
1198
+        
1184 1199
            <DialysisPrintOrderFiftyFour
1185 1200
             v-bind:childResponse="childResponse"
1186 1201
             v-if="org_template_info.template_id == 54"
@@ -1577,8 +1592,8 @@ export default {
1577 1592
           scanStyles: false,
1578 1593
         });
1579 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 1598
         printJS({
1584 1599
           printable: "dialysis-print-box-1",
@@ -1616,7 +1631,8 @@ export default {
1616 1631
         // this.org_template_info.template_id == 51 ||
1617 1632
         this.org_template_info.template_id == 58 ||
1618 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 1637
         printJS({
1622 1638
           printable: "dialysis-print-box-1",
@@ -1978,7 +1994,6 @@ export default {
1978 1994
         });
1979 1995
       } else if (
1980 1996
         this.org_template_info.template_id == 2 ||
1981
-        this.org_template_info.template_id == 0 ||
1982 1997
         this.org_template_info.template_id == 5 ||
1983 1998
         this.org_template_info.template_id == 22 ||
1984 1999
         this.org_template_info.template_id == 33
@@ -2027,7 +2042,9 @@ export default {
2027 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 2043
       const style2 =
2029 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 2048
       if (this.org_template_info.template_id == 1) {
2032 2049
         printJS({
2033 2050
           printable: "dialysis-print-box",
@@ -2037,7 +2054,6 @@ export default {
2037 2054
         });
2038 2055
       } else if (
2039 2056
         this.org_template_info.template_id == 2 ||
2040
-        this.org_template_info.template_id == 0 ||
2041 2057
         this.org_template_info.template_id == 5 ||
2042 2058
         this.org_template_info.template_id == 22 ||
2043 2059
         this.org_template_info.template_id == 33
@@ -2076,8 +2092,16 @@ export default {
2076 2092
           style: style,
2077 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 2105
     getNumber() {
2082 2106
       if (this.dialysisOrder != null) {
2083 2107
         return (
@@ -2782,6 +2806,8 @@ export default {
2782 2806
     },
2783 2807
   },
2784 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 2811
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2786 2812
     var zone_selected = this.$store.getters.zone_selected;
2787 2813
     var patient_state_selected = this.$store.getters.patient_state_selected;

+ 81 - 33
src/xt_pages/dialysis/doctorNewAdviceStaticPrint.vue Näytä tiedosto

@@ -27,9 +27,9 @@
27 27
                 <tr>
28 28
                   <td width="50">序号</td>
29 29
                   <td width="100">区域</td>
30
-                  <td width="100">责护</td>
30
+                  <!-- <td width="100">责护</td> -->
31 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 33
                      {{item.advice_name}}
34 34
                   </td>
35 35
                 </tr>
@@ -41,17 +41,25 @@
41 41
                     <span v-if="item.is_total ==0">总计</span>
42 42
                   </td>
43 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 48
                   </td>
46
-                  <td>
49
+                  <!-- <td>
47 50
                     <span v-if="item.is_total == 1"> {{getAdminUserName(item.execution_staff)}}</span>
48
-                  </td>
51
+                  </td> -->
49 52
                   <td>
50 53
                     <span v-if="item.is_total == 1"> {{getModeId(item.child)}}</span>
51 54
                   </td>
52 55
                   <td v-for="(it,i) in tabHead"  :key="i">
53 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 63
                     </span>
56 64
                     <span v-if="item.is_total == 0">
57 65
                       {{getAllSumCount(it.advice_name)}}
@@ -113,6 +121,7 @@
113 121
           tabHead:[],
114 122
           tableDataList:[],
115 123
           adminUserList:[],
124
+          doctorMap:[],
116 125
         }
117 126
       },
118 127
       components: {
@@ -181,15 +190,18 @@
181 190
                 this.tabHead = arr
182 191
                 console.log("arr---------------------",this.tabHead)
183 192
               }
184
-
193
+              
194
+              this.doctorMap = []
185 195
               if(doctorList!=null && doctorList.length > 0){
186
-                
187 196
                 let dataInfo = {}
188 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 205
                       child: [],
194 206
                       count:0,
195 207
                       sort:item.sort,
@@ -200,7 +212,7 @@
200 212
                 if(newArr!=null && newArr.length >0){
201 213
                   for(let i=0;i<newArr.length;i++){
202 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 216
                          newArr[i].child.push(doctorList[j])
205 217
                       }
206 218
                     }
@@ -515,30 +527,66 @@
515 527
 
516 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 592
   </script>

+ 175 - 54
src/xt_pages/dialysis/newDoctorAdvice.vue Näytä tiedosto

@@ -137,6 +137,22 @@
137 137
         </div>
138 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 156
        <div class="cell clearfix">
141 157
         <label class="title"> <span class="name">执行状态</span> : </label>
142 158
         <div class="time">
@@ -159,9 +175,9 @@
159 175
       </div> -->
160 176
 
161 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 181
       </div>
166 182
 
167 183
 
@@ -523,7 +539,7 @@
523 539
             </el-option>
524 540
            </el-select>
525 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 543
             <el-option
528 544
               v-for="item in partitionArr"
529 545
               :key="item.id"
@@ -595,7 +611,7 @@
595 611
             </el-option>
596 612
            </el-select>
597 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 615
             <el-option
600 616
               v-for="item in partitionArr"
601 617
               :key="item.id"
@@ -638,11 +654,14 @@
638 654
           width="100"
639 655
         >
640 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 661
           </template>
643 662
 
644 663
         </el-table-column>
645
-       <el-table-column
664
+       <!-- <el-table-column
646 665
           align="center"
647 666
           prop="name"
648 667
           label="责护"
@@ -654,7 +673,7 @@
654 673
             </span>
655 674
           </template>
656 675
 
657
-        </el-table-column>
676
+        </el-table-column> -->
658 677
 
659 678
         <el-table-column
660 679
           align="center"
@@ -680,6 +699,9 @@
680 699
           <template slot-scope="scope">
681 700
             <span v-if="scope.row.is_total ==1">
682 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 705
             </span>
684 706
             <span v-if="scope.row.is_total == 0">
685 707
                  {{getAllSumCount(item.advice_name)}}
@@ -794,6 +816,11 @@ export default {
794 816
       tabHead:[],
795 817
       tableDataList:[],
796 818
       adminUserList:[],
819
+      doctorMap:[],
820
+      excutList:[],
821
+      execution_frequency:"",
822
+      zoneIdList:[],
823
+      partion_str:"",
797 824
     };
798 825
   },
799 826
   created() {
@@ -829,7 +856,7 @@ export default {
829 856
       });
830 857
     },
831 858
     clickCurrent(val) {
832
-     // console.log(val);
859
+      //console.log(val);
833 860
       this.$router.push({
834 861
         path: "/dialysis/details",
835 862
         query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
@@ -856,6 +883,10 @@ export default {
856 883
        this.delivery_way = val
857 884
        this.requestSchedualDoctors(this.time)
858 885
     },
886
+    selectFrequencyWay(val){
887
+      this.execution_frequency = val
888
+      this.requestSchedualDoctors(this.time)
889
+    },
859 890
 
860 891
     selectExcutionWay(val){
861 892
        this.excution_way = val
@@ -874,11 +905,20 @@ export default {
874 905
           return false;
875 906
         } else {
876 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 913
           var dics  =  response.data.data.dics
879 914
           var obj = {id:0,name:"全部"}
880 915
           this.deliveryWay.push(obj)
881 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,13 +933,24 @@ export default {
893 933
         if(name == '全部'){
894 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 948
         let newTime =  moment(time).format('YYYY-MM-DD')
898 949
 
899 950
          var schedule_type = this.listQuery.schedul_type
900 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 954
         var resp = rs.data
904 955
         if (resp.state == 1) {
905 956
             this.admin_users = resp.data.adminUser
@@ -952,7 +1003,7 @@ export default {
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,7 +1302,17 @@ export default {
1251 1302
         if(name == '全部'){
1252 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 1318
     batchPrintActionOne: function() {
@@ -1475,7 +1536,9 @@ export default {
1475 1536
         return searchArray
1476 1537
       },
1477 1538
      handleSelect(val) {
1539
+       console.log("val323223232323232323",val)
1478 1540
        this.patient_id = val.id
1541
+       this.listQuery.keyword = val.name
1479 1542
        this.requestSchedualDoctors(this.time)
1480 1543
       },
1481 1544
      toSeach(){
@@ -1667,12 +1730,22 @@ export default {
1667 1730
     },
1668 1731
 
1669 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 1742
          this.tableList = []
1671 1743
           var params = {
1672 1744
             schedule_type:this.schedule_type,
1673
-            partion_type:this.partion_type,
1745
+            partion_type:str,
1674 1746
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1675 1747
           }
1748
+
1676 1749
          console.log("params2332232wo",params)
1677 1750
         getDialysisAdviceToday(params).then(response=>{
1678 1751
           if(response.data.state == 1){
@@ -1804,10 +1877,19 @@ export default {
1804 1877
 
1805 1878
       },
1806 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 1889
          this.tableList = []
1808 1890
           var params = {
1809 1891
             schedule_type:this.schedule_type,
1810
-            partion_type:this.partion_type,
1892
+            partion_type:str,
1811 1893
             selected_date: moment(this.time).format('YYYY-MM-DD'),
1812 1894
           }
1813 1895
 
@@ -1865,14 +1947,17 @@ export default {
1865 1947
                 console.log("tabHead",this.tabHead)
1866 1948
               }
1867 1949
 
1950
+              this.doctorMap = []
1868 1951
               if(doctorList!=null && doctorList.length > 0){
1869
-
1870 1952
                 let dataInfoOne = {}
1871 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 1961
                       child: [],
1877 1962
                       count:0,
1878 1963
                       sort:item.sort,
@@ -1883,7 +1968,7 @@ export default {
1883 1968
                 if(newArr!=null && newArr.length >0){
1884 1969
                   for(let i=0;i<newArr.length;i++){
1885 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 1972
                          newArr[i].child.push(doctorList[j])
1888 1973
                       }
1889 1974
                     }
@@ -1897,7 +1982,7 @@ export default {
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 1986
                 newList.push(obj)
1902 1987
                 this.tableDataList = newList
1903 1988
                 console.log("999999999999999999-------",this.tableDataList)
@@ -1912,7 +1997,42 @@ export default {
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 2036
      getSpecification(id){
1917 2037
         var specification_name = ""
1918 2038
         for(let i=0;i<this.druglist.length;i++){
@@ -1962,11 +2082,11 @@ export default {
1962 2082
       },
1963 2083
       toPrintOne(){
1964 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 2087
       toPrintTwo(){
1968 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 2091
       toExportListOne(){
1972 2092
         import('@/vendor/Export2Excel').then(excel => {
@@ -2289,36 +2409,37 @@ export default {
2289 2409
       GetMobileScheduleList().then(response=>{
2290 2410
         if(response.data.state == 1){
2291 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 Näytä tiedosto

@@ -14,9 +14,18 @@
14 14
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
15 15
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
16 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 29
                         <div>打印时间:{{time}}</div>   
21 30
                     </div>  
22 31
                 </div>
@@ -29,9 +38,16 @@
29 38
                     <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
30 39
                         <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
31 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 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 51
                         <div>打印时间:{{time}}</div>   
36 52
                     </div>  
37 53
                   
@@ -68,7 +84,10 @@ export default {
68 84
             show:true,
69 85
             showOne:false,
70 86
             delivery_way:"",
71
-            list:[]
87
+            list:[],
88
+            execution_frequency:"",
89
+            org_id:0,
90
+            drugList:[],
72 91
         }
73 92
     },
74 93
     methods:{
@@ -90,6 +109,8 @@ export default {
90 109
             patient_type: 0,
91 110
             advice_type: 2,
92 111
             delivery_way:this.delivery_way,
112
+            execution_frequency:this.execution_frequency,
113
+            patient_id:this.$route.query.patient_id,
93 114
             }).then(rs => {
94 115
                 var resp = rs.data
95 116
                 if (resp.state == 1) {
@@ -254,6 +275,7 @@ export default {
254 275
                
255 276
                  if(config.is_open == 1){
256 277
                    var schedulesArr = resp.data.hisAdvices
278
+                   this.drugList = resp.data.drug
257 279
                    let schedules = []
258 280
                    var ids = this.$store.getters.temp_params.advice_ids
259 281
                    console.log('ids',ids)
@@ -516,6 +538,15 @@ export default {
516 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 551
     computed: {
521 552
     filtedScheduals: function () {
@@ -628,13 +659,18 @@ export default {
628 659
         console.log("222222",scheduleMap)
629 660
         return scheduleMap
630 661
         },
662
+
663
+      
631 664
     
632 665
     },
633 666
     created(){
634 667
       var time = this.$route.query.time
635 668
       var delivery_way = this.$route.query.delivery_way
669
+      this.org_id = this.$store.getters.xt_user.org.id
636 670
       console.log("delivery_Way",delivery_way)
637 671
       this.delivery_way = delivery_way
672
+      var execution_frequency = this.$route.query.execution_frequency
673
+      this.execution_frequency = execution_frequency
638 674
       this.time = moment(time).format('YYYY-MM-DD')
639 675
       console.log(11,this.$route.query)
640 676
       this.requestSchedualDoctors(time)

+ 31 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue Näytä tiedosto

@@ -289,6 +289,18 @@
289 289
                                 }}
290 290
                               </div>
291 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 304
                             <div class="inline_block" style="flex: 1">
293 305
                               透前症状:
294 306
                               <div
@@ -1148,7 +1160,7 @@
1148 1160
                               <span v-if="prescription.anticoagulant == 4"
1149 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 1164
                                 >iu</span
1153 1165
                               >
1154 1166
                               <span v-if="prescription.anticoagulant == 2"
@@ -2582,7 +2594,7 @@
2582 2594
                                 />
2583 2595
                               </div>
2584 2596
                             </div>
2585
-                            <div class="inline_block" style="flex: 1">
2597
+                            <!-- <div class="inline_block" style="flex: 1">
2586 2598
                               下机护士:
2587 2599
                               <div
2588 2600
                                 class="under_line"
@@ -2620,6 +2632,21 @@
2620 2632
                                   v-else
2621 2633
                                 />
2622 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 2650
                             </div>
2624 2651
                             <div class="inline_block" style="flex: 1">
2625 2652
                               治疗医生:
@@ -3496,8 +3523,8 @@ export default {
3496 3523
         }
3497 3524
 
3498 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 3528
           var doctor_advices_1 = [];
3502 3529
           var doctor_advices_2 = [];
3503 3530
           for (let index = 0; index < this.doctor_advices.length; index++) {

+ 296 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue Näytä tiedosto

@@ -374,14 +374,14 @@
374 374
                       医师签名:
375 375
                       <span
376 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 380
                       </span>
381 381
                       <img
382 382
                         class="es-img"
383 383
                         style="height: 25px"
384
-                        :src="setAdminUserES(prescription.modifier)"
384
+                        :src="setAdminUserES(advices[0].advice_doctor)"
385 385
                         alt
386 386
                         srcset
387 387
                         v-else
@@ -795,7 +795,7 @@
795 795
               </table>
796 796
             </td>
797 797
           </tr>
798
-          <tr style="transform: translateY(4px)">
798
+          <tr style="transform: translateY(4px)" v-if="org_id!=10346 && org_id!=0">
799 799
             <td>
800 800
               <table class="print-table" border="1" style="text-align: center">
801 801
                 <tr>
@@ -805,7 +805,7 @@
805 805
                   <td
806 806
                     style="height: 20px"
807 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 810
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
811 811
                   </td>
@@ -815,10 +815,11 @@
815 815
                   <td
816 816
                     style="height: 20px"
817 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 820
                     <p style="height: 20px; line-height: 20px">执行时间</p>
821 821
                   </td>
822
+             
822 823
                   <td style="height: 20px" width="90">
823 824
                     <p style="height: 20px; line-height: 20px">执行</p>
824 825
                   </td>
@@ -841,6 +842,7 @@
841 842
               </table>
842 843
             </td>
843 844
           </tr>
845
+          <div v-if="org_id!=10346 && org_id!=0">
844 846
           <tr
845 847
             v-for="(advice, advice_index) in advices"
846 848
             :key="advice_index"
@@ -855,7 +857,7 @@
855 857
                   <td
856 858
                     style="line-height: 30px"
857 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 862
                     <span v-if="setAdminUserES(advice.advice_doctor) == ''">
861 863
                       {{ getAdminUser(advice.advice_doctor) }}
@@ -894,12 +896,27 @@
894 896
                   <td
895 897
                     style="line-height: 10px"
896 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 901
                     <span v-if="advice.execution_time">{{
900 902
                       getTime(advice.execution_time, "{h}:{i}")
901 903
                     }}</span>
902 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 920
                   <td style="line-height: 10px" width="90">
904 921
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
905 922
                       getAdminUser(advice.execution_staff)
@@ -1008,6 +1025,7 @@
1008 1025
               </table>
1009 1026
             </td>
1010 1027
           </tr>
1028
+          </div>
1011 1029
 
1012 1030
           <tr style="transform: translateY(1px)">
1013 1031
             <td>
@@ -1043,20 +1061,20 @@
1043 1061
                       <span
1044 1062
                         v-if="
1045 1063
                           setAdminUserES(
1046
-                            prescription == null
1064
+                            advices == null
1047 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 1073
                           getAdminUser(
1056
-                            prescription == null
1074
+                            advices == null
1057 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,6 +1143,270 @@
1125 1143
         </tbody>
1126 1144
       </table>
1127 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 1410
   </div>
1129 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 Näytä tiedosto

@@ -19,6 +19,7 @@
19 19
             {{ orgname }}
20 20
           </div>
21 21
           <div
22
+            v-if="org_id!=0 && org_id!=10449 && org_id!=3877 && org_id!=9671"
22 23
             class="order-title"
23 24
             style="
24 25
               letter-spacing: 0;
@@ -29,6 +30,20 @@
29 30
           >
30 31
             血液净化治疗记录单
31 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 47
         </div>
33 48
         <div class="row">
34 49
           <div class="inline_block">
@@ -892,10 +907,10 @@
892 907
                         class="under_line"
893 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 911
                           lastafterdialysis.weight_after
897 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 914
                           predialysis.weight_after_last_transparency
900 915
                             ? predialysis.weight_after_last_transparency
901 916
                             : "未称重"
@@ -944,8 +959,8 @@
944 959
                             : "/"
945 960
                         }}
946 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 964
                     </div>
950 965
                     <div class="inline_block" style="flex: 1">
951 966
                       干体重:
@@ -1052,14 +1067,14 @@
1052 1067
                         }}
1053 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 1071
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1057 1072
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1058 1073
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1059 1074
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1060 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 1078
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1064 1079
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1065 1080
                       <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -1098,7 +1113,7 @@
1098 1113
                             : "0"
1099 1114
                         }}
1100 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 1118
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1104 1119
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
@@ -1106,7 +1121,7 @@
1106 1121
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1107 1122
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1108 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 1125
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1111 1126
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1112 1127
                           <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -1171,13 +1186,13 @@
1171 1186
                             : "/"
1172 1187
                         }}
1173 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 1190
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1176 1191
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1177 1192
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1178 1193
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1179 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 1196
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1182 1197
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1183 1198
                        <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -1207,6 +1222,99 @@
1207 1222
                       </div>
1208 1223
                     </div>
1209 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 1318
                   <div
1211 1319
                     class="row"
1212 1320
                     style="padding: 2px 0; line-height: 23px; display: flex"
@@ -1288,7 +1396,8 @@
1288 1396
                         <td width="60" v-if="org_id!=9836&&org_id!=9919&&org_id!=9671">透析液温度(°C)</td>
1289 1397
                         <td width="50" v-if="org_id != 10121">电导度<br />(ms/cm)</td>
1290 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 1401
                         <td
1293 1402
                           v-if="
1294 1403
                             prescription.mode_id == 2 ||
@@ -1299,6 +1408,7 @@
1299 1408
                         >
1300 1409
                           置换量<br />(ml)
1301 1410
                         </td>
1411
+                        <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">滤前压(mmHg)</td>
1302 1412
                         <td width="50" v-if="org_id == 9538">KT/V</td>
1303 1413
                         <td width="50" v-if="org_id == 9919">在线尿素监测</td>  
1304 1414
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
@@ -1383,7 +1493,8 @@
1383 1493
                       
1384 1494
 
1385 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 1498
                         </td>
1388 1499
                         <!-- <td style="width:50px">
1389 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,6 +1520,7 @@
1409 1520
                             }}
1410 1521
                           </span>
1411 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 1524
                         <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671">
1413 1525
                           {{ monitor.ktv }}
1414 1526
                         </td>
@@ -1675,7 +1787,12 @@
1675 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 1796
             </div>
1680 1797
           </div>
1681 1798
           <div class="row">
@@ -2450,6 +2567,53 @@
2450 2567
                     class="row"
2451 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 2617
                     <div class="inline_block" style="flex: 1">
2454 2618
                       穿刺护士:
2455 2619
                       <div
@@ -2489,6 +2653,58 @@
2489 2653
                         />
2490 2654
                       </div>
2491 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 2708
                     <div class="inline_block" style="flex: 1">
2493 2709
                       <span v-if="org_id==10414">责任护士:</span> 
2494 2710
                       <span v-else>治疗护士:</span> 
@@ -2530,6 +2746,10 @@
2530 2746
                         />
2531 2747
                       </div>
2532 2748
                     </div>
2749
+                  </div>
2750
+                  
2751
+
2752
+
2533 2753
                     <div class="inline_block" style="flex: 1">
2534 2754
                       <span v-if="org_id==10387" >核对护士:</span> 
2535 2755
                       <span v-else >核对人员:</span> 
@@ -2642,7 +2862,7 @@
2642 2862
                       </div>
2643 2863
                     </div>
2644 2864
                     <div class="inline_block" style="flex: 1">
2645
-                      下机护士:
2865
+                       下机护士:
2646 2866
                       <div
2647 2867
                         class="under_line"
2648 2868
                         style="width: 80px; text-align: center"
@@ -3479,7 +3699,7 @@ export default {
3479 3699
         for (let index = 0; index < this.doctor_advices.length; index++) {
3480 3700
           this.doctor_advices[index]["isShow"] = 2;
3481 3701
         }
3482
-
3702
+       console.log("total--------------------------",this.doctor_advices)
3483 3703
         // if (this.doctor_advices.length > 0) {
3484 3704
         //   var group = this.newAdviceGroupObject()
3485 3705
         //   var initGroupBlock = function(group, advice) {
@@ -3575,6 +3795,7 @@ export default {
3575 3795
         }
3576 3796
 
3577 3797
         this.totollength = this.doctor_advices.length + this.monitors.length;
3798
+        console.log("this.totollength",this.totollength)
3578 3799
         if (this.totollength > 18) {
3579 3800
           var temp_advice_length = 17 - this.monitors.length;
3580 3801
           var doctor_advices_1 = [];

+ 84 - 49
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue Näytä tiedosto

@@ -201,13 +201,9 @@
201 201
             </td>
202 202
           </tr>
203 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 207
             <td style="text-align: left" colspan="1">
212 208
               <span style="display: inline-block; margin-left: 15px">
213 209
                 设定脱水量:{{
@@ -225,7 +221,7 @@
225 221
                 ></label-box>
226 222
               </span>
227 223
             </td>
228
-            <td style="text-align: left" colspan="2">
224
+            <td style="text-align: left" colspan="3">
229 225
               <span style="display: inline-block; margin-left: 15px">
230 226
                 <span v-if="prescription.anticoagulant == 2">普通肝素首剂:</span>
231 227
                 <span v-if="prescription.anticoagulant == 3"
@@ -294,7 +290,7 @@
294 290
               <span v-if="prescription.anticoagulant == 2">mg/h</span>
295 291
               <span v-if="prescription.anticoagulant == 1">mg/h</span>
296 292
             </td>
297
-            <td style="text-align: left" colspan="2">
293
+            <td style="text-align: left" colspan="1">
298 294
               <span style="display: inline-block; ">
299 295
                 总量:
300 296
                 {{
@@ -315,6 +311,52 @@
315 311
               <span v-if="prescription.anticoagulant == 1">mg</span>
316 312
             </td>
317 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 360
           <tr>
319 361
             <td style="text-align: left" colspan="1">
320 362
               <span style="display: inline-block; margin-left: 15px">
@@ -352,45 +394,35 @@
352 394
                 }}分钟
353 395
               </span>
354 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 399
               <span style="display: inline-block; margin-left: 15px">
370 400
                 置换方式:
371 401
                 <label-box
372 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 405
                   showValue="前"
376 406
                 ></label-box
377 407
                 >&nbsp;
378 408
                 <label-box
379 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 412
                   showValue="后"
383 413
                 ></label-box>
384
-                &nbsp; (总量:{{
414
+                &nbsp; (总量:
415
+                <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{
385 416
                   prescription.displace_liqui_value
386 417
                     ? prescription.displace_liqui_value
387 418
                     : "/"
388 419
                 }}L)
420
+                </span>
389 421
               </span>
390 422
             </td>
391 423
           </tr>
392 424
           <tr>
393
-            <!-- <td style="text-align: left" colspan="1">
425
+            <td style="text-align: left" colspan="1">
394 426
               <span style="display: inline-block; margin-left: 15px">
395 427
                 责任护士:
396 428
                 <span
@@ -401,7 +433,7 @@
401 433
                   <img style="height:30px;" :src="setAdminUserES(dialysisOrder.quality_nurse_id)" alt srcset />
402 434
                 </span>
403 435
               </span>
404
-            </td> -->
436
+            </td>
405 437
             <td style="text-align: left" colspan="1">
406 438
               <span style="display: inline-block; margin-left: 15px">
407 439
                 <span
@@ -431,22 +463,25 @@
431 463
                 </span>
432 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 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 485
             <td style="text-align: left" colspan="3">
451 486
               <span style="display: inline-block; margin-left: 15px">
452 487
                 <span
@@ -957,10 +992,10 @@
957 992
               超滤率
958 993
               <br />ml/h
959 994
             </td>
960
-            <td style="min-width: 60px">
995
+            <!-- <td style="min-width: 60px">
961 996
               超滤量
962 997
               <br />ml
963
-            </td>
998
+            </td> -->
964 999
             <td style="min-width: 60px">
965 1000
               电导度
966 1001
               <br />
@@ -993,7 +1028,7 @@
993 1028
             </td>
994 1029
             <td>{{ monitor.transmembrane_pressure }}</td>
995 1030
             <td>{{ monitor.ultrafiltration_rate }}</td>
996
-            <td>{{ monitor.ultrafiltration_volume }}</td>
1031
+            <!-- <td>{{ monitor.ultrafiltration_volume }}</td> -->
997 1032
             <td>{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
998 1033
             <td>
999 1034
               <span style="line-height: 18px; display: block">
@@ -1241,9 +1276,9 @@
1241 1276
                 &nbsp;&nbsp; {{ advice.prescribing_number
1242 1277
                 }}{{ advice.prescribing_number_unit }}
1243 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 1282
               <span v-if="advice.parent_id == 0">{{
1248 1283
                 advice.delivery_way
1249 1284
               }}</span>

+ 35 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Näytä tiedosto

@@ -1856,20 +1856,42 @@ export default {
1856 1856
       }
1857 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 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 1895
     newAdviceGroupObject: function() {
1874 1896
       return Object.assign(
1875 1897
         {},

+ 7 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Näytä tiedosto

@@ -536,10 +536,14 @@
536 536
                     <tr>
537 537
                       <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
538 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 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 547
                       </td>
544 548
                       <td width="90" style="border:none;padding-left:5px">静脉管道:</td>
545 549
                       <td width="220" style="text-align:left;border:none;">

+ 25 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue Näytä tiedosto

@@ -1806,11 +1806,33 @@ export default {
1806 1806
         }
1807 1807
         return ''
1808 1808
       },
1809
+      // getAge: function(val) {
1810
+      //   if (val.birthday != 0) {
1811
+      //     return jsGetAge(val.birth, '-')
1812
+      //   }
1813
+      //   return ''
1814
+      // },
1809 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 1837
       newAdviceGroupObject: function() {
1816 1838
         return Object.assign(

BIN
src/xt_pages/favicon.ico Näytä tiedosto


+ 142 - 1
src/xt_pages/hospitalStation/summary.vue Näytä tiedosto

@@ -215,6 +215,32 @@
215 215
             >
216 216
               上传结算清单
217 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 244
             <el-button
219 245
               size="mini"
220 246
               type="primary"
@@ -452,6 +478,121 @@ export default {
452 478
   },
453 479
 
454 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 596
     setStorage() {
456 597
       this.$store.commit("SET_PAGEDATA", {
457 598
         page: this.page,
@@ -1123,7 +1264,7 @@ export default {
1123 1264
         setl_time: obj.setl_time,
1124 1265
       };
1125 1266
       this.invoiceParams = paramsObj;
1126
-      
1267
+
1127 1268
       const loading = this.$loading({
1128 1269
           lock: true,
1129 1270
           text: '正在加载中...',

+ 38 - 0
src/xt_pages/index.html Näytä tiedosto

@@ -0,0 +1,38 @@
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 Näytä tiedosto

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

+ 115 - 113
src/xt_pages/management/home.vue Näytä tiedosto

@@ -1772,6 +1772,11 @@
1772 1772
 
1773 1773
 
1774 1774
 
1775
+                           
1776
+                            <el-divider></el-divider>
1777
+                         </div>     
1778
+                             
1779
+                        
1775 1780
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1776 1781
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1777 1782
                               <el-row>
@@ -1895,10 +1900,6 @@
1895 1900
                               </el-row>
1896 1901
                             </el-form>
1897 1902
                             <el-divider></el-divider>
1898
-                         </div>     
1899
-                             
1900
-
1901
-                             
1902 1903
 
1903 1904
 
1904 1905
 
@@ -2031,127 +2032,127 @@
2031 2032
 
2032 2033
 
2033 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 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 2076
                                   </el-col>
2049 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 2081
                                   </el-col>
2082
+                                </el-row>
2083
+                                <el-row>
2056 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 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 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 2103
                                   </el-col>
2104
+                                
2117 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 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 2125
                               </el-row>
2139
-                              <!-- <el-row>
2126
+                                <el-row>
2140 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 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 2156
                             <el-divider></el-divider>
2156 2157
 
2157 2158
                            
@@ -3355,7 +3356,8 @@ export default {
3355 3356
         this.tabIndex = index
3356 3357
       },
3357 3358
       handleCurrentChange(val) {
3358
-        console.log("Val222222222",val)
3359
+        console.log("val-------------------------",val)
3360
+        // 通过设备型号区分质量控制
3359 3361
         this.device_type = val.device_type
3360 3362
         this.unitType = val.unit_type
3361 3363
         this.currentRow = val

+ 3 - 1
src/xt_pages/management/index.vue Näytä tiedosto

@@ -126,7 +126,7 @@
126 126
           <template slot-scope="scope">{{ scope.row.machine_status }}</template>
127 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 130
           <template slot-scope="scope">{{getTotal(scope.row.bed_id,scope.row.user_total) }}</template>
131 131
         </el-table-column>
132 132
 
@@ -214,6 +214,7 @@ export default {
214 214
       },
215 215
       total: 0,
216 216
       count:[],
217
+      org_id:0,
217 218
     };
218 219
   },
219 220
   methods: {
@@ -403,6 +404,7 @@ export default {
403 404
     this.getAllSubregion();
404 405
     this.getAllMachineInfo();
405 406
     this.getUserMachTotalCount()
407
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
406 408
   }
407 409
 };
408 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 Näytä tiedosto

@@ -110,7 +110,7 @@
110 110
           >
111 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 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 116
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
@@ -118,7 +118,7 @@
118 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 122
           <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
123 123
           <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
124 124
 <!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
@@ -529,7 +529,8 @@ export default {
529 529
           return "普通住院";
530 530
           break;
531 531
       }
532
-    },cancelUploadTwo(row){
532
+    },
533
+    cancelUploadTwo(row){
533 534
       if(this.$store.getters.xt_user.org_id == 10265){
534 535
         var that = this;
535 536
         axios
@@ -634,7 +635,8 @@ export default {
634 635
           })
635 636
           .catch(function (error) {
636 637
           });
637
-    },queryData(row){
638
+    },
639
+    queryData(row){
638 640
       var that = this;
639 641
       axios
640 642
         .get("http://127.0.0.1:9532/api/4103", {
@@ -1010,7 +1012,87 @@ export default {
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 1096
     export_detail_three() {
1015 1097
       let params = {};
1016 1098
       getHisDataThree(params).then((response) => {
@@ -1028,12 +1110,13 @@ export default {
1028 1110
                 name: order.patient.name,
1029 1111
                 id_card_no: order.patient.id_card_no,
1030 1112
                 year: "2023",
1031
-                month: "1",
1113
+                month: "2",
1032 1114
                 code: data[b].code,
1033 1115
                 pric: data[b].count * data[b].price,
1034 1116
                 item_name: data[b].name,
1035 1117
                 unit: data[b].unit,
1036 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 1122
               if (order.insutype == "310") {
@@ -1055,7 +1138,9 @@ export default {
1055 1138
                 "医保类型": list[i].insutype,
1056 1139
                 "年": list[i].year,
1057 1140
                 "月": list[i].month,
1141
+
1058 1142
                 "药品编码": list[i].code,
1143
+                "费用类型": list[i].item_type_name,
1059 1144
                 "名称": list[i].item_name,
1060 1145
                 "单位": list[i].unit,
1061 1146
                 "数量": list[i].count,
@@ -1073,6 +1158,7 @@ export default {
1073 1158
               "年",
1074 1159
               "月",
1075 1160
               "药品编码",
1161
+              "费用类型",
1076 1162
               "名称",
1077 1163
               "单位",
1078 1164
               "数量",
@@ -1086,6 +1172,7 @@ export default {
1086 1172
               "年",
1087 1173
               "月",
1088 1174
               "药品编码",
1175
+              "费用类型",
1089 1176
               "名称",
1090 1177
               "单位",
1091 1178
               "数量",
@@ -2298,47 +2385,40 @@ export default {
2298 2385
 
2299 2386
             } else if (order.his_patient.insuplc_admdvs == "440704"){
2300 2387
 
2301
-              insuplc_admdvs_name = "江区"
2388
+              insuplc_admdvs_name = "江区"
2302 2389
 
2303 2390
 
2304 2391
             } else if (order.his_patient.insuplc_admdvs == "440705"){
2305 2392
 
2306
-              insuplc_admdvs_name = "蓬江区"
2393
+              insuplc_admdvs_name = "新会区"
2307 2394
 
2308 2395
 
2309 2396
             }else if (order.his_patient.insuplc_admdvs == "440781"){
2310 2397
 
2311
-              insuplc_admdvs_name = "蓬江区"
2312
-
2398
+              insuplc_admdvs_name = "台山市"
2313 2399
 
2314 2400
             }else if (order.his_patient.insuplc_admdvs == "440783"){
2315
-
2316
-              insuplc_admdvs_name = "蓬江区"
2317
-
2401
+              insuplc_admdvs_name = "开平市"
2318 2402
 
2319 2403
             }else if (order.his_patient.insuplc_admdvs == "440784"){
2320
-
2321
-
2404
+              insuplc_admdvs_name = "鹤山市"
2322 2405
 
2323 2406
             }else if (order.his_patient.insuplc_admdvs == "440785"){
2324
-
2325
-
2407
+              insuplc_admdvs_name = "恩平市"
2326 2408
 
2327 2409
             }else if (order.his_patient.insuplc_admdvs == "440799"){
2328
-
2329
-
2330
-
2410
+              insuplc_admdvs_name = "市直"
2331 2411
             }
2332 2412
 
2333 2413
 
2334
-
2335 2414
             let obj = {
2336 2415
               就诊号: order.mdtrt_id,
2337 2416
               患者姓名: name,
2338 2417
               开处时间: time,
2339 2418
               险种类型: insutypeName,
2340 2419
               参保所属医保区划: order.his_patient.insuplc_admdvs,
2341
-              属地名称: order.his_patient.insuplc_admdvs,
2420
+              参保号:order.his_patient.id_card_no,
2421
+              属地名称: insuplc_admdvs_name,
2342 2422
               应收金额: order.medfee_sumamt,
2343 2423
               实收金额: order.medfee_sumamt,
2344 2424
               医保统筹金额: order.hifp_pay,
@@ -2372,6 +2452,9 @@ export default {
2372 2452
               "患者姓名",
2373 2453
               "开处时间",
2374 2454
               "险种类型",
2455
+              "参保所属医保区划",
2456
+              "参保号",
2457
+              "属地名称",
2375 2458
               "应收金额",
2376 2459
               "实收金额",
2377 2460
               "医保统筹金额",
@@ -2401,6 +2484,9 @@ export default {
2401 2484
               "患者姓名",
2402 2485
               "开处时间",
2403 2486
               "险种类型",
2487
+              "参保所属医保区划",
2488
+              "参保号",
2489
+              "属地名称",
2404 2490
               "应收金额",
2405 2491
               "实收金额",
2406 2492
               "医保统筹金额",
@@ -2502,6 +2588,7 @@ export default {
2502 2588
               price: month_prescriptions[i].project[a].price
2503 2589
 
2504 2590
             }
2591
+
2505 2592
             project_ids.push(obj)
2506 2593
             project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2507 2594
           }
@@ -2523,6 +2610,10 @@ export default {
2523 2610
             obj['code'] = drug_month_prescriptions.advices[a].id
2524 2611
             obj['unit'] = drug_month_prescriptions.advices[a].drug.min_unit
2525 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 2617
             count = count + drug_month_prescriptions.advices[a].prescribing_number
2527 2618
           }
2528 2619
         }
@@ -2541,17 +2632,20 @@ export default {
2541 2632
               obj['code'] = project_month_prescriptions.project[a].id
2542 2633
               obj['unit'] = project_month_prescriptions.project[a].project.unit
2543 2634
               obj['type'] = 2
2635
+              obj['id'] = project_month_prescriptions.project[a].id
2636
+
2544 2637
 
2545 2638
             } else if (project_month_prescriptions.project[a].type == 3) {
2546 2639
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
2547 2640
               obj['code'] = project_month_prescriptions.project[a].id
2548 2641
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
2549 2642
               obj['type'] = 3
2643
+              obj['id'] = project_month_prescriptions.project[a].id
2550 2644
 
2551 2645
             }
2552 2646
             count = count + parseFloat(project_month_prescriptions.project[a].count)
2553 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 Näytä tiedosto

@@ -7,7 +7,9 @@
7 7
       class="prescription-print"
8 8
       v-for="(item,index) in i.prescriptions"
9 9
       :key="index"
10
+
10 11
     >
12
+
11 13
       <span v-if="org_id == 10138">
12 14
         <img
13 15
           src="https://kuyi.shengws.com/bailin/bltotle.jpg"
@@ -158,7 +160,7 @@
158 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 161
               </div> -->
160 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 164
             <span style="font-weight: bold">{{ index + 1 + "." }}</span
163 165
             >{{
164 166
               it.type == 2 ? it.project.project_name : it.good_info.good_name
@@ -209,6 +211,7 @@
209 211
         alt=""
210 212
       /></span>
211 213
       <div style="page-break-after: always"></div>
214
+
212 215
     </div>
213 216
 
214 217
     <!-- <div id='prescriptionPrint'>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Näytä tiedosto

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

+ 43 - 5
src/xt_pages/outpatientDoctorStation/pastInquiries.vue Näytä tiedosto

@@ -429,11 +429,49 @@ export default {
429 429
 
430 430
           let new_patients = []
431 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 475
           } else {
438 476
             Arr.forEach((el) => {
439 477
               el.new_prescriptions.forEach((o) => {

+ 23 - 1
src/xt_pages/outpatientTool/detailPrint.vue Näytä tiedosto

@@ -18,6 +18,9 @@
18 18
           <tr>
19 19
             <td>患者姓名:{{ patient.name }}</td>
20 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 24
             <td>结算类别:
22 25
             <span v-if="his_patient!=null&&his_patient.balance_accounts_type >0"> {{ getType(his_patient.balance_accounts_type) }} </span>
23 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,7 +167,7 @@
164 167
 
165 168
 <script>
166 169
 import print from "print-js";
167
-import { uParseTime } from "@/utils/tools";
170
+import {jsGetAge, uParseTime } from "@/utils/tools";
168 171
 import { getHisSummaryDetailList } from "@/api/his/his_tools";
169 172
 export default {
170 173
   data() {
@@ -190,6 +193,24 @@ export default {
190 193
     };
191 194
   },
192 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 214
     printtpage() {
194 215
       const style =
195 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,6 +258,7 @@ export default {
237 258
 
238 259
           this.list = list;
239 260
           this.patient = response.data.data.patient;
261
+          console.log(this.patient)
240 262
 
241 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 Näytä tiedosto

@@ -0,0 +1,144 @@
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 Näytä tiedosto

@@ -626,6 +626,7 @@
626 626
           this.tableData[i].assessment_date = this.getTime(this.tableData[i].assessment_date,'{y}-{m}-{d}')
627 627
           this.tableData[i].name = this.tableData[i].patient.name
628 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 632
         const tHeader = ['日期', '姓名', '干体重','前次透后体重','透前体重','透后体重','体重增加']

+ 8 - 8
src/xt_pages/sign/lineUp.vue Näytä tiedosto

@@ -43,9 +43,9 @@
43 43
                 <div class="lineUpMain">
44 44
                     <div class="lineUpMainLeft">
45 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 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 49
                             <p style="width:14%">床位号</p>
50 50
                             <p style="width:14%">治疗状态</p>
51 51
                             <p style="width:14%">上机时间</p>
@@ -53,14 +53,14 @@
53 53
                         </div>
54 54
                         <div class="lineUpList">
55 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 57
                                     <span v-if="item.schedule_type == 1">上午</span>
58 58
                                     <span v-if="item.schedule_type == 2">下午</span>
59 59
                                     <span v-if="item.schedule_type == 3">晚上</span>
60 60
                                     {{ item.queue_no }}号
61 61
                                 </p>
62 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 64
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
65 65
                                 <p style="width:14%">
66 66
                                     <span v-if="item.status == 1">待接诊</span>
@@ -220,9 +220,9 @@
220 220
                 <div class="lineUpMain">
221 221
                     <div class="lineUpMainLeft">
222 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 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 226
                             <p style="width:14%">床位号</p>
227 227
                             <p style="width:14%">治疗状态</p>
228 228
                             <p style="width:14%">上机时间</p>
@@ -230,14 +230,14 @@
230 230
                         </div>
231 231
                         <div class="lineUpList">
232 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 234
                                     <span v-if="item.schedule_type == 1">上午</span>
235 235
                                     <span v-if="item.schedule_type == 2">下午</span>
236 236
                                     <span v-if="item.schedule_type == 3">晚上</span>
237 237
                                     {{ item.queue_no }}号
238 238
                                 </p>
239 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 241
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
242 242
                                 <p style="width:14%">
243 243
                                     <span v-if="item.status == 1">待接诊</span>

+ 1 - 0
src/xt_pages/stock/Dialog/goodTypeDialog.vue Näytä tiedosto

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

+ 31 - 21
src/xt_pages/stock/detail/stockOutDetail.vue Näytä tiedosto

@@ -149,8 +149,13 @@
149 149
         </el-table-column>
150 150
         <el-table-column label="数量" align="center">
151 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 159
           </template>
155 160
         </el-table-column>
156 161
         <el-table-column label="总价" align="center">
@@ -341,7 +346,15 @@ export default {
341 346
           this.wareOutList =  response.data.data.list
342 347
           console.log("党的20大长长",this.wareOutList)
343 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 358
           for (let i = 0; i < response.data.data.list.length; i++) {
346 359
             this.tableData.push(response.data.data.list[i])
347 360
 
@@ -349,16 +362,10 @@ export default {
349 362
             total += response.data.data.list[i].price * response.data.data.list[i].count
350 363
             obj["is_total"] = 0;
351 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,6 +406,15 @@ export default {
399 406
           this.wareOutList =  response.data.data.list
400 407
           console.log("党的20大长长",this.wareOutList)
401 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 418
           for (let i = 0; i < response.data.data.list.length; i++) {
403 419
             this.tableData.push(response.data.data.list[i])
404 420
             var obj = response.data.data.list[i];
@@ -408,21 +424,15 @@ export default {
408 424
             if(response.data.data.list[i].price == 0){
409 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 428
             obj["is_total"] = 0;
429
+            
413 430
             this.cancelStockDate.push(obj);
414 431
           }
415 432
 
416 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 Näytä tiedosto

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

+ 46 - 0
src/xt_pages/stock/drugs/drugStockFlow.vue Näytä tiedosto

@@ -131,6 +131,21 @@
131 131
               {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
132 132
             
133 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 149
         </el-table-column>
135 150
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
136 151
            <template slot-scope="scope">
@@ -257,6 +272,7 @@
257 272
         total:0,
258 273
         drug:{},
259 274
         houseList:[],
275
+        patientList:[],
260 276
       }
261 277
     },
262 278
     methods:{
@@ -509,6 +525,7 @@
509 525
             var drug = response.data.data.drug
510 526
            
511 527
             this.drug = drug
528
+            this.patientList = response.data.data.patientList
512 529
 
513 530
             this.houseList = response.data.data.houseList
514 531
           }
@@ -552,6 +569,35 @@
552 569
       }
553 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 603
 </script>

+ 41 - 14
src/xt_pages/stock/drugs/drugStockInOrder.vue Näytä tiedosto

@@ -252,39 +252,48 @@
252 252
       >
253 253
         <el-table-column label="药品名称" align="center">
254 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 258
           </template>
257 259
         </el-table-column>
258 260
         <el-table-column label="药品类型" align="center">
259 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 263
           </template>
262 264
         </el-table-column>
263 265
         <el-table-column label="规格&单位" align="center">
264 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 268
               scope.row.drug.min_number
267 269
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
270
+            </span> 
268 271
           </template>
269 272
         </el-table-column>
270 273
         <el-table-column label="国家编码" align="center">
271 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 278
           </template>
274 279
         </el-table-column>
275 280
         <el-table-column label="批号" align="center">
276 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 283
           </template>
279 284
         </el-table-column>
280 285
         <el-table-column label="仓库名称" align="center">
281 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 290
           </template>
284 291
         </el-table-column>
285 292
         <el-table-column label="入库数量" align="center">
286 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 297
           </template>
289 298
         </el-table-column>
290 299
         <!-- <el-table-column label="拆零零售价" align="center">
@@ -294,43 +303,56 @@
294 303
         </el-table-column> -->
295 304
         <el-table-column label="进货价" align="center">
296 305
           <template slot-scope="scope">
297
-            {{ scope.row.price }}
306
+            <span v-if="scope.row.is_total == 0">{{ scope.row.price }}</span> 
298 307
           </template>
299 308
         </el-table-column>
300 309
         <el-table-column label="总价" align="center">
301 310
           <template slot-scope="scope">
302 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 316
           </template>
305 317
         </el-table-column>
306 318
         <el-table-column label="生产厂家" align="center">
307 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 323
           </template>
310 324
         </el-table-column>
311 325
         <el-table-column label="生产日期" align="center">
312 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 328
           </template>
315 329
         </el-table-column>
316 330
         <el-table-column label="有效日期" align="center">
317 331
           <template slot-scope="scope">
332
+           <span v-if="scope.row.is_total == 0">
318 333
             {{ getTime(scope.row.expiry_date) }}
334
+            </span> 
319 335
           </template>
320 336
         </el-table-column>
321 337
         <el-table-column label="经销商" align="center">
322 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 342
           </template>
325 343
         </el-table-column>
326 344
         <el-table-column label="批准文号" align="center">
327 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 349
           </template>
330 350
         </el-table-column>
331 351
         <el-table-column label="备注" align="center">
332 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 356
           </template>
335 357
         </el-table-column>
336 358
       </el-table>
@@ -774,12 +796,17 @@ export default {
774 796
           this.$message.error(response.data.msg);
775 797
           return false;
776 798
         } else {
799
+          var obj = {total_count:0,is_total:1}
777 800
           for (let i = 0; i < response.data.data.info.length; i++) {
801
+            response.data.data.info[i].is_total = 0
778 802
             this.showOne = true;
779 803
             this.WarehouseInfo.warehouseInfoDate.push(
780 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 810
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
784 811
           this.getAllDrugList();
785 812
         }

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue Näytä tiedosto

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

+ 12 - 5
src/xt_pages/stock/drugs/drugStockOutOrder.vue Näytä tiedosto

@@ -304,7 +304,7 @@
304 304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
305 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 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 308
                   </td>
309 309
                </tr>
310 310
             </template>
@@ -1222,9 +1222,10 @@ export default {
1222 1222
           this.dealerList = response.data.data.dealerList;
1223 1223
           var drugFlowList = response.data.data.drugFlowList;
1224 1224
           var drugList = response.data.data.drugList
1225
-        
1225
+         
1226 1226
           this.tabList = drugList
1227 1227
           var drugListOne = response.data.data.drugListFlow
1228
+          console.log("drugListOne----------",drugListOne)
1228 1229
           //按批号分组
1229 1230
           var drugListTwo=  response.data.data.drugListOne
1230 1231
           console.log("drugListTwo9922wo",drugListTwo)
@@ -1247,6 +1248,9 @@ export default {
1247 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,6 +1315,7 @@ export default {
1311 1315
                } 
1312 1316
             }
1313 1317
           }
1318
+          console.log("list表格---------",list)
1314 1319
           this.tableList = list;
1315 1320
         }
1316 1321
         if(is_sys == 12){
@@ -1821,14 +1826,16 @@ export default {
1821 1826
       }
1822 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 1831
       var arr = []
1827 1832
       var total = 0
1828 1833
       var max_str = ""
1829 1834
       var min_str = ""
1835
+      console.log("tablelost----",this.tabList)
1830 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 1839
            arr.push(this.tabList[j])
1833 1840
         }
1834 1841
       }

+ 1 - 0
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Näytä tiedosto

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

+ 1 - 0
src/xt_pages/stock/query/goodNewQuery.vue Näytä tiedosto

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

+ 21 - 0
src/xt_pages/stock/stockFlow.vue Näytä tiedosto

@@ -131,6 +131,16 @@
131 131
              <span > {{getManufacturer(scope.row.manufacturer)}}</span>
132 132
            </template>
133 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 144
        </el-table>
135 145
        
136 146
       <el-pagination
@@ -236,6 +246,7 @@
236 246
         cancelCountList:[],
237 247
         good:{},
238 248
         houseList:[],
249
+        patientList:[]
239 250
       }
240 251
     },
241 252
     methods:{
@@ -443,6 +454,7 @@
443 454
            var manufacturerList = response.data.data.manufacturerList
444 455
            this.manufacturerList = manufacturerList
445 456
            this.houseList = response.data.data.houseList
457
+           this.patientList = response.data.data.patients
446 458
           }
447 459
        })
448 460
      },
@@ -469,6 +481,15 @@
469 481
          specification_name = this.good.specification_name
470 482
        }
471 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 Näytä tiedosto

@@ -239,38 +239,50 @@
239 239
         >
240 240
         <el-table-column label="耗材名称" align="center">
241 241
           <template slot-scope="scope">
242
+           <span v-if="scope.row.is_total == 0">
242 243
             {{ scope.row.GoodInfo.good_name }}
244
+            </span> 
243 245
           </template>
244 246
         </el-table-column>
245 247
         <el-table-column label="耗材类型" align="center">
246 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 252
           </template>
249 253
         </el-table-column>
250 254
         <el-table-column label="规格&单位" align="center">
251 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 259
           </template>
254 260
         </el-table-column>
255 261
         <el-table-column label="国家编码" align="center">
256 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 266
           </template>
259 267
         </el-table-column>
260 268
         <el-table-column label="批号" align="center">
261 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 273
           </template>
264 274
         </el-table-column>
265 275
          <el-table-column label="仓库名称" align="center">
266 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 280
           </template>
269 281
         </el-table-column>
270 282
 
271 283
         <el-table-column label="入库数量" align="center">
272 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 286
           </template>
275 287
         </el-table-column>
276 288
          <!-- <el-table-column label="零售价" align="center">
@@ -280,47 +292,66 @@
280 292
         </el-table-column> -->
281 293
         <el-table-column label="进货价" align="center">
282 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 298
           </template>
285 299
         </el-table-column>
286 300
         <el-table-column label="总价" align="center">
287 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 308
           </template>
290 309
         </el-table-column>
291 310
         <el-table-column label="生产厂家" align="center">
292 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 315
           </template>
295 316
         </el-table-column>
296 317
         <el-table-column label="生产日期" align="center">
297 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 322
           </template>
300 323
         </el-table-column>
301 324
         <el-table-column label="有效期" align="center">
302 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 329
           </template>
305 330
         </el-table-column>
306 331
        <el-table-column label="经销商" align="center">
307 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 336
           </template>
310 337
         </el-table-column>
311 338
        <el-table-column label="批准文号" align="center">
312 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 341
           </template>
315 342
         </el-table-column>
316 343
         <el-table-column label="注册编码" align="center">
317 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 348
           </template>
320 349
         </el-table-column>
321 350
         <el-table-column label="备注" align="center">
322 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 355
           </template>
325 356
         </el-table-column>
326 357
         </el-table>
@@ -423,6 +454,7 @@
423 454
           <el-table-column label="总价" min-width="20" align="center">
424 455
             <template slot-scope="scope">
425 456
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
457
+             
426 458
             </template>
427 459
           </el-table-column>
428 460
 
@@ -1325,14 +1357,20 @@ export default {
1325 1357
           return false;
1326 1358
         } else {
1327 1359
           this.tableShow = true
1360
+          var  obj = {name:"总计",total_count:0,is_total:1}
1328 1361
           for (let i = 0; i < response.data.data.info.length; i++) {
1329 1362
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1330 1363
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1331 1364
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1332
-
1365
+           
1333 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 1371
             this.tableList.push(response.data.data.info[i])
1335 1372
           }
1373
+           this.tableList.push(obj)
1336 1374
            this.warehouse = response.data.data.warehousing;
1337 1375
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1338 1376
 

+ 6 - 6
src/xt_pages/user/components/PatientForm.vue Näytä tiedosto

@@ -255,7 +255,7 @@
255 255
                 </el-form-item>
256 256
               </el-col>
257 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 259
                   <el-input
260 260
                     v-model="form.homeTelephone"
261 261
                     maxlength="20"
@@ -441,7 +441,7 @@
441 441
               </el-col>
442 442
 
443 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 445
                   <el-input v-model="form.homeAddress"></el-input>
446 446
                 </el-form-item>
447 447
               </el-col>
@@ -1336,10 +1336,10 @@ export default {
1336 1336
         age: [{ required: true, message: "请填写年龄", trigger: "blur" }],
1337 1337
         firstDialysisDate: [
1338 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 1344
       adminUserOptions:[],
1345 1345
     };

+ 10 - 0
src/xt_pages/user/components/PatientSidebar.vue Näytä tiedosto

@@ -121,6 +121,10 @@ export default {
121 121
             {
122 122
               name: '1-5',
123 123
               label: '抢救记录'
124
+            },
125
+            {
126
+              name: '1-11',
127
+              label: '首次病程记录'
124 128
             }
125 129
           ]
126 130
         },
@@ -195,6 +199,8 @@ export default {
195 199
         this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
196 200
       }else if(name == '1-10'){
197 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 206
     changePatient(value) {
@@ -320,6 +326,10 @@ export default {
320 326
         this.$router.push({
321 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 334
        else if (patientKey == '1-5') {
325 335
         this.$router.push({ path: '/patients/rescue?id=' + this.id })

+ 65 - 15
src/xt_pages/user/coursePrint.vue Näytä tiedosto

@@ -60,7 +60,19 @@
60 60
 
61 61
               </div>
62 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 73
           </div>
74
+
75
+        
64 76
         </div>
65 77
       </div>
66 78
     </div>
@@ -91,6 +103,9 @@
91 103
         record:[],
92 104
         patient: {},
93 105
         org_id:0,
106
+        adminUserList:[],
107
+        operators:[],
108
+        operatorMaps: {},
94 109
       }
95 110
     },
96 111
     created() {
@@ -114,12 +129,22 @@
114 129
         if (resp.state == 1) {
115 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 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 148
           this.loading = false
124 149
         } else {
125 150
           this.loading = false
@@ -131,20 +156,45 @@
131 156
     },
132 157
     methods: {
133 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 169
         if (value != undefined) {
144 170
           return uParseTime(value, temp)
145 171
         }
146 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 200
 </script>

+ 47 - 4
src/xt_pages/user/dialysisSolution.vue Näytä tiedosto

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

+ 18 - 1
src/xt_pages/user/doctorAdvice.vue Näytä tiedosto

@@ -69,7 +69,20 @@
69 69
               v-for="item in adviceTypeArr"
70 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 82
               {{ item.label }}
83
+            </span>
84
+            
85
+            
73 86
             </li>
74 87
           </ul>
75 88
         </div>
@@ -153,7 +166,10 @@
153 166
           fixed
154 167
         >
155 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 173
             <span v-else-if="scope.row.advice_type == 3 || scope.row.advice_type == 2">临嘱</span>
158 174
             <span v-else-if="scope.row.advice_type == 4">普通医嘱</span>
159 175
             <span v-else></span>
@@ -560,6 +576,7 @@
560 576
                     v-for="item in adviceTypeOptions"
561 577
                   ></el-option>
562 578
                 </el-select>
579
+               
563 580
               </el-form-item>
564 581
             </el-col>
565 582
 

+ 871 - 0
src/xt_pages/user/firstDisease.vue Näytä tiedosto

@@ -0,0 +1,871 @@
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 Näytä tiedosto

@@ -0,0 +1,413 @@
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 Näytä tiedosto

@@ -65,7 +65,17 @@
65 65
               </span>
66 66
             </td>
67 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 79
           <tr>
70 80
             <td style="text-align:center;width:100px" colspan="1">
71 81
               住址:

+ 24 - 12
src/xt_pages/user/vascularAccess.vue Näytä tiedosto

@@ -9,7 +9,7 @@
9 9
       <el-table class="oictable" :data="tableData" border style="width:100%">
10 10
       <el-table-column prop="start_time" label="建立日期" width="100" align="center">
11 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 13
           </template>
14 14
      </el-table-column>
15 15
       <el-table-column prop="blood_access_part_opera_id" label="血管通路" align="center" width="120">
@@ -34,13 +34,13 @@
34 34
       </el-table-column>
35 35
       <el-table-column prop="date" label="首次启用日期" width="120" align="center">
36 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 38
           </template>
39 39
       </el-table-column>
40 40
      
41 41
        <el-table-column prop="date" label="停用日期" align="center" width="100">
42 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 44
              <span v-if="scope.row.stop_time<0"></span>
45 45
           </template>
46 46
       </el-table-column>
@@ -673,12 +673,24 @@
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 694
      handleUpdateAdviceTemplate(id){
683 695
         getVascularAccessByDetail(id).then(response=>{
684 696
            if(response.data.state ==1){
@@ -739,7 +751,7 @@
739 751
               }
740 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 756
              var inflow_id = 0
745 757
              for(let i=0;i<this.optionsPass.length;i++){
@@ -749,9 +761,9 @@
749 761
              }
750 762
              this.form.inflow_pass = inflow_id
751 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 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 768
              this.form.user_status = accessDetail.user_status
757 769
              this.form.other_vascular = accessDetail.other_vascular

+ 60 - 31
src/xt_pages/workforce/appointment.vue Näytä tiedosto

@@ -68,29 +68,29 @@
68 68
       <bread-crumb :crumbs="crumbs"></bread-crumb>
69 69
       <div style="display:flex;align-items:center">
70 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 72
         <!-- <el-button @click="printTable" type="primary" size="small">打印排班</el-button> -->
73 73
         <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
74 74
           导出排班
75 75
         </el-button>
76
-        <el-button
76
+        <!-- <el-button
77 77
             @click="generateLog()"
78 78
             class="filter-item"
79 79
             type="primary"
80 80
             v-if="is_edit"
81 81
             size="small"
82 82
         >下载日志
83
-        </el-button>
83
+        </el-button> -->
84 84
         <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
85 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 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 90
       </div>
91 91
     </div>
92 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 94
         <span>导出周次:</span>
95 95
         <el-date-picker
96 96
             v-model="weekTime"
@@ -119,10 +119,6 @@
119 119
 
120 120
       </el-tabs>
121 121
 
122
-      <!-- </el-col>
123
-    </el-row> -->
124
-<!--  -->
125
-
126 122
       <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
127 123
                   :schedule-zone-row-prop="scheduleZoneRow"
128 124
                   :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
@@ -130,10 +126,36 @@
130 126
       </table-data>
131 127
 
132 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 160
       <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
139 161
         <el-form :model="form" ref="form" label-width="90px" :rules="rules">
@@ -225,6 +247,7 @@ export default {
225 247
       days: [],
226 248
       logs: [],
227 249
       is_edit: false,
250
+      schedulingTableVisible:false,//全屏
228 251
       scheduleZoneRow: [],
229 252
       downloadLoading: false,
230 253
       msgTipVisible: false,
@@ -276,7 +299,8 @@ export default {
276 299
     ScheduleUploadExcel,
277 300
     tableData,
278 301
     BreadCrumb,
279
-    UploadExcel
302
+    UploadExcel,
303
+
280 304
   },
281 305
   methods: {
282 306
     dragstart(event, item) {
@@ -644,20 +668,16 @@ export default {
644 668
         // console.log("111111111")
645 669
         // console.log(that.scheduleZone)
646 670
       })
647
-    },changeSch(val){
671
+    },
672
+    changeSch(val){
648 673
       // console.log(this.partitions)
649 674
       // console.log(this.scheduleZoneRow)
650 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 682
     setScheduleTemplateAction: function () {
663 683
       this.$router.push({path: '/workforce/template'})
@@ -665,7 +685,8 @@ export default {
665 685
     export_file: function () {
666 686
       // this.getWeekPanelsTwo()
667 687
       this.export_file_step_two()
668
-    },export_file_step_two: function(){
688
+    },
689
+    export_file_step_two: function(){
669 690
 
670 691
       this.downloadLoading = true
671 692
       import('@/vendor/Export2Excel').then(excel => {
@@ -2871,16 +2892,23 @@ export default {
2871 2892
 
2872 2893
     getTime(val) {
2873 2894
       return uParseTime(val, '{y}-{m}-{d}')
2874
-    }, smartsch(){
2895
+    },
2896
+     smartsch(){
2875 2897
       this.$nextTick(function() {
2876 2898
         this.$refs.edittableData.showSmartDialog()
2877 2899
       })
2878
-    },editsch() {
2900
+    },
2901
+    editsch() {
2879 2902
       this.is_edit = true
2880
-      this.$nextTick(function() {
2903
+      this.schedulingTableVisible=true
2904
+      this.$nextTick(function() {//, this.days,this.zones
2881 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 2912
     copySchedule() {
2885 2913
       this.newVisible = true
2886 2914
     },
@@ -3006,7 +3034,8 @@ export default {
3006 3034
           this.templateObj = template
3007 3035
         }
3008 3036
       })
3009
-    },getPatientList(){
3037
+    },
3038
+    getPatientList(){
3010 3039
       patientLists().then(response => {
3011 3040
         if (response.data.state == 1) {
3012 3041
           var patientList = response.data.data.list

+ 12 - 4
src/xt_pages/workforce/components/ScheduleItem.vue Näytä tiedosto

@@ -1,11 +1,11 @@
1 1
 <template>
2
+  <!-- 排班表填充内容 -->
2 3
     <div >
3 4
 
4 5
             <div>
5 6
                 <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span><br/>
6 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 9
             </div>
10 10
     </div>
11 11
 </template>
@@ -26,8 +26,16 @@ export default {
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 40
   methods:{
33 41
         modeColor(name){
@@ -45,7 +53,7 @@ export default {
45 53
 
46 54
 <style lang="scss" scoped>
47 55
 .modeRed{
48
-  color:#ed5555;
56
+  color:#ee780a;
49 57
 }
50 58
 .modePurple{
51 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 Näytä tiedosto

@@ -27,7 +27,7 @@
27 27
           <div style="margin-bottom: 10px; display: flex">
28 28
             <h3 style="line-height: 45px">
29 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 31
               >当前选择</span
32 32
               >
33 33
             </h3>
@@ -71,7 +71,7 @@
71 71
                     <el-table-column
72 72
                       prop="name"
73 73
                       label="患者名称"
74
-                      width="104"
74
+                      
75 75
                       align="center"
76 76
                     >
77 77
                     </el-table-column>
@@ -92,7 +92,7 @@
92 92
                     <el-table-column
93 93
                       prop="name"
94 94
                       label="透析模式"
95
-                      width="104"
95
+
96 96
                       align="center"
97 97
                     ></el-table-column>
98 98
                   </el-table>
@@ -102,22 +102,8 @@
102 102
           </div>
103 103
         </div>
104 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 105
           <el-table
106
+            :fit="true"
121 107
             :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
122 108
             ref="table"
123 109
             :data="opera_device_numbers"
@@ -125,32 +111,31 @@
125 111
             show-summary
126 112
             height="675"
127 113
             style="width: 100%; cursor: pointer"
128
-
129
-            :summary-method="getSummaries"
130 114
             row-class-name="table-row-new-class schedule-table-row"
115
+            :summary-method="getSummaries"
131 116
             @cell-click="itemClick"
132 117
             sum-text="总数"
133 118
           >
119
+          <!--   -->
134 120
             <el-table-column
135 121
               label="分区"
136
-              width="80"
122
+              min-width="50"
137 123
               align="center"
138 124
               fixed
139
-              style="width: 100px; background-color: red; display: block"
140 125
             >
141 126
               <template slot-scope="scope">
142 127
                 {{ scope.row.zone.name }}
143 128
               </template>
144 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 132
               <template slot-scope="scope">
148 133
                 <div>{{ scope.row.number }}</div>
149 134
               </template>
150 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 139
                 <template slot-scope="scope">
155 140
                   <div class="del_table_btn">
156 141
                     <el-button
@@ -187,7 +172,7 @@
187 172
                   </div>
188 173
                 </template>
189 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 176
                 <template slot-scope="scope">
192 177
                   <div class="del_table_btn">
193 178
                     <el-button
@@ -224,7 +209,7 @@
224 209
                   </div>
225 210
                 </template>
226 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 213
                 <template slot-scope="scope">
229 214
                   <div class="del_table_btn">
230 215
                     <el-button
@@ -263,8 +248,8 @@
263 248
               </el-table-column>
264 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 253
                 <template slot-scope="scope">
269 254
                   <div class="del_table_btn">
270 255
                     <el-button
@@ -300,7 +285,7 @@
300 285
                   </div>
301 286
                 </template>
302 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 289
                 <template slot-scope="scope">
305 290
                   <div class="del_table_btn">
306 291
                     <el-button
@@ -337,7 +322,7 @@
337 322
                   </div>
338 323
                 </template>
339 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 326
                 <template slot-scope="scope">
342 327
                   <div class="del_table_btn">
343 328
                     <el-button
@@ -376,8 +361,8 @@
376 361
               </el-table-column>
377 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 366
                 <template slot-scope="scope">
382 367
                   <div class="del_table_btn">
383 368
                     <el-button
@@ -414,7 +399,7 @@
414 399
                   </div>
415 400
                 </template>
416 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 403
                 <template slot-scope="scope">
419 404
                   <div class="del_table_btn">
420 405
                     <el-button
@@ -451,7 +436,7 @@
451 436
                   </div>
452 437
                 </template>
453 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 440
                 <template slot-scope="scope">
456 441
                   <div class="del_table_btn">
457 442
                     <el-button
@@ -490,8 +475,8 @@
490 475
               </el-table-column>
491 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 480
                 <template slot-scope="scope">
496 481
                   <div class="del_table_btn">
497 482
                     <el-button
@@ -528,7 +513,7 @@
528 513
                   </div>
529 514
                 </template>
530 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 517
                 <template slot-scope="scope">
533 518
                   <div class="del_table_btn">
534 519
                     <el-button
@@ -565,7 +550,7 @@
565 550
                   </div>
566 551
                 </template>
567 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 554
                 <template slot-scope="scope">
570 555
                   <div class="del_table_btn">
571 556
                     <el-button
@@ -604,8 +589,8 @@
604 589
               </el-table-column>
605 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 594
                 <template slot-scope="scope">
610 595
                   <div class="del_table_btn">
611 596
                     <el-button
@@ -642,7 +627,7 @@
642 627
                   </div>
643 628
                 </template>
644 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 631
                 <template slot-scope="scope">
647 632
                   <div class="del_table_btn">
648 633
                     <el-button
@@ -679,7 +664,7 @@
679 664
                   </div>
680 665
                 </template>
681 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 668
                 <template slot-scope="scope">
684 669
                   <div class="del_table_btn">
685 670
                     <el-button
@@ -718,8 +703,8 @@
718 703
               </el-table-column>
719 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 708
                 <template slot-scope="scope">
724 709
                   <div class="del_table_btn">
725 710
                     <el-button
@@ -756,7 +741,7 @@
756 741
                   </div>
757 742
                 </template>
758 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 745
                 <template slot-scope="scope">
761 746
                   <div class="del_table_btn">
762 747
                     <el-button
@@ -793,7 +778,7 @@
793 778
                   </div>
794 779
                 </template>
795 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 782
                 <template slot-scope="scope">
798 783
                   <div class="del_table_btn">
799 784
                     <el-button
@@ -832,11 +817,11 @@
832 817
               </el-table-column>
833 818
             </el-table-column>
834 819
 
835
-            <el-table-column label="周日" min-width="335" align="center">
820
+            <el-table-column label="周日" align="center">
836 821
               <el-table-column
837 822
                 prop="7_1"
838 823
                 label="上"
839
-                min-width="110"
824
+                min-width="40"
840 825
                 align="center"
841 826
               >
842 827
                 <template slot-scope="scope">
@@ -878,7 +863,7 @@
878 863
               <el-table-column
879 864
                 prop="7_2"
880 865
                 label="下"
881
-                min-width="110"
866
+                min-width="40"
882 867
                 align="center"
883 868
               >
884 869
                 <template slot-scope="scope">
@@ -920,7 +905,7 @@
920 905
               <el-table-column
921 906
                 prop="7_3"
922 907
                 label="晚"
923
-                min-width="110"
908
+                min-width="40"
924 909
                 align="center"
925 910
               >
926 911
                 <template slot-scope="scope">
@@ -961,7 +946,7 @@
961 946
               </el-table-column>
962 947
             </el-table-column>
963 948
 
964
-            <el-table-column
949
+            <!-- <el-table-column
965 950
               prop="total"
966 951
               label="总数"
967 952
               width="60"
@@ -971,7 +956,7 @@
971 956
               <template slot-scope="scope">
972 957
                 {{ scope.row.total }}
973 958
               </template>
974
-            </el-table-column>
959
+            </el-table-column> -->
975 960
           </el-table>
976 961
         </div>
977 962
       </div>
@@ -1353,7 +1338,7 @@ export default {
1353 1338
 
1354 1339
       partition_id: 0,
1355 1340
       tableHeight: document.documentElement.clientHeight,
1356
-      template:null,
1341
+      template:0,
1357 1342
       all_template:[],
1358 1343
       active_name:"first",
1359 1344
     };
@@ -2097,9 +2082,11 @@ export default {
2097 2082
       console.log("saveData")
2098 2083
       console.log(tempData)
2099 2084
       this.$emit("saveData", tempData,delData);
2100
-    },changeJihao(){
2085
+    },
2086
+    changeJihao(){
2101 2087
       this.$forceUpdate()
2102
-    },changeSchMachine(row) {
2088
+    },
2089
+    changeSchMachine(row) {
2103 2090
       let params = {
2104 2091
         zone_id: row.zone_id,
2105 2092
         sch_type: row.time_type,
@@ -2368,7 +2355,8 @@ export default {
2368 2355
 
2369 2356
       }
2370 2357
 
2371
-    },    deepClone(source) {
2358
+    }, 
2359
+    deepClone(source) {
2372 2360
       if (!source && typeof source !== 'object') {
2373 2361
         throw new Error('error arguments', 'shallowClone')
2374 2362
       }
@@ -2580,7 +2568,8 @@ export default {
2580 2568
 
2581 2569
       }, 1000);
2582 2570
 
2583
-    },curInfoDragStart(){
2571
+    },
2572
+    curInfoDragStart(){
2584 2573
       this.cur_drag_obj = 1
2585 2574
       this.cur_drag_info.patient_id = this.cur_info.patient_id
2586 2575
       this.cur_drag_info.patient_name = this.cur_info.patient_name
@@ -2807,7 +2796,8 @@ export default {
2807 2796
       this.all_zones = this.unique_two(this.all_zones);
2808 2797
 
2809 2798
       return maked_device_numbers;
2810
-    },   coverSch(){
2799
+    },  
2800
+    coverSch(){
2811 2801
       let params={
2812 2802
         template_id:this.template.id,
2813 2803
         week_type_one:this.cur_drag_info.schedule_week,
@@ -2936,7 +2926,8 @@ export default {
2936 2926
           };
2937 2927
         }
2938 2928
       }
2939
-    }, search_two: function () {
2929
+    }, 
2930
+    search_two: function () {
2940 2931
       if (this.keywords.length == 0) {
2941 2932
         this.patients = this.all_patients;
2942 2933
       } else {
@@ -3002,6 +2993,21 @@ export default {
3002 2993
       // else {
3003 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 3012
     will_add_schedule_actionTwo: function (
3007 3013
       patient_id,
@@ -3364,7 +3370,8 @@ export default {
3364 3370
         this.data.push(obj);
3365 3371
         this.$refs.selector_dialog.hide();
3366 3372
       }
3367
-    },    saveActionFour: function () {
3373
+    }, 
3374
+    saveActionFour: function () {
3368 3375
       var add_items = [];
3369 3376
       var del_items = [];
3370 3377
       var change_items = [];
@@ -3769,32 +3776,50 @@ export default {
3769 3776
 </script>
3770 3777
 
3771 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 3779
 .table_contain {
3783 3780
   display: flex;
3784 3781
 
3785 3782
 .left_contain {
3786
-  width: 230px;
3783
+  width: 14%;
3787 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 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 3820
 .schedule-table-row {
3795 3821
   background: #fff !important;
3796 3822
 }
3797
-
3798 3823
 .schedule-table-row:hover {
3799 3824
   background: #fff !important;
3800 3825
 }
@@ -3809,7 +3834,7 @@ export default {
3809 3834
 }
3810 3835
 
3811 3836
 #table_data {
3812
-  /*min-height: calc(100vh - 350px);*/
3837
+  min-height: calc(100vh - 350px);
3813 3838
 }
3814 3839
 
3815 3840
 #table_data ::-webkit-scrollbar {
@@ -3836,27 +3861,27 @@ export default {
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 3868
 #table_data ::-webkit-scrollbar {
3844 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 3886
 #table_data {
3862 3887
   min-height: calc(100vh - 350px);
@@ -3911,7 +3936,7 @@ export default {
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 3942
 </style>

+ 2 - 2
src/xt_pages/workforce/printOne.vue Näytä tiedosto

@@ -60,7 +60,7 @@
60 60
                     <div style="min-height: 80px">
61 61
                       <div class="proj">
62 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 65
                           </p>
66 66
                         </div>
@@ -665,7 +665,7 @@ export default {
665 665
           if (this.hiddenFlag) {
666 666
             str += arr[i].name + '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp '
667 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 Näytä tiedosto

@@ -19,7 +19,51 @@
19 19
         <div class="print_main_content">
20 20
           <div class="table_panel">
21 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 67
                 <div>
24 68
                  <span v-if="printObj.zone == 1">分区/</span>
25 69
                  <span v-if="printObj.number == 1">床位号:</span>
@@ -31,9 +75,9 @@
31 75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
32 76
                 </div>
33 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 79
                   <span v-else >
36
-                   <span>{{getAnticoagulant(main_collection.dialysissolution.mode_id)}}</span>
80
+                   <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
37 81
                   </span>
38 82
                 </div>
39 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,7 +122,22 @@
78 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 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 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 141
               </div>
83 142
 
84 143
               <div class="signPrint" style="font-size:16px;" v-else>
@@ -285,12 +344,12 @@
285 344
        getScheduleList(params).then(response=>{
286 345
          if(response.data.state ==1){
287 346
            var list = response.data.data.list
288
-          
347
+           
289 348
            for(let i=0;i<list.length;i++){
290 349
               list[i].sort = list[i].number.sort
291 350
            }
292 351
            var arr = list.sort(this.compare('sort'))
293
-           
352
+           console.log("arr--------",arr)
294 353
            this.scheduleData = arr
295 354
 
296 355
              let a = response.data.data.day
@@ -323,7 +382,7 @@
323 382
                 days = '星期日';
324 383
                 break;
325 384
           }
326
-          var str = year + "年" + month + "月" + day + "日  " + days;
385
+          var str = year + "年" + month + "月" + day + "日  ";
327 386
           this.currentDate = str
328 387
           }
329 388
        })
@@ -593,6 +652,29 @@
593 652
         if(name == 7){
594 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 679
        return name
598 680
      },

+ 58 - 10
src/xt_pages/workforce/schedule_print.vue Näytä tiedosto

@@ -57,15 +57,20 @@
57 57
                 </td>
58 58
                 <td :width="td_4_width" valign="top">
59 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 61
                     <div class="proj_item" v-html="patient_other_names(main_collection.hdf)">
62 62
                     </div>
63 63
                   </div>
64 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 66
                     <div class="proj_item" v-html="patient_other_names(main_collection.hd_hp)">>
67 67
                     </div>
68 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 74
                 </td>
70 75
               </tr>
71 76
               </tbody>
@@ -110,7 +115,7 @@
110 115
             },
111 116
             hdf: [ /* schedule, ... */],
112 117
             hd_hp: [ /* schedule, ... */],
113
-
118
+            hfhd_hp:[],
114 119
             new_hdf:{
115 120
               am: { /* zone_name: [ schedule, ... ] */ },
116 121
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -120,7 +125,12 @@
120 125
               am: { /* zone_name: [ schedule, ... ] */ },
121 126
               pm: { /* zone_name: [ schedule, ... ] */ },
122 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,6 +143,7 @@
133 143
             },
134 144
             hdf: [ /* schedule, ... */],
135 145
             hd_hp: [ /* schedule, ... */],
146
+            hfhd_hp:[],
136 147
             new_hdf:{
137 148
               am: { /* zone_name: [ schedule, ... ] */ },
138 149
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -142,7 +153,12 @@
142 153
               am: { /* zone_name: [ schedule, ... ] */ },
143 154
               pm: { /* zone_name: [ schedule, ... ] */ },
144 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 164
             day: 3,
@@ -154,6 +170,7 @@
154 170
             },
155 171
             hdf: [ /* schedule, ... */],
156 172
             hd_hp: [ /* schedule, ... */],
173
+            hfhd_hp:[],
157 174
             new_hdf:{
158 175
               am: { /* zone_name: [ schedule, ... ] */ },
159 176
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -163,7 +180,12 @@
163 180
               am: { /* zone_name: [ schedule, ... ] */ },
164 181
               pm: { /* zone_name: [ schedule, ... ] */ },
165 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 191
             day: 4,
@@ -175,6 +197,7 @@
175 197
             },
176 198
             hdf: [ /* schedule, ... */],
177 199
             hd_hp: [ /* schedule, ... */],
200
+            hfhd_hp:[],
178 201
             new_hdf:{
179 202
               am: { /* zone_name: [ schedule, ... ] */ },
180 203
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -184,7 +207,12 @@
184 207
               am: { /* zone_name: [ schedule, ... ] */ },
185 208
               pm: { /* zone_name: [ schedule, ... ] */ },
186 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 218
             day: 5,
@@ -196,6 +224,7 @@
196 224
             },
197 225
             hdf: [ /* schedule, ... */],
198 226
             hd_hp: [ /* schedule, ... */],
227
+            hfhd_hp:[],
199 228
             new_hdf:{
200 229
               am: { /* zone_name: [ schedule, ... ] */ },
201 230
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -205,7 +234,12 @@
205 234
               am: { /* zone_name: [ schedule, ... ] */ },
206 235
               pm: { /* zone_name: [ schedule, ... ] */ },
207 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 245
             day: 6,
@@ -217,6 +251,7 @@
217 251
             },
218 252
             hdf: [ /* schedule, ... */],
219 253
             hd_hp: [ /* schedule, ... */],
254
+            hfhd_hp:[],
220 255
             new_hdf:{
221 256
               am: { /* zone_name: [ schedule, ... ] */ },
222 257
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -226,7 +261,12 @@
226 261
               am: { /* zone_name: [ schedule, ... ] */ },
227 262
               pm: { /* zone_name: [ schedule, ... ] */ },
228 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 272
             day: 7,
@@ -238,6 +278,7 @@
238 278
             },
239 279
             hdf: [ /* schedule, ... */],
240 280
             hd_hp: [ /* schedule, ... */],
281
+            hfhd_hp:[],
241 282
             new_hdf:{
242 283
               am: { /* zone_name: [ schedule, ... ] */ },
243 284
               pm: { /* zone_name: [ schedule, ... ] */ },
@@ -247,7 +288,12 @@
247 288
               am: { /* zone_name: [ schedule, ... ] */ },
248 289
               pm: { /* zone_name: [ schedule, ... ] */ },
249 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,6 +366,8 @@
320 366
             } else if (schedule.mode.id == 3) { // HD+HF
321 367
 
322 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 Näytä tiedosto

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 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 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))