Browse Source

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

XMLWAN 2 years ago
parent
commit
9d0bd36112
100 changed files with 20835 additions and 5699 deletions
  1. 2 2
      config/dev.env.js
  2. 2 2
      config/index.js
  3. 25 25
      package-lock.json
  4. 107 0
      src/api/batch/batch.js
  5. 2 2
      src/api/data.js
  6. 8 0
      src/api/dialysis_record.js
  7. 22 0
      src/api/his/his.js
  8. 9 0
      src/api/his/his_export.js
  9. 16 0
      src/api/pharmacy.js
  10. 0 3
      src/lang/zh.js
  11. 16 0
      src/router/modules/hisTool.js
  12. 2 2
      src/store/modules/globalConfig.js
  13. 9 7
      src/store/modules/xt_user.js
  14. 489 28
      src/xt_pages/Pharmacy/DrugDispensing.vue
  15. 161 16
      src/xt_pages/Pharmacy/PatientDispensing.vue
  16. 2 2
      src/xt_pages/data/components/dialysisAfter.vue
  17. 2 2
      src/xt_pages/data/components/dialysisBefore.vue
  18. 4 2
      src/xt_pages/data/components/dialysisComputer.vue
  19. 2 2
      src/xt_pages/data/components/dialysisMonitor.vue
  20. 145 6
      src/xt_pages/data/components/dialysisOff.vue
  21. 2 2
      src/xt_pages/data/components/dialysisPrescription.vue
  22. 2 2
      src/xt_pages/data/components/dialysisSummary.vue
  23. 2 2
      src/xt_pages/data/components/doubleCheck.vue
  24. 2 2
      src/xt_pages/data/components/receiveTreatmentAsses.vue
  25. 5 3
      src/xt_pages/data/druguse.vue
  26. 13 2
      src/xt_pages/data/druguseTemplate.vue
  27. 10 3
      src/xt_pages/data/showConfig.vue
  28. 13 13
      src/xt_pages/device/components/partition_dialog.vue
  29. 89 79
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  30. 1 1
      src/xt_pages/dialysis/components/dialysisParametersDialog.vue
  31. 4 0
      src/xt_pages/dialysis/details/assessmentAfter.vue
  32. 13 6
      src/xt_pages/dialysis/details/assessmentBefore.vue
  33. 10 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  34. 10 1
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  35. 18 9
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  36. 113 56
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  37. 22 29
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  38. 4 4
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  39. 4 1
      src/xt_pages/dialysis/details/index.vue
  40. 1 1
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  41. 1 1
      src/xt_pages/dialysis/dialysisDrugs_print.vue
  42. 62 10
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  43. 12 5
      src/xt_pages/dialysis/schedualPatient.vue
  44. 3707 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyEight.vue
  45. 33 20
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue
  46. 3677 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyNine.vue
  47. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  48. 1906 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftySeven.vue
  49. 88 42
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  50. 2167 2094
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyfive.vue
  51. 51 6
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  52. 8 6
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  53. 56 45
      src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue
  54. 1543 1588
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue
  55. 52 37
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  56. 87 65
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  57. 5 2
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  58. 1 0
      src/xt_pages/hospitalStation/chargeDetailManagement.vue
  59. 2 2
      src/xt_pages/hospitalStation/components/chargeDialog.vue
  60. 8 4
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  61. 4 4
      src/xt_pages/hospitalStation/components/prescriptionTable.vue
  62. 2 0
      src/xt_pages/hospitalStation/doctorDesk.vue
  63. 3 3
      src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue
  64. 19 14
      src/xt_pages/management/components/RepairForm.vue
  65. 2 1
      src/xt_pages/outpatientCharges/components/chargeDialog.vue
  66. 1 0
      src/xt_pages/outpatientCharges/components/registerDialog.vue
  67. 2 2
      src/xt_pages/outpatientCharges/components/registerDialog9504.vue
  68. 8 8
      src/xt_pages/outpatientCharges/listPrint.vue
  69. 169 108
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  70. 408 200
      src/xt_pages/outpatientCharges/statementPrint.vue
  71. 100 78
      src/xt_pages/outpatientCharges/statementTemplate/printFive.vue
  72. 36 35
      src/xt_pages/outpatientCharges/statementTemplate/printOne.vue
  73. 775 28
      src/xt_pages/outpatientCharges/summary.vue
  74. 828 0
      src/xt_pages/outpatientDoctorStation/batch_delete.vue
  75. 1240 260
      src/xt_pages/outpatientDoctorStation/batch_mode_template.vue
  76. 1337 0
      src/xt_pages/outpatientDoctorStation/batch_replacement.vue
  77. 4 2
      src/xt_pages/outpatientDoctorStation/checkPrint.vue
  78. 12 9
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  79. 3 1
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue
  80. 22 13
      src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue
  81. 242 7
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  82. 7 7
      src/xt_pages/outpatientDoctorStation/modeTemplate.vue
  83. 10 4
      src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue
  84. 579 493
      src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue
  85. 5 14
      src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue
  86. 3 2
      src/xt_pages/outpatientDoctorStation/print.vue
  87. 11 8
      src/xt_pages/outpatientDoctorStation/template/printThree.vue
  88. 12 11
      src/xt_pages/outpatientDoctorStation/treatPrint.vue
  89. 14 8
      src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue
  90. 15 20
      src/xt_pages/outpatientTool/components/detailStatistics.vue
  91. 17 24
      src/xt_pages/outpatientTool/detailPrint.vue
  92. 53 60
      src/xt_pages/outpatientTool/gatherPrint.vue
  93. 18 2
      src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue
  94. 5 0
      src/xt_pages/qcd/workAnalysis/nurse.vue
  95. 6 6
      src/xt_pages/sign/components/beforeDialysisCalling.vue
  96. 3 2
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  97. 4 0
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  98. 1 0
      src/xt_pages/stock/drugs/drugStockInOrderEdit.vue
  99. 25 19
      src/xt_pages/stock/drugs/query.vue
  100. 0 0
      src/xt_pages/stock/stockInOrderEdit.vue

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

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 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"',
11
-  // BASE_API: '"http://localhost:9531"',
10
+  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js View File

@@ -29,8 +29,8 @@ module.exports = {
29 29
 
30 30
     // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32
-   host: 'xt.test.sgjyun.com',
33
-   // host: 'localhost',
32
+   // host: 'xt.test.sgjyun.com',
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,
36 36
     errorOverlay: true,

+ 25 - 25
package-lock.json View File

@@ -621,7 +621,7 @@
621 621
     "assert-plus": {
622 622
       "version": "1.0.0",
623 623
       "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
624
-      "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
624
+      "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw=="
625 625
     },
626 626
     "assign-symbols": {
627 627
       "version": "1.0.0",
@@ -647,7 +647,7 @@
647 647
     "async-foreach": {
648 648
       "version": "0.1.3",
649 649
       "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz",
650
-      "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI="
650
+      "integrity": "sha512-VUeSMD8nEGBWaZK4lizI1sf3yEC7pnAQ/mrI7pC2fBz2s/tq5jWWEngTwaf0Gruu/OoXRGLGg1XFqpYBiGTYJA=="
651 651
     },
652 652
     "async-limiter": {
653 653
       "version": "1.0.0",
@@ -666,7 +666,7 @@
666 666
     "asynckit": {
667 667
       "version": "0.4.0",
668 668
       "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
669
-      "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
669
+      "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
670 670
     },
671 671
     "atob": {
672 672
       "version": "2.1.2",
@@ -691,7 +691,7 @@
691 691
     "aws-sign2": {
692 692
       "version": "0.7.0",
693 693
       "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
694
-      "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
694
+      "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA=="
695 695
     },
696 696
     "aws4": {
697 697
       "version": "1.11.0",
@@ -1677,7 +1677,7 @@
1677 1677
     "bcrypt-pbkdf": {
1678 1678
       "version": "1.0.2",
1679 1679
       "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
1680
-      "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
1680
+      "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==",
1681 1681
       "requires": {
1682 1682
         "tweetnacl": "^0.14.3"
1683 1683
       }
@@ -2100,7 +2100,7 @@
2100 2100
     "caseless": {
2101 2101
       "version": "0.12.0",
2102 2102
       "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
2103
-      "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
2103
+      "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw=="
2104 2104
     },
2105 2105
     "center-align": {
2106 2106
       "version": "0.1.3",
@@ -2699,7 +2699,7 @@
2699 2699
     "console-control-strings": {
2700 2700
       "version": "1.1.0",
2701 2701
       "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
2702
-      "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
2702
+      "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
2703 2703
     },
2704 2704
     "consolidate": {
2705 2705
       "version": "0.14.5",
@@ -3333,7 +3333,7 @@
3333 3333
     "dashdash": {
3334 3334
       "version": "1.14.1",
3335 3335
       "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
3336
-      "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
3336
+      "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==",
3337 3337
       "requires": {
3338 3338
         "assert-plus": "^1.0.0"
3339 3339
       }
@@ -3508,7 +3508,7 @@
3508 3508
     "delayed-stream": {
3509 3509
       "version": "1.0.0",
3510 3510
       "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
3511
-      "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
3511
+      "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
3512 3512
     },
3513 3513
     "delegate": {
3514 3514
       "version": "3.2.0",
@@ -3518,7 +3518,7 @@
3518 3518
     "delegates": {
3519 3519
       "version": "1.0.0",
3520 3520
       "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
3521
-      "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
3521
+      "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
3522 3522
     },
3523 3523
     "depd": {
3524 3524
       "version": "1.1.2",
@@ -3696,7 +3696,7 @@
3696 3696
     "ecc-jsbn": {
3697 3697
       "version": "0.1.2",
3698 3698
       "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
3699
-      "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
3699
+      "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==",
3700 3700
       "requires": {
3701 3701
         "jsbn": "~0.1.0",
3702 3702
         "safer-buffer": "^2.1.0"
@@ -4588,7 +4588,7 @@
4588 4588
     "extsprintf": {
4589 4589
       "version": "1.3.0",
4590 4590
       "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
4591
-      "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
4591
+      "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g=="
4592 4592
     },
4593 4593
     "fast-deep-equal": {
4594 4594
       "version": "2.0.1",
@@ -4835,7 +4835,7 @@
4835 4835
     "forever-agent": {
4836 4836
       "version": "0.6.1",
4837 4837
       "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
4838
-      "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
4838
+      "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw=="
4839 4839
     },
4840 4840
     "form-data": {
4841 4841
       "version": "2.3.3",
@@ -5684,7 +5684,7 @@
5684 5684
     "getpass": {
5685 5685
       "version": "0.1.7",
5686 5686
       "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
5687
-      "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
5687
+      "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==",
5688 5688
       "requires": {
5689 5689
         "assert-plus": "^1.0.0"
5690 5690
       }
@@ -5834,7 +5834,7 @@
5834 5834
     "har-schema": {
5835 5835
       "version": "2.0.0",
5836 5836
       "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
5837
-      "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
5837
+      "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q=="
5838 5838
     },
5839 5839
     "har-validator": {
5840 5840
       "version": "5.1.5",
@@ -5913,7 +5913,7 @@
5913 5913
     "has-unicode": {
5914 5914
       "version": "2.0.1",
5915 5915
       "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
5916
-      "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
5916
+      "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
5917 5917
     },
5918 5918
     "has-value": {
5919 5919
       "version": "1.0.0",
@@ -6358,7 +6358,7 @@
6358 6358
     "http-signature": {
6359 6359
       "version": "1.2.0",
6360 6360
       "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
6361
-      "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
6361
+      "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==",
6362 6362
       "requires": {
6363 6363
         "assert-plus": "^1.0.0",
6364 6364
         "jsprim": "^1.2.2",
@@ -6911,7 +6911,7 @@
6911 6911
     "is-typedarray": {
6912 6912
       "version": "1.0.0",
6913 6913
       "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
6914
-      "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
6914
+      "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA=="
6915 6915
     },
6916 6916
     "is-utf8": {
6917 6917
       "version": "0.2.1",
@@ -6950,7 +6950,7 @@
6950 6950
     "isstream": {
6951 6951
       "version": "0.1.2",
6952 6952
       "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
6953
-      "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
6953
+      "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g=="
6954 6954
     },
6955 6955
     "jest-get-type": {
6956 6956
       "version": "22.4.3",
@@ -7004,7 +7004,7 @@
7004 7004
     "jsbn": {
7005 7005
       "version": "0.1.1",
7006 7006
       "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
7007
-      "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
7007
+      "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg=="
7008 7008
     },
7009 7009
     "jsesc": {
7010 7010
       "version": "1.3.0",
@@ -7048,7 +7048,7 @@
7048 7048
     "json-stringify-safe": {
7049 7049
       "version": "5.0.1",
7050 7050
       "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
7051
-      "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
7051
+      "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="
7052 7052
     },
7053 7053
     "json3": {
7054 7054
       "version": "3.3.2",
@@ -9456,7 +9456,7 @@
9456 9456
     "performance-now": {
9457 9457
       "version": "2.1.0",
9458 9458
       "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
9459
-      "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
9459
+      "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow=="
9460 9460
     },
9461 9461
     "pify": {
9462 9462
       "version": "3.0.0",
@@ -14744,7 +14744,7 @@
14744 14744
     "tunnel-agent": {
14745 14745
       "version": "0.6.0",
14746 14746
       "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
14747
-      "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
14747
+      "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
14748 14748
       "requires": {
14749 14749
         "safe-buffer": "^5.0.1"
14750 14750
       }
@@ -14752,7 +14752,7 @@
14752 14752
     "tweetnacl": {
14753 14753
       "version": "0.14.5",
14754 14754
       "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
14755
-      "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
14755
+      "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA=="
14756 14756
     },
14757 14757
     "type-check": {
14758 14758
       "version": "0.3.2",
@@ -15125,7 +15125,7 @@
15125 15125
     "verror": {
15126 15126
       "version": "1.10.0",
15127 15127
       "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
15128
-      "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
15128
+      "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==",
15129 15129
       "requires": {
15130 15130
         "assert-plus": "^1.0.0",
15131 15131
         "core-util-is": "1.0.2",

+ 107 - 0
src/api/batch/batch.js View File

@@ -0,0 +1,107 @@
1
+import request from '@/utils/request'
2
+
3
+export function prescriptiontemplate(params,data) {
4
+  return request({
5
+    url: '/api/his/addstemplate',
6
+    method: 'post',
7
+    data:data,
8
+    params:params,
9
+  })
10
+}
11
+export function replacesavedrug(params,data) {
12
+  return request({
13
+    url: '/api/his/replacesavedrug',
14
+    method: 'post',
15
+    data:data,
16
+    params:params,
17
+  })
18
+}
19
+export function replacesaveproject(params,data) {
20
+  return request({
21
+    url: '/api/his/replacesaveproject',
22
+    method: 'post',
23
+    data:data,
24
+    params:params,
25
+  })
26
+}
27
+
28
+export function getdialysismodename(query) {
29
+  return request({
30
+    url: '/api/his/getdialysismodename',
31
+    method: 'get',
32
+    params: query
33
+  })
34
+}
35
+
36
+export function getdrugsname(query) {
37
+  return request({
38
+    url: '/api/his/getdrugsname',
39
+    method: 'get',
40
+    params: query
41
+  })
42
+}
43
+
44
+export function getmodeconfigs(query) {
45
+  return request({
46
+    url: '/api/his/getmodeconfigs',
47
+    method: 'get',
48
+    params: query
49
+  })
50
+}
51
+
52
+//根据id获取药品耗材项目基本信息
53
+export function getdrugsinformation(query) {
54
+  return request({
55
+    url: '/api/his/getdrugsinformation',
56
+    method: 'get',
57
+    params: query
58
+  })
59
+}
60
+//替换——获取患者名字
61
+export function replacepeoplename(query) {
62
+  return request({
63
+    url: '/api/his/replacepeoplename',
64
+    method: 'get',
65
+    params: query
66
+  })
67
+}
68
+//替换——配置
69
+export function replaceconfig(query) {
70
+  return request({
71
+    url: '/api/his/replaceconfig',
72
+    method: 'get',
73
+    params: query
74
+  })
75
+}
76
+//批量删除——药品
77
+export function deletedrugsbatch(query) {
78
+  return request({
79
+    url: '/api/his/deletedrugsbatch',
80
+    method: 'get',
81
+    params: query
82
+  })
83
+}
84
+//批量删除——项目
85
+export function batchdeleteitems(query) {
86
+  return request({
87
+    url: '/api/his/batchdeleteitems',
88
+    method: 'get',
89
+    params: query
90
+  })
91
+}
92
+//根据患者id、透析模式获取处方模板信息
93
+export function ptemplateinformation(query) {
94
+  return request({
95
+    url: '/api/his/ptemplateinformation',
96
+    method: 'get',
97
+    params: query
98
+  })
99
+}
100
+//删除一条记录
101
+export function deleteone(query) {
102
+  return request({
103
+    url: '/api/his/deleteone',
104
+    method: 'get',
105
+    params: query
106
+  })
107
+}

+ 2 - 2
src/api/data.js View File

@@ -43,9 +43,9 @@ export function updateTemplate(params) {
43 43
   })
44 44
 }
45 45
 
46
-export function updateFieldIsShow(id, is_show) {
46
+export function updateFieldIsShow(id, is_show, is_write) {
47 47
   return request({
48
-    url: '/api/filed/show?id=' + id + '&is_show=' + is_show,
48
+    url: '/api/filed/show?id=' + id + '&is_show=' + is_show + '&is_write=' + is_write,
49 49
     method: 'post'
50 50
   })
51 51
 }

+ 8 - 0
src/api/dialysis_record.js View File

@@ -172,3 +172,11 @@ export function getInitPrintData(params) {
172 172
     params: params
173 173
   })
174 174
 }
175
+
176
+export function getInitPrintDataOne(params) {
177
+  return request({
178
+    url: '/api/getinitprintdateone',
179
+    method: 'get',
180
+    params: params
181
+  })
182
+}

+ 22 - 0
src/api/his/his.js View File

@@ -697,4 +697,26 @@ export function getExportChargeData(params) {
697 697
   })
698 698
 }
699 699
 
700
+export function getHisDataFive(params) {
701
+  return request({
702
+    url: '/handleExportData',
703
+    method: 'get',
704
+    params: params
705
+  })
706
+}
707
+
708
+
709
+
710
+
711
+export function getHisDataSix(params) {
712
+  return request({
713
+    url: '/handleExportData10138',
714
+    method: 'get',
715
+    params: params
716
+  })
717
+}
718
+
719
+
720
+
721
+
700 722
 

+ 9 - 0
src/api/his/his_export.js View File

@@ -0,0 +1,9 @@
1
+import request from '@/utils/request'
2
+
3
+export function handleData10106(params) {
4
+  return request({
5
+    url: '/handleData10106',
6
+    method: 'get',
7
+    params: params
8
+  })
9
+}

+ 16 - 0
src/api/pharmacy.js View File

@@ -104,3 +104,19 @@ export function getcurrentname(params) {
104 104
     params: params
105 105
   })
106 106
 }
107
+//获取分区列表
108
+export function getpartitionlist(params) {
109
+  return request({
110
+    url: '/api/pharmacy/getpartitionlist',
111
+    method: 'get',
112
+    params: params
113
+  })
114
+}
115
+//获取给药途径
116
+export function routeofadministration(params) {
117
+  return request({
118
+    url: '/api/pharmacy/routeofadministration',
119
+    method: 'get',
120
+    params: params
121
+  })
122
+}

+ 0 - 3
src/lang/zh.js View File

@@ -184,9 +184,6 @@ export default {
184 184
     selfPreparedMedicineIndex: '自备药管理',
185 185
     selfPreparedMedicine: '自备药管理',
186 186
     wareHouseManage: '仓库管理',
187
-    inventoryTransfer: '库存调拨',
188
-    wareHouseManage: '仓库管理',
189
-
190 187
     inventoryTransfer: '库存调拨',
191 188
 
192 189
     // consumablesManagement: '耗材管理',

+ 16 - 0
src/router/modules/hisTool.js View File

@@ -26,6 +26,22 @@ export default {
26 26
       hidden: true,
27 27
       is_menu: false
28 28
     },
29
+    {
30
+      path: '/hisTool/batchDelete',
31
+      component: () => import('@/xt_pages/outpatientDoctorStation/batch_delete'),
32
+      name: 'batchDelete',
33
+      meta: { title: 'batchDelete', noCache: true },
34
+      hidden: true,
35
+      is_menu: false
36
+    },
37
+    {
38
+      path: '/hisTool/batchReplacement',
39
+      component: () => import('@/xt_pages/outpatientDoctorStation/batch_replacement'),
40
+      name: 'batchReplacement',
41
+      meta: { title: 'batchReplacement', noCache: true },
42
+      hidden: true,
43
+      is_menu: false
44
+    },
29 45
     {
30 46
       path: '/hisTool/modeTemplateDetail',
31 47
       component: () => import('@/xt_pages/outpatientDoctorStation/modeTemplateDetail'),

+ 2 - 2
src/store/modules/globalConfig.js View File

@@ -844,7 +844,7 @@ const global_config = {
844 844
       },
845 845
       11: {
846 846
         id: 11,
847
-        name: '那肝素',
847
+        name: '那肝素',
848 848
         type: 1,
849 849
         shouji: 1,
850 850
         weichi: 1,
@@ -874,7 +874,7 @@ const global_config = {
874 874
       },
875 875
       13: {
876 876
         id: 13,
877
-        name: '那肝素钙',
877
+        name: '那肝素钙',
878 878
         type: 1,
879 879
         shouji: 2,
880 880
         weichi: 2,

+ 9 - 7
src/store/modules/xt_user.js View File

@@ -11,7 +11,7 @@ const xt_user = {
11 11
     zone_selected: 0,
12 12
     patient_state_selected: 0,
13 13
     treat_state_selected: 0,
14
-    selected_date:new Date(),
14
+    selected_date: new Date(),
15 15
     app_id: 0,
16 16
     user: {
17 17
       id: 0,
@@ -55,17 +55,17 @@ const xt_user = {
55 55
     urlfors: [],
56 56
     fileds: [],
57 57
 
58
-    //监测的搜索状态
58
+    // 监测的搜索状态
59 59
     search_mode: 1,
60
-    //监测的搜索值
61
-    search_value:''
60
+    // 监测的搜索值
61
+    search_value: ''
62 62
   },
63 63
 
64 64
   mutations: {
65
-    SET_SEARCH_VALUE:(state, search_value) => {
65
+    SET_SEARCH_VALUE: (state, search_value) => {
66 66
       state.search_value = search_value
67 67
     },
68
-    SET_SEARCH_MODE:(state, search_mode) => {
68
+    SET_SEARCH_MODE: (state, search_mode) => {
69 69
       state.search_mode = search_mode
70 70
     },
71 71
     SET_SCHEDULE_TYPE_SELECTED: (state, schedule_type_selected) => {
@@ -380,7 +380,8 @@ const xt_user = {
380 380
     }) {
381 381
       commit('CLEAR_USER_INFO')
382 382
       removeAdminUserInfoCache()
383
-    }, updateFiledConfigList({ commit }, object) {
383
+    },
384
+    updateFiledConfigList({ commit }, object) {
384 385
       var oldFiledList = getFiledConfigList()
385 386
       console.log('oldFiledList', oldFiledList)
386 387
       var infoJSON = JSON.parse(oldFiledList)
@@ -389,6 +390,7 @@ const xt_user = {
389 390
         for (let i = 0; i < infoJSON.length; i++) {
390 391
           if (infoJSON[i].id == object.id) {
391 392
             infoJSON[i].is_show = object.is_show
393
+            infoJSON[i].is_write = object.is_write
392 394
           }
393 395
         }
394 396
 

+ 489 - 28
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -49,7 +49,7 @@
49 49
 
50 50
           <el-table
51 51
             v-if="state == 1"
52
-            :height="tableHeight"
52
+            height="60vh"
53 53
             :data="waiting_drug"
54 54
             border
55 55
             style="width: 100%"
@@ -114,22 +114,74 @@
114 114
       </div>
115 115
       <div class="mainRight">
116 116
         <div class="titlelist">
117
-          <!--          <el-button type="primary" @click="tt">调试</el-button>-->
118
-          <el-button type="primary" @click="dispense" v-if="state == 1"
119
-            >发药</el-button
120
-          >
121
-          <el-button type="primary" @click="toPrint">打印</el-button>
122
-          <!--          <el-button @click="tt">调试</el-button>-->
123
-          <!--          <el-button type="primary" @click="toSetting">设置</el-button>-->
117
+          <div>
118
+            班次:
119
+            <el-select
120
+              v-model="shift"
121
+              placeholder="请选择"
122
+              @change="getdrugsdetails"
123
+            >
124
+              <el-option
125
+                v-for="item in banshift"
126
+                :key="item.value"
127
+                :label="item.text"
128
+                :value="item.value"
129
+              >
130
+              </el-option>
131
+            </el-select>
132
+            分区:
133
+            <el-select
134
+              v-model="partition"
135
+              placeholder="请选择"
136
+              @change="getdrugsdetails"
137
+            >
138
+              <el-option
139
+                v-for="item in fen"
140
+                :key="item.id"
141
+                :label="item.name"
142
+                :value="item.id"
143
+              >
144
+              </el-option>
145
+            </el-select>
146
+            给药途径:
147
+            <el-select
148
+              v-model="deliveryway"
149
+              placeholder="请选择"
150
+              @change="getdruglist02"
151
+            >
152
+              <el-option
153
+                v-for="item in routeofadministration"
154
+                :key="item.name"
155
+                :label="item.name"
156
+                :value="item.name"
157
+              >
158
+              </el-option>
159
+            </el-select>
160
+          </div>
161
+          <div>
162
+            <el-button type="primary" @click="toExport" v-if="state == 2"
163
+              >导出</el-button
164
+            >
165
+            <!-- <el-button type="primary" @click="tt">调试</el-button>-->
166
+            <el-button type="primary" @click="dispense" v-if="state == 1"
167
+              >发药</el-button
168
+            >
169
+            <el-button type="primary" @click="toPrint">打印</el-button>
170
+            <!--                    <el-button @click="tt">调试</el-button>-->
171
+          </div>
124 172
         </div>
173
+
125 174
         <el-divider></el-divider>
126
-        <div>
175
+        <div class="right_table">
127 176
           <el-table
177
+            ref="table_01"
128 178
             :height="tableHeight"
129 179
             :data="tableData"
180
+            :summary-method="getSummaries_t1"
181
+            show-summary
130 182
             border
131 183
             highlight-current-row
132
-            style="width: 1328px"
184
+            style="width: 100%"
133 185
             :row-style="{ color: '#303133' }"
134 186
             :header-cell-style="{
135 187
               backgroundColor: 'rgb(245, 247, 250)',
@@ -219,15 +271,25 @@
219 271
             </el-table-column>
220 272
           </el-table>
221 273
         </div>
222
-        <div>
274
+        <div class="right_table">
223 275
           <el-table
276
+            ref="table_01"
224 277
             :height="tableHeight"
225 278
             :data="tableData"
279
+            :summary-method="getSummaries_t2"
280
+            show-summary
226 281
             border
227
-            style="width: 1328px"
282
+            highlight-current-row
283
+            style="width: 100%"
284
+            :row-style="{ color: '#303133' }"
285
+            :header-cell-style="{
286
+              backgroundColor: 'rgb(245, 247, 250)',
287
+              color: '#606266',
288
+            }"
289
+            @selection-change="handleSelectionChange"
228 290
             v-if="state == 2"
229 291
           >
230
-            <!--            <el-table-column type="selection" width="55"> </el-table-column>-->
292
+            <!-- <el-table-column type="selection" width="55"> </el-table-column>-->
231 293
             <el-table-column
232 294
               type="index"
233 295
               label="序号"
@@ -317,8 +379,11 @@
317 379
             </el-table-column>
318 380
           </el-table>
319 381
         </div>
320
-        <div style="margin-top: 25px" v-if="state == 1">
321
-          领药人:
382
+
383
+        <!-- <div style="background-color: #f5f7fa;display:flex;padding: 10px;justify-content:space-around;position:absolute;width:75.6%;margin-top: 27.5%;
384
+"><div style="width: 40%;padding-left:3%">合计 </div> <div style="width: 40%;display: flex;justify-content:center;padding-left: 37%">{{total}}</div></div> -->
385
+        <div style="margin-top: 25px; display: flex" v-if="state == 1">
386
+          <span style="line-height: 36px;">领药人:</span> 
322 387
           <el-select v-model="admin_user_id" placeholder="请选择">
323 388
             <el-option
324 389
               v-for="item in doctorList"
@@ -328,6 +393,11 @@
328 393
             >
329 394
             </el-option>
330 395
           </el-select>
396
+
397
+          <span
398
+            style="display: inline-block;padding-left: 30px;line-height: 36px;}"
399
+            >选中: {{ select_total }}</span
400
+          >
331 401
         </div>
332 402
       </div>
333 403
 
@@ -382,6 +452,8 @@ import {
382 452
   getpatientswithdrugs,
383 453
   medicinedeparture,
384 454
   getcurrentname,
455
+  getpartitionlist,
456
+  routeofadministration,
385 457
 } from "@/api/pharmacy";
386 458
 const moment = require("moment");
387 459
 export default {
@@ -395,7 +467,7 @@ export default {
395 467
         { path: false, name: "药房管理" },
396 468
         { path: "/Pharmacy/DrugDispensing", name: "药品发药" },
397 469
       ],
398
-      tableHeight: 400,
470
+      tableHeight: 490,
399 471
       datepick: "",
400 472
       state: 1,
401 473
       waitmount: 0,
@@ -417,24 +489,31 @@ export default {
417 489
       issued_drug: [], //已发药列表
418 490
       currentRow: null,
419 491
       tmp: 0,
492
+      banshift: [
493
+        { value: 0, text: "全部班" },
494
+        { value: 1, text: "上午" },
495
+        { value: 2, text: "下午" },
496
+        { value: 3, text: "晚上" },
497
+      ],
498
+      shift: 0, //班次
499
+      fen: [],
500
+      partition: 0, //分区
501
+      routeofadministration: [],
502
+      deliveryway: "全部", //给药途径
503
+      total: "", //合计
504
+      select_total: "",
420 505
     };
421 506
   },
422 507
 
423 508
   methods: {
424
-    tt() {
425
-      console.log("this.currentRow", this.currentRow);
426
-      this.$router.go(0);
427
-    },
509
+    tt() {},
428 510
     async fun3() {
429
-      console.log("fun3");
430 511
       this.fun1().then((val) => {
431 512
         this.fun2();
432 513
       });
433 514
     },
434 515
     async fun4(tps) {
435
-      console.log("fun3", tps);
436 516
       this.fun1().then((val) => {
437
-        console.log("this.issued_drug", this.issued_drug);
438 517
         for (let i = 0; i < this.issued_drug.length; i++) {
439 518
           if (tps == this.issued_drug[i].id) {
440 519
             this.$refs.table02.setCurrentRow(this.issued_drug[i]);
@@ -446,7 +525,6 @@ export default {
446 525
     async fun5(tps) {
447 526
       console.log("fun3", tps);
448 527
       this.fun1().then((val) => {
449
-        console.log("this.issued_drug", this.waiting_drug);
450 528
         for (let i = 0; i < this.waiting_drug.length; i++) {
451 529
           if (tps == this.waiting_drug[i].id) {
452 530
             this.$refs.table01.setCurrentRow(this.waiting_drug[i]);
@@ -455,6 +533,101 @@ export default {
455 533
         }
456 534
       });
457 535
     },
536
+
537
+    // 单位去重
538
+    unique_unit(arr) {
539
+      return arr.filter(function (item, index, arr) {
540
+        //当前元素,在原始数组中的第一个索引==当前索引值,否则返回当前元素
541
+        return arr.indexOf(item, 0) === index;
542
+      });
543
+    },
544
+
545
+    getSummaries_t1(param) {
546
+      const { columns, data } = param;
547
+      const sums = [];
548
+      let dose_unit = [];
549
+      let unit_1 = [];
550
+      let unit_2 = [];
551
+      columns.forEach((column, index) => {
552
+        if (index === 0) {
553
+          sums[index] = "合计";
554
+          return;
555
+        }
556
+        if (index === 7) {
557
+          // 单位裁切
558
+          data.forEach((el, index) => {
559
+            dose_unit.push(el.total.substr(el.total.length - 1, 1));
560
+          });
561
+          dose_unit = this.unique_unit(dose_unit);
562
+          // 数据合计
563
+          data.forEach((el, index) => {
564
+            if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
565
+              unit_1.push(el.total.substr(0, el.total.length - 1));
566
+            }
567
+            if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
568
+              unit_2.push(el.total.substr(0, el.total.length - 1));
569
+            }
570
+          });
571
+          unit_1 = eval(unit_1.join("+"));
572
+          unit_2 = eval(unit_2.join("+"));
573
+
574
+          if (dose_unit[0] == undefined) {
575
+            sums[index] = "";
576
+          } else if (dose_unit[1] == undefined || unit_2 == undefined) {
577
+            sums[index] = `${unit_1}${dose_unit[0]}`;
578
+          } else {
579
+            sums[index] = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
580
+          }
581
+          return;
582
+        }
583
+      });
584
+
585
+      return sums;
586
+    },
587
+
588
+    getSummaries_t2(param) {
589
+      const { columns, data } = param;
590
+      const sums = [];
591
+      let dose_unit = [];
592
+      let unit_1 = [];
593
+      let unit_2 = [];
594
+      columns.forEach((column, index) => {
595
+        if (index === 0) {
596
+          sums[index] = "合计";
597
+          return;
598
+        }
599
+        if (index === 6) {
600
+          // 单位裁切
601
+          data.forEach((el, index) => {
602
+            dose_unit.push(el.total.substr(el.total.length - 1, 1));
603
+          });
604
+          dose_unit = this.unique_unit(dose_unit);
605
+          // 数据合计
606
+          data.forEach((el, index) => {
607
+            if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
608
+              unit_1.push(el.total.substr(0, el.total.length - 1));
609
+            }
610
+            if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
611
+              unit_2.push(el.total.substr(0, el.total.length - 1));
612
+            }
613
+          });
614
+          unit_1 = eval(unit_1.join("+"));
615
+          unit_2 = eval(unit_2.join("+"));
616
+
617
+          // sums[index] = unit_1+dose_unit[0]+ "+" +unit_2+dose_unit[1];
618
+          if (dose_unit[0] == undefined) {
619
+            sums[index] = "";
620
+          } else if (dose_unit[1] == undefined || unit_2 == undefined) {
621
+            sums[index] = `${unit_1}${dose_unit[0]}`;
622
+          } else {
623
+            sums[index] = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
624
+          }
625
+          return;
626
+        }
627
+      });
628
+      return sums;
629
+    },
630
+
458 631
     changeTimes() {
459 632
       // alert("aa")
460 633
       // this.getdruglist();
@@ -495,9 +668,215 @@ export default {
495 668
         this.start_time
496 669
       );
497 670
     },
498
-    //列表选择
671
+    toExport() {
672
+      if (this.state == 1 && this.multipleSelection.length == 0) {
673
+        this.$message.error("未选择任何数据");
674
+        return;
675
+      }
676
+      if (this.state == 2 && this.tableData == null) {
677
+        this.$message.error("未选择任何数据");
678
+        return;
679
+      }
680
+      // for (let i = 0; i < this.tableData.length; i++) {
681
+      //   this.tableData[i].index = i + 1;
682
+      //   this.tableData[i].name = this.tableData[i].dose + this.tableData[i].dose_unit + "*" + this.tableData[i].min_number + this.tableData[i].min_unit +
683
+      //     "/" +
684
+      //     this.tableData[i].max_unit;
685
+      //
686
+      //   this.tableData[i].total_price = (
687
+      //     this.tableData[i].warehousing_count * this.exportList[i].price
688
+      //   ).toFixed(2);
689
+      //   for (let j = 0; j < this.manufacturerList.length; j++) {
690
+      //     if (this.exportList[i].manufacturer == this.manufacturerList[j].id) {
691
+      //       this.exportList[i].manufacturer =
692
+      //         this.manufacturerList[j].manufacturer_name;
693
+      //     }
694
+      //     if (this.exportList[i].manufacturer == 0) {
695
+      //       this.exportList[i].manufacturer = "";
696
+      //     }
697
+      //   }
698
+      //
699
+      //   for (let z = 0; z < this.dealerList.length; z++) {
700
+      //     if (this.exportList[i].dealer == this.dealerList[z].id) {
701
+      //       this.exportList[i].dealer = this.dealerList[z].dealer_name;
702
+      //     }
703
+      //     if (this.exportList[i].dealer == 0) {
704
+      //       this.exportList[i].dealer = "";
705
+      //     }
706
+      //   }
707
+      // }
708
+
709
+      if (this.state == 1) {
710
+        import("@/vendor/Export2Excel").then((excel) => {
711
+          for (let i = 0; i < this.multipleSelection.length; i++) {
712
+            this.multipleSelection[i].index = i + 1;
713
+            this.multipleSelection[i].time = this.start_time;
714
+            this.multipleSelection[i].yname = this.currentRow.name;
715
+          }
716
+
717
+          const tHeader = [
718
+            "序号",
719
+            "时间",
720
+            "患者名称",
721
+            "药品名称",
722
+            "单次用量",
723
+            "用法",
724
+            "频率",
725
+            "天数",
726
+            "总量",
727
+            "数据来源",
728
+          ];
729
+          const filterVal = [
730
+            "index",
731
+            "time",
732
+            "name",
733
+            "yname",
734
+            "single_dosage",
735
+            "usage",
736
+            "frequency",
737
+            "days",
738
+            "total",
739
+            "data_sources",
740
+          ];
741
+
742
+          const data = this.formatJson(filterVal, this.multipleSelection);
743
+          excel.export_json_to_excel({
744
+            header: tHeader,
745
+            data,
746
+            filename: "发药单详情",
747
+          });
748
+          this.downloadLoading = false;
749
+        });
750
+      } else if (this.state == 2) {
751
+        import("@/vendor/Export2Excel").then((excel) => {
752
+          for (let i = 0; i < this.tableData.length; i++) {
753
+            this.tableData[i].index = i + 1;
754
+            this.tableData[i].time = this.start_time;
755
+            this.tableData[i].yname = this.currentRow.name;
756
+          }
757
+
758
+          const tHeader = [
759
+            "序号",
760
+            "日期",
761
+            "患者名称",
762
+            "药品名称",
763
+            "单次用量",
764
+            "用法",
765
+            "频率",
766
+            "天数",
767
+            "总量",
768
+            "数据来源",
769
+            "领药人",
770
+          ];
771
+          const filterVal = [
772
+            "index",
773
+            "time",
774
+            "name",
775
+            "yname",
776
+            "single_dosage",
777
+            "usage",
778
+            "frequency",
779
+            "days",
780
+            "total",
781
+            "data_sources",
782
+            "people",
783
+          ];
784
+
785
+          const data = this.formatJson(filterVal, this.tableData);
786
+          excel.export_json_to_excel({
787
+            header: tHeader,
788
+            data,
789
+            filename: "发药单详情",
790
+          });
791
+          this.downloadLoading = false;
792
+        });
793
+      } else {
794
+        this.$message.error("药品状态异常");
795
+        return;
796
+      }
797
+      // import("@/vendor/Export2Excel").then((excel) => {
798
+      //   // for (let i = 0; i < this.tableData.length; i++) {
799
+      //   //   for (let j = 0; j < this.drugTypeList.length; j++) {
800
+      //   //     if (this.exportList[i].drug_type == this.drugTypeList[j].id) {
801
+      //   //       this.exportList[i].drug_type = this.drugTypeList[j].name;
802
+      //   //     }
803
+      //   //   }
804
+      //   // }
805
+      //
806
+      //   const tHeader = [
807
+      //     "序号",
808
+      //     "患者名称",
809
+      //     "单次用量",
810
+      //     "用法",
811
+      //     "频率",
812
+      //     "天数",
813
+      //     "总量",
814
+      //     "数据来源",
815
+      //   ];
816
+      //   const filterVal = [
817
+      //     "index",
818
+      //     "drug_name",
819
+      //     "drug_type",
820
+      //     "unit",
821
+      //     "batch_number",
822
+      //     "warehousing_count",
823
+      //     "price",
824
+      //     "total_price",
825
+      //   ];
826
+      //
827
+      //   const data = this.tableData;
828
+      //   excel.export_json_to_excel({
829
+      //     header: tHeader,
830
+      //     data,
831
+      //     filename: "药品入库单详情",
832
+      //   });
833
+      //   this.downloadLoading = false;
834
+      // });
835
+    },
836
+    formatJson(filterVal, jsonData) {
837
+      return jsonData.map((v) => filterVal.map((j) => v[j]));
838
+    },
839
+    //列表选择与合计
499 840
     handleSelectionChange(val) {
500 841
       this.multipleSelection = val;
842
+
843
+      let coculate = val;
844
+      let sums = "";
845
+      let dose_unit = [];
846
+      let unit_1 = [];
847
+      let unit_2 = [];
848
+
849
+      coculate.forEach((el, index) => {
850
+        dose_unit.push(el.total.substr(el.total.length - 1, 1));
851
+      });
852
+      dose_unit = this.unique_unit(dose_unit);
853
+
854
+      // 数据合计
855
+      coculate.forEach((el, index) => {
856
+        if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
857
+          unit_1.push(el.total.substr(0, el.total.length - 1));
858
+        }
859
+      });
860
+
861
+      coculate.forEach((el, index) => {
862
+        if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
863
+          console.log(el, "oooel");
864
+          unit_2.push(el.total.substr(0, el.total.length - 1));
865
+        }
866
+      });
867
+
868
+      unit_1 = eval(unit_1.join("+"));
869
+      unit_2 = eval(unit_2.join("+"));
870
+
871
+      if (dose_unit[0] == undefined) {
872
+        sums = "";
873
+      } else if (dose_unit[1] == undefined) {
874
+        sums = `${unit_1}${dose_unit[0]}`;
875
+      } else {
876
+        sums = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
877
+      }
878
+      // sums = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
879
+      this.select_total = sums;
501 880
     },
502 881
     //默认选中
503 882
     selectedbydefault() {
@@ -564,10 +943,38 @@ export default {
564 943
       });
565 944
     },
566 945
     //获取药品列表
946
+    getdruglist02() {
947
+      // var tps = this.currentRow.id;
948
+      this.tableData = [];
949
+      var params = {
950
+        keyword: this.keywords,
951
+        time: this.start_time,
952
+        deliveryway: this.deliveryway,
953
+      };
954
+      waitingmedicine(params).then((res) => {
955
+        if (res.data.state == 1) {
956
+          this.waiting_drug = res.data.data.list;
957
+        }
958
+      });
959
+      dispensemedicine(params).then((res) => {
960
+        if (res.data.state == 1) {
961
+          this.issued_drug = res.data.data.list;
962
+        }
963
+      });
964
+      if (this.state == 2) {
965
+        this.handleCurrentChange(this.currentRow);
966
+        // this.fun5(tps);
967
+      } else {
968
+        this.handleCurrentChange(this.currentRow);
969
+        // this.fun4(tps);
970
+      }
971
+    },
972
+    //获取药品列表
567 973
     getdruglist() {
568 974
       var params = {
569 975
         keyword: this.keywords,
570 976
         time: this.start_time,
977
+        deliveryway: this.deliveryway,
571 978
       };
572 979
       waitingmedicine(params).then((res) => {
573 980
         if (res.data.state == 1) {
@@ -584,6 +991,7 @@ export default {
584 991
       var params = {
585 992
         keyword: this.keywords,
586 993
         time: this.start_time,
994
+        deliveryway: this.deliveryway,
587 995
       };
588 996
       await waitingmedicine(params).then((res) => {
589 997
         if (res.data.state == 1) {
@@ -633,6 +1041,8 @@ export default {
633 1041
     },
634 1042
     handleCurrentChange(val) {
635 1043
       this.currentRow = val;
1044
+      console.log("currentRow", this.currentRow);
1045
+      this.total = "";
636 1046
       if (this.state == 1) {
637 1047
         this.getdrugsdetails(0);
638 1048
       }
@@ -641,14 +1051,23 @@ export default {
641 1051
       }
642 1052
     },
643 1053
     getdrugsdetails(val) {
1054
+      if (this.state == 1) {
1055
+        val = 0;
1056
+      } else {
1057
+        val = 1;
1058
+      }
644 1059
       var params = {
645 1060
         drug_id: this.currentRow.id,
646 1061
         is_medicine: val,
647 1062
         time: this.start_time,
1063
+        shift: this.shift,
1064
+        partition: this.partition,
1065
+        deliveryway: this.deliveryway,
648 1066
       };
649 1067
       getpatientswithdrugs(params).then((res) => {
650 1068
         if (res.data.state == 1) {
651 1069
           this.tableData = res.data.data.list; //列表数据
1070
+          this.total = res.data.data.total; //合计
652 1071
         } else {
653 1072
           this.$message.error(res.data.msg);
654 1073
         }
@@ -676,6 +1095,20 @@ export default {
676 1095
         }
677 1096
       });
678 1097
     },
1098
+    getrouteofadministration() {
1099
+      var params = {};
1100
+      routeofadministration(params).then((res) => {
1101
+        if (res.data.state == 1) {
1102
+          this.routeofadministration = res.data.data.list;
1103
+        }
1104
+      });
1105
+    },
1106
+    getgetpartitionlist() {
1107
+      var params = {};
1108
+      getpartitionlist(params).then((res) => {
1109
+        this.fen = res.data.data.list;
1110
+      });
1111
+    },
679 1112
     getUserlist(drug_id) {
680 1113
       var params = {
681 1114
         start_time: this.start_time,
@@ -706,6 +1139,17 @@ export default {
706 1139
     this.getlist();
707 1140
     // this.getdruglist();
708 1141
     this.fun3();
1142
+    this.getrouteofadministration();
1143
+    this.getgetpartitionlist();
1144
+  },
1145
+  updated() {
1146
+    this.$nextTick(() => {
1147
+      if (this.$refs["table_01"]) {
1148
+        this.$refs["table_01"].doLayout();
1149
+      } else if (this.$refs["table_02"]) {
1150
+        this.$refs["table_02"].doLayout();
1151
+      }
1152
+    });
709 1153
   },
710 1154
 };
711 1155
 </script>
@@ -740,10 +1184,17 @@ export default {
740 1184
   height: 100%;
741 1185
   display: flex;
742 1186
   flex-direction: column;
743
-  overflow-y: auto;
1187
+  overflow-y: hidden;
744 1188
   .titlelist {
745 1189
     display: flex;
746
-    justify-content: flex-end;
1190
+    justify-content: space-between;
1191
+    white-space: nowrap;
1192
+    color: #909399;
1193
+    font-size: 14px;
1194
+
1195
+    /deep/ .el-input__inner {
1196
+      font-size: 13px !important;
1197
+    }
747 1198
   }
748 1199
   .el-button {
749 1200
     height: 34px;
@@ -759,7 +1210,17 @@ export default {
759 1210
 }
760 1211
 
761 1212
 /deep/ .el-table--scrollable-x .el-table__body-wrapper {
762
-  overflow: auto;
1213
+  overflow-y: auto;
1214
+  overflow-x: hidden;
1215
+}
1216
+/deep/ .right_table {
1217
+  .el-table__body-wrapper {
1218
+    overflow-y: auto;
1219
+    overflow-x: scroll !important;
1220
+  }
1221
+  // /deep/ .el-table__footer-wrapper {
1222
+  //   margin-top: -2px !important;
1223
+  // }
763 1224
 }
764 1225
 /deep/ .gutter {
765 1226
   width: 15px !important;

+ 161 - 16
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -53,7 +53,7 @@
53 53
           </div>
54 54
 
55 55
           <el-table
56
-            :height="tableHeight"
56
+            height="60vh"
57 57
             ref="table01"
58 58
             :data="waitmount_data"
59 59
             highlight-current-row
@@ -61,7 +61,7 @@
61 61
             border
62 62
             style="width: 100%"
63 63
             v-if="state == 1"
64
-             :row-style="{ color: '#303133' }"
64
+            :row-style="{ color: '#303133' }"
65 65
             :header-cell-style="{
66 66
               backgroundColor: 'rgb(245, 247, 250)',
67 67
               color: '#606266',
@@ -87,7 +87,7 @@
87 87
             highlight-current-row
88 88
             @current-change="handleCurrentChange"
89 89
             border
90
-             :row-style="{ color: '#303133' }"
90
+            :row-style="{ color: '#303133' }"
91 91
             :header-cell-style="{
92 92
               backgroundColor: 'rgb(245, 247, 250)',
93 93
               color: '#606266',
@@ -112,17 +112,54 @@
112 112
       </div>
113 113
       <div class="mainRight">
114 114
         <div class="titlelist">
115
-          <el-button type="primary" @click="dispense" v-if="state == 1"
116
-            >发药</el-button
117
-          >
118
-          <el-button type="primary" @click="endispense" v-if="state == 2"
119
-            >退药</el-button
120
-          >
121
-          <el-button type="primary" @click="toPrint">打印</el-button>
122
-          <!--          <el-button @click="tiaoshi">调试</el-button>-->
123
-          <el-button type="primary" v-if="state == 1" @click="toSetting"
124
-            >设置</el-button
125
-          >
115
+          <div>
116
+            班次:
117
+            <el-select
118
+              v-model="shift"
119
+              placeholder="请选择"
120
+              @change="searchAction"
121
+            >
122
+              <el-option
123
+                v-for="item in banshift"
124
+                :key="item.value"
125
+                :label="item.text"
126
+                :value="item.value"
127
+              >
128
+              </el-option>
129
+            </el-select>
130
+            分区:
131
+            <el-select
132
+              v-model="partition"
133
+              placeholder="请选择"
134
+              @change="searchAction"
135
+            >
136
+              <el-option
137
+                v-for="item in fen"
138
+                :key="item.id"
139
+                :label="item.name"
140
+                :value="item.id"
141
+              >
142
+              </el-option>
143
+            </el-select>
144
+          </div>
145
+
146
+          <div>
147
+            <el-button type="primary" @click="toExport" v-if="state == 2"
148
+              >导出</el-button
149
+            >
150
+
151
+            <el-button type="primary" @click="dispense" v-if="state == 1"
152
+              >发药</el-button
153
+            >
154
+            <el-button type="primary" @click="endispense" v-if="state == 2"
155
+              >退药</el-button
156
+            >
157
+            <el-button type="primary" @click="toPrint">打印</el-button>
158
+            <!--                    <el-button @click="tiaoshi">调试</el-button>-->
159
+            <el-button type="primary" v-if="state == 1" @click="toSetting"
160
+              >设置</el-button
161
+            >
162
+          </div>
126 163
         </div>
127 164
         <el-divider style="margin-top: 10px"></el-divider>
128 165
         <div>
@@ -243,6 +280,7 @@ import {
243 280
   getpharmacycontent,
244 281
   dispensingmedicine,
245 282
   drugwithdrawal,
283
+  getpartitionlist,
246 284
 } from "@/api/pharmacy";
247 285
 const moment = require("moment");
248 286
 export default {
@@ -272,6 +310,15 @@ export default {
272 310
       currentRow: null,
273 311
       dialogVisible: false,
274 312
       is_open: "2",
313
+      banshift: [
314
+        { value: 0, text: "全部班" },
315
+        { value: 1, text: "上午" },
316
+        { value: 2, text: "下午" },
317
+        { value: 3, text: "晚上" },
318
+      ],
319
+      shift: 0, //班次
320
+      fen: [],
321
+      partition: 0, //分区
275 322
     };
276 323
   },
277 324
   watch: {},
@@ -279,12 +326,26 @@ export default {
279 326
     this.init();
280 327
     this.gettodaynumber();
281 328
     this.fun3();
329
+    this.getgetpartitionlist();
282 330
     // this.getwaitmount();//fun3
283 331
     // this.selectedbydefault();
284 332
   },
285 333
   methods: {
334
+    getgetpartitionlist() {
335
+      var params = {};
336
+      getpartitionlist(params).then((res) => {
337
+        if (res.data.state == 1) {
338
+          this.fen = res.data.data.list;
339
+        }
340
+      });
341
+    },
286 342
     tiaoshi() {
287
-      console.log("this.tableData", this.tableData);
343
+      console.log("this.shift", this.shift);
344
+      console.log("this.partition", this.partition);
345
+      console.log("this.waitmount_data", this.waitmount_data);
346
+      console.log("this.alreadmount_data", this.alreadmount_data);
347
+      console.log("this.waitmount", this.waitmount);
348
+      console.log("this.alreadmount", this.alreadmount);
288 349
     },
289 350
     async fun3() {
290 351
       console.log("fun3");
@@ -344,6 +405,8 @@ export default {
344 405
       this.state = 1;
345 406
       this.tableData = null;
346 407
       this.currentRow = null;
408
+      this.partition = 0;
409
+      this.shift = 0;
347 410
     },
348 411
     testsss() {
349 412
       this.state = 1;
@@ -397,15 +460,31 @@ export default {
397 460
       var params = {
398 461
         keyword: this.keywords,
399 462
         time: this.start_time,
463
+        shift: this.shift,
464
+        partition: this.partition,
400 465
       };
401 466
       waitingdrug(params).then((res) => {
402 467
         if (res.data.state == 1) {
403 468
           this.waitmount_data = res.data.data.list;
469
+          if (this.shift != 0 || this.partition != 0) {
470
+            if (this.waitmount_data == null) {
471
+              this.waitmount = 0;
472
+            } else {
473
+              this.waitmount = this.waitmount_data.length;
474
+            }
475
+          }
404 476
         }
405 477
       });
406 478
       issueddrugs(params).then((res) => {
407 479
         if (res.data.state == 1) {
408 480
           this.alreadmount_data = res.data.data.list;
481
+          if (this.shift != 0 || this.partition != 0) {
482
+            if (this.alreadmount_data == null) {
483
+              this.alreadmount = 0;
484
+            } else {
485
+              this.alreadmount = this.alreadmount_data.length;
486
+            }
487
+          }
409 488
         }
410 489
       });
411 490
     },
@@ -415,6 +494,8 @@ export default {
415 494
       var params = {
416 495
         keyword: this.keywords,
417 496
         time: this.start_time,
497
+        shift: this.shift,
498
+        partition: this.partition,
418 499
       };
419 500
       await waitingdrug(params).then((res) => {
420 501
         if (res.data.state == 1) {
@@ -460,11 +541,64 @@ export default {
460 541
         this.start_time
461 542
       );
462 543
     },
544
+    toExport() {
545
+      import("@/vendor/Export2Excel").then((excel) => {
546
+        for (let i = 0; i < this.tableData.length; i++) {
547
+          this.tableData[i].index = i + 1;
548
+          this.tableData[i].time = this.start_time;
549
+          this.tableData[i].uname = this.currentRow.Name;
550
+        }
551
+
552
+        const tHeader = [
553
+          "序号",
554
+          "日期",
555
+          "患者名称",
556
+          "名称",
557
+          "单次用量",
558
+          "用法",
559
+          "频率",
560
+          "天数",
561
+          "总量",
562
+          "开立医生",
563
+          "数据来源",
564
+          "备注",
565
+        ];
566
+        const filterVal = [
567
+          "index",
568
+          "time",
569
+          "uname",
570
+          "Name",
571
+          "SingleDosage",
572
+          "Usage",
573
+          "Frequency",
574
+          "Days",
575
+          "Total",
576
+          "Doctor",
577
+          "DataSources",
578
+          "Remarks",
579
+        ];
580
+
581
+        const data = this.formatJson(filterVal, this.tableData);
582
+        excel.export_json_to_excel({
583
+          header: tHeader,
584
+          data,
585
+          filename: "领药单",
586
+        });
587
+        this.downloadLoading = false;
588
+      });
589
+    },
590
+    formatJson(filterVal, jsonData) {
591
+      return jsonData.map((v) => filterVal.map((j) => v[j]));
592
+    },
463 593
 
464 594
     // 搜索患者
465 595
     searchAction() {
466 596
       this.tableData = null;
467 597
       this.getwaitmount();
598
+      if (this.shift != 0 || this.partition != 0) {
599
+      } else {
600
+        this.gettodaynumber();
601
+      }
468 602
     },
469 603
 
470 604
     // 药品发药
@@ -591,7 +725,13 @@ export default {
591 725
   overflow-y: auto;
592 726
   .titlelist {
593 727
     display: flex;
594
-    justify-content: flex-end;
728
+    justify-content: space-between;
729
+    white-space: nowrap;
730
+    color: #909399;
731
+    font-size: 14px;
732
+    /deep/ .el-input__inner {
733
+      font-size: 13px !important;
734
+    }
595 735
   }
596 736
   .el-table {
597 737
     margin-top: -13px;
@@ -604,6 +744,10 @@ export default {
604 744
     height: 2px;
605 745
     margin-top: 10px;
606 746
   }
747
+
748
+  /deep/ .el-table__body-wrapper {
749
+    overflow-x: scroll !important;
750
+  }
607 751
 }
608 752
 
609 753
 /deep/ .el-input__inner {
@@ -612,6 +756,7 @@ export default {
612 756
 
613 757
 /deep/ .el-table--scrollable-x .el-table__body-wrapper {
614 758
   overflow: auto;
759
+  overflow-x: hidden;
615 760
 }
616 761
 /deep/ .gutter {
617 762
   width: 15px !important;

+ 2 - 2
src/xt_pages/data/components/dialysisAfter.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -113,7 +113,7 @@ export default {
113 113
         type: "warning"
114 114
       })
115 115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117 117
             if (response.data.state == 1) {
118 118
               let params = {
119 119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisBefore.vue View File

@@ -77,7 +77,7 @@
77 77
           cancelButtonText: '取 消',
78 78
           type: 'warning'
79 79
         }).then(() => {
80
-          updateFieldIsShow(row.id, 2).then(response => {
80
+          updateFieldIsShow(row.id, 2,0).then(response => {
81 81
             if (response.data.state == 1) {
82 82
               const params = {
83 83
                 id: response.data.data.id,
@@ -103,7 +103,7 @@
103 103
           cancelButtonText: '取 消',
104 104
           type: 'warning'
105 105
         }).then(() => {
106
-          updateFieldIsShow(row.id, 1).then(response => {
106
+          updateFieldIsShow(row.id, 1,1).then(response => {
107 107
             if (response.data.state == 1) {
108 108
               const params = {
109 109
                 id: response.data.data.id,

+ 4 - 2
src/xt_pages/data/components/dialysisComputer.vue View File

@@ -30,6 +30,8 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
+   
34
+
33 35
       <el-table-column label="操作" align="center">
34 36
         <template slot-scope="scope">
35 37
           <el-tooltip
@@ -89,7 +91,7 @@
89 91
           type: "warning"
90 92
         })
91 93
           .then(() => {
92
-            updateFieldIsShow(row.id, 2).then(response => {
94
+            updateFieldIsShow(row.id, 2,0).then(response => {
93 95
               if (response.data.state == 1) {
94 96
                 let params = {
95 97
                   id: response.data.data.id,
@@ -113,7 +115,7 @@
113 115
           type: "warning"
114 116
         })
115 117
           .then(() => {
116
-            updateFieldIsShow(row.id, 1).then(response => {
118
+            updateFieldIsShow(row.id, 1,1).then(response => {
117 119
               if (response.data.state == 1) {
118 120
                 let params = {
119 121
                   id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisMonitor.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -113,7 +113,7 @@ export default {
113 113
         type: "warning"
114 114
       })
115 115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117 117
             if (response.data.state == 1) {
118 118
               let params = {
119 119
                 id: response.data.data.id,

+ 145 - 6
src/xt_pages/data/components/dialysisOff.vue View File

@@ -30,9 +30,49 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
33 40
       <el-table-column label="操作" align="center">
34 41
         <template slot-scope="scope">
35
-          <el-tooltip
42
+            <el-button
43
+              v-if="scope.row.is_show == 1"
44
+              size="small"
45
+              type="danger"
46
+              icon="el-icon-remove-outline"
47
+              @click="handleHide(scope.$index, scope.row)"
48
+            >
49
+            </el-button>
50
+            <el-button
51
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
52
+              size="small"
53
+              type="danger"
54
+              icon="el-icon-remove-outline"
55
+              @click="handleHideOne(scope.$index, scope.row)"
56
+            >
57
+            </el-button>
58
+
59
+             <el-button
60
+              v-if="scope.row.is_show == 2"
61
+              size="small"
62
+              type="primary"
63
+              icon="el-icon-view"
64
+              @click="handleShow(scope.$index, scope.row)"
65
+            >
66
+            </el-button>
67
+            <el-button
68
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
69
+              size="small"
70
+              type="primary"
71
+              icon="el-icon-view"
72
+              @click="handleShowOne(scope.$index, scope.row)"
73
+            >
74
+            </el-button>
75
+          <!-- <el-tooltip
36 76
             class="item"
37 77
             effect="dark"
38 78
             content="不展示"
@@ -48,6 +88,22 @@
48 88
             </el-button>
49 89
           </el-tooltip>
50 90
 
91
+           <el-tooltip
92
+            class="item"
93
+            effect="dark"
94
+            content="不必填"
95
+            placement="top"
96
+            v-if="scope.row.is_write == 1"
97
+          >
98
+            <el-button
99
+              size="small"
100
+              type="danger"
101
+              icon="el-icon-remove-outline"
102
+              @click="handleHideOne(scope.$index, scope.row)"
103
+            >
104
+            </el-button>
105
+          </el-tooltip>
106
+
51 107
           <el-tooltip
52 108
             class="item"
53 109
             effect="dark"
@@ -62,7 +118,25 @@
62 118
               @click="handleShow(scope.$index, scope.row)"
63 119
             >
64 120
             </el-button>
121
+           
65 122
           </el-tooltip>
123
+
124
+           <el-tooltip
125
+            class="item"
126
+            effect="dark"
127
+            content="必填"
128
+            placement="top"
129
+            v-if="scope.row.is_write == 2"
130
+          >
131
+            <el-button
132
+              size="small"
133
+              type="primary"
134
+              icon="el-icon-view"
135
+              @click="handleShowOne(scope.$index, scope.row)"
136
+            >
137
+            </el-button>
138
+           
139
+          </el-tooltip> -->
66 140
         </template>
67 141
       </el-table-column>
68 142
     </el-table>
@@ -81,6 +155,12 @@ export default {
81 155
       type: Array
82 156
     }
83 157
   },
158
+  data(){
159
+    return {
160
+    is_show:2,
161
+    is_write:0,
162
+   }
163
+  },
84 164
   methods: {
85 165
     handleHide: function(index, row) {
86 166
       this.$confirm("是否将该字段设为不可见?", "提示", {
@@ -89,11 +169,40 @@ export default {
89 169
         type: "warning"
90 170
       })
91 171
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
172
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 173
             if (response.data.state == 1) {
174
+              this.is_show = response.data.data.is_show
94 175
               let params = {
95 176
                 id: response.data.data.id,
96
-                is_show: response.data.data.is_show
177
+                is_show: response.data.data.is_show,
178
+                is_write:response.data.data.is_write,
179
+              };
180
+              store.dispatch("updateFiledConfigList", params).then(() => {});
181
+              this.$emit("change", params);
182
+            }
183
+          });
184
+          this.$message({
185
+            type: "success",
186
+            message: "设置成功!"
187
+          });
188
+        })
189
+        .catch(() => {});
190
+    },
191
+    handleHideOne: function(index, row) {
192
+      this.$confirm("是否将该字段设为不必填?", "提示", {
193
+        confirmButtonText: "确 定",
194
+        cancelButtonText: "取 消",
195
+        type: "warning"
196
+      })
197
+        .then(() => {
198
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
199
+          
200
+            if (response.data.state == 1) {
201
+              this.is_write = response.data.data.is_write
202
+              let params = {
203
+                id: response.data.data.id,
204
+                is_show: response.data.data.is_show,
205
+                is_write:response.data.data.is_write,
97 206
               };
98 207
               store.dispatch("updateFiledConfigList", params).then(() => {});
99 208
               this.$emit("change", params);
@@ -112,11 +221,39 @@ export default {
112 221
         cancelButtonText: "取 消",
113 222
         type: "warning"
114 223
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
224
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
225
+            if (response.data.state == 1) {
226
+              this.is_show = response.data.data.is_show
227
+              let params = {
228
+                id: response.data.data.id,
229
+                is_show: response.data.data.is_show,
230
+                is_write:response.data.data.is_write,
231
+              };
232
+              store.dispatch("updateFiledConfigList", params).then(() => {});
233
+              this.$emit("change", params);
234
+            }
235
+          });
236
+          this.$message({
237
+            type: "success",
238
+            message: "设置成功!"
239
+          });
240
+        })
241
+        .catch(() => {});
242
+    },
243
+    handleShowOne: function(index, row) {
244
+      this.$confirm("是否将该字段设为必填?", "提示", {
245
+        confirmButtonText: "确 定",
246
+        cancelButtonText: "取 消",
247
+        type: "warning"
248
+      }).then(() => {
249
+         
250
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
116 251
             if (response.data.state == 1) {
252
+              this.is_write = response.data.data.is_write
117 253
               let params = {
118 254
                 id: response.data.data.id,
119
-                is_show: response.data.data.is_show
255
+                is_show: response.data.data.is_show,
256
+                is_write:response.data.data.is_write,
120 257
               };
121 258
               store.dispatch("updateFiledConfigList", params).then(() => {});
122 259
               this.$emit("change", params);
@@ -130,7 +267,9 @@ export default {
130 267
         .catch(() => {});
131 268
     }
132 269
   },
133
- 
270
+  created(){
271
+    console.log("dialysis_off_data",this.dialysis_off_data)
272
+  }
134 273
 };
135 274
 </script>
136 275
 

+ 2 - 2
src/xt_pages/data/components/dialysisPrescription.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -113,7 +113,7 @@ export default {
113 113
         type: "warning"
114 114
       })
115 115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117 117
             if (response.data.state == 1) {
118 118
               let params = {
119 119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisSummary.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -113,7 +113,7 @@ export default {
113 113
         type: "warning"
114 114
       })
115 115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117 117
             if (response.data.state == 1) {
118 118
               let params = {
119 119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/doubleCheck.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -112,7 +112,7 @@ export default {
112 112
         cancelButtonText: "取 消",
113 113
         type: "warning"
114 114
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
115
+          updateFieldIsShow(row.id, 1,1).then(response => {
116 116
             if (response.data.state == 1) {
117 117
               let params = {
118 118
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/receiveTreatmentAsses.vue View File

@@ -88,7 +88,7 @@ export default {
88 88
         type: "warning"
89 89
       })
90 90
         .then(() => {
91
-          updateFieldIsShow(row.id, 2).then(response => {
91
+          updateFieldIsShow(row.id, 2,0).then(response => {
92 92
             if (response.data.state == 1) {
93 93
               let params = {
94 94
                 id: response.data.data.id,
@@ -112,7 +112,7 @@ export default {
112 112
         type: "warning"
113 113
       })
114 114
         .then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
115
+          updateFieldIsShow(row.id, 1,1).then(response => {
116 116
             if (response.data.state == 1) {
117 117
               let params = {
118 118
                 id: response.data.data.id,

+ 5 - 3
src/xt_pages/data/druguse.vue View File

@@ -93,7 +93,7 @@
93 93
                   <el-form-item label="医嘱名称 :" required prop="advice_name">
94 94
                     <el-input v-model="templateForm.advice_name" style="width:50%"></el-input>
95 95
                   </el-form-item>
96
-               </el-col> 
96
+               </el-col>
97 97
               <!-- <el-form-item label="医嘱内容 :" prop="advice_desc">
98 98
                 <el-input v-model="templateForm.advice_desc" style="width:50%"></el-input>
99 99
               </el-form-item> -->
@@ -167,7 +167,7 @@
167 167
                   </el-form-item>
168 168
                 </el-col>
169 169
               </el-row>
170
-              <el-row>  
170
+              <el-row>
171 171
                 <el-col :span="12">
172 172
                   <el-form-item label="执行频率 :" prop="execution_frequency">
173 173
                     <el-select
@@ -395,6 +395,7 @@
395 395
             <el-form ref="efForm" :rules="efRules" :model="efForm" label-width="90px">
396 396
               <el-form-item label="执行频率 :" required prop="name">
397 397
                 <el-input v-model="efForm.name" placeholder="执行频率"></el-input>
398
+                <el-input v-model="efForm.code" placeholder="编码"></el-input>
398 399
               </el-form-item>
399 400
             </el-form>
400 401
             <div slot="footer" class="dialog-footer">
@@ -486,7 +487,8 @@ export default {
486 487
       },
487 488
       efForm: {
488 489
         name: "",
489
-        id: 0
490
+        id: 0,
491
+        code:"",
490 492
       },
491 493
       unitsOption: [
492 494
         { lable: 1, name: "盒" },

+ 13 - 2
src/xt_pages/data/druguseTemplate.vue View File

@@ -1251,7 +1251,15 @@
1251 1251
               <el-form ref="efForm" :rules="efRules" :model="efForm" label-width="90px">
1252 1252
                 <el-form-item label="执行频率 :" required prop="name">
1253 1253
                   <el-input v-model="efForm.name" placeholder="执行频率"></el-input>
1254
+
1254 1255
                 </el-form-item>
1256
+
1257
+
1258
+                <el-form-item label="执行频率 :" >
1259
+                  <el-input v-model="efForm.code" placeholder="编码"></el-input>
1260
+                </el-form-item>
1261
+
1262
+
1255 1263
               </el-form>
1256 1264
               <div slot="footer" class="dialog-footer">
1257 1265
                 <el-button @click="efFormVisible = false">取消</el-button>
@@ -1438,7 +1446,8 @@
1438 1446
         },
1439 1447
         efForm: {
1440 1448
           name: '',
1441
-          id: 0
1449
+          id: 0,
1450
+          code: "",
1442 1451
         },
1443 1452
 
1444 1453
         drugforms: [
@@ -1976,6 +1985,7 @@
1976 1985
         this.dialogTitle = '新增给药途径'
1977 1986
         this.isEdit = false
1978 1987
       },
1988
+
1979 1989
       handleUpdateDrugWay(row, index) {
1980 1990
         this.currentIndex = index
1981 1991
         this.drugwayForm = {
@@ -2061,7 +2071,8 @@
2061 2071
         this.currentIndex = index
2062 2072
         this.efForm = {
2063 2073
           name: row.name,
2064
-          id: row.id
2074
+          id: row.id,
2075
+          code: row.code
2065 2076
         }
2066 2077
 
2067 2078
         this.efFormVisible = true

+ 10 - 3
src/xt_pages/data/showConfig.vue View File

@@ -175,10 +175,14 @@ export default {
175 175
       }
176 176
     },
177 177
     changeDialysisOffData:function(object){
178
-
178
+    
179 179
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
180 180
         if (this.dialysis_off_data[i].id == object.id) {
181 181
           this.dialysis_off_data[i].is_show = object.is_show;
182
+          if(obj.is_write!=undefined){
183
+           this.dialysis_off_data[i].is_write = object.is_write
184
+          }
185
+          
182 186
         }
183 187
       }
184 188
     }
@@ -186,9 +190,12 @@ export default {
186 190
   },
187 191
   created() {
188 192
     var filedList = store.getters.xt_user.fileds;
189
-    
190
-  
193
+    console.log("地址32323232232332322我噢",filedList)
194
+     
191 195
     for (let i = 0; i < filedList.length; i++) {
196
+      if(filedList[i].module == 9){
197
+        console.log("filedList222222",filedList)
198
+      }
192 199
       switch (filedList[i].module) {
193 200
         case 1:
194 201
           this.dialysis_prescription_data.push(filedList[i]);

+ 13 - 13
src/xt_pages/device/components/partition_dialog.vue View File

@@ -10,7 +10,7 @@
10 10
                         <el-table-column prop="name" label="分区名称" align="center"></el-table-column>
11 11
                         <el-table-column prop="type" label="分区类型" align="center"></el-table-column>
12 12
                         <!-- <el-table-column prop="amount" label="机号数量" align="center"></el-table-column> -->
13
-                        <el-table-column label="操作" align="center"> 
13
+                        <el-table-column label="操作" align="center">
14 14
                             <template slot-scope="scope">
15 15
                                 <el-button type="primary" icon="el-icon-edit" size="small" @click="modifyZoneAt(scope.row)"></el-button>
16 16
 
@@ -22,7 +22,7 @@
22 22
                                         <el-button size="mini" @click="scope.row.willDelete = false">取消</el-button>
23 23
                                     </div>
24 24
                                 </el-popover> -->
25
-                            </template>  
25
+                            </template>
26 26
                         </el-table-column>
27 27
                     </el-table>
28 28
                 </el-tab-pane>
@@ -34,7 +34,7 @@
34 34
                         <el-table-column prop="zone_name" label="所属分区" align="center"></el-table-column>
35 35
                         <el-table-column prop="group_name" label="所属分组" align="center"></el-table-column>
36 36
                         <!-- <el-table-column prop="amount" label="机号数量" align="center"></el-table-column> -->
37
-                        <el-table-column label="操作" align="center"> 
37
+                        <el-table-column label="操作" align="center">
38 38
                             <template slot-scope="scope">
39 39
                                 <el-button type="primary" icon="el-icon-edit" size="small" @click="modifyDeviceNumberAt(scope.row)"></el-button>
40 40
 
@@ -46,7 +46,7 @@
46 46
                                     </div>
47 47
                                     <el-button type="danger" slot="reference"  icon="el-icon-delete" size="mini">删除</el-button>
48 48
                                 </el-popover> -->
49
-                            </template>  
49
+                            </template>
50 50
                         </el-table-column>
51 51
                     </el-table>
52 52
                 </el-tab-pane>
@@ -68,14 +68,14 @@
68 68
                                     </div>
69 69
                                     <el-button type="danger" slot="reference" icon="el-icon-delete" size="mini">删除</el-button>
70 70
                                 </el-popover> -->
71
-                            </template>  
71
+                            </template>
72 72
                         </el-table-column>
73 73
                     </el-table>
74 74
                 </el-tab-pane>
75 75
             </el-tabs>
76
-            
76
+
77 77
             <!-- <span slot="footer" class="dialog-footer">
78
-                <el-button type="primary" @click="visible = false">保 存</el-button>            
78
+                <el-button type="primary" @click="visible = false">保 存</el-button>
79 79
                 <el-button @click="visible = false">取 消</el-button>
80 80
             </span> -->
81 81
         </el-dialog>
@@ -273,7 +273,7 @@ export default {
273 273
                                 this.$message.error(resp.msg)
274 274
                             }
275 275
                         })
276
-                        
276
+
277 277
                     } else {
278 278
                         modifyZone(this.zone_form.id, this.zone_form.name, this.zone_form.type).then(rs => {
279 279
                             var resp = rs.data
@@ -293,7 +293,7 @@ export default {
293 293
                             }
294 294
                         })
295 295
                     }
296
-                    
296
+
297 297
                 } else {
298 298
                     return false
299 299
                 }
@@ -314,7 +314,7 @@ export default {
314 314
                                 this.$message.error(resp.msg)
315 315
                             }
316 316
                         })
317
-                        
317
+
318 318
                     } else {
319 319
                         modifyGroup(this.group_form.id, this.group_form.name).then(rs => {
320 320
                             var resp = rs.data
@@ -333,7 +333,7 @@ export default {
333 333
                             }
334 334
                         })
335 335
                     }
336
-                    
336
+
337 337
                 } else {
338 338
                     return false
339 339
                 }
@@ -354,7 +354,7 @@ export default {
354 354
                                 this.$message.error(resp.msg)
355 355
                             }
356 356
                         })
357
-                        
357
+
358 358
                     } else {
359 359
                         modifyDeviceNumber(this.number_form.id, this.number_form.number, this.number_form.zone, this.number_form.group).then(rs => {
360 360
                             var resp = rs.data
@@ -375,7 +375,7 @@ export default {
375 375
                             }
376 376
                         })
377 377
                     }
378
-                    
378
+
379 379
                 } else {
380 380
                     return false
381 381
                 }

+ 89 - 79
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -462,7 +462,10 @@
462 462
                       style="padding: 2px 0; line-height: 23px; display: flex"
463 463
                     >
464 464
                       <div class="inline_block" style="flex: 1">
465
-                        透析方式:
465
+                        <span v-if="org_id == 10138 || org_id == 9675"
466
+                          >治疗模式:</span
467
+                        >
468
+                        <span v-else>透析方式:</span>
466 469
                         <div
467 470
                           class="under_line"
468 471
                           style="
@@ -1177,7 +1180,7 @@
1177 1180
                         <!-- <thead> -->
1178 1181
                         <tr>
1179 1182
                           <td
1180
-                            colspan="11"
1183
+                            colspan="14"
1181 1184
                             style="
1182 1185
                               letter-spacing: 5px;
1183 1186
                               text-align: center;
@@ -1202,8 +1205,21 @@
1202 1205
                             透析液温度(°C)
1203 1206
                           </td>
1204 1207
                           <td width="60" v-if="org_id == 9836">体温(°C)</td>
1205
-                        <td width="50" v-if="org_id != 10121 && org_id != 9675&& org_id != 0">电导度<br />(ms/cm)</td>
1206
-                        <td width="50" v-if="org_id == 10121|| org_id == 9675|| org_id == 0">SpO₂<br />(%)</td>
1208
+                          <td
1209
+                            width="50"
1210
+                            v-if=" org_id != 9538 && org_id != 10121 && org_id != 9675 && org_id != 0
1211
+                            "
1212
+                          >
1213
+                            电导度<br />(ms/cm)
1214
+                          </td>
1215
+                          <td
1216
+                            width="50"
1217
+                            v-if="
1218
+                              org_id == 10121 || org_id == 9675 || org_id == 0
1219
+                            "
1220
+                          >
1221
+                            SpO₂<br />(%)
1222
+                          </td>
1207 1223
                           <td width="50">超滤量<br />(ml)</td>
1208 1224
                           <td
1209 1225
                             v-if="
@@ -1215,105 +1231,84 @@
1215 1231
                           >
1216 1232
                             置换量<br />(ml)
1217 1233
                           </td>
1234
+
1235
+                          <td
1236
+                            width="50"
1237
+                            v-if="org_id == 9919 || org_id == 9538 || org_id == 9675 || org_id == 9671 "
1238
+                          >
1239
+                            KT/V
1240
+                          </td>
1241
+                          <td
1242
+                            width="50"
1243
+                            v-if="org_id == 9538 || org_id == 9675 || org_id == 9671"
1244
+                          >
1245
+                            血容量<br />(L)
1246
+                          </td>
1247
+
1218 1248
                           <td width="200">病情变化及处理</td>
1219 1249
                         </tr>
1250
+
1220 1251
                         <tr
1221 1252
                           v-for="(monitor_record, j) in record.monitor_records"
1222 1253
                           :key="j"
1223 1254
                         >
1224 1255
                           <td>
1225
-                            {{
1226
-                              getTime(monitor_record.operate_time, "{h}:{i}")
1227
-                            }}
1256
+                            {{getTime(monitor_record.operate_time, "{h}:{i}")}}
1228 1257
                           </td>
1229 1258
                           <td>
1230
-                            {{
1231
-                              monitor_record.systolic_blood_pressure
1232
-                                ? monitor_record.systolic_blood_pressure + "/"
1233
-                                : ""
1234
-                            }}{{
1235
-                              monitor_record.diastolic_blood_pressure
1236
-                                ? monitor_record.diastolic_blood_pressure
1237
-                                : ""
1238
-                            }}
1259
+                            {{ monitor_record.systolic_blood_pressure? monitor_record.systolic_blood_pressure + "/": ""}}
1260
+                            {{ monitor_record.diastolic_blood_pressure? monitor_record.diastolic_blood_pressure: ""}}
1239 1261
                           </td>
1240 1262
                           <td>
1241
-                            {{
1242
-                              monitor_record.pulse_frequency
1243
-                                ? monitor_record.pulse_frequency
1244
-                                : ""
1245
-                            }}
1263
+                            {{monitor_record.pulse_frequency? monitor_record.pulse_frequency: ""}}
1246 1264
                           </td>
1247 1265
                           <td>
1248
-                            {{
1249
-                              monitor_record.breathing_rate
1250
-                                ? monitor_record.breathing_rate
1251
-                                : ""
1252
-                            }}
1266
+                            {{ monitor_record.breathing_rate ? monitor_record.breathing_rate: ""}}
1253 1267
                           </td>
1254 1268
                           <td>
1255
-                            {{
1256
-                              monitor_record.blood_flow_volume
1257
-                                ? monitor_record.blood_flow_volume
1258
-                                : ""
1259
-                            }}
1269
+                            {{monitor_record.blood_flow_volume? monitor_record.blood_flow_volume: ""}}
1260 1270
                           </td>
1261 1271
                           <td>
1262
-                            {{
1263
-                              monitor_record.venous_pressure
1264
-                                ? monitor_record.venous_pressure
1265
-                                : ""
1266
-                            }}
1272
+                            {{monitor_record.venous_pressure? monitor_record.venous_pressure: ""}}
1267 1273
                           </td>
1268 1274
                           <td>
1269
-                            {{
1270
-                              monitor_record.transmembrane_pressure
1271
-                                ? monitor_record.transmembrane_pressure
1272
-                                : ""
1273
-                            }}
1275
+                             {{monitor_record.transmembrane_pressure ? monitor_record.transmembrane_pressure: ""}}
1274 1276
                           </td>
1275 1277
                           <td v-if="org_id != 9836">
1276
-                            {{
1277
-                              monitor_record.dialysate_temperature
1278
-                                ? monitor_record.dialysate_temperature
1279
-                                : ""
1280
-                            }}
1278
+                            {{ monitor_record.dialysate_temperature? monitor_record.dialysate_temperature: ""}}
1281 1279
                           </td>
1282 1280
                           <td v-if="org_id == 9836">
1283
-                            {{
1284
-                              monitor_record.temperature
1285
-                                ? monitor_record.temperature
1286
-                                : ""
1287
-                            }}
1281
+                            {{monitor_record.temperature? monitor_record.temperature: ""}}
1288 1282
                           </td>
1289
-                          <td v-if="org_id != 10121 && org_id != 9675&& org_id != 0">
1283
+
1284
+                          <!-- <td v-if="org_id != 10121 && org_id != 9675 && org_id != 0">
1285
+                            {{monitor_record.conductivity? monitor_record.conductivity : ""}}
1286
+                          </td> -->
1287
+                         <td v-if=" org_id != 9538 &&org_id != 10121 && org_id != 9675 &&org_id != 0">
1290 1288
                             {{
1291
-                              monitor_record.conductivity
1292
-                                ? monitor_record.conductivity
1293
-                                : ""
1289
+                              monitor_record.conductivity ? monitor_record.conductivity : ""
1294 1290
                             }}
1295 1291
                           </td>
1296
-                          <td v-if="org_id == 10121|| org_id == 9675|| org_id == 0">
1297
-                          {{
1298
-                            monitor_record.blood_oxygen_saturation
1299
-                              ? monitor_record.blood_oxygen_saturation
1300
-                              : ""
1301
-                          }}
1302
-                        </td>
1292
+
1293
+                          <td v-if="org_id == 10121 || org_id == 9675 || org_id == 0">
1294
+                            {{monitor_record.blood_oxygen_saturation? monitor_record.blood_oxygen_saturation: ""}}
1295
+                          </td>
1296
+
1297
+                        
1298
+
1299
+                          <td v-if="org_id == 9538">
1300
+                            {{ monitor_record.sodium_concentration? monitor_record.sodium_concentration: ""}}
1301
+                          </td>
1302
+
1303 1303
                           <td>
1304
-                            <span v-if="monitor_record.operate_time">{{
1305
-                              monitor_record.ultrafiltration_volume
1306
-                                ? monitor_record.ultrafiltration_volume
1307
-                                : ""
1308
-                            }}</span>
1304
+                            <span>{{monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: ""}}</span>
1309 1305
                           </td>
1306
+
1310 1307
                           <td
1311 1308
                             v-if="
1312 1309
                               record.prescription.mode_id == 2 ||
1313 1310
                               record.prescription.mode_id == 5 ||
1314
-                              (record.prescription.mode_id == 12 &&
1315
-                                monitor_record.operate_time >
1316
-                                  record.dialysis_order.end_time)
1311
+                              record.prescription.mode_id == 12
1317 1312
                             "
1318 1313
                             style="width: 50px"
1319 1314
                           >
@@ -1323,6 +1318,19 @@
1323 1318
                                 : ""
1324 1319
                             }}
1325 1320
                           </td>
1321
+                          <td
1322
+                            width="50"
1323
+                            v-if="org_id == 9919 || org_id == 9538 || org_id == 9675  || org_id == 9671"
1324
+                          >
1325
+                            {{ monitor_record.ktv }}
1326
+                          </td>
1327
+                          <td
1328
+                            width="50"
1329
+                            v-if="org_id == 9538 || org_id == 9675 || org_id == 9671"
1330
+                          >
1331
+                            {{ monitor_record.accumulated_blood_volume }}
1332
+                          </td>
1333
+
1326 1334
                           <td style="line-height: 16px; padding: 0px">
1327 1335
                             <div
1328 1336
                               style="
@@ -1382,7 +1390,12 @@
1382 1390
                           <td></td>
1383 1391
                           <td></td>
1384 1392
                           <td></td>
1385
-
1393
+                          <td
1394
+                            v-if="
1395
+                              org_id == 9919 || org_id == 9538 || org_id == 9675
1396
+                            "
1397
+                          ></td>
1398
+                          <td v-if="org_id == 9538 || org_id == 9675"></td>
1386 1399
                           <td style="line-height: 16px; padding: 0px">
1387 1400
                             <div
1388 1401
                               style="
@@ -2596,7 +2609,6 @@ export default {
2596 2609
     };
2597 2610
   },
2598 2611
   created() {
2599
-    
2600 2612
     var bloodAccessParOpera = getDataConfig(
2601 2613
       "hemodialysis",
2602 2614
       "vascular_access_desc"
@@ -2616,15 +2628,15 @@ export default {
2616 2628
     this.modeOptions = this.$store.getters.treatment_mode;
2617 2629
     //   this.replacementWays = this.$store.getters.replacement_ways;
2618 2630
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2619
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2631
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2620 2632
     // for(let i = 0 ; i < this.records.length ; i++){
2621 2633
     //   console.log(i,'jhk')
2622 2634
     //   this.blood_access_part_opera_name = this.bloodAccessParOperaName(
2623 2635
     //   i.assessment_before_dislysis.blood_access_part_opera_id
2624 2636
     // );
2625 2637
     // }
2626
-    console.log(this.bloodAccessParOpera,'this.bloodAccessParOpera')
2627
-    
2638
+    console.log(this.bloodAccessParOpera, "this.bloodAccessParOpera");
2639
+
2628 2640
     for (var key in bloodAccessParOpera) {
2629 2641
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2630 2642
         bloodAccessParOpera[key];
@@ -2651,7 +2663,6 @@ export default {
2651 2663
     //     this.$message.error("参数不齐");
2652 2664
     //     return false;
2653 2665
     //   }
2654
-    
2655 2666
   },
2656 2667
   mounted() {
2657 2668
     this.loading = true;
@@ -2664,7 +2675,6 @@ export default {
2664 2675
       .then((rs) => {
2665 2676
         var resp = rs.data;
2666 2677
         if (resp.state == 1) {
2667
-
2668 2678
           this.records = this.records.concat(resp.data.schedules);
2669 2679
 
2670 2680
           for (const recordIndex in this.records) {
@@ -2786,7 +2796,7 @@ export default {
2786 2796
           //   this.blood_access_part_opera_name = this.bloodAccessParOperaName(
2787 2797
           //   o.assessment_before_dislysis.blood_access_part_opera_id)
2788 2798
           // })
2789
-          
2799
+
2790 2800
           this.operators = resp.data.medical_staffs;
2791 2801
           if (this.operators.length > 0) {
2792 2802
             var operatorsLen = this.operators.length;
@@ -2885,7 +2895,7 @@ export default {
2885 2895
       return "";
2886 2896
     },
2887 2897
     bloodAccessParOperaName(id) {
2888
-      console.log(tihs.records,'hhh')
2898
+      console.log(tihs.records, "hhh");
2889 2899
       if (id in this.bloodAccessParOpera) {
2890 2900
         return this.bloodAccessParOpera[id].name;
2891 2901
       }

+ 1 - 1
src/xt_pages/dialysis/components/dialysisParametersDialog.vue View File

@@ -41,7 +41,7 @@
41 41
                    <span v-if="scope.row.anticoagulant==8">依诺肝素</span>
42 42
                    <span v-if="scope.row.anticoagulant==9">达肝素</span>
43 43
                    <span v-if="scope.row.anticoagulant==10">体外抗凝</span>
44
-                   <span v-if="scope.row.anticoagulant==11">那肝素</span>
44
+                   <span v-if="scope.row.anticoagulant==11">那肝素</span>
45 45
                 </template>
46 46
             </el-table-column>
47 47
             <el-table-column align="center" prop="name"label="数量">

+ 4 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue View File

@@ -324,6 +324,10 @@
324 324
           <label>管路凝血: </label>
325 325
           <span class="content" >{{ this.record.pip_coagulation}}</span>
326 326
         </li>
327
+       <li v-if="isShow('累计血容量')">
328
+          <label>累计血容量: </label>
329
+          <span class="content" >{{ this.record.accumulated_blood_volume}}</span>
330
+        </li>
327 331
       </ul>
328 332
     </div>
329 333
     <!-- <div class="note">

+ 13 - 6
src/xt_pages/dialysis/details/assessmentBefore.vue View File

@@ -6,13 +6,20 @@
6 6
     <div class="plate ">
7 7
       <ul>
8 8
         <li v-if="isShow('透前称重')">
9
-          <label>透前重 : </label>
9
+          <label>透前重 : </label>
10 10
           <span class="content" v-if="weight_before != '0'">{{
11 11
             weight_before
12 12
           }}</span>
13 13
           <span class="unit" v-if="weight_before != '0'">kg</span>
14 14
         </li>
15 15
 
16
+        <li v-if="isShow('透前体重备注')">
17
+          <label>透前体重备注 : </label>
18
+          <span class="content">
19
+            {{this.record.weight_befor_remake}}
20
+          </span>
21
+        </li>
22
+
16 23
         <li v-if="isShow('干体重')">
17 24
           <label>干体重 : </label>
18 25
           <span class="content" v-if="dry_weight != '0'">{{ dry_weight }}</span>
@@ -310,7 +317,7 @@
310 317
           <span class="content">{{ this.record.special_treatment}}</span>
311 318
           <span class="unit"></span>
312 319
         </li>
313
-        
320
+
314 321
         <li v-if="isShow('血栓')">
315 322
           <label>血栓: </label>
316 323
           <span class="content" v-if="this.record.thromubus_type == 1">有</span>
@@ -323,7 +330,7 @@
323 330
           <span class="content">{{this.record.thrombus_av}}</span>
324 331
           <span class="unit"></span>
325 332
         </li>
326
-       
333
+
327 334
         <li v-if="isShow('血栓')">
328 335
           <label>导管A端约(cm): </label>
329 336
           <span class="content">{{this.record.thromubus_a}}</span>
@@ -349,7 +356,7 @@
349 356
           <span class="content">{{this.record.pre_dialysis_drugs}}</span>
350 357
           <span class="unit"></span>
351 358
         </li>
352
-       
359
+
353 360
         <li v-if="isShow('围手术期')">
354 361
           <label>围手术期: </label>
355 362
           <span class="content">
@@ -383,7 +390,7 @@
383 390
           <span class="content">{{this.record.suction}}</span>
384 391
           <span class="unit"></span>
385 392
         </li>
386
-       
393
+
387 394
       </ul>
388 395
     </div>
389 396
     <div class="note">
@@ -414,7 +421,7 @@ export default {
414 421
     console.log("血栓22222",this.record)
415 422
   },
416 423
   computed: {
417
-   
424
+
418 425
     weight_before: function() {
419 426
       if (this.record.id == 0) {
420 427
         return '-'

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

@@ -614,11 +614,18 @@
614 614
               <el-input v-model="form.after_urea"></el-input>
615 615
             </el-form-item>
616 616
        </el-col>
617
+       <el-col :span="8" v-if="isShow('累计血容量')">
618
+            <el-form-item label="累计血容量(L):"  label-width="150px">
619
+              <el-input v-model="form.accumulated_blood_volume"></el-input>
620
+            </el-form-item>
621
+        </el-col>
617 622
         <el-col :span="24" v-if="isShow('KT/V')">
618 623
             <el-form-item label="KT/V:">
619 624
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
620 625
             </el-form-item>
621 626
         </el-col>
627
+
628
+      
622 629
       </el-form>
623 630
 
624 631
 
@@ -793,6 +800,7 @@ export default {
793 800
         fallrisk:"",
794 801
         machine_run:"",
795 802
         after_urea:"",
803
+        accumulated_blood_volume:"",
796 804
       },
797 805
       lapseList:[],
798 806
       leaveOfficeMethod:[],
@@ -945,7 +953,7 @@ export default {
945 953
       data['weight_after'] = this.form.weight_after ? parseFloat(this.form.weight_after) : 0
946 954
       data['weight_loss'] = this.form.weight_loss ? parseFloat(this.form.weight_loss) : 0
947 955
       data['temperature'] = this.form.temperature ? parseFloat(this.form.temperature) : 0
948
-      data['breathing_rate'] = this.form.temperature ? parseFloat(this.form.breathing_rate) : 0
956
+      data['breathing_rate'] = this.form.breathing_rate 
949 957
       data['systolic_blood_pressure'] = this.form.systolic_blood_pressure ? parseFloat(this.form.systolic_blood_pressure) : 0
950 958
       data['diastolic_blood_pressure'] = this.form.diastolic_blood_pressure ? parseFloat(this.form.diastolic_blood_pressure) : 0
951 959
       data['pulse_frequency'] = this.form.pulse_frequency ? parseFloat(this.form.pulse_frequency) : 0
@@ -1013,6 +1021,7 @@ export default {
1013 1021
       data["machine_run"] = this.form.machine_run
1014 1022
       data["after_urea"] = this.form.after_urea
1015 1023
       data["pip_coagulation"] = this.form.pip_coagulation
1024
+      data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1016 1025
       console.log("Paramsquery",data)
1017 1026
 
1018 1027
       postAssessmentAfterDislysis(ParamsQuery, data)

+ 10 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -29,6 +29,12 @@
29 29
             </el-form-item>
30 30
           </el-col>
31 31
 
32
+          <el-col :span="8">
33
+            <el-form-item label="透前体重备注:" v-if="isShow('透前体重备注')">
34
+              <el-input v-model="assessmentBeforeDislysis.weight_befor_remake"></el-input>
35
+            </el-form-item>
36
+          </el-col>
37
+
32 38
           <el-col :span="8">
33 39
             <el-form-item label="干体重(kg):"
34 40
                           v-if="isShow('干体重')">
@@ -89,7 +95,7 @@
89 95
 
90 96
           <el-col :span="8">
91 97
             <el-form-item label="呼吸频率(次/分):" v-if="isShow('呼吸频率')">
92
-              <el-input type="number" v-model="assessmentBeforeDislysis.breathing_rate"></el-input>
98
+              <el-input  v-model="assessmentBeforeDislysis.breathing_rate"></el-input>
93 99
             </el-form-item>
94 100
           </el-col>
95 101
 
@@ -553,6 +559,8 @@
553 559
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
554 560
             </el-form-item>
555 561
           </el-col>
562
+
563
+ 
556 564
          
557 565
           <el-col :span="24">
558 566
             <el-form-item label="备注: ">
@@ -725,6 +733,7 @@
725 733
           blood_pressure_during_dialysis:"",
726 734
           urea_befor:"",
727 735
           suction:"",
736
+          weight_befor_remake:"",
728 737
         },
729 738
 
730 739
         InnerDialogProps: {

+ 18 - 9
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -196,7 +196,7 @@
196 196
 
197 197
                     <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
198 198
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54">
199
-                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45">
199
+                          <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">
200 200
                             <el-form-item
201 201
                                     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'
202 202
                                     :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
@@ -207,7 +207,7 @@
207 207
                             </el-form-item>
208 208
 
209 209
                             <el-form-item
210
-                                    v-if='dialysisPrescription.anticoagulant == 2 && 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 && dialysisPrescription.anticoagulant == 2'
210
+                                    v-if='dialysisPrescription.anticoagulant == 2 && 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 == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 && dialysisPrescription.anticoagulant == 2'
211 211
                                     :label="'首剂(mg) : '">
212 212
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
213 213
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -255,8 +255,8 @@
255 255
 
256 256
 
257 257
                     <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
258
-                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
259
-                          <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">
258
+                        <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 ">
259
+                          <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">
260 260
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
261 261
                                           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">
262 262
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -265,7 +265,7 @@
265 265
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
266 266
                             </el-form-item>
267 267
                             <el-form-item :label="'维持(mg/h) : '"
268
-                                          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  ">
268
+                                          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 == 10346 ||  this.$store.getters.xt_user.template_info.org_id == 10387">
269 269
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
270 270
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
271 271
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
@@ -308,9 +308,9 @@
308 308
 
309 309
                     <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
310 310
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
311
-                          <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">
311
+                          <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">
312 312
                             <el-form-item
313
-                                    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'
313
+                                    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'
314 314
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
315 315
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
316 316
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -318,7 +318,7 @@
318 318
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
319 319
                             </el-form-item>
320 320
                             <el-form-item
321
-                                    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'
321
+                                    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'
322 322
                                     :label="'总量(mg) : '">
323 323
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
324 324
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -2204,7 +2204,12 @@
2204 2204
                 return
2205 2205
               }
2206 2206
             }
2207
+            
2207 2208
           }
2209
+          if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2210
+            this.dialysisPrescription.displace_liqui_part = 0
2211
+            this.dialysisPrescription.displace_liqui_value = 0
2212
+          } 
2208 2213
 
2209 2214
           this.is_pre = 1
2210 2215
 
@@ -2691,6 +2696,10 @@
2691 2696
                 return
2692 2697
               }
2693 2698
             }
2699
+            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2700
+               this.dialysisPrescription.displace_liqui_part == 0 
2701
+              this.dialysisPrescription.displace_liqui_value == 0
2702
+            }
2694 2703
           }
2695 2704
 
2696 2705
           this.is_pre = 2
@@ -3289,7 +3298,7 @@
3289 3298
       },
3290 3299
       changePrescription(id) {
3291 3300
         console.log("id233223232323232323",id)
3292
-        if(id == 1){
3301
+        if(id != 2 && id!=5 && id!= 12){
3293 3302
           this.dialysisPrescription.displace_liqui_value = ""
3294 3303
           this.dialysisPrescription.displace_liqui_part = ""
3295 3304
         }

+ 113 - 56
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

@@ -4,7 +4,7 @@
4 4
       <!-- <div class="txsj">
5 5
       </div> -->
6 6
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
7
-      <el-form :model="form" label-width="100px">
7
+      <el-form :model="form" label-width="100px"  :rules="drugdicRules"  ref="form">
8 8
         <el-form-item label="下机护士">
9 9
           <el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0)">
10 10
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
@@ -28,12 +28,12 @@
28 28
               <el-radio :label="2">无</el-radio>
29 29
            </el-radio-group>
30 30
         </el-form-item>
31
-        
31
+
32 32
         <el-form-item label="内瘘: " v-if="isShowFiled('内瘘')">
33 33
             <el-input v-model="form.internal_fistula" readonly  @focus="showInnerDialog('7')" style="width:200px"></el-input>
34 34
         </el-form-item>
35 35
 
36
-    
36
+
37 37
         <el-form-item label="导管: " v-if="isShowFiled('导管')">
38 38
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
39 39
         </el-form-item>
@@ -45,18 +45,18 @@
45 45
             readonly
46 46
             @focus="showInnerDialog('1')"
47 47
           ></el-input>
48
-       </el-form-item> 
48
+       </el-form-item>
49 49
 
50 50
         <el-form-item>
51
-          <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit" :loading="loading"
51
+          <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit('form')" :loading="loading"
52 52
                      type="primary">执行下机
53 53
           </el-button>
54 54
           <el-button
55 55
             v-if="dialysis_order.stage == 2 "
56
-            type="primary" @click="modifyFinish">修改下机
56
+            type="primary" @click="modifyFinish('form')">修改下机
57 57
           </el-button>
58 58
         </el-form-item>
59
-        
59
+
60 60
 
61 61
 
62 62
       </el-form>
@@ -114,6 +114,10 @@
114 114
         },
115 115
         catheter: [],
116 116
         cruorOptions: [],
117
+        drugdicRules: {
118
+         internal_fistula: [{ required: true, message: "请选择内瘘" }]
119
+        },
120
+        required:false,
117 121
       }
118 122
     },
119 123
     props: {
@@ -165,12 +169,25 @@
165 169
     methods: {
166 170
        isShowFiled(name) {
167 171
         var filedList = store.getters.xt_user.fileds
168
-       
169 172
         for (let i = 0; i < filedList.length; i++) {
170 173
           if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
171 174
             return true
172 175
           }
176
+          if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_write!=undefined &&  filedList[i].is_write == 1) {
177
+             this.required = true
178
+          }
173 179
         }
180
+        this.required = false
181
+        return false
182
+      },
183
+      isWrite(name){
184
+        var filedList = store.getters.xt_user.fileds
185
+        for (let i = 0; i < filedList.length; i++) {
186
+          if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_write == 1) {
187
+            return true
188
+          }
189
+        }
190
+        
174 191
         return false
175 192
       },
176 193
       show: function(record) {
@@ -193,7 +210,7 @@
193 210
         if(this.$route.query.patient_id){
194 211
           this.patient_id = this.$route.query.patient_id
195 212
         }
196
-        
213
+
197 214
         this.schedule_date = this.$route.query.date
198 215
 
199 216
         if (this.dialysis_order.id == 0) {
@@ -250,57 +267,97 @@
250 267
       hide: function() {
251 268
         this.visible = false
252 269
       },
253
-      modifyFinish:function(){
254
-        let ParamsQuery = {};
255
-        ParamsQuery["id"] = this.dialysis_order.id;
256
-        ParamsQuery["nurse"] = this.form.nurse_id;
257
-        ParamsQuery["end_time"] = this.end_time;
258
-        ParamsQuery["mode"] = "2"
259
-        ParamsQuery["puncture_point_haematoma"] = paseInt(this.form.puncture_point_haematoma)
260
-        ParamsQuery["internal_fistula"] = this.form.internal_fistula
261
-        ParamsQuery["catheter"] = this.form.catheter
262
-        ParamsQuery["cruor"] = this.form.cruor
263
-        if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
264
-          ParamsQuery["mode"] = "3"
265
-        }
266
-        PostModifyFinishDialysis(ParamsQuery).then(response => {
267
-          if (response.data.state == 0) {
268
-            this.$message.error(response.data.msg)
269
-
270
-            return false;
271
-          } else {
272
-            this.$message.success("修改成功")
273
-            var record = this.dialysis_order;
274
-            for (const key in response.data.data.dialysis_order) {
275
-              this.$set(record, key, response.data.data.dialysis_order[key]);
270
+      modifyFinish:function(formName){
271
+        this.$refs[formName].validate(valid=>{
272
+          if(valid){
273
+            if(this.isWrite("穿刺处血肿") == true && this.form.puncture_point_haematoma == ""){
274
+              this.$message.error("请选择穿刺处血肿")
275
+              return
276
+             }
277
+            if(this.isWrite("内瘘") == true && this.form.internal_fistula == ""){
278
+              this.$message.error("请选择内瘘")
279
+              return
280
+             }
281
+            if(this.isWrite("导管") == true && this.form.catheter == ""){
282
+              this.$message.error("请选择导管")
283
+              return
284
+             }
285
+            if(this.isWrite("透析器凝血") == true && this.form.cruor == ""){
286
+              this.$message.error("请选择透析器凝血")
287
+              return
288
+             }
289
+            let ParamsQuery = {};
290
+            ParamsQuery["id"] = this.dialysis_order.id;
291
+            ParamsQuery["nurse"] = this.form.nurse_id;
292
+            ParamsQuery["end_time"] = this.end_time;
293
+            ParamsQuery["mode"] = "2"
294
+            ParamsQuery["puncture_point_haematoma"] = parseInt(this.form.puncture_point_haematoma)
295
+            ParamsQuery["internal_fistula"] = this.form.internal_fistula
296
+            ParamsQuery["catheter"] = this.form.catheter
297
+            ParamsQuery["cruor"] = this.form.cruor
298
+            if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
299
+              ParamsQuery["mode"] = "3"
276 300
             }
277
-            console.log(response.data.data.after)
278
-            this.$emit('assessmentAfterDislysis', response.data.data.after)
279
-          }
280
-        });
281
-
301
+            PostModifyFinishDialysis(ParamsQuery).then(response => {
302
+              if (response.data.state == 0) {
303
+                this.$message.error(response.data.msg)
282 304
 
305
+                return false;
306
+              } else {
307
+                this.$message.success("修改成功")
308
+                var record = this.dialysis_order;
309
+                for (const key in response.data.data.dialysis_order) {
310
+                  this.$set(record, key, response.data.data.dialysis_order[key]);
311
+                }
312
+                console.log(response.data.data.after)
313
+                this.$emit('assessmentAfterDislysis', response.data.data.after)
314
+              }
315
+            });
316
+          }
317
+        })
283 318
       },
284
-      submit: function() {
285
-        this.loading = true
286
-        let mode = "1"
287
-        finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
288
-          this.loading = false
289
-          var resp = rs.data
290
-          if (resp.state == 1) {
291
-            var dialysis_order = resp.data.dialysis_order
292
-            var this_order = this.dialysis_order
293
-            for (const key in dialysis_order) {
294
-              this.$set(this_order, key, dialysis_order[key])
295
-            }
296
-            let orgId = parseInt(sessionStorage.getItem("org_id"));
297
-            this.hide()
298
-            this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
319
+      submit: function(formName) {
320
+        
321
+        this.$refs[formName].validate(valid=>{
322
+          if(valid){
323
+             if(this.isWrite("穿刺处血肿") == true && this.form.puncture_point_haematoma == ""){
324
+              this.$message.error("请选择穿刺处血肿")
325
+              return
326
+             }
327
+             if(this.isWrite("内瘘") == true && this.form.internal_fistula == ""){
328
+              this.$message.error("请选择内瘘")
329
+              return
330
+             }
331
+            if(this.isWrite("导管") == true && this.form.catheter == ""){
332
+              this.$message.error("请选择导管")
333
+              return
334
+             }
335
+            if(this.isWrite("透析器凝血") == true && this.form.cruor == ""){
336
+              this.$message.error("请选择透析器凝血")
337
+              return
338
+             }
339
+             this.loading = true
340
+             let mode = "1"
341
+            finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
342
+              this.loading = false
343
+              var resp = rs.data
344
+              if (resp.state == 1) {
345
+                var dialysis_order = resp.data.dialysis_order
346
+                var this_order = this.dialysis_order
347
+                for (const key in dialysis_order) {
348
+                  this.$set(this_order, key, dialysis_order[key])
349
+                }
350
+                let orgId = parseInt(sessionStorage.getItem("org_id"));
351
+                this.hide()
352
+                this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
299 353
 
300
-          } else {
301
-            this.$message.error(resp.msg)
354
+              } else {
355
+                this.$message.error(resp.msg)
356
+              }
357
+            })
302 358
           }
303 359
         })
360
+    
304 361
       }, getTime(value, temp) {
305 362
         if (value != undefined) {
306 363
           return parseTime(value, temp)
@@ -364,7 +421,7 @@
364 421
             this.InnerDialogProps.selected = this.form.cruor
365 422
             this.InnerDialogProps.isShowTextArea = false
366 423
             break
367
-          
424
+
368 425
         }
369 426
       },
370 427
       innerDialogComfirm: function(val) {
@@ -383,7 +440,7 @@
383 440
       },
384 441
       innerDialogCancle: function() {
385 442
         this.InnerDialogProps.visibility = false
386
-      }, 
443
+      },
387 444
     }
388 445
   }
389 446
 </script>

+ 22 - 29
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -440,8 +440,8 @@
440 440
                 template_id == 48 ||
441 441
                 template_id == 53 ||
442 442
                 template_id == 54 ||
443
-                template_id == 56 ||
444
-                template_id == 47)
443
+                template_id == 56 
444
+               )
445 445
             "
446 446
           >
447 447
             <template slot-scope="scope">
@@ -465,8 +465,7 @@
465 465
               template_id != 48 &&
466 466
               template_id != 53 &&
467 467
               template_id != 54 &&
468
-              template_id != 56 &&
469
-              template_id != 47
468
+              template_id != 56 
470 469
             "
471 470
           >
472 471
             <template slot-scope="scope">
@@ -667,7 +666,7 @@
667 666
               <span v-if="scope.row.monitor_anticoagulant == 8">依诺肝素</span>
668 667
               <span v-if="scope.row.monitor_anticoagulant == 9">达肝素</span>
669 668
               <span v-if="scope.row.monitor_anticoagulant == 12">无抗凝剂</span>
670
-              <span v-if="scope.row.monitor_anticoagulant == 13">那肝素钙</span>
669
+              <span v-if="scope.row.monitor_anticoagulant == 13">那肝素钙</span>
671 670
               <span v-if="scope.row.monitor_anticoagulant_value != ''"
672 671
                 >({{
673 672
                   scope.row.monitor_anticoagulant_value
@@ -707,7 +706,7 @@
707 706
             align="center"
708 707
             label="累计血容量(ml)"
709 708
             width="100"
710
-            v-if="isShow('累计血容量') && template_id != 41"
709
+            v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671"
711 710
           >
712 711
              <template slot-scope="scope">
713 712
               {{ scope.row.accumulated_blood_volume }}
@@ -718,7 +717,7 @@
718 717
             align="center"
719 718
             label="累计血容量(L)"
720 719
             width="100"
721
-            v-if="isShow('累计血容量') && template_id == 41"
720
+            v-if="isShow('累计血容量') && (template_id == 41  || org_id == 9538 || org_id == 9671)"
722 721
           >
723 722
             <template slot-scope="scope">
724 723
               {{ scope.row.accumulated_blood_volume }}
@@ -1191,7 +1190,6 @@
1191 1190
               template_id != 26 &&
1192 1191
               template_id != 29 &&
1193 1192
               template_id != 46 &&
1194
-              template_id != 47 &&
1195 1193
               template_id != 48 &&
1196 1194
               template_id != 54 &&
1197 1195
               template_id != 56 &&
@@ -1213,7 +1211,6 @@
1213 1211
                 template_id == 26 ||
1214 1212
                 template_id == 29 ||
1215 1213
                 template_id == 46 ||
1216
-                template_id == 47 ||
1217 1214
                 template_id == 53 ||
1218 1215
                 template_id == 54 ||
1219 1216
                 template_id == 56 ||
@@ -1384,13 +1381,13 @@
1384 1381
             </el-form-item>
1385 1382
           </el-col>
1386 1383
 
1387
-          <el-col :span="8" v-if="isShow('累计血容量') && template_id == 41">
1384
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538)">
1388 1385
             <el-form-item label="累计血容量(L):">
1389 1386
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1390 1387
             </el-form-item>
1391 1388
           </el-col>
1392
-         
1393
-          <el-col :span="8" v-if="isShow('累计血容量') && template_id  != 41">
1389
+
1390
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && org_id!=9538)">
1394 1391
             <el-form-item label="累计血容量(ml):">
1395 1392
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1396 1393
             </el-form-item>
@@ -1553,7 +1550,7 @@
1553 1550
 
1554 1551
       <div slot="footer" class="dialog-footer" v-show="edit">
1555 1552
         <el-button @click="cancelEditAction">取 消</el-button>
1556
-        <el-button type="primary" @click="submitAction">保 存</el-button>
1553
+        <el-button :loading="loading" type="primary"  @click="submitAction">保 存</el-button>
1557 1554
       </div>
1558 1555
       <!--</div>-->
1559 1556
     </el-dialog>
@@ -1576,6 +1573,7 @@ export default {
1576 1573
   name: "MonitorDialog",
1577 1574
   data() {
1578 1575
     return {
1576
+      loading: false,
1579 1577
       is_has_create: true,
1580 1578
       is_has_modify: true,
1581 1579
       is_has_modify_other: true,
@@ -1685,7 +1683,7 @@ export default {
1685 1683
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
1686 1684
     this.form.operate_time = new Date().getTime();
1687 1685
     var symptoms = getDataConfig("hemodialysis", "symptoms");
1688
-    
1686
+
1689 1687
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1690 1688
     //console.log("抗凝剂",this.anticoagulantsConfit)
1691 1689
     this.bloodPressureMmonitoringSite = getDataConfig(
@@ -1803,6 +1801,7 @@ export default {
1803 1801
     },
1804 1802
 
1805 1803
     newRecordAction: function () {
1804
+      console.log("111111111")
1806 1805
       this.setEditMonitor(null);
1807 1806
       this.$refs.table.setCurrentRow(null);
1808 1807
       console.log(this.dispose_options,'oop')
@@ -1953,12 +1952,14 @@ export default {
1953 1952
         return;
1954 1953
       }
1955 1954
       this.creator = this.table_current_row.creator;
1955
+      console.log("22222222222")
1956 1956
       this.setEditMonitor(this.table_current_row);
1957 1957
       this.$refs.table.setCurrentRow(null);
1958 1958
       this.edit = true;
1959 1959
       this.isAdd = false;
1960 1960
     },
1961 1961
     cancelEditAction: function () {
1962
+      console.log("3333333333")
1962 1963
       this.setEditMonitor(null);
1963 1964
       this.$refs.table.setCurrentRow(null);
1964 1965
       this.edit = false;
@@ -2127,6 +2128,8 @@ export default {
2127 2128
 
2128 2129
     submitAction: function () {
2129 2130
       // TODO loading
2131
+      this.loading = true
2132
+      console.log("aaaa")
2130 2133
       var is_new = this.form.id;
2131 2134
       this.form.operate_time = parseInt(this.form.operate_time / 1000);
2132 2135
       this.form.systolic_bp =
@@ -2142,13 +2145,8 @@ export default {
2142 2145
           ? 0
2143 2146
           : parseFloat(this.form.temperature);
2144 2147
       this.form.pulse_frequency =
2145
-        parseFloat(this.form.pulse_frequency) == NaN
2146
-          ? 0
2147
-          : parseFloat(this.form.pulse_frequency);
2148
-      this.form.breathing_rated =
2149
-        parseFloat(this.form.breathing_rated) == NaN
2150
-          ? 0
2151
-          : parseFloat(this.form.breathing_rated);
2148
+      parseFloat(this.form.pulse_frequency) == NaN ? 0: parseFloat(this.form.pulse_frequency);
2149
+      this.form.breathing_rated = this.form.breathing_rated
2152 2150
       this.form.blood_flow_volume =
2153 2151
         parseFloat(this.form.blood_flow_volume) == NaN
2154 2152
           ? 0
@@ -2306,14 +2304,8 @@ export default {
2306 2304
               parseFloat(this.form.temperature) == NaN
2307 2305
                 ? 0
2308 2306
                 : parseFloat(this.form.temperature);
2309
-            this.form.pulse_frequency =
2310
-              parseFloat(this.form.pulse_frequency) == NaN
2311
-                ? 0
2312
-                : parseFloat(this.form.pulse_frequency);
2313
-            this.form.breathing_rated =
2314
-              parseFloat(this.form.breathing_rated) == NaN
2315
-                ? 0
2316
-                : parseFloat(this.form.breathing_rated);
2307
+            this.form.pulse_frequency =parseFloat(this.form.pulse_frequency) == NaN? 0 : parseFloat(this.form.pulse_frequency);
2308
+            this.form.breathing_rated = this.form.breathing_rated
2317 2309
             this.form.blood_flow_volume =
2318 2310
               parseFloat(this.form.blood_flow_volume) == NaN
2319 2311
                 ? 0
@@ -2430,6 +2422,7 @@ export default {
2430 2422
           }
2431 2423
         }
2432 2424
       );
2425
+      this.loading = false
2433 2426
     },
2434 2427
 
2435 2428
     symptomTextareaBlur: function () {

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

@@ -20,8 +20,8 @@
20 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" 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
-          <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 == 47 || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56) " width="92px" > 置换率(ml/min) </th>
24
-          <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 != 47 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56" width="92px" > 置换率(L/h)  </th>
23
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56) " width="92px" > 置换率(ml/min) </th>
24
+          <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" width="92px" > 置换率(L/h)  </th>
25 25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26 26
           <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56)" width="92px"  > 置换量(ml)  </th>
27 27
           <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56)" width="92px" > 置换量(L) </th>
@@ -33,8 +33,8 @@
33 33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34 34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35 35
           <th v-if="isShow('累计血容量')" width="92px">累计血容量 
36
-            <span v-if="template_id !=41">(ml)</span>
37
-            <span v-if="template_id == 41">(L)</span>
36
+            <span v-if="template_id !=41 && org_id!=9671 && org_id!=9538">(ml)</span>
37
+            <span v-if="template_id == 41 || org_id == 9671 || org_id == 9538">(L)</span>
38 38
           </th>
39 39
           <th v-if="isShow('血容量')" width="92px">血容量(L)</th>
40 40
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>

+ 4 - 1
src/xt_pages/dialysis/details/index.vue View File

@@ -333,7 +333,10 @@
333 333
                 
334 334
                 </div>
335 335
                 <div class="printCell" style="display:flex;justify-content: space-around;">
336
-                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}L</span>
336
+                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
337
+                    <span v-if="$store.getters.xt_user.org.id == 10278">ml</span> 
338
+                    <span v-else>L</span>
339
+                  </span>
337 340
                   <span style="display: block;width: 50%;">
338 341
                     总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
339 342
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">

+ 1 - 1
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -562,7 +562,7 @@ export default {
562 562
               console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
563 563
              
564 564
               let projectArr = []
565
-              if(this.org_id!= 10318){
565
+              if(this.org_id!= 10318 && this.org_id!=10265){
566 566
                 this.project.map(item => {
567 567
                   resp.data.hisAdvices.map(it => {
568 568
                     if(item.patient_id == it.patient_id){

+ 1 - 1
src/xt_pages/dialysis/dialysisDrugs_print.vue View File

@@ -41,7 +41,7 @@
41 41
                                       <span v-if="item.anticoagulant==8">依诺肝素</span>
42 42
                                       <span v-if="item.anticoagulant==9">达肝素</span>
43 43
                                       <span v-if="item.anticoagulant==10">体外抗凝</span>
44
-                                      <span v-if="item.anticoagulant==11">那肝素</span>
44
+                                      <span v-if="item.anticoagulant==11">那肝素</span>
45 45
                                     </td>
46 46
                                     <td>
47 47
                                       {{item.count}}

+ 62 - 10
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -704,7 +704,7 @@
704 704
       </template>
705 705
       <template
706 706
         v-if="
707
-          org_template_info.template_id == 56
707
+          org_template_info.template_id == 56 ||org_template_info.template_id == 59
708 708
         "
709 709
       >
710 710
         <el-button
@@ -716,6 +716,35 @@
716 716
           >打印</el-button
717 717
         >
718 718
       </template>
719
+      <template
720
+        v-if="
721
+          org_template_info.template_id == 57
722
+        "
723
+      >
724
+        <el-button
725
+          :loading="loading"
726
+          size="small"
727
+          icon="el-icon-printer"
728
+          @click="printThisPage"
729
+          type="primary"
730
+          >打印</el-button
731
+        >
732
+      </template>
733
+      <template
734
+        v-if="
735
+          org_template_info.template_id == 58
736
+        "
737
+      >
738
+        <el-button
739
+          :loading="loading"
740
+          size="small"
741
+          icon="el-icon-printer"
742
+          @click="printThisPage"
743
+          type="primary"
744
+          >打印</el-button
745
+        >
746
+      </template>
747
+      
719 748
     </div>
720 749
     <div class="app-container" style="min-height: 0">
721 750
       <!--<div class="order-print-btn"-->
@@ -1127,7 +1156,18 @@
1127 1156
             v-if="org_template_info.template_id == 56"
1128 1157
           >
1129 1158
           </DialysisPrintOrderFiftySix>
1130
-          
1159
+          <DialysisPrintOrderFiftySeven
1160
+            v-bind:childResponse="childResponse"
1161
+            v-if="org_template_info.template_id == 57">
1162
+          </DialysisPrintOrderFiftySeven>
1163
+          <DialysisPrintOrderFiftyEight
1164
+            v-bind:childResponse="childResponse"
1165
+            v-if="org_template_info.template_id == 58">
1166
+          </DialysisPrintOrderFiftyEight>
1167
+          <DialysisPrintOrderFiftyNine
1168
+          v-bind:childResponse="childResponse"
1169
+            v-if="org_template_info.template_id == 59">
1170
+          </DialysisPrintOrderFiftyNine>
1131 1171
         </div>
1132 1172
       </el-container>
1133 1173
     </div>
@@ -1200,11 +1240,17 @@ import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1200 1240
 import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo";
1201 1241
 import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree";
1202 1242
 import DialysisPrintOrderFiftyFour from "./template/DialysisPrintOrderFiftyFour";
1203
-import DialysisPrintOrderFiftyfive from "./template/DialysisPrintOrderFiftyfive"
1204
-import DialysisPrintOrderFiftySix from "./template/DialysisPrintOrderFiftySix"
1243
+import DialysisPrintOrderFiftyfive from "./template/DialysisPrintOrderFiftyfive";
1244
+import DialysisPrintOrderFiftySix from "./template/DialysisPrintOrderFiftySix";
1245
+import DialysisPrintOrderFiftySeven from "./template/DialysisPrintOrderFiftySeven";
1246
+import DialysisPrintOrderFiftyEight from "./template/DialysisPrintOrderFiftyEight";
1247
+import DialysisPrintOrderFiftyNine from "./template/DialysisPrintOrderFiftyNine";
1205 1248
 export default {
1206 1249
   name: "dialysisPrintOrder",
1207 1250
   components: {
1251
+    DialysisPrintOrderFiftyNine,
1252
+    DialysisPrintOrderFiftyEight,
1253
+    DialysisPrintOrderFiftySeven,
1208 1254
     DialysisPrintOrderFiftySix,
1209 1255
     DialysisPrintOrderFiftyfive,
1210 1256
     DialysisPrintOrderFiftyFour,
@@ -1421,12 +1467,16 @@ export default {
1421 1467
         '@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;}';
1422 1468
       const style2 =
1423 1469
         // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1424
-        '@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; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;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 inside_table tbody tr{page-break-inside:avoid;} .print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1470
+        '@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; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 20px;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{page-break-inside:avoid;} .print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1425 1471
       const style3 =
1426 1472
         '@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:16px;border-color: #000;}.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 #000;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;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1427 1473
       // const style3 =
1428 1474
       //   '@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: 16px;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: 16px;padding: 5px 5px;line-height: 18px;}.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:950px;}.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;}';
1429 1475
       //
1476
+      const style4 =
1477
+        '@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:18px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:18px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:18px}.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;}';
1478
+      
1479
+ 
1430 1480
 
1431 1481
       const style5 =
1432 1482
         '@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 0px 20px;}.dialysis-print-order .table-box {  width: 100%;  line-height: 18px;  font-size: 14px;}.dialysis-print-order .print-table {  width: 100%;  text-align: center;  border-collapse: collapse;  line-height: 28px;  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;}.dialysis-print-order .radio-lebel-box {  font-weight: 400;  cursor: pointer;}.dialysis-print-order .radio-no {  opacity: 0;  outline: none;  position: absolute;  margin: 0;  width: 0;  height: 0;  z-index: -1;}.dialysis-print-order .radio-inner {  white-space: nowrap;  cursor: pointer;  outline: none;  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 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),    background-color 0.25s cubic-bezier(0.71, -0.46, 0.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;}.dialysis-print-order .print-table tr td {  padding: 1px 1px;  /*line-height: 25px;*/}.es-img {  height: 25px;}.advice-name {  text-align: left;}.advice-children {  display: flex;}.title-box-pro {  border: 0 #fff;  line-height: 25px;  height: 25px;  text-align: left;  padding-left: 10px !important;}.title-box-pro-tr {  border: 0 #fff;}.text-align-left {  text-align: left !important;  padding-left: 10px !important;  font-size: 14px !important;  line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
@@ -1447,7 +1497,7 @@ export default {
1447 1497
       // 雷州惠爱样式
1448 1498
       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;} .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;} ';
1449 1499
       // 金乡宏大样式
1450
-      const style13 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .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;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 390px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-4{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-4 .tr_3{border-bottom: 1px solid;}  .print-table-4 .td_3 {border-right: 1px solid;} .print-table-4 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-4 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-5{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-5 tr td_5{width:75px;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1500
+      const style13 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr{page-break-inside:avoid} .print-table tbody tr td{border-collapse:collapse;} .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;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 390px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-4{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-4 .tr_3{border-bottom: 1px solid;}  .print-table-4 .td_3 {border-right: 1px solid;} .print-table-4 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-4 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-5{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-5 tr td_5{width:75px;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1451 1501
 
1452 1502
       if (this.org_template_info.template_id == 1) {
1453 1503
         printJS({
@@ -1493,7 +1543,8 @@ export default {
1493 1543
         this.org_template_info.template_id == 11 ||
1494 1544
         this.org_template_info.template_id == 49 ||
1495 1545
         this.org_template_info.template_id == 50 ||
1496
-        this.org_template_info.template_id == 51
1546
+        this.org_template_info.template_id == 51 ||
1547
+        this.org_template_info.template_id == 58
1497 1548
       ) {
1498 1549
         printJS({
1499 1550
           printable: "dialysis-print-box-1",
@@ -1505,7 +1556,7 @@ export default {
1505 1556
         printJS({
1506 1557
           printable: "dialysis-print-box",
1507 1558
           type: "html",
1508
-          style: style,
1559
+          style: style4,
1509 1560
           scanStyles: false,
1510 1561
         });
1511 1562
       } else if (this.org_template_info.template_id == 8) {
@@ -1797,8 +1848,9 @@ export default {
1797 1848
           style: style12,
1798 1849
           scanStyles: false,
1799 1850
         });
1851
+        
1800 1852
       }else if (
1801
-        this.org_template_info.template_id == 54
1853
+        this.org_template_info.template_id == 54 || this.org_template_info.template_id == 57
1802 1854
       ) {
1803 1855
         printJS({
1804 1856
           printable: "dialysis-print-box",
@@ -1816,7 +1868,7 @@ export default {
1816 1868
           scanStyles: false,
1817 1869
         });
1818 1870
       }else if (
1819
-        this.org_template_info.template_id == 56
1871
+        this.org_template_info.template_id == 56 ||this.org_template_info.template_id == 59
1820 1872
       ) {
1821 1873
         printJS({
1822 1874
           printable: "dialysis-print-box-1",

+ 12 - 5
src/xt_pages/dialysis/schedualPatient.vue View File

@@ -87,7 +87,7 @@
87 87
           <div v-if="zone_schedule.schedules.length > 0 && patientStateVal != 1" style="font-size:16px;font-weight: bold;color: #34495e;margin-right:10px;line-height:30px;">{{zone_schedule.zone_name}}</div>
88 88
           <patient-box :schedules="zone_schedule.schedules" :patientStateVal='patientStateVal' :selected_date="selected_date" style="flex:1"></patient-box>
89 89
         </div>
90
-        
90
+
91 91
         <div class="NoData" v-show="filtedSchedules.length == 0">
92 92
           <img src="@/assets/img/data.jpg" alt="">
93 93
         </div>
@@ -392,7 +392,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
392 392
         this.websocket.onmessage = e => {
393 393
           let res = JSON.parse(e.data);
394 394
           // let res = re.data;
395
-          console.log('res3333333333',res)
395
+          console.log('res333adasda3333333',res)
396 396
           if(res.channel == 'queue/join'){
397 397
             let timeType = null
398 398
             if(this.schedule_type_selected == 1){
@@ -423,7 +423,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
423 423
                 }
424 424
             }
425 425
             this.fisrtQueueInfo = fisrtQueueInfo
426
-            
426
+
427 427
             // this.fisrtQueueInfo = res.data.fisrtQueueInfo
428 428
             let arr = res.data.patientQueueList.data
429 429
             let waitingCalledArr = []
@@ -609,10 +609,17 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
609 609
           var resp = rs.data
610 610
           if (resp.state == 1) {
611 611
             var zones = resp.data.zones
612
+            var arr = []
613
+            for(let i=0;i<zones.length;i++){
614
+              if(zones[i].status == 1){
615
+                 arr.push(zones[i])
616
+              }
617
+            }
618
+            console.log("zone2w233323232wid",zones)
612 619
             var schedules = resp.data.schedules
613 620
             var zone_options = [{ id: 0, text: '全部分区' }]
614
-            for (let z_i = 0; z_i < zones.length; z_i++) {
615
-              const zone = zones[z_i]
621
+            for (let z_i = 0; z_i < arr.length; z_i++) {
622
+              const zone = arr[z_i]
616 623
               zone_options.push({ id: zone.id, text: zone.name })
617 624
             }
618 625
             this.zone_options = zone_options

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


+ 33 - 20
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue View File

@@ -180,19 +180,19 @@
180 180
                 showValue="低分子肝素钠:"
181 181
               ></label-box>
182 182
 
183
-              &nbsp;&nbsp;{{
183
+              &nbsp;&nbsp;<span v-if="org_id!=10090">{{
184 184
                 prescription.anticoagulant_zongliang &&
185 185
                 (prescription.anticoagulant == 3 ||
186 186
                   prescription.anticoagulant == 6 ||
187 187
                   prescription.anticoagulant == 7)
188 188
                   ? prescription.anticoagulant_zongliang
189 189
                   : ""
190
-              }}U;&nbsp;&nbsp;
190
+              }}U;</span>&nbsp;&nbsp;
191 191
               <label-box
192 192
                 :isChecked="prescription.anticoagulant == 2 ? true : false"
193 193
                 showValue="普通肝素:"
194 194
               ></label-box
195
-              >首剂 &nbsp;&nbsp;<span
195
+              ><span v-if="org_id!=10090">首剂 &nbsp;&nbsp;<span
196 196
                 ><span style="width: 35px; display: inline-block">
197 197
                   {{
198 198
                     prescription.anticoagulant_shouji &&
@@ -203,19 +203,24 @@
203 203
                   }}
204 204
                 </span></span
205 205
               >
206
-              mg&nbsp;&nbsp;&nbsp; 追加&nbsp;&nbsp;<span>{{
206
+              mg&nbsp;&nbsp;&nbsp; </span> 
207
+              <span v-if="org_id!=10090"> 追加&nbsp;&nbsp;<span>{{
207 208
                 prescription.anticoagulant_weichi &&
208 209
                 prescription.anticoagulant == 2
209 210
                   ? prescription.anticoagulant_weichi
210 211
                   : ""
211 212
               }}</span
212
-              >&nbsp;&nbsp;mg/h&nbsp; 总量&nbsp;&nbsp;<span>{{
213
+              >&nbsp;&nbsp;mg/h&nbsp; </span>
214
+              <span v-if="org_id!=10090">
215
+                总量&nbsp;&nbsp;<span>{{
213 216
                 prescription.anticoagulant_zongliang &&
214 217
                 prescription.anticoagulant == 2
215 218
                   ? prescription.anticoagulant_zongliang
216 219
                   : ""
217 220
               }}</span
218 221
               >&nbsp;&nbsp;mg;
222
+              </span>
223
+             
219 224
               <label-box
220 225
                 :isChecked="prescription.anticoagulant == 1 ? true : false"
221 226
                 showValue="无肝素"
@@ -226,7 +231,7 @@
226 231
               ></label-box>
227 232
             </td>
228 233
           </tr>
229
-          <tr class="list_table_1" style="line-height:40px;">
234
+          <tr class="list_table_1" style="line-height: 40px">
230 235
             <td
231 236
               width="250"
232 237
               style="border-right: none; padding-left: 10px"
@@ -821,9 +826,11 @@
821 826
             <td v-if="advice_index === 1">体重增加量:</td>
822 827
             <td v-if="advice_index === 1">
823 828
               {{
824
-                (
825
-                  predialysis.weight_before - assessmentafter.weight_after
826
-                ).toFixed(2)
829
+                (assessmentafter.weight_after == 0 || predialysis.weight_before == 0
830
+                  ? 0
831
+                  : (
832
+                      predialysis.weight_before - assessmentafter.weight_after
833
+                    ).toFixed(2))
827 834
               }}kg
828 835
             </td>
829 836
             <td v-if="advice_index === 2">干体重(DW):</td>
@@ -831,9 +838,11 @@
831 838
             <td v-if="advice_index === 3">较干体重增加量:</td>
832 839
             <td v-if="advice_index === 3">
833 840
               {{
834
-                (afterdialysis.weight_after - predialysis.dry_weight).toFixed(
835
-                  2
836
-                )
841
+                afterdialysis.weight_after == 0
842
+                  ? 0
843
+                  : (
844
+                      afterdialysis.weight_after - predialysis.dry_weight
845
+                    ).toFixed(2)
837 846
               }}kg
838 847
             </td>
839 848
             <td v-if="advice_index === 4">净脱水量:</td>
@@ -847,9 +856,11 @@
847 856
             <td v-if="advice_index === 6">本次透析体重下降量:</td>
848 857
             <td v-if="advice_index === 6">
849 858
               {{
850
-                (
851
-                  predialysis.weight_before - afterdialysis.weight_after
852
-                ).toFixed(2)
859
+                afterdialysis.weight_after == 0 || predialysis.weight_before == 0
860
+                  ? 0
861
+                  : (
862
+                      predialysis.weight_before - afterdialysis.weight_after
863
+                    ).toFixed(2)
853 864
               }}kg
854 865
             </td>
855 866
             <td v-if="advice_index > 6"></td>
@@ -886,9 +897,11 @@
886 897
               >
887 898
                 {{
888 899
                   getAdminUser(
889
-                    prescription == null? 0: prescription.creater ? prescription.prescription_doctor: ""
890
-                     
891
-                     
900
+                    prescription == null
901
+                      ? 0
902
+                      : prescription.creater
903
+                      ? prescription.prescription_doctor
904
+                      : ""
892 905
                   )
893 906
                 }}
894 907
               </span>
@@ -901,8 +914,8 @@
901 914
                       : prescription.creater
902 915
                       ? prescription.creater
903 916
                       : ''
904
-                  ) "
905
-               
917
+                  )
918
+                "
906 919
                 alt=""
907 920
                 srcset=""
908 921
                 v-else

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


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

@@ -573,7 +573,7 @@
573 573
                           {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
574 574
                           {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
575 575
                         </td>
576
-                        <td>{{ monitor.monitor_temperature ? monitor.monitor_temperature : "" }}</td>
576
+                        <td>{{ monitor.temperature ? monitor.temperature : "" }}</td>
577 577
                         <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
578 578
                         <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
579 579
                         <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}

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


+ 88 - 42
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

@@ -41,12 +41,12 @@
41 41
                   <tr class="list_table_1">
42 42
                     <td colspan="11" style="padding-left: 10px">
43 43
                       <div style="display: flex">
44
-                        <div style="width: 400px">
44
+                        <div style="width: 250px">
45 45
                           病情评估:&nbsp;<span>{{
46 46
                             sick_condition ? sick_condition : ""
47 47
                           }}</span>
48 48
                         </div>
49
-                        <div style="width: 400px">
49
+                        <div style="width: 250px">
50 50
                           入科方式:&nbsp;<span
51 51
                             v-for="(item, index) in way_arr"
52 52
                             :key="index"
@@ -56,6 +56,14 @@
56 56
                             >{{ item.name }}
57 57
                           </span>
58 58
                         </div>
59
+                        <div style="width: 250px">
60
+                          透析次数:&nbsp;<span>
61
+                            {{
62
+                              patientInfo.total_dialysis +
63
+                              patientInfo.user_sys_before_count
64
+                            }}次
65
+                          </span>
66
+                        </div>
59 67
                       </div>
60 68
                     </td>
61 69
                   </tr>
@@ -256,7 +264,7 @@
256 264
                           }}
257 265
                         </span></span
258 266
                       >
259
-                      mg&nbsp;&nbsp;&nbsp; 追加&nbsp;&nbsp;<span>{{
267
+                      &nbsp;mg&nbsp;&nbsp;&nbsp; 追加&nbsp;&nbsp;<span>{{
260 268
                         prescription.anticoagulant_weichi &&
261 269
                         prescription.anticoagulant == 2
262 270
                           ? prescription.anticoagulant_weichi
@@ -377,14 +385,17 @@
377 385
                             border-right: 1px solid;
378 386
                           "
379 387
                         >
380
-                          透析机:{{
381
-                            dialysisOrder &&
382
-                            dialysisOrder.DeviceNumber &&
383
-                            dialysisOrder.DeviceNumber.number.length > 0
384
-                              ? dialysisOrder.DeviceNumber.number
385
-                              : patientInfo.DialysisSchedule.device_number
386
-                                  .number
387
-                          }}
388
+                          透析机:
389
+                          <span v-if="dialysisOrder != null"
390
+                            >{{
391
+                              dialysisOrder &&
392
+                              dialysisOrder.DeviceNumber &&
393
+                              dialysisOrder.DeviceNumber.number.length > 0
394
+                                ? dialysisOrder.DeviceNumber.number
395
+                                : patientInfo.DialysisSchedule.device_number
396
+                                    .number
397
+                            }}
398
+                          </span>
388 399
                         </div>
389 400
                         <div
390 401
                           style="
@@ -759,22 +770,36 @@
759 770
             <td>
760 771
               <table class="print-table" border="1" style="text-align: center">
761 772
                 <tr>
762
-                  <td style="height: 20px" width="50">
773
+                  <td style="height: 20px" width="60">
763 774
                     <p style="height: 20px; line-height: 20px">时间</p>
764 775
                   </td>
765
-                  <td style="height: 20px" width="490">
776
+                  <td
777
+                    style="height: 20px"
778
+                    width="90"
779
+                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
780
+                  >
781
+                    <p style="height: 20px; line-height: 20px">开嘱医生</p>
782
+                  </td>
783
+                  <td style="height: 20px" width="344">
766 784
                     <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
767 785
                   </td>
768
-                  <td style="height: 20px" width="85">
786
+                  <td
787
+                    style="height: 20px"
788
+                    width="70"
789
+                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
790
+                  >
791
+                    <p style="height: 20px; line-height: 20px">执行时间</p>
792
+                  </td>
793
+                  <td style="height: 20px" width="90">
769 794
                     <p style="height: 20px; line-height: 20px">执行</p>
770 795
                   </td>
771
-                  <td style="height: 20px" width="85">
796
+                  <td style="height: 20px" width="90">
772 797
                     <p style="height: 20px; line-height: 20px">核对</p>
773 798
                   </td>
774
-                  <td style="height: 20px" width="145">
799
+                  <td style="height: 20px" width="144">
775 800
                     <p style="height: 20px; line-height: 20px">上次透后体重</p>
776 801
                   </td>
777
-                  <td style="height: 20px">
802
+                  <td style="height: 20px" width="60">
778 803
                     {{
779 804
                       patientInfo.total_dialysis +
780 805
                         patientInfo.user_sys_before_count >
@@ -795,10 +820,25 @@
795 820
             <td>
796 821
               <table class="print-table" border="1">
797 822
                 <tr>
798
-                  <td width="50">
823
+                  <td width="60">
799 824
                     {{ getTime(advice.start_time, "{h}:{i}") }}
800 825
                   </td>
801
-                  <td style="text-align: left; padding-left: 5px" width="485">
826
+                  <td
827
+                    style="line-height: 30px"
828
+                    width="90"
829
+                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
830
+                  >
831
+                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">
832
+                      {{ getAdminUser(advice.advice_doctor) }}
833
+                    </span>
834
+                    <img
835
+                      style="height: 30px"
836
+                      :src="setAdminUserES(advice.advice_doctor)"
837
+                      alt=""
838
+                      srcset=""
839
+                    />
840
+                  </td>
841
+                  <td style="text-align: left; padding-left: 5px" width="340">
802 842
                     <span v-if="advice.parent_id > 0">---></span>
803 843
                     <span>{{ advice.advice_name }}</span>
804 844
                     <span v-if="advice && advice.advice_desc"
@@ -822,7 +862,16 @@
822 862
                     }}</span>
823 863
                     <span>{{ advice.remark }}</span>
824 864
                   </td>
825
-                  <td style="line-height: 30px" width="85">
865
+                  <td
866
+                    style="line-height: 10px"
867
+                    width="70"
868
+                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
869
+                  >
870
+                    <span v-if="advice.execution_time">{{
871
+                      getTime(advice.execution_time, "{h}:{i}")
872
+                    }}</span>
873
+                  </td>
874
+                  <td style="line-height: 10px" width="90">
826 875
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
827 876
                       getAdminUser(advice.execution_staff)
828 877
                     }}</span>
@@ -831,10 +880,9 @@
831 880
                       :src="setAdminUserES(advice.execution_staff)"
832 881
                       alt=""
833 882
                       srcset=""
834
-                      v-else
835 883
                     />
836 884
                   </td>
837
-                  <td style="line-height: 30px" width="85">
885
+                  <td style="line-height: 30px" width="90">
838 886
                     <span v-if="setAdminUserES(advice.checker) == ''">{{
839 887
                       getAdminUser(advice.checker)
840 888
                     }}</span>
@@ -848,7 +896,7 @@
848 896
                   </td>
849 897
 
850 898
                   <td v-if="advice_index === 0" width="145">透前体重:</td>
851
-                  <td v-if="advice_index === 0">
899
+                  <td v-if="advice_index === 0" width="60">
852 900
                     {{
853 901
                       patientInfo.total_dialysis +
854 902
                         patientInfo.user_sys_before_count >
@@ -858,20 +906,19 @@
858 906
                     }}kg
859 907
                   </td>
860 908
                   <td v-if="advice_index === 1" width="145">体重增加量:</td>
861
-                  <td v-if="advice_index === 1">
909
+                  <td v-if="advice_index === 1" width="60">
862 910
                     {{
863
-                      patientInfo.total_dialysis +
864
-                        patientInfo.user_sys_before_count >
865
-                      0
866
-                        ? (
911
+                      assessmentafter.weight_after == 0 ||
912
+                      predialysis.weight_before == 0
913
+                        ? 0
914
+                        : (
867 915
                             predialysis.weight_before -
868 916
                             assessmentafter.weight_after
869 917
                           ).toFixed(2)
870
-                        : "/"
871 918
                     }}kg
872 919
                   </td>
873 920
                   <td v-if="advice_index === 2" width="145">干体重(DW):</td>
874
-                  <td v-if="advice_index === 2">
921
+                  <td v-if="advice_index === 2" width="60">
875 922
                     {{
876 923
                       patientInfo.total_dialysis +
877 924
                         patientInfo.user_sys_before_count >
@@ -881,19 +928,19 @@
881 928
                     }}kg
882 929
                   </td>
883 930
                   <td v-if="advice_index === 3" width="145">较干体重增加量:</td>
884
-                  <td v-if="advice_index === 3">
931
+                  <td v-if="advice_index === 3" width="60">
885 932
                     {{
886 933
                       patientInfo.total_dialysis +
887 934
                         patientInfo.user_sys_before_count >
888
-                      0
935
+                        0 && afterdialysis.weight_after != 0
889 936
                         ? (
890 937
                             afterdialysis.weight_after - predialysis.dry_weight
891 938
                           ).toFixed(2)
892
-                        : "/"
939
+                        : 0
893 940
                     }}kg
894 941
                   </td>
895 942
                   <td v-if="advice_index === 4" width="145">净脱水量:</td>
896
-                  <td v-if="advice_index === 4">
943
+                  <td v-if="advice_index === 4" width="60">
897 944
                     {{
898 945
                       patientInfo.total_dialysis +
899 946
                         patientInfo.user_sys_before_count >
@@ -903,7 +950,7 @@
903 950
                     }}ml
904 951
                   </td>
905 952
                   <td v-if="advice_index === 5" width="145">透后体重:</td>
906
-                  <td v-if="advice_index === 5">
953
+                  <td v-if="advice_index === 5" width="60">
907 954
                     {{
908 955
                       patientInfo.total_dialysis +
909 956
                         patientInfo.user_sys_before_count >
@@ -915,20 +962,19 @@
915 962
                   <td v-if="advice_index === 6" width="145">
916 963
                     本次透析体重下降量:
917 964
                   </td>
918
-                  <td v-if="advice_index === 6">
965
+                  <td v-if="advice_index === 6" width="60">
919 966
                     {{
920
-                      patientInfo.total_dialysis +
921
-                        patientInfo.user_sys_before_count >
922
-                      0
923
-                        ? (
967
+                      afterdialysis.weight_after == 0 ||
968
+                      predialysis.weight_before == 0
969
+                        ? 0
970
+                        : (
924 971
                             predialysis.weight_before -
925 972
                             afterdialysis.weight_after
926 973
                           ).toFixed(2)
927
-                        : "/"
928 974
                     }}kg
929 975
                   </td>
930 976
                   <td v-if="advice_index > 6" width="145"></td>
931
-                  <td v-if="advice_index > 6"></td>
977
+                  <td v-if="advice_index > 6" width="60"></td>
932 978
                 </tr>
933 979
               </table>
934 980
             </td>

File diff suppressed because it is too large
+ 2167 - 2094
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyfive.vue


File diff suppressed because it is too large
+ 51 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue


+ 8 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue View File

@@ -425,13 +425,13 @@
425 425
                     <div class="inline_block" style="flex:1;">
426 426
                       置换方式:
427 427
                       <div class="under_line" style="width: 60px;text-align: center">
428
-                        {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }}
428
+                        <span v-if="prescription.mode_id == 2 || prescription.mode_id ==5 || prescription.mode_id==12 || prescription.mode_id == 28"> {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }} </span>
429 429
                       </div>
430 430
                     </div>
431 431
                     <div class="inline_block" style="flex:1;">
432 432
                       置换总量:
433 433
                       <div class="under_line" style="width: 50px;text-align: center">
434
-                        {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
434
+                         <span v-if="prescription.mode_id == 2 || prescription.mode_id ==5 || prescription.mode_id ==12 || prescription.mode_id == 28"> {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}</span>
435 435
                       </div>
436 436
                       L
437 437
                     </div>
@@ -628,7 +628,7 @@
628 628
                   <table class="inside_table">
629 629
                     <tbody>
630 630
                       <tr>
631
-                        <td colspan="11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
631
+                        <td colspan="12" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
632 632
                           监测记录
633 633
                         </td>
634 634
                       </tr>
@@ -642,6 +642,7 @@
642 642
                         <td width="50">脉搏<br />(次/分)</td>
643 643
                         <td width="60">血压<br />(mmHg)</td>
644 644
                         <td width="50">血容量<br />L</td>
645
+                        <td width="50">Kt/V<br /></td>
645 646
                         <td width="50">签名</td>
646 647
                         <td width="200">病情变化及处理</td>
647 648
                       </tr>
@@ -659,6 +660,7 @@
659 660
                           {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
660 661
                         </td>
661 662
                         <td style="padding:1px 5px;">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : '' }}</td>
663
+                        <td>{{ monitor.ktv ? monitor.ktv : "" }}</td>
662 664
                         <td style="padding:1px 5px;" height="30px">
663 665
                           <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
664 666
                             {{ getAdminUser(monitor.monitoring_nurse) }}
@@ -678,7 +680,7 @@
678 680
                         </td>
679 681
                       </tr>
680 682
                       <tr>
681
-                        <td colspan="11" style="line-height:25px;text-align:left;">
683
+                        <td colspan="12" style="line-height:25px;text-align:left;">
682 684
                           医师记录:{{ summary.special_record ? summary.special_record : '' }}
683 685
                         </td>
684 686
                       </tr>
@@ -1100,7 +1102,7 @@ export default {
1100 1102
             }
1101 1103
         })
1102 1104
         }
1103
-        
1105
+
1104 1106
         if(num == 0){
1105 1107
           this.$message.success('核对完成')
1106 1108
         }
@@ -1456,7 +1458,7 @@ export default {
1456 1458
             }
1457 1459
           }
1458 1460
         }
1459
-        
1461
+
1460 1462
         console.log('this.monitors',this.monitors)
1461 1463
 
1462 1464
         this.jilurow = this.monitors.length + 1

+ 56 - 45
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

@@ -160,7 +160,7 @@
160 160
 
161 161
         <div
162 162
           class="row"
163
-          :style="this.totollength > 13 ? 'margin-bottom:400px;' : ''"
163
+          :style="this.totollength > 13 ? 'margin-bottom:250px;' : ''"
164 164
         >
165 165
           <table class="proj_table">
166 166
             <tbody>
@@ -674,9 +674,8 @@
674 674
                         class="under_line"
675 675
                         style="width: 100px; text-align: center"
676 676
                       >
677
-                        {{
678
-                          getDisplaceLiquiPart(prescription.displace_liqui_part)
679
-                        }}
677
+                       <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{getDisplaceLiquiPart(prescription.displace_liqui_part)}}</span> 
678
+                        <span v-else>/</span>
680 679
                       </div>
681 680
                     </div>
682 681
                     <div
@@ -688,11 +687,8 @@
688 687
                         class="under_line"
689 688
                         style="width: 70px; text-align: center"
690 689
                       >
691
-                        {{
692
-                          prescription.displace_liqui_value
693
-                            ? prescription.displace_liqui_value
694
-                            : "/"
695
-                        }}
690
+                       <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{ prescription.displace_liqui_value ? prescription.displace_liqui_value: "/"}} </span> 
691
+                       <span v-else>/</span>
696 692
                       </div>
697 693
                       L
698 694
                     </div>
@@ -1413,6 +1409,7 @@
1413 1409
                             font-size: 16px;
1414 1410
                             padding: 6px 8px;
1415 1411
                             line-height: 30px;
1412
+                            
1416 1413
                           "
1417 1414
                         >
1418 1415
                           医嘱内容
@@ -1686,7 +1683,6 @@
1686 1683
         </template>
1687 1684
         <div class="row" style="margin-top: -11px; position: relative">
1688 1685
           <table class="proj_table">
1689
-            <tbody>
1690 1686
               <template v-if="doctor_advices_2.length > 0">
1691 1687
                 <tr style="line-height: 35px; padding: 8px 5px">
1692 1688
                   <td
@@ -1698,6 +1694,7 @@
1698 1694
                       font-size: 16px;
1699 1695
                       padding: 6px 8px;
1700 1696
                       line-height: 30px;
1697
+                      border: 1px solid;
1701 1698
                     "
1702 1699
                   >
1703 1700
                     医嘱内容
@@ -1707,7 +1704,7 @@
1707 1704
                 <td colspan="4" style="font-size: 16px">开医嘱</td>
1708 1705
                 <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1709 1706
               </tr> -->
1710
-                <tr style="line-height: 35px; padding: 8px 5px">
1707
+                <tr style="line-height: 35px; padding: 8px 5px"  class="split_table_tr" >
1711 1708
                   <td style="font-size: 16px" width="10%">时间</td>
1712 1709
                   <td style="font-size: 16px" colspan="2" width="45%">
1713 1710
                     医嘱内容
@@ -1718,7 +1715,7 @@
1718 1715
                   <td style="font-size: 16px" width="10%">时间</td>
1719 1716
                 </tr>
1720 1717
                 <!-- <template v-for="group in doctor_advices" > -->
1721
-                <tr
1718
+                <tr class="split_table_tr" 
1722 1719
                   v-for="(advice, advice_index) in doctor_advices_2"
1723 1720
                   :key="advice_index"
1724 1721
                 >
@@ -1736,21 +1733,15 @@
1736 1733
                   >
1737 1734
                     <span v-if="advice.parent_id > 0">---></span>
1738 1735
                     <span>{{ advice.advice_name }}</span>
1736
+                    <span v-if="advice.project && advice.project.project_name">{{ advice.project.project_name }}</span>
1739 1737
                     <span v-if="advice && advice.advice_desc"
1740 1738
                       >({{ advice.advice_desc
1741 1739
                       }}{{ advice.drug_spec_unit }})</span
1742 1740
                     >
1743
-                    <span v-if="advice.prescribing_number"
1744
-                      >&nbsp;&nbsp; {{ advice.prescribing_number
1745
-                      }}{{ advice.prescribing_number_unit }}</span
1746
-                    >
1747
-                    <span v-if="advice.single_dose != 0"
1748
-                      >{{ advice.single_dose
1749
-                      }}{{ advice.single_dose_unit }}</span
1750
-                    >
1751
-                    <span v-if="advice.parent_id == 0">{{
1752
-                      advice.delivery_way
1753
-                    }}</span>
1741
+                    <span v-if="advice.prescribing_number" >&nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}</span>
1742
+                    <span v-if="advice.single_dose != 0" >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
1743
+                     <span v-if="advice.project && advice.project.unit">{{ advice.project.unit }}</span>
1744
+                    <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
1754 1745
                     <span v-if="advice.parent_id == 0">{{
1755 1746
                       advice.execution_frequency
1756 1747
                     }}</span>
@@ -1776,6 +1767,16 @@
1776 1767
                       srcset=""
1777 1768
                       v-else
1778 1769
                     />
1770
+                    <span v-if="setAdminUserES(advice.doctor) == ''">{{
1771
+                      getAdminUser(advice.doctor)
1772
+                    }}</span>
1773
+                    <img
1774
+                      style="height: 30px"
1775
+                      :src="setAdminUserES(advice.doctor)"
1776
+                      alt=""
1777
+                      srcset=""
1778
+                      v-else
1779
+                    />
1779 1780
                   </td>
1780 1781
                   <!-- <td height="35px">
1781 1782
                   <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
@@ -2504,7 +2505,7 @@
2504 2505
                   </div>
2505 2506
                 </td>
2506 2507
               </tr>
2507
-            </tbody>
2508
+            
2508 2509
           </table>
2509 2510
           <!-- <div  class="print-yema">1</div> -->
2510 2511
         </div>
@@ -3104,6 +3105,7 @@ export default {
3104 3105
         this.prescription = response.data.data.dialysisPrescription;
3105 3106
         console.log("透析处方", this.prescription);
3106 3107
         let project_arr = response.data.data.projects
3108
+        console.log("project_Arr2332323232",project_arr)
3107 3109
         project_arr.forEach(o => {
3108 3110
           if(o.project.project_name && o.project.project_name!=""){
3109 3111
             this.project.push(o)
@@ -3158,7 +3160,7 @@ export default {
3158 3160
 
3159 3161
         this.advices = response.data.data.advices;
3160 3162
         this.tableAdvice = response.data.data.advices;
3161
-        console.log("医嘱数据", this.advices);
3163
+        // console.log("医嘱数据", this.advices);
3162 3164
         this.monitors = response.data.data.monitors;
3163 3165
         this.summary = response.data.data.summary;
3164 3166
         this.org_template_info = response.data.data.org_template_info;
@@ -3256,10 +3258,9 @@ export default {
3256 3258
           this.advices.push(item);
3257 3259
         }
3258 3260
         this.loading = false;
3259
-        this.doctor_advices =
3260
-          response.data.data.advices == null ? [] : response.data.data.advices.concat(this.project);
3261
+        this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices.concat(this.project);
3261 3262
           // .concat(this.project)
3262
-          console.log( this.doctor_advices,' this.doctor_advices this.doctor_advices')
3263
+          // console.log( this.doctor_advices,' this.doctor_advices this.doctor_advices')
3263 3264
         for (let index = 0; index < this.doctor_advices.length; index++) {
3264 3265
           this.doctor_advices[index]["isShow"] = 2;
3265 3266
         }
@@ -3342,6 +3343,7 @@ export default {
3342 3343
         //    this.advice_groups.push(group)
3343 3344
         //   }
3344 3345
         // }
3346
+        console.log("dotoreadvcie233232323223",this.doctor_advices)
3345 3347
         if (this.doctor_advices.length <= 6) {
3346 3348
           var nl = 6;
3347 3349
           this.print_length = 6;
@@ -3358,23 +3360,25 @@ export default {
3358 3360
           }
3359 3361
         }
3360 3362
 
3361
-        // this.totollength = this.doctor_advices.length + this.monitors.length;
3362
-        // if (this.totollength > 18) {
3363
-        //   var temp_advice_length = 17 - this.monitors.length;
3364
-        //   var doctor_advices_1 = [];
3365
-        //   var doctor_advices_2 = [];
3366
-        //   for (let index = 0; index < this.doctor_advices.length; index++) {
3367
-        //     const element = this.doctor_advices[index];
3368
-        //     if (temp_advice_length > index) {
3369
-        //       doctor_advices_1.push(element);
3370
-        //     } else {
3371
-        //       doctor_advices_2.push(element);
3372
-        //     }
3373
-        //   }
3374
-        //   this.doctor_advices = doctor_advices_1;
3375
-        //   this.doctor_advices_2 = doctor_advices_2;
3376
-        // }
3377
-        // console.log(this.doctor_advices,'doctor_advices');
3363
+        this.totollength = this.doctor_advices.length + this.monitors.length;
3364
+        console.log(" this.totollength", this.totollength)
3365
+        if (this.totollength > 18) {
3366
+          var temp_advice_length = 17 - this.monitors.length;
3367
+          var doctor_advices_1 = [];
3368
+          var doctor_advices_2 = [];
3369
+          for (let index = 0; index < this.doctor_advices.length; index++) {
3370
+            const element = this.doctor_advices[index];
3371
+            if (temp_advice_length > index) {
3372
+              doctor_advices_1.push(element);
3373
+            } else {
3374
+              doctor_advices_2.push(element);
3375
+            }
3376
+          }
3377
+          this.doctor_advices = doctor_advices_1;
3378
+          this.doctor_advices_2 = doctor_advices_2;
3379
+        }
3380
+        console.log(this.doctor_advices,'doctor_advices');
3381
+        console.log(" this.doctor_advices_2",this.doctor_advices_2)
3378 3382
       } else {
3379 3383
         this.loading = false;
3380 3384
         this.$message.error("请求数据失败");
@@ -3551,6 +3555,7 @@ export default {
3551 3555
   text-align: center;
3552 3556
   font-size: 20px;
3553 3557
   letter-spacing: 5px;
3558
+
3554 3559
 }
3555 3560
 
3556 3561
 .dialysis-print-order .order-title {
@@ -3657,6 +3662,12 @@ export default {
3657 3662
   line-height: 16px;
3658 3663
 }
3659 3664
 
3665
+.print_page_main_content .row .proj_table .split_table_tr td{
3666
+    border: 1px solid;
3667
+}
3668
+
3669
+
3670
+
3660 3671
 .print-table-no {
3661 3672
   width: 100%;
3662 3673
   text-align: center;

File diff suppressed because it is too large
+ 1543 - 1588
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue


+ 52 - 37
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

@@ -9,27 +9,27 @@
9 9
           <tbody>
10 10
             <tr>
11 11
               <td width="50">姓 名:</td>
12
-              <td width="120">
12
+              <td width="150">
13 13
                 <div class="under-line">
14 14
                   &nbsp;{{ patientInfo.name ? patientInfo.name : "/" }}
15 15
                 </div>
16 16
               </td>
17
-              <td width="100"></td>
17
+              <td width="30"></td>
18 18
 
19 19
               <td width="50">性 别:</td>
20
-              <td width="180">
20
+              <td width="150">
21 21
                 <div class="under-line">
22 22
                   {{ patientInfo.gender ? patientInfo.gender : "/" }}
23 23
                 </div>
24 24
               </td>
25
-              <td width="10"></td>
25
+              <td width="30"></td>
26 26
               <td width="50">年 龄:</td>
27
-              <td width="180">
27
+              <td width="150">
28 28
                 <div class="under-line">
29 29
                   &nbsp;{{ checkIdCardNo(patientInfo.id_card_no) }}
30 30
                 </div>
31 31
               </td>
32
-              <td width="80">岁</td>
32
+              <td width="60">岁</td>
33 33
 
34 34
               <td width="80">透析机号:</td>
35 35
               <td width="130">
@@ -44,14 +44,14 @@
44 44
         <table class="table-box" style="margin-top:10px">
45 45
           <tbody>
46 46
             <tr>
47
-              <td width="50">治疗日期:</td>
48
-              <td width="130">
47
+              <td width="80">治疗日期:</td>
48
+              <td width="150">
49 49
                 <div class="under-line">
50 50
                   {{ queryParams.xtdate ? queryParams.xtdate : "/" }}
51 51
                 </div>
52 52
               </td>
53 53
               <td width="10"></td>
54
-              <td width="50">
54
+              <td width="60">
55 55
                 住院号:
56 56
               </td>
57 57
               <td width="150">
@@ -60,7 +60,7 @@
60 60
                 </div>
61 61
               </td>
62 62
               <td width="10"></td>
63
-              <td width="50">
63
+              <td width="80">
64 64
                 身份证号:
65 65
               </td>
66 66
               <td width="150">
@@ -76,7 +76,7 @@
76 76
         <table class="table-box" style="margin-top: 10px;">
77 77
           <tbody>
78 78
             <tr>
79
-              <td width="40">诊 断:</td>
79
+              <td width="60">诊 断:</td>
80 80
               <td style="text-align:left">
81 81
                 <div class="under-line">
82 82
                   &nbsp;{{ patientInfo.diagnose ? patientInfo.diagnose : "/" }}
@@ -91,7 +91,7 @@
91 91
               <td>
92 92
                 <table class="table-box">
93 93
                   <tr>
94
-                    <td style="text-align:left;margin-left:15px">
94
+                    <td style="text-align:left;margin-left:15px;padding-top:10px;">
95 95
                       病情评估:
96 96
                       <span class="under-line">&nbsp;{{ receiverTreatmentAccess.sick_condition ? receiverTreatmentAccess.sick_condition : "/" }}</span>
97 97
                     </td>
@@ -110,7 +110,7 @@
110 110
                     </td>
111 111
                   </tr>
112 112
                   <tr>
113
-                    <td style="text-align:left;margin-left:15px">
113
+                    <td style="text-align:left;margin-left:15px;padding-top:10px;">
114 114
                       净化治疗方式:
115 115
                       <span class="under-line">&nbsp;{{ prescription.mode ? prescription.mode : "/" }}</span>
116 116
                     </td>
@@ -138,7 +138,7 @@
138 138
                     </td>
139 139
                   </tr>
140 140
                   <tr>
141
-                    <td style="text-align:left;margin-left:15px">
141
+                    <td style="text-align:left;margin-left:15px;padding-top:10px;">
142 142
                       干体重:
143 143
                       <span class="under-line">
144 144
                         &nbsp;{{ predialysis.dry_weight ? predialysis.dry_weight : "0" }}</span>kg
@@ -161,7 +161,7 @@
161 161
                     </td>
162 162
                   </tr>
163 163
                   <tr>
164
-                    <td style="text-align:left;margin-left:15px">
164
+                    <td style="text-align:left;margin-left:15px;padding-top:10px;">
165 165
                       血流量:
166 166
                       <span class="under-line">
167 167
                         &nbsp;{{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "0" }}</span>ml/min
@@ -178,11 +178,11 @@
178 178
                       置换液总量:
179 179
                       <span class="under-line">
180 180
                         &nbsp;{{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "0" }}
181
-                      </span>
181
+                      </span>L
182 182
                     </td>
183 183
                   </tr>
184 184
                   <tr>
185
-                    <td style="text-align:left;margin-left:15px">
185
+                    <td style="text-align:left;margin-left:15px;padding-top:10px;">
186 186
                       抗凝剂:
187 187
                       <span class="under-line">
188 188
                         &nbsp;{{ prescription.anticoagulant ? prescription.anticoagulant : "/" }}
@@ -195,7 +195,7 @@
195 195
                       <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
196 196
                       <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
197 197
                       <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
198
-                      <span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
198
+                      <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
199 199
                       <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
200 200
                       <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
201 201
                       <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp;
@@ -208,7 +208,7 @@
208 208
                       <span v-if="prescription.anticoagulant == '枸橼酸钠'">ml/h</span>
209 209
                       <span v-if="prescription.anticoagulant == '阿加曲班'">mg/h</span>
210 210
                       <span v-if="prescription.anticoagulant == '低分子肝素'">iu/h</span>
211
-                      <span v-if="prescription.anticoagulant == '普通肝素'">iu/h</span>
211
+                      <span v-if="prescription.anticoagulant == '普通肝素'">mg/h</span>
212 212
                       <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
213 213
                       <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
214 214
                       <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>
@@ -220,14 +220,14 @@
220 220
                       <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
221 221
                       <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
222 222
                       <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
223
-                      <span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
223
+                      <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
224 224
                       <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
225 225
                       <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
226 226
                       <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
227 227
                     </td>
228 228
                   </tr>
229 229
                   <tr>
230
-                    <td style="text-align:left;margin-left:15px">
230
+                    <td style="text-align:left;margin-left:15px;padding-top:10px;">
231 231
                       透析液(mmol/L):
232 232
                       <span class="under-line" v-if="prescription.dialysate_formulation == 0">
233 233
                         &nbsp; 常规(钾:0&nbsp;,钙:0 &nbsp;,钠:0)
@@ -284,15 +284,19 @@
284 284
               <p style="height:20px;line-height:20px">呼吸</p>
285 285
               <p style="height:20px;line-height:20px">次/分</p>
286 286
             </th>
287
+            <th style="min-width:60px">
288
+              <p style="height:20px;line-height:20px">体温</p>
289
+              <p style="height:20px;line-height:20px">℃</p>
290
+            </th>
287 291
             <th style="min-width:60px">
288 292
               <p style="height:20px;line-height:20px">血流量</p>
289 293
               <p style="height:20px;line-height:20px">ml/min</p>
290 294
             </th>
291
-            <th style="min-width:60px">
295
+            <th style="min-width:60px" v-if="org_id!=9990||org_id!=9675">
292 296
               <p style="height:20px;line-height:20px">超滤量</p>
293 297
               <p style="height:20px;line-height:20px">L</p>
294 298
             </th>
295
-            <th style="min-width:60px">
299
+            <th style="min-width:60px" v-if="org_id!=9990||org_id!=9675">
296 300
               <p style="height:20px;line-height:20px">置换量</p>
297 301
               <p style="height:20px;line-height:20px">L</p>
298 302
             </th>
@@ -310,7 +314,7 @@
310 314
           </tr>
311 315
 
312 316
           <tr v-for="(monitor, monindex) in monitors" :key="monindex">
313
-            <td style="min-width:60px;height:30px">
317
+            <td style="min-width:60px;height:40px">
314 318
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
315 319
             </td>
316 320
             <td>
@@ -331,15 +335,20 @@
331 335
             </td>
332 336
             <td>
333 337
               <span v-if="getTime(monitor.operate_time) != ''">
334
-                {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "0" }}
338
+                {{ monitor.temperature ? monitor.temperature : "0" }}
335 339
               </span>
336 340
             </td>
337 341
             <td>
342
+              <span v-if="getTime(monitor.operate_time) != ''">
343
+                {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "0" }}
344
+              </span>
345
+            </td>
346
+            <td v-if="org_id!=9990||org_id!=9675">
338 347
               <span v-if="getTime(monitor.operate_time) != ''">
339 348
                 {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}
340 349
               </span>
341 350
             </td>
342
-            <td>
351
+            <td v-if="org_id!=9990||org_id!=9675">
343 352
               <span v-if="getTime(monitor.operate_time) != ''">
344 353
                 {{ monitor.displacement_quantity ? monitor.displacement_quantity : "0" }}
345 354
               </span>
@@ -372,7 +381,7 @@
372 381
               <td style="width:60px;height:40px">
373 382
                 <p style="height:20px;line-height:20px">医生签名</p>
374 383
               </td>
375
-              <td style="width:60px;height:40px">
384
+              <td style="width:70px;height:40px">
376 385
                 <p style="height:20px;line-height:20px">医嘱执行时间</p>
377 386
               </td>
378 387
               <td style="width:60px;height:40px">
@@ -381,7 +390,7 @@
381 390
               <td style="width:60px;height:60px">
382 391
                 <p style="height:20px;line-height:20px">核对</p>
383 392
               </td>
384
-              <td style="width:60px;height:40px">
393
+              <td style="width:70px;height:40px">
385 394
                 <p style="height:20px;line-height:20px">上次透后体重</p>
386 395
               </td>
387 396
               <td style="width:60px;height:40px">
@@ -389,8 +398,8 @@
389 398
               </td>
390 399
             </tr>
391 400
 
392
-            <tr v-for="(advice, advice_index) in tableAdvice">
393
-              <td>{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
401
+            <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
402
+              <td style="min-width:60px;height:40px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
394 403
               <td>
395 404
                 <span v-if="advice.parent_id > 0">---></span>
396 405
                 <span>{{ advice.advice_name }}</span>
@@ -431,8 +440,8 @@
431 440
         <table class="print-table" border="1">
432 441
           <td>
433 442
             <table class="table-box" style="table-layout:fixed">
434
-              <tr>
435
-                <td style="text-align:left;margin-left:15px;width:25%">
443
+              <tr class="ta_top">
444
+                <td style="text-align:left;margin-left:15px;width:25%;padding-top:10px;">
436 445
                   上机时间:
437 446
                   <span class="under-line">{{ getTime(Order.start_time, "{y}-{m}-{d} {h}:{i}") ? getTime(Order.start_time, "{y}-{m}-{d} {h}:{i}") : "0" }}</span>
438 447
                 </td>
@@ -456,7 +465,7 @@
456 465
                 </td>
457 466
               </tr>
458 467
 
459
-              <tr>
468
+              <tr class="ta_top">
460 469
                 <td style="text-align:left;margin-left:15px;width:25%">
461 470
                   下机护士:
462 471
                   <span class="under-line" v-if="finshForm.url === ''">&nbsp;{{ finshForm.finish_nurse ? finshForm.finish_nurse : "/" }}</span>
@@ -481,7 +490,7 @@
481 490
                     {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "0" }}&nbsp;L</span>
482 491
                 </td>
483 492
               </tr>
484
-              <tr>
493
+              <tr class="ta_top">
485 494
                 <td style="text-align:left;margin-left:15px">
486 495
                   拔针后穿刺点渗血:
487 496
                   <span class="under-line" v-if="afterdialysis.puncture_point_oozing_blood === 0">&nbsp;/</span>
@@ -504,7 +513,7 @@
504 513
                 </td>
505 514
                 <td width="10"></td>
506 515
               </tr>
507
-              <tr>
516
+              <tr class="ta_top">
508 517
                 <td style="text-align:left;margin-left:15px;" colspan="2">
509 518
                   并发症:
510 519
                   <span class="under-line">&nbsp;{{ afterdialysis.complication }}</span>
@@ -675,7 +684,8 @@ export default {
675 684
         finish_nurse: "",
676 685
         url: ""
677 686
       },
678
-      displaceLiquiPartOptions: []
687
+      displaceLiquiPartOptions: [],
688
+      org_id: 0,
679 689
     };
680 690
   },
681 691
   methods: {
@@ -1492,7 +1502,7 @@ export default {
1492 1502
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1493 1503
     this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
1494 1504
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1495
-
1505
+    this.org_id = this.$store.getters.xt_user.org.id;
1496 1506
     var bloodAccessParOpera = getDataConfig(
1497 1507
       "hemodialysis",
1498 1508
       "vascular_access_desc"
@@ -1555,8 +1565,10 @@ export default {
1555 1565
   width: 100%;
1556 1566
   line-height: 23px;
1557 1567
   font-size: 14px;
1568
+
1558 1569
 }
1559 1570
 
1571
+
1560 1572
 .dialysis-print-order .print-table {
1561 1573
   width: 100%;
1562 1574
   text-align: center;
@@ -1636,6 +1648,9 @@ export default {
1636 1648
   padding: 1px 1px;
1637 1649
   /*line-height: 25px;*/
1638 1650
 }
1651
+.table-box .ta_top td{
1652
+  padding-top: 10px !important;
1653
+}
1639 1654
 
1640 1655
 .es-img {
1641 1656
   height: 25px;

+ 87 - 65
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -59,7 +59,7 @@
59 59
           <div class="inline_block">
60 60
             病区:
61 61
             <div class="under_line" style="width: 50px; text-align: center">
62
-              <span v-if="org_id == 10121">{{
62
+              <span v-if="org_id == 10121||org_id == 10138">{{
63 63
                 patientInfo.DialysisSchedule.device_zone.name
64 64
                   ? patientInfo.DialysisSchedule.device_zone.name
65 65
                   : ""
@@ -429,7 +429,8 @@
429 429
                     style="padding: 2px 0; line-height: 23px; display: flex"
430 430
                   >
431 431
                     <div class="inline_block" style="flex: 1">
432
-                      透析方式:
432
+                      <span v-if="org_id==10138||org_id==9675">治疗模式:</span>
433
+                      <span v-else>透析方式:</span>
433 434
                       <div
434 435
                         class="under_line"
435 436
                         style="
@@ -1171,8 +1172,8 @@
1171 1172
                           :colspan="
1172 1173
                             prescription.mode_id == 2 ||
1173 1174
                             prescription.mode_id == 5
1174
-                              ? 12
1175
-                              : 11
1175
+                              ? 14
1176
+                              : 13
1176 1177
                           "
1177 1178
                           style="
1178 1179
                             letter-spacing: 5px;
@@ -1187,8 +1188,8 @@
1187 1188
                         </td>
1188 1189
                       </tr>
1189 1190
                       <tr>
1190
-                        <td width="60">时间</td>
1191
-                        <td width="60">血压<br />(mmHg)</td>
1191
+                        <td width="50">时间</td>
1192
+                        <td width="65">血压<br />(mmHg)</td>
1192 1193
                         <td width="50">脉搏<br />(次/分)</td>
1193 1194
                         <td width="50">呼吸<br />(次/分)</td>
1194 1195
                         <td width="50">血流量<br />(ml/min)</td>
@@ -1238,7 +1239,8 @@
1238 1239
                         >
1239 1240
                           置换量<br />(ml)
1240 1241
                         </td>
1241
-                        <td width="200" v-if="org_id == 9919">ktv</td>
1242
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538|| org_id == 9675">KT/V</td>
1243
+                        <td width="50" v-if="org_id == 9538|| org_id == 9675">血容量<br />(L)</td>
1242 1244
                         <td width="200">病情变化及处理</td>
1243 1245
 
1244 1246
                         <!-- <td width="100">时间</td>
@@ -1254,42 +1256,13 @@
1254 1256
                     <td  width="100">护士签名</td> -->
1255 1257
                       </tr>
1256 1258
 
1257
-                      <tr
1258
-                        v-for="(monitor, monindex) in monitors"
1259
-                        :key="monindex"
1260
-                      >
1259
+                      <tr v-for="(monitor, monindex) in monitors" :key="monindex">
1261 1260
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1262
-                        <td>
1263
-                          {{
1264
-                            monitor.systolic_blood_pressure
1265
-                              ? monitor.systolic_blood_pressure + "/"
1266
-                              : ""
1267
-                          }}
1268
-                          {{
1269
-                            monitor.diastolic_blood_pressure
1270
-                              ? monitor.diastolic_blood_pressure
1271
-                              : ""
1272
-                          }}
1273
-                        </td>
1274
-                        <td>
1275
-                          {{
1276
-                            monitor.pulse_frequency
1277
-                              ? monitor.pulse_frequency
1278
-                              : ""
1279
-                          }}
1280
-                        </td>
1281
-                        <td>
1282
-                          {{
1283
-                            monitor.breathing_rate ? monitor.breathing_rate : ""
1284
-                          }}
1285
-                        </td>
1286
-                        <td>
1287
-                          {{
1288
-                            monitor.blood_flow_volume
1289
-                              ? monitor.blood_flow_volume
1290
-                              : ""
1291
-                          }}
1292
-                        </td>
1261
+                        <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1262
+                          {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1263
+                        <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1264
+                        <td>{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1265
+                        <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1293 1266
                         <td>
1294 1267
                           {{
1295 1268
                             monitor.venous_pressure
@@ -1370,7 +1343,7 @@
1370 1343
                               : ""
1371 1344
                           }}
1372 1345
                         </td>
1373
-                        
1346
+
1374 1347
                         <td
1375 1348
                         >
1376 1349
                           {{
@@ -1403,9 +1376,12 @@
1403 1376
                             }}
1404 1377
                           </span>
1405 1378
                         </td>
1406
-                        <td width="200" v-if="org_id == 9919">
1379
+                        <td width="50" v-if="org_id == 9919 || org_id == 9538|| org_id == 9675">
1407 1380
                           {{ monitor.ktv }}
1408 1381
                         </td>
1382
+                        <td width="50" v-if="org_id == 9538|| org_id == 9675">
1383
+                          {{ monitor.accumulated_blood_volume }}
1384
+                        </td>
1409 1385
                         <td style="line-height: 16px; padding: 0px">
1410 1386
                           <div
1411 1387
                             style="
@@ -1464,7 +1440,8 @@
1464 1440
                           "
1465 1441
                           width="50"
1466 1442
                         ></td>
1467
-                        <td v-if="org_id == 9919"></td>
1443
+                        <td v-if="org_id == 9919||org_id == 9538|| org_id == 9675"></td>
1444
+                        <td v-if="org_id == 9538|| org_id == 9675"></td>
1468 1445
                         <td style="line-height: 16px; padding: 0px">
1469 1446
                           <div
1470 1447
                             style="
@@ -1695,14 +1672,26 @@
1695 1672
             <div class="inline_block">
1696 1673
               病区:
1697 1674
               <div class="under_line" style="width: 50px; text-align: center">
1698
-                {{ "/" }}
1699
-              </div>
1675
+              <span v-if="org_id == 10121||org_id == 10138">{{
1676
+                patientInfo.DialysisSchedule.device_zone.name
1677
+                  ? patientInfo.DialysisSchedule.device_zone.name
1678
+                  : ""
1679
+              }}</span>
1680
+              <span v-else>{{ "/" }}</span>
1681
+            </div>
1700 1682
             </div>
1701 1683
             <div class="inline_block">
1702 1684
               床号:
1703 1685
               <div class="under_line" style="width: 50px; text-align: center">
1704
-                {{ "/" }}
1705
-              </div>
1686
+              <span v-if="org_id == 10121">{{
1687
+                dialysisOrder &&
1688
+                dialysisOrder.DeviceNumber &&
1689
+                dialysisOrder.DeviceNumber.number.length > 0
1690
+                  ? dialysisOrder.DeviceNumber.number
1691
+                  : patientInfo.DialysisSchedule.device_number.number
1692
+              }}</span>
1693
+              <span v-else>{{ "/" }}</span>
1694
+            </div>
1706 1695
             </div>
1707 1696
             <div class="inline_block">
1708 1697
               透析号:
@@ -1711,23 +1700,23 @@
1711 1700
               </div>
1712 1701
             </div>
1713 1702
             <div class="inline_block" style="margin-left: 5px">
1714
-              住院号/门诊号:
1715
-              <div
1716
-                class="under_line"
1717
-                style="width: 70px; text-align: left"
1718
-                v-if="receiverTreatmentAccess.admission_number"
1719
-              >
1720
-                {{ receiverTreatmentAccess.admission_number }}
1721
-              </div>
1722
-              <div
1723
-                class="under_line"
1724
-                style="width: 70px; text-align: left"
1725
-                v-else
1726
-              >
1727
-                {{ "/" }}
1728
-              </div>
1703
+            住院号/门诊号:
1704
+            <div
1705
+              class="under_line"
1706
+              style="width: 70px; text-align: left"
1707
+              v-if="receiverTreatmentAccess.admission_number"
1708
+            >
1709
+              {{ receiverTreatmentAccess.admission_number }}
1710
+            </div>
1711
+            <div
1712
+              class="under_line"
1713
+              style="width: 70px; text-align: left"
1714
+              v-else
1715
+            >
1716
+              {{ "/" }}
1729 1717
             </div>
1730 1718
           </div>
1719
+          </div>
1731 1720
           <div class="row" style="margin-bottom: 10px">
1732 1721
             <div class="inline_block">
1733 1722
               入科方式:
@@ -2055,6 +2044,38 @@
2055 2044
                       min
2056 2045
                     </div>
2057 2046
                   </div>
2047
+                  <!-- <div
2048
+                    class="row"
2049
+                    style="padding: 2px 0; line-height: 23px; display: flex"
2050
+                    v-if="org_id==9538 || org_id==9675"
2051
+                  >
2052
+                  <div class="inline_block" style="flex: 2.5">
2053
+                      KT/V:
2054
+                      <div
2055
+                        class="under_line"
2056
+                        style="
2057
+                          width: 170px;
2058
+                          text-align: center;
2059
+                          white-space: normal;
2060
+                        "
2061
+                      >
2062
+                        {{ afterdialysis.ktv ? afterdialysis.ktv : "/" }}
2063
+                      </div>
2064
+                    </div>
2065
+                     <div class="inline_block" style="flex: 2.5">
2066
+                      累积血容量:
2067
+                      <div
2068
+                        class="under_line"
2069
+                        style="
2070
+                          width: 170px;
2071
+                          text-align: center;
2072
+                          white-space: normal;
2073
+                        "
2074
+                      >
2075
+                        {{ afterdialysis.accumulated_blood_volume ? afterdialysis.accumulated_blood_volume : "/" }}
2076
+                      </div>
2077
+                    </div>
2078
+                  </div> -->
2058 2079
                   <div
2059 2080
                     class="row"
2060 2081
                     style="padding: 2px 0; line-height: 23px; display: flex"
@@ -2418,7 +2439,8 @@
2418 2439
                       </div>
2419 2440
                     </div>
2420 2441
                     <div class="inline_block" style="flex: 1">
2421
-                      核对人员:
2442
+                      <span v-if="org_id==10387||org_id==9675" >核对护士:</span> 
2443
+                      <span v-else >核对人员:</span> 
2422 2444
                       <div
2423 2445
                         class="under_line"
2424 2446
                         style="width: 80px; text-align: center"

+ 5 - 2
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue View File

@@ -204,6 +204,8 @@
204 204
                       ? true
205 205
                       : prescription.anticoagulant == '低分子肝素钠'
206 206
                       ? true
207
+                      :prescription.anticoagulant == '低分子肝素'
208
+                      ? true
207 209
                       : false
208 210
                   "
209 211
                   showValue="低分子肝素:"
@@ -212,7 +214,8 @@
212 214
                   {{
213 215
                     prescription.anticoagulant_zongliang &&
214 216
                     (prescription.anticoagulant == "低分子肝素钙" ||
215
-                      prescription.anticoagulant == "低分子肝素钠")
217
+                      prescription.anticoagulant == "低分子肝素钠"||
218
+                      prescription.anticoagulant == "低分子肝素")
216 219
                       ? prescription.anticoagulant_zongliang
217 220
                       : ""
218 221
                   }} </span
@@ -2737,4 +2740,4 @@ export default {
2737 2740
 .table-box1 tr {
2738 2741
   border-bottom: 1px solid #000;
2739 2742
 }
2740
-</style>
2743
+</style>

+ 1 - 0
src/xt_pages/hospitalStation/chargeDetailManagement.vue View File

@@ -1776,6 +1776,7 @@ export default {
1776 1776
   height: 36px;
1777 1777
   display: flex;
1778 1778
   align-items: center;
1779
+  padding-top: 10px;
1779 1780
 }
1780 1781
 
1781 1782
 .fixedCell {

+ 2 - 2
src/xt_pages/hospitalStation/components/chargeDialog.vue View File

@@ -80,7 +80,7 @@
80 80
     <el-form-item label="支付方式:" style="width:100%;">
81 81
          <el-radio-group v-model="form.pay_way">
82 82
           <el-radio :label="item.value" :value="item.value" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
83
-           <el-button type="primary" v-if="form.pay_way == 5" @click="reading()">读卡</el-button>
83
+           <el-button type="primary" v-if="form.pay_way == 4" @click="reading()">读卡</el-button>
84 84
 
85 85
          </el-radio-group>
86 86
       </el-form-item>
@@ -216,7 +216,7 @@
216 216
           // {value: 2, label: '银行卡'},
217 217
           // {value: 3, label: '微信'},
218 218
           // {value: 4, label: '支付宝'},
219
-          { value: 5, label: '医保卡' },
219
+          { value: 4, label: '医保卡' },
220 220
 
221 221
         ],
222 222
         total: "",

+ 8 - 4
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -365,7 +365,7 @@
365 365
                   <el-input style="width:50%;" @input="searchProjectAction"
366 366
                             @keyup.enter.native='searchProjectAction'
367 367
                             v-model.trim="search_project_keyword"
368
-                            placeholder="请输入项目名称"></el-input>
368
+                            placeholder="请输入项目名称"></el-input><!--住院工作站-->
369 369
 
370 370
                   <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
371 371
                              @change="changeClass">
@@ -667,16 +667,20 @@ export default {
667 667
   methods: {
668 668
 
669 669
     changeClass(id) {
670
+      console.log("asdaff,id",id)
671
+      console.log("asdaff,this.value",this.value)
672
+      console.log("asdaff,this.allProject",this.allProject)
670 673
       this.tabProject = []
671 674
       if (id == 0) {
672 675
         this.tabProject = this.allProject
673 676
       } else {
674 677
         for (let i = 0; i < this.allProject.length; i++) {
675
-          if (this.allProject[i].cost_classify == id) {
678
+          if (this.allProject[i].project.cost_classify == id) {
676 679
             this.tabProject.push(this.allProject[i])
677 680
           }
678 681
         }
679 682
       }
683
+
680 684
     },
681 685
     setMonthPrescription(month_prescriptions) {
682 686
       console.log('~~~~~~~~')
@@ -3401,7 +3405,7 @@ export default {
3401 3405
       // }
3402 3406
       // console.log(res)
3403 3407
       // var idstr = res.join(',')
3404
-
3408
+      this.teamList = []
3405 3409
       let teamList = []
3406 3410
       for (let i = 0; i < row.length; i++) {
3407 3411
         let team_id = row[i].id
@@ -3473,7 +3477,7 @@ export default {
3473 3477
               }
3474 3478
             }
3475 3479
 
3476
-            this.teamList = this.teamList.concat(teamList)
3480
+            this.teamList = teamList
3477 3481
             console.log(this.teamList)
3478 3482
           }
3479 3483
         })

+ 4 - 4
src/xt_pages/hospitalStation/components/prescriptionTable.vue View File

@@ -471,14 +471,14 @@
471 471
               this.$message.error(scope.row.drug_name + '库存不足')
472 472
             }
473 473
           }
474
-         
474
+
475 475
         } else {
476 476
           if(scope.row.drug.is_user!=1){
477 477
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
478 478
               this.$message.error(scope.row.drug_name + '库存不足')
479 479
             }
480 480
           }
481
-        
481
+
482 482
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
483 483
         }
484 484
 
@@ -521,14 +521,14 @@
521 521
               this.$message.error(scope.row.drug_name + '库存不足')
522 522
            }
523 523
           }
524
-        
524
+
525 525
         } else {
526 526
           if(scope.row.drug.is_user!=1){
527 527
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
528 528
               this.$message.error(scope.row.drug_name + '库存不足')
529 529
             }
530 530
           }
531
-         
531
+
532 532
         }
533 533
       },
534 534
       getProjectSingleDose(scope) {

+ 2 - 0
src/xt_pages/hospitalStation/doctorDesk.vue View File

@@ -72,7 +72,9 @@
72 72
                         <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
73 73
                         <el-tab-pane label="透析记录" name="透析记录"></el-tab-pane>
74 74
                         <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
75
+                       
75 76
                     </el-tabs>
77
+                   
76 78
                     <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
77 79
                         <el-button size="small" ref="button_one" @click="open(1)" type="primary"
78 80
                                    v-loading="saveLoading">保存

+ 3 - 3
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue View File

@@ -180,9 +180,9 @@
180 180
           <!-- 医疗救助 -->
181 181
         </div>
182 182
         <!-- 大病 -->
183
-        <!-- <div style="position: absolute;top:340px;left:500px">
184
-          {{list.order.hifmi_pay?list.order.hifmi_pay:''}}
185
-        </div> -->
183
+        <div style="position: absolute;top:340px;left:400px">
184
+          大病补助:{{list.order.hifmi_pay?list.order.hifmi_pay:'0.00'}}
185
+        </div>
186 186
         <!-- 其他基金支付 -->
187 187
         <div style="position: absolute;top:340px;left:560px">
188 188
           预交押金:{{(parseFloat(pre_pay_money) + parseFloat(list.order.decimal)).toFixed(2)}}

+ 19 - 14
src/xt_pages/management/components/RepairForm.vue View File

@@ -35,7 +35,7 @@
35 35
         ></el-date-picker>
36 36
       </el-col>
37 37
       <el-col :span="2">
38
-        <el-button @click="queryRepair()">查询</el-button>
38
+        <el-button style="background-color:#409eff;color: #DCDFE6" @click="queryRepair()">查询</el-button>
39 39
       </el-col>
40 40
     </el-row>
41 41
     <el-row style="display: flex;align-items: center;">
@@ -406,6 +406,7 @@
406 406
         </el-row>
407 407
       </el-form>
408 408
       <span slot="footer" class="dialog-footer">
409
+<!--        <button @click="lili">调试</button>-->
409 410
         <el-button @click="dialogVisible = false">取 消</el-button>
410 411
         <el-button type="primary" @click="UpdateRepair('guaForm')"
411 412
           >保存</el-button
@@ -482,10 +483,12 @@ export default {
482 483
       limit: 10,
483 484
       page: 1,
484 485
       total: 0,
485
-      filename: ""
486 486
     };
487 487
   },
488 488
   methods: {
489
+    lili(){
490
+      console.log("this.guaForm",this.guaForm)
491
+    },
489 492
     changeCheck() {
490 493
       this.$refs.multipleTable.clearSelection();
491 494
       if (this.checkAllStatus) {
@@ -655,19 +658,21 @@ export default {
655 658
       window.location.href = this.guaForm.images;
656 659
     },
657 660
     UpdateRepair(formName) {
661
+      console.log("formName",formName)
662
+      console.log("this.guaForm",this.guaForm)
658 663
       this.$refs[formName].validate(valid => {
659
-        this.guaForm.start_time = uParseTime(
660
-          this.guaForm.start_time,
661
-          "{y}-{m}-{d} {h}:{i}"
662
-        );
663
-        this.guaForm.arrive_time = uParseTime(
664
-          this.guaForm.arrive_time,
665
-          "{y}-{m}-{d} {h}:{i}"
666
-        );
667
-        this.guaForm.finish_time = uParseTime(
668
-          this.guaForm.finish_time,
669
-          "{y}-{m}-{d} {h}:{i}"
670
-        );
664
+        // this.guaForm.start_time = uParseTime(
665
+        //   this.guaForm.start_time,
666
+        //   "{y}-{m}-{d} {h}:{i}"
667
+        // );
668
+        // this.guaForm.arrive_time = uParseTime(
669
+        //   this.guaForm.arrive_time,
670
+        //   "{y}-{m}-{d} {h}:{i}"
671
+        // );
672
+        // this.guaForm.finish_time = uParseTime(
673
+        //   this.guaForm.finish_time,
674
+        //   "{y}-{m}-{d} {h}:{i}"
675
+        // );
671 676
 
672 677
         if (this.guaForm.failure_stage === "") {
673 678
           this.guaForm.failure_stage = 0;

+ 2 - 1
src/xt_pages/outpatientCharges/components/chargeDialog.vue View File

@@ -48,7 +48,7 @@
48 48
       <el-form-item label="" style="width:100%;">
49 49
 
50 50
         <el-radio-group v-model="form.pay_way">
51
-          <el-radio :label="index" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
51
+          <el-radio :label="item.value" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
52 52
         </el-radio-group>
53 53
       </el-form-item>
54 54
 
@@ -316,6 +316,7 @@
316 316
           if (valid) {
317 317
             let value = {}
318 318
             value = this.getValue()
319
+            console.log(value)
319 320
             this.$emit('confirm', value)
320 321
             this.loadingtwo = true
321 322
           }

+ 1 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

@@ -638,6 +638,7 @@
638 638
           'admin_user_id': this.$store.getters.xt_user.user.id,
639 639
           'certificates':this.form.certificates,
640 640
         }
641
+        axios.defaults.retry = 0
641 642
         axios.get('http://127.0.0.1:9532/api/readcard', {
642 643
           params: params
643 644
         })

+ 2 - 2
src/xt_pages/outpatientCharges/components/registerDialog9504.vue View File

@@ -587,7 +587,7 @@
587 587
 
588 588
 
589 589
               } else if (that.form.id_card_type == 2) {
590
-                this.form.id = patient.id
590
+                that.form.id = patient.id
591 591
                 that.form.name = patient.name
592 592
                 that.form.gender = patient.gender
593 593
                 that.form.age = patient.age
@@ -610,7 +610,7 @@
610 610
                   birth.substr(6, 2)
611 611
                 that.form.age = jsGetAge(births, '-')
612 612
               }else  {
613
-                this.form.id = patient.id
613
+                that.form.id = patient.id
614 614
                 that.form.name = patient.name
615 615
                 that.form.gender = patient.gender
616 616
                 that.form.age = patient.age

+ 8 - 8
src/xt_pages/outpatientCharges/listPrint.vue View File

@@ -17,8 +17,8 @@
17 17
       <printOne v-if="org_id != 10106&&org_id != 10215&&org_id != 10265 && org_id != 0 && org_id!=9675" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18 18
       <printTwo v-if="org_id == 10106 && this.paramsObj.balance_accounts_type != 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
19 19
       <print-three v-if="org_id == 10106 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
20
-      <list-print-two v-if="org_id == 10215 || org_id == 0 || org_id==9675" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>
21
-      <print-two10265  v-if="org_id == 10265 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
20
+      <list-print-two v-if="org_id == 10215 || org_id==9675" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>
21
+      <print-two10265  v-if="org_id == 10265 || org_id == 0 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
22 22
     </div>
23 23
   </div>
24 24
 </template>
@@ -189,7 +189,7 @@
189 189
                 if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
190 190
                   obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
191 191
                   obj['name'] = infos.advice.drug.drug_name
192
-                  obj['unit'] = infos.advice.drug.min_unit
192
+                  obj['unit'] = infos.advice.prescribing_number_unit
193 193
                   obj['feedetl_sn'] =  infos.feedetl_sn
194 194
                   obj['spec'] =  infos.advice.drug.dose +  infos.advice.drug.dose_unit+"*" + infos.advice.drug.min_number +  infos.advice.drug.min_unit+"/"+infos.advice.drug.max_unit
195 195
                   obj['is_total']= 0
@@ -314,7 +314,7 @@
314 314
                 obj['name'] = details[a].advice.advice_name
315 315
                 // obj['spec'] = details[a].advice.drug.drug_spec
316 316
                 obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
317
-                obj['unit'] = details[a].advice.drug.max_unit
317
+                obj['unit'] = details[a].advice.prescribing_number_unit
318 318
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
319 319
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
320 320
                 obj['price'] = parseFloat(details[a].pric)
@@ -409,7 +409,7 @@
409 409
                 obj['name'] = details[a].advice.advice_name
410 410
                 // obj['spec'] = details[a].advice.drug.drug_spec
411 411
                 obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
412
-                obj['unit'] = details[a].advice.drug.max_unit
412
+                obj['unit'] = details[a].advice.prescribing_number_unit
413 413
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
414 414
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
415 415
                 obj['price'] = parseFloat(details[a].pric)
@@ -570,7 +570,7 @@
570 570
         if(this.org_id != 10106){
571 571
           if(this.org_id == 10215 || this.org_id == 0|| this.org_id == 9675){
572 572
             const style =
573
-                '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;}  .listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 10px;}.tableBottomOne{margin-right: 40px;} .allListTable{border: none;width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable tr{page-break-inside:avoid;} .allListTable tr td {padding: 0 5px;border: 1px solid #000;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
573
+              '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;}  .listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 10px;}.tableBottomOne{margin-right: 40px;} .allListTable{border: none;width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable tr{page-break-inside:avoid;} .allListTable tr td {padding: 0 5px;border: 1px solid #000;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
574 574
             printJS({
575 575
               printable: 'allList-print',
576 576
               type: 'html',
@@ -581,7 +581,7 @@
581 581
 
582 582
           }else {
583 583
             const style =
584
-                '@media print {.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: 20px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 10px;}.tableBottomOne{margin-right: 40px;}}'
584
+              '@media print {.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: 20px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 10px;}.tableBottomOne{margin-right: 40px;}}'
585 585
             printJS({
586 586
               printable: 'list-print',
587 587
               type: 'html',
@@ -591,7 +591,7 @@
591 591
           }
592 592
         }else{
593 593
           const style =
594
-          '@media print {#statement-print{font-size:12px;width:800px;margin:0 auto;}.statementTitle{font-size: 22px;text-align: center;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
594
+            '@media print {#statement-print{font-size:12px;width:800px;margin:0 auto;}.statementTitle{font-size: 22px;text-align: center;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
595 595
           printJS({
596 596
             printable: "statement-print",
597 597
             type: "html",

+ 169 - 108
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -83,26 +83,26 @@
83 83
 
84 84
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
85 85
 
86
-          <div v-if="org_id == 10340">
87
-                        <el-button size="small"
88
-                                   @click="openZb(1)"
89
-                                   type="primary">登记
90
-                        </el-button>
86
+          <div v-if="org_id == 10340 || org_id == 0">
87
+<!--                        <el-button size="small"-->
88
+<!--                                   @click="openZb(1)"-->
89
+<!--                                   type="primary">登记-->
90
+<!--                        </el-button>-->
91 91
 
92 92
                         <el-button  size="small"
93
-                                   @click="openZb(2)"
93
+                                   @click="openZb(4)"
94 94
                                    type="primary">记账
95 95
                         </el-button>
96 96
 
97
-                        <el-button   size="small"
98
-                                   @click="openZb(3)"
99
-                                   type="primary">撤销记账
100
-                        </el-button>
97
+<!--                        <el-button   size="small"-->
98
+<!--                                   @click="openZb(3)"-->
99
+<!--                                   type="primary">撤销记账-->
100
+<!--                        </el-button>-->
101 101
 
102 102
           </div>
103 103
 
104 104
 
105
-          <div  v-if="org_id != 10340">
105
+          <div  v-if="org_id != 10340 || org_id != 0">
106 106
 <!--            <el-button size="small"-->
107 107
 <!--                       @click="openZb(1)"-->
108 108
 <!--                       type="primary">登记-->
@@ -120,7 +120,7 @@
120 120
 
121 121
             <el-button v-loading="loadingone" size="small"
122 122
                        @click="open(40)"
123
-                       v-if="org_id == 10191"
123
+                       v-if="org_id == 10191 || org_id == 10318"
124 124
                        type="primary">登陆
125 125
             </el-button>
126 126
 
@@ -2722,7 +2722,148 @@ export default {
2722 2722
       }
2723 2723
     }, openZb(index) {
2724 2724
       switch (index) {
2725
-        case 1:
2725
+        // case 1:
2726
+        //   if(this.patientInfo.id == 0){
2727
+        //     this.$message.error("请需要选择挂号的患者")
2728
+        //     return
2729
+        //   }
2730
+        //   if(this.big_prescriptions.length == 0){
2731
+        //     this.$message.error("处方不能为空")
2732
+        //     return
2733
+        //   }
2734
+        //   if(this.form.diagnosis.length == 0){
2735
+        //     this.$message.error("诊断不能为空")
2736
+        //     return
2737
+        //   }
2738
+        //   var that = this
2739
+        //   let obj = {
2740
+        //     patient_id: this.patientInfo.id,
2741
+        //     diagnosis_time: this.form.diagnosis_time,
2742
+        //     record_date: this.record_date,
2743
+        //     admin_user_id: this.$store.getters.xt_user.user.id,
2744
+        //     org_id: this.$store.getters.xt_user.org_id
2745
+        //
2746
+        //   }
2747
+        //   axios.get(process.env.BASE_API +'/coordinate/register', {
2748
+        //     params: obj
2749
+        //   })
2750
+        //       .then(function(response) {
2751
+        //         if (response.data.state == 0) {
2752
+        //           that.$message.error(response.data.msg)
2753
+        //           that.loadingtwo = false
2754
+        //           return false
2755
+        //         } else {
2756
+        //           if (response.data.data.failed_code == -10) {
2757
+        //             that.$confirm(response.data.data.msg, '医保错误信息', {
2758
+        //               confirmButtonText: '确 定',
2759
+        //               type: 'warning'
2760
+        //             }).then(() => {
2761
+        //
2762
+        //             }).catch(() => {
2763
+        //             })
2764
+        //
2765
+        //           } else {
2766
+        //             that.radio = 1
2767
+        //             that.changeRadioAndPatient(1)
2768
+        //             that.$message({ message: '登记成功', type: 'success', duration: 5000 })
2769
+        //           }
2770
+        //
2771
+        //         }
2772
+        //       })
2773
+        //       .catch(function(error) {
2774
+        //
2775
+        //       })
2776
+        //
2777
+        //   break
2778
+        // case 2:
2779
+        //   var that = this
2780
+        //   var obj2 = {
2781
+        //     id: this.patientInfo.id,
2782
+        //     record_time: this.record_date,
2783
+        //     his_patient_id: this.hisPatientInfo.id,
2784
+        //     org_id: this.$store.getters.xt_user.org_id,
2785
+        //     p_type:14,
2786
+        //
2787
+        //   }
2788
+        //   obj2['diagnosis'] = this.form.diagnosis.join(',')
2789
+        //   obj2['sick_type'] = this.form.sick_type
2790
+        //   if (this.activeName == 'first') {
2791
+        //     obj2['settle_accounts_type'] = 1
2792
+        //   } else if (this.activeName == 'second') {
2793
+        //     obj2['start_time'] = this.other_start_time
2794
+        //     obj2['end_time'] = this.other_end_time
2795
+        //     obj2['settle_accounts_type'] = 2
2796
+        //   }
2797
+        //   axios.get(process.env.BASE_API  + '/coordinate/opKeepAccounts', {
2798
+        //     params: obj2
2799
+        //   })
2800
+        //       .then(function(response) {
2801
+        //         if (response.data.state == 0) {
2802
+        //           that.$message.error(response.data.msg)
2803
+        //           that.loadingtwo = false
2804
+        //           return false
2805
+        //         } else {
2806
+        //           if (response.data.data.failed_code == -10) {
2807
+        //             that.$confirm(response.data.data.msg, '医保错误信息', {
2808
+        //               confirmButtonText: '确 定',
2809
+        //               type: 'warning'
2810
+        //             }).then(() => {
2811
+        //
2812
+        //             }).catch(() => {
2813
+        //             })
2814
+        //
2815
+        //           } else {
2816
+        //             that.radio = 1
2817
+        //             that.changeRadioAndPatient(1)
2818
+        //             that.$message({ message: '记账成功', type: 'success', duration: 5000 })
2819
+        //           }
2820
+        //
2821
+        //         }
2822
+        //       })
2823
+        //       .catch(function(error) {
2824
+        //
2825
+        //       })
2826
+        //
2827
+        //   break
2828
+        // case 3:
2829
+        //   var that = this
2830
+        //   let obj3 = {
2831
+        //     order_id:this.order.id,
2832
+        //     admin_user_id: this.$store.getters.xt_user.user.id,
2833
+        //     org_id: this.$store.getters.xt_user.org_id
2834
+        //   }
2835
+        //   axios.get(process.env.BASE_API + '/coordinate/opCancelKeepAccounts', {
2836
+        //     params: obj3
2837
+        //   })
2838
+        //       .then(function(response) {
2839
+        //         if (response.data.state == 0) {
2840
+        //           that.$message.error(response.data.msg)
2841
+        //           that.loadingtwo = false
2842
+        //           return false
2843
+        //         } else {
2844
+        //           if (response.data.data.failed_code == -10) {
2845
+        //             that.$confirm(response.data.data.msg, '医保错误信息', {
2846
+        //               confirmButtonText: '确 定',
2847
+        //               type: 'warning'
2848
+        //             }).then(() => {
2849
+        //
2850
+        //             }).catch(() => {
2851
+        //             })
2852
+        //
2853
+        //           } else {
2854
+        //             that.radio = 1
2855
+        //             that.changeRadioAndPatient(1)
2856
+        //             that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
2857
+        //           }
2858
+        //
2859
+        //         }
2860
+        //       })
2861
+        //       .catch(function(error) {
2862
+        //
2863
+        //       })
2864
+        //
2865
+        //   break
2866
+        case 4:
2726 2867
           if(this.patientInfo.id == 0){
2727 2868
             this.$message.error("请需要选择挂号的患者")
2728 2869
             return
@@ -2735,105 +2876,26 @@ export default {
2735 2876
             this.$message.error("诊断不能为空")
2736 2877
             return
2737 2878
           }
2738
-          var that = this
2739 2879
           let obj = {
2740 2880
             patient_id: this.patientInfo.id,
2741 2881
             diagnosis_time: this.form.diagnosis_time,
2742 2882
             record_date: this.record_date,
2743 2883
             admin_user_id: this.$store.getters.xt_user.user.id,
2744
-            org_id: this.$store.getters.xt_user.org_id
2745
-
2746
-          }
2747
-          axios.get(process.env.BASE_API +'/coordinate/register', {
2748
-            params: obj
2749
-          })
2750
-              .then(function(response) {
2751
-                if (response.data.state == 0) {
2752
-                  that.$message.error(response.data.msg)
2753
-                  that.loadingtwo = false
2754
-                  return false
2755
-                } else {
2756
-                  if (response.data.data.failed_code == -10) {
2757
-                    that.$confirm(response.data.data.msg, '医保错误信息', {
2758
-                      confirmButtonText: '确 定',
2759
-                      type: 'warning'
2760
-                    }).then(() => {
2761
-
2762
-                    }).catch(() => {
2763
-                    })
2764
-
2765
-                  } else {
2766
-                    that.radio = 1
2767
-                    that.changeRadioAndPatient(1)
2768
-                    that.$message({ message: '登记成功', type: 'success', duration: 5000 })
2769
-                  }
2770
-
2771
-                }
2772
-              })
2773
-              .catch(function(error) {
2774
-
2775
-              })
2776
-
2777
-          break
2778
-        case 2:
2779
-          var that = this
2780
-          var obj2 = {
2781
-            id: this.patientInfo.id,
2782
-            record_time: this.record_date,
2783 2884
             his_patient_id: this.hisPatientInfo.id,
2784
-            org_id: this.$store.getters.xt_user.org_id,
2785
-            p_type:14,
2786
-
2885
+            p_type:14
2787 2886
           }
2788
-          obj2['diagnosis'] = this.form.diagnosis.join(',')
2789
-          obj2['sick_type'] = this.form.sick_type
2887
+          obj['diagnosis'] = this.form.diagnosis.join(',')
2888
+          obj['sick_type'] = this.form.sick_type
2790 2889
           if (this.activeName == 'first') {
2791
-            obj2['settle_accounts_type'] = 1
2890
+            obj['settle_accounts_type'] = 1
2792 2891
           } else if (this.activeName == 'second') {
2793
-            obj2['start_time'] = this.other_start_time
2794
-            obj2['end_time'] = this.other_end_time
2795
-            obj2['settle_accounts_type'] = 2
2892
+            obj['start_time'] = this.other_start_time
2893
+            obj['end_time'] = this.other_end_time
2894
+            obj['settle_accounts_type'] = 2
2796 2895
           }
2797
-          axios.get(process.env.BASE_API  + '/coordinate/opKeepAccounts', {
2798
-            params: obj2
2799
-          })
2800
-              .then(function(response) {
2801
-                if (response.data.state == 0) {
2802
-                  that.$message.error(response.data.msg)
2803
-                  that.loadingtwo = false
2804
-                  return false
2805
-                } else {
2806
-                  if (response.data.data.failed_code == -10) {
2807
-                    that.$confirm(response.data.data.msg, '医保错误信息', {
2808
-                      confirmButtonText: '确 定',
2809
-                      type: 'warning'
2810
-                    }).then(() => {
2811
-
2812
-                    }).catch(() => {
2813
-                    })
2814
-
2815
-                  } else {
2816
-                    that.radio = 1
2817
-                    that.changeRadioAndPatient(1)
2818
-                    that.$message({ message: '记账成功', type: 'success', duration: 5000 })
2819
-                  }
2820
-
2821
-                }
2822
-              })
2823
-              .catch(function(error) {
2824
-
2825
-              })
2826
-
2827
-          break
2828
-        case 3:
2829 2896
           var that = this
2830
-          let obj3 = {
2831
-            order_id:this.order.id,
2832
-            admin_user_id: this.$store.getters.xt_user.user.id,
2833
-            org_id: this.$store.getters.xt_user.org_id
2834
-          }
2835
-          axios.get(process.env.BASE_API + '/coordinate/opCancelKeepAccounts', {
2836
-            params: obj3
2897
+          axios.get(process.env.BASE_API  + '/coordinate/settleAccount', {
2898
+            params: obj
2837 2899
           })
2838 2900
               .then(function(response) {
2839 2901
                 if (response.data.state == 0) {
@@ -2853,7 +2915,7 @@ export default {
2853 2915
                   } else {
2854 2916
                     that.radio = 1
2855 2917
                     that.changeRadioAndPatient(1)
2856
-                    that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
2918
+                    that.$message({ message: '记账成功', type: 'success', duration: 5000 })
2857 2919
                   }
2858 2920
 
2859 2921
                 }
@@ -2912,9 +2974,9 @@ export default {
2912 2974
             this.pwd = ''
2913 2975
           } else {
2914 2976
             if (this.activeName == 'first') {
2915
-              this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2977
+              this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder,this.patientInfo.id)
2916 2978
             } else {
2917
-              this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2979
+              this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder,this.patientInfo.id)
2918 2980
             }
2919 2981
 
2920 2982
           }
@@ -2922,7 +2984,7 @@ export default {
2922 2984
           if (this.activeName == 'first') {/////////////////////////押金shows
2923 2985
             this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder,this.patientInfo.id)
2924 2986
           } else {
2925
-            this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2987
+            this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder,this.patientInfo.id)
2926 2988
           }
2927 2989
         }
2928 2990
 
@@ -4527,7 +4589,6 @@ export default {
4527 4589
                       price: prescription.project[b].price,
4528 4590
                       remark: prescription.project[b].remark,
4529 4591
                       // medical_code: prescription.project[b].project.medical_code,
4530
-                      unit: prescription.project[b].unit,
4531 4592
                       type: prescription.project[b].type,
4532 4593
                       execution_state: prescription.project[b].execution_state,
4533 4594
 
@@ -4545,14 +4606,14 @@ export default {
4545 4606
                       obj['project_name'] = prescription.project[b].project.project_name
4546 4607
                       obj['spec'] = ''
4547 4608
                       obj['name_id'] = 0
4548
-
4609
+                      obj['unit']=  prescription.project[b].project.unit
4549 4610
                     } else if (prescription.project[b].type == 3) {
4550 4611
                       obj['statistical_classification'] = ''
4551 4612
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
4552 4613
                       obj['project_name'] = prescription.project[b].good_info.good_name
4553 4614
                       obj['spec'] = prescription.project[b].good_info.specification_name
4554 4615
                       obj['name_id'] = prescription.project[b].good_info.manufacturer
4555
-
4616
+                      obj['unit']=  prescription.project[b].good_info.packing_unit
4556 4617
                     }
4557 4618
 
4558 4619
                     tempProject.push(obj)

+ 408 - 200
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -2,19 +2,20 @@
2 2
   <div>
3 3
     <template>
4 4
       <el-button
5
-        style="position: fixed; right: 25px; z-index: 999"
6
-        :loading="loading"
7
-        size="small"
8
-        icon="el-icon-printer"
9
-        @click="printThisPage"
10
-        type="primary"
11
-        >打印</el-button
5
+          style="position: fixed; right: 25px; z-index: 999"
6
+          :loading="loading"
7
+          size="small"
8
+          icon="el-icon-printer"
9
+          @click="printThisPage"
10
+          type="primary"
11
+      >打印
12
+      </el-button
12 13
       >
13 14
     </template>
14 15
 
15 16
     <div class="dialysisPage" style="padding-top: 40px">
16 17
       <div
17
-        v-if="
18
+          v-if="
18 19
           org_id == 9990 ||
19 20
           org_id == 10138 ||
20 21
           org_id == 9504 ||
@@ -25,26 +26,26 @@
25 26
       >
26 27
         <printTwo :info="info" v-if="org_id == 9990"></printTwo>
27 28
         <printThree
28
-          :info="info"
29
-          :paramsObj="paramsObj"
30
-          :balanceAccounts="balanceAccounts"
31
-          v-if="org_id == 10138 || org_id == 4 || org_id == 10278"
29
+            :info="info"
30
+            :paramsObj="paramsObj"
31
+            :balanceAccounts="balanceAccounts"
32
+            v-if="org_id == 10138 || org_id == 4 || org_id == 10278"
32 33
         ></printThree>
33 34
         <printFour
34
-          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088"
35
-          :info="info"
36
-          :paramsObj="paramsObj"
37
-          :balanceAccounts="balanceAccounts"
35
+            v-if="org_id == 9504 || org_id == 10028 || org_id == 10088"
36
+            :info="info"
37
+            :paramsObj="paramsObj"
38
+            :balanceAccounts="balanceAccounts"
38 39
         ></printFour>
39 40
         <!--        <privateChargePrint  :info="info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></privateChargePrint>-->
40 41
       </div>
41 42
       <!--      <print-other :info="info" v-if="org_id == 9919"></print-other>-->
42 43
       <!--      <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
43 44
       <printFive
44
-        v-if="org_id == 0"
45
-        :info="info"
46
-        :paramsObj="paramsObj"
47
-        :balanceAccounts="balanceAccounts"
45
+          v-if="org_id == 0  || org_id == 10191"
46
+          :info="info"
47
+          :paramsObj="paramsObj"
48
+          :balanceAccounts="balanceAccounts"
48 49
       ></printFive>
49 50
       <printOne :info="info" v-else></printOne>
50 51
       <!-- 测试医保环境下表格样式放开以下这条 -->
@@ -54,14 +55,10 @@
54 55
 </template>
55 56
 
56 57
 <script>
57
-import { parseTime } from "@/utils";
58
-import { getDialysisRecord } from "@/api/dialysis";
59
-import { getDataConfig } from "@/utils/data";
60
-import { jsGetAge, uParseTime } from "@/utils/tools";
58
+import {uParseTime} from "@/utils/tools";
61 59
 import axios from "axios";
62 60
 
63 61
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
64
-import print from "print-js";
65 62
 import printOne from "./statementTemplate/printOne";
66 63
 import privateChargePrint from "./statementTemplate/privateChargePrint";
67 64
 
@@ -70,12 +67,8 @@ import printThree from "./statementTemplate/printThree";
70 67
 import printFour from "./statementTemplate/printFour";
71 68
 import printFive from "./statementTemplate/printFive";
72 69
 import testVue from "./statementTemplate/test";
73
-import {
74
-  getAllDoctorList,
75
-  getAllHisPatientList,
76
-  getPrescriptionPrint,
77
-} from "@/api/project/project";
78
-import { getPrivateExpenses, getPrivateExpensesOrder } from "@/api/his/his";
70
+import {getAllDoctorList, getAllHisPatientList,} from "@/api/project/project";
71
+import {getPrivateExpenses, getPrivateExpensesOrder} from "@/api/his/his";
79 72
 // import PrintOther from '../hospitalStation/statementTemplate/printOther'
80 73
 export default {
81 74
   name: "dialysisPrintOrder",
@@ -95,8 +88,8 @@ export default {
95 88
   data() {
96 89
     return {
97 90
       crumbs: [
98
-        { path: false, name: "门诊医生站" },
99
-        { path: false, name: "打印" },
91
+        {path: false, name: "门诊医生站"},
92
+        {path: false, name: "打印"},
100 93
       ],
101 94
       record_date: "",
102 95
       patientTableData: [],
@@ -119,35 +112,35 @@ export default {
119 112
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
120 113
 
121 114
       if (
122
-        this.$store.getters.xt_user.org_id == 10138 ||
123
-        this.$store.getters.xt_user.org_id == 4 ||
124
-        this.$store.getters.xt_user.org_id == 10278
115
+          this.$store.getters.xt_user.org_id == 10138 ||
116
+          this.$store.getters.xt_user.org_id == 4 ||
117
+          this.$store.getters.xt_user.org_id == 10278
125 118
       ) {
126 119
         setTimeout(() => {
127 120
           const style =
128
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}";
121
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}";
129 122
           const style2 =
130
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}";
123
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}";
131 124
           const style3 =
132
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}";
125
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}";
133 126
           const style4 =
134
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}";
127
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}";
135 128
           const style5 =
136
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}";
129
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}";
137 130
           const style6 =
138
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}";
131
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}";
139 132
           const style7 =
140
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}";
133
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}";
141 134
           const style8 =
142
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}";
135
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}";
143 136
           const style9 =
144
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}";
137
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}";
145 138
           const style10 =
146
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}";
139
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}";
147 140
           const style11 =
148
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}";
141
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}";
149 142
           const style12 =
150
-            "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
143
+              "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
151 144
           if (this.num >= 13) {
152 145
             printJS({
153 146
               printable: "prescription-print",
@@ -235,11 +228,11 @@ export default {
235 228
           }
236 229
         }, 500);
237 230
       } else if (
238
-        this.$store.getters.xt_user.org_id == 9504 ||
239
-        this.$store.getters.xt_user.org_id == 10028
231
+          this.$store.getters.xt_user.org_id == 9504 ||
232
+          this.$store.getters.xt_user.org_id == 10028
240 233
       ) {
241 234
         const style =
242
-          "@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}";
235
+            "@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}";
243 236
         printJS({
244 237
           printable: "prescription-print",
245 238
           type: "html",
@@ -249,11 +242,11 @@ export default {
249 242
       } else {
250 243
         // 医保环境打印格式
251 244
         if (
252
-          this.$store.getters.xt_user.org_id == 9919 ||
253
-          this.$store.getters.xt_user.org_id == 10106
245
+            this.$store.getters.xt_user.org_id == 9919 ||
246
+            this.$store.getters.xt_user.org_id == 10106
254 247
         ) {
255 248
           const style =
256
-            "@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}";
249
+              "@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}";
257 250
           printJS({
258 251
             printable: "statement-print",
259 252
             type: "html",
@@ -261,11 +254,11 @@ export default {
261 254
             scanStyles: false,
262 255
           });
263 256
         } else if (
264
-          this.$store.getters.xt_user.org_id == 0 ||
265
-          this.$store.getters.xt_user.org_id == 10191
257
+            this.$store.getters.xt_user.org_id == 0 ||
258
+            this.$store.getters.xt_user.org_id == 10191
266 259
         ) {
267 260
           const style =
268
-            "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
261
+              "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
269 262
           printJS({
270 263
             printable: "statement-print",
271 264
             type: "html",
@@ -274,7 +267,7 @@ export default {
274 267
           });
275 268
         } else {
276 269
           const style =
277
-            "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
270
+              "@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}";
278 271
           printJS({
279 272
             printable: "statement-print",
280 273
             type: "html",
@@ -316,14 +309,14 @@ export default {
316 309
           let cal_two = 0;
317 310
           for (let i = 0; i < response.data.data.list.length; i++) {
318 311
             if (
319
-              response.data.data.list[i].prescription == null ||
320
-              response.data.data.list[i].prescription.length == 0
312
+                response.data.data.list[i].prescription == null ||
313
+                response.data.data.list[i].prescription.length == 0
321 314
             ) {
322 315
               cal_one = cal_one + 1;
323 316
             }
324 317
             if (
325
-              response.data.data.list[i].prescription != null &&
326
-              response.data.data.list[i].prescription.length > 0
318
+                response.data.data.list[i].prescription != null &&
319
+                response.data.data.list[i].prescription.length > 0
327 320
             ) {
328 321
               cal_two = cal_two + 1;
329 322
             }
@@ -366,7 +359,8 @@ export default {
366 359
     getTimes(time) {
367 360
       return uParseTime(time, "{y}-{m}-{d}");
368 361
     },
369
-    searchAction() {},
362
+    searchAction() {
363
+    },
370 364
     getInfo(order_id, obj) {
371 365
       // 模拟数据
372 366
       // let datainfo =
@@ -375,7 +369,7 @@ export default {
375 369
       // console.log(json, "json");
376 370
       // this.info = json.data.info
377 371
       //
378
-      if (obj.balance_accounts_type == 2) {
372
+      if (obj.balance_accounts_type == 2 ) {
379 373
         let params = {
380 374
           his_patient_id: obj.his_patient_id,
381 375
           id: obj.order_id,
@@ -383,9 +377,9 @@ export default {
383 377
           admin_user_id: this.$store.getters.xt_user.user.id,
384 378
         };
385 379
         if (
386
-          this.org_id == 10138 ||
387
-          this.$store.getters.xt_user.org_id == 4 ||
388
-          this.org_id == 10278
380
+            this.org_id == 10138 ||
381
+            this.$store.getters.xt_user.org_id == 4 ||
382
+            this.org_id == 10278
389 383
         ) {
390 384
           getPrivateExpenses(params).then((response) => {
391 385
             if (response.data.state == 0) {
@@ -507,7 +501,7 @@ export default {
507 501
               console.log(111, this.balanceAccounts);
508 502
             }
509 503
           });
510
-        } else if (this.org_id == 10215 || this.org_id == 0) {
504
+        } else if (this.org_id == 10215 ) {
511 505
           getPrivateExpensesOrder(params).then((response) => {
512 506
             if (response.data.state == 0) {
513 507
               // this.$message.error(response.data.msg)
@@ -535,62 +529,62 @@ export default {
535 529
 
536 530
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
537 531
               that.info["bed_cost_self_total"] =
538
-                response.data.data.bedCostSelfTotal;
532
+                  response.data.data.bedCostSelfTotal;
539 533
               that.info["bed_cost_part_self_total"] =
540
-                response.data.data.bedCostPartSelfTotal;
534
+                  response.data.data.bedCostPartSelfTotal;
541 535
 
542 536
               that.info["operation_cost_total"] =
543
-                response.data.data.operationCostTotal;
537
+                  response.data.data.operationCostTotal;
544 538
               that.info["operation_cost_self_total"] =
545
-                response.data.data.operationCostSelfTotal;
539
+                  response.data.data.operationCostSelfTotal;
546 540
               that.info["operation_cost_part_self_total"] =
547
-                response.data.data.operationCostPartSelfTotal;
541
+                  response.data.data.operationCostPartSelfTotal;
548 542
 
549 543
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
550 544
               that.info["other_cost_self_total"] =
551
-                response.data.data.otherCostSelfTotal;
545
+                  response.data.data.otherCostSelfTotal;
552 546
               that.info["other_cost_part_self_total"] =
553
-                response.data.data.otherCostPartSelfTotal;
547
+                  response.data.data.otherCostPartSelfTotal;
554 548
 
555 549
               that.info["material_cost_total"] =
556
-                response.data.data.materialCostTotal;
550
+                  response.data.data.materialCostTotal;
557 551
               that.info["material_cost_self_total"] =
558
-                response.data.data.materialCostSelfTotal;
552
+                  response.data.data.materialCostSelfTotal;
559 553
               that.info["material_cost_part_self_total"] =
560
-                response.data.data.materialCostPartSelfTotal;
554
+                  response.data.data.materialCostPartSelfTotal;
561 555
 
562 556
               that.info["western_medicine_cost_total"] =
563
-                response.data.data.westernMedicineCostTotal;
557
+                  response.data.data.westernMedicineCostTotal;
564 558
               that.info["western_medicine_cost_self_total"] =
565
-                response.data.data.westernMedicineCostSelfTotal;
559
+                  response.data.data.westernMedicineCostSelfTotal;
566 560
               that.info["western_medicine_cost_part_self_total"] =
567
-                response.data.data.westernMedicineCostPartSelfTotal;
561
+                  response.data.data.westernMedicineCostPartSelfTotal;
568 562
 
569 563
               that.info["chinese_traditional_medicine_cost_total"] =
570
-                response.data.data.chineseTraditionalMedicineCostTotal;
564
+                  response.data.data.chineseTraditionalMedicineCostTotal;
571 565
               that.info["chinese_traditional_medicine_cost_self_total"] =
572
-                response.data.data.chineseTraditionalMedicineCostSelfTotal;
566
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
573 567
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
574
-                response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
568
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
575 569
 
576 570
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
577 571
               that.info["check_cost_self_total"] =
578
-                response.data.data.checkCostSelfTotal;
572
+                  response.data.data.checkCostSelfTotal;
579 573
               that.info["check_cost_part_self_total"] =
580
-                response.data.data.checkCostPartSelfTotal;
574
+                  response.data.data.checkCostPartSelfTotal;
581 575
 
582 576
               that.info["laboratory_cost_total"] =
583
-                response.data.data.laboratoryCostTotal;
577
+                  response.data.data.laboratoryCostTotal;
584 578
               that.info["laboratory_cost_self_total"] =
585
-                response.data.data.laboratoryCostSelfTotal;
579
+                  response.data.data.laboratoryCostSelfTotal;
586 580
               that.info["laboratory_cost_part_self_total"] =
587
-                response.data.data.laboratoryCostPartSelfTotal;
581
+                  response.data.data.laboratoryCostPartSelfTotal;
588 582
 
589 583
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
590 584
               that.info["treat_cost_self_total"] =
591
-                response.data.data.treatCostSelfTotal;
585
+                  response.data.data.treatCostSelfTotal;
592 586
               that.info["treat_cost_part_self_total"] =
593
-                response.data.data.treatCostPartSelfTotal;
587
+                  response.data.data.treatCostPartSelfTotal;
594 588
               that.info["date"] = response.data.data.date;
595 589
               // that.info["number"] = response.data.data.number;
596 590
               that.info["order_infos"] = response.data.data.order_infos;
@@ -655,168 +649,372 @@ export default {
655 649
                 that.info.begndate = that.getTimes(that.paramsObj.start_time);
656 650
                 that.info.enddate = that.getTimes(that.paramsObj.end_time);
657 651
               }
652
+
653
+              that.info.order_infos.map((item) => {
654
+
655
+              });
656
+
658 657
             }
659 658
           });
660
-        }
661
-      } else {
662
-        var that = this;
663
-        axios
664
-          .get("http://127.0.0.1:9532/api/settle/query", {
665
-            params: {
666
-              order_id: order_id,
667
-              admin_user_id: this.$store.getters.xt_user.user.id,
668
-            },
669
-          })
670
-          .then(function (response) {
659
+        } else if (this.org_id == 10191 || this.org_id == 0) {
660
+
661
+          getPrivateExpensesOrder(params).then((response) => {
671 662
             if (response.data.state == 0) {
672
-              this.$message.error(response.data.msg);
663
+              // this.$message.error(response.data.msg)
664
+
673 665
               return false;
674 666
             } else {
675
-              console.log(response.data.data.info);
667
+              var that = this;
676 668
               that.info = response.data.data.info;
677 669
               that.p_admin = response.data.data.printor_admin;
678 670
               that.charge_admin = response.data.data.charge_admin;
679 671
 
680 672
               that.info["p_admin"] = that.p_admin;
681 673
               that.info["charge_admin"] = that.charge_admin;
682
-
683 674
               that.info["order_number"] = response.data.data.order_number;
684 675
               that.info["patient"] = response.data.data.patient;
685 676
               that.info["date"] = response.data.data.date;
686 677
               that.info["number"] = response.data.data.number;
687 678
               that.info["order_infos"] = response.data.data.order_infos;
688 679
               that.info["diagnosis"] = response.data.data.diagnosis;
689
-              that.info["org_code"] = response.data.data.org_code;
690
-              that.info["org_name"] = response.data.data.org_name;
691
-              that.info["doctor_code"] = response.data.data.doctor_code;
692
-              that.info["department"] = response.data.data.department;
693
-              that.info["health_card_no"] = response.data.data.health_card_no;
680
+              that.info["fixmedins_name"] = response.data.data.org_name;
681
+              that.info["fixmedins_code"] = response.data.data.org_code;
682
+              // that.info["doctor_code"] = response.data.data.doctor_code;
683
+              // that.info["department"] = response.data.data.department;
684
+              // that.info["health_card_no"] = response.data.data.health_card_no;
694 685
 
695 686
               that.info["bed_cost_total"] = response.data.data.bedCostTotal;
696 687
               that.info["bed_cost_self_total"] =
697
-                response.data.data.bedCostSelfTotal;
688
+                  response.data.data.bedCostSelfTotal;
698 689
               that.info["bed_cost_part_self_total"] =
699
-                response.data.data.bedCostPartSelfTotal;
690
+                  response.data.data.bedCostPartSelfTotal;
700 691
 
701 692
               that.info["operation_cost_total"] =
702
-                response.data.data.operationCostTotal;
693
+                  response.data.data.operationCostTotal;
703 694
               that.info["operation_cost_self_total"] =
704
-                response.data.data.operationCostSelfTotal;
695
+                  response.data.data.operationCostSelfTotal;
705 696
               that.info["operation_cost_part_self_total"] =
706
-                response.data.data.operationCostPartSelfTotal;
697
+                  response.data.data.operationCostPartSelfTotal;
707 698
 
708 699
               that.info["other_cost_total"] = response.data.data.otherCostTotal;
709 700
               that.info["other_cost_self_total"] =
710
-                response.data.data.otherCostSelfTotal;
701
+                  response.data.data.otherCostSelfTotal;
711 702
               that.info["other_cost_part_self_total"] =
712
-                response.data.data.otherCostPartSelfTotal;
703
+                  response.data.data.otherCostPartSelfTotal;
713 704
 
714 705
               that.info["material_cost_total"] =
715
-                response.data.data.materialCostTotal;
706
+                  response.data.data.materialCostTotal;
716 707
               that.info["material_cost_self_total"] =
717
-                response.data.data.materialCostSelfTotal;
708
+                  response.data.data.materialCostSelfTotal;
718 709
               that.info["material_cost_part_self_total"] =
719
-                response.data.data.materialCostPartSelfTotal;
710
+                  response.data.data.materialCostPartSelfTotal;
720 711
 
721 712
               that.info["western_medicine_cost_total"] =
722
-                response.data.data.westernMedicineCostTotal;
713
+                  response.data.data.westernMedicineCostTotal;
723 714
               that.info["western_medicine_cost_self_total"] =
724
-                response.data.data.westernMedicineCostSelfTotal;
715
+                  response.data.data.westernMedicineCostSelfTotal;
725 716
               that.info["western_medicine_cost_part_self_total"] =
726
-                response.data.data.westernMedicineCostPartSelfTotal;
717
+                  response.data.data.westernMedicineCostPartSelfTotal;
727 718
 
728 719
               that.info["chinese_traditional_medicine_cost_total"] =
729
-                response.data.data.chineseTraditionalMedicineCostTotal;
720
+                  response.data.data.chineseTraditionalMedicineCostTotal;
730 721
               that.info["chinese_traditional_medicine_cost_self_total"] =
731
-                response.data.data.chineseTraditionalMedicineCostSelfTotal;
722
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
732 723
               that.info["chinese_traditional_medicine_cost_part_self_total"] =
733
-                response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
724
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
734 725
 
735 726
               that.info["check_cost_total"] = response.data.data.checkCostTotal;
736 727
               that.info["check_cost_self_total"] =
737
-                response.data.data.checkCostSelfTotal;
728
+                  response.data.data.checkCostSelfTotal;
738 729
               that.info["check_cost_part_self_total"] =
739
-                response.data.data.checkCostPartSelfTotal;
730
+                  response.data.data.checkCostPartSelfTotal;
740 731
 
741 732
               that.info["laboratory_cost_total"] =
742
-                response.data.data.laboratoryCostTotal;
733
+                  response.data.data.laboratoryCostTotal;
743 734
               that.info["laboratory_cost_self_total"] =
744
-                response.data.data.laboratoryCostSelfTotal;
735
+                  response.data.data.laboratoryCostSelfTotal;
745 736
               that.info["laboratory_cost_part_self_total"] =
746
-                response.data.data.laboratoryCostPartSelfTotal;
737
+                  response.data.data.laboratoryCostPartSelfTotal;
747 738
 
748 739
               that.info["treat_cost_total"] = response.data.data.treatCostTotal;
749 740
               that.info["treat_cost_self_total"] =
750
-                response.data.data.treatCostSelfTotal;
741
+                  response.data.data.treatCostSelfTotal;
751 742
               that.info["treat_cost_part_self_total"] =
752
-                response.data.data.treatCostPartSelfTotal;
743
+                  response.data.data.treatCostPartSelfTotal;
753 744
               that.info["date"] = response.data.data.date;
754
-              that.info["number"] = response.data.data.number;
745
+              // that.info["number"] = response.data.data.number;
755 746
               that.info["order_infos"] = response.data.data.order_infos;
756 747
               that.info["diagnosis"] = response.data.data.diagnosis;
757 748
 
758
-              let obj = {
759
-                type: 1,
760
-                details: [],
761
-                total: 0,
762
-              };
763
-              let obj2 = {
764
-                type: 2,
765
-                details: [],
766
-                total: 0,
767
-              };
768
-              let obj3 = {
769
-                type: 3,
770
-                details: [],
771
-                total: 0,
772
-              };
773 749
 
774
-              let obj4 = {
775
-                type: 4,
776
-                details: [],
777
-                total: 0,
778
-              };
779
-              let num = 0;
780
-              that.info.order_infos.map((item) => {
781
-                if (item.advice_id > 0) {
782
-                  obj.details.push(item);
783
-                  obj.total += item.pric * item.advice.prescribing_number;
784
-                  num++;
785
-                } else {
786
-                  if (item.project.type == 2) {
787
-                    obj2.details.push(item);
788
-                    obj2.total += item.pric * item.project.count;
750
+              let list = []
751
+              for (let i = 0; i < response.data.data.order_infos.length; i++) {
752
+                let order = response.data.data.order_infos[i]
753
+                let obj = {
754
+                  name: "",
755
+                  spec: "",
756
+                  cnt: "",
757
+                  det_item_fee_sumamt: "",
758
+                }
759
+
760
+                if (order.advice_id > 0 && order.project_id == 0) {
761
+                  obj.name = order.advice.advice_name
762
+                  let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
763
+                  obj.spec = spec
764
+                  obj.cnt = order.cnt
765
+                  obj.det_item_fee_sumamt =order.det_item_fee_sumamt
766
+                  list.push(obj)
767
+
768
+                }else if (order.advice_id == 0 && order.project_id > 0) {
769
+                  if(order.project.type == 2){
770
+                    obj.name = order.project.project.project_name
771
+                    obj.spec = ""
772
+                    obj.cnt = order.cnt
773
+                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
774
+
775
+                  }else{
776
+                    obj.name = order.project.good_info.good_name
777
+                    obj.spec = order.project.good_info.specification_name
778
+                    obj.cnt = order.cnt
779
+                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
780
+                  }
781
+                  list.push(obj)
782
+                }
783
+
784
+              }
785
+              let len = list.length / 2
786
+              let L_list = []
787
+              let R_list = []
788
+
789
+              for(let i = 0; i < len; i++){
790
+                L_list.push(list[i])
791
+              }
792
+              for(let i = len; i < list.length; i++){
793
+                R_list.push(list[i])
794
+              }
795
+              that.info["L_list"] = L_list
796
+              that.info["R_list"] = R_list
797
+
798
+
799
+
800
+
801
+
802
+
803
+            }
804
+          });
805
+        }
806
+
807
+      } else {
808
+        var that = this;
809
+        axios
810
+            .get("http://127.0.0.1:9532/api/settle/query", {
811
+              params: {
812
+                order_id: order_id,
813
+                admin_user_id: this.$store.getters.xt_user.user.id,
814
+              },
815
+            })
816
+            .then(function (response) {
817
+              if (response.data.state == 0) {
818
+                this.$message.error(response.data.msg);
819
+                return false;
820
+              } else {
821
+                console.log(response.data.data.info);
822
+                that.info = response.data.data.info;
823
+                that.p_admin = response.data.data.printor_admin;
824
+                that.charge_admin = response.data.data.charge_admin;
825
+
826
+                that.info["p_admin"] = that.p_admin;
827
+                that.info["charge_admin"] = that.charge_admin;
828
+
829
+                that.info["order_number"] = response.data.data.order_number;
830
+                that.info["patient"] = response.data.data.patient;
831
+                that.info["date"] = response.data.data.date;
832
+                that.info["number"] = response.data.data.number;
833
+                that.info["order_infos"] = response.data.data.order_infos;
834
+                that.info["diagnosis"] = response.data.data.diagnosis;
835
+                that.info["org_code"] = response.data.data.org_code;
836
+                that.info["org_name"] = response.data.data.org_name;
837
+                that.info["doctor_code"] = response.data.data.doctor_code;
838
+                that.info["department"] = response.data.data.department;
839
+                that.info["health_card_no"] = response.data.data.health_card_no;
840
+
841
+                that.info["bed_cost_total"] = response.data.data.bedCostTotal;
842
+                that.info["bed_cost_self_total"] =
843
+                    response.data.data.bedCostSelfTotal;
844
+                that.info["bed_cost_part_self_total"] =
845
+                    response.data.data.bedCostPartSelfTotal;
846
+
847
+                that.info["operation_cost_total"] =
848
+                    response.data.data.operationCostTotal;
849
+                that.info["operation_cost_self_total"] =
850
+                    response.data.data.operationCostSelfTotal;
851
+                that.info["operation_cost_part_self_total"] =
852
+                    response.data.data.operationCostPartSelfTotal;
853
+
854
+                that.info["other_cost_total"] = response.data.data.otherCostTotal;
855
+                that.info["other_cost_self_total"] =
856
+                    response.data.data.otherCostSelfTotal;
857
+                that.info["other_cost_part_self_total"] =
858
+                    response.data.data.otherCostPartSelfTotal;
859
+
860
+                that.info["material_cost_total"] =
861
+                    response.data.data.materialCostTotal;
862
+                that.info["material_cost_self_total"] =
863
+                    response.data.data.materialCostSelfTotal;
864
+                that.info["material_cost_part_self_total"] =
865
+                    response.data.data.materialCostPartSelfTotal;
866
+
867
+                that.info["western_medicine_cost_total"] =
868
+                    response.data.data.westernMedicineCostTotal;
869
+                that.info["western_medicine_cost_self_total"] =
870
+                    response.data.data.westernMedicineCostSelfTotal;
871
+                that.info["western_medicine_cost_part_self_total"] =
872
+                    response.data.data.westernMedicineCostPartSelfTotal;
873
+
874
+                that.info["chinese_traditional_medicine_cost_total"] =
875
+                    response.data.data.chineseTraditionalMedicineCostTotal;
876
+                that.info["chinese_traditional_medicine_cost_self_total"] =
877
+                    response.data.data.chineseTraditionalMedicineCostSelfTotal;
878
+                that.info["chinese_traditional_medicine_cost_part_self_total"] =
879
+                    response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
880
+
881
+                that.info["check_cost_total"] = response.data.data.checkCostTotal;
882
+                that.info["check_cost_self_total"] =
883
+                    response.data.data.checkCostSelfTotal;
884
+                that.info["check_cost_part_self_total"] =
885
+                    response.data.data.checkCostPartSelfTotal;
886
+
887
+                that.info["laboratory_cost_total"] =
888
+                    response.data.data.laboratoryCostTotal;
889
+                that.info["laboratory_cost_self_total"] =
890
+                    response.data.data.laboratoryCostSelfTotal;
891
+                that.info["laboratory_cost_part_self_total"] =
892
+                    response.data.data.laboratoryCostPartSelfTotal;
893
+
894
+                that.info["treat_cost_total"] = response.data.data.treatCostTotal;
895
+                that.info["treat_cost_self_total"] =
896
+                    response.data.data.treatCostSelfTotal;
897
+                that.info["treat_cost_part_self_total"] =
898
+                    response.data.data.treatCostPartSelfTotal;
899
+                that.info["date"] = response.data.data.date;
900
+                that.info["number"] = response.data.data.number;
901
+                that.info["order_infos"] = response.data.data.order_infos;
902
+                that.info["diagnosis"] = response.data.data.diagnosis;
903
+
904
+                let obj = {
905
+                  type: 1,
906
+                  details: [],
907
+                  total: 0,
908
+                };
909
+                let obj2 = {
910
+                  type: 2,
911
+                  details: [],
912
+                  total: 0,
913
+                };
914
+                let obj3 = {
915
+                  type: 3,
916
+                  details: [],
917
+                  total: 0,
918
+                };
919
+
920
+                let obj4 = {
921
+                  type: 4,
922
+                  details: [],
923
+                  total: 0,
924
+                };
925
+                let num = 0;
926
+                that.info.order_infos.map((item) => {
927
+                  if (item.advice_id > 0) {
928
+                    obj.details.push(item);
929
+                    obj.total += item.pric * item.advice.prescribing_number;
789 930
                     num++;
790 931
                   } else {
791
-                    obj3.details.push(item);
792
-                    obj3.total += item.pric * item.project.count;
793
-                    num++;
932
+                    if (item.project.type == 2) {
933
+                      obj2.details.push(item);
934
+                      obj2.total += item.pric * item.project.count;
935
+                      num++;
936
+                    } else {
937
+                      obj3.details.push(item);
938
+                      obj3.total += item.pric * item.project.count;
939
+                      num++;
940
+                    }
794 941
                   }
942
+                });
943
+
944
+                // this.info.order_infos.map(item => {
945
+                //   obj4.total = item.Total
946
+                //   obj4.details.push(item)
947
+                //   num++
948
+                //
949
+                // })
950
+
951
+                that.info.new_detail_list = [];
952
+                that.info.new_detail_list.push(obj);
953
+                that.info.new_detail_list.push(obj2);
954
+                that.info.new_detail_list.push(obj3);
955
+                // that.info.new_detail_list.push(obj4)
956
+
957
+                that.num = num;
958
+
959
+                if (that.paramsObj.settle_type != 1) {
960
+                  that.info.begndate = that.getTimes(that.paramsObj.start_time);
961
+                  that.info.enddate = that.getTimes(that.paramsObj.end_time);
795 962
                 }
796
-              });
797 963
 
798
-              // this.info.order_infos.map(item => {
799
-              //   obj4.total = item.Total
800
-              //   obj4.details.push(item)
801
-              //   num++
802
-              //
803
-              // })
804 964
 
805
-              that.info.new_detail_list = [];
806
-              that.info.new_detail_list.push(obj);
807
-              that.info.new_detail_list.push(obj2);
808
-              that.info.new_detail_list.push(obj3);
809
-              // that.info.new_detail_list.push(obj4)
810 965
 
811
-              that.num = num;
966
+                let list = []
967
+                for (let i = 0; i < response.data.data.order_infos.length; i++) {
968
+                  let order = response.data.data.order_infos[i]
969
+                  let obj = {
970
+                    name: "",
971
+                    spec: "",
972
+                    cnt: "",
973
+                    det_item_fee_sumamt: "",
974
+                  }
975
+
976
+                  if (order.advice_id > 0 && order.project_id == 0) {
977
+                    obj.name = order.advice.advice_name
978
+                    let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
979
+                    obj.spec = spec
980
+                    obj.cnt = order.cnt
981
+                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
982
+                    list.push(obj)
983
+
984
+                  }else if (order.advice_id == 0 && order.project_id > 0) {
985
+                    if(order.project.type == 2){
986
+                      obj.name = order.project.project.project_name
987
+                      obj.spec = ""
988
+                      obj.cnt = order.cnt
989
+                      obj.det_item_fee_sumamt =order.det_item_fee_sumamt
990
+
991
+                    }else{
992
+                      obj.name = order.project.good_info.good_name
993
+                      obj.spec = order.project.good_info.specification_name
994
+                      obj.cnt = order.cnt
995
+                      obj.det_item_fee_sumamt =order.det_item_fee_sumamt
996
+                    }
997
+                    list.push(obj)
998
+                  }
999
+
1000
+                }
1001
+                let len = list.length / 2
1002
+                let L_list = []
1003
+                let R_list = []
1004
+
1005
+                for(let i = 0; i < len; i++){
1006
+                  L_list.push(list[i])
1007
+                }
1008
+                for(let i = len; i < list.length; i++){
1009
+                  R_list.push(list[i])
1010
+                }
1011
+                that.info["L_list"] = L_list
1012
+                that.info["R_list"] = R_list
812 1013
 
813
-              if (that.paramsObj.settle_type != 1) {
814
-                that.info.begndate = that.getTimes(that.paramsObj.start_time);
815
-                that.info.enddate = that.getTimes(that.paramsObj.end_time);
816 1014
               }
817
-            }
818
-          })
819
-          .catch(function (error) {});
1015
+            })
1016
+            .catch(function (error) {
1017
+            });
820 1018
       }
821 1019
     },
822 1020
   },
@@ -933,7 +1131,7 @@ export default {
933 1131
   background-color: #fff;
934 1132
   z-index: 1;
935 1133
   transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
936
-    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
1134
+  background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
937 1135
 }
938 1136
 
939 1137
 .dialysis-print-order .is-checked-radio::after {
@@ -970,21 +1168,26 @@ export default {
970 1168
   text-align: left;
971 1169
   padding-left: 10px !important;
972 1170
 }
1171
+
973 1172
 .title-box-pro-tr {
974 1173
   border: 0 #fff;
975 1174
 }
1175
+
976 1176
 .text-align-left {
977 1177
   text-align: left !important;
978 1178
   padding-left: 10px !important;
979 1179
   font-size: 14px !important;
980 1180
   line-height: 25px;
981 1181
 }
1182
+
982 1183
 .print-table-tr-new td {
983 1184
   line-height: 20px !important;
984 1185
 }
1186
+
985 1187
 .border-top-solid {
986 1188
   border: solid 1px #000;
987 1189
 }
1190
+
988 1191
 .print-template-two tr {
989 1192
   line-height: 30px;
990 1193
 }
@@ -996,6 +1199,7 @@ export default {
996 1199
   font-size: 14px;
997 1200
   border-collapse: collapse;
998 1201
 }
1202
+
999 1203
 .table-box1 tr {
1000 1204
   border-bottom: 1px solid #000;
1001 1205
 }
@@ -1003,19 +1207,23 @@ export default {
1003 1207
 
1004 1208
 <style lang="scss">
1005 1209
 .newContainer {
1006
-  .dialysisPage::-webkit-scrollbar {
1007
-    height: 15px;
1008
-  }
1009
-
1010
-  .el-date-editor {
1011
-    .el-input__inner {
1012
-      padding-right: 0px;
1013
-    }
1014
-  }
1015
-  .el-table td,
1016
-  .el-table th {
1017
-    text-align: center;
1018
-  }
1210
+
1211
+.dialysisPage::-webkit-scrollbar {
1212
+  height: 15px;
1213
+}
1214
+
1215
+.el-date-editor {
1216
+
1217
+.el-input__inner {
1218
+  padding-right: 0px;
1219
+}
1220
+
1221
+}
1222
+.el-table td,
1223
+.el-table th {
1224
+  text-align: center;
1225
+}
1226
+
1019 1227
 }
1020 1228
 .newContainer::-webkit-scrollbar {
1021 1229
   height: 15px !important;

+ 100 - 78
src/xt_pages/outpatientCharges/statementTemplate/printFive.vue View File

@@ -2,58 +2,80 @@
2 2
   <div id="statement-print" class="statement-print">
3 3
     <table class="statementTable" border="0">
4 4
       <thead>
5
-        <tr>
6
-          <td colspan="10">石狮圣誉血液透析中心结算单</td>
7
-        </tr>
5
+      <tr>
6
+        <td colspan="10">石狮圣誉血液透析中心结算单</td>
7
+      </tr>
8 8
       </thead>
9 9
 
10 10
       <tbody>
11
-        <tr>
12
-          <td colspan="10">日期:{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
13
-        </tr>
14
-        <tr class="view_tr">
15
-          <td colspan="2">姓名:{{info.patient.name}}</td>
16
-          <td colspan="2">性别:{{info.patient.gender == 1 ? '男': '女'}}</td>
17
-          <td colspan="2">医保类型:{{info.insutype == '390'?'城乡居民基本医疗保险':'职工基本医疗保险'}}</td>
18
-          <td colspan="2">社会保障号码:{{info.certno}}</td>
19
-          <td colspan="2">账号余额:{{info.blac}}</td>
20
-        </tr>
21
-        <tr class="view_tr">
22
-          <td colspan="10">明细信息</td>
23
-        </tr>
11
+      <tr>
12
+        <td colspan="10">日期:{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
13
+      </tr>
14
+      <tr class="view_tr">
15
+        <td colspan="2">姓名:{{info.patient.name}}</td>
16
+        <td colspan="2">性别:{{info.patient.gender == 1 ? '男': '女'}}</td>
17
+        <td colspan="2">医保类型:{{info.insutype == '390'?'城乡居民基本医疗保险':'职工基本医疗保险'}}</td>
18
+        <td colspan="2">社会保障号码:{{info.certno}}</td>
19
+        <td colspan="2">账号余额:{{info.blac}}</td>
20
+      </tr>
21
+      <tr class="view_tr">
22
+        <td colspan="10">明细信息</td>
23
+      </tr>
24 24
 
25 25
         <!-- 帐单列表分为左右两列,需要对数据进行x/2分别放进list_L,list_R两个数组进行循环 -->
26 26
         <tr>
27
+<!--          <td colspan="24">-->
28
+<!--            <template v-for="(v, i) in info.list" >-->
29
+<!--              <el-row gutter="24" >-->
30
+<!--                <el-col span="12" :key="i" v-if='i%2 == 0'>-->
31
+<!--                  <table class="list_table">-->
32
+<!--                    <template>-->
33
+<!--                      <tr colspan="12">-->
34
+<!--                        <td colspan="2">{{v.name}}</td>-->
35
+<!--                        <td>{{v.spec}}</td>-->
36
+<!--                        <td>{{v.cnt}}</td>-->
37
+<!--                        <td>{{v.det_item_fee_sumamt}}</td>-->
38
+<!--                      </tr>-->
39
+<!--                    </template>-->
40
+<!--                  </table>-->
41
+<!--                </el-col>-->
42
+<!--                <el-col span="12" v-if="i+1 < info.list.length">-->
43
+<!--                  <table class="list_table">-->
44
+<!--                    <template >-->
45
+<!--                      <tr colspan="12">-->
46
+<!--                        <td colspan="2">{{v.name}}</td>-->
47
+<!--                        <td>{{v.spec}}</td>-->
48
+<!--                        <td>{{v.cnt}}</td>-->
49
+<!--                        <td>{{v.det_item_fee_sumamt}}</td>-->
50
+<!--                      </tr>-->
51
+<!--                    </template>-->
52
+<!--                  </table>-->
53
+<!--                </el-col>-->
54
+<!--              </el-row>-->
55
+<!--            </template>-->
56
+<!--          </td>-->
57
+        <tr>
27 58
           <td colspan="6">
28 59
             <table class="list_table">
29
-              <template v-for="(item, index) in list" v-if='index%2==0'>
30
-              <tr colspan="6"  :key="index">
31
-                <td colspan="2">药名</td>
32
-                <td>规格</td>
33
-                <td>数量</td>
34
-                <td>价格</td>
60
+              <tr colspan="6" v-for="(v, index) in info.L_list" :key="index">
61
+                <td colspan="2">{{v.name}}</td>
62
+                <td>{{v.spec}}</td>
63
+                <td>{{v.cnt}}</td>
64
+                <td>{{v.det_item_fee_sumamt}}</td>
35 65
               </tr>
36
-                <tr  v-if='index+1<list.length' >
37
-                  <td colspan="2">药名</td>
38
-                  <td>规格</td>
39
-                  <td>数量</td>
40
-                  <td>价格</td>
41
-                </tr>
42
-              </template>
43 66
             </table>
44
-
45 67
           </td>
46 68
 
47
-<!--          <td colspan="4">-->
48
-<!--            <table class="list_table">-->
49
-<!--              <tr colspan="4" v-for="(item, index) in list_R" :key="index">-->
50
-<!--                <td colspan="2">药名</td>-->
51
-<!--                <td>规格</td>-->
52
-<!--                <td>数量</td>-->
53
-<!--                <td>价格</td>-->
54
-<!--              </tr>-->
55
-<!--            </table>-->
56
-<!--          </td>-->
69
+          <td colspan="6">
70
+            <table class="list_table">
71
+              <tr colspan="6" v-for="(v, index) in info.R_list" :key="index">
72
+                <td colspan="2">{{v.name}}</td>
73
+                <td>{{v.spec}}</td>
74
+                <td>{{v.cnt}}</td>
75
+                <td>{{v.det_item_fee_sumamt}}</td>
76
+              </tr>
77
+            </table>
78
+          </td>
57 79
         </tr>
58 80
         <tr>
59 81
           <td colspan="10">共一页,第一页{{info.medfee_sumamt}}</td>
@@ -66,7 +88,7 @@
66 88
             <div>费用总计:{{info.medfee_sumamt}}</div>
67 89
             <div>统筹支付:{{info.fund_pay_sumamt}}</div>
68 90
             <div>账户支付:{{info.acct_pay}}</div>
69
-            <div>个人现金支付:{{info.psn_cash_pay}}</div>
91
+            <div>个人现金支付:{{info.cash_payamt}}</div>
70 92
             <div>其他支付:{{info.oth_pay}}</div>
71 93
             <div>减免金额:</div>
72 94
           </td>
@@ -99,7 +121,7 @@ export default {
99 121
   },
100 122
   data() {
101 123
     return {
102
-      list:[1,2],
124
+      list:[1,2,3],
103 125
       list_L: [1,2],
104 126
       list_R: [1,2],
105 127
     };
@@ -140,53 +162,53 @@ export default {
140 162
 
141 163
 
142 164
 <style lang="scss" scoped>
143
-.statement-print {
144
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
165
+  .statement-print {
166
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
145 167
     0 0 60px rgba(0, 0, 0, 0.06) inset;
146
-  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
168
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
147 169
     0 0 40px rgba(0, 0, 0, 0.06) inset;
148
-  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
149
-  margin-bottom: 20px;
150
-  padding: 20px 10px;
151
-}
170
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
171
+    margin-bottom: 20px;
172
+    padding: 20px 10px;
173
+  }
152 174
 
153
-.statementTitle {
154
-  font-size: 28px;
155
-  text-align: center;
156
-  font-weight: bold;
157
-  margin-bottom: 10px;
158
-}
175
+  .statementTitle {
176
+    font-size: 28px;
177
+    text-align: center;
178
+    font-weight: bold;
179
+    margin-bottom: 10px;
180
+  }
159 181
 
160
-.statementTable {
161
-  width: 100%;
162
-  text-align: center;
163
-  border-collapse: collapse;
164
-  line-height: 40px;
165
-  font-size: 14px;
166
-}
167
-.statementTable thead{
168
-  font-size: 28px;
169
-  text-align: center;
170
-  font-weight: bold;
171
-  margin-bottom: 10px;
172
-}
182
+  .statementTable {
183
+    width: 100%;
184
+    text-align: center;
185
+    border-collapse: collapse;
186
+    line-height: 40px;
187
+    font-size: 14px;
188
+  }
189
+  .statementTable thead{
190
+    font-size: 28px;
191
+    text-align: center;
192
+    font-weight: bold;
193
+    margin-bottom: 10px;
194
+  }
173 195
 
174
-.statementTable tbody{
196
+  .statementTable tbody{
175 197
     text-align: left;
176
-}
177
-tbody .view_tr{
198
+  }
199
+  tbody .view_tr{
178 200
     border: 1px solid;
179 201
     text-align: center;
180
-}
181
-.list_table{
202
+  }
203
+  .list_table{
182 204
     width: 100%;
183 205
     margin-bottom: 100px;
184
-}
185
-tbody .dashed_tr{
206
+  }
207
+  tbody .dashed_tr{
186 208
     border: 1px dashed;
187 209
     text-align: center;
188
-}
189
-tbody tr td div{
210
+  }
211
+  tbody tr td div{
190 212
     height: 25px;
191
-}
213
+  }
192 214
 </style>

+ 36 - 35
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue View File

@@ -1,8 +1,9 @@
1 1
 <template>
2 2
   <div id="statement-print" class="statement-print">
3 3
     <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217">江苏省社会医疗保险医疗费用结算单</div>
4
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10191">福建省社会医疗保险医疗费用结算单</div>
4 5
     <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10088">广水源生堂社会医疗保险医疗费用结算单</div>
5
-    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088">广东省社会医疗保险医疗费用结算单</div>
6
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088">广东省社会医疗保险医疗费用结算单</div>
6 7
 
7 8
     <table class="statementTable" border="1">
8 9
       <tr>
@@ -12,16 +13,16 @@
12 13
         <td colspan="4">{{info.fixmedins_code}}</td>
13 14
         <td width="100">医保结算级别</td>
14 15
         <td width="100" v-if="info.hosp_lv == '1'">三级特等</td>
15
-        <td width="100" v-if="info.hosp_lv == '2'">三级甲等</td>
16
-        <td width="100" v-if="info.hosp_lv == '3'">三级乙等</td>
17
-        <td width="100" v-if="info.hosp_lv == '4'">三级丙等</td>
18
-        <td width="100" v-if="info.hosp_lv == '5'">二级甲等</td>
19
-        <td width="100" v-if="info.hosp_lv == '6'">二级乙等</td>
20
-        <td width="100" v-if="info.hosp_lv == '7'">二级丙等</td>
21
-        <td width="100" v-if="info.hosp_lv == '8'">一级甲等</td>
22
-        <td width="100" v-if="info.hosp_lv == '9'">一级乙等</td>
23
-        <td width="100" v-if="info.hosp_lv == '10'">一级丙等</td>
24
-        <td width="100" v-if="info.hosp_lv == '11'">无等级</td>
16
+        <td width="100" v-else-if="info.hosp_lv == '2'">三级甲等</td>
17
+        <td width="100" v-else-if="info.hosp_lv == '3'">三级乙等</td>
18
+        <td width="100" v-else-if="info.hosp_lv == '4'">三级丙等</td>
19
+        <td width="100" v-else-if="info.hosp_lv == '5'">二级甲等</td>
20
+        <td width="100" v-else-if="info.hosp_lv == '6'">二级乙等</td>
21
+        <td width="100" v-else-if="info.hosp_lv == '7'">二级丙等</td>
22
+        <td width="100" v-else-if="info.hosp_lv == '8'">一级甲等</td>
23
+        <td width="100" v-else-if="info.hosp_lv == '9'">一级乙等</td>
24
+        <td width="100" v-else-if="info.hosp_lv == '10'">一级丙等</td>
25
+        <td width="100" v-else-if="info.hosp_lv == '11'">无等级</td>
25 26
         <td width="100" v-else></td>
26 27
 
27 28
       </tr>
@@ -42,37 +43,37 @@
42 43
         <td width="110"></td>
43 44
         <td width="80">人员类别</td>
44 45
         <td colspan="3" v-if="info.psn_type == '11'">在职</td>
45
-        <td colspan="3" v-if="info.psn_type == '1101'">职工在职</td>
46
-        <td colspan="3" v-if="info.psn_type == '1102'">公务员在职</td>
47
-        <td colspan="3" v-if="info.psn_type == '1103'">灵活就业人员在职</td>
48
-        <td colspan="3" v-if="info.psn_type == '1160'">地方其他扩展人员</td>
46
+        <td colspan="3" v-else-if="info.psn_type == '1101'">职工在职</td>
47
+        <td colspan="3" v-else-if="info.psn_type == '1102'">公务员在职</td>
48
+        <td colspan="3" v-else-if="info.psn_type == '1103'">灵活就业人员在职</td>
49
+        <td colspan="3" v-else-if="info.psn_type == '1160'">地方其他扩展人员</td>
49 50
 
50 51
 
51
-        <td colspan="3" v-if="info.psn_type == '12'">退休人员</td>
52
-        <td colspan="3" v-if="info.psn_type == '1201'">职工退休</td>
53
-        <td colspan="3" v-if="info.psn_type == '1202'">公务员退休</td>
54
-        <td colspan="3" v-if="info.psn_type == '1203'">灵活就业人员退休</td>
55
-        <td colspan="3" v-if="info.psn_type == '1260'">地方其他扩展人员</td>
52
+        <td colspan="3" v-else-if="info.psn_type == '12'">退休人员</td>
53
+        <td colspan="3" v-else-if="info.psn_type == '1201'">职工退休</td>
54
+        <td colspan="3" v-else-if="info.psn_type == '1202'">公务员退休</td>
55
+        <td colspan="3" v-else-if="info.psn_type == '1203'">灵活就业人员退休</td>
56
+        <td colspan="3" v-else-if="info.psn_type == '1260'">地方其他扩展人员</td>
56 57
 
57 58
 
58
-        <td colspan="3" v-if="info.psn_type == '13'">离休</td>
59
-        <td colspan="3" v-if="info.psn_type == '1300'">离休人员</td>
60
-        <td colspan="3" v-if="info.psn_type == '1360'">地方其他扩展人员</td>
59
+        <td colspan="3" v-else-if="info.psn_type == '13'">离休</td>
60
+        <td colspan="3" v-else-if="info.psn_type == '1300'">离休人员</td>
61
+        <td colspan="3" v-else-if="info.psn_type == '1360'">地方其他扩展人员</td>
61 62
 
62
-        <td colspan="3" v-if="info.psn_type == '14'">居民(未成年)</td>
63
-        <td colspan="3" v-if="info.psn_type == '1401'">新生儿</td>
64
-        <td colspan="3" v-if="info.psn_type == '1402'">学龄前儿童</td>
65
-        <td colspan="3" v-if="info.psn_type == '1403'">中小学生</td>
66
-        <td colspan="3" v-if="info.psn_type == '1404'">大学生</td>
67
-        <td colspan="3" v-if="info.psn_type == '1405'">未成年(未入学)</td>
63
+        <td colspan="3" v-else-if="info.psn_type == '14'">居民(未成年)</td>
64
+        <td colspan="3" v-else-if="info.psn_type == '1401'">新生儿</td>
65
+        <td colspan="3" v-else-if="info.psn_type == '1402'">学龄前儿童</td>
66
+        <td colspan="3" v-else-if="info.psn_type == '1403'">中小学生</td>
67
+        <td colspan="3" v-else-if="info.psn_type == '1404'">大学生</td>
68
+        <td colspan="3" v-else-if="info.psn_type == '1405'">未成年(未入学)</td>
68 69
 
69 70
 
70
-        <td colspan="3" v-if="info.psn_type == '15'">居民(成年)</td>
71
-        <td colspan="3" v-if="info.psn_type == '1501'">普通居民(成年)</td>
72
-        <td colspan="3" v-if="info.psn_type == '1560'">地方其他扩展身份</td>
73
-
74
-        <td colspan="3" v-if="info.psn_type == '16'">居民(老年)</td>
71
+        <td colspan="3" v-else-if="info.psn_type == '15'">居民(成年)</td>
72
+        <td colspan="3" v-else-if="info.psn_type == '1501'">普通居民(成年)</td>
73
+        <td colspan="3" v-else-if="info.psn_type == '1560'">地方其他扩展身份</td>
75 74
 
75
+        <td colspan="3" v-else-if="info.psn_type == '16'">居民(老年)</td>
76
+        <td colspan="4" v-else></td>
76 77
 
77 78
 
78 79
       </tr>
@@ -113,7 +114,7 @@
113 114
         <td>入院第一诊断</td>
114 115
         <td colspan="3">{{info.dise_name}}</td>
115 116
         <td>出院第一诊断</td>
116
-        <td colspan="4">{{info.dise_name}}</td>
117
+        <td colspan="6">{{info.dise_name}}</td>
117 118
       </tr>
118 119
       <tr>
119 120
         <td>业务类别</td>

+ 775 - 28
src/xt_pages/outpatientCharges/summary.vue View File

@@ -108,12 +108,20 @@
108 108
           >报表下载
109 109
           </el-button
110 110
           >
111
-<!--          <el-button size="small" type="primary" @click="export_detail_two"-->
112
-<!--          >报表下载2-->
113
-<!--          </el-button-->
114
-<!--          >-->
111
+          <el-button v-if="$store.getters.xt_user.org_id == 10106" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
112
+
113
+          <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
114
+          <!--          >报表下载2-->
115
+          <!--          </el-button-->
116
+          <!--          >-->
117
+
118
+          <!--                    <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>-->
119
+          <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
120
+          <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
121
+          <!--          <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
122
+          <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
123
+
115 124
 
116
-          <el-button size="small" type="primary" @click="export_detail_three">报表下载2</el-button>
117 125
         </div>
118 126
       </div>
119 127
       <el-table
@@ -334,7 +342,6 @@
334 342
 <script>
335 343
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
336 344
 import {getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund,} from "@/api/his/his";
337
-import {uParseTime} from "@/utils/tools";
338 345
 // import NewStatementPrint from './newStatementPrint'
339 346
 import NewStatementPrint from "./statementPrint.vue";
340 347
 import listPrint from "./listPrint";
@@ -344,9 +351,11 @@ import {fetchAllAdminUsers} from "@/api/doctor";
344 351
 import axios from "axios";
345 352
 import invoicePrint from "./invoicePrint";
346 353
 import settlementPrint from "./settlementPrint";
347
-import {getHisDataTwo} from "../../api/his/his";
348
-import {getHisDataThree} from "../../api/his/his";
354
+import {jsGetAge, uParseTime} from "@/utils/tools";
349 355
 
356
+import {getHisDataFive, getHisDataSix, getHisDataThree, getHisDataTwo} from "../../api/his/his";
357
+
358
+import {handleData10106} from "../../api/his/his_export";
350 359
 
351 360
 export default {
352 361
   name: "OutpatientChargesSummary",
@@ -699,7 +708,7 @@ export default {
699 708
                 total: order.info[b].det_item_fee_sumamt,
700 709
                 fund_total: order.info[b].inscp_scp_amt,
701 710
                 patient_id: order.info[b].patient_id,
702
-                dialysis_time:this.getTimes(order.info[b].upload_date)
711
+                dialysis_time: this.getTimes(order.info[b].upload_date)
703 712
 
704 713
               }
705 714
               // if (order.info[b].advice_id > 0 && order.info[b].project_id == 0) {
@@ -823,19 +832,19 @@ export default {
823 832
           let list = [];
824 833
           for (let i = 0; i < response.data.data.order.length; i++) {
825 834
             let order = response.data.data.order[i];
826
-            let data =  this.setMonthPrescription(order.info)
835
+            let data = this.setMonthPrescription(order.info)
827 836
             // console.log(data)
828
-            for(let b= 0; b < data.length; b++){
837
+            for (let b = 0; b < data.length; b++) {
829 838
               let obj = {
830 839
                 name: order.patient.name,
831 840
                 id_card_no: order.patient.id_card_no,
832 841
                 year: "2022",
833
-                month:"8",
842
+                month: "8",
834 843
                 code: data[b].code,
835 844
                 pric: data[b].count * data[b].price,
836
-                item_name:data[b].name,
837
-                unit:data[b].unit,
838
-                count:data[b].count,
845
+                item_name: data[b].name,
846
+                unit: data[b].unit,
847
+                count: data[b].count,
839 848
 
840 849
               }
841 850
               if (order.insutype == "310") {
@@ -848,9 +857,9 @@ export default {
848 857
 
849 858
           }
850 859
 
851
-          var  tarList = []
860
+          var tarList = []
852 861
           for (let i = 0; i < list.length; i++) {
853
-            if(list[i].pric > 0) {
862
+            if (list[i].pric > 0) {
854 863
               let obj = {
855 864
                 "姓名": list[i].name,
856 865
                 "身份证号": list[i].id_card_no,
@@ -904,6 +913,701 @@ export default {
904 913
         }
905 914
       });
906 915
     },
916
+    export_detail_four() {
917
+      let params = {};
918
+      getHisDataFive(params).then((response) => {
919
+        if (response.data.state == 0) {
920
+          this.$message.error(response.data.msg);
921
+          return false;
922
+        } else {
923
+          let list = [];
924
+          for (let i = 0; i < response.data.data.order.length; i++) {
925
+            let order = response.data.data.order[i];
926
+            // console.log(data)
927
+            for (let b = 0; b < order.info.length; b++) {
928
+              let obj = {
929
+                org_name: "生命之源血液透析中心",
930
+                name: order.patient.name,
931
+                id_card_no: order.patient.id_card_no,
932
+                jiuyi_date: this.getTimes(order.settle_accounts_date),
933
+                dianhua: order.patient.phone,
934
+                pric: order.info[b].pric,
935
+                cnt: order.info[b].cnt,
936
+                det_item_fee_sumamt: order.info[b].det_item_fee_sumamt,
937
+                zhenduan: "慢性肾衰竭",
938
+                shifouyibao: "是",
939
+                doctor: "高华",
940
+                jiesuanfangshi: "医保",
941
+                jizhangshijian: order.setl_time,
942
+                feiyongheji: order.medfee_sumamt,
943
+                jizhangjine: order.fund_pay_sumamt,
944
+                xianjinheji: order.psn_cash_pay,
945
+
946
+              }
947
+              if (order.is_medicine_insurance == 1) {
948
+                obj.jiesuanfangshi = "是"
949
+
950
+              } else {
951
+
952
+                obj.jiesuanfangshi = "否"
953
+
954
+              }
955
+
956
+              if (order.info[b].advice_id > 0 && order.info[b].project_id == 0) {
957
+                obj["yibaomulucode"] = order.info[b].advices.drug.medical_insurance_number
958
+                obj["yibaomuluname"] = order.info[b].advices.drug.drug_name
959
+                obj["neibumulucode"] = order.info[b].advices.drug.id
960
+                obj["neibumuluname"] = order.info[b].advices.drug.drug_name
961
+              }
962
+              if (order.info[b].advice_id == 0 && order.info[b].project_id > 0) {
963
+                if (order.info[b].project.type == 2) {
964
+                  obj["yibaomulucode"] = order.info[b].project.project.medical_code
965
+                  obj["yibaomuluname"] = order.info[b].project.project.project_name
966
+                  obj["neibumulucode"] = order.info[b].project.project.id
967
+                  obj["neibumuluname"] = order.info[b].project.project.project_name
968
+
969
+                } else {
970
+                  obj["yibaomulucode"] = order.info[b].project.good_info.medical_insurance_number
971
+                  obj["yibaomuluname"] = order.info[b].project.good_info.good_name
972
+                  obj["neibumulucode"] = order.info[b].project.good_info.id
973
+                  obj["neibumuluname"] = order.info[b].project.good_info.good_name
974
+                }
975
+              }
976
+              var thisLen = order.patient.id_card_no.length
977
+              var birth = ''
978
+              if (thisLen == 15) {
979
+                birth = '19' + order.patient.id_card_no.substr(6, 6)
980
+              } else {
981
+                birth = order.patient.id_card_no.substr(6, 8)
982
+              }
983
+              var births =
984
+                  birth.substr(0, 4) +
985
+                  '-' +
986
+                  birth.substr(4, 2) +
987
+                  '-' +
988
+                  birth.substr(6, 2)
989
+              obj["age"] = jsGetAge(births, '-')
990
+
991
+              if (order.patient.gender == 1) {
992
+                obj['gender'] = "男"
993
+              } else {
994
+                obj['gender'] = "女"
995
+              }
996
+
997
+              list.push(obj)
998
+            }
999
+
1000
+          }
1001
+
1002
+          var tarList = []
1003
+          for (let i = 0; i < list.length; i++) {
1004
+            if (list[i].pric > 0) {
1005
+              let obj = {
1006
+                "机构编码": list[i].org_name,
1007
+                "就诊人姓名": list[i].name,
1008
+                "性别": list[i].gender,
1009
+                "年龄": list[i].age,
1010
+                "身份证号码": list[i].id_card_no,
1011
+                "就医日期": list[i].jiuyi_date,
1012
+                "电话": list[i].dianhua,
1013
+                "医保目录编码": list[i].yibaomulucode,
1014
+                "医保目录名称": list[i].yibaomuluname,
1015
+                "机构内部编码": list[i].neibumulucode,
1016
+                "机构内部名称": list[i].neibumuluname,
1017
+                "就诊项目明细": list[i].yibaomuluname,
1018
+                "单价": list[i].pric,
1019
+                "数量": list[i].cnt,
1020
+                "金额": list[i].det_item_fee_sumamt,
1021
+                "费用合计": list[i].feiyongheji,
1022
+                "记账金额": list[i].jizhangjine,
1023
+                "现金合计": list[i].xianjinheji,
1024
+                "结算方式": list[i].jiesuanfangshi,
1025
+                "接诊医生": list[i].doctor,
1026
+                "诊断": list[i].zhenduan,
1027
+                "记账时间": list[i].jizhangshijian,
1028
+                "是否医保": list[i].shifouyibao,
1029
+
1030
+              }
1031
+              tarList.push(obj)
1032
+            }
1033
+          }
1034
+
1035
+          import("@/vendor/Export2Excel").then((excel) => {
1036
+            const tHeader = [
1037
+              "机构编码",
1038
+              "就诊人姓名",
1039
+              "性别",
1040
+              "年龄",
1041
+              "身份证号码",
1042
+              "就医日期",
1043
+              "电话",
1044
+              "医保目录编码",
1045
+              "医保目录名称",
1046
+              "机构内部编码",
1047
+              "机构内部名称",
1048
+              "就诊项目明细",
1049
+              "单价",
1050
+              "数量",
1051
+              "金额",
1052
+              "费用合计",
1053
+              "记账金额",
1054
+              "现金合计",
1055
+              "结算方式",
1056
+              "接诊医生",
1057
+              "诊断",
1058
+              "记账时间",
1059
+              "是否医保",
1060
+
1061
+            ];
1062
+            const filterVal = [
1063
+              "机构编码",
1064
+              "就诊人姓名",
1065
+              "性别",
1066
+              "年龄",
1067
+              "身份证号码",
1068
+              "就医日期",
1069
+              "电话",
1070
+              "医保目录编码",
1071
+              "医保目录名称",
1072
+              "机构内部编码",
1073
+              "机构内部名称",
1074
+              "就诊项目明细",
1075
+              "单价",
1076
+              "数量",
1077
+              "金额",
1078
+              "费用合计",
1079
+              "记账金额",
1080
+              "现金合计",
1081
+              "结算方式",
1082
+              "接诊医生",
1083
+              "诊断",
1084
+              "记账时间",
1085
+              "是否医保",
1086
+
1087
+            ];
1088
+            const data = this.formatJson(filterVal, tarList);
1089
+            excel.export_json_to_excel({
1090
+              header: tHeader,
1091
+              data,
1092
+              filename: "消费明细",
1093
+            });
1094
+          });
1095
+        }
1096
+      });
1097
+
1098
+    },
1099
+    export_detail_five() {
1100
+      let params = {};
1101
+      getHisDataFive(params).then((response) => {
1102
+        if (response.data.state == 0) {
1103
+          this.$message.error(response.data.msg);
1104
+          return false;
1105
+        } else {
1106
+          let list = [];
1107
+          for (let i = 0; i < response.data.data.order.length; i++) {
1108
+            let order = response.data.data.order[i];
1109
+            // console.log(data)
1110
+            for (let b = 0; b < order.info.length; b++) {
1111
+              if (order.info[b].project.project.cost_classify == 3) {
1112
+                let obj = {
1113
+                  p_name: order.psn_name,
1114
+                  code: order.info[b].project.project.id,
1115
+                  name: order.info[b].project.project.project_name,
1116
+                  unit: order.info[b].project.project.unit,
1117
+                  jiage: order.info[b].det_item_fee_sumamt,
1118
+                  name_yibao: order.info[b].project.project.project_name,
1119
+                  guoma: order.info[b].project.project.medical_code,
1120
+                  zifu: order.info[b].selfpay_prop,
1121
+                  cnt: order.info[b].cnt,
1122
+                  pric: order.info[b].pric,
1123
+                  gerenzifu: order.info[b].fulamt_ownpay_amt + order.info[b].preselfpay_amt,
1124
+                  baoxiaojine: order.info[b].inscp_scp_amt,
1125
+
1126
+                }
1127
+                if (order.info[b].chrgitm_lv == "01") {
1128
+                  obj["yibao_dengji"] = "甲"
1129
+                } else if (order.info[b].chrgitm_lv == "02") {
1130
+                  obj["yibao_dengji"] = "乙"
1131
+                } else {
1132
+                  obj["yibao_dengji"] = "丙"
1133
+                }
1134
+                list.push(obj)
1135
+              }
1136
+            }
1137
+
1138
+          }
1139
+          console.log(list)
1140
+
1141
+          var tarList = []
1142
+          for (let i = 0; i < list.length; i++) {
1143
+            let obj = {
1144
+              "姓名": list[i].p_name,
1145
+              "医保目录编码": list[i].guoma,
1146
+              "名称": list[i].name,
1147
+              "单位": list[i].unit,
1148
+              "价格": list[i].jiage,
1149
+              "医保等级": list[i].yibao_dengji,
1150
+              "自付比例": list[i].zifu,
1151
+              "数量": list[i].cnt,
1152
+              "金额": list[i].pric,
1153
+              "个人自付": list[i].gerenzifu,
1154
+              "报销金额": list[i].baoxiaojine,
1155
+
1156
+            }
1157
+            tarList.push(obj)
1158
+          }
1159
+
1160
+          import("@/vendor/Export2Excel").then((excel) => {
1161
+            const tHeader = [
1162
+              "姓名",
1163
+              "医保目录编码",
1164
+              "名称",
1165
+              "单位",
1166
+              "价格",
1167
+              "医保等级",
1168
+              "自付比例",
1169
+              "数量",
1170
+              "金额",
1171
+              "个人自付",
1172
+              "报销金额",
1173
+
1174
+            ];
1175
+            const filterVal = [
1176
+              "姓名",
1177
+              "医保目录编码",
1178
+              "名称",
1179
+              "单位",
1180
+              "价格",
1181
+              "医保等级",
1182
+              "自付比例",
1183
+              "数量",
1184
+              "金额",
1185
+              "个人自付",
1186
+              "报销金额",
1187
+            ];
1188
+            const data = this.formatJson(filterVal, tarList);
1189
+            excel.export_json_to_excel({
1190
+              header: tHeader,
1191
+              data,
1192
+              filename: "消费明细",
1193
+            });
1194
+          });
1195
+        }
1196
+      });
1197
+
1198
+    },
1199
+    export_detail_six() {
1200
+      let params = {};
1201
+      getHisDataSix(params).then((response) => {
1202
+        if (response.data.state == 0) {
1203
+          this.$message.error(response.data.msg);
1204
+          return false;
1205
+        } else {
1206
+          let list = [];
1207
+          let new_list = [];
1208
+          for (let i = 0; i < response.data.data.order.length; i++) {
1209
+            let order = response.data.data.order[i];
1210
+            for (let b = 0; b < order.info.length; b++) {
1211
+              new_list.push(order.info[b])
1212
+            }
1213
+          }
1214
+
1215
+          var infos = this.setMonthPrescriptiontwo(new_list)
1216
+          for (let b = 0; b < infos.length; b++) {
1217
+            list.push(infos[b])
1218
+          }
1219
+
1220
+          var tarList = []
1221
+          for (let i = 0; i < list.length; i++) {
1222
+            let obj = {
1223
+              "周期": "2022年第三季度",
1224
+              "类别": "门诊",
1225
+              "医保目录编码": list[i].code,
1226
+              "医保目录名称": list[i].name,
1227
+              "本机构目录编码": list[i].code,
1228
+              "本机构目录名称": list[i].name,
1229
+              "使用例数": list[i].count,
1230
+              "价格": list[i].price,
1231
+
1232
+            }
1233
+            tarList.push(obj)
1234
+          }
1235
+
1236
+          import("@/vendor/Export2Excel").then((excel) => {
1237
+            const tHeader = [
1238
+              "周期",
1239
+              "类别",
1240
+              "医保目录编码",
1241
+              "医保目录名称",
1242
+              "本机构目录编码",
1243
+              "本机构目录名称",
1244
+              "使用例数",
1245
+              "价格",
1246
+            ];
1247
+            const filterVal = [
1248
+              "周期",
1249
+              "类别",
1250
+              "医保目录编码",
1251
+              "医保目录名称",
1252
+              "本机构目录编码",
1253
+              "本机构目录名称",
1254
+              "使用例数",
1255
+              "价格",
1256
+            ];
1257
+            const data = this.formatJson(filterVal, tarList);
1258
+            excel.export_json_to_excel({
1259
+              header: tHeader,
1260
+              data,
1261
+              filename: "消费明细",
1262
+            });
1263
+          });
1264
+        }
1265
+      });
1266
+
1267
+    },
1268
+    export_detail_seven() {
1269
+      let params = {};
1270
+      handleData10106(params).then((response) => {
1271
+        if (response.data.state == 0) {
1272
+          this.$message.error(response.data.msg);
1273
+          return false;
1274
+        } else {
1275
+          let list = [];
1276
+          for (let i = 0; i < response.data.data.order.length; i++) {
1277
+            let order = response.data.data.order[i];
1278
+            console.log(order)
1279
+            let obj = {
1280
+              md: order.mdtrt_id,
1281
+              name: order.patient.name,
1282
+              kaichu: this.getTimes(order.settle_start_time),
1283
+              xianzhong: "",
1284
+              yingshou: order.medfee_sumamt,
1285
+              yibaotongchou: order.hifp_pay,
1286
+              dabingjijin: order.hifmi_pay,
1287
+              yiliaojiuzhu: order.maf_pay,
1288
+              gongwujijin: order.cvlserv_pay,
1289
+              gerenzhifu: order.psn_part_amt,
1290
+              zongjine: order.medfee_sumamt,
1291
+              setl_time: order.setl_time,
1292
+              jiesuanleixing: '医保',
1293
+              xueyetouxilvguo: 480,
1294
+              lvhuana: 3,
1295
+              zhihuanguan: 40,
1296
+              good_name: "",
1297
+            }
1298
+            if (order.insutype == "390") {
1299
+
1300
+              obj.xianzhong = "城乡"
1301
+            } else {
1302
+
1303
+              obj.xianzhong = "职工"
1304
+
1305
+            }
1306
+
1307
+            for (let b = 0; b < order.info.length; b++) {
1308
+              if (order.info[b].advice_id == 0 && order.info[b].project_id > 0) {
1309
+                console.log("11111")
1310
+
1311
+                if (order.info[b].project.type == 2) {
1312
+                  console.log("22222222")
1313
+
1314
+                  if (order.info[b].project.project.id == 254 || order.info[b].project.project.id == 253 || order.info[b].project.project.id == 250 || order.info[b].project.project.id == 249) {
1315
+                    obj.good_name = this.GetGoodName(order.info[b].project.project.id)
1316
+                  }
1317
+                } else if (order.info[b].project.type == 3) {
1318
+                  console.log("3333333")
1319
+
1320
+                  if (order.info[b].project.project.id == 1478 || order.info[b].project.project.id == 1479 || order.info[b].project.project.id == 1482 || order.info[b].project.project.id == 1483 || order.info[b].project.project.id == 2577 || order.info[b].project.project.id == 2578 || order.info[b].project.project.id == 2058 || order.info[b].project.project.id == 2059) {
1321
+                    obj.good_name = this.GetGoodName(order.info[b].project.good_info.id)
1322
+                    console.log(obj.good_name)
1323
+
1324
+                  }
1325
+                }
1326
+              }
1327
+            }
1328
+            list.push(obj)
1329
+          }
1330
+
1331
+          var tarList = []
1332
+          for (let i = 0; i < list.length; i++) {
1333
+            if (list[i].good_name.length > 0) {
1334
+              let obj = {
1335
+                "序号": i + 1,
1336
+                "就诊号": list[i].md,
1337
+                "患者姓名": list[i].name,
1338
+                "开处时间": list[i].kaichu,
1339
+                "项目(透析器)": list[i].good_name,
1340
+                "血液透析滤过": list[i].xueyetouxilvguo,
1341
+                "0.9%氯化钠注射液": list[i].lvhuana,
1342
+                "置换液管": list[i].zhihuanguan,
1343
+                "险种类型": list[i].xianzhong,
1344
+                "应收金额": list[i].yingshou,
1345
+                "医保统筹金额": list[i].yibaotongchou,
1346
+                "大病基金金额": list[i].dabingjijin,
1347
+                "医疗救助金额": list[i].yiliaojiuzhu,
1348
+                "公务员基金": list[i].gongwujijin,
1349
+                "个人支付基金": list[i].gerenzhifu,
1350
+                "总金额": list[i].zongjine,
1351
+                "收费时间": list[i].setl_time,
1352
+                "结算类型": list[i].jiesuanleixing,
1353
+                "收费状态": "已收费",
1354
+              }
1355
+              tarList.push(obj)
1356
+            }
1357
+          }
1358
+
1359
+          import("@/vendor/Export2Excel").then((excel) => {
1360
+            const tHeader = [
1361
+              "序号",
1362
+              "就诊号",
1363
+              "患者姓名",
1364
+              "开处时间",
1365
+              "项目(透析器)",
1366
+              "血液透析滤过",
1367
+              "0.9%氯化钠注射液",
1368
+              "置换液管",
1369
+              "险种类型",
1370
+              "应收金额",
1371
+              "医保统筹金额",
1372
+              "大病基金金额",
1373
+              "医疗救助金额",
1374
+              "公务员基金",
1375
+              "个人支付基金",
1376
+              "总金额",
1377
+              "收费时间",
1378
+              "结算类型",
1379
+              "收费状态",
1380
+            ];
1381
+            const filterVal = [
1382
+              "序号",
1383
+              "就诊号",
1384
+              "患者姓名",
1385
+              "开处时间",
1386
+              "项目(透析器)",
1387
+              "血液透析滤过",
1388
+              "0.9%氯化钠注射液",
1389
+              "置换液管",
1390
+              "险种类型",
1391
+              "应收金额",
1392
+              "医保统筹金额",
1393
+              "大病基金金额",
1394
+              "医疗救助金额",
1395
+              "公务员基金",
1396
+              "个人支付基金",
1397
+              "总金额",
1398
+              "收费时间",
1399
+              "结算类型",
1400
+              "收费状态",
1401
+            ];
1402
+            const data = this.formatJson(filterVal, tarList);
1403
+            excel.export_json_to_excel({
1404
+              header: tHeader,
1405
+              data,
1406
+              filename: "消费明细",
1407
+            });
1408
+          });
1409
+
1410
+        }
1411
+      });
1412
+
1413
+    },
1414
+    getType(med_chrgitm_type) {
1415
+      switch (med_chrgitm_type) {
1416
+        case '01':
1417
+          return '床位费'
1418
+          break
1419
+        case '02':
1420
+          return '诊察费'
1421
+
1422
+          break
1423
+        case '03':
1424
+          return '检查费'
1425
+
1426
+          break
1427
+        case '04':
1428
+          return '化验费'
1429
+          break
1430
+        case '05':
1431
+          return '治疗费'
1432
+
1433
+          break
1434
+        case '06':
1435
+          return '手术费'
1436
+
1437
+          break
1438
+        case '07':
1439
+          return '护理费'
1440
+
1441
+          break
1442
+        case '08':
1443
+          return '材料费'
1444
+
1445
+          break
1446
+        case '09':
1447
+          return '西药费'
1448
+
1449
+          break
1450
+        case '10':
1451
+          return '中药饮片费'
1452
+
1453
+          break
1454
+        case '11':
1455
+          return '中成药费'
1456
+
1457
+          break
1458
+        case '12':
1459
+          return '一般诊疗费'
1460
+
1461
+          break
1462
+        case '13':
1463
+          return '挂号费'
1464
+          break
1465
+        case '14':
1466
+          return '其他费'
1467
+          break
1468
+        case '0':
1469
+          return '其他费'
1470
+          break
1471
+
1472
+      }
1473
+
1474
+    },
1475
+
1476
+    export_detail_ten() {
1477
+      let params = {
1478
+        start_time:this.start_time,
1479
+        end_time:this.end_time
1480
+      };
1481
+      handleData10106(params).then((response) => {
1482
+        if (response.data.state == 0) {
1483
+          this.$message.error(response.data.msg);
1484
+          return false;
1485
+        } else {
1486
+          let list = [];
1487
+          for (let i = 0; i < response.data.data.order.length; i++) {
1488
+            let order = response.data.data.order[i];
1489
+            let med_chrgitm_types = []
1490
+            for (let b = 0; b < order.info.length; b++) {
1491
+              med_chrgitm_types.push(order.info[b].med_chrgitm_type)
1492
+              const obj = {}
1493
+              med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
1494
+                obj[next] ? '' : obj[next] = true && cur.push(next)
1495
+                return cur
1496
+              }, []) // 设置cur默认类型为数组,并且初始值为空的数组
1497
+            }
1498
+
1499
+            for (let i = 0; i < med_chrgitm_types.length; i++) {
1500
+              let price = 0
1501
+              let obj = {
1502
+                name: order.patient.name,
1503
+                idNo: order.patient.id_card_no,
1504
+                med_chrgitm_name:this.getType(med_chrgitm_types[i]),
1505
+                price:"",
1506
+                remark:"",
1507
+              }
1508
+              if(i == 0){
1509
+                obj.remark = "就诊日期:" + this.getTimes(order.settle_accounts_date) + " 医保报销: "+order.fund_pay_sumamt + " 现金:"+order.psn_cash_pay
1510
+              }else{
1511
+                obj.remark = ""
1512
+              }
1513
+              for (let b = 0; b < order.info.length; b++) {
1514
+                if(med_chrgitm_types[i] ==  order.info[b].med_chrgitm_type){
1515
+
1516
+                  price = price + order.info[b].det_item_fee_sumamt
1517
+                }
1518
+              }
1519
+              obj.price = price
1520
+              list.push(obj)
1521
+            }
1522
+
1523
+          }
1524
+
1525
+          var tarList = []
1526
+          for (let i = 0; i < list.length; i++) {
1527
+            let obj = {
1528
+              "姓名": list[i].name,
1529
+              "身份证":  list[i].idNo,
1530
+              "收费项目": list[i].med_chrgitm_name,
1531
+              "金额": list[i].price,
1532
+              "备注": list[i].remark,
1533
+
1534
+            }
1535
+            tarList.push(obj)
1536
+          }
1537
+
1538
+          import("@/vendor/Export2Excel").then((excel) => {
1539
+            const tHeader = [
1540
+              "姓名",
1541
+              "身份证",
1542
+              "收费项目",
1543
+              "金额",
1544
+              "备注",
1545
+            ];
1546
+            const filterVal = [
1547
+              "姓名",
1548
+              "身份证",
1549
+              "收费项目",
1550
+              "金额",
1551
+              "备注",
1552
+            ];
1553
+            const data = this.formatJson(filterVal, tarList);
1554
+            excel.export_json_to_excel({
1555
+              header: tHeader,
1556
+              data,
1557
+              filename: "消费明细",
1558
+            });
1559
+          });
1560
+
1561
+
1562
+        }
1563
+      });
1564
+
1565
+    },
1566
+
1567
+    GetGoodName(id) {
1568
+      switch (id) {
1569
+        case 254:
1570
+          return "空心纤维透析器REXEED-18UC(旭化成)"
1571
+          break
1572
+        case 253:
1573
+          return "空心纤维透析器REXEED-15UC(旭化成)"
1574
+          break
1575
+        case 250:
1576
+          return "聚砜膜透析滤过器-XevontaHI18(贝朗)"
1577
+          break
1578
+        case 249:
1579
+          return "聚砜膜透析滤过器-XevontaHI15(贝朗)"
1580
+          break
1581
+        case 1478:
1582
+          return "聚砜膜透析滤过器-XevontaHI15(贝朗)"
1583
+          break
1584
+        case 1479:
1585
+          return "聚砜膜透析滤过器-XevontaHI18(贝朗)"
1586
+          break
1587
+        case 1482:
1588
+          return "空心纤维透析器REXEED-15UC(旭化成)"
1589
+          break
1590
+        case 1483:
1591
+          return "REXEED-18UC(旭化成)"
1592
+          break
1593
+        case 2577:
1594
+          return "空心纤维透析器(FB-15U)(尼普洛)"
1595
+          break
1596
+        case 2578:
1597
+          return "空心纤维透析器(FB-17U)(尼普洛)"
1598
+          break
1599
+        case 2058:
1600
+          return "中空纤维透析器CTA-1500"
1601
+          break
1602
+        case 2059:
1603
+          return "中空纤维透析器CTA-2000"
1604
+          break
1605
+
1606
+          break
1607
+
1608
+      }
1609
+
1610
+    },
907 1611
 
908 1612
     unique_two(array) {
909 1613
       // res用来存储结果
@@ -1221,18 +1925,17 @@ export default {
1221 1925
       }
1222 1926
 
1223 1927
       drug_ids = this.unique(drug_ids)
1224
-      project_ids= this.unique(project_ids)
1928
+      project_ids = this.unique(project_ids)
1225 1929
 
1226 1930
       // additions_ids= this.unique(additions_ids)
1227 1931
 
1228
-
1229 1932
       for (let i = 0; i < drug_ids.length; i++) {
1230 1933
         let obj = {}
1231 1934
         let count = 0
1232 1935
         for (let a = 0; a < drug_month_prescriptions.advices.length; a++) {
1233
-          if (drug_ids[i].price == drug_month_prescriptions.advices[a].price && drug_ids[i].id ==  drug_month_prescriptions.advices[a].drug_id) {
1936
+          if (drug_ids[i].price == drug_month_prescriptions.advices[a].price && drug_ids[i].id == drug_month_prescriptions.advices[a].drug_id) {
1234 1937
             obj['name'] = drug_month_prescriptions.advices[a].advice_name
1235
-            obj['code'] =  drug_month_prescriptions.advices[a].id
1938
+            obj['code'] = drug_month_prescriptions.advices[a].id
1236 1939
             obj['unit'] = drug_month_prescriptions.advices[a].drug.min_unit
1237 1940
             obj['price'] = parseFloat(drug_month_prescriptions.advices[a].price)
1238 1941
             count = count + drug_month_prescriptions.advices[a].prescribing_number
@@ -1246,28 +1949,72 @@ export default {
1246 1949
         let obj = {}
1247 1950
         let count = 0
1248 1951
         for (let a = 0; a < project_month_prescriptions.project.length; a++) {
1249
-          if (project_ids[i].price == project_month_prescriptions.project[a].price &&project_ids[i].id == project_month_prescriptions.project[a].project_id ) {
1952
+          if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
1250 1953
 
1251
-            if(project_month_prescriptions.project[a].type == 2){
1954
+            if (project_month_prescriptions.project[a].type == 2) {
1252 1955
               obj['name'] = project_month_prescriptions.project[a].project.project_name
1253 1956
               obj['code'] = project_month_prescriptions.project[a].id
1254 1957
               obj['unit'] = project_month_prescriptions.project[a].project.unit
1255 1958
               obj['type'] = 2
1256 1959
 
1257
-
1258
-            }else if (project_month_prescriptions.project[a].type == 3){
1960
+            } else if (project_month_prescriptions.project[a].type == 3) {
1259 1961
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
1260
-              obj['code'] =  project_month_prescriptions.project[a].id
1962
+              obj['code'] = project_month_prescriptions.project[a].id
1261 1963
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
1262 1964
               obj['type'] = 3
1263 1965
 
1264
-
1265 1966
             }
1266 1967
             count = count + parseFloat(project_month_prescriptions.project[a].count)
1267 1968
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
1268 1969
             obj['type'] = 1
1269 1970
 
1971
+          }
1972
+        }
1973
+        obj['count'] = count
1974
+        tableData.push(obj)
1975
+
1976
+      }
1977
+      return tableData
1978
+    },
1979
+    setMonthPrescriptiontwo(month_prescriptions) {
1980
+      let tableData = []
1981
+
1982
+      let project_month_prescriptions = {
1983
+        project: []
1984
+
1985
+      }
1986
+      let project_ids = []
1270 1987
 
1988
+      for (let i = 0; i < month_prescriptions.length; i++) {
1989
+        if (month_prescriptions[i].type == 2) { //项目
1990
+          for (let a = 0; a < month_prescriptions[i].project.length; a++) {
1991
+            if (month_prescriptions[i].project[a].type == 2) {
1992
+              let obj = {
1993
+                id: month_prescriptions[i].project[a].project_id,
1994
+                price: month_prescriptions[i].project[a].price
1995
+
1996
+              }
1997
+              project_ids.push(obj)
1998
+              project_month_prescriptions.project.push(month_prescriptions[i].project[a])
1999
+            }
2000
+          }
2001
+        }
2002
+      }
2003
+
2004
+      project_ids = this.unique(project_ids)
2005
+      console.log(project_ids)
2006
+
2007
+      for (let i = 0; i < project_ids.length; i++) {
2008
+        let obj = {}
2009
+        let count = 0
2010
+        for (let a = 0; a < project_month_prescriptions.project.length; a++) {
2011
+          if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
2012
+            if (project_month_prescriptions.project[a].type == 2) {
2013
+              obj['name'] = project_month_prescriptions.project[a].project.project_name
2014
+              obj['code'] = project_month_prescriptions.project[a].project.medical_code
2015
+              count = count + parseFloat(project_month_prescriptions.project[a].count)
2016
+              obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
2017
+            }
1271 2018
           }
1272 2019
         }
1273 2020
         obj['count'] = count
@@ -1423,7 +2170,7 @@ export default {
1423 2170
       } else if (index == 2) {
1424 2171
         this.allListVisible = true;
1425 2172
       }
1426
-    },    unique(array) {
2173
+    }, unique(array) {
1427 2174
       // res用来存储结果
1428 2175
       var res = []
1429 2176
       for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {

+ 828 - 0
src/xt_pages/outpatientDoctorStation/batch_delete.vue View File

@@ -0,0 +1,828 @@
1
+<template>
2
+  <!--批量删除-->
3
+  <div class="main-contain">
4
+    <div class="app-container">
5
+    <div class="bannar_list">
6
+      <div class="banner_left">
7
+        <div>
8
+          透析模式:
9
+          <el-select
10
+            v-model="modeOptions_value"
11
+            placeholder="请选择"
12
+            @change="getUsername"
13
+          >
14
+            <el-option
15
+              v-for="item in modeOptions"
16
+              :key="item.id"
17
+              :label="item.name"
18
+              :value="item.id"
19
+            >
20
+            </el-option>
21
+          </el-select>
22
+        </div>
23
+        <div>
24
+          删除类型:
25
+          <el-select
26
+            v-model="new_type"
27
+            placeholder="请选择"
28
+            @change="changetype"
29
+          >
30
+            <el-option
31
+              v-for="item in options"
32
+              :key="item.id"
33
+              :label="item.name"
34
+              :value="item.id"
35
+            >
36
+            </el-option>
37
+          </el-select>
38
+        </div>
39
+        <div v-if="new_type == 1">
40
+          请输入需要删除的药品:
41
+          <el-select
42
+            filterable
43
+            v-model="id"
44
+            placeholder="请选择"
45
+            @change="getUsername"
46
+          >
47
+            <el-option
48
+              v-for="item in druglist"
49
+              :key="item.id"
50
+              :label="item.name"
51
+              :value="item.id"
52
+            >
53
+            </el-option>
54
+          </el-select>
55
+        </div>
56
+        <div v-if="new_type == 2">
57
+          请输入需要删除的项目:
58
+          <el-select
59
+            filterable
60
+            v-model="id"
61
+            placeholder="请选择"
62
+            @change="getUsername"
63
+          >
64
+            <el-option
65
+              v-for="item in projectlist"
66
+              :key="item.id"
67
+              :label="item.name"
68
+              :value="item.id"
69
+            >
70
+            </el-option>
71
+          </el-select>
72
+        </div>
73
+      </div>
74
+
75
+      <!--        <button @click="lili">调试</button>-->
76
+      <el-button type="primary" @click="save">保存</el-button>
77
+    </div>
78
+
79
+    <el-container>
80
+      <div class="left_table" style="width: 211px;height: 70vh;border: 1px solid #DCDFE6;box-shadow: 0 2px 4px 0 rgb(0 0 0 / 12%), 0 0 6px 0 rgb(0 0 0 / 4%);">
81
+        <el-table
82
+          border
83
+          height="70vh"
84
+          ref="multipleTable"
85
+          :data="tableData"
86
+          tooltip-effect="dark"
87
+          style="width: 100%;"
88
+          @selection-change="handleSelectionChange"
89
+          @current-change="test"
90
+          :row-style="{ color: '#303133' }"
91
+          :header-cell-style="{
92
+            backgroundColor: 'rgb(245, 247, 250)',
93
+            color: '#606266',
94
+          }"
95
+        >
96
+          <el-table-column type="selection" width="55" align="center"> </el-table-column>
97
+          <el-table-column label="患者姓名" width="155" align="center">
98
+            <template slot-scope="scope">{{ scope.row.name }}</template>
99
+          </el-table-column>
100
+        </el-table>
101
+      </div>
102
+
103
+      <el-main>
104
+        <el-tabs type="border-card" v-if="isshow == 1 && list.length > 0" style="min-height: 70vh;">
105
+        <el-tab-pane
106
+          v-for="(item, index) in list"
107
+          :key="index"
108
+          :label="'处方' + (index + 1)"
109
+          :name="index"
110
+        >
111
+          <el-table
112
+            v-if="item.advices.length > 0"
113
+            :data="item.advices"
114
+            style="width: 100%"
115
+            max-height="250"
116
+            border
117
+            :row-style="{ color: '#303133' }"
118
+            :header-cell-style="{
119
+              backgroundColor: 'rgb(245, 247, 250)',
120
+              color: '#606266',
121
+            }"
122
+          >
123
+            <el-table-column fixed label="药品名称" width="230" align="center">
124
+              <template slot-scope="scope">
125
+                {{ scope.row.advice_name }}
126
+              </template>
127
+            </el-table-column>
128
+            <el-table-column label="单次用量" width="200" align="center">
129
+              <template slot-scope="scope">
130
+                {{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}
131
+              </template>
132
+            </el-table-column>
133
+            <el-table-column label="用法" width="120" align="center">
134
+              <template slot-scope="scope">
135
+                {{ scope.row.delivery_way }}
136
+              </template>
137
+            </el-table-column>
138
+            <el-table-column label="频率" width="120" align="center">
139
+              <template slot-scope="scope">
140
+                {{ scope.row.execution_frequency }}
141
+              </template>
142
+            </el-table-column>
143
+            <el-table-column label="天数" width="110" align="center">
144
+              <template slot-scope="scope"> {{ scope.row.day }}天 </template>
145
+            </el-table-column>
146
+            <el-table-column label="总量" width="200" align="center">
147
+              <template slot-scope="scope">
148
+                {{ scope.row.prescribing_number
149
+                }}{{ scope.row.prescribing_number_unit }}
150
+              </template>
151
+            </el-table-column>
152
+            <el-table-column label="单价" width="120" align="center">
153
+              <template slot-scope="scope"> {{ scope.row.price }}元 </template>
154
+            </el-table-column>
155
+            <el-table-column label="备注" width="120" align="center">
156
+              <template slot-scope="scope">
157
+                {{ scope.row.remark }}
158
+              </template>
159
+            </el-table-column>
160
+            <el-table-column label="操作" width="120" align="center">
161
+              <template slot-scope="scope">
162
+                <el-button
163
+                  @click.native.prevent="delects(scope.$index, scope, item)"
164
+                  type="danger"
165
+                  size="small"
166
+                >
167
+                  删除
168
+                </el-button>
169
+              </template>
170
+            </el-table-column>
171
+          </el-table>
172
+
173
+          <el-table
174
+            v-if="item.project.length > 0"
175
+            :data="item.project"
176
+            style="width: 100%"
177
+            max-height="250"
178
+            border
179
+            :row-style="{ color: '#303133' }"
180
+            :header-cell-style="{
181
+              backgroundColor: 'rgb(245, 247, 250)',
182
+              color: '#606266',
183
+            }"
184
+          >
185
+            <el-table-column fixed label="项目名称" width="230" align="center">
186
+              <template slot-scope="scope">
187
+                <div v-if="scope.row.type == 2">
188
+                  {{ scope.row.project.project_name }}
189
+                </div>
190
+                <div v-if="scope.row.type == 3">
191
+                  {{ scope.row.good_info.good_name }}
192
+                </div>
193
+              </template>
194
+            </el-table-column>
195
+            <el-table-column label="组" width="120" align="center">
196
+              <template slot-scope="scope">
197
+                <div v-if="scope.row.type == 2">
198
+                  {{ scope.row.project.translate }}
199
+                </div>
200
+                <div v-if="scope.row.type == 3">
201
+                  {{ scope.row.good_info.translate }}
202
+                </div>
203
+              </template>
204
+            </el-table-column>
205
+            <el-table-column label="单次用量" width="120" align="center">
206
+              <template slot-scope="scope">
207
+                {{ scope.row.single_dose }}
208
+                {{ scope.row.unit }}
209
+              </template>
210
+            </el-table-column>
211
+            <el-table-column label="用法" width="120" align="center">
212
+              <template slot-scope="scope">
213
+                {{ scope.row.delivery_way }}
214
+              </template>
215
+            </el-table-column>
216
+            <el-table-column label="频率" width="120" align="center">
217
+              <template slot-scope="scope">
218
+                {{ scope.row.execution_frequency }}
219
+              </template>
220
+            </el-table-column>
221
+            <el-table-column label="天数" width="110" align="center">
222
+              <template slot-scope="scope"> {{ scope.row.day }}天 </template>
223
+            </el-table-column>
224
+            <el-table-column label="总量" width="100" align="center">
225
+              <template slot-scope="scope">
226
+                {{ scope.row.count }}
227
+                {{ scope.row.unit }}
228
+              </template>
229
+            </el-table-column>
230
+            <el-table-column label="单价" width="120" align="center">
231
+              <template slot-scope="scope"> {{ scope.row.price }}元 </template>
232
+            </el-table-column>
233
+            <el-table-column label="备注" width="120" align="center">
234
+              <template slot-scope="scope">
235
+                {{ scope.row.remark }}
236
+              </template>
237
+            </el-table-column>
238
+            <el-table-column label="推送频率" width="120" align="center">
239
+              <template slot-scope="scope">
240
+                <div v-if="scope.row.frequency_type == 1">
241
+                  {{ "每次必推" }}
242
+                </div>
243
+                <div v-if="scope.row.frequency_type == 2">
244
+                  {{ scope.row.day_count }}天/次
245
+                </div>
246
+                <div v-if="scope.row.frequency_type == 3">
247
+                  {{ scope.row.week_days }}
248
+                </div>
249
+              </template>
250
+            </el-table-column>
251
+            <el-table-column fixed="right" label="操作" width="102" align="center">
252
+              <template slot-scope="scope">
253
+                <el-button
254
+                  @click.native.prevent="delects(scope.$index, scope, item)"
255
+                  type="danger"
256
+                  size="small"
257
+                >
258
+                  删除
259
+                </el-button>
260
+              </template>
261
+            </el-table-column>
262
+          </el-table>
263
+        </el-tab-pane>
264
+      </el-tabs>
265
+      </el-main>
266
+      
267
+    </el-container>
268
+  
269
+  </div>
270
+  </div>
271
+</template>
272
+<script>
273
+import { gethisusertoalive } from "@/api/deposit";
274
+import {
275
+  getdrugsinformation,
276
+  replacepeoplename,
277
+  replaceconfig,
278
+  deletedrugsbatch,
279
+  batchdeleteitems,
280
+  getmodeconfigs,
281
+  ptemplateinformation,
282
+  deleteone,
283
+} from "@/api/batch/batch";
284
+
285
+export default {
286
+  data() {
287
+    return {
288
+      dialogVisible: false,
289
+      tableList: [],
290
+      editableTabsValue: "1",
291
+      modeOptions: {},
292
+      tableDatas: [
293
+        {
294
+          id: "",
295
+          drug_name: "",
296
+          single_dose: "",
297
+          single_dose_unit: "",
298
+          delivery_way: "",
299
+          execution_frequency: "",
300
+          day: "",
301
+          prescribing_number: "",
302
+          prescribing_number_unit: "",
303
+          price: "",
304
+          remark: "",
305
+        },
306
+      ], //药品
307
+      project: [
308
+        {
309
+          id: "",
310
+          drug_name: "",
311
+          translate: "",
312
+          single_dose: "",
313
+          unit: "",
314
+          delivery_way: "",
315
+          execution_frequency: "",
316
+          day: "",
317
+          prescribing_number: "",
318
+          price: "",
319
+          remark: "",
320
+          frequency_type: 1,
321
+          day_count: "",
322
+          week_days: "",
323
+        },
324
+      ], //项目
325
+      tabIndex: 2,
326
+      modeOptions_value: 1, //透析模式
327
+      multipleSelection: [], //选中的患者
328
+      tableData: [],
329
+      options: [
330
+        { id: 1, name: "药品" },
331
+        { id: 2, name: "项目" },
332
+      ],
333
+      options_patient: [
334
+        { id: 1, name: "是" },
335
+        { id: 2, name: "否" },
336
+      ],
337
+      options_2: [
338
+        { id: 1, name: "普通门诊" },
339
+        { id: 2, name: "门诊特殊病" },
340
+      ],
341
+      new_type: 1, //新增类型
342
+      druglist: [], //药品列表
343
+      projectlist: [], //项目列表
344
+      id: "", //药品、项目、耗材
345
+      tmplist: [], //临时
346
+      unit: [
347
+        { id: 1, name: "g" },
348
+        { id: 2, name: "mg" },
349
+        { id: 3, name: "u" },
350
+        { id: 4, name: "ml" },
351
+        { id: 5, name: "万U" },
352
+        { id: 6, name: "枚" },
353
+        { id: 7, name: "粒" },
354
+        { id: 8, name: "片" },
355
+        { id: 9, name: "支" },
356
+        { id: 10, name: "μg" },
357
+        { id: 11, name: "iu" },
358
+        { id: 12, name: "包" },
359
+        { id: 13, name: "袋" },
360
+        { id: 14, name: "万" },
361
+        { id: 15, name: "万iu" },
362
+        { id: 16, name: "丸" },
363
+        { id: 17, name: "盒" },
364
+        { id: 18, name: "瓶" },
365
+        { id: 19, name: "瓶(袋)" },
366
+        { id: 20, name: "次" },
367
+      ],
368
+      usage: [], //用法
369
+      frequency: [], //频率
370
+      frequency_type: "", //周期提醒
371
+      day_count: "", //周期提醒天
372
+      week_days: [], //周期提醒星期
373
+      tabhang: 0, //tab的下标
374
+      hang: 0, //行数
375
+      list: [],
376
+      isshow: 0, //是否显示处方
377
+      tmpid: 0,
378
+    };
379
+  },
380
+  created() {
381
+    // console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
382
+    for (let key in this.$store.getters.treatment_mode) {
383
+      this.modeOptions[key] = this.$store.getters.treatment_mode[key];
384
+    }
385
+    // console.log("this.modeOptions",this.modeOptions)
386
+    this.getdrugconfigs();
387
+    this.isshow = 0;
388
+    this.tmpid = 0;
389
+  },
390
+  methods: {
391
+    save() {
392
+      var tmp = this.modeOptions[this.modeOptions_value].name;
393
+      var tmp2 = "";
394
+      if (this.druglist != null) {
395
+        for (let i = 0; i < this.druglist.length; i++) {
396
+          if (this.id == this.druglist[i].id) {
397
+            tmp2 = this.druglist[i].name;
398
+          }
399
+        }
400
+      }
401
+      if (this.projectlist != null) {
402
+        for (let j = 0; j < this.projectlist.length; j++) {
403
+          if (this.id == this.projectlist[j].id) {
404
+            tmp2 = this.projectlist[j].name;
405
+          }
406
+        }
407
+      }
408
+      this.$confirm(
409
+        "请确定是否删除?", //注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,
410
+        "",
411
+        {
412
+          confirmButtonText: "确 定",
413
+          cancelButtonText: "取 消",
414
+          type: "warning",
415
+        }
416
+      ).then(() => {
417
+        if (this.multipleSelection.length == 0) {
418
+          this.$message.error("没有选中有效信息");
419
+          return;
420
+        }
421
+        let st = "";
422
+        for (let i = 0; i < this.multipleSelection.length; i++) {
423
+          st = st + this.multipleSelection[i].id + ",";
424
+        }
425
+        console.log("string", st);
426
+        let params = {
427
+          mode_id: this.modeOptions_value,
428
+          patient_id: st,
429
+          type: this.new_type,
430
+          replaced: this.id,
431
+        };
432
+        if (this.new_type == 1) {
433
+          deletedrugsbatch(params).then((res) => {
434
+            if (res.data.state == 1) {
435
+              this.$message.success("删除成功");
436
+              this.getUsername();
437
+            } else {
438
+              this.$message.error(res.data.msg);
439
+            }
440
+          });
441
+        } else {
442
+          batchdeleteitems(params).then((res) => {
443
+            if (res.data.state == 1) {
444
+              this.$message.success("删除成功");
445
+              this.getUsername();
446
+            } else {
447
+              this.$message.error(res.data.msg);
448
+            }
449
+          });
450
+        }
451
+      });
452
+    },
453
+    test(val) {
454
+      console.log("val?:", val);
455
+      this.tmpid = val.id;
456
+      var params = {
457
+        mode_id: this.modeOptions_value,
458
+        patient_id: val.id,
459
+      };
460
+      ptemplateinformation(params).then((res) => {
461
+        if (res.data.state == 1) {
462
+          this.list = res.data.data.list;
463
+          this.isshow = 1;
464
+        }
465
+      });
466
+    },
467
+    lili() {
468
+      console.log("this.list", this.list);
469
+      console.log("this.multipleSelection", this.multipleSelection);
470
+      // console.log("this.mode",this.modeOptions_value)
471
+      // console.log("this.projectlist2",this.projectlist2)
472
+      // console.log("patient_value",this.patient_value)
473
+    },
474
+    delects(hang, sc, item) {
475
+      this.$confirm("删除后不可恢复,是否确认删除?", "删除", {
476
+        confirmButtonText: "确定",
477
+        cancelButtonText: "取消",
478
+        type: "warning",
479
+      })
480
+        .then(() => {
481
+          var params = {
482
+            type: item.type, //1药品2项目
483
+            id: sc.row.id,
484
+          };
485
+          var params2 = {
486
+            mode_id: this.modeOptions_value,
487
+            patient_id: this.tmpid,
488
+          };
489
+          deleteone(params).then((res) => {
490
+            if (res.data.state == 1) {
491
+              this.$message.success("删除成功");
492
+              ptemplateinformation(params2).then((res) => {
493
+                if (res.data.state == 1) {
494
+                  this.list = res.data.data.list;
495
+                  this.isshow = 1;
496
+                }
497
+              });
498
+            }
499
+          });
500
+        })
501
+        .catch(() => {
502
+          this.$message({
503
+            type: 'success',
504
+            message: "已取消删除",
505
+          });
506
+        });
507
+      // console.log("hang",hang)
508
+      // console.log("sc",sc)
509
+      // console.log("item",item)
510
+    },
511
+    changetype() {
512
+      console.log(">>>>>>>", this.new_type);
513
+      this.id = "";
514
+      this.tableData = [];
515
+    },
516
+    changeid(item, index) {
517
+      item.id = item.drug_name;
518
+      var params = {
519
+        id: item.id,
520
+      };
521
+      getdrugsinformation(params).then((res) => {
522
+        if (res.data.state == 1) {
523
+          console.log("res??", res);
524
+          this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
525
+          this.tableDatas[0].single_dose_unit =
526
+            res.data.data.list[0].single_dose_unit;
527
+          this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
528
+          this.tableDatas[0].execution_frequency =
529
+            res.data.data.list[0].execution_frequency;
530
+          this.tableDatas[0].day = res.data.data.list[0].drug_day;
531
+          this.tableDatas[0].prescribing_number =
532
+            res.data.data.list[0].prescribing_number;
533
+          this.tableDatas[0].prescribing_number_unit =
534
+            res.data.data.list[0].prescribing_number_unit;
535
+          this.tableDatas[0].price = res.data.data.list[0].retail_price;
536
+          this.tableDatas[0].remark = res.data.data.list[0].remark;
537
+        }
538
+      });
539
+    },
540
+    handleSelectionChange(val) {
541
+      this.multipleSelection = val;
542
+    },
543
+    changeid2(item, index) {
544
+      item.id = item.drug_name;
545
+      var params = {
546
+        id: item.id,
547
+      };
548
+      getdrugsinformation(params).then((res) => {
549
+        if (res.data.state == 1) {
550
+          console.log("res??", res);
551
+          this.project[0].single_dose = res.data.data.list[0].single_dose;
552
+          this.project[0].translate = res.data.data.list[0].translate;
553
+          this.project[0].delivery_way = res.data.data.list[0].delivery_way;
554
+          this.project[0].execution_frequency =
555
+            res.data.data.list[0].execution_frequency;
556
+          this.project[0].day = res.data.data.list[0].day;
557
+          this.project[0].prescribing_number =
558
+            res.data.data.list[0].prescribing_number;
559
+          this.project[0].unit = res.data.data.list[0].unit;
560
+          this.project[0].price = res.data.data.list[0].retail_price;
561
+          this.project[0].remark = res.data.data.list[0].remark;
562
+        }
563
+      });
564
+    },
565
+    //获取配置
566
+    getdrugconfigs() {
567
+      var params = {};
568
+      replaceconfig(params).then((res) => {
569
+        if (res.data.state == 1) {
570
+          this.druglist = res.data.data.list;
571
+          this.projectlist = res.data.data.list2;
572
+        }
573
+      });
574
+      getmodeconfigs(params).then((res) => {
575
+        if (res.data.state == 1) {
576
+          this.frequency = res.data.data.efs;
577
+          this.usage = res.data.data.drugways;
578
+        }
579
+      });
580
+    },
581
+    getUsername() {
582
+      var params = {
583
+        id: this.id,
584
+        mode: this.modeOptions_value,
585
+      };
586
+      replacepeoplename(params).then((res) => {
587
+        if (res.data.state == 1) {
588
+          this.tableData = res.data.data.list;
589
+        }
590
+      });
591
+    },
592
+    handleClose(done) {
593
+      this.$confirm("确认关闭?")
594
+        .then((_) => {
595
+          done();
596
+        })
597
+        .catch((_) => {});
598
+    },
599
+  },
600
+};
601
+</script>
602
+
603
+
604
+
605
+<style lang="scss" scoped>
606
+::v-deep .el-tabs__content {
607
+  padding: 8px;
608
+}
609
+
610
+/deep/ .el-table__fixed {
611
+  bottom: 0px !important;
612
+}
613
+.app-container {
614
+  padding: 10px;
615
+  background: #f6f8f9;
616
+}
617
+::v-deep .el-table__body-wrapper {
618
+  height: 500px;
619
+  overflow-y: scroll;
620
+
621
+}
622
+.bannar_list {
623
+  margin-bottom: 10px;
624
+  display: flex;
625
+  justify-content: space-between;
626
+  .banner_left {
627
+    width: 960px;
628
+    display: flex;
629
+    justify-content: space-around;
630
+    div {
631
+      white-space: nowrap;
632
+      font-size: 14px;
633
+      color: #606266;
634
+    }
635
+  }
636
+}
637
+.left_table{
638
+  /deep/ .el-table{
639
+    .el-table__body-wrapper{
640
+      overflow-x: hidden;
641
+    }
642
+  }
643
+}
644
+.frequence {
645
+  text-align: center;
646
+}
647
+/deep/ .el-button--small {
648
+  padding: 9px 6px;
649
+}
650
+.zone {
651
+  //  margin-left: 30px;
652
+  //  text-align: left;
653
+  width: 70px;
654
+  display: inline-block;
655
+  color: #606266;
656
+}
657
+.disinfect {
658
+  position: relative;
659
+  .newButton {
660
+    // position: absolute;
661
+    // right: 2%;
662
+    // top:4px;
663
+    // z-index: 9;
664
+    margin-bottom: 10px;
665
+    margin-left: 90%;
666
+  }
667
+}
668
+.disinfectOne {
669
+  position: relative;
670
+  .newButtonOne {
671
+    position: absolute;
672
+    right: 0;
673
+    top: -10;
674
+    z-index: 18;
675
+  }
676
+}
677
+.but {
678
+  width: 200px;
679
+  height: 50px;
680
+  // border: solid 1px red;
681
+  margin-left: 77%;
682
+}
683
+.clearn {
684
+  width: 460px;
685
+  height: 50px;
686
+  // border:solid 1px red;
687
+  margin-left: 650px;
688
+}
689
+
690
+.zClass {
691
+  width: 200px;
692
+  height: 200px;
693
+  // border:solid 1px red;
694
+  margin-left: 450px;
695
+  margin-top: 200px;
696
+}
697
+.warn {
698
+  color: red;
699
+  font-size: 14px;
700
+  width: 100%;
701
+  display: inline-block;
702
+  margin-left: 96px;
703
+}
704
+
705
+.userbutton {
706
+  margin-bottom: 10px;
707
+  margin-left: 82%;
708
+}
709
+</style>
710
+<style lang="scss" >
711
+.a {
712
+  margin-bottom: 10px;
713
+  margin-top: 6px;
714
+}
715
+
716
+.b {
717
+  .el-button {
718
+    margin-left: 90%;
719
+    margin-bottom: 10px;
720
+  }
721
+}
722
+
723
+.stoppage {
724
+  .el-form-item__label {
725
+    width: 190px;
726
+  }
727
+}
728
+.st {
729
+  .el-form-item__label {
730
+    width: -10px;
731
+  }
732
+}
733
+.main {
734
+  position: relative;
735
+  .newButtonOne {
736
+    position: absolute;
737
+    right: 0;
738
+    z-index: 2;
739
+  }
740
+}
741
+
742
+.elbutton {
743
+  // border: solid 1px red;
744
+  height: 50px;
745
+  width: 400px;
746
+  margin-left: 650px;
747
+}
748
+// .el-form-item__label {
749
+//   width: 130px;
750
+//   font-size: 14px;
751
+// }
752
+.el-form-item__error {
753
+  margin-left: 130px;
754
+}
755
+
756
+.el-upload-list__item-name {
757
+  color: #606266;
758
+  display: block;
759
+  margin-right: 40px;
760
+  overflow: hidden;
761
+  padding-left: 4px;
762
+  text-overflow: ellipsis;
763
+  transition: color 0.3s;
764
+  white-space: nowrap;
765
+}
766
+.el-main {
767
+  padding-top: 0px;
768
+  padding-left: 18px;
769
+  padding-right: 0px;
770
+  .el-tabs{
771
+    .el-tabs__content{
772
+      padding: 12px;
773
+      .el-table .el-table__header-wrapper table{
774
+        width: 100% !important;
775
+      }
776
+      .el-table .el-table__body-wrapper table{
777
+        width: 100% !important;
778
+      }
779
+    }
780
+  }
781
+}
782
+
783
+.newMain {
784
+  .el-form-item__label {
785
+    width: 104px;
786
+  }
787
+}
788
+.newDisinfectOne {
789
+  .el-input--prefix .el-input__inner {
790
+    // padding-left: 15px;
791
+    padding-right: 0px !important;
792
+  }
793
+}
794
+.stoppage {
795
+  .el-form-item__label {
796
+    width: 18%;
797
+  }
798
+}
799
+.newItem {
800
+  .el-form-item__label {
801
+    width: 130px;
802
+  }
803
+}
804
+.formItem {
805
+  .el-form-item__label {
806
+    width: 104px;
807
+    line-height: 30px;
808
+  }
809
+}
810
+.newname {
811
+  .el-form-item__label {
812
+    width: 60px;
813
+  }
814
+}
815
+::-webkit-scrollbar {
816
+  height: 20px;
817
+}
818
+
819
+.el-table td .cell {
820
+  padding: 0 5px !important;
821
+}
822
+.addTab {
823
+  position: absolute;
824
+  right: 8px;
825
+  top: 3px;
826
+  z-index: 20;
827
+}
828
+</style>

File diff suppressed because it is too large
+ 1240 - 260
src/xt_pages/outpatientDoctorStation/batch_mode_template.vue


File diff suppressed because it is too large
+ 1337 - 0
src/xt_pages/outpatientDoctorStation/batch_replacement.vue


+ 4 - 2
src/xt_pages/outpatientDoctorStation/checkPrint.vue View File

@@ -13,7 +13,7 @@
13 13
       </template> -->
14 14
 
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
+        <printOne :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
17 17
       </div>
18 18
   </div>
19 19
 </template>
@@ -32,7 +32,9 @@ export default {
32 32
     printOne,
33 33
   },
34 34
   props:{
35
-    paramsObj:Object
35
+    paramsObj:Object,
36
+    newHisPatient:Object,
37
+
36 38
   },
37 39
   data() {
38 40
     return {

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

@@ -667,12 +667,15 @@
667 667
     methods: {
668 668
 
669 669
       changeClass(id) {
670
+        console.log("asdaff,id",id)
671
+        console.log("asdaff,this.value",this.value)
672
+        console.log("asdaff,this.allProject",this.allProject)
670 673
         this.tabProject = []
671 674
         if (id == 0) {
672 675
           this.tabProject = this.allProject
673 676
         } else {
674 677
           for (let i = 0; i < this.allProject.length; i++) {
675
-            if (this.allProject[i].cost_classify == id) {
678
+            if (this.allProject[i].project.cost_classify == id) {
676 679
               this.tabProject.push(this.allProject[i])
677 680
             }
678 681
           }
@@ -1818,7 +1821,7 @@
1818 1821
       },
1819 1822
 
1820 1823
       tabclickEvent(val) {
1821
-
1824
+        console.log("li3333333333333li")
1822 1825
         for (let i = 0; i < this.prescriptions.length; i++) {
1823 1826
           if (this.prescriptions[i].name == val.name) {
1824 1827
             this.prescription_id = this.prescriptions[i].id
@@ -2154,10 +2157,12 @@
2154 2157
       },
2155 2158
 
2156 2159
       moreState(tab, event) {
2160
+        console.log("li222222222")
2157 2161
         if (tab == 'more') {
2158 2162
           return false
2159 2163
         }
2160
-      }, open_three() {
2164
+      },
2165
+      open_three() {
2161 2166
         for (let i = 0; i < this.prescriptions.length; i++) {
2162 2167
           for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2163 2168
             if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
@@ -2654,7 +2659,7 @@
2654 2659
       },
2655 2660
       addTab(targetName) {
2656 2661
 
2657
-        console.log("this.prescriptions",this.prescriptions)
2662
+        console.log("this.prescriptionsaaaaaa",this.prescriptions)
2658 2663
         for(let i = 0; i < this.prescriptions.length; i++){
2659 2664
           if (this.prescriptions[i].is_medicine_status) {
2660 2665
             this.$message.error('处方中包含已发药处方,无法新增')
@@ -2741,7 +2746,7 @@
2741 2746
 
2742 2747
       },
2743 2748
       removeTab(targetName) {
2744
-
2749
+        console.log("1111111111111111")
2745 2750
         if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5 || this.curPrescriptions.is_medicine_status) {
2746 2751
           this.$message.error('该处方已经结算或者记账或者已发药,无法删除')
2747 2752
           return
@@ -3402,11 +3407,10 @@
3402 3407
         // }
3403 3408
         // console.log(res)
3404 3409
         // var idstr = res.join(',')
3405
-
3410
+        this.teamList = []
3406 3411
         let teamList = []
3407 3412
         for (let i = 0; i < row.length; i++) {
3408 3413
           let team_id = row[i].id
3409
-          console.log(team_id)
3410 3414
           const params = {
3411 3415
             project_id: row[i].item_id
3412 3416
           }
@@ -3474,8 +3478,7 @@
3474 3478
                 }
3475 3479
               }
3476 3480
 
3477
-              this.teamList = this.teamList.concat(teamList)
3478
-              console.log(this.teamList)
3481
+              this.teamList = teamList
3479 3482
             }
3480 3483
           })
3481 3484
         }

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -27,7 +27,9 @@
27 27
                         <el-select v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;"
28 28
                                    @change="getAllChangeTwo(scope)" :disabled="prescription.is_medicine_status" >
29 29
                             <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
30
-                            <el-option :label="scope.row.drug.dose_unit"
30
+                          <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
31
+
32
+                          <el-option :label="scope.row.drug.dose_unit"
31 33
                                        v-if="scope.row.drug.dose_unit != scope.row.drug.min_unit"
32 34
                                        :value="scope.row.drug.dose_unit"></el-option>
33 35
                         </el-select>

+ 22 - 13
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue View File

@@ -4,19 +4,19 @@
4 4
         <el-table v-if="prescription.advices && prescription.advices.length > 0" :data="prescription.advices" border
5 5
                   style="width: 99%;" :row-style="{ color: '#303133' }"
6 6
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
7
-            <el-table-column align="center" width="70" label="序号">
7
+            <el-table-column align="center" width="50" label="序号">
8 8
                 <template slot-scope="scope">
9 9
                     <div style="display:flex;align-items:center;">
10 10
                         <el-input v-model="scope.row.groupno" placeholder=""></el-input>
11 11
                     </div>
12 12
                 </template>
13 13
             </el-table-column>
14
-            <el-table-column align="center" prop="drug_name" label="名称">
14
+            <el-table-column align="center" prop="drug_name" label="名称"  width="297" >
15 15
                 <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span>
16 16
                 </template>
17 17
             </el-table-column>
18 18
 
19
-          <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
19
+          <el-table-column align="center" prop="single_dose" width="150" label="单次用量">
20 20
             <template slot-scope="scope">
21 21
               <div style="display:flex;align-items:center;">
22 22
                 <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)"
@@ -32,7 +32,7 @@
32 32
               </div>
33 33
             </template>
34 34
           </el-table-column>
35
-            <el-table-column align="center" prop="delivery_way" width="100" label="用法">
35
+            <el-table-column align="center" prop="delivery_way" width="110" label="用法">
36 36
                 <template slot-scope="scope">
37 37
                     <el-select v-model="scope.row.delivery_way" placeholder="请选择">
38 38
                         <el-option
@@ -44,7 +44,7 @@
44 44
                     </el-select>
45 45
                 </template>
46 46
             </el-table-column>
47
-            <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
47
+            <el-table-column align="center" prop="execution_frequency" width="110" label="频率">
48 48
                 <template slot-scope="scope">
49 49
                     <el-select v-model="scope.row.execution_frequency" placehold er="请选择" @change="getAllChange(scope)">
50 50
                         <el-option
@@ -58,7 +58,7 @@
58 58
             </el-table-column>
59 59
 
60 60
 
61
-            <el-table-column align="center" prop="day" width="70" label="天数">
61
+            <el-table-column align="center" prop="day" width="90" label="天数">
62 62
                 <template slot-scope="scope">
63 63
                     <div style="display:flex;align-items:center;">
64 64
                         <el-input v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>
@@ -83,7 +83,7 @@
83 83
                     </div>
84 84
                 </template>
85 85
             </el-table-column>
86
-            <el-table-column align="center" prop="retail_price" width="80" label="单价">
86
+            <el-table-column align="center" prop="retail_price" width="100" label="单价">
87 87
                 <template slot-scope="scope">
88 88
                     <div style="display:flex;align-items:center;">
89 89
                         <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
@@ -92,13 +92,13 @@
92 92
 
93 93
                 </template>
94 94
             </el-table-column>
95
-            <el-table-column align="center" prop="remark" width="50" label="备注">
95
+            <el-table-column align="center" prop="remark" width="100" label="备注">
96 96
                 <template slot-scope="scope">
97 97
                     <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
98 98
                 </template>
99 99
             </el-table-column>
100 100
 
101
-            <el-table-column align="center" prop="remark" width="50" label="推送频率">
101
+            <el-table-column align="center" prop="remark" width="80" label="推送频率">
102 102
                 <template slot-scope="scope">
103 103
                     <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
104 104
                     <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
@@ -108,7 +108,7 @@
108 108
             </el-table-column>
109 109
 
110 110
 
111
-            <el-table-column align="center" width="100" prop="name" label="操作">
111
+            <el-table-column align="center" width="140" prop="name" label="操作">
112 112
                 <template slot-scope="scope">
113 113
                     <!--<i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>-->
114 114
                     <el-button size="mini" type="primary" @click="handleEdit(scope.row,scope.$index)">推送</el-button>
@@ -120,7 +120,11 @@
120 120
         <el-table v-if="prescription.project &&prescription.project.length > 0" :data="prescription.project" border
121 121
                   style="width: 99%;" :row-style="{ color: '#303133' }"
122 122
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
123
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
123
+            <el-table-column align="center" width="40" label="序号">
124
+              <template slot-scope="scope">
125
+                {{scope.$index+1}}
126
+              </template>
127
+            </el-table-column>
124 128
             <el-table-column align="center" prop="project_name" label="名称">
125 129
                 <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
126 130
                 </template>
@@ -136,6 +140,7 @@
136 140
                         <el-input v-model="scope.row.single_dose" @input="getProjectSingleDose(scope)"
137 141
                                   placeholder=""></el-input>
138 142
                         <div>{{scope.row.unit}}</div>
143
+                      <div v-if="scope.row.unit == ''">{{scope.row.good_info.default_count_unit}}</div>
139 144
                     </div>
140 145
 
141 146
                 </template>
@@ -170,7 +175,7 @@
170 175
                     <div style="display:flex;align-items:center;">
171 176
                         <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
172 177
                         <div>{{scope.row.unit}}</div>
173
-
178
+                      <div v-if="scope.row.unit == ''">{{scope.row.good_info.default_count_unit}}</div>
174 179
                     </div>
175 180
                 </template>
176 181
             </el-table-column>
@@ -355,6 +360,10 @@
355 360
         this.templateFormVisible = true
356 361
 
357 362
 
363
+      },
364
+      lili(data){
365
+        console.log("data",this.prescription)
366
+
358 367
       },
359 368
       createFilter(queryString) {
360 369
         return (restaurant) => {
@@ -413,7 +422,7 @@
413 422
           }
414 423
         })
415 424
 
416
-      }, 
425
+      },
417 426
       deleteDrug: function(row, index) {
418 427
 
419 428
         this.$confirm('药品删除后不可恢复,是否确认删除', '删除', {

+ 242 - 7
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -104,11 +104,15 @@
104 104
       </div>
105 105
       <div class="mainRight">
106 106
         <div class="mainHeader">
107
+
107 108
           <el-tabs v-model="titleType" @tab-click="handleClick"
108 109
                    style="position: fixed;width: calc(100% - 490px);background:#fff;">
109 110
             <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
110
-            <el-tab-pane label="透析记录" name="透析记录"></el-tab-pane>
111
+            <el-tab-pane label="透析记录" name="透析记录">
112
+
113
+            </el-tab-pane>
111 114
             <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
115
+
112 116
           </el-tabs>
113 117
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
114 118
             <el-button size="small" ref="button_one" @click="open(1)" type="primary"
@@ -138,6 +142,11 @@
138 142
             <el-button size="small" @click="opentwo(3)" type="primary">病历调用</el-button>
139 143
             <el-button size="small" @click="opentwo(4)" type="primary">存模板</el-button>
140 144
           </div>
145
+
146
+          <div class="mainCell fixedCellOne" style="float:right" v-if="titleType == '透析记录'">
147
+            <el-button size="small" ref="button_one" @click="printOrderOne" type="primary">打印上机单
148
+            </el-button>
149
+          </div>
141 150
         </div>
142 151
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
143 152
         <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
@@ -284,9 +293,9 @@
284 293
           >
285 294
         </template>
286 295
         <div id='printMain'>
287
-          <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
288
-          <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
289
-          <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
296
+          <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj' :newHisPatient="hisPatientInfo"></print>
297
+          <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2' :newHisPatient="hisPatientInfo"></treatPrint>
298
+          <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3' :newHisPatient="hisPatientInfo"></checkPrint>
290 299
         </div>
291 300
 
292 301
       </el-dialog>
@@ -311,6 +320,174 @@
311 320
     </recordPrint>
312 321
     </el-dialog>
313 322
 
323
+    <el-dialog
324
+      :visible.sync="startVisibility"
325
+      :close-on-click-modal="false"
326
+      :close-on-press-escape="false"
327
+      :show-close="false"
328
+      width="30%"
329
+      >
330
+         <el-button
331
+            size="small"
332
+            icon="el-icon-printer"
333
+            type="primary"
334
+            @click="printAction"
335
+            style="float:right"
336
+            >打印</el-button
337
+          >
338
+       <div id="print_content">
339
+        <div class="print_main_content">
340
+          <div class="table_panel">
341
+             <div v-for="(main_collection,index) in printList" :key="index">
342
+              <div class="signPrint" style="width: 360px;font-size:16px;">
343
+                <div style="margin-left:50px;">姓名:
344
+                  <span>{{main_collection.patient.name}} </span>
345
+                  ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
346
+                </div>
347
+                <div class="printCell" style="display:flex;justify-content: space-around;">
348
+                  <span style="display: block;width: 50%;">
349
+                    床号:{{ main_collection.number.number }}
350
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
351
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
352
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
353
+                  </span>
354
+                  <span style="display: block;width: 50%;">{{ printDate }}</span>
355
+                </div>
356
+                <div class="printCell" style="display:flex;justify-content: space-around;">
357
+                   <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
358
+                    <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
359
+
360
+                </div>
361
+                <div class="printCell" style="display:flex;justify-content: space-around;">
362
+                  <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
363
+
364
+                  <span style="display: block;width: 50%;">
365
+                    首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
366
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
367
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}mg
368
+                  </span>
369
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
370
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
371
+                  </span>
372
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
373
+                   {{main_collection.dialysissolution.anticoagulant_shouji}}mg
374
+                  </span>
375
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
376
+                   {{main_collection.dialysissolution.anticoagulant_shouji}} mg
377
+                   </span>
378
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
379
+                   {{main_collection.dialysissolution.anticoagulant_shouji}}iu
380
+                  </span>
381
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
382
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
383
+                   </span>
384
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
385
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
386
+                  </span>
387
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
388
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
389
+                  </span>
390
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
391
+                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
392
+                    </span>
393
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
394
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
395
+                   </span>
396
+                    </span>
397
+
398
+                </div>
399
+                <div class="printCell" style="display:flex;justify-content: space-around;">
400
+                  <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
401
+                 <span style="display: block;width: 50%;">
402
+                     维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
403
+                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
404
+                    mg/h
405
+                  </span>
406
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
407
+                    mg/h
408
+                  </span>
409
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
410
+                   iu/h
411
+                  </span>
412
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
413
+                    mg/h
414
+                  </span>
415
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
416
+                    mg/h
417
+                   </span>
418
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
419
+                   iu/h
420
+                  </span>
421
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
422
+                   iu/h
423
+                   </span>
424
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
425
+                    iu/h
426
+                  </span>
427
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
428
+                    iu/h
429
+                  </span>
430
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
431
+                    iu/h
432
+                    </span>
433
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
434
+                    iu/h
435
+                   </span>
436
+                  </span>
437
+
438
+                </div>
439
+                <div class="printCell" style="display:flex;justify-content: space-around;">
440
+                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
441
+                    <span v-if="$store.getters.xt_user.org.id == 10278">ml</span>
442
+                    <span v-else>L</span>
443
+                    </span>
444
+                  <span style="display: block;width: 50%;">
445
+                    总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
446
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">
447
+                    mg
448
+                  </span>
449
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
450
+                    mg
451
+                  </span>
452
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
453
+                    iu
454
+                  </span>
455
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
456
+                   mg
457
+                  </span>
458
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
459
+                    mg
460
+                   </span>
461
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
462
+                   iu
463
+                  </span>
464
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
465
+                    iu
466
+                   </span>
467
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
468
+                     iu
469
+                  </span>
470
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
471
+                   iu
472
+                  </span>
473
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
474
+                    iu
475
+                    </span>
476
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
477
+                   iu
478
+                   </span>
479
+                  </span>
480
+                </div>
481
+              </div>
482
+            </div>
483
+          </div>
484
+        </div>
485
+      </div>
486
+
487
+      <span slot="footer" class="dialog-footer">
488
+        <el-button @click="startVisibility = false">取 消</el-button>
489
+      </span>
490
+    </el-dialog>
314 491
   </div>
315 492
 </template>
316 493
 
@@ -329,7 +506,7 @@ import treatPrint from './treatPrint'
329 506
 import recordPrint from './recordPrint'
330 507
 import checkPrint from './checkPrint'
331 508
 import dialysisIndex from './components/dialysisIndex'
332
-
509
+import {getInitPrintDataOne} from '@/api/dialysis_record'
333 510
 const moment = require('moment')
334 511
 
335 512
 export default {
@@ -423,7 +600,13 @@ export default {
423 600
       all_his_patients: [],
424 601
       checkVisible: false,
425 602
       current_tab: 'day',
426
-      org_id: 0
603
+      org_id: 0,
604
+      loading:false,
605
+      startVisibility:false,
606
+      assessmentAfterDislysis:{},
607
+      printList:[],
608
+      printDate:'',
609
+      anticoagulants_confit:null,
427 610
     }
428 611
   },
429 612
 
@@ -4990,11 +5173,53 @@ export default {
4990 5173
       })
4991 5174
 
4992 5175
     },
5176
+
4993 5177
     getInitDataOne(val){
4994 5178
       this.prescriptions = val
4995
-    }
5179
+    },
5180
+    printOrderOne(){
5181
+      this.getInitPrintData()
5182
+    },
5183
+    getInitPrintData(){
5184
+      const loading = this.$loading({
5185
+        lock: true,
5186
+        text: 'Loading',
5187
+        spinner: 'el-icon-loading',
5188
+        background: 'rgba(0, 0, 0, 0.7)'
5189
+       })
5190
+
5191
+       var params = {
5192
+         patient_id:this.patientInfo.id,
5193
+         record_date:this.record_date,
5194
+       }
5195
+      console.log("param2332323233232222wode",params)
5196
+      getInitPrintDataOne(params).then(response=>{
5197
+        if(response.data.state == 1){
5198
+          var list = response.data.data.list
5199
+          var assessmentAfterDislysis =  response.data.data.assessmentAfterDislysis
5200
+          console.log("list2332322332",list)
5201
+          this.printList = list
5202
+          this.assessmentAfterDislysis = assessmentAfterDislysis
5203
+          this.startVisibility = true
5204
+          loading.close()
5205
+        }
5206
+      })
5207
+    },
5208
+    printAction: function() {
5209
+      const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
5210
+      const style1 = '@page {margin-top:10px;} @media print{}'
5211
+      printJS({
5212
+        printable: 'print_content',
5213
+        type: 'html',
5214
+        documentTitle: '',
5215
+        style: style1,
5216
+        scanStyles: false
5217
+      })
5218
+    },
4996 5219
   },
4997 5220
   created() {
5221
+    this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
5222
+    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
4998 5223
     this.$nextTick(() => {
4999 5224
 
5000 5225
     })
@@ -5229,6 +5454,16 @@ p {
5229 5454
   display: flex;
5230 5455
   justify-content: space-between;
5231 5456
 }
5457
+
5458
+.fixedCellOne {
5459
+  position: fixed;
5460
+  z-index: 99;
5461
+  right: -180px;
5462
+  background: #fff;
5463
+  width: 300px;
5464
+  display: flex;
5465
+  justify-content: space-between;
5466
+}
5232 5467
 </style>
5233 5468
 
5234 5469
 <style lang="scss">

+ 7 - 7
src/xt_pages/outpatientDoctorStation/modeTemplate.vue View File

@@ -87,11 +87,11 @@
87 87
     },
88 88
     methods: {
89 89
       searchAction() {
90
-      
90
+
91 91
       },
92 92
       handleSizeChange(val) {
93 93
         this.limit = val
94
-      
94
+
95 95
       },
96 96
       getTime(val, temp) {
97 97
         if (val != 0) {
@@ -114,7 +114,7 @@
114 114
 
115 115
            this.templates = modeTeplate
116 116
          }
117
-       })   
117
+       })
118 118
       },
119 119
       handleCurrentChange(row){
120 120
         this.mode_id = row.id
@@ -126,7 +126,7 @@
126 126
           if(id == this.tablelist[i].id){
127 127
             mode_name = this.tablelist[i].name
128 128
           }
129
-        } 
129
+        }
130 130
         return mode_name
131 131
       },
132 132
       deleteModeTemplate(row,index) {
@@ -152,9 +152,9 @@
152 152
        jumpDetail(row) {
153 153
         this.$router.push('/hisTool/modeTemplateDetail?id=' + row.id + '&patient_id=' + this.patient_id + '&patient_name=' + this.patient_name +"&modes="+this.mode_str)
154 154
       },
155
-      batchAdd(){
156
-        this.$router.push("/hisTool/batchTemplate")
157
-      }
155
+      // batchAdd(){
156
+      //   this.$router.push("/hisTool/batchTemplate")
157
+      // }
158 158
     },
159 159
     created() {
160 160
       this.tablelist =  Object.values(this.$store.getters.treatment_mode)

+ 10 - 4
src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue View File

@@ -56,7 +56,8 @@
56 56
                             <prescription-template-mode-table ref="prescription_tables"
57 57
                                                          :prescription="curPrescriptions"
58 58
                                                          :preDrugs="preDrugs"
59
-                                                         :activeType="customTabIndex"></prescription-template-mode-table>
59
+                                                         :activeType="customTabIndex">
60
+                            </prescription-template-mode-table>
60 61
                         </el-tabs>
61 62
                     </div>
62 63
                 </div>
@@ -952,7 +953,7 @@
952 953
                 this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
953 954
               }
954 955
             }
955
-            
956
+
956 957
             let data = {
957 958
               'prescriptions': this.prescriptions
958 959
             }
@@ -1632,12 +1633,17 @@
1632 1633
                     obj['medical_code'] = prescription.project[b].project.medical_code
1633 1634
                     obj['project_name'] = prescription.project[b].project.project_name
1634 1635
                     obj['project'] = prescription.project[b].project
1636
+                    obj['unit'] = prescription.project[b].project.unit
1637
+
1635 1638
 
1636 1639
                   } else if (prescription.project[b].type == 3) {
1637 1640
                     obj['statistical_classification'] = ''
1638 1641
                     obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1639 1642
                     obj['project_name'] = prescription.project[b].good_info.good_name
1640 1643
                     obj['good_info'] = prescription.project[b].good_info
1644
+                    // obj['unit'] = prescription.project[b].project.unit
1645
+                    obj['unit'] = prescription.project[b].good_info.packing_unit
1646
+
1641 1647
 
1642 1648
                   }
1643 1649
                   tempProject.push(obj)
@@ -1894,7 +1900,7 @@
1894 1900
       clearSelection() {
1895 1901
         this.$refs.tabProjectTeam.clearSelection()
1896 1902
       }
1897
-    }, 
1903
+    },
1898 1904
     created() {
1899 1905
       for(let key in this.$store.getters.treatment_mode){
1900 1906
         this.modeOptions[key] = this.$store.getters.treatment_mode[key]
@@ -1983,7 +1989,7 @@
1983 1989
         display: flex;
1984 1990
         flex-direction: column;
1985 1991
         position: relative;
1986
-
1992
+        
1987 1993
     .el-form-item {
1988 1994
         width: 33%;
1989 1995
         margin-bottom: 14px;

File diff suppressed because it is too large
+ 579 - 493
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue


+ 5 - 14
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

@@ -1288,6 +1288,7 @@
1288 1288
           this.showOne = true
1289 1289
           this.showTwo = false
1290 1290
           this.$nextTick(() => {
1291
+            console.log("lilili1111111111111111111111111111111111111111111",this.prescriptions[this.prescriptions.length - 1])
1291 1292
             this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length - 1])
1292 1293
           })
1293 1294
           this.customTabIndex = 1
@@ -1299,6 +1300,7 @@
1299 1300
           this.showTwo = true
1300 1301
           this.showOne = false
1301 1302
           this.$nextTick(() => {
1303
+            console.log("lilili1111111111111111111111111111111111111111111",this.prescriptions[this.prescriptions.length - 1])
1302 1304
             this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length - 1])
1303 1305
           })
1304 1306
           this.customTabIndex = 2
@@ -1599,19 +1601,14 @@
1599 1601
             return false
1600 1602
           } else {
1601 1603
             this.prescriptions = []
1602
-            // console.log(this.tempForm)
1603
-
1604 1604
             if (response.data.data.template.id > 0) {
1605
-
1606 1605
               this.tempForm.name = response.data.data.template.name
1607 1606
               this.tempForm.mode_id = response.data.data.template.mode
1608
-
1609 1607
               for (let i = 0; i < response.data.data.prescriptions.length; i++) {
1610 1608
                 var prescription = response.data.data.prescriptions[i]
1611 1609
                 let tempAdvice = []
1612 1610
                 let tempProject = []
1613 1611
                 let tempAddition = []
1614
-
1615 1612
                 //药品
1616 1613
                 for (let b = 0; b < prescription.advices.length; b++) {
1617 1614
                   let obj = {
@@ -1653,7 +1650,6 @@
1653 1650
                     price: prescription.project[b].price,
1654 1651
                     remark: prescription.project[b].remark,
1655 1652
                     medical_code: prescription.project[b].project.medical_code,
1656
-                    unit: prescription.project[b].project.unit,
1657 1653
                     type: prescription.project[b].type,
1658 1654
                     frequency_type: prescription.project[b].frequency_type,
1659 1655
                     day_count: prescription.project[b].day_count,
@@ -1666,13 +1662,13 @@
1666 1662
                     obj['medical_code'] = prescription.project[b].project.medical_code
1667 1663
                     obj['project_name'] = prescription.project[b].project.project_name
1668 1664
                     obj['project'] = prescription.project[b].project
1669
-
1665
+                    obj['unit'] = prescription.project[b].unit
1670 1666
                   } else if (prescription.project[b].type == 3) {
1671 1667
                     obj['statistical_classification'] = ''
1672 1668
                     obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1673 1669
                     obj['project_name'] = prescription.project[b].good_info.good_name
1674 1670
                     obj['good_info'] = prescription.project[b].good_info
1675
-
1671
+                    obj['unit'] = prescription.project[b].good_info.packing_unit
1676 1672
                   }
1677 1673
                   tempProject.push(obj)
1678 1674
                 }
@@ -1713,17 +1709,12 @@
1713 1709
                 order_status: 0,
1714 1710
                 med_type: ''
1715 1711
               }
1716
-
1717 1712
               obj.med_type = 14
1718
-
1719 1713
               this.prescriptions.push(obj)
1720 1714
               this.curPrescriptions = this.prescriptions[0]
1721 1715
             }
1722
-
1723 1716
           }
1724
-
1725 1717
         })
1726
-
1727 1718
       },
1728 1719
       getlist() {
1729 1720
         this.tabProject = []
@@ -2151,7 +2142,7 @@
2151 2142
         display: flex;
2152 2143
         flex-direction: column;
2153 2144
         position: relative;
2154
-
2145
+        overflow-x: auto;
2155 2146
     .el-form-item {
2156 2147
         width: 33%;
2157 2148
         margin-bottom: 14px;

+ 3 - 2
src/xt_pages/outpatientDoctorStation/print.vue View File

@@ -18,7 +18,7 @@
18 18
 9675:测试
19 19
  -->
20 20
     <div class="dialysisPage" style="padding-top: 40px">
21
-      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
21
+      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 0">
22 22
 
23 23
         <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
24 24
 
@@ -68,7 +68,7 @@
68 68
           :advicePrint="advicePrint"
69 69
           :ids="ids"
70 70
           :patient="patient"
71
-          :hisPatient="hisPatient"
71
+          :newHisPatient="newHisPatient"
72 72
           :doctorPorject="doctorPorject"
73 73
           :patient_id="patient_id"
74 74
           :record_date="record_date"
@@ -105,6 +105,7 @@ export default {
105 105
   },
106 106
   props: {
107 107
     paramsObj: Object,
108
+    newHisPatient:Object
108 109
   },
109 110
   data() {
110 111
     return {

+ 11 - 8
src/xt_pages/outpatientDoctorStation/template/printThree.vue View File

@@ -37,17 +37,18 @@
37 37
           </div>
38 38
           <div style="display: flex">
39 39
             <div style="width: 33%; display: flex">
40
-              费别:<span class="under_line"
41
-                ><span>{{
42
-                  faber && faber.transBody
43
-                    ? getName(faber.transBody.outputlist1)
44
-                    : "自费"
45
-                }}</span></span
46
-              >
40
+              费别:
41
+              <span class="under_line">
42
+                <span v-if="newHisPatient.id > 0">{{
43
+                    newHisPatient.balance_accounts_type == 1 ? '医保':'自费'
44
+                }}</span>
45
+                   <span v-else>{{
46
+                     }}</span>
47
+            </span>
47 48
             </div>
48 49
             <div style="width: 33%; display: flex">
49 50
               电脑号:<span class="under_line">{{
50
-                faber && faber.transBody ? faber.transBody.aac999 : ""
51
+                newHisPatient.id_card_no
51 52
               }}</span>
52 53
             </div>
53 54
             <div style="width: 33%; display: flex">
@@ -258,6 +259,7 @@ export default {
258 259
     prescription_id: Number,
259 260
     his_patient_id:Number,
260 261
     ids: String,
262
+    newHisPatient:Object,
261 263
   },
262 264
   data() {
263 265
     return {
@@ -269,6 +271,7 @@ export default {
269 271
       prescriptionInfo: [],
270 272
       doc_name: "",
271 273
       hisPatient: {},
274
+
272 275
       department: [],
273 276
       prescriptions: [],
274 277
       projectList: [],

+ 12 - 11
src/xt_pages/outpatientDoctorStation/treatPrint.vue View File

@@ -11,12 +11,12 @@
11 11
           >打印</el-button
12 12
         >
13 13
       </template> -->
14
-            
14
+
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16 16
         <!-- 此下条为本地开发下页面 -->
17 17
         <!-- <printTwo v-if="org_id == 4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo> -->
18 18
         <printOne v-if="org_id != 10138 && org_id != 10278 && org_id !=4&& org_id !=0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
19
-        <printTwo v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>
19
+        <printTwo v-else v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
20 20
       </div>
21 21
   </div>
22 22
 </template>
@@ -42,7 +42,8 @@ export default {
42 42
     printTwo
43 43
   },
44 44
   props:{
45
-    paramsObj:Object
45
+    paramsObj:Object,
46
+    newHisPatient:Object
46 47
   },
47 48
   data() {
48 49
     return {
@@ -78,7 +79,7 @@ export default {
78 79
             scanStyles: false
79 80
           });
80 81
         },500)
81
-        
82
+
82 83
       }else{
83 84
         const style =
84 85
         '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.prescription-print{font-size: 14px;}.printTitle{font-size: 18px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:5px;padding:0 10px;}.infoTitle div{width: 300px;margin-bottom:5px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;}.prescriptionBox{padding:0 10px;min-height:380px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; padding:0 10px;margin:5px 0;} .actionBar div{width:150px;}}';
@@ -89,7 +90,7 @@ export default {
89 90
           scanStyles: false
90 91
         });
91 92
       }
92
-      
93
+
93 94
 
94 95
       // if (this.org_template_info.template_id == 1) {
95 96
       //   printJS({
@@ -104,10 +105,10 @@ export default {
104 105
       getAllDoctorList().then(response=>{
105 106
         if(response.data.state == 1){
106 107
                var doctor =  response.data.data.doctor
107
-               
108
+
108 109
                this.doctorList = doctor
109 110
              }
110
-         })   
111
+         })
111 112
      },
112 113
     getAllHisPatientList(){
113 114
          const params = {
@@ -133,7 +134,7 @@ export default {
133 134
             // console.log(this.patientTableData[0])
134 135
             // this.choosePatient(this.patientTableData[0])
135 136
             this.cal_one = cal_one
136
-            this.cal_two = cal_two   
137
+            this.cal_two = cal_two
137 138
          }
138 139
       })
139 140
     },
@@ -167,7 +168,7 @@ export default {
167 168
     searchAction(){
168 169
 
169 170
     }
170
-    
171
+
171 172
   },
172 173
 
173 174
   created() {
@@ -191,7 +192,7 @@ export default {
191 192
         var prescription_id = this.paramsObj.prescription_id
192 193
         this.prescription_id = prescription_id
193 194
         this.ids = this.paramsObj.ids
194
-        
195
+
195 196
       },
196 197
       deep:true
197 198
     }
@@ -364,7 +365,7 @@ export default {
364 365
   .dialysisPage::-webkit-scrollbar {
365 366
     height: 15px;
366 367
   }
367
-  
368
+
368 369
   .el-date-editor{
369 370
     .el-input__inner{
370 371
       padding-right:0px;

+ 14 - 8
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue View File

@@ -34,16 +34,21 @@
34 34
       </div>
35 35
       <div style="display: flex">
36 36
         <div style="width: 33%; display: flex">
37
-          费别:<span class="under_line">{{
38
-            faber && faber.transBody
39
-              ? getName(faber.transBody.outputlist1)
40
-              : "自费"
41
-          }}</span>
37
+          费别:
38
+          <span class="under_line">
39
+                <span v-if="newHisPatient.id > 0">{{
40
+                    newHisPatient.balance_accounts_type == 1 ? '医保':'自费'
41
+                  }}</span>
42
+                   <span v-else>{{
43
+                     }}</span>
44
+            </span>
42 45
         </div>
43 46
         <div style="width: 33%; display: flex">
44
-          电脑号:<span class="under_line">{{
45
-            faber && faber.transBody ? faber.transBody.aac999 : ""
46
-          }}</span>
47
+          电脑号:  <span class="under_line">
48
+                <span>{{
49
+                    newHisPatient.id_card_no
50
+                  }}</span>
51
+            </span>
47 52
         </div>
48 53
         <div style="width: 33%; display: flex">
49 54
           处方编号:<span class="under_line">{{
@@ -325,6 +330,7 @@ export default {
325 330
     record_date: String,
326 331
     prescription_id: Number,
327 332
     ids: String,
333
+    newHisPatient:Object,
328 334
   },
329 335
   data() {
330 336
     return {

+ 15 - 20
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

@@ -167,11 +167,11 @@
167 167
     <div style="display: flex; justify-content: space-around; margin-top: 25px">
168 168
       <div>总费用:{{ getAllPice() }}</div>
169 169
       <div>
170
-        个人支付: 
170
+        个人支付:
171 171
         {{getActPay()}}
172
-        <!-- <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172
+        <!-- <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
173 173
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
174
-      
174
+
175 175
       </div>
176 176
       <div>基金支付记账:{{ getFundPaySumamt() }}</div>
177 177
       <div>补充医疗支付记账:{{ getHifesPay() }}</div>
@@ -305,6 +305,7 @@ export default {
305 305
           var list = response.data.data.list;
306 306
           this.his_patient = response.data.data.his_patient;
307 307
           this.list = list;
308
+          console.log( this.list)
308 309
           this.tableData = [];
309 310
           for (let i = 0; i < list.length; i++) {
310 311
             for (let j = 0; j < list[i].orders.length; j++) {
@@ -345,7 +346,7 @@ export default {
345 346
             this.item_type = this.id;
346 347
           }
347 348
 
348
-          
349
+
349 350
           if (this.keywords != "") {
350 351
             for (let i = 0; i < this.tableData.length; i++) {
351 352
               if (this.tableData[i].index != "合计") {
@@ -444,25 +445,19 @@ export default {
444 445
       return total_price.toFixed(2);
445 446
     },
446 447
     getActPay() {
447
-      var arrNew = []
448 448
       var act_pay = 0;
449 449
       for (let i = 0; i < this.list.length; i++) {
450 450
         for (let j = 0; j < this.list[i].orders.length; j++) {
451
-          //个人支付
452
-          console.log("is",this.list[i].orders[j])
453
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
454
-             arrNew.push(this.list[i].orders[j])
451
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
452
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
453
+          }else{
454
+            console.log(this.list[i].orders[j].medfee_sumamt)
455
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
455 456
           }
457
+
456 458
         }
457 459
       }
458
-      if(arrNew.length > 0){
459
-        for(let i=0;i<arrNew.length;i++){
460
-           for(let j=0;j<arrNew[i].order_info.length;j++){
461
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
462
-           }
463
-        }
464
-      }
465
-      console.log("arrNew2332323223",arrNew)
460
+
466 461
       return act_pay.toFixed(2);
467 462
     },
468 463
     getFundPaySumamt() {
@@ -472,7 +467,7 @@ export default {
472 467
           fund_pay_sumamt += this.list[i].orders[j].fund_pay_sumamt;
473 468
         }
474 469
       }
475
-      return fund_pay_sumamt;
470
+      return fund_pay_sumamt.toFixed(2);
476 471
     },
477 472
     getHifesPay() {
478 473
       var hifes_pay = 0;
@@ -481,7 +476,7 @@ export default {
481 476
           hifes_pay += this.list[i].orders[j].hifes_pay;
482 477
         }
483 478
       }
484
-      return hifes_pay;
479
+      return hifes_pay.toFixed(2);
485 480
     },
486 481
     getMafPay() {
487 482
       var maf_pay = 0;
@@ -490,7 +485,7 @@ export default {
490 485
           maf_pay += this.list[i].orders[j].maf_pay;
491 486
         }
492 487
       }
493
-      return maf_pay;
488
+      return maf_pay.toFixed(2);
494 489
     },
495 490
     toPrint() {
496 491
       this.$router.push({

+ 17 - 24
src/xt_pages/outpatientTool/detailPrint.vue View File

@@ -28,7 +28,7 @@
28 28
           <span v-if="his_patient!=null && his_patient.number!=''">{{his_patient.number}}</span>
29 29
           <span v-if="his_record_patient!=null && his_record_patient.ipt_otp_no!=''">{{his_record_patient.ipt_otp_no}}</span></td>
30 30
             <td>科室:
31
-          <span v-if="his_patient!=null && his_patient.departments >0"> {{ getDepartment(his_patient.departments) }}</span> 
31
+          <span v-if="his_patient!=null && his_patient.departments >0"> {{ getDepartment(his_patient.departments) }}</span>
32 32
           <span v-if="his_record_patient!=null && his_record_patient.departments > 0">{{ getDepartment(his_record_patient.departments) }}</span></td>
33 33
             <td>就诊流水号:
34 34
           <span v-if="his_patient!=null && his_patient.number!=''"> {{ his_patient.number }}</span>
@@ -60,7 +60,7 @@
60 60
         <div>患者姓名:{{ patient.name }}</div>
61 61
         <div>性别:{{ patient.gender == 1 ? "男" : "女" }}</div>
62 62
         <div>结算类别:
63
-          
63
+
64 64
           {{getType(his_record_patient.balance_accounts_type)}}
65 65
         </div>
66 66
         <div style="min-width:300px;">发票号码:{{order.fa_piao_number}}</div>
@@ -73,7 +73,7 @@
73 73
           {{ getDepartment(his_record_patient.departments) }}
74 74
         </div>
75 75
         <div style="min-width:350px;">就诊流水号:
76
-       
76
+
77 77
           {{his_record_patient.number}}
78 78
         </div>
79 79
       </div> -->
@@ -108,7 +108,7 @@
108 108
             <span v-if="item.is_total == 2">合计</span>
109 109
           </td>
110 110
           <td style="text-align: center">
111
-            <span v-if="item.is_total == 1">{{getTimes(item.record_date)}}</span> 
111
+            <span v-if="item.is_total == 1">{{getTimes(item.record_date)}}</span>
112 112
           </td>
113 113
           <td width="80" style="text-align: center">{{ item.number }}</td>
114 114
           <td style="text-align: center">
@@ -239,11 +239,11 @@ export default {
239 239
           this.patient = response.data.data.patient;
240 240
 
241 241
           this.his_patient = response.data.data.his_patient;
242
-         
242
+
243 243
          this.his_record_patient = response.data.data.his_record_patient
244 244
 
245 245
          this.hisDepatment = response.data.data.hisDepatment;
246
-          
246
+
247 247
          this.orderList = response.data.data.orderList
248 248
           this.order = response.data.data.order
249 249
           this.tableData = [];
@@ -271,7 +271,7 @@ export default {
271 271
           this.tableData.push(obj);
272 272
 
273 273
 
274
-         
274
+
275 275
           if (this.$route.query.keyword != "") {
276 276
             var new_arr = []
277 277
             for (let i = 0; i < this.tableData.length; i++) {
@@ -314,7 +314,7 @@ export default {
314 314
             objs.total_price = this.getPrice(new_arr)
315 315
             new_arr.push(objs)
316 316
             this.tableData = new_arr;
317
-           
317
+
318 318
           }
319 319
 
320 320
           if(this.$route.query.id == 1){
@@ -347,10 +347,10 @@ export default {
347 347
                 }
348 348
               }
349 349
             }
350
-         
350
+
351 351
             this.tableData = []
352 352
             obj.total_price = this.getPrice(new_arr)
353
-           
353
+
354 354
             for(let i=0;i<new_arr.length;i++){
355 355
               new_arr[i].is_total = 1
356 356
             }
@@ -376,7 +376,7 @@ export default {
376 376
               new_arr[i].is_total = 1
377 377
             }
378 378
             new_arr.push(obj)
379
-           
379
+
380 380
             this.tableData = new_arr
381 381
           }
382 382
 
@@ -393,25 +393,18 @@ export default {
393 393
       return total_price;
394 394
     },
395 395
     getActPay() {
396
-      var arrNew = []
397 396
       var act_pay = 0;
398 397
       for (let i = 0; i < this.list.length; i++) {
399 398
         for (let j = 0; j < this.list[i].orders.length; j++) {
400
-          //个人支付
401
-          console.log("is",this.list[i].orders[j])
402
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
403
-             arrNew.push(this.list[i].orders[j])
399
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
400
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
401
+          }else{
402
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
404 403
           }
404
+
405 405
         }
406 406
       }
407
-      if(arrNew.length > 0){
408
-        for(let i=0;i<arrNew.length;i++){
409
-           for(let j=0;j<arrNew[i].order_info.length;j++){
410
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
411
-           }
412
-        }
413
-      }
414
-      console.log("arrNew2332323223",arrNew)
407
+
415 408
       return act_pay.toFixed(2);
416 409
     },
417 410
     getFundPaySumamt() {

+ 53 - 60
src/xt_pages/outpatientTool/gatherPrint.vue View File

@@ -10,12 +10,12 @@
10 10
         </div>
11 11
         <div class="listInfo">
12 12
             <div>科别:
13
-              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span> 
13
+              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span>
14 14
               {{getDepartment(his_record_patient.departments)}}
15 15
             </div>
16 16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
17 17
             <div>门诊号:
18
-               <span v-if="org_id!=10215">{{his_patient.number}}</span> 
18
+               <span v-if="org_id!=10215">{{his_patient.number}}</span>
19 19
                {{his_record_patient.ipt_otp_no}}
20 20
             </div>
21 21
             <div>姓名:{{patient.name}}</div>
@@ -76,27 +76,27 @@
76 76
                    {{item.cost_type}}
77 77
                  </span>
78 78
                   <span v-if="item.type == 2">
79
-                    {{item.cost_type}} 
79
+                    {{item.cost_type}}
80 80
                   </span>
81 81
                   <span v-if="item.type == 3">
82 82
                     材料费
83
-                  </span> 
83
+                  </span>
84 84
                 </td>
85 85
                 <td style="text-align:center" >
86
-                  <span>{{item.name}}</span>  
86
+                  <span>{{item.name}}</span>
87 87
                 </td>
88 88
                 <td style="text-align:center" >
89 89
                   {{ item.spec }}
90 90
                 </td>
91 91
                 <td style="text-align:center" >
92
-                  {{item.pric}}  
92
+                  {{item.pric}}
93 93
                 </td>
94 94
                 <td style="text-align:center" >
95 95
                    {{item.count_number }}{{item.unit }}
96 96
                 </td>
97 97
                 <td style="text-align:center" >
98
-                   <span v-if="item.is_total == 1">{{ item.total }}</span>  
99
-                   <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span> 
98
+                   <span v-if="item.is_total == 1">{{ item.total }}</span>
99
+                   <span v-if="item.is_total == 2">{{ (item.pric * item.count_number).toFixed(2) }}</span>
100 100
                 </td>
101 101
                 <td style="text-align:center" >
102 102
                   {{getChrgitmLv(item.medical_insurance_level)}}
@@ -194,7 +194,7 @@
194 194
             return false
195 195
           } else {
196 196
           this.drugTypeList =response.data.data.drugTypeList
197
-          this.costClassifyList = response.data.data.costClassifyList 
197
+          this.costClassifyList = response.data.data.costClassifyList
198 198
           var list = response.data.data.list
199 199
           this.list = list
200 200
           this.orderList = response.data.data.orderList
@@ -206,7 +206,7 @@
206 206
                new_arr.push(list[i].orders[j])
207 207
             }
208 208
           }
209
-          
209
+
210 210
 
211 211
           var order_info = []
212 212
           for(let i=0;i<new_arr.length;i++){
@@ -228,8 +228,8 @@
228 228
               }
229 229
             }
230 230
           }
231
-          
232
-          
231
+
232
+
233 233
           //合并,相同的合并在一起
234 234
 
235 235
           let dataInfo = {}
@@ -257,8 +257,8 @@
257 257
             }
258 258
             dataInfo[item_id].child.push(item)
259 259
           })
260
-          let arr = Object.values(dataInfo) 
261
-          
260
+          let arr = Object.values(dataInfo)
261
+
262 262
           for(let i=0;i<arr.length;i++){
263 263
             for(let j=0;j<arr[i].child.length;j++){
264 264
                if(arr[i].advice_id >0){
@@ -269,8 +269,8 @@
269 269
                   arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
270 270
                   arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
271 271
                   arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
272
-                 
273
-                 
272
+
273
+
274 274
                }
275 275
                if(arr[i].project_id > 0){
276 276
                   arr[i].record_date = arr[i].child[0].project.record_date
@@ -293,7 +293,7 @@
293 293
                arr[i].count_number +=arr[i].child[j].cnt
294 294
             }
295 295
           }
296
-          
296
+
297 297
           var obj = {is_total:1,total:0}
298 298
           obj.total = this.getAllPiceTwo(arr)
299 299
           for(let i=0;i<arr.length;i++){
@@ -307,18 +307,18 @@
307 307
           arr.push(obj)
308 308
 
309 309
           this.tableList = arr
310
-         
310
+
311 311
           this.patient = response.data.data.patient
312
-         
312
+
313 313
           this.his_patient = response.data.data.his_patient
314 314
           this.hisDepatment =  response.data.data.hisDepatment
315 315
           this.order =  response.data.data.order
316 316
           this.his_record_patient = response.data.data.his_record_patient
317
-          this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList  
317
+          this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
318 318
           this.schedule = response.data.data.schedule
319 319
           this.bedNumber = response.data.data.bedNumber
320 320
           if(this.$route.query.keyword !=""){
321
-           
321
+
322 322
             var new_arr = []
323 323
             for(let i=0;i<this.tableList.length;i++){
324 324
               if(this.tableList[i].is_total!=1){
@@ -326,7 +326,7 @@
326 326
                   new_arr.push(this.tableList[i])
327 327
                 }
328 328
               }
329
-             
329
+
330 330
              }
331 331
               var obj ={index:"合计",is_total:1,total:0}
332 332
               obj.total = this.getAllPiceTwo(new_arr)
@@ -341,9 +341,9 @@
341 341
                 if(this.tableList[i].is_total!=1){
342 342
                   if(this.tableList[i].type == 1){
343 343
                    new_arr.push(this.tableList[i])
344
-                }  
344
+                }
345 345
               }
346
-                
346
+
347 347
              }
348 348
              this.tableList = []
349 349
              this.tableList = new_arr
@@ -353,9 +353,9 @@
353 353
              for(let i=0;i<this.tableList.length;i++){
354 354
                if(this.tableList[i].is_total!=1){
355 355
                   if(this.tableList[i].type == 2){
356
-                
356
+
357 357
                   new_arr.push(this.tableList[i])
358
-                }  
358
+                }
359 359
               }
360 360
              }
361 361
              this.tableList = []
@@ -367,7 +367,7 @@
367 367
                 if(this.tableList[i].is_total!=1){
368 368
                   if(this.tableList[i].type == 3){
369 369
                     new_arr.push(this.tableList[i])
370
-                }  
370
+                }
371 371
               }
372 372
              }
373 373
              this.tableList = []
@@ -404,7 +404,7 @@
404 404
               id: details[i].advice.drug_id,
405 405
               price: details[i].advice.price,
406 406
               record_date:details[i].advice.advice_date
407
-              
407
+
408 408
             }
409 409
             drug_ids.push(obj)
410 410
           } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
@@ -418,10 +418,10 @@
418 418
           }
419 419
 
420 420
         }
421
-      
421
+
422 422
         let new_drug_ids = this.unique(drug_ids)
423 423
         let new_project_ids = this.unique(project_ids)
424
-       
424
+
425 425
         let list = []
426 426
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
427 427
           for (let i = 0; i < new_drug_ids.length; i++) {
@@ -476,7 +476,7 @@
476 476
             }
477 477
             obj['count'] = count
478 478
             list.push(obj)
479
-          
479
+
480 480
           }
481 481
         }
482 482
 
@@ -502,7 +502,7 @@
502 502
             list.push(obj)
503 503
 
504 504
           }
505
-         
505
+
506 506
           for (let i = 0; i < new_project_ids.length; i++) {
507 507
             let obj = {}
508 508
             let count = 0
@@ -529,13 +529,13 @@
529 529
             }
530 530
             obj['count'] = count
531 531
             list.push(obj)
532
-          
532
+
533 533
           }
534 534
          }
535
-       
535
+
536 536
         return list
537
-      }, 
538
-    
537
+      },
538
+
539 539
       getMedicineInsuranceType(type) {
540 540
         switch (type) {
541 541
           case "01":
@@ -663,7 +663,7 @@
663 663
       }else{
664 664
         return "0.00"
665 665
       }
666
-     
666
+
667 667
     },
668 668
     getAllPiceTwo(arr){
669 669
 
@@ -678,7 +678,7 @@
678 678
       }else{
679 679
         return total_price
680 680
       }
681
-     
681
+
682 682
     },
683 683
     setMonthPrescription(month_prescriptions) {
684 684
       let drug_month_prescriptions = {
@@ -718,7 +718,7 @@
718 718
 
719 719
       drug_ids = this.unique(drug_ids)
720 720
       project_ids= this.unique(project_ids)
721
-  
721
+
722 722
       for (let i = 0; i < drug_ids.length; i++) {
723 723
         let obj = {}
724 724
         let count = 0
@@ -738,7 +738,7 @@
738 738
             obj['record_date'] = drug_month_prescriptions.advices[a].advice_date
739 739
             obj['spec'] = drug_month_prescriptions.advices[a].drug.dose  + drug_month_prescriptions.advices[a].drug.dose_unit +"*" + drug_month_prescriptions.advices[a].drug.min_number + drug_month_prescriptions.advices[a].drug.min_unit + "/" + drug_month_prescriptions.advices[a].drug.max_unit
740 740
             obj['is_total'] = 2
741
-            obj['chrgitm_lv'] =  drug_month_prescriptions.advices[a].drug.medical_insurance_level 
741
+            obj['chrgitm_lv'] =  drug_month_prescriptions.advices[a].drug.medical_insurance_level
742 742
             obj['unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
743 743
             count = count + drug_month_prescriptions.advices[a].prescribing_number
744 744
 
@@ -777,7 +777,7 @@
777 777
             obj['day'] = project_month_prescriptions.project[a].day
778 778
             obj['single_dose_unit'] = project_month_prescriptions.project[a].unit
779 779
             obj['prescribing_number_unit'] = project_month_prescriptions.project[a].unit
780
-           
780
+
781 781
             count = count + parseFloat(project_month_prescriptions.project[a].count)
782 782
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
783 783
             obj['remark'] = project_month_prescriptions.project[a].remark
@@ -911,7 +911,7 @@
911 911
             total_price += this.tableList[i].count_number * this.tableList[i].pric
912 912
          }
913 913
       }
914
-      
914
+
915 915
       return total_price.toFixed(2)
916 916
     },
917 917
     getChineseTraditionalMedicineCostTotal(){
@@ -1041,7 +1041,7 @@
1041 1041
       return total_price.toFixed(2)
1042 1042
     },
1043 1043
     getDrugType(id){
1044
-    
1044
+
1045 1045
       var name = ""
1046 1046
       for(let i=0;i<this.drugTypeList.length;i++){
1047 1047
          if(id == this.drugTypeList[i].value){
@@ -1108,42 +1108,35 @@
1108 1108
       for(let i=0;i<this.orderList.length;i++){
1109 1109
         fund_pay_sumamt +=this.orderList[i].fund_pay_sumamt
1110 1110
       }
1111
-     
1111
+
1112 1112
       if(fund_pay_sumamt >0){
1113 1113
         return fund_pay_sumamt.toFixed(2)
1114 1114
       }else{
1115
-      
1115
+
1116 1116
         return "0.00"
1117 1117
       }
1118 1118
     },
1119 1119
     getActPay() {
1120
-      var arrNew = []
1121 1120
       var act_pay = 0;
1122 1121
       for (let i = 0; i < this.list.length; i++) {
1123 1122
         for (let j = 0; j < this.list[i].orders.length; j++) {
1124
-          //个人支付
1125
-          console.log("is",this.list[i].orders[j])
1126
-          if(this.list[i].orders[j].is_medicine_insurance == 0){
1127
-             arrNew.push(this.list[i].orders[j])
1123
+          if(this.list[i].orders[j].is_medicine_insurance == 1){
1124
+            act_pay = act_pay + this.list[i].orders[j].psn_cash_pay
1125
+          }else{
1126
+            act_pay= act_pay +  this.list[i].orders[j].medfee_sumamt
1128 1127
           }
1128
+
1129 1129
         }
1130 1130
       }
1131
-      if(arrNew.length > 0){
1132
-        for(let i=0;i<arrNew.length;i++){
1133
-           for(let j=0;j<arrNew[i].order_info.length;j++){
1134
-             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
1135
-           }
1136
-        }
1137
-      }
1138
-      console.log("arrNew2332323223",arrNew)
1131
+
1139 1132
       return act_pay.toFixed(2);
1140 1133
     },
1141 1134
 
1142 1135
     },
1143 1136
     created(){
1144 1137
       this.org_id = this.$store.getters.xt_user.org.id;
1145
-     
1146
-      this.getGatherDetailList()   
1138
+
1139
+      this.getGatherDetailList()
1147 1140
     }
1148 1141
 
1149 1142
   }

+ 18 - 2
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue View File

@@ -294,6 +294,12 @@ export default {
294 294
             if(modeIdCount[i].mode_id == 30){
295 295
                modeIdCount[i].mode_id = "血浆胆红素吸附+HP"
296 296
             }
297
+           if(modeIdCount[i].mode_id == 31){
298
+               modeIdCount[i].mode_id = "HPD"
299
+            }
300
+            if(modeIdCount[i].mode_id == 32){
301
+               modeIdCount[i].mode_id = "HDP"
302
+            }
297 303
           }
298 304
           this.modeIdCount = modeIdCount
299 305
           let dataInfo = {}
@@ -475,7 +481,14 @@ export default {
475 481
           patients[i].mode_id = "CVVHDF"
476 482
         }else if(patients[i].mode_id == 29){
477 483
           patients[i].mode_id = "PE"
484
+        }else if(patients[i].mode_id == 30){
485
+          patients[i].mode_id = "血浆胆红素吸附+HP"
486
+        }else if(patients[i].mode_id == 31){
487
+          patients[i].mode_id = "HPD"
488
+        }else if(patients[i].mode_id == 32){
489
+          patients[i].mode_id = "HDP"
478 490
         }
491
+
479 492
       }
480 493
     },
481 494
      querySearchAsync(keyword, cb) {
@@ -540,14 +553,17 @@ export default {
540 553
          this.DialysisData[i].CVVHD = this.getHdModeIdCount(this.DialysisData[i].patient_id,"CVVHD")
541 554
          this.DialysisData[i].CVVHDF = this.getHdModeIdCount(this.DialysisData[i].patient_id,"CVVHDF")
542 555
          this.DialysisData[i].PE = this.getHdModeIdCount(this.DialysisData[i].patient_id,"PE")
556
+         this.DialysisData[i].XUEHP = this.getHdModeIdCount(this.DialysisData[i].patient_id,"血浆胆红素吸附+HP")
557
+         this.DialysisData[i].HPD = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HPD")
558
+          this.DialysisData[i].HDP = this.getHdModeIdCount(this.DialysisData[i].patient_id,"HDP")
543 559
 
544 560
          this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
545 561
          this.DialysisData[i].total_count = this.getDialysisCount(this.DialysisData[i].patient_id)
546 562
        }
547 563
        console.log("hhh2323323232",this.DialysisData)
548 564
        import('@/vendor/Export2Excel').then(excel => {
549
-        const tHeader = ['序号','姓名', '年龄', '透析号','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','总数']
550
-        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','total_count']
565
+        const tHeader = ['序号','姓名', '年龄', '透析号','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','IUF+HD','UF','HD+','I-HDF','HD高通','CVVH','CVVHD','CVVHDF','PE','血浆胆红素吸附+HP','HPD','HDP','总数']
566
+        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','IUF+HD','UF','HD+','I-HDF','HDGT','CVVH','CVVHD','CVVHDF','PE','XUEHP','HPD','HDP','total_count']
551 567
 
552 568
         const data = this.formatJson(filterVal, this.DialysisData)
553 569
 

+ 5 - 0
src/xt_pages/qcd/workAnalysis/nurse.vue View File

@@ -421,10 +421,15 @@
421 421
                 total_diffcult_nurse = total_diffcult_nurse + resp.data.data[i].difficult_nuser_count
422 422
                 total_new_fistula_nurse = total_new_fistula_nurse + resp.data.data[i].new_nuser_count
423 423
                 total_start_nurse = total_start_nurse + resp.data.data[i].start_nuser_count
424
+                console.log( resp.data.data[i].start_nuser_count)
425
+
426
+                console.log(total_start_nurse)
424 427
                 total_finish_nurse = total_finish_nurse + resp.data.data[i].finish_nuser_count
425 428
                 total_washpipe_nurse = total_washpipe_nurse + resp.data.data[i].washpipe_nuser_count
426 429
                 this.tableData.push(resp.data.data[i])
427 430
              }
431
+              console.log(total_start_nurse)
432
+
428 433
               this.tableData.push( {
429 434
                 user_name:"合计",
430 435
                 cure_count:total_cure,

+ 6 - 6
src/xt_pages/sign/components/beforeDialysisCalling.vue View File

@@ -116,7 +116,7 @@ export default {
116 116
         websocketSend(data) {
117 117
             try {
118 118
                 this.websocket.send(JSON.stringify(data))
119
-                
119
+
120 120
             } catch (error) {
121 121
                 this.showError = true;
122 122
                 this.showIndex = 4;
@@ -128,8 +128,8 @@ export default {
128 128
             this.websocket.onmessage = e => {
129 129
                 let res = JSON.parse(e.data);
130 130
                 // let res = re.data;
131
-                console.log('res3333333333',res)
132
-                
131
+                console.log('res3333ssss333333',res)
132
+
133 133
                     if(res.channel == 'queue/join'){
134 134
                         if(res.data.type == 3){
135 135
                             let fisrtQueueInfo = []
@@ -237,7 +237,7 @@ export default {
237 237
                         }
238 238
                         this.fisrtQueueInfo = fisrtQueueInfo
239 239
                     }
240
-                
240
+
241 241
             }
242 242
         },
243 243
         handleStateChange: function(index) {
@@ -249,7 +249,7 @@ export default {
249 249
             //         if(item.schedule_type == 1){
250 250
             //             newArr.push(item)
251 251
             //         }
252
-            //     }) 
252
+            //     })
253 253
             //     this.waitingCalledAm = newArr
254 254
             // }else if(index == 1){
255 255
             //     let arr = this.waitingCalledPm
@@ -258,7 +258,7 @@ export default {
258 258
             //         if(item.schedule_type == 2){
259 259
             //             newArr.push(item)
260 260
             //         }
261
-            //     }) 
261
+            //     })
262 262
             //     this.waitingCalledPm = newArr
263 263
             // }
264 264
             if(index == 2){

+ 3 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

@@ -162,8 +162,7 @@
162 162
             <span v-if="scope.row.is_total !=1">
163 163
               <span v-if="org_id == 9919">{{(scope.row.last_price * scope.row.count).toFixed(2)}} </span>
164 164
               <span v-if="org_id == 10210 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span>
165
-              <span v-if="org_id == 9671 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span>
166
-              <span v-if ="org_id!=9919 && org_id!=10210 && org_id!=9671">
165
+              <span v-if ="org_id!=9919 && org_id!=10210">
167 166
                  {{scope.row.total_price}}
168 167
                </span>
169 168
             </span>
@@ -431,6 +430,7 @@ export default {
431 430
                console.log("555555555555",order[i])
432 431
                if(order[i].price > 0){
433 432
                 console.log("近来33232323322323")
433
+                  order[i].total_price = 0
434 434
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
435 435
                    order[i].total_price = order[i].count * order[i].price
436 436
                  }
@@ -438,6 +438,7 @@ export default {
438 438
                    if(order[i].is_sys == 0){
439 439
                      order[i].total_price += order[i].count * order[i].price
440 440
                    }else{
441
+                    
441 442
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
442 443
                    }
443 444
                  }

+ 4 - 0
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

@@ -112,6 +112,7 @@
112 112
         <el-button size="small" type="primary" @click="toExport()"
113 113
           >导出</el-button
114 114
         >
115
+        <el-button @click="lili">调试</el-button>
115 116
         <div>
116 117
           <span>&nbsp;&nbsp;</span>
117 118
           <label class="title"><span class="name">审核状态</span> :</label>
@@ -997,6 +998,9 @@ export default {
997 998
       });
998 999
     },
999 1000
 
1001
+    lili(){
1002
+      console.log("exportList",this.exportList)
1003
+    },
1000 1004
     toExport() {
1001 1005
       if (this.order_id == "") {
1002 1006
         this.$message.error("请勾选入库单");

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

@@ -18,6 +18,7 @@
18 18
           size="small"
19 19
           type="primary"
20 20
           @click="submit()"
21
+          v-loading="loading"
21 22
           v-if="is_check == 2"
22 23
           class="filter-item"
23 24
           >保 存</el-button

+ 25 - 19
src/xt_pages/stock/drugs/query.vue View File

@@ -708,9 +708,8 @@ export default {
708 708
           this.tableList[i].min_unit,
709 709
           this.tableList[i].min_number
710 710
         );
711
-        if (this.end_time == 0) {
712 711
           this.tableList[i].outCount = this.getWarehouseOutInfo(
713
-            this.tableList[i].drug_warehouse_out,
712
+            this.tableList[i].drug_warehouse_info,
714 713
             this.tableList[i].max_unit,
715 714
             this.tableList[i].min_unit,
716 715
             this.tableList[i].min_number
@@ -721,16 +720,16 @@ export default {
721 720
             this.tableList[i].min_unit,
722 721
             this.tableList[i].min_number
723 722
           );
724
-        }
725
-        if (this.end_time != 0) {
726
-          this.tableList[i].outCount =
727
-            this.getOutCount(this.tableList[i].id) +
728
-            this.getAutoCount(this.tableList[i].id);
729
-          this.tableList[i].overplusCount =
730
-            this.getWarehoseInfo(this.tableList[i].drug_warehouse_info) -
731
-            this.getOutCount(this.tableList[i].id) -
732
-            this.getAutoCount(this.tableList[i].id);
733
-        }
723
+      
724
+        // if (this.end_time != 0) {
725
+        //   this.tableList[i].outCount =
726
+        //     this.getOutCount(this.tableList[i].id) +
727
+        //     this.getAutoCount(this.tableList[i].id);
728
+        //   this.tableList[i].overplusCount =
729
+        //     this.getWarehoseInfo(this.tableList[i].drug_warehouse_info) -
730
+        //     this.getOutCount(this.tableList[i].id) -
731
+        //     this.getAutoCount(this.tableList[i].id);
732
+        // }
734 733
       }
735 734
       import("@/vendor/Export2Excel").then((excel) => {
736 735
         const tHeader = [
@@ -1087,10 +1086,9 @@ export default {
1087 1086
       var max_str = "";
1088 1087
       var min_str = "";
1089 1088
       var total = 0;
1090
-      var newarr = arr;
1091
-      if (newarr.length > 0) {
1092
-        for (let i = 0; i < newarr.length; i++) {
1093
-          total += newarr[i].stock_max_number + newarr[i].stock_min_number;
1089
+      if (arr!=null&&arr.length > 0) {
1090
+        for (let i = 0; i < arr.length; i++) {
1091
+          total += arr[i].stock_max_number + arr[i].stock_min_number;
1094 1092
         }
1095 1093
       }
1096 1094
       if (total < min_number) {
@@ -1113,13 +1111,21 @@ export default {
1113 1111
     getWarehouseOutInfo(arr, max_unit, min_unit, min_number) {
1114 1112
       var min_str = "";
1115 1113
       var max_str = "";
1116
-      var total = 0;
1117
-      if (arr.length > 0) {
1114
+      var total_one = 0;
1115
+      var total_two = 0
1116
+      var total =0 
1117
+      if (arr!=null&&arr.length > 0) {
1118
+        for (let i = 0; i < arr.length; i++) {
1119
+          total_one += parseInt(arr[i].warehousing_count);
1120
+        }
1121
+      }
1122
+      if (arr!=null&&arr.length > 0) {
1118 1123
         for (let i = 0; i < arr.length; i++) {
1119
-          total += parseInt(arr[i].count);
1124
+          total_two += parseInt(arr[i].stock_max_number)+ parseInt(arr[i].stock_min_number);
1120 1125
         }
1121 1126
       }
1122 1127
 
1128
+      total = total_one - total_two
1123 1129
       if (total < min_number) {
1124 1130
         min_str = total + min_unit;
1125 1131
       }

+ 0 - 0
src/xt_pages/stock/stockInOrderEdit.vue View File


Some files were not shown because too many files changed in this diff