Pārlūkot izejas kodu

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

XMLWAN 4 gadus atpakaļ
vecāks
revīzija
de6a78a10d
100 mainītis faili ar 29918 papildinājumiem un 1264 dzēšanām
  1. 1 0
      .gitignore
  2. 3 3
      config/dev.env.js
  3. 2 2
      config/index.js
  4. 58 58
      package-lock.json
  5. 6 0
      src/App.vue
  6. 11 0
      src/api/advice.js
  7. 0 2
      src/api/dialysis.js
  8. 6 2
      src/api/dialysis_record.js
  9. 7 7
      src/api/drug/drug.js
  10. 32 0
      src/api/drug/drug_stock.js
  11. 59 0
      src/api/his/his.js
  12. 92 0
      src/api/patient.js
  13. 418 410
      src/api/project/project.js
  14. 26 5
      src/api/schedule.js
  15. 10 0
      src/api/stock.js
  16. 2 1
      src/lang/zh.js
  17. 3 1
      src/router/index_路由未分离前.js
  18. 128 44
      src/router/modules/dialysis.js
  19. 6 0
      src/router/modules/drugs.js
  20. 6 0
      src/router/modules/outpatientCharges.js
  21. 23 0
      src/router/modules/patient.js
  22. 2 2
      src/router/modules/qcd.js
  23. 42 0
      src/router/modules/selfPreparedMedicine.js
  24. 80 0
      src/router/modules/stock.js
  25. 2 0
      src/store/getters.js
  26. 27 2
      src/store/modules/globalConfig.js
  27. 18 1
      src/store/modules/xt_user.js
  28. 5 6
      src/utils/tools.js
  29. 7 1
      src/views/layout/components/Navbar.vue
  30. Binārs
      src/xt_pages/.DS_Store
  31. 33 4
      src/xt_pages/data/components/addDrugs.vue
  32. 6 3
      src/xt_pages/data/components/consumables.vue
  33. 2 3
      src/xt_pages/data/components/drugs.vue
  34. 2 1
      src/xt_pages/data/components/project.vue
  35. 37 13
      src/xt_pages/dialysis/PatientBox.vue
  36. 23 0
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  37. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue
  38. 13 2
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  39. 325 70
      src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue
  40. 1530 0
      src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue
  41. 3984 0
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyThree.vue
  42. 2965 0
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyThree_one.vue
  43. 1727 0
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyThree_two.vue
  44. 1991 0
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue
  45. 1949 0
      src/xt_pages/dialysis/batch_print/batch_print_order_twentyEight.vue
  46. 1950 0
      src/xt_pages/dialysis/batch_print/batch_print_order_twentyFive.vue
  47. 119 17
      src/xt_pages/dialysis/bloodPresssWatch.vue
  48. 2 2
      src/xt_pages/dialysis/components/allSummary.vue
  49. 5 1
      src/xt_pages/dialysis/components/allSummaryDialog.vue
  50. 44 11
      src/xt_pages/dialysis/components/consumablesDialog.vue
  51. 568 27
      src/xt_pages/dialysis/components/dialysisDrugs.vue
  52. 61 46
      src/xt_pages/dialysis/components/dialysisDrugsDialog.vue
  53. 2 2
      src/xt_pages/dialysis/consumableDrugs_print.vue
  54. 30 11
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  55. 14 2
      src/xt_pages/dialysis/details/NavIgation.vue
  56. 2 2
      src/xt_pages/dialysis/details/assessmentAfter.vue
  57. 29 1
      src/xt_pages/dialysis/details/assessmentBefore.vue
  58. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  59. 102 38
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  60. 50 11
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  61. 127 72
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  62. 598 27
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  63. 3 3
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  64. 30 10
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  65. 34 1
      src/xt_pages/dialysis/details/dialysisComputer.vue
  66. 6 6
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  67. 15 19
      src/xt_pages/dialysis/details/doubleCheck.vue
  68. 86 21
      src/xt_pages/dialysis/details/index.vue
  69. 56 8
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  70. 119 10
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  71. 6 1
      src/xt_pages/dialysis/doctorAdvicePrint.vue
  72. 78 5
      src/xt_pages/dialysis/schedualPatient.vue
  73. 15 1
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  74. 5 2
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  75. 5 4
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  76. 23 23
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  77. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue
  78. 1405 0
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyFour.vue
  79. 1727 0
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue
  80. 2172 0
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyThree.vue
  81. 1871 0
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue
  82. 19 22
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  83. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue
  84. 303 71
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  85. 58 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  86. 3 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  87. 10 9
      src/xt_pages/index/verify_token.vue
  88. 2 1
      src/xt_pages/management/components/PlanForm.vue
  89. 8 1
      src/xt_pages/management/home.vue
  90. 82 23
      src/xt_pages/medicalScheduling/index.vue
  91. 481 0
      src/xt_pages/outpatientCharges/allListPrint.vue
  92. 174 0
      src/xt_pages/outpatientCharges/allListTemplate/printOne.vue
  93. 208 0
      src/xt_pages/outpatientCharges/components/chargeMonthPrescriptionTable.vue
  94. 425 0
      src/xt_pages/outpatientCharges/components/dayPrescriptionTable.vue
  95. 297 0
      src/xt_pages/outpatientCharges/components/monthPrescriptionTable.vue
  96. 7 5
      src/xt_pages/outpatientCharges/components/prescriptionTable.vue
  97. 283 98
      src/xt_pages/outpatientCharges/components/registerDialog.vue
  98. 157 0
      src/xt_pages/outpatientCharges/costComparison.vue
  99. 369 0
      src/xt_pages/outpatientCharges/listPrint.vue
  100. 0 0
      src/xt_pages/outpatientCharges/listTemplate/printOne.vue

+ 1 - 0
.gitignore Parādīt failu

@@ -8,3 +8,4 @@ dist/
8 8
 .idea/modules.xml
9 9
 .idea/vcs.xml
10 10
 .idea/workspace.xml
11
+.DS_Store

+ 3 - 3
config/dev.env.js Parādīt failu

@@ -6,9 +6,9 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  // BASE_API: '"http://localhost:9531"',
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"',
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 Parādīt failu

@@ -27,10 +27,10 @@ module.exports = {
27 27
     // can be overwritten by process.env.HOST
28 28
     // if you want dev by ip, please set host: '0.0.0.0'
29 29
 
30
-    //  host: 'xt.test.sgjyun.com',
30
+     // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32
-    // host: 'xt.test.sgjyun.com',
33 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,

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

@@ -4737,7 +4737,7 @@
4737 4737
       "dependencies": {
4738 4738
         "abbrev": {
4739 4739
           "version": "1.1.1",
4740
-          "resolved": false,
4740
+          "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
4741 4741
           "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
4742 4742
           "dev": true,
4743 4743
           "optional": true
@@ -4749,14 +4749,14 @@
4749 4749
         },
4750 4750
         "aproba": {
4751 4751
           "version": "1.2.0",
4752
-          "resolved": false,
4752
+          "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
4753 4753
           "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
4754 4754
           "dev": true,
4755 4755
           "optional": true
4756 4756
         },
4757 4757
         "are-we-there-yet": {
4758 4758
           "version": "1.1.5",
4759
-          "resolved": false,
4759
+          "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
4760 4760
           "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
4761 4761
           "dev": true,
4762 4762
           "optional": true,
@@ -4772,7 +4772,7 @@
4772 4772
         },
4773 4773
         "brace-expansion": {
4774 4774
           "version": "1.1.11",
4775
-          "resolved": false,
4775
+          "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4776 4776
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4777 4777
           "dev": true,
4778 4778
           "requires": {
@@ -4782,7 +4782,7 @@
4782 4782
         },
4783 4783
         "chownr": {
4784 4784
           "version": "1.1.1",
4785
-          "resolved": false,
4785
+          "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz",
4786 4786
           "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==",
4787 4787
           "dev": true,
4788 4788
           "optional": true
@@ -4794,26 +4794,26 @@
4794 4794
         },
4795 4795
         "concat-map": {
4796 4796
           "version": "0.0.1",
4797
-          "resolved": false,
4797
+          "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4798 4798
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4799 4799
           "dev": true
4800 4800
         },
4801 4801
         "console-control-strings": {
4802 4802
           "version": "1.1.0",
4803
-          "resolved": false,
4803
+          "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4804 4804
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4805 4805
           "dev": true
4806 4806
         },
4807 4807
         "core-util-is": {
4808 4808
           "version": "1.0.2",
4809
-          "resolved": false,
4809
+          "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
4810 4810
           "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
4811 4811
           "dev": true,
4812 4812
           "optional": true
4813 4813
         },
4814 4814
         "debug": {
4815 4815
           "version": "2.6.9",
4816
-          "resolved": false,
4816
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
4817 4817
           "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
4818 4818
           "dev": true,
4819 4819
           "optional": true,
@@ -4823,28 +4823,28 @@
4823 4823
         },
4824 4824
         "deep-extend": {
4825 4825
           "version": "0.6.0",
4826
-          "resolved": false,
4826
+          "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
4827 4827
           "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
4828 4828
           "dev": true,
4829 4829
           "optional": true
4830 4830
         },
4831 4831
         "delegates": {
4832 4832
           "version": "1.0.0",
4833
-          "resolved": false,
4833
+          "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
4834 4834
           "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
4835 4835
           "dev": true,
4836 4836
           "optional": true
4837 4837
         },
4838 4838
         "detect-libc": {
4839 4839
           "version": "1.0.3",
4840
-          "resolved": false,
4840
+          "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
4841 4841
           "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",
4842 4842
           "dev": true,
4843 4843
           "optional": true
4844 4844
         },
4845 4845
         "fs-minipass": {
4846 4846
           "version": "1.2.5",
4847
-          "resolved": false,
4847
+          "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz",
4848 4848
           "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==",
4849 4849
           "dev": true,
4850 4850
           "optional": true,
@@ -4854,14 +4854,14 @@
4854 4854
         },
4855 4855
         "fs.realpath": {
4856 4856
           "version": "1.0.0",
4857
-          "resolved": false,
4857
+          "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
4858 4858
           "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
4859 4859
           "dev": true,
4860 4860
           "optional": true
4861 4861
         },
4862 4862
         "gauge": {
4863 4863
           "version": "2.7.4",
4864
-          "resolved": false,
4864
+          "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
4865 4865
           "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
4866 4866
           "dev": true,
4867 4867
           "optional": true,
@@ -4878,7 +4878,7 @@
4878 4878
         },
4879 4879
         "glob": {
4880 4880
           "version": "7.1.3",
4881
-          "resolved": false,
4881
+          "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
4882 4882
           "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
4883 4883
           "dev": true,
4884 4884
           "optional": true,
@@ -4893,14 +4893,14 @@
4893 4893
         },
4894 4894
         "has-unicode": {
4895 4895
           "version": "2.0.1",
4896
-          "resolved": false,
4896
+          "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
4897 4897
           "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
4898 4898
           "dev": true,
4899 4899
           "optional": true
4900 4900
         },
4901 4901
         "iconv-lite": {
4902 4902
           "version": "0.4.24",
4903
-          "resolved": false,
4903
+          "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
4904 4904
           "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
4905 4905
           "dev": true,
4906 4906
           "optional": true,
@@ -4910,7 +4910,7 @@
4910 4910
         },
4911 4911
         "ignore-walk": {
4912 4912
           "version": "3.0.1",
4913
-          "resolved": false,
4913
+          "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz",
4914 4914
           "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==",
4915 4915
           "dev": true,
4916 4916
           "optional": true,
@@ -4920,7 +4920,7 @@
4920 4920
         },
4921 4921
         "inflight": {
4922 4922
           "version": "1.0.6",
4923
-          "resolved": false,
4923
+          "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
4924 4924
           "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
4925 4925
           "dev": true,
4926 4926
           "optional": true,
@@ -4936,14 +4936,14 @@
4936 4936
         },
4937 4937
         "ini": {
4938 4938
           "version": "1.3.5",
4939
-          "resolved": false,
4939
+          "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
4940 4940
           "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
4941 4941
           "dev": true,
4942 4942
           "optional": true
4943 4943
         },
4944 4944
         "is-fullwidth-code-point": {
4945 4945
           "version": "1.0.0",
4946
-          "resolved": false,
4946
+          "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4947 4947
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4948 4948
           "dev": true,
4949 4949
           "requires": {
@@ -4952,14 +4952,14 @@
4952 4952
         },
4953 4953
         "isarray": {
4954 4954
           "version": "1.0.0",
4955
-          "resolved": false,
4955
+          "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
4956 4956
           "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
4957 4957
           "dev": true,
4958 4958
           "optional": true
4959 4959
         },
4960 4960
         "minimatch": {
4961 4961
           "version": "3.0.4",
4962
-          "resolved": false,
4962
+          "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4963 4963
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4964 4964
           "dev": true,
4965 4965
           "requires": {
@@ -4973,7 +4973,7 @@
4973 4973
         },
4974 4974
         "minipass": {
4975 4975
           "version": "2.3.5",
4976
-          "resolved": false,
4976
+          "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
4977 4977
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4978 4978
           "dev": true,
4979 4979
           "requires": {
@@ -4983,7 +4983,7 @@
4983 4983
         },
4984 4984
         "minizlib": {
4985 4985
           "version": "1.2.1",
4986
-          "resolved": false,
4986
+          "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.2.1.tgz",
4987 4987
           "integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==",
4988 4988
           "dev": true,
4989 4989
           "optional": true,
@@ -4993,7 +4993,7 @@
4993 4993
         },
4994 4994
         "mkdirp": {
4995 4995
           "version": "0.5.1",
4996
-          "resolved": false,
4996
+          "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
4997 4997
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
4998 4998
           "dev": true,
4999 4999
           "requires": {
@@ -5002,14 +5002,14 @@
5002 5002
         },
5003 5003
         "ms": {
5004 5004
           "version": "2.0.0",
5005
-          "resolved": false,
5005
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
5006 5006
           "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
5007 5007
           "dev": true,
5008 5008
           "optional": true
5009 5009
         },
5010 5010
         "needle": {
5011 5011
           "version": "2.2.4",
5012
-          "resolved": false,
5012
+          "resolved": "https://registry.npmjs.org/needle/-/needle-2.2.4.tgz",
5013 5013
           "integrity": "sha512-HyoqEb4wr/rsoaIDfTH2aVL9nWtQqba2/HvMv+++m8u0dz808MaagKILxtfeSN7QU7nvbQ79zk3vYOJp9zsNEA==",
5014 5014
           "dev": true,
5015 5015
           "optional": true,
@@ -5021,7 +5021,7 @@
5021 5021
         },
5022 5022
         "node-pre-gyp": {
5023 5023
           "version": "0.10.3",
5024
-          "resolved": false,
5024
+          "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz",
5025 5025
           "integrity": "sha512-d1xFs+C/IPS8Id0qPTZ4bUT8wWryfR/OzzAFxweG+uLN85oPzyo2Iw6bVlLQ/JOdgNonXLCoRyqDzDWq4iw72A==",
5026 5026
           "dev": true,
5027 5027
           "optional": true,
@@ -5040,7 +5040,7 @@
5040 5040
         },
5041 5041
         "nopt": {
5042 5042
           "version": "4.0.1",
5043
-          "resolved": false,
5043
+          "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz",
5044 5044
           "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=",
5045 5045
           "dev": true,
5046 5046
           "optional": true,
@@ -5051,14 +5051,14 @@
5051 5051
         },
5052 5052
         "npm-bundled": {
5053 5053
           "version": "1.0.5",
5054
-          "resolved": false,
5054
+          "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.5.tgz",
5055 5055
           "integrity": "sha512-m/e6jgWu8/v5niCUKQi9qQl8QdeEduFA96xHDDzFGqly0OOjI7c+60KM/2sppfnUU9JJagf+zs+yGhqSOFj71g==",
5056 5056
           "dev": true,
5057 5057
           "optional": true
5058 5058
         },
5059 5059
         "npm-packlist": {
5060 5060
           "version": "1.2.0",
5061
-          "resolved": false,
5061
+          "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.2.0.tgz",
5062 5062
           "integrity": "sha512-7Mni4Z8Xkx0/oegoqlcao/JpPCPEMtUvsmB0q7mgvlMinykJLSRTYuFqoQLYgGY8biuxIeiHO+QNJKbCfljewQ==",
5063 5063
           "dev": true,
5064 5064
           "optional": true,
@@ -5069,7 +5069,7 @@
5069 5069
         },
5070 5070
         "npmlog": {
5071 5071
           "version": "4.1.2",
5072
-          "resolved": false,
5072
+          "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
5073 5073
           "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
5074 5074
           "dev": true,
5075 5075
           "optional": true,
@@ -5087,14 +5087,14 @@
5087 5087
         },
5088 5088
         "object-assign": {
5089 5089
           "version": "4.1.1",
5090
-          "resolved": false,
5090
+          "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
5091 5091
           "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
5092 5092
           "dev": true,
5093 5093
           "optional": true
5094 5094
         },
5095 5095
         "once": {
5096 5096
           "version": "1.4.0",
5097
-          "resolved": false,
5097
+          "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5098 5098
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5099 5099
           "dev": true,
5100 5100
           "requires": {
@@ -5103,21 +5103,21 @@
5103 5103
         },
5104 5104
         "os-homedir": {
5105 5105
           "version": "1.0.2",
5106
-          "resolved": false,
5106
+          "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
5107 5107
           "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
5108 5108
           "dev": true,
5109 5109
           "optional": true
5110 5110
         },
5111 5111
         "os-tmpdir": {
5112 5112
           "version": "1.0.2",
5113
-          "resolved": false,
5113
+          "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
5114 5114
           "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
5115 5115
           "dev": true,
5116 5116
           "optional": true
5117 5117
         },
5118 5118
         "osenv": {
5119 5119
           "version": "0.1.5",
5120
-          "resolved": false,
5120
+          "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
5121 5121
           "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
5122 5122
           "dev": true,
5123 5123
           "optional": true,
@@ -5128,21 +5128,21 @@
5128 5128
         },
5129 5129
         "path-is-absolute": {
5130 5130
           "version": "1.0.1",
5131
-          "resolved": false,
5131
+          "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
5132 5132
           "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
5133 5133
           "dev": true,
5134 5134
           "optional": true
5135 5135
         },
5136 5136
         "process-nextick-args": {
5137 5137
           "version": "2.0.0",
5138
-          "resolved": false,
5138
+          "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
5139 5139
           "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==",
5140 5140
           "dev": true,
5141 5141
           "optional": true
5142 5142
         },
5143 5143
         "rc": {
5144 5144
           "version": "1.2.8",
5145
-          "resolved": false,
5145
+          "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
5146 5146
           "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
5147 5147
           "dev": true,
5148 5148
           "optional": true,
@@ -5155,7 +5155,7 @@
5155 5155
           "dependencies": {
5156 5156
             "minimist": {
5157 5157
               "version": "1.2.0",
5158
-              "resolved": false,
5158
+              "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
5159 5159
               "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
5160 5160
               "dev": true,
5161 5161
               "optional": true
@@ -5164,7 +5164,7 @@
5164 5164
         },
5165 5165
         "readable-stream": {
5166 5166
           "version": "2.3.6",
5167
-          "resolved": false,
5167
+          "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
5168 5168
           "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
5169 5169
           "dev": true,
5170 5170
           "optional": true,
@@ -5180,7 +5180,7 @@
5180 5180
         },
5181 5181
         "rimraf": {
5182 5182
           "version": "2.6.3",
5183
-          "resolved": false,
5183
+          "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
5184 5184
           "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
5185 5185
           "dev": true,
5186 5186
           "optional": true,
@@ -5195,42 +5195,42 @@
5195 5195
         },
5196 5196
         "safer-buffer": {
5197 5197
           "version": "2.1.2",
5198
-          "resolved": false,
5198
+          "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
5199 5199
           "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
5200 5200
           "dev": true,
5201 5201
           "optional": true
5202 5202
         },
5203 5203
         "sax": {
5204 5204
           "version": "1.2.4",
5205
-          "resolved": false,
5205
+          "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
5206 5206
           "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
5207 5207
           "dev": true,
5208 5208
           "optional": true
5209 5209
         },
5210 5210
         "semver": {
5211 5211
           "version": "5.6.0",
5212
-          "resolved": false,
5212
+          "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz",
5213 5213
           "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==",
5214 5214
           "dev": true,
5215 5215
           "optional": true
5216 5216
         },
5217 5217
         "set-blocking": {
5218 5218
           "version": "2.0.0",
5219
-          "resolved": false,
5219
+          "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
5220 5220
           "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
5221 5221
           "dev": true,
5222 5222
           "optional": true
5223 5223
         },
5224 5224
         "signal-exit": {
5225 5225
           "version": "3.0.2",
5226
-          "resolved": false,
5226
+          "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
5227 5227
           "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
5228 5228
           "dev": true,
5229 5229
           "optional": true
5230 5230
         },
5231 5231
         "string-width": {
5232 5232
           "version": "1.0.2",
5233
-          "resolved": false,
5233
+          "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5234 5234
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5235 5235
           "dev": true,
5236 5236
           "requires": {
@@ -5241,7 +5241,7 @@
5241 5241
         },
5242 5242
         "string_decoder": {
5243 5243
           "version": "1.1.1",
5244
-          "resolved": false,
5244
+          "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
5245 5245
           "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
5246 5246
           "dev": true,
5247 5247
           "optional": true,
@@ -5251,7 +5251,7 @@
5251 5251
         },
5252 5252
         "strip-ansi": {
5253 5253
           "version": "3.0.1",
5254
-          "resolved": false,
5254
+          "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5255 5255
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5256 5256
           "dev": true,
5257 5257
           "requires": {
@@ -5260,14 +5260,14 @@
5260 5260
         },
5261 5261
         "strip-json-comments": {
5262 5262
           "version": "2.0.1",
5263
-          "resolved": false,
5263
+          "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
5264 5264
           "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
5265 5265
           "dev": true,
5266 5266
           "optional": true
5267 5267
         },
5268 5268
         "tar": {
5269 5269
           "version": "4.4.8",
5270
-          "resolved": false,
5270
+          "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.8.tgz",
5271 5271
           "integrity": "sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ==",
5272 5272
           "dev": true,
5273 5273
           "optional": true,
@@ -5283,14 +5283,14 @@
5283 5283
         },
5284 5284
         "util-deprecate": {
5285 5285
           "version": "1.0.2",
5286
-          "resolved": false,
5286
+          "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
5287 5287
           "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
5288 5288
           "dev": true,
5289 5289
           "optional": true
5290 5290
         },
5291 5291
         "wide-align": {
5292 5292
           "version": "1.1.3",
5293
-          "resolved": false,
5293
+          "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
5294 5294
           "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
5295 5295
           "dev": true,
5296 5296
           "optional": true,
@@ -5305,7 +5305,7 @@
5305 5305
         },
5306 5306
         "yallist": {
5307 5307
           "version": "3.0.3",
5308
-          "resolved": false,
5308
+          "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5309 5309
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5310 5310
           "dev": true
5311 5311
         }

+ 6 - 0
src/App.vue Parādīt failu

@@ -9,6 +9,11 @@ import axios from 'axios'
9 9
 import { getOrgs, changeOrg } from "@/api/config";
10 10
 export default {
11 11
   name: "App",
12
+  provide() {
13
+    return {
14
+      reload: this.reload
15
+    };
16
+  },
12 17
   data () {
13 18
     return {
14 19
       isRouterAlive: true,
@@ -19,6 +24,7 @@ export default {
19 24
   },
20 25
 
21 26
   created(){
27
+
22 28
     // getOrgs().then(response => {
23 29
     //   if (response.data.state === 1) {
24 30
     //     var creator = response.data.data.creator;

+ 11 - 0
src/api/advice.js Parādīt failu

@@ -363,6 +363,7 @@ export function EditNewDoctorAdvice(patient, id, advice, mode) {
363 363
 }
364 364
 
365 365
 export function CreateNewDoctorAdvice(id, advice, mode) {
366
+
366 367
   return request({
367 368
     url: "/api/patients/advice/create?id=" + id + "&mode=" + mode,
368 369
     method: "post",
@@ -498,6 +499,7 @@ export function GetLastOrNextDoctorAdvice(params) {
498 499
 }
499 500
 
500 501
 export function getSchedualDoctors (params) {
502
+  
501 503
   return request({
502 504
     url: '/api/schedule/advices',
503 505
     method: 'get',
@@ -505,6 +507,15 @@ export function getSchedualDoctors (params) {
505 507
   })
506 508
 }
507 509
 
510
+export function getDoctorAdviceCount(params){
511
+  
512
+  return request({
513
+    url:"/api/schedule/getdoctoradvicecount",
514
+    method:"get",
515
+    params:params
516
+  })
517
+}
518
+
508 519
 
509 520
 
510 521
 

+ 0 - 2
src/api/dialysis.js Parādīt failu

@@ -290,5 +290,3 @@ export function GetDialysisGoodStatistics(params) {
290 290
 
291 291
   })
292 292
 }
293
-
294
-

+ 6 - 2
src/api/dialysis_record.js Parādīt failu

@@ -47,7 +47,7 @@ export function editMonitor(patient_id, schedule_date, data, mode) {
47 47
   })
48 48
 }
49 49
 
50
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode,washpipe_nurse) {
50
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode,washpipe_nurse,change_nurse,difficult_puncture_nurse,new_fistula_nurse) {
51 51
   var params = {
52 52
     patient_id: patient_id,
53 53
     date: schedule_date,
@@ -58,8 +58,12 @@ export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_
58 58
     lood_drawing: lood_drawing,
59 59
     schedual_type: schedual_type,
60 60
     mode: mode,
61
-    washpipe_nurse:washpipe_nurse
61
+    washpipe_nurse:washpipe_nurse,
62
+    change_nurse:change_nurse,
63
+    difficult_puncture_nurse:difficult_puncture_nurse,
64
+    new_fistula_nurse:new_fistula_nurse
62 65
   }
66
+  console.log("params",params)
63 67
   return request({
64 68
     url: '/api/dialysis/start_record',
65 69
     method: 'post',

+ 7 - 7
src/api/drug/drug.js Parādīt failu

@@ -276,11 +276,11 @@ export function getPatientDetail(id,params){
276 276
    })
277 277
 }
278 278
 
279
-// export function toSeachPatient(params){
279
+export function getSelfStockQuery(params){
280 280
    
281
-//    return request({
282
-//       url:"/api/drug/toseachpatient",
283
-//       methods:"Get",
284
-//       params:params
285
-//    })
286
-// }
281
+   return request({
282
+      url:"/api/drug/getselfstockquery",
283
+      methods:"get",
284
+      params:params
285
+   })
286
+}

+ 32 - 0
src/api/drug/drug_stock.js Parādīt failu

@@ -385,9 +385,41 @@ export function getDrugStockAutomaticReduceConfig() {
385 385
 }
386 386
 
387 387
 
388
+export function getDrugIndetail(params){
389
+  return request({
390
+    url:"/api/drugstock/getdrugindetail",
391
+    method:"Get",
392
+    params:params
393
+  })
394
+}
395
+
396
+
397
+export function getDrugCancelOrder(params){
398
+  
399
+   return request({
400
+     url:"/api/drugstock/getdrugcancelorder",
401
+     method:"get",
402
+     params:params
403
+   })
404
+}
388 405
 
406
+export function getDrugOutDetail(params){
407
+  
408
+  return request({
409
+    url:"/api/drugstock/getdrugoutdetail",
410
+    method:"get",
411
+    params:params
412
+  })
413
+}
389 414
 
415
+export function getDrugCancelDetail(params){
390 416
 
417
+  return request({
418
+    url:"/api/drugstock/getdrugcanceldetail",
419
+    method:"Get",
420
+    params:params
421
+  })
422
+}
391 423
 
392 424
 
393 425
 

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

@@ -279,10 +279,69 @@ export function getCallHisPrescription (params) {
279 279
 
280 280
 
281 281
 
282
+export function getDayOrMonthHisPrescription (params) {
283
+  return request({
284
+    url: '/api/dayprescription/get',
285
+    method: 'get',
286
+    params:params,
287
+  })
288
+}
289
+
290
+
291
+
292
+
293
+
294
+
295
+export function editHisPrescription(data, params) {
296
+  return request({
297
+    url: "/api/hisprescription/edit",
298
+    method: "post",
299
+    data:data,
300
+    params:params,
301
+  });
302
+}
303
+
282 304
 
283 305
 
306
+export function getChargeHisPatientList (params) {
307
+  return request({
308
+    url: '/api/charge/list',
309
+    method: 'get',
310
+    params:params,
311
+  })
312
+}
313
+
284 314
 
285 315
 
316
+export function getChargeHisPatientInfo (params) {
317
+  return request({
318
+    url: '/api/charge/info',
319
+    method: 'get',
320
+    params:params,
321
+  })
322
+}
323
+
324
+
325
+export function getHisOrderDetail (params) {
326
+  return request({
327
+    url: '/api/orderdetail/get',
328
+    method: 'get',
329
+    params:params,
330
+  })
331
+}
332
+
333
+
334
+
335
+
336
+
337
+
338
+export function getHisOrderDetailCollect (params) {
339
+  return request({
340
+    url: '/api/orderdetaicollect/get',
341
+    method: 'get',
342
+    params:params,
343
+  })
344
+}
286 345
 
287 346
 
288 347
 

+ 92 - 0
src/api/patient.js Parādīt failu

@@ -70,6 +70,7 @@ export function createPatientDialysisSolution(id, solution, mode) {
70 70
 }
71 71
 
72 72
 export function editPatientDialysisSolution(patient, id, solution, mode) {
73
+  
73 74
   return request({
74 75
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id + '&mode=' + mode,
75 76
     method: 'put',
@@ -380,3 +381,94 @@ export function deleteDryWeight(id, data) {
380 381
     data: data
381 382
   })
382 383
 }
384
+
385
+
386
+export function saveVasularAccess(params){
387
+   
388
+  return request({
389
+    url:"/api/patient/savevasularaccess",
390
+    method:"Get",
391
+    params:params
392
+  })
393
+} 
394
+
395
+export function getAllVascularAccessList(params){
396
+  
397
+  return request({
398
+    url:"/api/patient/getallvascualraccesslist",
399
+    method:"Get",
400
+    params:params
401
+  })
402
+}
403
+
404
+export function getVascularAccessByDetail(id,params){
405
+  
406
+  return request({
407
+    url:"/api/patient/getvascularaccessbydetial?id="+id,
408
+    method:"get",
409
+    params:params,
410
+  })
411
+}
412
+
413
+export function updatedVasularAccess(params){
414
+  
415
+  return request({
416
+    url:"/api/patient/updatevasularaccess",
417
+    method:"get",
418
+    params:params
419
+  })
420
+}
421
+
422
+export function DeleteVascularAccess(id,params){
423
+  
424
+  return request({
425
+    url:"/api/patient/deletevascularaccess?id="+id,
426
+    method:"get",
427
+    params:params
428
+  })
429
+}
430
+
431
+export function savePasswayAssessment(params){
432
+  
433
+  return request({
434
+    url:"/api/patient/savepasswayassessment",
435
+    method:"get",
436
+    params:params
437
+  })
438
+}
439
+
440
+export function getAllPassWayAssessmentList(params){
441
+  
442
+  return request({
443
+    url:"/api/patient/getallpasswayassessment",
444
+    method:"get",
445
+    params:params
446
+  })
447
+}
448
+
449
+export function getPassWayAssessmentById(id,params){
450
+  
451
+  return request({
452
+    url:"/api/patient/getpasswayassmentbyid?id="+id,
453
+    method:"Get",
454
+    params:params,
455
+  })
456
+}
457
+
458
+export function updatePasswayAssessment(params){
459
+  
460
+  return request({
461
+    url:"/api/patient/updatepasswayassesment",
462
+    method:"get",
463
+    params:params
464
+  })
465
+}
466
+
467
+export function DeletePassWayAssessMent(id,params){
468
+  
469
+  return request({
470
+    url:"/api/patient/deletepasswayassessment?id="+id,
471
+    method:"get",
472
+    params:params
473
+  })
474
+}

+ 418 - 410
src/api/project/project.js Parādīt failu

@@ -3,516 +3,524 @@ import url from "postcss-url";
3 3
 
4 4
 export function saveProject(params){
5 5
 
6
-    return request({
7
-        url:"/api/his/saveproject",
8
-        methods:"get",
9
-        params:params,
10
-    })
6
+  return request({
7
+    url:"/api/his/saveproject",
8
+    methods:"get",
9
+    params:params,
10
+  })
11 11
 }
12 12
 
13 13
 
14 14
 export function getProjectList(params){
15
-   
16
-    return request({
17
-       url:"/api/his/getprojectlist",
18
-       methods:"get",
19
-       params:params
20
-    })
15
+
16
+  return request({
17
+    url:"/api/his/getprojectlist",
18
+    methods:"get",
19
+    params:params
20
+  })
21 21
 }
22 22
 
23 23
 export function getProjectDetail(id,params){
24
-  
25
-    return request({
26
-       url:"/api/his/getprojectdetail?id="+id,
27
-       methods:"get",
28
-       params:params
29
-    })
24
+
25
+  return request({
26
+    url:"/api/his/getprojectdetail?id="+id,
27
+    methods:"get",
28
+    params:params
29
+  })
30 30
 }
31 31
 
32 32
 export function updatedProject(params){
33
-   
34
-   return request({
35
-      url:"/api/his/updatedproject",
36
-      methods:"get",
37
-      params:params
38
-   })
33
+
34
+  return request({
35
+    url:"/api/his/updatedproject",
36
+    methods:"get",
37
+    params:params
38
+  })
39 39
 }
40 40
 
41 41
 export function deleteHisProject(id,params){
42
-   
43
-    return request({
44
-      url:"/api/his/deletehisproject?id="+id,
45
-      methods:"get",
46
-      params:params
47
-    })
42
+
43
+  return request({
44
+    url:"/api/his/deletehisproject?id="+id,
45
+    methods:"get",
46
+    params:params
47
+  })
48 48
 }
49 49
 
50 50
 export function saveProjectTeam(params){
51
-  
52
-   return request({
53
-     url:"/api/his/saveprojectteam",
54
-     methods:"Get",
55
-     params:params
56
-   })
51
+
52
+  return request({
53
+    url:"/api/his/saveprojectteam",
54
+    methods:"Get",
55
+    params:params
56
+  })
57 57
 }
58 58
 
59 59
 export function getProjectTeamList(params){
60
-  
61
-    return request({
62
-       url:"/api/his/getprojectteamlist",
63
-       methods:"get",
64
-       params:params
65
-    })
60
+
61
+  return request({
62
+    url:"/api/his/getprojectteamlist",
63
+    methods:"get",
64
+    params:params
65
+  })
66 66
 }
67 67
 
68 68
 export function getProjectTeamDetail(id,params){
69
-   
70
-    return request({
71
-       url:"/api/his/getprojectteamdetail?id="+id,
72
-       methods:"get",
73
-       params:params
74
-    })
69
+
70
+  return request({
71
+    url:"/api/his/getprojectteamdetail?id="+id,
72
+    methods:"get",
73
+    params:params
74
+  })
75 75
 }
76 76
 
77 77
 export function updatedProjectTeam(params){
78
-  
79
-    return request({
80
-       url:"/api/his/updateprojectteam",
81
-       methods:"get",
82
-       params:params
83
-    })
78
+
79
+  return request({
80
+    url:"/api/his/updateprojectteam",
81
+    methods:"get",
82
+    params:params
83
+  })
84 84
 }
85 85
 
86 86
 export function DeleteProjectTeam(id,params){
87
-   
87
+
88 88
   return request({
89
-      url:"/api/his/deleteprojectteam?id="+id,
90
-      methods:"get",
91
-      params:params
89
+    url:"/api/his/deleteprojectteam?id="+id,
90
+    methods:"get",
91
+    params:params
92 92
   })
93 93
 }
94 94
 
95 95
 export function SaveDepartment(params){
96
-  
97
-    return request({
98
-       url:"/api/his/savedepartment",
99
-       methods:"get",
100
-       params:params
101
-    })
96
+
97
+  return request({
98
+    url:"/api/his/savedepartment",
99
+    methods:"get",
100
+    params:params
101
+  })
102 102
 }
103 103
 
104 104
 export function getDePartmentList(params){
105
-  
106
-    return request({
107
-       url:"/api/his/getdepartmentlist",
108
-       methods:"Get",
109
-       params:params
110
-    })
105
+
106
+  return request({
107
+    url:"/api/his/getdepartmentlist",
108
+    methods:"Get",
109
+    params:params
110
+  })
111 111
 }
112 112
 
113 113
 export function getDepartMentDetail(id,params){
114
-  
115
-    return request({
116
-        url:"/api/his/getdepartmentdetail?id="+id,
117
-        methods:"get",
118
-        params:params
119
-    })
114
+
115
+  return request({
116
+    url:"/api/his/getdepartmentdetail?id="+id,
117
+    methods:"get",
118
+    params:params
119
+  })
120 120
 }
121 121
 
122 122
 export function UpdatedDepartment(params){
123
-   
124
-    return request({
125
-        url:"/api/his/updagtedepartment",
126
-        methods:"get",
127
-        params:params
128
-    })
123
+
124
+  return request({
125
+    url:"/api/his/updagtedepartment",
126
+    methods:"get",
127
+    params:params
128
+  })
129 129
 }
130 130
 
131 131
 export function DeleteDepartment(id,params){
132
-    return request({
133
-       url:"/api/his/deletedeparment?id="+id,
134
-       methods:"get",
135
-       params:params
136
-    })
132
+  return request({
133
+    url:"/api/his/deletedeparment?id="+id,
134
+    methods:"get",
135
+    params:params
136
+  })
137 137
 }
138 138
 
139 139
 
140 140
 export function getPatientList(params){
141
-   return request({
142
-       url:"/api/his/getbloodpatient",
143
-       methods:"get",
144
-       params:params
145
-   })
141
+  return request({
142
+    url:"/api/his/getbloodpatient",
143
+    methods:"get",
144
+    params:params
145
+  })
146 146
 }
147 147
 
148 148
 export function getHisPrescription(id,params){
149
-   
150
-    return request({
151
-       url:"/api/his/gethisprescription?id="+id,
152
-       methods:"get",
153
-       params:params
154
-    })
149
+
150
+  return request({
151
+    url:"/api/his/gethisprescription?id="+id,
152
+    methods:"get",
153
+    params:params
154
+  })
155 155
 }
156 156
 
157 157
 export function saveCharges(data){
158
-    
159
-    return request({
160
-       url:"/api/his/additionalcharge",
161
-       method:"post",
162
-       data:data
163
-    })
158
+
159
+  return request({
160
+    url:"/api/his/additionalcharge",
161
+    method:"post",
162
+    data:data
163
+  })
164 164
 }
165 165
 
166 166
 
167 167
 export function getAllProjectList(params){
168
-    return request({
169
-       url:"/api/his/getallprojectlist",
170
-       methods:"get",
171
-       params:params
172
-    })
168
+  return request({
169
+    url:"/api/his/getallprojectlist",
170
+    methods:"get",
171
+    params:params
172
+  })
173 173
 }
174 174
 
175 175
 export function addProjectList(params){
176
-  
177
-    return request({
178
-       url:"/api/his/addprojectlist",
179
-       methods:"get",
180
-       params:params
181
-    })
176
+
177
+  return request({
178
+    url:"/api/his/addprojectlist",
179
+    methods:"get",
180
+    params:params
181
+  })
182 182
 }
183 183
 
184 184
 export function getPatientInformation(id,params){
185
-   
186
-   return request({
187
-     url:"/api/his/getpatientinformation?id="+id,
188
-     methods:"Get",
189
-     params:params
190
-   })
185
+
186
+  return request({
187
+    url:"/api/his/getpatientinformation?id="+id,
188
+    methods:"Get",
189
+    params:params
190
+  })
191 191
 }
192 192
 
193 193
 export function DeleteProject(id,params){
194
-   
195
-    return request({
196
-       url:"/api/his/deleteproject?id="+id,
197
-       methods:"Get",
198
-       params:params
199
-    })
194
+
195
+  return request({
196
+    url:"/api/his/deleteproject?id="+id,
197
+    methods:"Get",
198
+    params:params
199
+  })
200 200
 }
201 201
 
202 202
 
203 203
 export function getHisProject(params){
204
-  
205
-    return request({
206
-       url:"/api/his/gethisproject",
207
-       methods:"get",
208
-       params:params
209
-    })
204
+
205
+  return request({
206
+    url:"/api/his/gethisproject",
207
+    methods:"get",
208
+    params:params
209
+  })
210 210
 }
211 211
 
212 212
 export function addProjectTeam(params){
213
-   
213
+
214 214
   return request({
215
-      url:"/api/his/getprojectteam",
216
-      methods:"Get",
217
-      params:params
215
+    url:"/api/his/getprojectteam",
216
+    methods:"Get",
217
+    params:params
218 218
   })
219 219
 }
220 220
 
221 221
 export function getAllDoctorList(params){
222
-   
222
+
223 223
   return request({
224
-      url:"/api/his/getalldoctorlist",
225
-      methods:"Get",
226
-      params:params
224
+    url:"/api/his/getalldoctorlist",
225
+    methods:"Get",
226
+    params:params
227 227
   })
228
-} 
228
+}
229 229
 
230 230
 export function saveHisPatient(params){
231
-   
232
-    return request({
233
-        url:"/api/his/savehispatient",
234
-        methods:"get",
235
-        params:params
236
-    })
231
+
232
+  return request({
233
+    url:"/api/his/savehispatient",
234
+    methods:"get",
235
+    params:params
236
+  })
237 237
 }
238 238
 
239 239
 export function getAllProjectTeam(params){
240
-  
240
+
241 241
   return request({
242
-     url:"/api/hist/getallprojecteam",
243
-     methods:"get",
244
-     params:params
242
+    url:"/api/hist/getallprojecteam",
243
+    methods:"get",
244
+    params:params
245 245
   })
246 246
 }
247 247
 
248 248
 export function getPojectListById(params){
249
-  
249
+
250 250
   return request({
251 251
     url:"/api/his/getprojectlistbyid",
252 252
     methods:"get",
253
-    params:params 
253
+    params:params
254 254
   })
255 255
 }
256 256
 
257 257
 export function getHisPatientHistory(params){
258
-  
259
-    return request({
260
-        url:"/api/his/gethispatienthistory",
261
-        methods:"get",
262
-        params:params
263
-    })
258
+
259
+  return request({
260
+    url:"/api/his/gethispatienthistory",
261
+    methods:"get",
262
+    params:params
263
+  })
264 264
 }
265 265
 
266 266
 
267 267
 export function changePatient(id,params){
268
-   
269
-    return request({
270
-      url:"/api/patient/changepatient?id="+id,
271
-      method:"get",
272
-      params:params
273
-    })
274
-  }
275
-
276
-
277
-  export function getPatientCaseHistory(params){
278
-     
279
-    return request({
280
-        url:"/api/patient/getpatientcasehistory",
281
-        method:"get",
282
-        params:params
283
-    })
284
-  }
285
-
286
-  export function SaveHisPatientCaseHistoryTemplate(params){
287
-      
288
-    return request({
289
-       url:"/api/doctorworkstation/casehistorytemplate/create",
290
-       method:"get",
291
-       params:params
292
-    })
293
-  }
294
-
295
-  export function getHistoryTemplate(params){
296
-   
297
-    return request({
298
-      url:"/api/doctorworkstation/casehistorytemplate/get",
299
-      method:"get",
300
-      params:params
301
-    })
302
-  }
303
-
304
-  export function getTemplateDetail(id,params){
305
-     
306
-     return request({
307
-        url:"/api/doctorworkstation/gettemplatedetail?id="+id,
308
-        method:"get",
309
-        params:params
310
-     })
311
-  }
312
-
313
-  export function updateRecordTemplate(params){
314
-    
315
-    return request({
316
-        url:"/api/doctorworkstation/updaterecordtemplate",
317
-        method:"get",
318
-        params:params  
319
-    })
320
-  } 
321
-
322
-  export function getHisPatient(params){
323
-    
324
-    return request({
325
-      url:"/api/hispatient/gehispatient",
326
-      method:"get",
327
-      params:params
328
-    })
329
-  }
330
-
331
-  export function postPrintHisTemplate(params){
332
-    
333
-    return request({
334
-      url:"/api/hispatient/postprinthistemplate",
335
-      method:"get",
336
-      params:params
337
-    })
338
-  }
339
-
340
-  export function getHisPrintTemplate(params){
341
-    
342
-    return request({
343
-      url:"/api/gethisprinttemplate",
344
-      method:"get",
345
-      params:params
346
-    })
347
-  } 
348
-
349
-  export function postPrescriptionPrintTemplate(params){
350
-    
351
-    return request({
352
-      url:"/api/hispatient/postprescriptiontemplate",
353
-      method:"Get",
354
-      params:params
355
-    })
356
-  }
357
-
358
-  export function getPrescriptionTemplate(params){
359
-   
360
-    return request({
361
-      url:"/api/hispatient/getprescriptiontemplate",
362
-      method:"Get",
363
-      params:params
364
-    })
365
-  }
366
-
367
-  export function postTreatPrintTemplate(params){
368
-   
369
-    return request({
370
-      url:"/api/hispatient/posttreatprinttemplate",
371
-      method:"get",
372
-      params:params
373
-    })
374
-  }
375
-
376
-  export function getTreatPrintTemplate(params){
377
-   
378
-    return request({
379
-      url:"/api/hispatient/gettreatprinttemplate",
380
-      method:"Get",
381
-      params:params
382
-    })
383
-  }
384
-
385
-  export function postChargePrintTemplate(params){
386
-    
387
-    return request({
388
-      url:"/api/hispatient/postchargeprinttemplate",
389
-      method:"get",
390
-      params:params
391
-    })
392
-  }
393
-
394
-  export function getChargePrintTemplate(params){
395
-     
396
-    return request({
397
-       url:"/api/hispatient/getchargeprinttemplate",
398
-       method:"get",
399
-       params:params
400
-    })
401
-  }
402
-
403
-  export function getAllHisPatientList(params){
404
-    
405
-    return request({
406
-      url:"/api/hispatient/getallhispatient",
407
-      method:"get",
408
-      params:params
409
-    })
410
-  }
411
-
412
-  export function getPrescriptionPrint(params){
413
-    
414
-    return request({
415
-      url:"/api/hispatient/getprescriptionprint",
416
-      method:"get",
417
-      params:params
418
-    })
419
-  }
420
-
421
-  export function getChargePrint(params){
422
-     
423
-    return request({
424
-      url:"/api/hispatient/getchargeprint",
425
-      method:"get",
426
-      params:params
427
-    })
428
-  }
429
-
430
-  export function getTodaySchedulePatient(params){
431
-     
432
-    return request({
433
-      url:"/api/hispatient/gettodayschedulepatient",
434
-      method:"get",
435
-      params:params
436
-    })
437
-  }
438
-
439
-  export function getHisPatientDetail(params){
440
-    console.log("params99999",params)
441
-    return request({
442
-      url:"/api/hispatient/gethispatientdetail",
443
-      method:"Get",
444
-      params:params
445
-    })
446
-  }
447
-
448
-  export function getAllDePartmentList(params){
449
-   
450
-    return request({
451
-      url:"/api/hispatient/getalldepartmentlist",
452
-      method:"Get",
453
-      params:params
454
-    })
455
-  } 
456
-
457
-  export function getPrescriptionList(id,params){
458
-     
459
-    return request({
460
-      url:"/api/hispatient/getprescription?patient_id="+id,
461
-      method:"Get",
462
-      params:params
463
-    })
464
-  }
465
-
466
-  export function getPatientDetail(id,params){
467
-    
468
-     return request({
469
-       url:"/api/histpatient/getpatientdetail?id="+id,
470
-       method:"Get",
471
-       params:params
472
-     })
473
-  }
474
-
475
-  export function saveMainTemplate(params){
476
-    
477
-    return request({
478
-      url:"/api/hispatient/savemaintemplate",
479
-      method:"Get",
480
-      params:params
481
-    })
482
-  }
483
-
484
-  export function getMedicalTemplateList(params){
485
-    
486
-    return request({
487
-      url:"/api/hispatient/getmedicaltemplatelist",
488
-      method:"Get",
489
-      params:params
490
-    })
491
-  }
492
-
493
-  export function getMainTemplateById(id,params){
494
-    
495
-    return request({
496
-      url:"/api/hispatient/getmaintemplatebyid?id="+id,
497
-      method:"get",
498
-      params:params
499
-    })
500
-  }
501
-
502
-  export function UpdateMainTemplate(params){
503
-   
504
-    return request({
505
-      url:"/api/hispatient/updatemaintemplate",
506
-      method:"get",
507
-      params:params
508
-    })
509
-  }
510
-
511
-  export function deleteMainTemplate(id,params){
512
-  
513
-     return request({
514
-       url:"/api/hispatient/deletemaintemplate?id="+id,
515
-       method:"Get",
516
-       params:params
517
-     })
518
-  }
268
+
269
+  return request({
270
+    url:"/api/patient/changepatient?id="+id,
271
+    method:"get",
272
+    params:params
273
+  })
274
+}
275
+
276
+
277
+export function getPatientCaseHistory(params){
278
+
279
+  return request({
280
+    url:"/api/patient/getpatientcasehistory",
281
+    method:"get",
282
+    params:params
283
+  })
284
+}
285
+
286
+export function SaveHisPatientCaseHistoryTemplate(params){
287
+
288
+  return request({
289
+    url:"/api/doctorworkstation/casehistorytemplate/create",
290
+    method:"get",
291
+    params:params
292
+  })
293
+}
294
+
295
+export function getHistoryTemplate(params){
296
+
297
+  return request({
298
+    url:"/api/doctorworkstation/casehistorytemplate/get",
299
+    method:"get",
300
+    params:params
301
+  })
302
+}
303
+
304
+export function getTemplateDetail(id,params){
305
+
306
+  return request({
307
+    url:"/api/doctorworkstation/gettemplatedetail?id="+id,
308
+    method:"get",
309
+    params:params
310
+  })
311
+}
312
+
313
+export function updateRecordTemplate(params){
314
+
315
+  return request({
316
+    url:"/api/doctorworkstation/updaterecordtemplate",
317
+    method:"get",
318
+    params:params
319
+  })
320
+}
321
+
322
+export function getHisPatient(params){
323
+
324
+  return request({
325
+    url:"/api/hispatient/gehispatient",
326
+    method:"get",
327
+    params:params
328
+  })
329
+}
330
+
331
+export function postPrintHisTemplate(params){
332
+
333
+  return request({
334
+    url:"/api/hispatient/postprinthistemplate",
335
+    method:"get",
336
+    params:params
337
+  })
338
+}
339
+
340
+export function getHisPrintTemplate(params){
341
+
342
+  return request({
343
+    url:"/api/gethisprinttemplate",
344
+    method:"get",
345
+    params:params
346
+  })
347
+}
348
+
349
+export function postPrescriptionPrintTemplate(params){
350
+
351
+  return request({
352
+    url:"/api/hispatient/postprescriptiontemplate",
353
+    method:"Get",
354
+    params:params
355
+  })
356
+}
357
+
358
+export function getPrescriptionTemplate(params){
359
+
360
+  return request({
361
+    url:"/api/hispatient/getprescriptiontemplate",
362
+    method:"Get",
363
+    params:params
364
+  })
365
+}
366
+
367
+export function postTreatPrintTemplate(params){
368
+
369
+  return request({
370
+    url:"/api/hispatient/posttreatprinttemplate",
371
+    method:"get",
372
+    params:params
373
+  })
374
+}
375
+
376
+export function getTreatPrintTemplate(params){
377
+
378
+  return request({
379
+    url:"/api/hispatient/gettreatprinttemplate",
380
+    method:"Get",
381
+    params:params
382
+  })
383
+}
384
+
385
+export function postChargePrintTemplate(params){
386
+
387
+  return request({
388
+    url:"/api/hispatient/postchargeprinttemplate",
389
+    method:"get",
390
+    params:params
391
+  })
392
+}
393
+
394
+export function getChargePrintTemplate(params){
395
+
396
+  return request({
397
+    url:"/api/hispatient/getchargeprinttemplate",
398
+    method:"get",
399
+    params:params
400
+  })
401
+}
402
+
403
+export function getAllHisPatientList(params){
404
+
405
+  return request({
406
+    url:"/api/hispatient/getallhispatient",
407
+    method:"get",
408
+    params:params
409
+  })
410
+}
411
+
412
+export function getPrescriptionPrint(params){
413
+
414
+  return request({
415
+    url:"/api/hispatient/getprescriptionprint",
416
+    method:"get",
417
+    params:params
418
+  })
419
+}
420
+
421
+export function getChargePrint(params){
422
+
423
+  return request({
424
+    url:"/api/hispatient/getchargeprint",
425
+    method:"get",
426
+    params:params
427
+  })
428
+}
429
+
430
+export function getTodaySchedulePatient(params){
431
+
432
+  return request({
433
+    url:"/api/hispatient/gettodayschedulepatient",
434
+    method:"get",
435
+    params:params
436
+  })
437
+}
438
+
439
+export function getHisPatientDetail(params){
440
+  console.log("params99999",params)
441
+  return request({
442
+    url:"/api/hispatient/gethispatientdetail",
443
+    method:"Get",
444
+    params:params
445
+  })
446
+}
447
+
448
+export function getAllDePartmentList(params){
449
+
450
+  return request({
451
+    url:"/api/hispatient/getalldepartmentlist",
452
+    method:"Get",
453
+    params:params
454
+  })
455
+}
456
+
457
+export function getPrescriptionList(id,params){
458
+
459
+  return request({
460
+    url:"/api/hispatient/getprescription?patient_id="+id,
461
+    method:"Get",
462
+    params:params
463
+  })
464
+}
465
+
466
+export function getPatientDetail(id,params){
467
+
468
+  return request({
469
+    url:"/api/histpatient/getpatientdetail?id="+id,
470
+    method:"Get",
471
+    params:params
472
+  })
473
+}
474
+
475
+export function saveMainTemplate(params){
476
+
477
+  return request({
478
+    url:"/api/hispatient/savemaintemplate",
479
+    method:"Get",
480
+    params:params
481
+  })
482
+}
483
+
484
+export function getMedicalTemplateList(params){
485
+
486
+  return request({
487
+    url:"/api/hispatient/getmedicaltemplatelist",
488
+    method:"Get",
489
+    params:params
490
+  })
491
+}
492
+
493
+export function getMainTemplateById(id,params){
494
+
495
+  return request({
496
+    url:"/api/hispatient/getmaintemplatebyid?id="+id,
497
+    method:"get",
498
+    params:params
499
+  })
500
+}
501
+
502
+export function UpdateMainTemplate(params){
503
+
504
+  return request({
505
+    url:"/api/hispatient/updatemaintemplate",
506
+    method:"get",
507
+    params:params
508
+  })
509
+}
510
+
511
+export function deleteMainTemplate(id,params){
512
+
513
+  return request({
514
+    url:"/api/hispatient/deletemaintemplate?id="+id,
515
+    method:"Get",
516
+    params:params
517
+  })
518
+}
519
+
520
+export function getUnRegisterHisPatientList (params) {
521
+  return request({
522
+    url: '/api/unregister/list',
523
+    method: 'get',
524
+    params:params,
525
+  })
526
+}

+ 26 - 5
src/api/schedule.js Parādīt failu

@@ -1,16 +1,18 @@
1 1
 import request from '@/utils/request'
2 2
 
3
-export function getWeekPanels(t) {
3
+export function getWeekPanels(t,patitionId) {
4
+  console.log("params33333",t,patitionId)
4 5
   return request({
5
-    url: '/api/schedule/weekpanel?data=' + t,
6
+    url: '/api/schedule/weekpanel?data=' + t+"&patitionid="+patitionId,
6 7
     method: 'get'
7 8
   })
8 9
 }
9 10
 
10
-export function getSchedules(week) {
11
+export function getSchedules(params) {
11 12
   return request({
12
-    url: '/api/schedule/schedules?weekTime=' + week,
13
-    method: 'get'
13
+    url: '/api/schedule/schedules',
14
+    method: 'get',
15
+    params:params,
14 16
   })
15 17
 }
16 18
 
@@ -122,3 +124,22 @@ export function getNextScheduleWeekDay(params){
122 124
     params:params
123 125
   })
124 126
 }
127
+
128
+
129
+export function getThreeWeekList(params){
130
+  
131
+  return request({
132
+    url:"/api/schedule/getthreeweeklist",
133
+    method:"get",
134
+    params:params
135
+  })
136
+}
137
+
138
+export function getAllZones(params){
139
+  
140
+  return request({
141
+    url:"/api/schedule/getallzones",
142
+    method:"get",
143
+    params:params
144
+  })
145
+}

+ 10 - 0
src/api/stock.js Parādīt failu

@@ -121,6 +121,7 @@ export function GetGoodType(params) {
121 121
 }
122 122
 
123 123
 export function createGoodInfo(params) {
124
+  console.log("prams",params)
124 125
   return request({
125 126
     url: '/api/stock/good/info/create',
126 127
     method: 'post',
@@ -574,4 +575,13 @@ export function PostSearchStock(keyword,params){
574 575
     method:"get",
575 576
     params:params
576 577
   })
578
+}
579
+
580
+export function GetOutStockTotalCount(params){
581
+  
582
+  return request({
583
+    url:"/api/warehouseout/getoutstocktotalcount",
584
+    method:"get",
585
+    params:params
586
+  })
577 587
 }

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

@@ -204,6 +204,7 @@ export default {
204 204
     scrm: 'SCRM',
205 205
     shop: '分销商城',
206 206
 
207
+    costComparison:'医保费用对照',
207 208
     incomeStatistics:'收入统计',
208 209
     outpatientRegistration:'门诊挂号',
209 210
     outpatientRegistrationIndex:'门诊挂号',
@@ -231,7 +232,7 @@ export default {
231 232
     dictionaryManagement:'字典管理',
232 233
     templateManagement:'模板管理',
233 234
     drugStockUserDetail:"出库人明细",
234
-    DepartManage:"部门管理",
235
+    DepartManage:"科室管理",
235 236
     basicConfig:'基础配置',
236 237
 
237 238
     histemplate:'处方模版',

+ 3 - 1
src/router/index_路由未分离前.js Parādīt failu

@@ -604,6 +604,7 @@ export const xt_asyncRouterMap = [
604 604
         name: 'weight',
605 605
         meta: { title: 'weight', noCache: true }
606 606
       },
607
+   
607 608
       {
608 609
         path: '/patients/patient/:id/dialysisRecord',
609 610
         component: () => import('@/xt_pages/user/dialysisRecord'),
@@ -886,7 +887,8 @@ export const xt_asyncRouterMap = [
886 887
         component: () => import('@/xt_pages/stock/index'),
887 888
         name: 'config',
888 889
         meta: { title: 'config' }
889
-      }
890
+      },
891
+     
890 892
     ]
891 893
   },
892 894
   {

+ 128 - 44
src/router/modules/dialysis.js Parādīt failu

@@ -67,50 +67,50 @@ export default {
67 67
         noCache: true
68 68
       }
69 69
     },
70
-    // {
71
-    //   path: '/dialysis/consumableDrugs_print',
72
-    //   component: () => import('@/xt_pages/dialysis/consumableDrugs_print'),
73
-    //   hidden: true,
74
-    //   is_menu: false,
75
-    //   name: 'consumableDrugs_print',
76
-    //   meta: {
77
-    //     title: 'consumableDrugs_print',
78
-    //     noCache: true
79
-    //   }
80
-    // },
81
-    // {
82
-    //   path: '/dialysis/dialysisDrugs_print',
83
-    //   component: () => import('@/xt_pages/dialysis/dialysisDrugs_print'),
84
-    //   hidden: true,
85
-    //   is_menu: false,
86
-    //   name: 'dialysisDrugs_print',
87
-    //   meta: {
88
-    //     title: 'dialysisDrugs_print',
89
-    //     noCache: true
90
-    //   }
91
-    // },
92
-    // {
93
-    //   path: '/dialysis/dialysisParameters_print',
94
-    //   component: () => import('@/xt_pages/dialysis/dialysisParameters_print'),
95
-    //   hidden: true,
96
-    //   is_menu: false,
97
-    //   name: 'dialysisParameters_print',
98
-    //   meta: {
99
-    //     title: 'dialysisParameters_print',
100
-    //     noCache: true
101
-    //   }
102
-    // },
103
-    // {
104
-    //   path: '/dialysis/allSummary_print',
105
-    //   component: () => import('@/xt_pages/dialysis/allSummary_print'),
106
-    //   hidden: true,
107
-    //   is_menu: false,
108
-    //   name: 'allSummary_print',
109
-    //   meta: {
110
-    //     title: 'allSummary_print',
111
-    //     noCache: true
112
-    //   }
113
-    // },
70
+    {
71
+      path: '/dialysis/consumableDrugs_print',
72
+      component: () => import('@/xt_pages/dialysis/consumableDrugs_print'),
73
+      hidden: true,
74
+      is_menu: false,
75
+      name: 'consumableDrugs_print',
76
+      meta: {
77
+        title: 'consumableDrugs_print',
78
+        noCache: true
79
+      }
80
+    },
81
+    {
82
+      path: '/dialysis/dialysisDrugs_print',
83
+      component: () => import('@/xt_pages/dialysis/dialysisDrugs_print'),
84
+      hidden: true,
85
+      is_menu: false,
86
+      name: 'dialysisDrugs_print',
87
+      meta: {
88
+        title: 'dialysisDrugs_print',
89
+        noCache: true
90
+      }
91
+    },
92
+    {
93
+      path: '/dialysis/dialysisParameters_print',
94
+      component: () => import('@/xt_pages/dialysis/dialysisParameters_print'),
95
+      hidden: true,
96
+      is_menu: false,
97
+      name: 'dialysisParameters_print',
98
+      meta: {
99
+        title: 'dialysisParameters_print',
100
+        noCache: true
101
+      }
102
+    },
103
+    {
104
+      path: '/dialysis/allSummary_print',
105
+      component: () => import('@/xt_pages/dialysis/allSummary_print'),
106
+      hidden: true,
107
+      is_menu: false,
108
+      name: 'allSummary_print',
109
+      meta: {
110
+        title: 'allSummary_print',
111
+        noCache: true
112
+      }
113
+    },
114 114
     {
115 115
       path: '/dialysis/record/:id',
116 116
       component: () => import('@/xt_pages/dialysis/dialysisPage'),
@@ -316,6 +316,90 @@ export default {
316 316
         noCache: true
317 317
       }
318 318
     },
319
+    {
320
+      path: '/dialysis/print/batch/twentyFive',
321
+      component: () =>
322
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_twentyFive'),
323
+      hidden: true,
324
+      is_menu: false,
325
+      name: 'dialysis_batch_twentyFive',
326
+      meta: {
327
+        title: '批量打印',
328
+        noCache: true
329
+      }
330
+    },
331
+    {
332
+      path: '/dialysis/print/batch/twentyEight',
333
+      component: () =>
334
+      import('@/xt_pages/dialysis/batch_print/batch_print_order_twentyEight'),
335
+      hidden: true,
336
+      is_menu: false,
337
+      name: 'dialysis_batch_twentyFive',
338
+      meta: {
339
+        title: '批量打印',
340
+        noCache: true
341
+      }
342
+    },
343
+    {
344
+      path: '/dialysis/print/batch/thirty',
345
+      component: () =>
346
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_thirty'),
347
+      hidden: true,
348
+      is_menu: false,
349
+      name: 'dialysis_batch_thirty',
350
+      meta: {
351
+        title: '批量打印',
352
+        noCache: true
353
+      }
354
+    },
355
+    {
356
+      path: '/dialysis/print/batch/thirtyTwo',
357
+      component: () =>
358
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo'),
359
+      hidden: true,
360
+      is_menu: false,
361
+      name: 'batch_print_order_thirtyTwo',
362
+      meta: {
363
+        title: '批量打印',
364
+        noCache: true
365
+      }
366
+    },
367
+    {
368
+      path: '/dialysis/print/batch/thirtyThree',
369
+      component: () =>
370
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_thirtyThree'),
371
+      hidden: true,
372
+      is_menu: false,
373
+      name: 'batch_print_order_thirtyThree',
374
+      meta: {
375
+        title: '批量打印',
376
+        noCache: true
377
+      }
378
+    },
379
+    {
380
+      path: '/dialysis/print/batch/thirtyThree_one',
381
+      component: () =>
382
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_thirtyThree_one'),
383
+      hidden: true,
384
+      is_menu: false,
385
+      name: 'dialysis_batch_print_thirtyThree_one',
386
+      meta: {
387
+        title: '批量打印',
388
+        noCache: true
389
+      }
390
+    },
391
+    {
392
+      path: '/dialysis/print/batch/thirtyThree_two',
393
+      component: () =>
394
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_thirtyThree_two'),
395
+      hidden: true,
396
+      is_menu: false,
397
+      name: 'dialysis_batch_print_thirtyThree_two',
398
+      meta: {
399
+        title: '批量打印',
400
+        noCache: true
401
+      }
402
+    },
319 403
     {
320 404
       path: '/dialysis/print/batch/twentyTwo_one',
321 405
       component: () =>

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

@@ -42,6 +42,12 @@ export default {
42 42
         name: 'drugsStockCancel',
43 43
         meta: { title: 'drugsStockCancel', noCache: true }
44 44
     },
45
+    {
46
+      path:'/stock/drugs/stock/detail',
47
+      component:()=>import('@/xt_pages/stock/drugs/drugIndex'),
48
+      name:'drugDetail',
49
+      meta:{title:'明细查询',noCache:true}
50
+    },
45 51
     // {
46 52
     //     path: '/stock/drugs/stock/adjustPrice',
47 53
     //     component: () => import('@/xt_pages/stock/drugs/adjustPrice'),

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

@@ -48,6 +48,12 @@ export default {
48 48
         name: 'incomeStatistics',
49 49
         meta: { title: 'incomeStatistics', noCache: true }
50 50
     },
51
+    {
52
+        path: '/outpatientCharges/costComparison',
53
+        component: () => import('@/xt_pages/outpatientCharges/costComparison'),
54
+        name: 'costComparison',
55
+        meta: { title: 'costComparison', noCache: true }
56
+    },
51 57
     {
52 58
         path: '/outpatientCharges/summaryDetail',
53 59
         component: () => import('@/xt_pages/outpatientCharges/summaryDetail'),

+ 23 - 0
src/router/modules/patient.js Parādīt failu

@@ -62,6 +62,29 @@ export default {
62 62
       noCache: true
63 63
     }
64 64
   },
65
+
66
+  {
67
+    path: '/patients/patient/:id/vascularAccess',
68
+    component: () => import('@/xt_pages/user/vascularAccess'),
69
+    hidden: true,
70
+    is_menu: false,
71
+    name: 'vascularAccess',
72
+    meta: {
73
+      title: 'vascularAccess',
74
+      noCache: true
75
+    }
76
+  },
77
+  {
78
+    path: '/patients/patient/:mid/vascularAccessDetail/:pid',
79
+    component: () => import('@/xt_pages/user/vascularAccessDetail'),
80
+    hidden: true,
81
+    is_menu: false,
82
+    name: 'vascularAccessDetail',
83
+    meta: {
84
+      title: 'vascularAccessDetail',
85
+      noCache: true
86
+    }
87
+  },
65 88
   {
66 89
     path: '/patients/patient/:id/dialysisRecord',
67 90
     component: () => import('@/xt_pages/user/dialysisRecord'),

+ 2 - 2
src/router/modules/qcd.js Parādīt failu

@@ -233,8 +233,8 @@ export default {
233 233
       }
234 234
     },
235 235
     {
236
-      path: '/qcd/workAnalysis/doctor',
237
-      component: () => import('@/xt_pages/qcd/workAnalysis/doctor'),
236
+      path: '/qcd/workAnalysis/index',
237
+      component: () => import('@/xt_pages/qcd/workAnalysis/index'),
238 238
       name: 'workAnalysisDoctor',
239 239
       meta: {
240 240
         title: '工作量分析统计',

+ 42 - 0
src/router/modules/selfPreparedMedicine.js Parādīt failu

@@ -12,6 +12,14 @@ export default {
12 12
     isChild: true
13 13
   },
14 14
   children: [
15
+    {
16
+      path: '/stock/selfstockquery',
17
+      component: () => import('@/xt_pages/stock/selfPreparedMedicine/stockquery'),
18
+      name: 'stockquery',
19
+      meta: { title: '库存查询', noCache: true }
20
+
21
+    },
22
+
15 23
     {
16 24
         path: '/stock/selfPreparedMedicineIndex',
17 25
         component: () => import('@/xt_pages/stock/selfPreparedMedicine/index'),
@@ -46,5 +54,39 @@ export default {
46 54
       is_menu: false,
47 55
       meta: { title: 'stockprint', noCache: true }
48 56
      },
57
+     {
58
+       path:"/stock/selfstockprint",
59
+       component:()=>import('@/xt_pages/stock/selfStockPrint'),
60
+       name:'selfStockQuery',
61
+       hidden:true,
62
+       is_menu:false,
63
+       meta:{title:'selfStockPrint',noCache:true}
64
+     },
65
+
66
+     {
67
+      path: '/stock/stockprint',
68
+      component: () => import('@/xt_pages/stock/stockPrint'),
69
+      name: 'stockqueryprint',
70
+      hidden: true,
71
+      is_menu: false,
72
+      meta: { title: 'stockprint', noCache: true }
73
+     },
74
+
75
+     {
76
+      path: '/stock/in/detail/print',
77
+      component: () => import('@/xt_pages/stock/stockInOrderDetailPrint'),
78
+      name: 'stockInDetailPrint',
79
+      hidden: true,
80
+      is_menu: false,
81
+      meta: { title: 'stockInDetailPrint',noCache: true }
82
+    },
83
+    {
84
+      path: '/stock/out/detail',
85
+      component: () => import('@/xt_pages/stock/stockOutOrderDetailPrint'),
86
+      name: 'stockOutDetailPrint',
87
+      hidden: true,
88
+      is_menu: false,
89
+      meta: { title: 'stockOutDetailPrint',noCache: true }
90
+    },
49 91
   ]
50 92
 }

+ 80 - 0
src/router/modules/stock.js Parādīt failu

@@ -189,5 +189,85 @@ export default {
189 189
       is_menu: false,
190 190
       meta: { title: 'user_detail', noCache: true }
191 191
     },
192
+
193
+    {
194
+      path: '/stock/drugprint',
195
+      component: () => import('@/xt_pages/stock/drugs/drugPrint'),
196
+      hidden: true,
197
+      is_menu: false,
198
+      name: 'stock_print',
199
+      meta: {
200
+        title: '库存打印',
201
+        noCache: true
202
+      }
203
+    },
204
+    {
205
+      path:"/stock/drugcancelprint",
206
+      component:()=>import('@/xt_pages/stock/drugs/drugCancelOurderPrint'),
207
+      hidden: true,
208
+      is_menu: false,
209
+      name: 'stock_print',
210
+      meta: {
211
+        title: '库存打印',
212
+        noCache: true
213
+      }
214
+    },
215
+    {
216
+      path:"/stock/drugoutorderprint",
217
+      component:()=>import('@/xt_pages/stock/drugs/drugOutOrderPrint'),
218
+      hidden: true,
219
+      is_menu: false,
220
+      name: 'stock_print',
221
+      meta: {
222
+        title: '出库打印',
223
+        noCache: true
224
+      }
225
+    },
226
+    {
227
+      path:"/stock/drugcanceldetaiprint",
228
+      component:()=>import('@/xt_pages/stock/drugs/drugCancelDetailPrint'),
229
+      hidden: true,
230
+      is_menu: false,
231
+      name: 'stock_print',
232
+      meta: {
233
+        title: '出库打印',
234
+        noCache: true
235
+      }
236
+    },
237
+
238
+    {
239
+      path: '/stock/drugStockInOrderDetailPrint',
240
+      component: () => import('@/xt_pages/stock/drugs/drugStockInOrderDetailPrint'),
241
+      hidden: true,
242
+      is_menu: false,
243
+      name: 'drugInOrderDetailPrint',
244
+      meta: {
245
+        title: '药品入库单打印',
246
+        noCache: true
247
+      }
248
+    },
249
+    {
250
+      path: '/stock/drugStockOutOrderDetailPrint',
251
+      component: () => import('@/xt_pages/stock/drugs/drugStockOutOrderDetailPrint'),
252
+      hidden: true,
253
+      is_menu: false,
254
+      name: 'drugOutOrderDetailPrint',
255
+      meta: {
256
+        title: '药品入库单打印',
257
+        noCache: true
258
+      }
259
+    },
260
+
261
+    {
262
+      path: '/stock/drugQueryPrint',
263
+      component: () => import('@/xt_pages/stock/drugs/drugQueryPrint'),
264
+      hidden: true,
265
+      is_menu: false,
266
+      name: 'drugQueryPrint',
267
+      meta: {
268
+        title: '药品入库单打印',
269
+        noCache: true
270
+      }
271
+    },
192 272
   ]
193 273
 }

+ 2 - 0
src/store/getters.js Parādīt failu

@@ -28,6 +28,8 @@ const getters = {
28 28
   patient_state_selected: state => state.xt_user.patient_state_selected,
29 29
   treat_state_selected: state => state.xt_user.treat_state_selected,
30 30
   selected_date: state => state.xt_user.selected_date,
31
+  search_mode: state => state.xt_user.search_mode,
32
+  search_value: state => state.xt_user.search_value,
31 33
 
32 34
   xt_role_temps: state => state.xt_role_temps,
33 35
 

+ 27 - 2
src/store/modules/globalConfig.js Parādīt failu

@@ -495,7 +495,7 @@ const global_config = {
495 495
       // 16: { id: 16, name: 'HD后置换', dialysis_duration: 1, replacement_way: 2, hemodialysis_machine: 1, blood_filter: 2, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
496 496
       // 17: { id: 17, name: 'HDF前置换', dialysis_duration: 1, replacement_way: 1, hemodialysis_machine: 2, blood_filter: 1, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
497 497
       // 18: { id: 18, name: 'HDF后置换', dialysis_duration: 1, replacement_way: 1, hemodialysis_machine: 2, blood_filter: 1, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 }
498
-      19: {
498
+      20: {
499 499
         id: 19,
500 500
         name: 'UF',
501 501
         dialysis_duration: 1,
@@ -1796,7 +1796,32 @@ const global_config = {
1796 1796
     {
1797 1797
       id: 21,
1798 1798
       name: '人份'
1799
-    }
1799
+    },
1800
+    {
1801
+      id: 22,
1802
+      name: 'kg'
1803
+    },
1804
+    {
1805
+      id: 23,
1806
+      name: 'g'
1807
+    },
1808
+    {
1809
+      id: 24,
1810
+      name: 'mg'
1811
+    },
1812
+    {
1813
+      id: 25,
1814
+      name: 'u'
1815
+    },
1816
+    {
1817
+      id: 26,
1818
+      name: 'ml'
1819
+    },
1820
+    {
1821
+      id: 27,
1822
+      name: '万u'
1823
+    },
1824
+
1800 1825
     ],
1801 1826
     body_fluid: [{
1802 1827
       id: 1,

+ 18 - 1
src/store/modules/xt_user.js Parādīt failu

@@ -53,10 +53,21 @@ const xt_user = {
53 53
 
54 54
     // 示例: ['', '',]
55 55
     urlfors: [],
56
-    fileds: []
56
+    fileds: [],
57
+
58
+    //监测的搜索状态
59
+    search_mode: 1,
60
+    //监测的搜索值
61
+    search_value:''
57 62
   },
58 63
 
59 64
   mutations: {
65
+    SET_SEARCH_VALUE:(state, search_value) => {
66
+      state.search_value = search_value
67
+    },
68
+    SET_SEARCH_MODE:(state, search_mode) => {
69
+      state.search_mode = search_mode
70
+    },
60 71
     SET_SCHEDULE_TYPE_SELECTED: (state, schedule_type_selected) => {
61 72
       state.schedule_type_selected = schedule_type_selected
62 73
     },
@@ -180,6 +191,12 @@ const xt_user = {
180 191
   },
181 192
 
182 193
   actions: {
194
+    SetSearchValue({ commit }, search_value) {
195
+      commit('SET_SEARCH_VALUE', search_value)
196
+    },
197
+    SetSearchMode({ commit }, search_mode) {
198
+      commit('SET_SEARCH_MODE', search_mode)
199
+    },
183 200
     SetScheduleTypeSelected({ commit }, schedule_type_selected) {
184 201
       commit('SET_SCHEDULE_TYPE_SELECTED', schedule_type_selected)
185 202
     },

+ 5 - 6
src/utils/tools.js Parādīt failu

@@ -153,11 +153,7 @@ export function uParseTime(time, cFormat) {
153 153
 }
154 154
 
155 155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
156
-  // console.log(type)
157
-  // console.log('首剂', shouji)
158
-  // console.log('总量', shichang)
159
-  // console.log('维持', weichi)
160
-
156
+ 
161 157
   var t = 0.5
162 158
   if (type == 1) {
163 159
     t = 0.5
@@ -172,11 +168,14 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
172 168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
173 169
     return 0
174 170
   }
175
-  // console.log((shouji + (shichang - t) * weichi).toFixed(1))
171
+ console.log((shouji + (shichang - t) * weichi).toFixed(1))
176 172
   return (shouji + (shichang - t) * weichi).toFixed(1)
177 173
 }
178 174
 
179 175
 
176
+
177
+
178
+
180 179
 export function formatDate (date, format) {
181 180
   if (/(y+)/.test(format)) {
182 181
       format= format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));

+ 7 - 1
src/views/layout/components/Navbar.vue Parādīt failu

@@ -305,6 +305,12 @@ export default {
305 305
               this.showWsErr = true;
306 306
               this.wsErrMsg = "网络已断开,请检查网络后重新打开页面";
307 307
               console.log('navigator',navigator)
308
+              let http = 'wss://socket.sgjyun.com?token=' 
309
+              // let http = 'ws://socket.szjkhd.com?token=' //测试
310
+              let token = localStorage.getItem("token")
311
+              this.$store.state.user.websocket = new ReconnectingWebSocket(
312
+                http + token
313
+              );
308 314
             } else if (
309 315
               navigator.onLine == true &&
310 316
               this.websocket.readyState == 1
@@ -312,7 +318,7 @@ export default {
312 318
               this.showWsErr = false;
313 319
             }
314 320
             this.websocket.send("1");
315
-          }, 55000);
321
+          }, 30000);
316 322
         }
317 323
         
318 324
       }).catch(error => {

Binārs
src/xt_pages/.DS_Store Parādīt failu


+ 33 - 4
src/xt_pages/data/components/addDrugs.vue Parādīt failu

@@ -146,14 +146,24 @@
146 146
               <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
147 147
             </el-form-item>
148 148
             <el-form-item label="生产厂商 : " prop="manufacturer" >
149
-              <el-select v-model="form.manufacturer" style="width:160px;" placeholder="请选择">
149
+              <!-- <el-select v-model="form.manufacturer" style="width:160px;" placeholder="请选择">
150 150
                 <el-option
151 151
                   v-for="item,index in manufacturers"
152 152
                   :key="index"
153 153
                   :label="item.manufacturer_name"
154 154
                   :value="item.id">
155 155
                 </el-option>
156
-              </el-select>
156
+              </el-select> -->
157
+
158
+            <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
159
+                  <el-option
160
+                    v-for="item in manufacturerList"
161
+                    :key="item.id"
162
+                    :label="item.manufacturer_name"
163
+                    :value="item.id">
164
+                  </el-option>
165
+            </el-select>
166
+
157 167
             </el-form-item>
158 168
             <el-form-item label="药理分类 : " prop="pharmacology_category">
159 169
               <el-select v-model="form.pharmacology_category" style="width:160px;" placeholder="请选择">
@@ -333,6 +343,7 @@
333 343
   import {
334 344
     getAdviceConfig,
335 345
   } from '@/api/advice'
346
+ import { getManufacturerList } from "@/api/stock";
336 347
   export default {
337 348
     data() {
338 349
       return {
@@ -422,7 +433,10 @@
422 433
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
423 434
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
424 435
           manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }]
425
-        }
436
+        },
437
+        page:1,
438
+        limit:500,
439
+        manufacturerList:[]
426 440
       }
427 441
     },
428 442
     props: {
@@ -440,7 +454,7 @@
440 454
         type: Number,
441 455
         default: 1
442 456
       }
443
-
457
+      
444 458
     },
445 459
     methods: {
446 460
       cancle: function(formName) {
@@ -574,11 +588,26 @@
574 588
 
575 589
         return form
576 590
       },
591
+      getlist(){
592
+         var params = {
593
+             page:this.page,
594
+             limit:this.limit
595
+          }
596
+          console.log("params2222222",params)
597
+        getManufacturerList(params).then(response=>{
598
+           var manufacturerList =   response.data.data.manufacturer
599
+           console.log("列表2222222",manufacturerList)
600
+           this.manufacturerList = manufacturerList
601
+        })
602
+      }
577 603
     }, watch: {
578 604
       visible(val) {
579 605
         // this.form = this.formValue
580 606
 
581 607
       }
608
+    },
609
+    created(){
610
+      this.getlist()
582 611
     }
583 612
   }
584 613
 </script>

+ 6 - 3
src/xt_pages/data/components/consumables.vue Parādīt failu

@@ -500,6 +500,7 @@
500 500
           good_kind:this.good_kind,
501 501
           is_charge: this.is_charge,
502 502
         }
503
+        console.log("222222",params)
503 504
         getGoodInfoList(params).then(response => {
504 505
           if (response.data.state == 0) {
505 506
             this.goodInfo.loading = false
@@ -550,7 +551,8 @@
550 551
 
551 552
           modifyGoodInfo(val).then(response => {
552 553
             if (response.data.state == 0) {
553
-              this.$message.error(response.data.msg)
554
+              // this.$message.error(response.data.msg)
555
+              this.$message.error("同一耗材类型同一规格名称不能重复录入!")
554 556
               return false
555 557
             } else {
556 558
               this.$refs.addConsumable.hide()
@@ -581,8 +583,9 @@
581 583
           //新增
582 584
           createGoodInfo(val).then(response => {
583 585
             if (response.data.state == 0) {
584
-              this.$message.error(response.data.msg)
585
-              return false
586
+              // this.$message.error(response.data.msg)
587
+              // return false
588
+              this.$message.error("同一耗材类型同一规格名称不能重复录入!")
586 589
             } else {
587 590
               this.$refs.addConsumable.hide()
588 591
               this.getList()

+ 2 - 3
src/xt_pages/data/components/drugs.vue Parādīt failu

@@ -372,10 +372,9 @@
372 372
         // this.$refs.maintain.show();
373 373
       },
374 374
       openForm(id) {
375
-
375
+        this.current_id = id
376 376
         this.getAllManufacturer()
377 377
         if (id > 0) {
378
-          this.current_id = id
379 378
           let params = {
380 379
             id: this.current_id
381 380
           }
@@ -462,7 +461,7 @@
462 461
           }
463 462
           this.$refs.addDrugs.show(0, this.formValue)
464 463
         }
465
-      }, 
464
+      },
466 465
 
467 466
        deleteDurg(id,index){
468 467
          console.log("id",id)

+ 2 - 1
src/xt_pages/data/components/project.vue Parādīt failu

@@ -107,7 +107,7 @@ export default {
107 107
               {value:2,label:'否'}
108 108
             ],
109 109
             value: '',
110
-            limit:20,
110
+            limit:10,
111 111
             page:1,
112 112
             total:0,
113 113
             tableData: [],
@@ -177,6 +177,7 @@ export default {
177 177
                console.log('projectlist',projecList)
178 178
                this.tableData = projecList
179 179
                var total = response.data.data.total
180
+               console.log("total-----",total)
180 181
                this.total = total
181 182
              }
182 183
           })  

+ 37 - 13
src/xt_pages/dialysis/PatientBox.vue Parādīt failu

@@ -28,26 +28,37 @@
28 28
             <span class="num"
29 29
               >{{ genderText(schedule) }} | {{ getAge(schedule) }} 岁</span
30 30
             >
31
+            <div style="margin-left:10px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div>
31 32
           </div>
32 33
           <div style="margin-top:5px;text-align:left;height:24px;">
33
-              <span class="tip1" v-if="schedule.prescription == null || schedule.prescription.creater == 0" @click.stop="open(schedule)">
34
-                开处方
35
-              </span>
36
-              <span class="tip2" v-if="schedule.treatment_summary == null || schedule.treatment_summary.dialysis_summary == ''" @click.stop="open1(schedule)">
37
-                开小结
38
-              </span>
39
-            </div>
34
+            <span class="tip1" v-if="schedule.prescription == null || schedule.prescription.creater == 0" @click.stop="open(schedule)">
35
+              开处方
36
+            </span>
37
+            <span class="tip2" v-if="schedule.treatment_summary == null || schedule.treatment_summary.dialysis_summary == ''" @click.stop="open1(schedule)">
38
+              开小结
39
+            </span>
40
+            <span class="online" v-show="computeState(schedule) != 4">
41
+              <span :class="stateColor(schedule)">{{ stateText(schedule) }}</span>
42
+            </span>
43
+          </div>
40 44
         </div>
41 45
         </div>
42 46
         <div>
43
-          <div style="height:24px;margin-right: 10px;">
47
+          <!-- <div style="height:24px;margin-right: 10px;">
44 48
             <div class="online" v-show="computeState(schedule) != 4">
45 49
               <p :class="stateColor(schedule)">{{ stateText(schedule) }}</p>
46 50
             </div>
47
-          </div>
48
-          <div style="margin-top:13px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div>
51
+          </div> -->
52
+          <!-- <div style="margin-top:13px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div> -->
49 53
         </div>
50 54
       </div>
55
+      <div class="dislysisInfo">
56
+        <p>体重(前/后kg):{{ schedule.assessment_before_dislysis ? schedule.assessment_before_dislysis.weight_before : '' }}/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</p>
57
+        <p>目标超滤量:{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}
58
+       
59
+        </p>
60
+        <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">透析器/灌流器:{{ schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : '' }}</p>
61
+      </div>
51 62
       <div class="function" :class="functionColor(schedule)" :id="modeColor(schedule.mode_id)">
52 63
         <ul>
53 64
           <li>
@@ -116,6 +127,7 @@
116 127
 </template>
117 128
 
118 129
 <script>
130
+
119 131
 import { parseTime } from "@/utils";
120 132
 import { jsGetAge } from "@/utils/tools";
121 133
 import dialysisPrescriptionDialog from "../dialysis/details/dialog/dialysisPrescriptionDialog";
@@ -675,12 +687,12 @@ export default {
675 687
     // @include align-items-center;
676 688
     @include text-align;
677 689
     @include justify-content-between;
678
-    border-bottom: 1px #e5e5e5 solid;
690
+    // border-bottom: 1px #e5e5e5 solid;
679 691
     padding: 0 0 10px 20px;
680 692
     .tx {
681 693
       @include display-flex;
682 694
       // @include align-items-center;
683
-      width: 60%;
695
+      width: 90%;
684 696
       img {
685 697
         width: 45px;
686 698
         height: 45px;
@@ -749,7 +761,7 @@ export default {
749 761
       text-align: center;
750 762
       width: 30%;
751 763
       // border-left: 1px #e5e5e5 solid;
752
-      p {
764
+      span {
753 765
         background: #c6cdd2;
754 766
         color: #fff;
755 767
         width: 65px;
@@ -759,6 +771,7 @@ export default {
759 771
         margin: 0 auto;
760 772
         font-size: 12px;
761 773
         margin-top:4px;
774
+        display: inline-block;
762 775
       }
763 776
       .blue {
764 777
         background: $main-color;
@@ -781,6 +794,17 @@ export default {
781 794
       }
782 795
     }
783 796
   }
797
+  .dislysisInfo{
798
+    color: rgb(123, 138, 151);
799
+    border-bottom: 1px solid rgb(229, 229, 229);
800
+    padding-left: 80px;
801
+    >p{
802
+      margin-bottom: 5px;
803
+      overflow:hidden;
804
+      text-overflow:ellipsis;
805
+      white-space:nowrap;
806
+    }
807
+  }
784 808
 }
785 809
 .red {
786 810
   border: 1px #ff7979 solid;

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

@@ -249,6 +249,17 @@
249 249
                         <!--"-->
250 250
                         <!--&gt;</check-box>-->
251 251
                       </div>
252
+                      <div v-if="org_id == 9987" class="inline_block" style="width:200px;margin-left: 30px;">
253
+                          透前血压:
254
+                          <span class="under_line" style="width:50px;">
255
+                              &nbsp;{{ record.assessment_before_dislysis.systolic_blood_pressure ? record.assessment_before_dislysis.systolic_blood_pressure : ""}}
256
+                          </span>
257
+                          <span style='width:10px'>/</span>
258
+                          <span class="under_line" style="width:50px;">
259
+                              &nbsp;{{ record.assessment_before_dislysis.diastolic_blood_pressure ? record.assessment_before_dislysis.diastolic_blood_pressure : "" }}
260
+                          </span>
261
+                          <span style='width:30px'>mmHg</span>
262
+                        </div>
252 263
                     </div>
253 264
                     <div class="row" style="padding: 2px 0;">
254 265
                       <div class="inline_block">
@@ -1399,6 +1410,17 @@
1399 1410
                             )
1400 1411
                           "
1401 1412
                         ></check-box>
1413
+                        <check-box
1414
+                          v-if="org_id == 9987"
1415
+                          text="低血糖"
1416
+                          :checked="
1417
+                            isValueIndexOfCheck(
1418
+                              record.assessment_after_dislysis,
1419
+                              'complication',
1420
+                              '低血糖'
1421
+                            )
1422
+                          "
1423
+                        ></check-box>
1402 1424
                       </div>
1403 1425
                     </div>
1404 1426
                     <div class="row" style="padding: 2px 0;">
@@ -1960,6 +1982,7 @@ export default {
1960 1982
   },
1961 1983
   created() {
1962 1984
     var xtuser = this.$store.getters.xt_user;
1985
+    this.org_id = xtuser.org.id
1963 1986
     this.orgname = xtuser.org.org_name;
1964 1987
     //   this.orgname = "遂溪方济医院";
1965 1988
     this.modeOptions = this.$store.getters.treatment_mode;

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue Parādīt failu

@@ -1301,7 +1301,7 @@
1301 1301
 
1302 1302
             this.records = this.records.concat(resp.data.schedules)
1303 1303
 
1304
-              console.log('记录', this.records)
1304
+              // console.log('记录', this.records)
1305 1305
 
1306 1306
             for (const recordIndex in this.records) {
1307 1307
               var dlegh = 0

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

@@ -979,6 +979,8 @@
979 979
                           <td width="50">血流量<br />(ml/min)</td>
980 980
                           <td width="50">静脉压<br />(mmHg)</td>
981 981
                           <td width="50">跨膜压<br />(mmHg)</td>
982
+                          <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
983
+                          <td width="60" v-if="org_id == 9836">体温(°C)</td>
982 984
                           <td width="60">透析液温度(°C)</td>
983 985
                           <td width="50">电导度<br />(ms/cm)</td>
984 986
                           <td width="50">超滤量<br />(ml)</td>
@@ -1049,13 +1051,20 @@
1049 1051
                                 : ""
1050 1052
                             }}
1051 1053
                           </td>
1052
-                          <td>
1054
+                          <td v-if="org_id != 9836">
1053 1055
                             {{
1054 1056
                               monitor_record.dialysate_temperature
1055 1057
                                 ? monitor_record.dialysate_temperature
1056 1058
                                 : ""
1057 1059
                             }}
1058 1060
                           </td>
1061
+                          <td v-if="org_id == 9836">
1062
+                            {{
1063
+                              monitor_record.temperature
1064
+                                ? monitor_record.temperature
1065
+                                : ""
1066
+                            }}
1067
+                          </td>
1059 1068
                           <td>
1060 1069
                             {{
1061 1070
                               monitor_record.sodium_concentration
@@ -2023,7 +2032,8 @@ export default {
2023 2032
         "出血",
2024 2033
         "心衰",
2025 2034
         "腹痛"
2026
-      ]
2035
+      ],
2036
+      org_id:''
2027 2037
     };
2028 2038
   },
2029 2039
   created() {
@@ -2037,6 +2047,7 @@ export default {
2037 2047
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
2038 2048
     var xtuser = this.$store.getters.xt_user;
2039 2049
     this.orgname = xtuser.org.org_name;
2050
+    this.org_id = this.$store.getters.xt_user.org.id
2040 2051
     //   this.orgname = "遂溪方济医院";
2041 2052
     this.modeOptions = this.$store.getters.treatment_mode;
2042 2053
     //   this.replacementWays = this.$store.getters.replacement_ways;

+ 325 - 70
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue Parādīt failu

@@ -16,69 +16,180 @@
16 16
           <div v-for="(record, index) in records" :key="record.id" class="print_page_main_content">
17 17
               <div id="dialysis-print-box-1">
18 18
                 <div id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content">
19
-                <div style="width:100%;text-align:center;">
19
+                <!-- <div style="width:100%;text-align:center;">
20 20
                     <div
21 21
                     class="order-yy-name"
22 22
                     style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
23 23
                     >
24 24
                     {{ orgname }}
25 25
                     </div>
26
-                </div>
26
+                </div> -->
27 27
                 <div style="display:inline-block;width:100%;text-align:center;">
28 28
                     <div
29 29
                     class="order-title"
30 30
                     style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
31 31
                     >
32
-                    血液净化治疗记录单
32
+                    {{ orgname }}  血液净化治疗记录单
33 33
                     </div>
34 34
                 </div>
35 35
                 <div class="row" style="display:flex;justify-content: space-between;">
36
-                    <div class="inline_block" style="margin-right:30px;">
36
+                    <div class="inline_block" style="margin-right:5px;">
37 37
                         日期 <div class="inline_block under_line" style="width:50px">{{ getTime(record.schedule_date, "{y}") }}</div>年
38 38
                         <div class="inline_block under_line" style="width:50px">{{ getTime(record.schedule_date, "{m}") }}</div>月
39 39
                         <div class="inline_block under_line" style="width:50px">{{ getTime(record.schedule_date, "{d}") }}</div>日
40 40
                     </div>
41
-                    <div class="inline_block" style="margin-right:30px;">
42
-                        机器编号 
43
-                        <div class="inline_block under_line" style="width:80px;">
44
-                          {{ record.device_zone.name && record.device_number.number ? getNewNumber(record.device_zone.name,record.device_number.number) : '' }}
45
-                        <!-- {{ record.device_zone.name && record.device_number.number ? record.device_zone.name + record.device_number.number : '' }} -->
46
-                        </div>
47
-                    </div>
48
-                    <div class="inline_block" style="margin-right:30px;">
49
-                        病案号 <div class="inline_block under_line" style="width:80px">{{ record.patient.dialysis_no }}</div>
50
-                    </div>
51
-                </div>
52
-                <div style="border-bottom: 2px solid #000;width:100%;"></div>
53
-                <div class="row">
54
-                    <div class="inline_block" style="margin-right:30px;">
41
+                    <div class="inline_block" style="margin-right:5px;">
55 42
                         姓名 
56 43
                         <div class="inline_block under_line" style="width:100px;text-align: center;">
57 44
                             {{ record.patient.name ? record.patient.name : "" }}
58 45
                         </div>
59 46
                     </div>
60
-                    <div class="inline_block" style="margin-right:30px;">
47
+                    <div class="inline_block" style="margin-right:5px;">
61 48
                         性别&nbsp;&nbsp;&nbsp;&nbsp;
62 49
                         <label-box :isChecked="record.patient.gender == 1" showValue="男" ></label-box>&nbsp;
63 50
                         <label-box :isChecked="record.patient.gender == 2" showValue="女" ></label-box>
64 51
                     </div>
65
-                    <div class="inline_block" style="margin-right:30px;">
52
+                    <div class="inline_block" style="margin-right:5px;">
66 53
                         年龄:
67 54
                         <div class="under_line" style="width: 50px;text-align: center">
68 55
                             {{ getNewAge(record.patient.id_card_no) }}
69 56
                         </div>
70 57
71 58
                     </div>
59
+                    <div class="inline_block" style="margin-right:5px;">
60
+                        机器编号 
61
+                        <div class="inline_block under_line" style="width:80px;">
62
+                          {{ record.device_zone.name && record.device_number.number ? getNewNumber(record.device_zone.name,record.device_number.number) : '' }}
63
+                        <!-- {{ record.device_zone.name && record.device_number.number ? record.device_zone.name + record.device_number.number : '' }} -->
64
+                        </div>
65
+                    </div>
66
+                    <div class="inline_block">
67
+                        病案号 <div class="inline_block under_line" style="width:80px">{{ record.patient.dialysis_no }}</div>
68
+                    </div>
72 69
                 </div>
70
+                <div style="border-bottom: 2px solid #000;width:100%;"></div>
73 71
                 <div class="row">
74 72
                     <div class="inline_block" style="margin-right:30px;">
75 73
                         血液净化方式 
76
-                        <div class="inline_block under_line" style="width:300px;text-align: center;">
77
-                            <label-box :isChecked="record.prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;&nbsp;&nbsp;&nbsp;
78
-                            <label-box :isChecked="record.prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;&nbsp;&nbsp;&nbsp;
79
-                            <!-- <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>
80
-                            <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box> -->
81
-                            <label-box :isChecked="record.prescription.mode_id == 3 ? true : false" showValue="HD+HP"></label-box>
74
+                        <div
75
+                          class="under_line"
76
+                          style="width: 100px;text-align: center;font-weight:600;"
77
+                          v-if="!record.prescription"
78
+                        ></div>
79
+                        <div
80
+                          v-if="record.prescription"
81
+                          style="display: inline-block;"
82
+                        >
83
+                          <div
84
+                            class="under_line"
85
+                            style="width: 100px;text-align: center;font-weight:600;"
86
+                            v-if="!record.prescription.mode_id"
87
+                          ></div>
88
+                          <div
89
+                            class="under_line"
90
+                            style="width: 100px;text-align: center;font-weight:600;"
91
+                            v-if="record.prescription.mode_id == 1"
92
+                          >
93
+                            HD
94
+                          </div>
95
+                          <div
96
+                            class="under_line"
97
+                            style="width: 100px;text-align: center;font-weight:600;"
98
+                            v-if="record.prescription.mode_id == 2"
99
+                          >
100
+                            HDF
101
+                          </div>
102
+                          <div
103
+                            class="under_line"
104
+                            style="width: 100px;text-align: center;font-weight:600;"
105
+                            v-if="record.prescription.mode_id == 3"
106
+                          >
107
+                            HD+HP
108
+                          </div>
109
+                          <div
110
+                            class="under_line"
111
+                            style="width: 100px;text-align: center;font-weight:600;"
112
+                            v-if="record.prescription.mode_id == 4"
113
+                          >
114
+                            HP
115
+                          </div>
116
+                          <div
117
+                            class="under_line"
118
+                            style="width: 100px;text-align: center;font-weight:600;"
119
+                            v-if="record.prescription.mode_id == 5"
120
+                          >
121
+                            HF
122
+                          </div>
123
+                          <div
124
+                            class="under_line"
125
+                            style="width: 100px;text-align: center;font-weight:600;"
126
+                            v-if="record.prescription.mode_id == 6"
127
+                          >
128
+                            SCUF
129
+                          </div>
130
+                          <div
131
+                            class="under_line"
132
+                            style="width: 100px;text-align: center;font-weight:600;"
133
+                            v-if="record.prescription.mode_id == 7"
134
+                          >
135
+                            IUF
136
+                          </div>
137
+                          <div
138
+                            class="under_line"
139
+                            style="width: 100px;text-align: center;font-weight:600;"
140
+                            v-if="record.prescription.mode_id == 8"
141
+                          >
142
+                            HFHD
143
+                          </div>
144
+                          <div
145
+                            class="under_line"
146
+                            style="width: 100px;text-align: center;font-weight:600;"
147
+                            v-if="record.prescription.mode_id == 9"
148
+                          >
149
+                            HFHD+HP
150
+                          </div>
151
+                          <div
152
+                            class="under_line"
153
+                            style="width: 100px;text-align: center;font-weight:600;"
154
+                            v-if="record.prescription.mode_id == 10"
155
+                          >
156
+                            PHF
157
+                          </div>
158
+                          <div
159
+                            class="under_line"
160
+                            style="width: 100px;text-align: center;font-weight:600;"
161
+                            v-if="record.prescription.mode_id == 11"
162
+                          >
163
+                            HFR
164
+                          </div>
165
+                          <div
166
+                            class="under_line"
167
+                            style="width: 100px;text-align: center;font-weight:600;"
168
+                            v-if="record.prescription.mode_id == 12"
169
+                          >
170
+                            HDF+HP
171
+                          </div>
172
+                          <div
173
+                            class="under_line"
174
+                            style="width: 100px;text-align: center;font-weight:600;"
175
+                            v-if="record.prescription.mode_id == 13"
176
+                          >
177
+                            CRRT
178
+                          </div>
179
+                          <div
180
+                            class="under_line"
181
+                            style="width: 100px;text-align: center;font-weight:600;"
182
+                            v-if="record.prescription.mode_id == 14"
183
+                          >
184
+                            腹水回输
185
+                          </div>
186
+                          <div
187
+                            class="under_line"
188
+                            style="width: 100px;text-align: center;font-weight:600;"
189
+                            v-if="record.prescription.mode_id == 19"
190
+                          >
191
+                            IUF+HD
192
+                          </div>
82 193
                         </div>
83 194
                     </div>
84 195
                     <div class="inline_block" style="margin-right:30px;">
@@ -87,6 +198,12 @@
87 198
                             {{ record.prescription.dialyzer_perfusion_apparatus ? record.prescription.dialyzer_perfusion_apparatus : ''}}
88 199
                         </div>
89 200
                     </div>
201
+                    <div class="inline_block" style="margin-right:30px;">
202
+                        透析液配方 
203
+                        <div class="inline_block under_line" style="width:150px;text-align: center;">
204
+                            {{ record.prescription.dialysate_formulation ? dialysateFormulationName(record.prescription.dialysate_formulation) : ''}}
205
+                        </div>
206
+                    </div>
90 207
                 </div>
91 208
                 <div class="row">
92 209
                     血管通路 
@@ -118,6 +235,20 @@
118 235
                     &nbsp;
119 236
                     </div>
120 237
                 </div>
238
+                <div class="row">
239
+                  <div class="inline_block" style="margin-right:30px;">
240
+                      导管 
241
+                      <div class="inline_block under_line" style="width:200px;text-align: left;">
242
+                          {{ record.assessment_before_dislysis.catheter ? record.assessment_before_dislysis.catheter : ''}}
243
+                      </div>
244
+                  </div>
245
+                  <div class="inline_block" style="margin-right:30px;">
246
+                      内瘘 
247
+                      <div class="inline_block under_line" style="width:200px;text-align: left;">
248
+                          {{ record.assessment_before_dislysis.internal_fistula ? record.assessment_before_dislysis.internal_fistula : ''}}
249
+                      </div>
250
+                  </div>
251
+                </div>
121 252
                 <div class="row">
122 253
                     抗凝药物 
123 254
                     <div class="inline_block under_line" style="width:92%;text-align: left;">
@@ -211,29 +342,88 @@
211 342
                 </div>
212 343
                 <div class="row">
213 344
                     透前评估 
214
-                    <div class="inline_block under_line" style="width:92%;text-align: left;">
215
-                    <div class="inline_block" style="margin-right:30px;">
216
-                        体温
217
-                        <div class="inline_block" style="width:50px;text-align:center">
218
-                        {{ record.assessment_before_dislysis.temperature ? record.assessment_before_dislysis.temperature : "" }}
219
-                        </div>℃
220
-                    </div>
221
-                    <div class="inline_block" style="margin-right:30px;">
222
-                        血压
223
-                        <div class="inline_block" style="width:100px;text-align:center">
224
-                        {{ record.assessment_before_dislysis.systolic_blood_pressure ? record.assessment_before_dislysis.systolic_blood_pressure : "" }}/
225
-                        {{ record.assessment_before_dislysis.diastolic_blood_pressure ? record.assessment_before_dislysis.diastolic_blood_pressure : "" }}
226
-                        </div>mmHg
227
-                    </div>
228
-                    <div class="inline_block" style="margin-right:30px;">
229
-                        脉搏
230
-                        <div class="inline_block" style="width:50px;text-align:center">
231
-                        {{ record.assessment_before_dislysis.pulse_frequency ? record.assessment_before_dislysis.pulse_frequency : "" }}
232
-                        </div>次/分
233
-                    </div>
345
+                    <div class="inline_block under_line" style="width:50%;text-align: left;">
346
+                      <div class="inline_block" style="margin-right:30px;">
347
+                          体温
348
+                          <div class="inline_block" style="width:50px;text-align:center">
349
+                          {{ record.assessment_before_dislysis.temperature ? record.assessment_before_dislysis.temperature : "" }}
350
+                          </div>℃
351
+                      </div>
352
+                      <div class="inline_block" style="margin-right:30px;">
353
+                          血压
354
+                          <div class="inline_block" style="width:100px;text-align:center">
355
+                          {{ record.assessment_before_dislysis.systolic_blood_pressure ? record.assessment_before_dislysis.systolic_blood_pressure : "" }}/
356
+                          {{ record.assessment_before_dislysis.diastolic_blood_pressure ? record.assessment_before_dislysis.diastolic_blood_pressure : "" }}
357
+                          </div>mmHg
358
+                      </div>
359
+                      <div class="inline_block" style="margin-right:30px;">
360
+                          脉搏
361
+                          <div class="inline_block" style="width:50px;text-align:center">
362
+                          {{ record.assessment_before_dislysis.pulse_frequency ? record.assessment_before_dislysis.pulse_frequency : "" }}
363
+                          </div>次/分
364
+                      </div>
365
+                      入室方式
366
+                      <div class="inline_block under_line" style="width:80px;text-align: center;margin-right:30px;">&nbsp;
367
+                        <span v-if='record.receive_assessment.way == 1'>步行</span>
368
+                        <span v-if='record.receive_assessment.way == 2'>扶行</span>
369
+                        <span v-if='record.receive_assessment.way == 3'>轮椅</span>
370
+                        <span v-if='record.receive_assessment.way == 4'>平车</span>
371
+                      </div>
372
+                      透析频次(次/周)
373
+                      <div class="inline_block under_line" style="width:80px;text-align: center;">
374
+                        {{ record.assessment_before_dislysis.dialysis_count ? record.assessment_before_dislysis.dialysis_count : "" }}
375
+                      </div>
234 376
             
235 377
                     </div>
236 378
                 </div>
379
+                <div class="row">
380
+                  透析前症状
381
+                  <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
382
+                    {{ record.assessment_before_dislysis.symptom_before_dialysis ? record.assessment_before_dislysis.symptom_before_dialysis : "" }}
383
+                  </div>
384
+                  水肿
385
+                  <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
386
+                    {{ record.assessment_before_dislysis.edema ? record.assessment_before_dislysis.edema : "" }}
387
+                  </div>
388
+                  出血
389
+                  <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
390
+                    {{ record.assessment_before_dislysis.is_hemorrhage == 1 && record.assessment_before_dislysis.hemorrhage ? record.assessment_before_dislysis.hemorrhage : "" }}
391
+                  </div>
392
+                  跌倒风险预防措施
393
+                  <div class="inline_block under_line" style="width:100px;text-align: center;">
394
+                    {{ record.receive_assessment.precaution ? record.receive_assessment.precaution : '' }}
395
+                  </div>
396
+                </div>
397
+                <div class="row">
398
+                  上机医生
399
+                  <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
400
+                    <span v-if="setAdminUserES(record.prescription, 'prescription_doctor') == ''">{{getAdminUser(record.prescription, 'prescription_doctor')}}</span>
401
+                    <span v-else>
402
+                      <img class="es-img" style="height:30px;" :src="setAdminUserES(record.prescription, 'prescription_doctor')" />
403
+                    </span>
404
+                  </div>
405
+                  冲管护士
406
+                  <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
407
+                    <span v-if="setAdminUserES(record.dialysis_order, 'washpipe_nurse') == ''">{{getAdminUser(record.dialysis_order, 'washpipe_nurse')}}</span>
408
+                    <span v-else>
409
+                      <img class="es-img" style="height:30px;" :src="setAdminUserES(record.dialysis_order, 'washpipe_nurse')" />
410
+                    </span>
411
+                  </div>
412
+                  穿刺者
413
+                  <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
414
+                    <span v-if="setAdminUserES(record.dialysis_order, 'puncture_nurse') == ''">{{getAdminUser(record.dialysis_order, 'puncture_nurse')}}</span>
415
+                    <span v-else>
416
+                      <img class="es-img" style="height:30px;" :src="setAdminUserES(record.dialysis_order, 'puncture_nurse')" />
417
+                    </span>
418
+                  </div>
419
+                  上机护士
420
+                  <div class="inline_block under_line" style="width:100px;text-align: center;">
421
+                    <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
422
+                    <span v-else>
423
+                      <img class="es-img" style="height:30px;" :src="setAdminUserES(record.dialysis_order, 'start_nurse')" />
424
+                    </span>
425
+                  </div>
426
+                </div>
237 427
 
238 428
                 <table class="print-table" border="1">
239 429
                     <tr>
@@ -325,9 +515,9 @@
325 515
                         <td width="60">TMP</td>
326 516
                         <td width="60">电导率</td>
327 517
                         <td width="40">温度</td>
328
-                        <td width="60">透析液流量</td>
518
+                        <td width="40">透析液流量</td>
329 519
                         <td width="60">UF/hr</td>
330
-                        <td width="100">症状处理</td>
520
+                        <td width="200">病情变化处理方式及结果</td>
331 521
                         </tr>
332 522
 
333 523
 
@@ -349,7 +539,7 @@
349 539
                                 {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }}
350 540
                             </span>
351 541
                         </td>
352
-                        <td>&nbsp;{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
542
+                        <td>&nbsp;{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
353 543
                         <td>
354 544
                             <span v-if="monitor.symptom || monitor.dispose || monitor.result">
355 545
                                 {{ monitor.symptom + "," + monitor.dispose + "," + monitor.result }}
@@ -362,14 +552,14 @@
362 552
                 <table class="print-table" border="1">
363 553
                     <tbody>
364 554
                     <tr>
365
-                        <td width="40" rowspan="2" style="padding-left:5px;border:none;border-right:1px solid #000;">
555
+                        <td width="70" rowspan="3" style="padding-left:5px;border:none;border-right:1px solid #000;">
366 556
                         透后评估
367 557
                         </td>
368 558
 
369 559
                         <td width="25" style="border:none;padding-left:5px;">
370 560
                         体温:
371 561
                         </td>
372
-                        <td width="30" style="text-align:left;border:none;">
562
+                        <td width="70" style="text-align:left;border:none;">
373 563
                         <div>
374 564
                             <span class="under_line" style="width:50px;display:inline-block;">
375 565
                             {{ record.assessment_after_dislysis.temperature ? record.assessment_after_dislysis.temperature : "" }}
@@ -378,8 +568,8 @@
378 568
                         </td>
379 569
                         <!-- <td width="10" style="border:none;"></td> -->
380 570
 
381
-                        <td width="25" style="border:none;padding-left:5px;">血压:</td>
382
-                        <td width="70" style="text-align:left;border:none;line-height: 30px;">
571
+                        <td width="20" style="border:none;padding-left:5px;">血压:</td>
572
+                        <td width="60" style="text-align:left;border:none;line-height: 30px;">
383 573
                         <div>
384 574
                             <span class="under_line" style="width:100px;display:inline-block">
385 575
                             {{ record.assessment_after_dislysis.systolic_blood_pressure ? record.assessment_after_dislysis.systolic_blood_pressure : "" }}/
@@ -387,34 +577,85 @@
387 577
                             </span>mmHg
388 578
                         </div>
389 579
                         </td>
390
-                        <td width="25" style="border:none;padding-left:5px">脉搏:</td>
391
-                        <td width="55" style="text-align:left;border:none;">
580
+                        <td width="10" style="border:none;padding-left:5px">脉搏:</td>
581
+                        <td width="80" style="text-align:left;border:none;">
392 582
                         <div>
393 583
                             <span class="under_line" style="width:50px;display:inline-block">
394 584
                             {{ record.assessment_after_dislysis.pulse_frequency ? record.assessment_after_dislysis.pulse_frequency : "" }}
395 585
                             </span>次/分
396 586
                         </div>
397 587
                         </td>
588
+                        <td width="50" style="border:none;padding-left:5px">透后症状:</td>
589
+                        <td width="100" style="text-align:left;border:none;">
590
+                          <div>
591
+                            <span class="under_line" style="width:100px;display:inline-block">
592
+                              {{ record.assessment_after_dislysis.symptom_after_dialysis ? record.assessment_after_dislysis.symptom_after_dialysis : "" }}
593
+                            </span>
594
+                          </div>
595
+                        </td>
398 596
                         
399 597
                     </tr>
400 598
                     <tr>
401
-                      <td width="50" style="border:none;padding-left:5px">实际置换量:</td>
599
+                      <td width="90" style="border:none;padding-left:5px">实际置换量:</td>
402 600
                         <td width="30" style="text-align:left;border:none;">
403 601
                         <div>
404 602
                             <span class="under_line" style="width:50px;display:inline-block">
405 603
                             {{ record.assessment_after_dislysis.actual_displacement ? record.assessment_after_dislysis.actual_displacement : "" }}
406
-                            </span>次/分
604
+                            </span>L
407 605
                         </div>
408 606
                         </td>
409
-                        <td width="50" style="border:none;padding-left:5px">透析器凝血:</td>
410
-                        <td width="110" style="text-align:left;border:none;">
607
+                        <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
608
+                        <td width="200" style="text-align:left;border:none;">
411 609
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-0度') > -1 ? true : false) : false" showValue="0"></label-box>
412 610
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false) : false" showValue="+"></label-box>
413 611
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false) : false" showValue="+ +"></label-box>
414 612
                         <label-box :isChecked="record.assessment_after_dislysis.cruor ? (record.assessment_after_dislysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false) : false" showValue="+ + +"></label-box>
415 613
                         </td>
416
-                        <td width="50" style="text-align:left;border:none;"></td>
417
-                        <td width="110" style="text-align:left;border:none;"></td>
614
+                        <!-- <td width="50" style="text-align:left;border:none;"></td>
615
+                        <td width="110" style="text-align:left;border:none;"></td> -->
616
+
617
+                        <td width="100" style="border:none;padding-left:5px">透析期间进食:</td>
618
+                        <td width="50" style="text-align:left;border:none;">
619
+                          <div>
620
+                            <span class="under_line" style="width:50px;display:inline-block">
621
+                              <span v-if='record.assessment_after_dislysis.is_eat == 1'>是</span>
622
+                              <span v-if='record.assessment_after_dislysis.is_eat == 2'>否</span>
623
+                            </span>
624
+                          </div>
625
+                        </td>
626
+                        <td width="70" style="border:none;padding-left:5px">透析进食:</td>
627
+                        <td width="50" style="text-align:left;border:none;">
628
+                          <div>
629
+                            <span class="under_line" style="width:50px;display:inline-block">
630
+                              {{ record.assessment_after_dislysis.is_eat == 1 && record.assessment_after_dislysis.dialysis_during ? record.assessment_after_dislysis.dialysis_during : '' }}
631
+                            </span>ml
632
+                          </div>
633
+                        </td>
634
+                    </tr>
635
+                    <tr style="height:30px;line-height:30px;">
636
+                      <td width="20" style="border:none;padding-left:5px;">内瘘:</td>
637
+                      <td width="150" colspan="3" style="text-align:left;border:none;">
638
+                        <div>
639
+                          <span class="under_line" style="width:150px;display:inline-block;">
640
+                            {{ record.assessment_after_dislysis.internal_fistula ? record.assessment_after_dislysis.internal_fistula : "" }}
641
+                          </span>
642
+                        </div>
643
+                      </td>
644
+                      <td width="50" style="border:none;padding-left:5px">下机护士:</td>
645
+                      <td width="100" style="text-align:left;border:none;">
646
+                        <div>
647
+                          <span class="under_line" style="width:100px;display:inline-block">
648
+                            <span v-if="setAdminUserES(record.dialysis_order, 'finish_nurse') == ''">{{getAdminUser(record.dialysis_order, 'finish_nurse')}}</span>
649
+                            <span v-else>
650
+                              <img class="es-img" style="height:30px;" :src="setAdminUserES(record.dialysis_order, 'finish_nurse')" />
651
+                            </span>
652
+                          </span>
653
+                        </div>
654
+                      </td>
655
+                      <td width="10" style="text-align:left;border:none;"></td>
656
+                      <td width="110" style="text-align:left;border:none;"></td>
657
+                      <!-- <td width="110" style="text-align:left;border:none;"></td> -->
658
+                      <!-- <td width="110" style="text-align:left;border:none;"></td> -->
418 659
                     </tr>
419 660
                     </tbody>
420 661
                 </table>
@@ -422,7 +663,7 @@
422 663
                 <table class="print-table" border="1">
423 664
                     <tr style="height:36px;text-align:left;border:none;">
424 665
                     <td style="padding-left:5px;border:none">
425
-                        <p style="margin-bottom:160px">
666
+                        <p style="margin-bottom:30px">
426 667
                             透析小结:{{ record.summer&&record.summer.dialysis_summary.length>0 ? record.summer.dialysis_summary : "" }}
427 668
                         </p>
428 669
                     </td>
@@ -436,20 +677,28 @@
436 677
                                 <img :src="setAdminUserES(record.dialysis_order, 'start_nurse')" style="height:30px;" />
437 678
                             </span>
438 679
                         </span>
439
-                        校对护士
680
+                        二核护士
440 681
                         <span style="display: inline-block;width:100px;text-align: left;">
441 682
                         &nbsp;
442
-                        <span v-if="setAdminUserES(record.check, 'modifier') == ''">
443
-                            {{getAdminUser(record.check, 'modifier') ? getAdminUser(record.check, 'modifier') : ""}}
683
+                        <span v-if="record.check != null ? record.dialysis_order.start_nurse != record.check.modifier : false">
684
+                            <span v-if="setAdminUserES(record.check, record.check == null ? 0 : 'modifier') == ''">
685
+                            {{ getAdminUser(record.check, record.check == null ? 0 : 'modifier') }}
686
+                            </span>
687
+                            <img style="height:30px;" :src="setAdminUserES(record.check, record.check == null ? 0 : 'modifier')" alt srcset v-else />
688
+                        </span>
689
+                        <span v-else>
690
+                            <span v-if="setAdminUserES(record.check, record.check == null ? 0 : 'creater') == ''">
691
+                            {{ getAdminUser(record.check, "creater") }}
692
+                            </span>
693
+                            <img style="height:30px;" :src="setAdminUserES(record.check, record.check == null ? 0 : 'creater')" alt srcset v-else />
444 694
                         </span>
445
-                        <img style="height:30px;" :src="setAdminUserES(record.check, 'modifier')" alt srcset v-else />
446 695
                         </span>
447 696
                         医生签名
448 697
                         <span style="display: inline-block;width:100px;text-align: left;">
449 698
                         &nbsp;
450
-                        <span v-if="setAdminUserES(record.prescription, 'creater') == ''">{{getAdminUser(record.prescription, 'creater')}}</span>
699
+                        <span v-if="setAdminUserES(record.summer, record.summer ? (record.summer.modifier ? 'modifier' : 'creater') : false) == ''">{{getAdminUser(record.summer, record.summer ? (record.summer.modifier ? 'modifier' : 'creater') : false)}}</span>
451 700
                         <span v-else>
452
-                            <img class="es-img" style="height:30px;" :src="setAdminUserES(record.prescription, 'creater')" />
701
+                            <img class="es-img" style="height:30px;" :src="setAdminUserES(record.summer, record.summer ? (record.summer.modifier ? 'modifier' : 'creater') : false)" />
453 702
                         </span>
454 703
                         </span>
455 704
                         
@@ -630,9 +879,9 @@ export default {
630 879
             var delghTwo = 0
631 880
             if (
632 881
               this.records[recordIndex].advices &&
633
-              this.records[recordIndex].advices.length < 14
882
+              this.records[recordIndex].advices.length < 16
634 883
             ) {
635
-              delghTwo = 14 - this.records[recordIndex].advices.length
884
+              delghTwo = 16 - this.records[recordIndex].advices.length
636 885
             } else {
637 886
               delghTwo = 0
638 887
             }
@@ -743,6 +992,12 @@ export default {
743 992
       })
744 993
   },
745 994
   methods: {
995
+    dialysateFormulationName(id) {
996
+      if (id in this.dialysateFormulationOptions) {
997
+        return this.dialysateFormulationOptions[id].name
998
+      }
999
+      return ''
1000
+    },
746 1001
     getNewNumber(name, number) {
747 1002
       if (name.indexOf('区') > -1) {
748 1003
         return (

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


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


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


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


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


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


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


+ 119 - 17
src/xt_pages/dialysis/bloodPresssWatch.vue Parādīt failu

@@ -12,7 +12,7 @@
12 12
           >打印</el-button
13 13
         >
14 14
       </template>
15
-      <template v-if="this.template_id == 2 || this.template_id == 0">
15
+      <template v-if="this.template_id == 2 || this.template_id == 0 || this.template_id == 33">
16 16
         <div>
17 17
           <el-button
18 18
             :loading="loading"
@@ -199,6 +199,46 @@
199 199
           >
200 200
         </div>
201 201
       </template>
202
+      <template v-if="this.template_id == 25">
203
+        <el-button
204
+          size="small"
205
+          icon="el-icon-printer"
206
+          :disabled="selecting_schs.length == 0"
207
+          @click="batchPrintAction"
208
+          type="primary"
209
+          >批量打印</el-button
210
+        >
211
+      </template>
212
+      <template v-if="this.template_id == 28">
213
+        <el-button
214
+          size="small"
215
+          icon="el-icon-printer"
216
+          :disabled="selecting_schs.length == 0"
217
+          @click="batchPrintAction"
218
+          type="primary"
219
+          >批量打印</el-button
220
+        >
221
+      </template>
222
+      <template v-if="this.template_id == 30">
223
+        <el-button
224
+          size="small"
225
+          icon="el-icon-printer"
226
+          :disabled="selecting_schs.length == 0"
227
+          @click="batchPrintAction"
228
+          type="primary"
229
+          >批量打印</el-button
230
+        >
231
+      </template>
232
+      <template v-if="this.template_id == 32">
233
+        <el-button
234
+          size="small"
235
+          icon="el-icon-printer"
236
+          :disabled="selecting_schs.length == 0"
237
+          @click="batchPrintAction"
238
+          type="primary"
239
+          >批量打印</el-button
240
+        >
241
+      </template>
202 242
     </div>
203 243
     <div class="app-container">
204 244
       <!-- <div class="filter-container">
@@ -490,23 +530,52 @@ export default {
490 530
     };
491 531
   },
492 532
   created() {
493
-    var date = new Date();
494
-    this.time = date;
495
-    var year = date.getFullYear();
496
-    var month = date.getMonth() + 1;
497
-    var day = date.getDate();
498
-    if (month < 10) {
499
-      month = "0" + month;
500
-    }
501
-    if (day < 10) {
502
-      day = "0" + day;
533
+    var search_mode = this.$store.getters.search_mode
534
+    var search_value = this.$store.getters.search_value
535
+    console.log('search_mode',search_mode)
536
+    if(search_mode == 2){
537
+      this.search_mode = search_mode
538
+      if(search_value != ''){
539
+        this.patient_search_keyword = search_value
540
+        this.listQuery.keywords = search_value
541
+        this.getSchedualPatientList();
542
+        var date = new Date();
543
+        this.time = date;
544
+        var year = date.getFullYear();
545
+        var month = date.getMonth() + 1;
546
+        var day = date.getDate();
547
+        if (month < 10) {
548
+          month = "0" + month;
549
+        }
550
+        if (day < 10) {
551
+          day = "0" + day;
552
+        }
553
+        var nowDate = year + "-" + month + "-" + day;
554
+        var date = new Date(nowDate + " 00:00:00");
555
+        this.listQuery.schedul_time = date.getTime();
556
+        this.getAllZone();
557
+        this.getTemplateInfo();
558
+      }
559
+    }else {
560
+      var date = new Date();
561
+      this.time = date;
562
+      var year = date.getFullYear();
563
+      var month = date.getMonth() + 1;
564
+      var day = date.getDate();
565
+      if (month < 10) {
566
+        month = "0" + month;
567
+      }
568
+      if (day < 10) {
569
+        day = "0" + day;
570
+      }
571
+      var nowDate = year + "-" + month + "-" + day;
572
+      var date = new Date(nowDate + " 00:00:00");
573
+      this.listQuery.schedul_time = date.getTime();
574
+      this.getAllZone();
575
+      this.getSchedualPatientList();
576
+      this.getTemplateInfo();
503 577
     }
504
-    var nowDate = year + "-" + month + "-" + day;
505
-    var date = new Date(nowDate + " 00:00:00");
506
-    this.listQuery.schedul_time = date.getTime();
507
-    this.getAllZone();
508
-    this.getSchedualPatientList();
509
-    this.getTemplateInfo();
578
+    
510 579
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
511 580
   },
512 581
   methods: {
@@ -662,10 +731,29 @@ export default {
662 731
         this.search_mode = 2;
663 732
       } else {
664 733
         this.search_mode = 1;
734
+        var date = new Date();
735
+        this.time = date;
736
+        var year = date.getFullYear();
737
+        var month = date.getMonth() + 1;
738
+        var day = date.getDate();
739
+        if (month < 10) {
740
+          month = "0" + month;
741
+        }
742
+        if (day < 10) {
743
+          day = "0" + day;
744
+        }
745
+        var nowDate = year + "-" + month + "-" + day;
746
+        var date = new Date(nowDate + " 00:00:00");
747
+        this.listQuery.schedul_time = date.getTime();
748
+        this.getAllZone();
749
+        this.getSchedualPatientList();
750
+        this.getTemplateInfo();
665 751
       }
752
+      this.$store.dispatch('SetSearchMode', this.search_mode)
666 753
     },
667 754
     searchPatientAction: function() {
668 755
       this.listQuery.keywords = this.patient_search_keyword;
756
+      this.$store.dispatch('SetSearchValue', this.patient_search_keyword)
669 757
       console.log(this.patient_search_keyword);
670 758
       if (this.patient_search_keyword.length == 0) {
671 759
         return;
@@ -717,6 +805,16 @@ export default {
717 805
         this.$router.push({ path: "/dialysis/print/batch/twenty" });
718 806
       } else if (this.template_id == 22) {
719 807
         this.$router.push({ path: "/dialysis/print/batch/twentyTwo" });
808
+      } else if (this.template_id == 25) {
809
+        this.$router.push({ path: "/dialysis/print/batch/twentyFive" });
810
+      }else if(this.template_id == 28){
811
+         this.$router.push({path:"/dialysis/print/batch/twentyEight"})
812
+      } else if (this.template_id == 30) {
813
+        this.$router.push({ path: "/dialysis/print/batch/thirty" });
814
+      } else if (this.template_id == 32) {
815
+        this.$router.push({ path: "/dialysis/print/batch/thirtyTwo" });
816
+      } else if (this.template_id == 33) {
817
+        this.$router.push({ path: "/dialysis/print/batch/thirtyThree" });
720 818
       }
721 819
     },
722 820
     batchPrintActionOne: function() {
@@ -737,6 +835,8 @@ export default {
737 835
         this.$router.push({ path: "/dialysis/print/batch/fiveone" });
738 836
       } else if (this.template_id == 22) {
739 837
         this.$router.push({ path: "/dialysis/print/batch/twentyTwo_one" });
838
+      } else if(this.template_id == 33){
839
+        this.$router.push({ path: "/dialysis/print/batch/thirtyThree_one" });
740 840
       }
741 841
     },
742 842
     batchPrintActionTwo: function() {
@@ -757,6 +857,8 @@ export default {
757 857
         this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
758 858
       } else if (this.template_id == 22) {
759 859
         this.$router.push({ path: "/dialysis/print/batch/twentyTwo_two" });
860
+      } else if (this.template_id == 33) {
861
+        this.$router.push({ path: "/dialysis/print/batch/thirtyThree_two" });
760 862
       }
761 863
     }
762 864
   },

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

@@ -239,7 +239,7 @@ export default {
239 239
           this.getlist()
240 240
           this.getAllMaterial()
241 241
         },
242
-           search(){
242
+          search(){
243 243
           //  if(this.selected_date==""){
244 244
           //     this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
245 245
           //   }
@@ -438,7 +438,7 @@ export default {
438 438
 
439 439
               }
440 440
               }
441
-              console.log("list22222",this.list)
441
+              // console.log("list22222",this.list)
442 442
              }
443 443
           })
444 444
         },

+ 5 - 1
src/xt_pages/dialysis/components/allSummaryDialog.vue Parādīt failu

@@ -66,6 +66,7 @@
66 66
 const moment = require('moment')
67 67
 import { parseTime } from "@/utils";
68 68
 import {getGatherList} from "@/api/consumable"
69
+
69 70
 export default {
70 71
     data(){
71 72
         return{
@@ -83,7 +84,8 @@ export default {
83 84
             partitionType: 0,
84 85
             tableData: [],
85 86
             start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
86
-            end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD")
87
+            end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
88
+            stockTotal:[]
87 89
         }
88 90
     },
89 91
     created(){
@@ -141,6 +143,8 @@ export default {
141 143
             }
142 144
           })
143 145
         }
146
+
147
+      
144 148
     }
145 149
 }
146 150
 </script>

+ 44 - 11
src/xt_pages/dialysis/components/consumablesDialog.vue Parādīt failu

@@ -20,24 +20,24 @@
20 20
         placeholder="选择日期"
21 21
         @change="selectEndtime">
22 22
       </el-date-picker>
23
-      <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
23
+      <!-- <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button> -->
24 24
 
25 25
     </div>
26 26
     <div style="margin-top:10px;">
27 27
       <el-table :data="tableData" border style="width: 100%" height="300px">
28
-        <el-table-column align="center" prop="date" label="商品类型" width="180">
28
+        <el-table-column align="center" prop="date" label="耗材类型" width="180">
29 29
           <template slot-scope="scope">
30
-            {{scope.row.good_type_name}}
30
+            {{scope.row.good_name}}
31 31
           </template>
32 32
         </el-table-column>
33 33
         <el-table-column align="center" prop="name" label="规格名称" width="180">
34 34
           <template slot-scope="scope">
35
-            {{scope.row.good_name}}
35
+            {{scope.row.specification_name}}
36 36
           </template>
37 37
         </el-table-column>
38 38
         <el-table-column align="center" prop="address" label="数量">
39 39
           <template slot-scope="scope">
40
-            {{scope.row.count}}
40
+            {{getStockCount(scope.row.id)}}
41 41
           </template>
42 42
         </el-table-column>
43 43
       </el-table>
@@ -50,7 +50,7 @@
50 50
   const moment = require('moment')
51 51
   import { GetDialysisGoodStatistics } from '@/api/dialysis'
52 52
   import { parseTime } from '@/utils'
53
-
53
+  import { getPrintStockGood } from '@/api/stock'
54 54
   export default {
55 55
     props: {
56 56
       list: Array
@@ -62,7 +62,8 @@
62 62
           end_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD')
63 63
         },
64 64
         visible: false,
65
-        startTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
65
+        // startTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
66
+        startTime:moment().startOf('month').format("YYYY-MM-DD"),
66 67
         endTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
67 68
         schedulArr: [
68 69
           { value: 0, label: '全部班' },
@@ -76,7 +77,8 @@
76 77
         partitionType: 0,
77 78
         tableData: [],
78 79
         start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
79
-        end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD')
80
+        end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
81
+        stockTotal:[]
80 82
       }
81 83
     },
82 84
     created() {
@@ -119,8 +121,8 @@
119 121
         done()
120 122
       },
121 123
       show() {
122
-        this.GetDialysisGoodStatistics()
123
-
124
+        // this.GetDialysisGoodStatistics()
125
+        this.getlist()
124 126
         this.visible = true
125 127
       },
126 128
 
@@ -136,9 +138,40 @@
136 138
         this.GetDialysisGoodStatistics()
137 139
 
138 140
       },
141
+       getlist(){
142
+          var params = {
143
+            start_time:this.startTime,
144
+            end_time:this.endTime,
145
+            type:3
146
+          }
147
+          console.log("param2222222",params)
148
+          getPrintStockGood(params).then(response=>{
149
+            var stockTotal = response.data.data.stockTotal
150
+            console.log("stocktOTl",stockTotal)
151
+            this.stockTotal = stockTotal
152
+            for (let i = 0; i < response.data.data.list.length; i++) {
153
+               if (response.data.data.list[i].query_warehouseout_info.length > 0) {
154
+                  this.tableData.push(response.data.data.list[i])
155
+               }
156
+             }
157
+             console.log("表哥22222222222",this.tableData) 
158
+          })
159
+       },
160
+
139 161
       toPrint() {
140 162
         this.$router.push('/dialysis/consumables_print?startime=' + this.start_time + '&endtime=' + this.end_time)
141
-      }
163
+      },
164
+      getStockCount(id){
165
+       
166
+       var count = ""
167
+       for(let i=0;i<this.stockTotal.length;i++){
168
+          if(id == this.stockTotal[i].good_id){
169
+             count = this.stockTotal[i].count
170
+          }
171
+       }
172
+       return count
173
+     }
174
+    
142 175
 
143 176
     }
144 177
   }

+ 568 - 27
src/xt_pages/dialysis/components/dialysisDrugs.vue Parādīt failu

@@ -36,34 +36,273 @@
36 36
           </ul>
37 37
           </div>
38 38
         </div>
39
+
40
+        
39 41
         <div>
40 42
             <!-- <el-button size="small" icon="el-icon-printer" type="primary">打印</el-button> -->
41 43
             <el-button size="small" type="primary" @click="statistics">统计表</el-button>
42 44
         </div>
45
+      </div>
46
+        <div class="cell clearfix" style="justify-content: space-between;">
47
+        <div class="cell clearfix">
48
+          <label class="title"> <span class="name">给药途径</span> : </label>
49
+          <div class="time">
50
+            <ul class>
51
+              <li
52
+                :class="item.id == delivery_way ? 'active' : ''"
53
+                @click="selectDeliveryWay(item.id)"
54
+                v-for="item in deliveryWay"
55
+                :key="item.id"
56
+              >
57
+                {{ item.name }}
58
+              </li>
59
+            </ul>
60
+          </div>
61
+        </div>
43 62
       </div>
44 63
       <div>
45
-          <el-table
46
-            :data="tableData"
47
-            height="350"
48
-            border
49
-            style="width: 100%">
50
-            <el-table-column
51
-            align="center"
52
-            type="selection"
53
-            width="55">
54
-            </el-table-column>
55
-            <el-table-column
56
-            align="center"
57
-            prop="name"
58
-            label="姓名"
59
-            width="180">
60
-            </el-table-column>
61
-            <el-table-column
62
-            align="center"
63
-            prop="address"
64
-            label="地址">
65
-            </el-table-column>
66
-        </el-table>
64
+        <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" 
65
+        @selection-change="handleSelectionChange"
66
+        :row-class-name="tableRowClassName"
67
+        :span-method="objectSpanMethod"
68
+        :cell-class-name="adviceNameShow"
69
+        :modal-append-to-body="false"
70
+        v-show="show">
71
+        <el-table-column type="selection" width="55" align="center"></el-table-column>
72
+        <el-table-column prop="date" label="姓名" align="center" min-width="26px">
73
+          <template slot-scope="scope">
74
+            <span>{{ scope.row.name }}</span>
75
+            <br>
76
+            ({{ scope.row.parent_id == 0 ? scope.row.dialysis_no : ""}})
77
+            <br>
78
+            <span v-if="scope.row.mode_id == 1">(HD)</span>
79
+            <span v-if="scope.row.mode_id == 2">(HDF)</span>
80
+            <span v-if="scope.row.mode_id == 3">(HD+HP)</span>
81
+            <span v-if="scope.row.mode_id == 4">(HP)</span>
82
+            <span v-if="scope.row.mode_id == 5">(HF)</span>
83
+            <span v-if="scope.row.mode_id == 6">(SCUF)</span>
84
+            <span v-if="scope.row.mode_id == 7">(IUF)</span>
85
+            <span v-if="scope.row.mode_id == 8">(HFHD)</span>
86
+            <span v-if="scope.row.mode_id == 9">(HFHD+HP)</span>
87
+            <span v-if="scope.row.mode_id == 10">(PHF)</span>
88
+            <span v-if="scope.row.mode_id == 11">(HFR)</span>
89
+            <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
90
+            <span v-if="scope.row.mode_id == 13">(CRRT)</span>
91
+            <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
92
+          </template>
93
+        </el-table-column>
94
+        <el-table-column prop="date" label="透析器" align="center" min-width="26px">
95
+          <template slot-scope="scope">
96
+            <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
97
+          </template>
98
+        </el-table-column>
99
+        <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
100
+          <template slot-scope="scope">
101
+            <span>
102
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
103
+            </span>
104
+          </template>
105
+        </el-table-column>
106
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
107
+          <template slot-scope="scope">
108
+            <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
109
+              <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
110
+                {{ getAdviceContent(scope.row, 1)}}
111
+              </span>
112
+            </el-dropdown>
113
+
114
+            <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
115
+              <span class="el-dropdown-link">
116
+                &emsp;{{ getAdviceContent(scope.row, 2)}}
117
+              </span>
118
+            </el-dropdown>
119
+          </template>
120
+        </el-table-column>
121
+        <el-table-column
122
+          prop="start_time"
123
+          align="center"
124
+          min-width="30px"
125
+          label="执行时间"
126
+          sortable
127
+        >
128
+          <template slot-scope="scope">
129
+            <span v-if="scope.row.execution_time != 0">
130
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
131
+            </span>
132
+            <span v-else></span>
133
+          </template>
134
+        </el-table-column>
135
+        <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
136
+          <template slot-scope="scope">
137
+            <span v-if="scope.row.parent_id == 0">
138
+              {{getXuserName(scope.row.execution_staff)}}
139
+            </span>
140
+            <span v-else></span>
141
+          </template>
142
+        </el-table-column>
143
+        <el-table-column prop="checker" align="center" min-width="30px" label="校对护士">
144
+          <template slot-scope="scope">
145
+            <span v-if="scope.row.parent_id == 0">
146
+              {{getXuserName(scope.row.checker)}}
147
+            </span>
148
+            <span v-else></span>
149
+          </template>
150
+        </el-table-column>
151
+        <el-table-column
152
+          prop="check_time"
153
+          align="center"
154
+          min-width="30px"
155
+          label="校对时间"
156
+          sortable
157
+        >
158
+          <template slot-scope="scope">
159
+            <span v-if="scope.row.check_time != 0">
160
+              {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
161
+            </span>
162
+            <span v-else></span>
163
+          </template>
164
+        </el-table-column>
165
+        <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
166
+          <template slot-scope="scope">
167
+            <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
168
+          </template>
169
+        </el-table-column>
170
+        <el-table-column
171
+          prop="created_time"
172
+          align="center"
173
+          min-width="30px"
174
+          label="校对时间"
175
+          sortable
176
+        >
177
+          <template slot-scope="scope">
178
+            <span v-if="scope.row.created_time != 0">
179
+              {{scope.row.created_time | parseTime('{m}-{d} {h}:{i}')}}
180
+            </span>
181
+            <span v-else></span>
182
+          </template>
183
+        </el-table-column>
184
+      </el-table>
185
+         <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" 
186
+        @selection-change="handleSelectionChange"
187
+        :row-class-name="tableRowClassName"
188
+        :span-method="objectSpanMethod"
189
+        :cell-class-name="adviceNameShow"
190
+        :modal-append-to-body="false"
191
+        v-show="showOne">
192
+        <el-table-column type="selection" width="55" align="center"></el-table-column>
193
+        <el-table-column prop="date" label="姓名" align="center" min-width="26px">
194
+          <template slot-scope="scope">
195
+            <span>{{ scope.row.name }}</span>
196
+            <br>
197
+            ({{ scope.row.parent_id == 0 ? scope.row.dialysis_no : ""}})
198
+            <br>
199
+            <span v-if="scope.row.mode_id == 1">(HD)</span>
200
+            <span v-if="scope.row.mode_id == 2">(HDF)</span>
201
+            <span v-if="scope.row.mode_id == 3">(HD+HP)</span>
202
+            <span v-if="scope.row.mode_id == 4">(HP)</span>
203
+            <span v-if="scope.row.mode_id == 5">(HF)</span>
204
+            <span v-if="scope.row.mode_id == 6">(SCUF)</span>
205
+            <span v-if="scope.row.mode_id == 7">(IUF)</span>
206
+            <span v-if="scope.row.mode_id == 8">(HFHD)</span>
207
+            <span v-if="scope.row.mode_id == 9">(HFHD+HP)</span>
208
+            <span v-if="scope.row.mode_id == 10">(PHF)</span>
209
+            <span v-if="scope.row.mode_id == 11">(HFR)</span>
210
+            <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
211
+            <span v-if="scope.row.mode_id == 13">(CRRT)</span>
212
+            <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
213
+          </template>
214
+        </el-table-column>
215
+        <el-table-column prop="date" label="透析器" align="center" min-width="26px">
216
+          <template slot-scope="scope">
217
+            <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
218
+          </template>
219
+        </el-table-column>
220
+        <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
221
+          <template slot-scope="scope">
222
+            <span>
223
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
224
+            </span>
225
+          </template>
226
+        </el-table-column>
227
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
228
+          <template slot-scope="scope">
229
+            <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
230
+              <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
231
+                {{ getAdviceContent(scope.row, 1)}}
232
+              </span>
233
+            </el-dropdown>
234
+
235
+            <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
236
+              <span class="el-dropdown-link">
237
+                &emsp;{{ getAdviceContent(scope.row, 2)}}
238
+              </span>
239
+            </el-dropdown>
240
+          </template>
241
+        </el-table-column>
242
+        <el-table-column
243
+          prop="start_time"
244
+          align="center"
245
+          min-width="30px"
246
+          label="执行时间"
247
+          sortable
248
+        >
249
+          <template slot-scope="scope">
250
+            <span v-if="scope.row.execution_time != 0">
251
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
252
+            </span>
253
+            <span v-else></span>
254
+          </template>
255
+        </el-table-column>
256
+        <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
257
+          <template slot-scope="scope">
258
+            <span v-if="scope.row.parent_id == 0">
259
+              {{getXuserName(scope.row.execution_staff)}}
260
+            </span>
261
+            <span v-else></span>
262
+          </template>
263
+        </el-table-column>
264
+        <el-table-column prop="checker" align="center" min-width="30px" label="校对护士">
265
+          <template slot-scope="scope">
266
+            <span v-if="scope.row.parent_id == 0">
267
+              {{getXuserName(scope.row.checker)}}
268
+            </span>
269
+            <span v-else></span>
270
+          </template>
271
+        </el-table-column>
272
+        <el-table-column
273
+          prop="check_time"
274
+          align="center"
275
+          min-width="30px"
276
+          label="校对时间"
277
+          sortable
278
+        >
279
+          <template slot-scope="scope">
280
+            <span v-if="scope.row.check_time != 0">
281
+              {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
282
+            </span>
283
+            <span v-else></span>
284
+          </template>
285
+        </el-table-column>
286
+        <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
287
+          <template slot-scope="scope">
288
+            <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
289
+          </template>
290
+        </el-table-column>
291
+        <el-table-column
292
+          prop="created_time"
293
+          align="center"
294
+          min-width="30px"
295
+          label="校对时间"
296
+          sortable
297
+        >
298
+          <template slot-scope="scope">
299
+            <span v-if="scope.row.created_time != 0">
300
+              {{scope.row.created_time | parseTime('{m}-{d} {h}:{i}')}}
301
+            </span>
302
+            <span v-else></span>
303
+          </template>
304
+        </el-table-column>
305
+      </el-table>
67 306
       </div>
68 307
 
69 308
       <dialysis-drugs-dialog ref="dialysisDrugs"></dialysis-drugs-dialog>
@@ -72,7 +311,9 @@
72 311
 
73 312
 
74 313
 <script>
314
+const moment = require('moment')
75 315
 import { GetAllZone } from "@/api/dialysis";
316
+import { getSchedualDoctors } from '@/api/advice'
76 317
 import dialysisDrugsDialog from './dialysisDrugsDialog'
77 318
 export default {
78 319
     components:{
@@ -90,19 +331,34 @@ export default {
90 331
             selected_date:new Date(),
91 332
             partitionArr:[],
92 333
             partitionType: 0,
93
-            tableData: []
334
+            tableData: [],
335
+            deliveryWay:[],
336
+            deliver_way:0,
337
+            search_input:"",
338
+            show:true,
339
+            showOne:false,
340
+            deliveryWay:[],
341
+            delivery_way:0,
342
+            scheduleMap:[],
343
+            selecting_schs: [],
94 344
         }
95 345
     },
96 346
     created(){
97 347
         this.getAllZone()
98
-        
348
+        this.getlist()
99 349
     },
100 350
     methods:{
101 351
         selectSchedulType(scheduleType) {
102
-            this.schedulType = scheduleType;
352
+           this.schedulType = scheduleType;
353
+           this.getlist()
103 354
         },
104 355
         selectPartitionType(partitionType) {
105
-            this.partitionType = partitionType;
356
+          this.partitionType = partitionType;
357
+          this.getlist()
358
+        },
359
+        selectDeliveryWay(val){
360
+         this.delivery_way = val
361
+         this.getlist()
106 362
         },
107 363
         getAllZone: function() {
108 364
             GetAllZone().then(response => {
@@ -112,13 +368,298 @@ export default {
112 368
                 } else {
113 369
                 this.partitionArr = response.data.data.zone;
114 370
                 this.partitionArr.unshift({ id: 0, name: "全部" });
371
+                var dics  =  response.data.data.dics
372
+                var obj = {id:0,name:"全部"}
373
+                this.deliveryWay.push(obj)
374
+                this.deliveryWay.push(...dics)
115 375
                 }
116 376
             });
117 377
         },
118 378
         statistics(){
119 379
             this.$refs.dialysisDrugs.show();
380
+        },
381
+        getlist(){
382
+          var name = ""
383
+         for(let i=0;i<this.deliveryWay.length;i++){
384
+              if(this.delivery_way == this.deliveryWay[i].id){
385
+                name = this.deliveryWay[i].name
386
+              }
120 387
         }
121
-    }
388
+        if(name == '全部'){
389
+          name = ""
390
+        }
391
+
392
+        let newTime =  moment(this.selected_date).format('YYYY-MM-DD')
393
+        getSchedualDoctors({ date: newTime,patient_type: 0,advice_type: 2,delivery_way:name}).then(rs => {
394
+        var resp = rs.data
395
+        if (resp.state == 1) {
396
+            this.admin_users = resp.data.adminUser
397
+            var schedules = resp.data.scheduals
398
+            console.log("数据多少2223333333",schedules)
399
+            var config = resp.data.config
400
+           if(config.is_open == 0){
401
+            this.show = true
402
+            this.showOne = false
403
+            let arr = []
404
+            let newArr = []
405
+            let newSchedules = []
406
+            schedules.map(item => {
407
+             item.doctor_advice.map(it =>{
408
+                it.name = item.patient.name
409
+                    if(item.prescription != null){
410
+                       it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
411
+                    }
412
+                    it.schedule_type = item.schedule_type
413
+                    it.zoneId = item.device_number.zone.id
414
+                    it.dialysis_no = item.patient.dialysis_no
415
+                    it.mode_id = item.mode_id
416
+                    arr.push(it)
417
+                })
418
+            })
419
+            if(this.schedulType == 0){
420
+                newSchedules = arr
421
+            }else{
422
+                arr.map(item => {
423
+                    if (item.schedule_type == this.schedulType) {
424
+                        newSchedules.push(item)
425
+                    }
426
+                })
427
+            }
428
+            
429
+            
430
+            if(this.partitionType == 0){
431
+                this.scheduleMap = newSchedules
432
+            }else {
433
+                let a = []
434
+                arr.map(item => {
435
+                    if(this.partitionType == item.zoneId){
436
+                        a.push(item)
437
+                    }
438
+                })
439
+                this.scheduleMap = a
440
+            }
441
+            this.scheduleMap.map(ele => {
442
+                let firstIndex = this.scheduleMap.findIndex(item => {
443
+                  return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
444
+                })
445
+                if (this.scheduleMap.findIndex(item => { return item.patient_id === firstIndex}) === -1) {
446
+                    newArr.push({
447
+                    length: this.scheduleMap.filter(item => {
448
+                        return item.patient_id === ele.patient_id    //利用数组的filter方法,过滤出相同category的数组的长度。数组长度-即为跨多少行
449
+                    }).length,
450
+                    firstIndex: firstIndex    // firstIndex 返回的是第一个catergory就满足的第一个Index,即为rowIndex开始于第几行。
451
+                    })
452
+                }
453
+            })
454
+            this.indexInfoList = newArr
455
+           }
456
+           if(config.is_open == 1 || config.is_open == 2){
457
+             this.show = false
458
+             this.showOne  = true
459
+            var schedules =  resp.data.hisAdvices
460
+          
461
+            let arr = []
462
+            let newArr = []
463
+            let newSchedules = []
464
+            schedules.map(item => {
465
+             item.doctor_advice.map(it =>{
466
+                it.name = item.patient.name
467
+                    if(item.prescription != null){
468
+                       it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
469
+                    }
470
+                    it.schedule_type = item.schedule_type
471
+                    it.zoneId = item.device_number.zone.id
472
+                    it.dialysis_no = item.patient.dialysis_no
473
+                    it.mode_id = item.mode_id
474
+                    arr.push(it)
475
+                })
476
+            })
477
+            if(this.schedulType == 0){
478
+                newSchedules = arr
479
+            }else{
480
+                arr.map(item => {
481
+                    if (item.schedule_type == this.schedulType) {
482
+                        newSchedules.push(item)
483
+                    }
484
+                })
485
+            }
486
+            
487
+            
488
+            if(this.partitionType == 0){
489
+                this.scheduleMap = newSchedules
490
+            }else {
491
+                let a = []
492
+                arr.map(item => {
493
+                    if(this.partitionType == item.zoneId){
494
+                        a.push(item)
495
+                    }
496
+                })
497
+                this.scheduleMap = a
498
+            }
499
+            this.scheduleMap.map(ele => {
500
+                let firstIndex = this.scheduleMap.findIndex(item => {
501
+                  return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
502
+                })
503
+                if (this.scheduleMap.findIndex(item => { return item.patient_id === firstIndex}) === -1) {
504
+                    newArr.push({
505
+                    length: this.scheduleMap.filter(item => {
506
+                        return item.patient_id === ele.patient_id    //利用数组的filter方法,过滤出相同category的数组的长度。数组长度-即为跨多少行
507
+                    }).length,
508
+                    firstIndex: firstIndex    // firstIndex 返回的是第一个catergory就满足的第一个Index,即为rowIndex开始于第几行。
509
+                    })
510
+                }
511
+            })
512
+            this.indexInfoList = newArr
513
+            console.log("过年9999999999",this.scheduleMap)
514
+           }
515
+         
516
+  
517
+         }
518
+         })
519
+      },
520
+      searchAction(){
521
+
522
+      },
523
+      handleScheduleDateChange(){
524
+        
525
+      },
526
+     handleSelectionChange(val) {
527
+      this.selecting_schs = val;
528
+     },
529
+      adviceNameShow({ row, column, rowIndex, columnIndex }) {
530
+          if (columnIndex == 2) {
531
+            return 'dialysisadvicenamedisplay'
532
+          } else {
533
+            return ''
534
+          }
535
+      },
536
+      tableRowClassName({ row, rowIndex }) {
537
+     
538
+     },
539
+     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
540
+        if (columnIndex === 0) {
541
+            let index = this.indexInfoList.findIndex(item => {  //遍历数组
542
+                return item.firstIndex === rowIndex
543
+            })
544
+            if (index > -1) {
545
+                return {
546
+                    rowspan: this.indexInfoList[index].length,
547
+                    colspan: 1
548
+                }
549
+            } else {
550
+                return {
551
+                    rowspan: 0,
552
+                    colspan: 0
553
+                }
554
+            }
555
+        }
556
+        
557
+        if (columnIndex === 1) {
558
+            let index = this.indexInfoList.findIndex(item => {  //遍历数组
559
+                return item.firstIndex === rowIndex
560
+            })
561
+            if (index > -1) {
562
+                return {
563
+                    rowspan: this.indexInfoList[index].length,
564
+                    colspan: 1
565
+                }
566
+            } else {
567
+                return {
568
+                    rowspan: 0,
569
+                    colspan: 0
570
+                }
571
+            }
572
+        }
573
+        if (columnIndex === 2) {
574
+            let index = this.indexInfoList.findIndex(item => {  //遍历数组
575
+                return item.firstIndex === rowIndex
576
+            })
577
+            if (index > -1) {
578
+                return {
579
+                    rowspan: this.indexInfoList[index].length,
580
+                    colspan: 1
581
+                }
582
+            } else {
583
+                return {
584
+                    rowspan: 0,
585
+                    colspan: 0
586
+                }
587
+            }
588
+        }
589
+     },
590
+     getAdviceContent(row, isChild) {
591
+        let tempSingleDoseDesc = ''
592
+        let tempDrugSpecDesc = ''
593
+        let tempPrescribingNumberDesc = ''
594
+
595
+        if (row.prescribing_number) {
596
+          tempPrescribingNumberDesc =
597
+            row.prescribing_number + '' + row.prescribing_number_unit
598
+        }
599
+
600
+        if (row.single_dose) {
601
+          if (this.template_id != 6) {
602
+            tempSingleDoseDesc =
603
+              ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
604
+          } else {
605
+            tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
606
+          }
607
+        }
608
+
609
+        if (row.advice_desc) {
610
+          tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
611
+        }
612
+
613
+        if (isChild == 1) {
614
+          // 不是子药
615
+
616
+          return (
617
+            row.advice_name +
618
+            tempDrugSpecDesc +
619
+            ' ' +
620
+            tempPrescribingNumberDesc +
621
+            tempSingleDoseDesc +
622
+            ' ' +
623
+            row.delivery_way +
624
+            ' ' +
625
+            row.execution_frequency
626
+          )
627
+        } else {
628
+          // 是子药
629
+          return (
630
+            row.advice_name +
631
+            tempDrugSpecDesc +
632
+            ' ' +
633
+            tempPrescribingNumberDesc +
634
+            tempSingleDoseDesc
635
+          )
636
+        }
637
+      },
638
+      getXuserName(id) {
639
+        if (id <= 0) {
640
+          return ''
641
+        }
642
+        var name = ''
643
+        if (
644
+          this.admin_users == null ||
645
+          typeof this.admin_users.length === 'undefined'
646
+        ) {
647
+          return name
648
+        }
649
+        var leng = this.admin_users.length
650
+        if (leng == 0) {
651
+          return name
652
+        }
653
+        for (let index = 0; index < leng; index++) {
654
+          if (this.admin_users[index].id == id) {
655
+            name = this.admin_users[index].name
656
+            break
657
+          }
658
+        }
659
+        return name
660
+      },
661
+    },
662
+   
122 663
 }
123 664
 </script>
124 665
 

+ 61 - 46
src/xt_pages/dialysis/components/dialysisDrugsDialog.vue Parādīt failu

@@ -10,65 +10,61 @@
10 10
         style="width:140px;margin-right:10px"
11 11
         v-model="startTime"
12 12
         type="date"
13
-        placeholder="选择日期">
13
+        placeholder="选择日期"
14
+        @change="changeStartTime">
14 15
         </el-date-picker>
15 16
         <el-date-picker
16 17
         style="width:140px;margin-right:10px"
17 18
         v-model="endTime"
18 19
         type="date"
19
-        placeholder="选择日期">
20
+        placeholder="选择日期"
21
+        @change="changeEndTime">
20 22
         </el-date-picker>
21
-        <el-select style="width:140px;margin-right:10px" v-model="schedulType" placeholder="请选择">
23
+        <el-select style="width:140px;margin-right:10px" v-model="delive_way" placeholder="请选择">
22 24
             <el-option
23
-            v-for="item in schedulArr"
24
-            :key="item.value"
25
-            :label="item.label"
26
-            :value="item.value">
27
-            </el-option>
28
-        </el-select>
29
-        <el-select style="width:140px;margin-right:10px" v-model="partitionType" placeholder="请选择">
30
-            <el-option
31
-            v-for="item in partitionArr"
25
+            v-for="item in deliveryWay"
32 26
             :key="item.id"
33 27
             :label="item.name"
34 28
             :value="item.id">
35 29
             </el-option>
36 30
         </el-select>
37
-        <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
31
+        <!-- <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button> -->
38 32
         
39 33
     </div>
40 34
     <div style="margin-top:10px;">
41 35
         <el-table :data="tableData" border style="width: 100%" height="300">
42
-            <el-table-column
43
-            align="center"
44
-            prop="address"
45
-            label="地址">
36
+            <el-table-column align="center" prop="address" label="药品名称">
37
+              <template slot-scope="scope">
38
+                 {{scope.row.advice_name}}
39
+              </template>
40
+            </el-table-column>
41
+             <el-table-column align="center" prop="address" label="药品规格">
42
+               <template slot-scope="scope">
43
+                  {{scope.row.advice_desc}}
44
+               </template>
46 45
             </el-table-column>
47
-            <el-table-column
48
-            align="center"
49
-            prop="name"
50
-            label="姓名"
51
-            width="100">
46
+            <el-table-column align="center" prop="name" label="数量" width="100">
47
+                <template slot-scope="scope">
48
+                   {{scope.row.Total}}
49
+                </template>
52 50
             </el-table-column>
53 51
         </el-table>
54 52
     </div>
55
-    <!-- <div slot="footer" class="dialog-footer">
56
-      <el-button @click="hide">取 消</el-button>
57
-      <el-button type="primary" @click="submitAction()">保 存</el-button>
58
-    </div> -->
59 53
   </el-dialog>
60 54
 </template>
61 55
 
62 56
 
63 57
 
64 58
 <script>
59
+const moment = require('moment')
65 60
 import { GetAllZone } from "@/api/dialysis";
61
+import { getDoctorAdviceCount } from "@/api/advice"
66 62
 export default {
67 63
     data(){
68 64
         return{
69 65
             visible: false,
70
-            startTime:'',
71
-            endTime:'',
66
+            startTime:new Date(),
67
+            endTime:new Date(),
72 68
             schedulArr: [
73 69
                 {value: 0, label: '全部班'},
74 70
                 {value: 1, label: '上午'},
@@ -78,27 +74,14 @@ export default {
78 74
             schedulType: 0,
79 75
             partitionArr:[],
80 76
             partitionType: 0,
81
-            tableData: [{
82
-                date: '2016-05-02',
83
-                name: '王小虎',
84
-                address: '上海市普陀区金沙江路 1518 弄'
85
-                }, {
86
-                date: '2016-05-04',
87
-                name: '王小虎',
88
-                address: '上海市普陀区金沙江路 1517 弄'
89
-                }, {
90
-                date: '2016-05-01',
91
-                name: '王小虎',
92
-                address: '上海市普陀区金沙江路 1519 弄'
93
-                }, {
94
-                date: '2016-05-03',
95
-                name: '王小虎',
96
-                address: '上海市普陀区金沙江路 1516 弄'
97
-            }]
77
+            deliveryWay:[],
78
+            tableData: [],
79
+            delive_way:""
98 80
         }
99 81
     },
100 82
     created(){
101 83
         this.getAllZone()
84
+        this.getlist()
102 85
     },
103 86
     methods:{
104 87
         _close: function(done) {
@@ -115,6 +98,10 @@ export default {
115 98
                 } else {
116 99
                 this.partitionArr = response.data.data.zone;
117 100
                 this.partitionArr.unshift({ id: 0, name: "全部分区" });
101
+                var dics  =  response.data.data.dics
102
+                var obj = {id:0,name:"全部"}
103
+                this.deliveryWay.push(obj)
104
+                this.deliveryWay.push(...dics)
118 105
                 }
119 106
             });
120 107
         },
@@ -123,7 +110,35 @@ export default {
123 110
                 path: '/dialysis/dialysisDrugs_print',
124 111
                 // query: { date: date }
125 112
             })
126
-        }
113
+        },
114
+       getlist(){
115
+
116
+           let newTimeStart =  moment(this.startTime).format('YYYY-MM-DD')
117
+           let newTimeEnd = moment(this.endTime).format('YYYY-MM-DD')
118
+           var params = {
119
+              start_time:newTimeStart,
120
+              end_time:newTimeEnd,
121
+              delive_way:this.delive_way,
122
+           }
123
+         
124
+         getDoctorAdviceCount(params).then(response=>{
125
+            if(response.data.state == 1){
126
+              var list =  response.data.data.list
127
+              console.log("list",list)
128
+              this.tableData = list
129
+            }
130
+         })  
131
+       },
132
+      changeStartTime(val){
133
+       var start =  moment(val).format('YYYY-MM-DD')
134
+       this.startTime = start
135
+       this.getlist()
136
+      },
137
+      changeEndTime(val){
138
+       var end = moment(val).format('YYYY-MM-DD')
139
+       this.endTime = end
140
+       this.getlist()
141
+      }
127 142
     }
128 143
 }
129 144
 </script>

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

@@ -8,9 +8,9 @@
8 8
                 <el-tab-pane label="透析耗材" name="first">
9 9
                     <consumables></consumables>
10 10
                 </el-tab-pane>
11
-                <el-tab-pane label="透析药品" name="second">
11
+                <!-- <el-tab-pane label="透析药品" name="second">
12 12
                     <dialysis-drugs></dialysis-drugs>
13
-                </el-tab-pane>
13
+                </el-tab-pane> -->
14 14
                 <el-tab-pane label="透析参数" name="third">
15 15
                     <dialysis-parameters></dialysis-parameters>
16 16
                 </el-tab-pane>

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

@@ -20,6 +20,13 @@
20 20
 
21 21
         </li>
22 22
 
23
+         <li v-if="isShow('置换速度')">
24
+          <label>置换速度 : </label>
25
+          <span class="content">{{displace_speed }}</span>
26
+            <span class="unit">ml/min</span>
27
+        </li>
28
+
29
+
23 30
         <li v-if="isShow('透析液配方')">
24 31
           <label>透析液配方 : </label>
25 32
           <span class="content">{{ dialysate_formulation }}</span>
@@ -40,6 +47,12 @@
40 47
           <span class="content">{{ anticoagulant }}</span>
41 48
         </li>
42 49
 
50
+        <li v-if="isShow('抗凝剂商品名称')">
51
+          <label>抗凝剂商品名称 : </label>
52
+          <span class="content">{{ antioxidant_commodity_name }}</span>
53
+        </li>
54
+
55
+
43 56
         <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
44 57
           <label>总量: </label>
45 58
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
@@ -93,8 +106,8 @@
93 106
           <span class="content">{{
94 107
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
95 108
           }}</span>
96
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
97
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
109
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
110
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
98 111
         </li>
99 112
         <li v-if="isShow('葡萄糖')">
100 113
           <label>葡萄糖 : </label>
@@ -167,15 +180,15 @@
167 180
           }}</span>
168 181
         </li>
169 182
 
170
-        <li v-if="isShow('血流量')">
171
-          <label>血流量 : </label>
172
-          <span class="content">{{
173
-            blood_flow_volume != "0" ? blood_flow_volume : ""
174
-          }}</span>
175
-          <span class="unit">{{
176
-            blood_flow_volume != "0" ? "ml/min" : ""
177
-          }}</span>
178
-        </li>
183
+<!--        <li v-if="isShow('血流量')">-->
184
+<!--          <label>血流量 : </label>-->
185
+<!--          <span class="content">{{-->
186
+<!--            blood_flow_volume != "0" ? blood_flow_volume : ""-->
187
+<!--          }}</span>-->
188
+<!--          <span class="unit">{{-->
189
+<!--            blood_flow_volume != "0" ? "ml/min" : ""-->
190
+<!--          }}</span>-->
191
+<!--        </li>-->
179 192
       </ul>
180 193
 
181 194
       <ul>
@@ -605,6 +618,12 @@ export default {
605 618
     target_ktv: function() {
606 619
       var v = this.getValueStr('target_ktv', 'target_ktv')
607 620
       return v.length == 0 ? '0' : v
621
+    },
622
+    antioxidant_commodity_name:function(){
623
+      return this.getValueStr('antioxidant_commodity_name','antioxidant_commodity_name')
624
+    },
625
+    displace_speed:function(){
626
+      return this.getValueStr('displace_speed','displace_speed')
608 627
     }
609 628
   },
610 629
   created() {

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

@@ -89,14 +89,18 @@
89 89
       :dry_weight="last_dryWeight_dislysis"
90 90
       :schedual="temp_schedual"
91 91
       :stockType="stockType"
92
+      :lastAssessment="lastAssessment"
92 93
     ></dialysis-prescription-dialog>
93 94
 
94 95
     <double-check-dialog
95 96
       title="双人核对"
96 97
       ref="doubleCheck"
97 98
       :patient="patient"
99
+      :predialysis_evaluation="predialysis_evaluation"
100
+      :prescription="prescription"
98 101
       :double_check="double_check"
99 102
       :admin_users="admin_users"
103
+
100 104
     ></double-check-dialog>
101 105
 
102 106
     <accepts-treatment-dialog
@@ -114,6 +118,7 @@
114 118
       :predialysis_evaluation="predialysis_evaluation"
115 119
       :admin_users="admin_users"
116 120
       :dry_weight="last_dryWeight_dislysis"
121
+      :lastAssessment="lastAssessment"
117 122
     ></assessment-before-dislysis-dialog>
118 123
 
119 124
     <treatment-summary-dialog
@@ -513,6 +518,13 @@ export default {
513 518
       default:()=>{
514 519
         return [];
515 520
       }
521
+    },
522
+    lastAssessment:{
523
+     // 最后一条血管通路(处理今天录的)
524
+     type: Object,
525
+      default: () => {
526
+        return { id: 0 };
527
+      }
516 528
     }
517 529
   },
518 530
   methods: {
@@ -549,7 +561,7 @@ export default {
549 561
       lastDialysisPrescribe,
550 562
       lastDryWeightDislysis,
551 563
       schedual,
552
-      system_prescribe
564
+      system_prescribe,
553 565
     ) {
554 566
 
555 567
       this.$refs.assessmentBefore.setLastRecord(
@@ -605,7 +617,7 @@ export default {
605 617
     showAssessmentBefore: function() {
606 618
       console.log(this.last_predialysis_evaluation)
607 619
 
608
-      this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation);
620
+      this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
609 621
     },
610 622
     showDoubleCheck: function() {
611 623
       this.$refs.doubleCheck.show();

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

@@ -17,8 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.org_id == 9555) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30  &&  this.$store.getters.xt_user.template_info.org_id == 9555 " >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.org_id == 9555) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 &&  this.$store.getters.xt_user.template_info.org_id == 9555 " >L</span>
22 22
         </li>
23 23
         <li v-if="isShow('导管')">
24 24
           <label>导管 : </label>

+ 29 - 1
src/xt_pages/dialysis/details/assessmentBefore.vue Parādīt failu

@@ -308,6 +308,31 @@
308 308
           <span class="content">{{ this.record.special_treatment}}</span>
309 309
           <span class="unit"></span>
310 310
         </li>
311
+        
312
+        <li v-if="isShow('血栓')">
313
+          <label>血栓: </label>
314
+          <span class="content" v-if="this.record.thromubus_type == 1">有</span>
315
+          <span class="content" v-if="this.record.thromubus_type == 2">无</span>
316
+          <span class="unit"></span>
317
+        </li>
318
+
319
+         <li v-if="isShow('血栓')">
320
+          <label>导管AV端约为(cm): </label>
321
+          <span class="content">{{this.record.thrombus_av}}</span>
322
+          <span class="unit"></span>
323
+        </li>
324
+       
325
+        <li v-if="isShow('血栓')">
326
+          <label>导管A端约(cm): </label>
327
+          <span class="content">{{this.record.thromubus_a}}</span>
328
+          <span class="unit"></span>
329
+        </li>
330
+
331
+         <li v-if="isShow('血栓')">
332
+          <label>导管V端约(cm): </label>
333
+          <span class="content">{{this.record.thromubus_v}}</span>
334
+          <span class="unit"></span>
335
+        </li>
311 336
       </ul>
312 337
     </div>
313 338
     <div class="note">
@@ -334,7 +359,11 @@ export default {
334 359
       type: Object
335 360
     }
336 361
   },
362
+  created(){
363
+    console.log("血栓22222",this.record)
364
+  },
337 365
   computed: {
366
+   
338 367
     weight_before: function() {
339 368
       if (this.record.id == 0) {
340 369
         return '-'
@@ -382,7 +411,6 @@ export default {
382 411
         return '-'
383 412
       }
384 413
       return this.record.catheter
385
-      console.log('导管', this.record.catheter)
386 414
     },
387 415
 
388 416
     temperature: function() {

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

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 102 - 38
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Parādīt failu

@@ -289,15 +289,6 @@
289 289
                 <el-option label="是" value="1"></el-option>
290 290
                 <el-option label="否" value="2"></el-option>
291 291
               </el-select>
292
-
293
-             <!-- <el-select v-model="assessmentBeforeDislysis.is_hemorrhage" placeholder="请选择">
294
-                <el-option
295
-                  v-for="item in hemorrhages"
296
-                  :key="item.value"
297
-                  :label="item.label"
298
-                  :value="item.value">
299
-                </el-option>
300
-              </el-select> -->
301 292
             </el-form-item>
302 293
           </el-col>
303 294
 
@@ -310,6 +301,36 @@
310 301
             </el-form-item>
311 302
           </el-col>
312 303
 
304
+
305
+
306
+           <el-col :span="8">
307
+            <el-form-item label="血栓:" v-if="isShow('血栓')">
308
+              <el-select v-model="assessmentBeforeDislysis.thromubus_type" @change="changeThrombus">
309
+                <el-option :key="0" label="请选择" :value="0"></el-option>
310
+                <el-option label="有" value="1"></el-option>
311
+                <el-option label="无" value="2"></el-option>
312
+              </el-select>
313
+            </el-form-item>
314
+          </el-col>
315
+          
316
+          <el-col :span="8">
317
+            <el-form-item label="导管AV端约为(cm):" v-show="thrombuShow" label-width="200px">
318
+              <el-input v-model="assessmentBeforeDislysis.thrombus_av" style="width:150px"></el-input>
319
+            </el-form-item>
320
+          </el-col>
321
+
322
+          <el-col :span="8">
323
+            <el-form-item label="导管A端约(cm):" v-show="thrombuShow">
324
+              <el-input v-model="assessmentBeforeDislysis.thromubus_a" style="width:150px"></el-input>
325
+            </el-form-item>
326
+          </el-col>
327
+
328
+          <el-col :span="8">
329
+            <el-form-item label="导管V端约(cm):" v-show="thrombuShow">
330
+              <el-input v-model="assessmentBeforeDislysis.thromubus_v" style="width:150px"></el-input>
331
+            </el-form-item>
332
+          </el-col>
333
+
313 334
           <el-col :span="8" v-if="isShow('皮肤')">
314 335
             <el-form-item label="皮肤: ">
315 336
               <!-- <el-select v-model="assessmentBeforeDislysis.skin">
@@ -525,34 +546,10 @@
525 546
             </el-form-item>
526 547
           </el-col>
527 548
 
549
+         
528 550
 
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-          <!-- </el-row>
540
-
541
-
542
-          <el-row :gutter="20"> -->
543
-          <!--<el-col :span="8">-->
544
-          <!--<el-form-item label="穿刺方法: " v-if="isShow('穿刺方法')">-->
545
-
546
-          <!--<el-select v-model="assessmentBeforeDislysis.puncture_method">-->
547
-          <!--<el-option :key="0" label="请选择" :value="0"></el-option>-->
548
-
549
-          <!--<el-option v-for="item in puncture_method" :label="item.name" :value="item.name"-->
550
-          <!--:key="item.id"></el-option>-->
551
-          <!--</el-select>-->
552
-
553
-          <!--</el-form-item>-->
554
-          <!--</el-col>-->
555
-
551
+         
552
+      
556 553
         </el-row>
557 554
 
558 555
 
@@ -704,6 +701,11 @@
704 701
           edema:'',
705 702
           special_treatment:'',
706 703
           catheter_maintenance:"",
704
+          thromubus_type:"",
705
+          thrombus_av:"",
706
+          thromubus_a:"",
707
+          thromubus_v:""
708
+
707 709
         },
708 710
 
709 711
         InnerDialogProps: {
@@ -718,7 +720,8 @@
718 720
         puncture_ways: '',
719 721
         skins:[],
720 722
         pinholings:[],
721
-        catheter_maintenancelist:[]
723
+        catheter_maintenancelist:[],
724
+        thrombuShow:false
722 725
       }
723 726
     },
724 727
     props: {
@@ -740,6 +743,12 @@
740 743
         default: () => {
741 744
           return []
742 745
         }
746
+      },
747
+      lastAssessment:{
748
+        type:Array,
749
+         default: () => {
750
+          return []
751
+        }
743 752
       }
744 753
 
745 754
     },
@@ -749,6 +758,7 @@
749 758
         this.lastDryWeightDislysis = lastDryWeightDislysis
750 759
       },
751 760
       isShow(name) {
761
+        
752 762
         var filedList = store.getters.xt_user.fileds
753 763
         for (let i = 0; i < filedList.length; i++) {
754 764
           if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
@@ -757,9 +767,18 @@
757 767
         }
758 768
         return false
759 769
       },
770
+
760 771
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
761 772
         this.lastPredialysisEvaluation = last_predialysis_evaluation
773
+       
774
+       
775
+        console.log("获取上次数据",this.lastPredialysisEvaluation)
762 776
         if(this.lastPredialysisEvaluation != null) {
777
+         if(this.lastPredialysisEvaluation.thromubus_type == 1){
778
+          this.assessmentBeforeDislysis.thromubus_type = this.lastPredialysisEvaluation.thromubus_type.toString()
779
+           this.thrombuShow = true
780
+        }
781
+
763 782
           if (this.lastPredialysisEvaluation.is_hemorrhage == 1) {
764 783
             this.lastPredialysisEvaluation.is_hemorrhage = "1"
765 784
           }
@@ -801,6 +820,7 @@
801 820
 
802 821
           if (lastDryWeightDislysis != null) {
803 822
             this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
823
+           
804 824
             this.$set(
805 825
               this.assessmentBeforeDislysis,
806 826
               'dry_weight',
@@ -814,6 +834,9 @@
814 834
             }
815 835
           }
816 836
 
837
+
838
+
839
+
817 840
           if (this.lastPredialysisEvaluation != null) {
818 841
             for (var key in this.lastPredialysisEvaluation){
819 842
               if (key != 'systolic_blood_pressure' && key != 'diastolic_blood_pressure' && key != 'pulse_frequency' && key != 'dry_weight' && key != 'weight_before'){
@@ -826,8 +849,34 @@
826 849
               }
827 850
             }
828 851
           }
852
+          
853
+         //最后一次血管通路
854
+
855
+         if(this.lastAssessment!=null){
856
+           var blood_id = 0
857
+           for(let i= 0;i<this.blood_access_part_opera.length;i++){
858
+              if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){
859
+                 blood_id = this.blood_access_part_opera[i].id
860
+              }
861
+           }
862
+            this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
863
+            this.assessmentBeforeDislysis.blood_access_part_id = this.lastAssessment.blood_access_part_id
864
+          } else {
865
+            if (this.lastPredialysisEvaluation != null) {
866
+               var blood_id = 0
867
+                for(let i= 0;i<this.blood_access_part_opera.length;i++){
868
+                    if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_part_opera[i].name){
869
+                      blood_id = this.blood_access_part_opera[i].id
870
+                    }
871
+                }
872
+              this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
873
+              this.assessmentBeforeDislysis.blood_access_part_id = this.lastPredialysisEvaluation.blood_access_part_id
874
+            }
875
+          }
829 876
 
830 877
         } else {
878
+         
879
+     
831 880
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
832 881
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']
833 882
         }
@@ -1165,7 +1214,7 @@
1165 1214
         }).then(res => {
1166 1215
           // console.log(res)
1167 1216
           // console.log('透前', this.patient_prop)
1168
-           console.log('透前', this.assessment)
1217
+          
1169 1218
           if (res.data.state == 0) {
1170 1219
             this.hasPermission = false
1171 1220
           } else if (res.data.state == 1) {
@@ -1189,6 +1238,15 @@
1189 1238
             }
1190 1239
           }
1191 1240
         })
1241
+      },
1242
+
1243
+      changeThrombus(val){
1244
+        if(val == 1){
1245
+          this.thrombuShow = true
1246
+        }
1247
+        if(val == 2){
1248
+         this.thrombuShow = false
1249
+        }
1192 1250
       }
1193 1251
     },
1194 1252
     created() {
@@ -1222,6 +1280,7 @@
1222 1280
       console.log("针眼",this.pinholings)
1223 1281
       this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
1224 1282
       console.log("导管维护",this.catheter_maintenancelist)
1283
+     
1225 1284
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1226 1285
 
1227 1286
       // if(this.predialysis_evaluation.id == 0){
@@ -1241,6 +1300,11 @@
1241 1300
 
1242 1301
       },
1243 1302
       'predialysis_evaluation.id': function() {
1303
+         
1304
+       if(this.predialysis_evaluation.thromubus_type == 1){
1305
+             this.predialysis_evaluation.thromubus_type = this.predialysis_evaluation.thromubus_type.toString()
1306
+             this.thrombuShow = true
1307
+        }
1244 1308
 
1245 1309
         if (this.predialysis_evaluation.id > 0) {
1246 1310
           for (var index in this.assessmentBeforeDislysis) {

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

@@ -23,14 +23,36 @@
23 23
         </el-form-item>
24 24
         <el-form-item label="穿刺者"  v-if="isShowFiled('穿刺者')">
25 25
           <el-select v-model="form.puncture_nurse_id" placeholder="请选择穿刺护士">
26
-            <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
26
+            <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
27
+          </el-select>
28
+        </el-form-item>
29
+        
30
+        <el-form-item label="换药护士"  v-if="isShowFiled('换药护士')">
31
+          <el-select v-model="form.change_nurse" placeholder="换药护士">
32
+            <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
27 33
           </el-select>
28 34
         </el-form-item>
35
+
29 36
         <el-form-item label="冲管护士"  v-if="isShowFiled('冲管护士')">
30 37
           <el-select v-model="form.washpipe_nurse" placeholder="请选择冲管护士">
31 38
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
32 39
           </el-select>
33 40
         </el-form-item>
41
+
42
+
43
+         <el-form-item label="疑难穿刺护士"  v-if="isShowFiled('疑难穿刺护士')">
44
+          <el-select v-model="form.difficult_puncture_nurse" placeholder="请选择疑难穿刺护士">
45
+            <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
46
+          </el-select>
47
+        </el-form-item>
48
+
49
+        <el-form-item label="新开瘘护士"  v-if="isShowFiled('新开瘘护士')">
50
+            <el-select v-model="form.new_fistula_nurse" placeholder="请选择新开瘘护士">
51
+              <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
52
+            </el-select>
53
+        </el-form-item>
54
+
55
+     
34 56
         <el-form-item label="引血(ml/min)" v-if="template_id == 6">
35 57
           <el-input type="number" v-model="form.blood_drawing" style="width:200px;"></el-input>
36 58
         </el-form-item>
@@ -88,7 +110,10 @@
88 110
           nurse_id: '',
89 111
           start_time: '',
90 112
           puncture_nurse_id: '',
91
-          blood_drawing: 100
113
+          blood_drawing: 100,
114
+          change_nurse:"",
115
+          difficult_puncture_nurse:"",
116
+          new_fistula_nurse:"",
92 117
         },
93 118
         schedual_type: 0,
94 119
         schedules_type: [
@@ -96,7 +121,8 @@
96 121
           { id: 2, name: '下午' },
97 122
           { id: 3, name: '晚上' }
98 123
         ], // 该排班的区里的床位
99
-        isPremission: false
124
+        isPremission: false,
125
+        adminRoles:[{id:0,name:"请选择"}]
100 126
       }
101 127
     },
102 128
     props: {
@@ -126,7 +152,8 @@
126 152
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
127 153
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
128 154
       this.form.washpipe_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.washpipe_nurse
129
-
155
+      
156
+     
130 157
       if (this.form.puncture_nurse_id == 0) {
131 158
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
132 159
       }
@@ -141,7 +168,9 @@
141 168
         this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
142 169
         this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
143 170
         this.form.washpipe_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.washpipe_nurse
144
-
171
+        this.form.change_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.change_nurse
172
+        this.form.difficult_puncture_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id:this.dialysis_order.difficult_puncture_nurse
173
+        this.form.new_fistula_nurse = this.dialysis_order.id ==0?this.$store.getters.xt_user.user.id:this.dialysis_order.new_fistula_nurse
145 174
         var nowDate = new Date()
146 175
         var nowYear = nowDate.getFullYear()
147 176
         var nowMonth = nowDate.getMonth() + 1
@@ -157,6 +186,15 @@
157 186
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
158 187
         this.form.start_time = this.dialysis_order.id == 0 ? time : this.getTime(this.dialysis_order.start_time, '{y}-{m}-{d} {h}:{i}')
159 188
 
189
+      },
190
+      admins:function(){
191
+        console.log("admins",this.admins)
192
+        if(this.admins.length > 0 ){
193
+          for(let i=0;i<this.admins.length;i++){
194
+            this.adminRoles.push(this.admins[i])
195
+          } 
196
+        }
197
+        console.log("人员",this.adminRoles)
160 198
       }
161 199
     },
162 200
     computed: {},
@@ -304,7 +342,7 @@
304 342
         this.loading = true
305 343
         let mode = '1'
306 344
 
307
-        startDialysis(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse).then(rs => {
345
+        startDialysis(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse).then(rs => {
308 346
           this.loading = false
309 347
           var resp = rs.data
310 348
           if (resp.state == 1) {
@@ -314,10 +352,10 @@
314 352
               this.$set(this_order, key, resp_dialysis_order[key])
315 353
             }
316 354
             let orgId = parseInt(sessionStorage.getItem("org_id"));
317
-            axios.get('/api/index/uppatient?org_id='+ orgId + '&admin_user_id='+ this.form.nurse_id + '&patient_id=' + this.patient_id + '&up_time=' + (new Date(this.form.start_time).getTime() / 1000)).then((res) => {
318
-              console.log('res',res.data)
355
+            // axios.get('/api/index/uppatient?org_id='+ orgId + '&admin_user_id='+ this.form.nurse_id + '&patient_id=' + this.patient_id + '&up_time=' + (new Date(this.form.start_time).getTime() / 1000)).then((res) => {
356
+            //   console.log('res',res.data)
319 357
 
320
-            }) 
358
+            // }) 
321 359
             this.hide()
322 360
             this.$emit('monitor', resp.data.monitor)
323 361
             this.$message.success('上机成功')
@@ -334,8 +372,9 @@
334 372
         ParamsQuery['start_time'] = this.form.start_time
335 373
         ParamsQuery['puncture_nurse'] = this.form.puncture_nurse_id
336 374
         ParamsQuery['washpipe_nurse'] = this.form.washpipe_nurse
337
-
338
-
375
+        ParamsQuery['change_nurse'] = this.form.change_nurse
376
+        ParamsQuery['difficult_puncture_nurse'] = this.form.difficult_puncture_nurse
377
+        ParamsQuery['new_fistula_nurse'] = this.form.new_fistula_nurse
339 378
         ParamsQuery['mode'] = "2"
340 379
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
341 380
           ParamsQuery['mode'] = "3"

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

@@ -87,7 +87,7 @@
87 87
           </el-col>
88 88
 
89 89
           <el-col :span="8"
90
-                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
90
+                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
91 91
             <el-form-item label="目标超滤量(ml):">
92 92
               <el-input
93 93
                 type="number"
@@ -97,7 +97,7 @@
97 97
           </el-col>
98 98
 
99 99
           <el-col :span="8"
100
-                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
100
+                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
101 101
             <el-form-item label="目标超滤量(L):">
102 102
               <el-input
103 103
                 type="number"
@@ -141,6 +141,15 @@
141 141
           </el-col>
142 142
 
143 143
 
144
+         <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
145
+            <el-form-item label="抗凝剂商品名称:">
146
+               <el-input
147
+                v-model="dialysisPrescription.antioxidant_commodity_name"
148
+              ></el-input>
149
+            </el-form-item>
150
+          </el-col>
151
+
152
+
144 153
           <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
145 154
             <el-form-item label="肝素钠(mg/h):">
146 155
               <el-input
@@ -175,14 +184,14 @@
175 184
 
176 185
           <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
177 186
 
178
-            <el-form-item v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23' :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
187
+            <el-form-item 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.org_id != 9987' :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
179 188
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
180 189
                         v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
181 190
               <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
182 191
                         v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
183 192
             </el-form-item>
184 193
 
185
-            <el-form-item v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23' :label="'首剂(mg) : '">
194
+            <el-form-item 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.org_id == 9987' :label="'首剂(mg) : '">
186 195
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
187 196
                         v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
188 197
               <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
@@ -192,13 +201,13 @@
192 201
 
193 202
 
194 203
           <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
195
-            <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" 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">
204
+            <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" 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.org_id != 9987">
196 205
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
197 206
                         v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
198 207
               <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
199 208
                         v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
200 209
             </el-form-item>
201
-            <el-form-item :label="'维持(mg/h) : '" 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">
210
+            <el-form-item :label="'维持(mg/h) : '" 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.org_id == 9987">
202 211
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
203 212
                         v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
204 213
               <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
@@ -207,13 +216,13 @@
207 216
           </el-col>
208 217
 
209 218
           <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
210
-            <el-form-item v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23' :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
219
+            <el-form-item 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.org_id != 9987' :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
211 220
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
212 221
                         v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
213 222
               <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
214 223
                         v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
215 224
             </el-form-item>
216
-            <el-form-item v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23' :label="'总量(mg) : '">
225
+            <el-form-item 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.org_id == 9987' :label="'总量(mg) : '">
217 226
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
218 227
                         v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
219 228
               <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
@@ -244,6 +253,16 @@
244 253
             </el-form-item>
245 254
           </el-col>
246 255
 
256
+
257
+           <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow">
258
+            <el-form-item label="置换速度(ml/min)">
259
+               <el-input
260
+                v-model="dialysisPrescription.displace_speed"
261
+              ></el-input>
262
+            </el-form-item>
263
+          </el-col>
264
+
265
+
247 266
           <el-col
248 267
             :span="8"
249 268
             v-if="anticoagulant.gaimingcheng != -1 && isShows('钙名称')"
@@ -341,7 +360,7 @@
341 360
             </el-form-item>
342 361
           </el-col>
343 362
 
344
-      
363
+
345 364
 
346 365
           <el-col :span="8" v-if="isShows('透析器/灌流器')">
347 366
             <el-form-item label="透析器/灌流器">
@@ -353,14 +372,14 @@
353 372
              <el-form-item label="透析器:">
354 373
                   <el-input v-model="dialysisPrescription.dialysis_dialyszers" @focus="showInnerDialog('7')"></el-input>
355 374
              </el-form-item>
356
-          </el-col> 
375
+          </el-col>
357 376
 
358 377
 
359 378
           <el-col :span="8" v-if="isShows('灌流器')">
360 379
              <el-form-item label="灌流器:">
361 380
                   <el-input v-model="dialysisPrescription.dialysis_irrigation" @focus="showInnerDialog('8')"></el-input>
362 381
              </el-form-item>
363
-          </el-col> 
382
+          </el-col>
364 383
 
365 384
           <el-col :span="8" v-if="isShows('体液过多症状')">
366 385
             <el-form-item label="体液过多症状:">
@@ -381,7 +400,7 @@
381 400
             </el-form-item>
382 401
           </el-col>
383 402
 
384
-        
403
+
385 404
 
386 405
           <el-col :span="8" v-if="isShows('体液过多其他症状')">
387 406
             <el-form-item label="体液过多其他症状">
@@ -418,7 +437,7 @@
418 437
             </el-form-item>
419 438
           </el-col>
420 439
 
421
-        
440
+
422 441
           <el-col :span="8">
423 442
             <el-form-item
424 443
               label="置换液:"
@@ -440,14 +459,14 @@
440 459
             </el-form-item>
441 460
           </el-col>
442 461
 
443
-          <el-col :span="8" v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29)" v-show="totalShow">
462
+          <el-col :span="8" v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24)" v-show="totalShow">
444 463
             <el-form-item label="置换液总量(ml)">
445 464
               <el-input
446 465
                 v-model="dialysisPrescription.displace_liqui_value"
447 466
               ></el-input>
448 467
             </el-form-item>
449 468
           </el-col>
450
-          <el-col :span="8" v-if="isShows('置换液总量') && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29" v-show="totalShow">
469
+          <el-col :span="8" v-if="isShows('置换液总量') && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24" v-show="totalShow">
451 470
             <el-form-item label="置换液总量(L)">
452 471
               <el-input
453 472
                 v-model="dialysisPrescription.displace_liqui_value"
@@ -869,6 +888,13 @@
869 888
           return [];
870 889
         }
871 890
       }
891
+      scheudle_mode:Number,
892
+      lastAssessment: {
893
+        type: Object,
894
+        default: () => {
895
+          return { id: 0 }
896
+        }
897
+      },
872 898
     },
873 899
     computed: {
874 900
       dialysis_date: function() {
@@ -990,6 +1016,9 @@
990 1016
           blood:"",
991 1017
           dialysis_dialyszers:"",
992 1018
           dialysis_irrigation:"",
1019
+          irrigation:"",
1020
+          antioxidant_commodity_name:"",
1021
+          displace_speed:"",
993 1022
         },
994 1023
 
995 1024
         anticoagulant: {
@@ -1024,27 +1053,47 @@
1024 1053
         this.InnerDialogProps.visibility = true
1025 1054
         switch (val) {
1026 1055
           case '5': // 透析器/灌流器
1027
-             var arr = this.dialysisPrescription.dialyzer_perfusion_apparatus
1028
-             var newArr =  arr.split(",")
1029
-            console.log("透析器/灌流器",newArr)
1030
-            var Arr = []
1031
-            for(let i=0;i<newArr.length;i++){
1032
-              for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1033
-                 var newarr = newArr[i].toUpperCase()
1034
-
1035
-                 var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1036
-
1037
-                 if(newarr == dialy){
1038
-                    Arr.push(this.dialyzerPerfusionApparatus[j].name)
1039
-                 }
1040
-              }
1041
-            }
1042
-            var arrtwo = Arr.join(",")
1043
-            console.log("Arr",arrtwo)
1056
+            // var arr = this.dialysisPrescription.dialyzer_perfusion_apparatus
1057
+            // console.log("arr333333",arr)
1058
+            // var newArr =  arr.split(",")
1059
+            // console.log("透析器/灌流器",newArr)
1060
+            // var Arr = []
1061
+            // for(let i=0;i<newArr.length;i++){
1062
+            //   for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1063
+            //      var newarr = newArr[i].toUpperCase()
1064
+
1065
+            //      var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1066
+
1067
+            //      if(newarr == dialy){
1068
+            //         Arr.push(this.dialyzerPerfusionApparatus[j].name)
1069
+            //      }
1070
+            //   }
1071
+            // }
1072
+            // var arrtwo = Arr.join(",")
1073
+            // console.log("Arr",arrtwo)
1074
+            //  var arr = this.dialysisPrescription.dialyzer_perfusion_apparatus
1075
+            //  var newArr =  arr.split(",")
1076
+            // console.log("透析器/灌流器",newArr)
1077
+            // var Arr = []
1078
+            // for(let i=0;i<newArr.length;i++){
1079
+            //   for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1080
+            //      var newarr = newArr[i].toUpperCase()
1081
+            //
1082
+            //      var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1083
+            //
1084
+            //      if(newarr == dialy){
1085
+            //         Arr.push(this.dialyzerPerfusionApparatus[j].name)
1086
+            //      }
1087
+            //   }
1088
+            // }
1089
+            // var arrtwo = Arr.join(",")
1090
+            // console.log("Arr",arrtwo)
1044 1091
             this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
1045 1092
             this.InnerDialogProps.titles = '透析器/灌流器'
1046 1093
             this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
1047
-            this.InnerDialogProps.selected = arrtwo
1094
+
1095
+
1096
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
1048 1097
             this.InnerDialogProps.isShowTextArea = false
1049 1098
             break
1050 1099
 
@@ -1054,9 +1103,10 @@
1054 1103
             this.InnerDialogProps.titles = '抽血'
1055 1104
             this.InnerDialogProps.type = 'blood'
1056 1105
             this.InnerDialogProps.selected = this.dialysisPrescription.blood
1057
-            this.InnerDialogProps.isShowTextArea = false    
1058
-          
1106
+            this.InnerDialogProps.isShowTextArea = false
1107
+
1059 1108
            case '7': // 透析器
1109
+
1060 1110
             for(let i=0;i<this.dialyzers.length;i++){
1061 1111
                this.dialyzers[i].name = this.dialyzers[i].specification_name
1062 1112
             }
@@ -1322,7 +1372,7 @@
1322 1372
                 ParamsQuery['mode'] = '3'
1323 1373
               }
1324 1374
             }
1325
-            
1375
+
1326 1376
             postPrescription(ParamsQuery).then(response => {
1327 1377
               if (response.data.state == 0) {
1328 1378
                 this.$message.error(response.data.msg)
@@ -1543,6 +1593,7 @@
1543 1593
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1544 1594
       },
1545 1595
       show(pre,schedual,last,his_is_open) {
1596
+
1546 1597
         if(his_is_open == 1){
1547 1598
           this.is_open = 0
1548 1599
         }
@@ -1616,6 +1667,8 @@
1616 1667
           last_weight_after = this.last_record.weight_after
1617 1668
         }
1618 1669
 
1670
+
1671
+
1619 1672
         if (this.predialysis == null || this.predialysis.id == 0) {
1620 1673
           if(last != null) {
1621 1674
 
@@ -1633,7 +1686,10 @@
1633 1686
             this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
1634 1687
             this.dialysisPrescription.package = last.package
1635 1688
             this.dialysisPrescription.a_liquid = last.a_liquid
1689
+
1636 1690
             weight_before = 0
1691
+
1692
+
1637 1693
           }
1638 1694
 
1639 1695
         } else {
@@ -1641,6 +1697,30 @@
1641 1697
         }
1642 1698
 
1643 1699
 
1700
+          //获取最后一次血管通路
1701
+        //  if(this.predialysis!=null){
1702
+        //     if(this.lastAssessment!=null){
1703
+        //       var blood_id = 0
1704
+        //       for(let i= 0;i<this.blood_access_option.length;i++){
1705
+        //           if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_option[i].name){
1706
+        //             blood_id = this.blood_access_option[i].id
1707
+        //           }
1708
+        //       }
1709
+        //        console.log("中国人名职员",this.lastAssessment)
1710
+        //        this.dialysisPrescription.blood_access = blood_id
1711
+        //     }else{
1712
+        //       if(this.last_prescription!=null){
1713
+        //           var blood_id = 0
1714
+        //           for(let i= 0;i<this.blood_access_option.length;i++){
1715
+        //               if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
1716
+        //                 blood_id = this.blood_access_option[i].id
1717
+        //               }
1718
+        //           }
1719
+        //            this.dialysisPrescription.blood_access = blood_id
1720
+        //       }
1721
+        //     }
1722
+
1723
+        //  }
1644 1724
 
1645 1725
         if (weight_before > 0 && last_weight_after > 0) {
1646 1726
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
@@ -1661,7 +1741,7 @@
1661 1741
         this.isVisibility = false
1662 1742
       },
1663 1743
       changeThisAnticoagulant: function(val) {
1664
-        
1744
+
1665 1745
         var thismode = val
1666 1746
         if (isNaN(thismode) || thismode <= 0) {
1667 1747
           return false
@@ -2939,9 +3019,9 @@
2939 3019
         const res = new Map();
2940 3020
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
2941 3021
       },
2942
-     
3022
+
2943 3023
     },
2944
-  
3024
+
2945 3025
     watch: {
2946 3026
       'dialysisPrescription.dialysis_duration_hour': function() {
2947 3027
         let dialysis_duration_minute = 0
@@ -2989,25 +3069,14 @@
2989 3069
           parseFloat(dialysis_duration_hour) +
2990 3070
           parseFloat(dialysis_duration_minute) / 60
2991 3071
 
2992
-        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
2993
-          1,
2994
-          this.dialysisPrescription.anticoagulant_shouji,
2995
-          duration,
3072
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,this.dialysisPrescription.anticoagulant_shouji,duration,
2996 3073
           this.dialysisPrescription.anticoagulant_weichi
2997 3074
         )
2998 3075
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2999 3076
           this.dialysisPrescription.anticoagulant_zongliang = ''
3000 3077
         }
3001 3078
 
3002
-        // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
3003
-        //  1,
3004
-        //   this.dialysisPrescription.anticoagulant_shouji,
3005
-        //  duration,
3006
-        //  this.dialysisPrescription.anticoagulant_weichi
3007
-        // );
3008
-        //  if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3009
-        //    this.dialysisPrescription.anticoagulant_zongliang = "";
3010
-        //  }
3079
+
3011 3080
       },
3012 3081
       'dialysisPrescription.anticoagulant_shouji': function() {
3013 3082
         let dialysis_duration_minute = 0
@@ -3039,15 +3108,7 @@
3039 3108
           this.dialysisPrescription.anticoagulant_zongliang = ''
3040 3109
         }
3041 3110
 
3042
-        //  this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
3043
-        //   1,
3044
-        //    this.dialysisPrescription.anticoagulant_shouji,
3045
-        //    duration,
3046
-        //    this.dialysisPrescription.anticoagulant_weichi
3047
-        //  );
3048
-        // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3049
-        //    this.dialysisPrescription.anticoagulant_zongliang = "";
3050
-        // }
3111
+
3051 3112
       },
3052 3113
       'dialysisPrescription.anticoagulant_weichi': function() {
3053 3114
         let dialysis_duration_minute = 0
@@ -3073,16 +3134,10 @@
3073 3134
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3074 3135
           this.dialysisPrescription.anticoagulant_zongliang = ''
3075 3136
         }
3137
+        console.log("首季",this.dialysisPrescription.anticoagulant_zongliang)
3138
+
3139
+
3076 3140
 
3077
-        // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
3078
-        //   1,
3079
-        //  this.dialysisPrescription.anticoagulant_shouji,
3080
-        //   duration,
3081
-        //   this.dialysisPrescription.anticoagulant_weichi
3082
-        // );
3083
-        // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3084
-        //   this.dialysisPrescription.anticoagulant_zongliang = "";
3085
-        // }
3086 3141
       },
3087 3142
       'prescription.id': {
3088 3143
         immediate: true,
@@ -3439,7 +3494,7 @@
3439 3494
         }
3440 3495
       },
3441 3496
       stockType:function(){
3442
-        
3497
+
3443 3498
         var arr = []
3444 3499
         var arrTwo = []
3445 3500
         for(let i=0;i<this.stockType.length;i++){
@@ -3465,7 +3520,7 @@
3465 3520
            }
3466 3521
         }
3467 3522
         this.irrigations = irrigation
3468
-       
3523
+
3469 3524
       }
3470 3525
     }
3471 3526
   }

+ 598 - 27
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Parādīt failu

@@ -4,45 +4,94 @@
4 4
              :modal-append-to-body="false"
5 5
              width="854px">
6 6
 
7
-    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
7
+    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
8
+      
8 9
       <el-form-item label="透析物品核查 : ">
9
-        <el-radio v-model="doubleReview.dialysis_item_check" label="1">正确</el-radio>
10
-        <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio>
10
+        <el-radio v-model="doubleReview.dialysis_item_check" label="1" @change="changeRadio">正确</el-radio>
11
+        <!-- <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio> -->
11 12
       </el-form-item>
12
-      <el-form-item label="差错描述 : " label-width="80px">
13
+      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
13 14
         <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
14 15
       </el-form-item>
15 16
     </el-form>
16
-    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
17
+   
18
+   <el-form :inline="true" class="demo-form-inline newCheckBox" :model="doubleReview" label-width="110px">
19
+       <el-checkbox-group v-model="checkList" @change="changeBox">
20
+          <el-checkbox :label="diazes"></el-checkbox>
21
+          <el-checkbox :label="puncture_needle"></el-checkbox>
22
+          <el-checkbox :label="dialysate_formulation"></el-checkbox>
23
+          <el-checkbox :label="kalium"></el-checkbox>
24
+          <el-checkbox :label="calcium"></el-checkbox>
25
+       </el-checkbox-group>
26
+    </el-form>
27
+    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
17 28
       <el-form-item label="透析参数核查 : ">
18
-        <el-radio v-model="doubleReview.dialysis_parameter_check" label="1">正确</el-radio>
19
-        <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio>
29
+        <el-radio v-model="doubleReview.dialysis_parameter_check" label="1" @change="changeRadioTwo">正确</el-radio>
30
+        <!-- <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio> -->
20 31
       </el-form-item>
21
-      <el-form-item label="差错描述 : " label-width="80px">
32
+      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
22 33
         <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
23 34
       </el-form-item>
24 35
     </el-form>
25
-    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
36
+    <el-form class="newCheckBox">
37
+     <el-checkbox-group v-model="checkListOne" @change="changeBoxOne" >
38
+        <el-checkbox :label="dialys_mode"></el-checkbox>
39
+        <el-checkbox :label="long_time"></el-checkbox>
40
+        <el-checkbox :label="target_ultrafiltration"></el-checkbox>
41
+        <el-checkbox :label="anticoagulant" ></el-checkbox>
42
+        <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
43
+        <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
44
+        <el-checkbox :label="anticoagulant_zongliang"></el-checkbox>
45
+        <el-checkbox :label="displace_liqui_part"></el-checkbox>
46
+        <el-checkbox :label="replacement_total"></el-checkbox>
47
+        <el-checkbox :label="blood_flow_volume"></el-checkbox>
48
+        <el-checkbox :label="dialysate_flow"></el-checkbox>
49
+     </el-checkbox-group>
50
+    </el-form>
51
+    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
26 52
       <el-form-item label="血管通路核查 : ">
27 53
 
28
-        <el-radio v-model="doubleReview.vascular_access_verification" label="1">正确</el-radio>
29
-        <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio>
54
+        <el-radio v-model="doubleReview.vascular_access_verification" label="1" @change="changeRadioThree">正确</el-radio>
55
+        <!-- <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio> -->
30 56
 
31 57
       </el-form-item>
32
-      <el-form-item label="差错描述 : " label-width="80px">
58
+      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
33 59
         <el-input v-model="doubleReview.vascular_access_desc"></el-input>
34 60
       </el-form-item>
35 61
     </el-form>
36
-    <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
62
+    <el-form class="newCheckBox">
63
+       <el-checkbox-group v-model="checkListTwo" @change="changeBoxTwo">
64
+        <el-checkbox :label="blood_access_part_opera_id">
65
+
66
+        </el-checkbox>
67
+        <el-checkbox label="动静脉接错"></el-checkbox>
68
+        <el-checkbox label="渗血"></el-checkbox>
69
+        <el-checkbox label="压迫" ></el-checkbox>
70
+        <el-checkbox label="折叠"></el-checkbox>
71
+        <el-checkbox label="滑脱"></el-checkbox>
72
+     </el-checkbox-group>
73
+    </el-form>
74
+    <el-form :inline="true" class="demo-form-inline newInline" :model="doubleReview" label-width="105px">
37 75
       <el-form-item label="管道连接核查 : ">
38
-        <el-radio v-model="doubleReview.pipeline_connection_check" label="1">正确</el-radio>
39
-        <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio>
76
+        <el-radio v-model="doubleReview.pipeline_connection_check" label="1" @change="changeRadioFour">正确</el-radio>
77
+        <!-- <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio> -->
40 78
       </el-form-item>
41
-      <el-form-item label="差错描述 : " label-width="80px">
79
+      <el-form-item class="newItem" label="差错描述 : " label-width="90px">
42 80
         <el-input v-model="doubleReview.pipeline_connection_desc"></el-input>
43 81
       </el-form-item>
44 82
     </el-form>
45
-
83
+    <el-form class="newCheckBox">
84
+      <el-checkbox-group v-model="checkListThree" @change="changeBoxThree">
85
+        <el-checkbox label="泵前补液测管未夹"></el-checkbox>
86
+        <el-checkbox label="肝素管夹未开启"></el-checkbox>
87
+        <el-checkbox label="透析器连接错误"></el-checkbox>
88
+        <el-checkbox label="动静脉壶页面不标准" ></el-checkbox>
89
+        <el-checkbox label="静脉管路未卡入保护夹"></el-checkbox>
90
+        <el-checkbox label="压力传感器夹未打开"></el-checkbox>
91
+        <el-checkbox label="接口连接松动"></el-checkbox>
92
+        <el-checkbox label="管路打折"></el-checkbox>
93
+     </el-checkbox-group>
94
+    </el-form>
46 95
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="120px">
47 96
       <el-form-item label="第一核对时间:">
48 97
         <el-time-picker
@@ -99,7 +148,7 @@
99 148
   import { postDoubleCheck } from '@/api/dialysis'
100 149
   import { uParseTime } from '@/utils/tools'
101 150
   import { parseTime } from '@/utils'
102
-
151
+  import { getDataConfig } from '@/utils/data'
103 152
   export default {
104 153
     name: 'doubleCheckDialog',
105 154
     data() {
@@ -128,8 +177,29 @@
128 177
           check_time: 0,
129 178
           first_check_time: 0
130 179
         },
131
-
132
-        record_date: ''
180
+        dialysate_formulation_options:[],
181
+        record_date: '',
182
+        checkList: [],
183
+        checkListOne:[],
184
+        checkListTwo:[],
185
+        checkListThree:[],
186
+        diazes:"透析器/灌流器:",
187
+        puncture_needle:"穿刺针:",
188
+        dialysate_formulation:"透析液配方:",
189
+        kalium:"钾:",
190
+        calcium:"钙:",
191
+        dialys_mode:"透析模式:",
192
+        long_time:"透析时长:",
193
+        target_ultrafiltration:"目标超滤量:",
194
+        anticoagulant:"抗凝剂:",
195
+        anticoagulant_shouji:"首剂:",
196
+        anticoagulant_weichi:"维持:",
197
+        anticoagulant_zongliang:"总量:",
198
+        displace_liqui_part:"置换液:",
199
+        replacement_total:"置换总量:",
200
+        blood_flow_volume:"处方血流量:",
201
+        dialysate_flow:"透析液流量:",
202
+        blood_access_part_opera_id:"通路类型:"
133 203
       }
134 204
     }, methods: {
135 205
       show() {
@@ -187,7 +257,8 @@
187 257
       handleCancle: function() {
188 258
         this.isVisibility = false
189 259
 
190
-      }, handleComfirm: function() {
260
+      }, 
261
+      handleComfirm: function() {
191 262
 
192 263
         if (this.patient.id <= 0) {
193 264
           this.$message.error('没有选择患者')
@@ -259,6 +330,7 @@
259 330
             // }
260 331
 
261 332
             let doublecheck_resp = response.data.data.doubleCheck
333
+         
262 334
             var doubleCheck = this.double_check
263 335
             for (var index in doublecheck_resp) {
264 336
               // doubleCheck[index] = doublecheck_resp[index];
@@ -464,6 +536,355 @@
464 536
           }
465 537
         }
466 538
       },
539
+      changeBox(val){
540
+         
541
+         var arr = []
542
+         var str = val.join(';')
543
+         console.log("strw222222222",str)
544
+        if(str.indexOf('透析器/灌流器')!=-1 && this.prescription!=null){
545
+            arr.push("透析器/灌流器:"+(this.prescription.dialyzer_perfusion_apparatus?this.prescription.dialyzer_perfusion_apparatus:""))
546
+        }
547
+
548
+       if(str.indexOf('透析器/灌流器')!=-1 && this.prescription==null){
549
+            arr.push("透析器/灌流器:")
550
+        }
551
+       
552
+        if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id!=0){
553
+           arr.push("穿刺针:"+this.predialysis_evaluation.puncture_needle)
554
+        }
555
+
556
+         if(str.indexOf('穿刺针')!=-1 && this.predialysis_evaluation.id==0){
557
+           arr.push("穿刺针:")
558
+        }
559
+        
560
+        if(str.indexOf('透析液配方')!=-1 && this.prescription!=null){
561
+           arr.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
562
+        }
563
+
564
+       if(str.indexOf('透析液配方')!=-1 && this.prescription==null){
565
+           arr.push("透析液配方:")
566
+        }
567
+        if(str.indexOf('钾')!=-1 && this.prescription!=null ){
568
+          arr.push("钾:"+(this.prescription.kalium?this.prescription.kalium:""))
569
+        }
570
+        if(str.indexOf('钾')!=-1 && this.prescription==null ){
571
+          arr.push("钾:")
572
+        }
573
+        if(str.indexOf('钙')!=-1 && this.prescription!=null ){
574
+          arr.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
575
+        }
576
+        if(str.indexOf('钙')!=-1 && this.prescription==null ){
577
+          arr.push("钙:")
578
+        }
579
+        console.log("arr",arr)
580
+        this.doubleReview.dialysis_item_desc = arr.join(";")
581
+        if(val.length > 0){
582
+          this.doubleReview.dialysis_item_check = 2
583
+        }else{
584
+          this.doubleReview.dialysis_item_check = "1"
585
+        }
586
+      },
587
+      changeBoxOne(val){
588
+         var arr = []
589
+         var str = val.join(';')
590
+         console.log("strw222222222",str)
591
+        if(str.indexOf('透析模式')!=-1 && this.prescription!=null){
592
+            arr.push("透析模式:"+(this.getMode(this.prescription.mode_id)?this.getMode(this.prescription.mode_id):""))
593
+        }
594
+         if(str.indexOf('透析模式')!=-1 && this.prescription==null){
595
+            arr.push("透析模式:")
596
+         } 
597
+
598
+         if(str.indexOf('透析时长')!=-1 && this.prescription!=null){
599
+            arr.push("透析时长:"+(this.prescription.dialysis_duration?this.prescription.dialysis_duration:""))
600
+         }
601
+
602
+        if(str.indexOf('透析时长')!=-1 && this.prescription==null){
603
+            arr.push("透析时长:")
604
+         }
605
+        
606
+        if(str.indexOf("目标超滤量")!=-1 && this.prescription!=null){
607
+           arr.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
608
+        }
609
+        if(str.indexOf("目标超滤量")!=-1 && this.prescription==null){
610
+           arr.push("目标超滤量:")
611
+        }
612
+        if(str.indexOf("抗凝剂")!=-1 && this.prescription!=null){
613
+           arr.push("抗凝剂:"+(this.prescription.anticoagulant?this.prescription.anticoagulant:""))
614
+        }
615
+       if(str.indexOf("抗凝剂")!=-1 && this.prescription==null){
616
+           arr.push("抗凝剂:")
617
+        }
618
+        if(str.indexOf("首剂")!=-1 && this.prescription!=null){
619
+           arr.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
620
+        }
621
+        if(str.indexOf("首剂")!=-1 && this.prescription==null){
622
+           arr.push("首剂:")
623
+        }
624
+       if(str.indexOf("维持")!=-1 && this.prescription!=null){
625
+           arr.push("维持:"+(this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:""))
626
+        }
627
+
628
+        if(str.indexOf("维持")!=-1 && this.prescription==null){
629
+           arr.push("维持:")
630
+        }
631
+
632
+        if(str.indexOf("总量")!=-1 && this.prescription!=null){
633
+           arr.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
634
+        }
635
+        
636
+        if(str.indexOf("总量")!=-1 && this.prescription==null){
637
+           arr.push("总量:")
638
+        }
639
+
640
+       if(str.indexOf("置换液")!=-1 && this.prescription!=null){
641
+           arr.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
642
+        } 
643
+
644
+       if(str.indexOf("置换液")!=-1 && this.prescription==null){
645
+           arr.push("置换液:")
646
+        } 
647
+      
648
+       if(str.indexOf("置换总量")!=-1 && this.prescription!=null){
649
+           arr.push("置换总量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
650
+        } 
651
+
652
+        if(str.indexOf("置换总量")!=-1 && this.prescription==null){
653
+           arr.push("置换总量:")
654
+        } 
655
+
656
+       if(str.indexOf("处方血流量")!=-1 && this.prescription!=null){
657
+           arr.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
658
+        } 
659
+
660
+       if(str.indexOf("处方血流量")!=-1 && this.prescription==null){
661
+           arr.push("处方血流量:")
662
+        } 
663
+       
664
+       if(str.indexOf("透析液流量")!=-1 && this.prescription!=null){
665
+           arr.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
666
+        } 
667
+
668
+       if(str.indexOf("透析液流量")!=-1 && this.prescription==null){
669
+           arr.push("透析液流量:")
670
+        } 
671
+        console.log("arr",arr)
672
+        this.doubleReview.dialysis_parameter_desc = arr.join(";")
673
+        if(val.length>0){
674
+          this.doubleReview.dialysis_parameter_check = 2
675
+        }else{
676
+          this.doubleReview.dialysis_parameter_check = "1"
677
+        }
678
+      },
679
+      changeBoxTwo(val){
680
+         var arr = []
681
+         var str = val.join(';')
682
+         console.log("strw222222222",str)
683
+ 
684
+          if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id!=0){
685
+            arr.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
686
+          
687
+          }
688
+
689
+          if(str.indexOf('通路类型')!=-1 && this.predialysis_evaluation.id==0){
690
+            arr.push("通路类型:")
691
+          }
692
+          if(str.indexOf('动静脉接错')!=-1){
693
+             arr.push("动静脉接错:")
694
+          }
695
+          if(str.indexOf('渗血')!=-1){
696
+             arr.push("渗血:")
697
+          }
698
+         if(str.indexOf('压迫')!=-1){
699
+             arr.push("压迫:")
700
+          }
701
+          if(str.indexOf('折叠')!=-1){
702
+             arr.push("折叠:")
703
+          }
704
+          if(str.indexOf('滑脱')!=-1){
705
+             arr.push("滑脱:")
706
+          }
707
+        console.log("arr",arr)
708
+        this.doubleReview.vascular_access_desc = arr.join(";")
709
+        if(val.length>0){
710
+          this.doubleReview.vascular_access_verification = 2
711
+        }else{
712
+          this.doubleReview.vascular_access_verification = "1"
713
+        }
714
+      },
715
+      changeBoxThree(val){
716
+         var arr = []
717
+         var str = val.join(';')
718
+         console.log("strw222222222",str)
719
+         if(str.indexOf('泵前补液测管未夹')!=-1){
720
+           arr.push("泵前补液测管未夹:")
721
+         }
722
+         if(str.indexOf('肝素管夹未开启')!=-1){
723
+           arr.push("肝素管夹未开启:")
724
+         }
725
+         if(str.indexOf('透析器连接错误')!=-1){
726
+           arr.push("透析器连接错误:")
727
+         }
728
+        if(str.indexOf('动静脉壶页面不标准')!=-1){
729
+           arr.push("动静脉壶页面不标准:")
730
+         }
731
+          if(str.indexOf('静脉管路未卡入保护夹')!=-1){
732
+           arr.push("静脉管路未卡入保护夹:")
733
+         }
734
+         if(str.indexOf("压力传感器夹未打开")!=-1){
735
+           arr.push("压力传感器夹未打开")
736
+         }
737
+         if(str.indexOf('接口连接松动')!=-1){
738
+            arr.push("接口连接松动")
739
+         }
740
+         if(str.indexOf("管路打折")!=-1){
741
+           arr.push("管路打折")
742
+         }
743
+         this.doubleReview.pipeline_connection_desc = arr.join(";")
744
+         if(val.length > 0){
745
+          this.doubleReview.pipeline_connection_check = 2
746
+         }else{
747
+           this.doubleReview.pipeline_connection_check = "1"
748
+         }
749
+      },
750
+
751
+      changeRadio(val){
752
+        if(val == 1){
753
+         this.doubleReview.dialysis_item_desc = ""
754
+         this.checkList =[]
755
+        }
756
+      },
757
+      changeRadioTwo(val){
758
+        if(val == 1){
759
+          this.doubleReview.dialysis_parameter_desc = ""
760
+          this.checkListOne = []
761
+        }
762
+      },
763
+      changeRadioThree(val){
764
+         if(val == 1){
765
+           this.doubleReview.vascular_access_desc = ""
766
+           this.checkListTwo = []
767
+         }
768
+      },
769
+      changeRadioFour(val){
770
+         if(val == 1){
771
+           this.doubleReview.pipeline_connection_desc = ""
772
+           this.checkListThree = [] 
773
+         }
774
+      },
775
+
776
+      GetDialysateFormulationById(val) {
777
+         this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
778
+         console.log("透析液配方",this.dialysate_formulation_options)
779
+        let name = ''
780
+        let dfl = this.dialysate_formulation_options.length
781
+        for (let index = 0; index < dfl; index++) {
782
+          if (this.dialysate_formulation_options[index].id == val) {
783
+            name = this.dialysate_formulation_options[index].name
784
+            break
785
+          }
786
+        }
787
+        return name
788
+     },
789
+      getMode(id){
790
+       var name = ""
791
+        if(id == 1){
792
+          name = "HD"
793
+        }
794
+        if(id == 2){
795
+          name = "HDF"
796
+        }
797
+
798
+        if(id == 3){
799
+          name = "HD+HP"
800
+        }
801
+
802
+        if(id == 4){
803
+          name = "HP"
804
+        }
805
+        if(id == 5){
806
+          name = "HF"
807
+        }
808
+       if(id == 6){
809
+          name = "SCUF"
810
+        }
811
+       if(id == 7){
812
+          name = "IUF"
813
+        }
814
+       if(id == 8){
815
+          name = "HFHD"
816
+        }
817
+
818
+       if(id == 9){
819
+          name = "HFHD+HP"
820
+        }
821
+       if(id == 10){
822
+          name = "PHF"
823
+        }
824
+
825
+       if(id == 11){
826
+          name = "HFR"
827
+        }
828
+
829
+        if(id == 12){
830
+          name = "HDF+HP"
831
+        }
832
+
833
+        if(id == 13){
834
+          name = "CRRT"
835
+        }
836
+
837
+        if(id == 14){
838
+          name = "腹水回输"
839
+        }
840
+        if(id == 19){
841
+          name = "IUF+HD"
842
+        }
843
+        if(id == 20){
844
+          name = "UF"
845
+        }
846
+        return name
847
+     },
848
+
849
+     getAnticoagulant(id){
850
+       var name = ""
851
+       if(id == 1){
852
+         name = "无肝素"
853
+       }
854
+       if(id == 2){
855
+         name = "普通肝素"
856
+       }
857
+       if(id == 3){
858
+         name = "低分子肝素"
859
+       }
860
+       if(id == 4){
861
+         name = "阿加曲班"
862
+       }
863
+       if(id == 5){
864
+         name = "枸橼酸钠"
865
+       }
866
+       if(id == 6){
867
+         name ="低分子肝素钙"
868
+       }
869
+       if(id == 7){
870
+         name = "低分子肝素钠"
871
+       }
872
+       return name
873
+     },
874
+     getBloodAccess(id){
875
+       
876
+        let vascular_access_desc = getDataConfig(
877
+          'hemodialysis',
878
+          'vascular_access_desc'
879
+        )
880
+        var name = ""
881
+        for(let i=0;i<vascular_access_desc.length;i++){
882
+          if(vascular_access_desc[i].id == id){
883
+             name = vascular_access_desc[i].name
884
+          }
885
+        }
886
+        return name
887
+     }
467 888
     },
468 889
 
469 890
     props: {
@@ -485,13 +906,146 @@
485 906
         default: () => {
486 907
           return { id: 0 }
487 908
         }
488
-      }
909
+      },
910
+      predialysis_evaluation: { // 透前评估
911
+        type: Object,
912
+        default: () => {
913
+          return { id: 0 }
914
+        }
915
+      },
916
+      prescription: {
917
+        // 透析处方
918
+        type: Object,
919
+        default: () => {
920
+          return { id: 0 }
921
+        }
922
+      },
489 923
 
490 924
     },
491 925
     watch: {
492 926
       isVisibility(val) {
493
-
494
-      }, 'double_check.id': function() {
927
+      
928
+        if(this.prescription!=null && this.prescription.id!=0){
929
+          this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
930
+          this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
931
+         
932
+          this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
933
+         
934
+          this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
935
+          this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id)
936
+          this.long_time = this.long_time + (this.prescription.dialysis_duration?this.prescription.dialysate_formulation:"")
937
+          this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
938
+          this.anticoagulant = this.anticoagulant + this.getAnticoagulant(this.prescription.anticoagulant)
939
+          this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
940
+          this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
941
+          this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
942
+          this.displace_liqui_part = this.displace_liqui_part + (this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:"")
943
+          this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
944
+          this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
945
+        }
946
+        if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
947
+          this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
948
+          this.blood_access_part_opera_id = this.blood_access_part_opera_id + this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id)
949
+        } 
950
+        if(this.double_check !=null && this.double_check.id!=0){
951
+           console.log("双人核对",this.double_check)
952
+           if(this.double_check.dialysis_item_desc.indexOf("透析器/灌流器")!=-1){
953
+             this.checkList.push("透析器/灌流器:"+this.prescription.dialyzer_perfusion_apparatus)
954
+             console.log("222222",this.checkList)
955
+           }
956
+           if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
957
+              this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
958
+           }
959
+           if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
960
+              this.checkList.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
961
+           }
962
+           if(this.double_check.dialysis_item_desc.indexOf("钾:")!=-1){
963
+              this.checkList.push("钾:"+(this.prescription.kalium?this.prescription.kalium:""))
964
+           }
965
+           if(this.double_check.dialysis_item_desc.indexOf("钙:")!=-1){
966
+               this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
967
+           }
968
+           if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
969
+              this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
970
+           }
971
+           if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
972
+              this.checkListOne.push("透析时长:"+(this.prescription.dialysis_duration?this.prescription.dialysate_formulation:""))
973
+           }
974
+           if(this.double_check.dialysis_parameter_desc.indexOf("目标超滤量")!=-1){
975
+              this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
976
+           }
977
+           if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
978
+              this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant))
979
+           }
980
+           if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
981
+              this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
982
+           }
983
+           if(this.double_check.dialysis_parameter_desc.indexOf("维持")!=-1){
984
+              this.checkListOne.push("维持:"+(this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:""))
985
+           }
986
+          if(this.double_check.dialysis_parameter_desc.indexOf("总量")!=-1){
987
+              this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
988
+           }
989
+          if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
990
+              this.checkListOne.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
991
+           }
992
+           if(this.double_check.dialysis_parameter_desc.indexOf("置换总量")!=-1){
993
+             this.checkListOne.push("置换总量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
994
+           }
995
+           if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
996
+             this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
997
+           }
998
+           if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
999
+             this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
1000
+           }
1001
+           if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1002
+             this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))
1003
+           }
1004
+
1005
+           if(this.double_check.vascular_access_desc.indexOf("动静脉接错")!=-1){
1006
+             this.checkListTwo.push("动静脉接错")
1007
+           }
1008
+           if(this.double_check.vascular_access_desc.indexOf("渗血")!=-1){
1009
+             this.checkListTwo.push("渗血")
1010
+           }
1011
+           if(this.double_check.vascular_access_desc.indexOf("压迫")!=-1){
1012
+             this.checkListTwo.push("压迫")
1013
+           }
1014
+          if(this.double_check.vascular_access_desc.indexOf("折叠")!=-1){
1015
+             this.checkListTwo.push("折叠")
1016
+           }
1017
+          if(this.double_check.vascular_access_desc.indexOf("滑脱")!=-1){
1018
+             this.checkListTwo.push("滑脱")
1019
+           }
1020
+
1021
+           if(this.double_check.pipeline_connection_desc.indexOf("泵前补液测管未夹")!=-1){
1022
+             this.checkListThree.push("泵前补液测管未夹")
1023
+           }
1024
+           if(this.double_check.pipeline_connection_desc.indexOf("肝素管夹未开启")!=-1){
1025
+             this.checkListThree.push("肝素管夹未开启")
1026
+           }
1027
+           if(this.double_check.pipeline_connection_desc.indexOf("透析器连接错误")!=-1){
1028
+             this.checkListThree.push("透析器连接错误")
1029
+           }
1030
+           if(this.double_check.pipeline_connection_desc.indexOf("动静脉壶页面不标准")!=-1){
1031
+             this.checkListThree.push("动静脉壶页面不标准")
1032
+           }
1033
+           if(this.double_check.pipeline_connection_desc.indexOf("静脉管路未卡入保护夹")!=-1){
1034
+             this.checkListThree.push("静脉管路未卡入保护夹")
1035
+           }
1036
+           if(this.double_check.pipeline_connection_desc.indexOf("压力传感器夹未打开")){
1037
+              this.checkListThree.push("压力传感器夹未打开")
1038
+           }
1039
+           if(this.double_check.pipeline_connection_desc.indexOf("接口连接松动")){
1040
+              this.checkListThree.push("接口连接松动")
1041
+           }
1042
+           if(this.double_check.pipeline_connection_desc.indexOf("管路打折")){
1043
+             this.checkListThree.push("管路打折")
1044
+           }
1045
+           console.log("hhh",this.checkListOne)
1046
+        }
1047
+      }, 
1048
+      'double_check.id': function() {
495 1049
         if (this.double_check.id > 0) {
496 1050
           for (var index in this.doubleReview) {
497 1051
             this.doubleReview[index] = this.double_check[index] + ''
@@ -558,6 +1112,7 @@
558 1112
 
559 1113
     },
560 1114
     created() {
1115
+     
561 1116
       var date = this.$route.query && this.$route.query.date
562 1117
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
563 1118
 
@@ -571,12 +1126,28 @@
571 1126
         this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
572 1127
       }
573 1128
       this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
574
-
1129
+     
575 1130
     }
576 1131
 
577 1132
   }
578 1133
 </script>
579 1134
 
580
-<style scoped>
581
-
1135
+<style lang="scss">
1136
+.newInline{
1137
+  display: flex;
1138
+}
1139
+.newItem{
1140
+  flex: 1;
1141
+  display: flex !important;
1142
+  .el-form-item__content{
1143
+    width: 100%;
1144
+  }
1145
+}
1146
+.newCheckBox{
1147
+  margin-bottom: 10px;
1148
+  .el-checkbox{
1149
+    margin-bottom: 10px;
1150
+  }
1151
+}
582 1152
 </style>
1153
+

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

@@ -213,10 +213,10 @@
213 213
               this.$set(this_order, key, dialysis_order[key])
214 214
             }
215 215
             let orgId = parseInt(sessionStorage.getItem("org_id"));
216
-            axios.get('/api/index/downpatient?org_id='+ orgId + '&admin_user_id='+ this.form.nurse_id + '&patient_id=' + this.patient_id).then((res) => {
217
-              console.log('res',res.data)
216
+            // axios.get('/api/index/downpatient?org_id='+ orgId + '&admin_user_id='+ this.form.nurse_id + '&patient_id=' + this.patient_id).then((res) => {
217
+            //   console.log('res',res.data)
218 218
 
219
-            }) 
219
+            // }) 
220 220
             this.hide()
221 221
             this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
222 222
 

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

@@ -160,6 +160,9 @@
160 160
                   template_id == 27 ||
161 161
                   template_id == 29 ||
162 162
                   template_id == 30 ||
163
+                  template_id == 31 ||
164
+                  template_id == 32 ||
165
+                  template_id == 34 ||
163 166
                   org_id == 9555)
164 167
             "
165 168
           >
@@ -196,6 +199,9 @@
196 199
                 template_id != 27 &&
197 200
                 template_id != 29 &&
198 201
                 template_id != 30 &&
202
+                template_id != 31 &&
203
+                template_id != 32 &&
204
+                template_id != 34 &&
199 205
                 org_id!=9555
200 206
             "
201 207
           >
@@ -213,7 +219,7 @@
213 219
             align="center"
214 220
             label="超滤率(ml/h)"
215 221
             width="100"
216
-            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) "
222
+            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) "
217 223
           >
218 224
             <template slot-scope="scope">
219 225
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -224,7 +230,7 @@
224 230
             align="center"
225 231
             label="超滤率(L/h)"
226 232
             width="100"
227
-            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"
233
+            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"
228 234
           >
229 235
             <template slot-scope="scope">
230 236
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -286,7 +292,7 @@
286 292
             align="center"
287 293
             label="置换量(ml)"
288 294
             width="100"
289
-            v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" >
295
+            v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 32)" >
290 296
             <template slot-scope="scope">
291 297
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
292 298
             </template>
@@ -297,7 +303,7 @@
297 303
             align="center"
298 304
             label="置换量(L)"
299 305
             width="100"
300
-            v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" >
306
+            v-if=" isShow('置换量') &&  ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id !=32)" >
301 307
             <template slot-scope="scope">
302 308
               {{ scope.row.displacement_quantity ? scope.row.displacement_quantity : "" }}
303 309
             </template>
@@ -512,12 +518,12 @@
512 518
             </el-form-item>
513 519
           </el-col>
514 520
 
515
-          <el-col :span="8" 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) ">
521
+          <el-col :span="8" 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) ">
516 522
             <el-form-item label="超滤率(ml/h)">
517 523
               <el-input v-model="form.ultrafiltration_rate"></el-input>
518 524
             </el-form-item>
519 525
           </el-col>
520
-          <el-col :span="8" 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">
526
+          <el-col :span="8" 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">
521 527
             <el-form-item label="超滤率(L/h)">
522 528
               <el-input v-model="form.ultrafiltration_rate"></el-input>
523 529
             </el-form-item>
@@ -525,7 +531,7 @@
525 531
 
526 532
           <el-col
527 533
             :span="8"
528
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || 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 == 27 || template_id == 29 || template_id == 30 || org_id == 9555) " >
534
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || 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 == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || org_id == 9555) " >
529 535
             <el-form-item label="超滤量(ml):">
530 536
               <el-input v-model="form.ultrafiltration_volume"></el-input>
531 537
             </el-form-item>
@@ -533,7 +539,7 @@
533 539
 
534 540
           <el-col
535 541
             :span="8"
536
-            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && 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!=27 && template_id!=29 && template_id!=30 && org_id !=9555" >
542
+            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && 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!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && org_id !=9555" >
537 543
             <el-form-item label="超滤量(L):">
538 544
               <el-input v-model="form.ultrafiltration_volume"></el-input>
539 545
             </el-form-item>
@@ -958,7 +964,10 @@ export default {
958 964
       }
959 965
 
960 966
       getTodayMonitor(params).then(rs => {
967
+        console.log("机构ID",this.org_id)
968
+        
961 969
         var resp = rs.data.data
970
+       
962 971
         this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
963 972
         this.form.temperature = '' // this.last_monitor_record.pulse_frequency;
964 973
 
@@ -967,11 +976,21 @@ export default {
967 976
         this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
968 977
         this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
969 978
         this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
970
-        this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
979
+        // 静脉压
980
+        if(this.org_id == 10060){
981
+          this.form.venous_pressure = resp.monitor.venous_pressure
982
+        }else{
983
+          this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
984
+        }
985
+        
971 986
         this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1
972 987
         this.form.arterial_pressure = resp.monitor.arterial_pressure ? resp.monitor.arterial_pressure : '' // this.last_monitor_record.arterial_pressure;
973 988
         this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1
974
-        this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
989
+        if(this.org_id == 10060){
990
+          this.form.transmembrane_pressure = resp.monitor.transmembrane_pressure;
991
+        }else{
992
+          this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
993
+        }
975 994
         this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1
976 995
         this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
977 996
         this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
@@ -1097,6 +1116,7 @@ export default {
1097 1116
     },
1098 1117
 
1099 1118
     submitAction: function() {
1119
+      
1100 1120
       // TODO loading
1101 1121
       var is_new = this.form.id
1102 1122
       this.form.operate_time = parseInt(this.form.operate_time / 1000)

+ 34 - 1
src/xt_pages/dialysis/details/dialysisComputer.vue Parādīt failu

@@ -25,6 +25,20 @@
25 25
           <label>冲管护士 : </label>
26 26
           <span class="content">{{ washpipe_nurse }}</span>
27 27
         </li>
28
+
29
+        <li v-if="isShow('换药护士')">
30
+          <label>换药护士 : </label>
31
+          <span class="content">{{ change_nurse }}</span>
32
+        </li>
33
+
34
+       <li v-if="isShow('疑难穿刺护士')">
35
+          <label>疑难穿刺护士 : </label>
36
+          <span class="content">{{ difficult_puncture_nurse }}</span>
37
+        </li>
38
+        <li v-if="isShow('新开瘘护士')">
39
+          <label>新开瘘护士 : </label>
40
+          <span class="content">{{ new_fistula_nurse }}</span>
41
+        </li>
28 42
         <li>
29 43
           <label>状态 : </label>
30 44
           <span class="content">{{ stage }}</span>
@@ -124,11 +138,30 @@
124 138
           return '-'
125 139
         }
126 140
         return this.admin_map[this.record.puncture_nurse] == null ? '' : this.admin_map[this.record.puncture_nurse].name
127
-      }, washpipe_nurse: function() {
141
+      },
142
+       washpipe_nurse: function() {
128 143
         if (this.record.id == 0) {
129 144
           return '-'
130 145
         }
131 146
         return this.admin_map[this.record.washpipe_nurse] == null ? '' : this.admin_map[this.record.washpipe_nurse].name
147
+      },
148
+      change_nurse:function(){
149
+         if (this.record.id == 0) {
150
+          return '-'
151
+        }
152
+        return this.admin_map[this.record.change_nurse] == null ? '' : this.admin_map[this.record.change_nurse].name
153
+      },
154
+      difficult_puncture_nurse:function(){
155
+        if (this.record.id == 0) {
156
+          return '-'
157
+        }
158
+        return this.admin_map[this.record.difficult_puncture_nurse] == null ? '' : this.admin_map[this.record.difficult_puncture_nurse].name
159
+      },
160
+      new_fistula_nurse:function(){
161
+         if (this.record.id == 0) {
162
+          return '-'
163
+        }
164
+        return this.admin_map[this.record.new_fistula_nurse] == null ? '' : this.admin_map[this.record.new_fistula_nurse].name
132 165
       }
133 166
     },
134 167
     methods: {

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

@@ -14,16 +14,16 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34" width="50px"> 超滤率 <br />(L/h) </th>
21 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23 23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>
24 24
           <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29" width="92px" > 置换率(L/h)  </th>
25
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" width="92px"  > 置换量(ml)  </th>
26
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" width="92px" > 置换量(L) </th>
25
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 32)" width="92px"  > 置换量(ml)  </th>
26
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id!=32)" width="92px" > 置换量(L) </th>
27 27
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
28 28
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
29 29
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>

+ 15 - 19
src/xt_pages/dialysis/details/doubleCheck.vue Parādīt failu

@@ -7,24 +7,22 @@
7 7
           <label>透析物品核查 : </label>
8 8
           <span class="content">{{ dialysis_item_check }}</span>
9 9
         </li>
10
-        <li>
11
-          <label>透析参数核查 : </label>
12
-          <span class="content">{{ dialysis_parameter_check }}</span>
13
-        </li>
14
-        <li>
15
-          <label>血管通路核查 : </label>
16
-          <span class="content">{{ vascular_access_verification }}</span>
17
-        </li>
18
-      </ul>
19
-      <ul>
20 10
         <li>
21 11
           <label>{{ dialysis_item_desc_title }}</label>
22 12
           <span class="content">{{ dialysis_item_desc }}</span>
23 13
         </li>
14
+        <li>
15
+          <label>透析参数核查 : </label>
16
+          <span class="content">{{ dialysis_parameter_check }}</span>
17
+        </li>
24 18
         <li>
25 19
           <label>{{ dialysis_parameter_desc_title }}</label>
26 20
           <span class="content">{{ dialysis_parameter_desc }}</span>
27 21
         </li>
22
+        <li>
23
+          <label>血管通路核查 : </label>
24
+          <span class="content">{{ vascular_access_verification }}</span>
25
+        </li>
28 26
         <li>
29 27
           <label>{{ vascular_access_desc_title }}</label>
30 28
           <span class="content">{{ vascular_access_desc }}</span>
@@ -32,9 +30,13 @@
32 30
       </ul>
33 31
       <ul>
34 32
           <li>
35
-          <label>管道连接核查 : </label>
36
-          <span class="content">{{ pipeline_connection_check }}</span>
37
-        </li>
33
+            <label>管道连接核查 : </label>
34
+            <span class="content">{{ pipeline_connection_check }}</span>
35
+          </li>
36
+          <li>
37
+            <label>{{ pipeline_connection_desc_title }}</label>
38
+            <span class="content">{{ pipeline_connection_desc }}</span>
39
+          </li>
38 40
           <li>
39 41
           <label>第一次核对人员 : </label>
40 42
           <span class="content">{{getCreaterName(record.creater)}}</span>
@@ -44,12 +46,6 @@
44 46
           <span class="content">{{getCreateTime(record.first_check_time,record.creater)}}</span>
45 47
         </li>
46 48
       </ul>
47
-      <ul>
48
-          <li>
49
-          <label>{{ pipeline_connection_desc_title }}</label>
50
-          <span class="content">{{ pipeline_connection_desc }}</span>
51
-        </li>
52
-      </ul>
53 49
       <ul>
54 50
 
55 51
         <li>

+ 86 - 21
src/xt_pages/dialysis/details/index.vue Parādīt failu

@@ -217,6 +217,7 @@
217 217
         <span v-if="newTime != ''">&nbsp;&nbsp;|&nbsp;&nbsp;</span>
218 218
         <span v-if="newTime != ''">签到时间:{{ newTime }}</span>
219 219
       </div>
220
+
220 221
       <nav-igation
221 222
         ref="nav"
222 223
         title="弹窗导航"
@@ -265,10 +266,13 @@
265 266
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
266 267
         :system_prescribe="system_prescribe"
267 268
         :his_is_open="his_is_open"
269
+        :lastAssessment="lastAssessment"
268 270
         :stockType="stockType"
269 271
       >
270 272
       </nav-igation>
271 273
 
274
+
275
+
272 276
       <basic-infor
273 277
         :patient="patient"
274 278
         :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
@@ -632,6 +636,7 @@ export default {
632 636
       lastMonitorRecord: { id: 0 },
633 637
       lastAssessmentAfterDislysis: { id: 0 },
634 638
       lastDryWeightDislysis: { id: 0 },
639
+      lastAssessment:{id:0},
635 640
       headNurses: [],
636 641
       lastDialysisPrescribe: { id: 0 },
637 642
       //
@@ -969,25 +974,24 @@ export default {
969 974
 
970 975
       this.doctor_advices = []
971 976
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
972
-        
977
+
973 978
         var resp = rs.data
974 979
         if (resp.state == 1) {
975 980
           var patient = resp.data.patient // 患者信息
976 981
           var schedual = resp.data.schedual // 患者排班信息
977
-        
982
+
978 983
           var prescription = resp.data.prescription // 透析处方
979 984
           if (prescription != null) {
980 985
             if (prescription.body_fluid == -2) {
981 986
               prescription.body_fluid = 0
982 987
             }
983 988
           }
984
-          // console.log('透析处方', prescription)
989
+
985 990
           var solution = resp.data.solution // 透析方案
986 991
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
987
-          // console.log('receiver_treatment_access', receiver_treatment_access)
988
-          var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
989
-          // console.log('透前评估22222', predialysis_evaluation)
990 992
 
993
+          var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
994
+           console.log("透器评估",predialysis_evaluation)
991 995
           if (predialysis_evaluation != null) {
992 996
             if (predialysis_evaluation.blood_access_part_id == -2) {
993 997
               predialysis_evaluation.blood_access_part_id = 0
@@ -1017,20 +1021,21 @@ export default {
1017 1021
           var aliquid_info = resp.data.aliquid_info
1018 1022
 
1019 1023
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
1020
-          // console.log('上次透前评估', lastPredialysisEvaluation)
1024
+
1021 1025
           if (lastPredialysisEvaluation != null) {
1022 1026
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
1023 1027
               lastPredialysisEvaluation.blood_access_part_id = 0
1024 1028
             }
1025 1029
           }
1026 1030
           var lastMonitorRecord = resp.data.lastMonitorRecord
1027
-          var lastAssessmentAfterDislysis =
1028
-            resp.data.lastAssessmentAfterDislysis
1031
+          var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
1029 1032
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
1030 1033
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
1031
-          // console.log("最后一次干体重",lastDryWeightDislysis)
1034
+
1032 1035
           var system_prescribe = resp.data.system_prescribe
1033 1036
 
1037
+          var lastAssessment =  resp.data.lastAssessment
1038
+          console.log("最后一次血管通路",lastAssessment)
1034 1039
           this.$refs.nav.setLastRecord(
1035 1040
             lastPredialysisEvaluation,
1036 1041
             lastMonitorRecord,
@@ -1038,7 +1043,8 @@ export default {
1038 1043
             lastDialysisPrescribe,
1039 1044
             lastDryWeightDislysis,
1040 1045
             schedual,
1041
-            system_prescribe
1046
+            system_prescribe,
1047
+            lastAssessment,
1042 1048
           )
1043 1049
 
1044 1050
           var headNurses = resp.data.headNurse
@@ -1049,6 +1055,7 @@ export default {
1049 1055
           this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
1050 1056
           this.lastDialysisPrescribe = lastDialysisPrescribe
1051 1057
           this.lastDryWeightDislysis = lastDryWeightDislysis
1058
+          this.lastAssessment = lastAssessment
1052 1059
           this.headNurses = headNurses
1053 1060
           this.system_prescribe = system_prescribe
1054 1061
 
@@ -1111,22 +1118,23 @@ export default {
1111 1118
           this.dialysis_order =
1112 1119
             dialysis_order == null ? { id: 0 } : dialysis_order
1113 1120
 
1114
-          // this.$refs.stat_order.setAdvices(this.doctor_advices)
1115
-          // this.$refs.monitoring.setRecords(this.monitor_records)
1121
+
1116 1122
 
1117 1123
           this.admin_users = resp.data.doctors
1118 1124
           this.devices = resp.data.devices
1119 1125
           this.device_numbers = resp.data.device_numbers
1120 1126
 
1121 1127
           var his_doctor_advices = resp.data.his_advices
1122
-          
1128
+
1123 1129
           this.his_is_open = resp.data.is_open_config.is_open
1124 1130
           console.log(this.his_is_open)
1125
-          
1131
+
1132
+
1133
+
1126 1134
           var stockType =  resp.data.stockType
1127 1135
           this.stockType = stockType
1128 1136
           console.log("stockTYPW",stockType)
1129
-           
1137
+
1130 1138
           var prepare = resp.data.prepare
1131 1139
           this.preparestock = prepare
1132 1140
           console.log("prepare222222",prepare)
@@ -1702,13 +1710,36 @@ export default {
1702 1710
         // let res = re.data;
1703 1711
         // console.log('res3333333333',res)
1704 1712
         if(res.channel == 'queue/join'){
1705
-          if(res.data.fisrtQueueInfo != null){
1706
-            if(res.data.fisrtQueueInfo.create_time){
1707
-              res.data.fisrtQueueInfo.create_time = moment(parseInt(res.data.fisrtQueueInfo.create_time) * 1000).format('HH:mm')
1713
+          let timeType = null
1714
+          if(this.scheduleStateVal == 1){
1715
+            timeType = 1
1716
+          }else if(this.scheduleStateVal == 2){
1717
+            timeType = 2
1718
+          }else{
1719
+            if(new Date().getHours() < 10){
1720
+              timeType = 1
1721
+            }else if(new Date().getHours() >= 10){
1722
+              timeType = 2
1708 1723
             }
1709 1724
           }
1725
+          let fisrtQueueInfo = []
1726
+          this.newFisrtQueueInfo = res.data.fisrtQueueInfo
1727
+          if(res.data.fisrtQueueInfo != null){
1728
+              if(timeType == 1){
1729
+                  fisrtQueueInfo = res.data.fisrtQueueInfo.morning
1730
+                  if(fisrtQueueInfo.create_time){
1731
+                      fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
1732
+                  }
1733
+              }else if(timeType == 2){
1734
+                  fisrtQueueInfo = res.data.fisrtQueueInfo.afternoon
1735
+                  if(fisrtQueueInfo.create_time){
1736
+                      fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
1737
+                  }
1738
+              }
1739
+          }
1740
+          this.fisrtQueueInfo = fisrtQueueInfo
1710 1741
           this.queueConfig = res.data.queueConfig
1711
-          this.fisrtQueueInfo = res.data.fisrtQueueInfo
1742
+          // this.fisrtQueueInfo = res.data.fisrtQueueInfo
1712 1743
           let arr = res.data.patientQueueList.data
1713 1744
           let waitingCalledArr = []
1714 1745
           let calledArr = []
@@ -1743,6 +1774,34 @@ export default {
1743 1774
         }else if(res.channel == 'patientCallInfo'){
1744 1775
           res.data.patientInfo.create_time = moment(res.data.patientInfo.create_time * 1000).format('HH:mm')
1745 1776
           this.fisrtQueueInfo = res.data.patientInfo
1777
+        }else if(res.channel == 'fisrtQueueInfo'){
1778
+          if(this.scheduleStateVal == 1){
1779
+            timeType = 1
1780
+          }else if(this.scheduleStateVal == 2){
1781
+            timeType = 2
1782
+          }else{
1783
+            if(new Date().getHours() < 10){
1784
+              timeType = 1
1785
+            }else if(new Date().getHours() >= 10){
1786
+              timeType = 2
1787
+            }
1788
+          }
1789
+          let fisrtQueueInfo = []
1790
+          this.newFisrtQueueInfo = res.data.patientInfo
1791
+          if(res.data.patientInfo != null){
1792
+              if(timeType == 1){
1793
+                  fisrtQueueInfo = res.data.patientInfo.morning
1794
+                  if(fisrtQueueInfo.create_time){
1795
+                      fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
1796
+                  }
1797
+              }else if(timeType == 2){
1798
+                  fisrtQueueInfo = res.data.patientInfo.afternoon
1799
+                  if(fisrtQueueInfo.create_time){
1800
+                      fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
1801
+                  }
1802
+              }
1803
+          }
1804
+          this.fisrtQueueInfo = fisrtQueueInfo
1746 1805
         }
1747 1806
       }
1748 1807
     },
@@ -1807,10 +1866,16 @@ export default {
1807 1866
       })
1808 1867
     },
1809 1868
     next(){
1869
+      let schedule_type = null
1870
+      if(new Date().getHours() < 11){
1871
+        schedule_type = 1
1872
+      }else {
1873
+        schedule_type = 2
1874
+      }
1810 1875
       console.log('patient_id',this.$route.query.date)
1811 1876
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
1812 1877
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
1813
-      axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
1878
+      axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
1814 1879
         console.log(res)
1815 1880
         if(res.data.data.patientInfo == null){
1816 1881
           this.$message.error('已经是最后一位了');

+ 56 - 8
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Parādīt failu

@@ -64,7 +64,23 @@
64 64
           </ul>
65 65
         </div>
66 66
       </div>
67
-
67
+     
68
+     <div class="cell clearfix">
69
+        <label class="title"> <span class="name">给药途径</span> : </label>
70
+        <div class="time">
71
+          <ul class>
72
+            <li
73
+              :class="item.id == delivery_way ? 'active' : ''"
74
+              @click="selectDeliveryWay(item.id)"
75
+              v-for="item in deliveryWay"
76
+              :key="item.id"
77
+            >
78
+              {{ item.name }}
79
+            </li>
80
+          </ul>
81
+        </div>
82
+      </div>
83
+    
68 84
       <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" 
69 85
         @selection-change="handleSelectionChange"
70 86
         :row-class-name="tableRowClassName"
@@ -353,7 +369,7 @@ export default {
353 369
         schedul_type: 0,
354 370
         partition_type: 0,
355 371
         schedul_time: "",
356
-        keywords: ""
372
+        keywords: "",
357 373
       },
358 374
       selecting_schs: [],
359 375
       partitionArr: [],
@@ -361,6 +377,8 @@ export default {
361 377
       scheduleMap:[],
362 378
       show:true,
363 379
       showOne:false,
380
+      deliveryWay:[],
381
+      delivery_way:0,
364 382
     };
365 383
   },
366 384
   created() {
@@ -407,17 +425,23 @@ export default {
407 425
     },
408 426
 
409 427
     selectSchedulType(scheduleType) {
410
-      // alert(scheduleType);/
428
+     
411 429
       this.schedulType = scheduleType;
412 430
       this.listQuery.schedul_type = scheduleType;
413
-      this.requestSchedualDoctors();
431
+      this.requestSchedualDoctors(this.time);
414 432
     },
415 433
     selectPartitionType(partitionType) {
416 434
       this.partitionType = partitionType;
417 435
       this.listQuery.partition_type = partitionType;
418
-      this.requestSchedualDoctors();
436
+      this.requestSchedualDoctors(this.time);
437
+    },
438
+    
439
+    selectDeliveryWay(val){
440
+       this.delivery_way = val
441
+       this.requestSchedualDoctors(this.time)
419 442
     },
420 443
 
444
+
421 445
     changeTime() {
422 446
       this.listQuery.schedul_time = this.time;
423 447
       this.requestSchedualDoctors(this.time)
@@ -430,16 +454,31 @@ export default {
430 454
         } else {
431 455
           this.partitionArr = response.data.data.zone;
432 456
           this.partitionArr.unshift({ id: 0, name: "全部" });
457
+          var dics  =  response.data.data.dics
458
+          var obj = {id:0,name:"全部"}
459
+          this.deliveryWay.push(obj)
460
+          this.deliveryWay.push(...dics)
433 461
         }
434 462
       });
435 463
     },
436 464
     requestSchedualDoctors (time) {
465
+        
466
+        var name = ""
467
+        for(let i=0;i<this.deliveryWay.length;i++){
468
+            if(this.delivery_way == this.deliveryWay[i].id){
469
+              name = this.deliveryWay[i].name
470
+            }
471
+        }
472
+        if(name == '全部'){
473
+          name = ""
474
+        }
475
+
437 476
         let newTime =  moment(time).format('YYYY-MM-DD')
438 477
         getSchedualDoctors({
439 478
         date: newTime,
440 479
         patient_type: 0,
441
-        advice_type: 2
442
-        }).then(rs => {
480
+        advice_type: 2,
481
+        delivery_way:name}).then(rs => {
443 482
         var resp = rs.data
444 483
         if (resp.state == 1) {
445 484
             this.admin_users = resp.data.adminUser
@@ -609,7 +648,16 @@ export default {
609 648
       }
610 649
     //   console.log("sch_ids",sch_ids)
611 650
       this.$store.dispatch("SetAdviceIDs", sch_ids);
612
-      this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime()} });
651
+       var name = ""
652
+        for(let i=0;i<this.deliveryWay.length;i++){
653
+            if(this.delivery_way == this.deliveryWay[i].id){
654
+              name = this.deliveryWay[i].name
655
+            }
656
+        }
657
+        if(name == '全部'){
658
+          name = ""
659
+       }
660
+      this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime(),delivery_way:name} });
613 661
 
614 662
     },
615 663
     batchPrintActionOne: function() {

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

@@ -344,7 +344,7 @@
344 344
           >打印</el-button
345 345
         >
346 346
       </template>
347
-       <template v-if="org_template_info.template_id == 25">
347
+      <template v-if="org_template_info.template_id == 25">
348 348
         <el-button
349 349
           :loading="loading"
350 350
           size="small"
@@ -427,6 +427,64 @@
427 427
           >打印</el-button
428 428
         >
429 429
       </template>
430
+      <template v-if="org_template_info.template_id == 31">
431
+        <el-button
432
+          :loading="loading"
433
+          size="small"
434
+          icon="el-icon-printer"
435
+          @click="printThisPage"
436
+          type="primary"
437
+          >打印</el-button
438
+        >
439
+      </template>
440
+      <template v-if="org_template_info.template_id == 32">
441
+        <el-button
442
+          :loading="loading"
443
+          size="small"
444
+          icon="el-icon-printer"
445
+          @click="printThisPage"
446
+          type="primary"
447
+          >打印</el-button
448
+        >
449
+      </template>
450
+      <template v-if="org_template_info.template_id == 33">
451
+        <div>
452
+          <el-button
453
+            :loading="loading"
454
+            size="small"
455
+            icon="el-icon-printer"
456
+            @click="printThisPage"
457
+            type="primary"
458
+            >打印全部</el-button
459
+          >
460
+          <el-button
461
+            :loading="loading"
462
+            size="small"
463
+            icon="el-icon-printer"
464
+            @click="printThisOnePage"
465
+            type="primary"
466
+            >打印纪录单</el-button
467
+          >
468
+          <el-button
469
+            :loading="loading"
470
+            size="small"
471
+            icon="el-icon-printer"
472
+            @click="printThisTwoPage"
473
+            type="primary"
474
+            >打印医嘱单</el-button
475
+          >
476
+        </div>
477
+      </template>
478
+      <template v-if="org_template_info.template_id == 34">
479
+        <el-button
480
+          :loading="loading"
481
+          size="small"
482
+          icon="el-icon-printer"
483
+          @click="printThisPage"
484
+          type="primary"
485
+          >打印</el-button
486
+        >
487
+      </template>
430 488
     </div>
431 489
     <div class="app-container" style="min-height:0;">
432 490
       <!--<div class="order-print-btn"-->
@@ -657,6 +715,26 @@
657 715
             v-if="org_template_info.template_id == 30"
658 716
           >
659 717
           </DialysisPrintOrderThirty>
718
+          <DialysisPrintOrderThirtyOne
719
+            v-bind:childResponse="childResponse"
720
+            v-if="org_template_info.template_id == 31"
721
+          >
722
+          </DialysisPrintOrderThirtyOne>
723
+          <DialysisPrintOrderThirtyTwo
724
+            v-bind:childResponse="childResponse"
725
+            v-if="org_template_info.template_id == 32"
726
+          >
727
+          </DialysisPrintOrderThirtyTwo>
728
+          <DialysisPrintOrderThirtyThree
729
+            v-bind:childResponse="childResponse"
730
+            v-if="org_template_info.template_id == 33"
731
+          >
732
+          </DialysisPrintOrderThirtyThree>
733
+          <DialysisPrintOrderThirtyFour
734
+            v-bind:childResponse="childResponse"
735
+            v-if="org_template_info.template_id == 34"
736
+          >
737
+          </DialysisPrintOrderThirtyFour>
660 738
         </div>
661 739
       </el-container>
662 740
     </div>
@@ -706,9 +784,17 @@ import DialysisPrintOrderTwentySeven from "./template/DialysisPrintOrderTwentySe
706 784
 import DialysisPrintOrderTwentyEight from "./template/DialysisPrintOrderTwentyEight";
707 785
 import DialysisPrintOrderTwentyNine from "./template/DialysisPrintOrderTwentyNine";
708 786
 import DialysisPrintOrderThirty from "./template/DialysisPrintOrderThirty";
787
+import DialysisPrintOrderThirtyOne from "./template/DialysisPrintOrderThirtyOne";
788
+import DialysisPrintOrderThirtyTwo from "./template/DialysisPrintOrderThirtyTwo";
789
+import DialysisPrintOrderThirtyThree from "./template/DialysisPrintOrderThirtyThree";
790
+import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
709 791
 export default {
710 792
   name: "dialysisPrintOrder",
711 793
   components: {
794
+    DialysisPrintOrderThirtyFour,
795
+    DialysisPrintOrderThirtyThree,
796
+    DialysisPrintOrderThirtyTwo,
797
+    DialysisPrintOrderThirtyOne,
712 798
     DialysisPrintOrderThirty,
713 799
     DialysisPrintOrderTwentyNine,
714 800
     DialysisPrintOrderTwentyEight,
@@ -1074,13 +1160,6 @@ export default {
1074 1160
           style: style,
1075 1161
           scanStyles: false
1076 1162
         });
1077
-      }else if (this.org_template_info.template_id == 25) {
1078
-        printJS({
1079
-          printable: "dialysis-print-box",
1080
-          type: "html",
1081
-          style: style5,
1082
-          scanStyles: false
1083
-        });
1084 1163
       } else if (this.org_template_info.template_id == 26) {
1085 1164
         printJS({
1086 1165
           printable: "dialysis-print-box",
@@ -1116,6 +1195,34 @@ export default {
1116 1195
           style: style,
1117 1196
           scanStyles: false
1118 1197
         });
1198
+      } else if (this.org_template_info.template_id == 31) {
1199
+        printJS({
1200
+          printable: "dialysis-print-box-1",
1201
+          type: "html",
1202
+          style: style3,
1203
+          scanStyles: false
1204
+        });
1205
+      } else if (this.org_template_info.template_id == 32) {
1206
+        printJS({
1207
+          printable: "dialysis-print-box",
1208
+          type: "html",
1209
+          style: style5,
1210
+          scanStyles: false
1211
+        });
1212
+      } else if (this.org_template_info.template_id == 33) {
1213
+        printJS({
1214
+          printable: "dialysis-print-box-1",
1215
+          type: "html",
1216
+          style: style2,
1217
+          scanStyles: false
1218
+        });
1219
+      } else if (this.org_template_info.template_id == 34) {
1220
+        printJS({
1221
+          printable: "dialysis-print-box-1",
1222
+          type: "html",
1223
+          style: style2,
1224
+          scanStyles: false
1225
+        });
1119 1226
       }
1120 1227
     },
1121 1228
     printThisOnePage() {
@@ -1138,7 +1245,8 @@ export default {
1138 1245
         this.org_template_info.template_id == 2 ||
1139 1246
         this.org_template_info.template_id == 0 ||
1140 1247
         this.org_template_info.template_id == 5 ||
1141
-        this.org_template_info.template_id == 22 
1248
+        this.org_template_info.template_id == 22 || 
1249
+        this.org_template_info.template_id == 33
1142 1250
       ) {
1143 1251
         printJS({
1144 1252
           printable: "dialysis-print-box-1-1",
@@ -1189,7 +1297,8 @@ export default {
1189 1297
         this.org_template_info.template_id == 2 ||
1190 1298
         this.org_template_info.template_id == 0 ||
1191 1299
         this.org_template_info.template_id == 5 ||
1192
-        this.org_template_info.template_id == 22 
1300
+        this.org_template_info.template_id == 22 ||
1301
+        this.org_template_info.template_id == 33
1193 1302
       ) {
1194 1303
         printJS({
1195 1304
           printable: "dialysis-print-box-1-2",

+ 6 - 1
src/xt_pages/dialysis/doctorAdvicePrint.vue Parādīt failu

@@ -258,6 +258,7 @@ export default {
258 258
             time:'',
259 259
             show:true,
260 260
             showOne:false,
261
+            delivery_way:""
261 262
         }
262 263
     },
263 264
     methods:{
@@ -277,7 +278,8 @@ export default {
277 278
             getSchedualDoctors({
278 279
             date: newTime,
279 280
             patient_type: 0,
280
-            advice_type: 2
281
+            advice_type: 2,
282
+            delivery_way:this.delivery_way,
281 283
             }).then(rs => {
282 284
                 var resp = rs.data
283 285
                 if (resp.state == 1) {
@@ -741,6 +743,9 @@ export default {
741 743
     },
742 744
     created(){
743 745
       var time = this.$route.query.time
746
+      var delivery_way = this.$route.query.delivery_way
747
+      console.log("delivery_Way",delivery_way)
748
+      this.delivery_way = delivery_way
744 749
       this.time = moment(time).format('YYYY-MM-DD')
745 750
       console.log(11,this.$route.query)
746 751
       this.requestSchedualDoctors(time)

+ 78 - 5
src/xt_pages/dialysis/schedualPatient.vue Parādīt failu

@@ -279,6 +279,15 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
279 279
       }
280 280
     },
281 281
     created() {
282
+      if(sessionStorage.getItem('signIn') != null){
283
+        setTimeout(() => {    
284
+          if(sessionStorage.getItem('signIn') == 1){
285
+            this.$router.replace({ path: '/signIn' })
286
+          }else if(sessionStorage.getItem('signIn') == 2){
287
+            this.$router.replace({ path: '/lineUp' })
288
+          }
289
+        },1000)
290
+      }
282 291
       var schedule_type_selected = this.$store.getters.schedule_type_selected
283 292
       var zone_selected = this.$store.getters.zone_selected
284 293
       var patient_state_selected = this.$store.getters.patient_state_selected
@@ -378,13 +387,36 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
378 387
           // let res = re.data;
379 388
           console.log('res3333333333',res)
380 389
           if(res.channel == 'queue/join'){
381
-            if(res.data.fisrtQueueInfo != null){
382
-              if(res.data.fisrtQueueInfo.create_time){
383
-                res.data.fisrtQueueInfo.create_time = moment(parseInt(res.data.fisrtQueueInfo.create_time) * 1000).format('HH:mm')
390
+            let timeType = null
391
+            if(this.schedule_type_selected == 1){
392
+              timeType = 1
393
+            }else if(this.schedule_type_selected == 2){
394
+              timeType = 2
395
+            }else{
396
+              if(new Date().getHours() < 10){
397
+                timeType = 1
398
+              }else if(new Date().getHours() >= 10){
399
+                timeType = 2
384 400
               }
385 401
             }
402
+            let fisrtQueueInfo = []
403
+            this.newFisrtQueueInfo = res.data.fisrtQueueInfo
404
+            if(res.data.fisrtQueueInfo != null){
405
+                if(timeType == 1){
406
+                    fisrtQueueInfo = res.data.fisrtQueueInfo.morning
407
+                    if(fisrtQueueInfo.create_time){
408
+                        fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
409
+                    }
410
+                }else if(timeType == 2){
411
+                    fisrtQueueInfo = res.data.fisrtQueueInfo.afternoon
412
+                    if(fisrtQueueInfo.create_time){
413
+                        fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
414
+                    }
415
+                }
416
+            }
417
+            this.fisrtQueueInfo = fisrtQueueInfo
386 418
             this.queueConfig = res.data.queueConfig
387
-            this.fisrtQueueInfo = res.data.fisrtQueueInfo
419
+            // this.fisrtQueueInfo = res.data.fisrtQueueInfo
388 420
             let arr = res.data.patientQueueList.data
389 421
             let waitingCalledArr = []
390 422
             let calledArr = []
@@ -419,6 +451,34 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
419 451
           }else if(res.channel == 'patientCallInfo'){
420 452
             res.data.patientInfo.create_time = moment(res.data.patientInfo.create_time * 1000).format('HH:mm')
421 453
             this.fisrtQueueInfo = res.data.patientInfo
454
+          }else if(res.channel == 'fisrtQueueInfo'){
455
+            if(this.schedule_type_selected == 1){
456
+              timeType = 1
457
+            }else if(this.schedule_type_selected == 2){
458
+              timeType = 2
459
+            }else{
460
+              if(new Date().getHours() < 10){
461
+                timeType = 1
462
+              }else if(new Date().getHours() >= 10){
463
+                timeType = 2
464
+              }
465
+            }
466
+            let fisrtQueueInfo = []
467
+            this.newFisrtQueueInfo = res.data.patientInfo
468
+            if(res.data.patientInfo != null){
469
+                if(timeType == 1){
470
+                    fisrtQueueInfo = res.data.patientInfo.morning
471
+                    if(fisrtQueueInfo.create_time){
472
+                        fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
473
+                    }
474
+                }else if(timeType == 2){
475
+                    fisrtQueueInfo = res.data.patientInfo.afternoon
476
+                    if(fisrtQueueInfo.create_time){
477
+                        fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
478
+                    }
479
+                }
480
+            }
481
+            this.fisrtQueueInfo = fisrtQueueInfo
422 482
           }
423 483
         }
424 484
       },
@@ -448,10 +508,23 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
448 508
             this.$message.error('已经是最后一位了');
449 509
             return
450 510
           }
511
+          let schedule_type = null
512
+          if(this.schedule_type_selected == 0){
513
+            if(new Date().getHours() < 11){
514
+              schedule_type = 1
515
+            }else {
516
+              schedule_type = 2
517
+            }
518
+          }else if(this.schedule_type_selected == 1){
519
+            schedule_type = 1
520
+          }else if(this.schedule_type_selected == 2){
521
+            schedule_type = 2
522
+          }
523
+          
451 524
           console.log('patient_id',patient_id)
452 525
           let org_id =  parseInt(sessionStorage.getItem("org_id"));
453 526
           let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
454
-          axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + patient_id + '&admin_user_id=' + admin_user_id).then(res => {
527
+          axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
455 528
               console.log(res)
456 529
               // let patientArr = res.data.queue_list.data
457 530
               // this.patientArr = patientArr

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

@@ -137,6 +137,19 @@
137 137
                         <!--&nbsp;-->
138 138
                       </div>
139 139
                     </td>
140
+                    <td v-if="org_id == 9987" width="80">透前血压:</td>
141
+                    <td v-if="org_id == 9987" width="50">
142
+                      <div class="under-line">
143
+                        &nbsp;{{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : ""}}
144
+                      </div>
145
+                    </td>
146
+                    <td v-if="org_id == 9987" width='10'>/</td>
147
+                    <td v-if="org_id == 9987" width="50">
148
+                      <div class="under-line">
149
+                        &nbsp;{{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "" }}
150
+                      </div>
151
+                    </td>
152
+                    <td v-if="org_id == 9987" width='30'>mmHg</td>
140 153
                     <td></td>
141 154
                   </tr>
142 155
                 </tbody>
@@ -702,7 +715,7 @@
702 715
                 <tbody>
703 716
                   <tr>
704 717
                     <td width="55">并发症:</td>
705
-                    <td width="600">
718
+                    <td :width="org_id == 9987 ? 670 : 600">
706 719
                       <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('低血压') > -1 ? true : false" showValue="低血压"></label-box>
707 720
                       <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('高血压') > -1 ? true : false" showValue="高血压"></label-box>
708 721
                       <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('心律失常') > -1 ? true : false" showValue="心律失常"></label-box>
@@ -714,6 +727,7 @@
714 727
                       <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('心衰') > -1 ? true : false" showValue="心衰"></label-box>
715 728
                       <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('腹痛') > -1 ? true : false" showValue="腹痛"></label-box>
716 729
                       <label-box :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
730
+                      <label-box v-if="org_id == 9987" :isChecked="afterdialysis.complication&&afterdialysis.complication.indexOf('低血糖') > -1 ? true : false" showValue="低血糖"></label-box>
717 731
                     </td>
718 732
                     <td></td>
719 733
                   </tr>

+ 5 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Parādīt failu

@@ -501,7 +501,8 @@
501 501
                       <td width="50">血流量<br />(ml/min)</td>
502 502
                       <td width="50">静脉压<br />({{monitors[0]&&monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
503 503
                       <td width="50">跨膜压<br />({{monitors[0]&&monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
504
-                      <td width="60">透析液温度(°C)</td>
504
+                      <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
505
+                      <td width="60" v-if="org_id == 9836">体温(°C)</td>
505 506
                       <td width="50">电导度<br />(ms/cm)</td>
506 507
                       <td width="50">超滤量<br />(ml)</td>
507 508
                       <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50">
@@ -543,7 +544,8 @@
543 544
                           {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }}
544 545
                         </span>
545 546
                       </td>
546
-                      <td>{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
547
+                      <td v-if="org_id != 9836">{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
548
+                      <td v-if="org_id == 9836">{{ monitor.temperature ? monitor.temperature : "" }}</td>
547 549
                       <td>{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}
548 550
                       </td>
549 551
                       <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
@@ -1458,6 +1460,7 @@ export default {
1458 1460
         }
1459 1461
 
1460 1462
         this.advices = response.data.data.advices
1463
+        console.log("医嘱数据2222222222",this.advices)
1461 1464
         this.monitors = response.data.data.monitors
1462 1465
         this.summary = response.data.data.summary
1463 1466
         this.org_template_info = response.data.data.org_template_info

+ 5 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Parādīt failu

@@ -29,16 +29,17 @@
29 29
           </div>
30 30
31 31
         </div>
32
-        <div class="inline_block" v-if="patientInfo_source_1">
32
+        <div class="inline_block" v-if="receiverTreatmentAccess.condition == 2">
33 33
           门诊:
34 34
           <div class="under_line" style="width: 30px;text-align: center;">
35
-            <check-box :checked="patientInfo_source_1"></check-box>
35
+            <check-box :checked="receiverTreatmentAccess.condition == 2 ? true : false"></check-box>
36 36
           </div>
37 37
         </div>
38
-        <div class="inline_block" v-if="patientInfo_source_2">
38
+        
39
+        <div class="inline_block" v-if="receiverTreatmentAccess.condition == 1">
39 40
           住院:
40 41
           <div class="under_line" style="width: 30px;text-align: center;">
41
-            <check-box :checked="patientInfo_source_2"></check-box>
42
+            <check-box :checked="receiverTreatmentAccess.condition == 1 ? true : false"></check-box>
42 43
           </div>
43 44
         </div>
44 45
         <div class="inline_block">

+ 23 - 23
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue Parādīt failu

@@ -21,31 +21,31 @@
21 21
         </div>
22 22
       </div>
23 23
       <div class="row">
24
-        <div class="inline_block" style="margin-right:10px;">
24
+        <div class="inline_block" style="margin-right:5px;">
25 25
             日期 <div class="inline_block under_line" style="width:50px">{{ queryParams.xtdate.slice(0,4) }}</div>年
26 26
             <div class="inline_block under_line" style="width:50px">{{ queryParams.xtdate.slice(5,7) }}</div>月
27 27
             <div class="inline_block under_line" style="width:50px">{{ queryParams.xtdate.slice(8,11) }}</div>日
28 28
         </div>
29
-        <div class="inline_block" style="margin-right:10px;">
30
-          姓名 
29
+        <div class="inline_block" style="margin-right:5px;">
30
+          姓名
31 31
           <div class="inline_block under_line" style="width:80px;text-align: center;">
32 32
               {{ patientInfo.name ? patientInfo.name : "" }}
33 33
           </div>
34 34
         </div>
35
-        <div class="inline_block" style="margin-right:10px;">
35
+        <div class="inline_block" style="margin-right:5px;">
36 36
           性别&nbsp;&nbsp;&nbsp;&nbsp;
37 37
           <label-box :isChecked="patientInfo.gender == '男'" showValue="男" ></label-box>&nbsp;
38 38
           <label-box :isChecked="patientInfo.gender == '女'" showValue="女" ></label-box>
39 39
         </div>
40
-        <div class="inline_block" style="margin-right:10px;">
40
+        <div class="inline_block" style="margin-right:5px;">
41 41
           年龄:
42 42
           <div class="under_line" style="width: 50px;text-align: center">
43 43
               {{ getNewAge(patientInfo.id_card_no) }}
44 44
           </div>
45 45
46 46
         </div>
47
-        <div class="inline_block" style="margin-right:10px;">
48
-            机器编号 
47
+        <div class="inline_block" style="margin-right:5px;">
48
+            机器编号
49 49
             <div class="inline_block under_line" style="width:80px;">
50 50
             {{ getNumber() }}
51 51
             </div>
@@ -57,7 +57,7 @@
57 57
       <div style="border-bottom: 2px solid #000;width:100%;"></div>
58 58
       <div class="row">
59 59
           <div class="inline_block" style="margin-right:30px;">
60
-            血液净化方式 
60
+            血液净化方式
61 61
             <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
62 62
               /
63 63
             </div>
@@ -120,20 +120,20 @@
120 120
             </div>
121 121
           </div>
122 122
           <div class="inline_block" style="margin-right:30px;">
123
-            血液净化器类型 
123
+            血液净化器类型
124 124
             <div class="inline_block under_line" style="width:150px;text-align: center;">
125 125
                 {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : ''}}
126 126
             </div>
127 127
           </div>
128 128
           <div class="inline_block" style="margin-right:30px;">
129
-            透析液配方 
129
+            透析液配方
130 130
             <div class="inline_block under_line" style="width:150px;text-align: center;">
131 131
                 {{ prescription.dialysate_formulation_name ? prescription.dialysate_formulation_name : ''}}
132 132
             </div>
133 133
           </div>
134 134
       </div>
135 135
       <div class="row">
136
-        血管通路 
136
+        血管通路
137 137
         <div class="inline_block under_line" style="width:92%;text-align: left;">
138 138
           <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
139 139
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
@@ -172,7 +172,7 @@
172 172
         </div>
173 173
       </div>
174 174
       <div class="row">
175
-        抗凝药物 
175
+        抗凝药物
176 176
         <div class="inline_block under_line" style="width:92%;text-align: left;">
177 177
           <label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素"></label-box>&nbsp;
178 178
           <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素"></label-box>
@@ -189,7 +189,7 @@
189 189
             <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
190 190
             <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
191 191
             <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
192
-            <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp; 
192
+            <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp;
193 193
           </div>
194 194
           <div class="inline_block">
195 195
             追加
@@ -202,7 +202,7 @@
202 202
             <span v-if="prescription.anticoagulant == '普通肝素'">mg/h</span>
203 203
             <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
204 204
             <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
205
-            <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>&nbsp; 
205
+            <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>&nbsp;
206 206
           </div>
207 207
           <div class="inline_block">
208 208
             总量
@@ -263,7 +263,7 @@
263 263
           </div>
264 264
       </div>
265 265
       <div class="row">
266
-        透前评估 
266
+        透前评估
267 267
         <div class="inline_block under_line" style="width:50%;text-align: left;margin-right:30px;">
268 268
           <div class="inline_block" style="margin-right:30px;">
269 269
             体温
@@ -471,7 +471,7 @@
471 471
               </div>
472 472
             </td>
473 473
           </tr>
474
-            
474
+
475 475
           <tr style="height:30px;line-height:30px;">
476 476
             <td width="90" style="border:none;padding-left:5px">实际置换量:</td>
477 477
             <td width="30" style="text-align:left;border:none;">
@@ -481,7 +481,7 @@
481 481
                 </span>L
482 482
               </div>
483 483
             </td>
484
-            
484
+
485 485
             <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
486 486
             <td width="200" style="text-align:left;border:none;">
487 487
               <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false) :false" showValue="0"></label-box>
@@ -579,8 +579,8 @@
579 579
                 <img class="es-img" style="height:30px;" :src="doctorForm.url" />
580 580
               </span> -->
581 581
             </span>
582
-            
583
-            
582
+
583
+
584 584
           </td>
585 585
         </tr>
586 586
       </table>
@@ -891,15 +891,15 @@ export default {
891 891
             this.patientInfo.first_dialysis_date = ''
892 892
           }
893 893
           this.check = response.data.data.check
894
-          console.log('核对信息', this.check)
894
+          // console.log('核对信息', this.check)
895 895
           this.predialysis = response.data.data.PredialysisEvaluation
896
-          console.log('透前评估', this.predialysis)
896
+          // console.log('透前评估', this.predialysis)
897 897
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
898 898
             this.predialysis.blood_access_part_opera_id
899 899
           )
900 900
           this.assessmentafter = response.data.data.assessmentAfterDislysis
901 901
           console.log('上次透后体重', this.assessmentafter)
902
-          var doctorAdevieInfo = response.data.data.doctorAdevieInfo
902
+          var doctorAdevieInfo = response.data.data.advices
903 903
           var tableAdvice = doctorAdevieInfo
904 904
           console.log('医生', tableAdvice)
905 905
           if (tableAdvice.length === 0) {
@@ -1214,7 +1214,7 @@ export default {
1214 1214
             this.AlPanel = this.anticoagulantsConfit[thisALID]
1215 1215
           }
1216 1216
 
1217
-          this.advices = response.data.data.advices
1217
+          this.advices = JSON.parse(JSON.stringify(response.data.data.advices))
1218 1218
           this.monitors = response.data.data.monitors
1219 1219
           console.log('透析监测', this.monitors)
1220 1220
           this.summary = response.data.data.summary

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

@@ -429,7 +429,7 @@
429 429
                     <td width="10">ml</td>
430 430
                     <td width="30"></td>
431 431
                     <td width='70'>透后体重:</td>
432
-                    <td width="50">
432
+                    <td width="70">
433 433
                       <div class="under-line">&nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "未称重" }}</div>
434 434
                     </td>
435 435
                     <td width="10">Kg</td>

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


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


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


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


+ 19 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue Parādīt failu

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box">
3 3
     <div class="dialysis-print-order">
4
-      <!-- <div class="order-yy-name">{{ orgname }}</div> -->
4
+    
5 5
       <div class="order-title">{{ orgname }}&nbsp;&nbsp;血液净化治疗记录单</div>
6 6
       <table class="table-box" style="margin-top: 10px;">
7 7
         <tbody>
@@ -39,12 +39,7 @@
39 39
         </tr>
40 40
         </tbody>
41 41
       </table>
42
-      <!-- <div style="display:flex:font-size:14px">
43
-        <span style="width:50px;text-align:text-algin">诊 断:</span>
44
-        <div class="under-line" style="text-align:left">
45
-          &nbsp;{{ patientInfo.diagnose }}
46
-        </div>
47
-      </div> -->
42
+     
48 43
       <table class="table-box" style="margin-top: 10px;">
49 44
         <tbody>
50 45
         <tr>
@@ -63,6 +58,7 @@
63 58
         </tr>
64 59
         </tbody>
65 60
       </table>
61
+
66 62
       <table class="print-table" border="1">
67 63
         <tbody>
68 64
         <tr>
@@ -141,7 +137,7 @@
141 137
                     &nbsp;{{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
142 138
                   </div>
143 139
                 </td>
144
-                <td width="35">次/分</td>
140
+                <td width="40">次/分</td>
145 141
                 <td width="30"></td>
146 142
 
147 143
                 <td width="40">血压:</td>
@@ -342,7 +338,7 @@
342 338
               <tbody>
343 339
               <tr>
344 340
                 <td width="70">血管通路:</td>
345
-                <td width="600">
341
+                <td width="590">
346 342
                   <div>
347 343
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
348 344
                     &nbsp;
@@ -350,10 +346,11 @@
350 346
                     &nbsp;
351 347
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1 ? true : false" showValue="直穿"></label-box>
352 348
                     &nbsp;
353
-                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-左') > -1 ? true : false" showValue="颈内静脉-左"></label-box>
349
+                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('颈内静脉-右') > -1 ? true : false" showValue="颈内静脉"></label-box>
354 350
                     &nbsp;
355
-                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-右') > -1 ? true : false" showValue="颈内静脉-右"></label-box>
351
+                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-左') > -1 ? true : false" showValue="左"></label-box>
356 352
                     &nbsp;
353
+                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-右') > -1 ? true : false" showValue="右"></label-box>)
357 354
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1 ? true : false" showValue="股静脉"></label-box>
358 355
                     &nbsp;
359 356
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('锁骨下') > -1 ? true : false" showValue="锁骨下"></label-box>
@@ -438,7 +435,7 @@
438 435
                 <td width="35">min</td>
439 436
                 <td></td>
440 437
                 <td width="80">透析机编号:</td>
441
-                <td width="100">
438
+                <td width="120">
442 439
                   <div class="under-line">{{ getNumber() }}</div>
443 440
                 </td>
444 441
                 <td width=""></td>
@@ -599,7 +596,7 @@
599 596
                 <td width='30'>A液:</td>
600 597
                 <td width="10">钙</td>
601 598
                 <td width="10">(</td>
602
-                <td width="200">
599
+                <td width="210">
603 600
                   <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('A液:钙(1.25mmol/L)钾(2.0mmol/L)') > -1 ? true : prescription.dialysate_formulation_name.indexOf('A液:钙(1.25mmol/L)钾(3.5mmol/L)') > -1 ? true : false" showValue="1.25mmol/L"></label-box>
604 601
                   &nbsp;
605 602
                   <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('A液:钙(1.5mmol/L)钾(2.0mmol/L)') > -1 ? true : prescription.dialysate_formulation_name.indexOf('A液:钙(1.5mmol/L)钾(3.5mmol/L)') > -1 ? true : false" showValue="1.5mmol/L"></label-box>
@@ -608,7 +605,7 @@
608 605
                 <td width="10">)</td>
609 606
                 <td width="10">钾</td>
610 607
                 <td width="10">(</td>
611
-                <td width="200">
608
+                <td width="210">
612 609
                   <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('A液:钙(1.25mmol/L)钾(2.0mmol/L)') > -1 ? true : prescription.dialysate_formulation_name.indexOf('A液:钙(1.5mmol/L)钾(2.0mmol/L)') > -1 ? true : false" showValue="2.0mmol/L"></label-box>
613 610
                   &nbsp;
614 611
                   <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('A液:钙(1.25mmol/L)钾(3.5mmol/L)') > -1 ? true : prescription.dialysate_formulation_name.indexOf('A液:钙(1.5mmol/L)钾(3.5mmol/L)') > -1 ? true : false" showValue="3.5mmol/L"></label-box>
@@ -776,7 +773,7 @@
776 773
             透析监测
777 774
           </td>
778 775
 
779
-          <td width="100">时间</td>
776
+          <td width="60">时间</td>
780 777
           <td width="40" style="line-height:20px">T<br />℃</td>
781 778
           <td width="80" style="line-height:20px">Bp<br />mmHg</td>
782 779
           <td width="40" style="line-height:20px">P<br />次/分</td>
@@ -795,7 +792,7 @@
795 792
         </tr>
796 793
 
797 794
         <tr v-for="monitor in monitors" :key="monitor.id">
798
-          <td style="height:30px;">
795
+          <td style="height:20px;">
799 796
             &nbsp;
800 797
             <!-- <template>
801 798
               <span v-if="monitor.monitoring_date">
@@ -859,20 +856,20 @@
859 856
                 <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
860 857
               </tr> -->
861 858
         <tr>
862
-          <td :rowspan="adviceLength" width="30" class="title-box">
859
+          <td :rowspan="doctor_advices.length + 1" width="30" class="title-box">
863 860
             医嘱内容
864 861
           </td>
865
-          <td style="font-size: 16px" width="10%">时间</td>
862
+          <td style="font-size: 16px" width="8%">时间</td>
866 863
           <td style="font-size: 16px" colspan="2">医嘱内容</td>
867 864
           <td style="font-size: 16px" width="10%">医生签名</td>
868 865
           <td style="font-size: 16px" width="10%">执行人签名</td>
869 866
           <td style="font-size: 16px" width="10%">核对人签名</td>
870
-          <td style="font-size: 16px" width="10%">时间</td>
867
+          <td style="font-size: 16px" width="8%">时间</td>
871 868
         </tr>
872 869
         <!-- <template v-for="group in doctor_advices" > -->
873 870
 
874 871
         <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
875
-          <td height="35px">
872
+          <td height="30px">
876 873
               <span v-if="advice.start_time">
877 874
                 {{ getTime(advice.start_time, "{h}:{i}") }}
878 875
               </span>
@@ -2013,8 +2010,8 @@ export default {
2013 2010
             if (this.org_template_info.org_id == 9535) {
2014 2011
               this.isShowZero = true
2015 2012
             }
2016
-            if (this.monitors.length < 13) {
2017
-              var nl = 13 - this.monitors.length
2013
+            if (this.monitors.length < 9) {
2014
+              var nl = 9 - this.monitors.length
2018 2015
               for (let index = 0; index < nl; index++) {
2019 2016
                 this.monitors.push([])
2020 2017
               }

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

@@ -806,7 +806,7 @@
806 806
                   <td width="20">ml</td>
807 807
                   <td width="30">V端</td>
808 808
                   <td width="30">
809
-                    <div class="under-line">{{ afterdialysis.cvc_v ? afterdialysis.cvc_v : "" }}</div>
809
+                    <div class="under-line">&nbsp;{{ afterdialysis.cvc_v ? afterdialysis.cvc_v : "" }}</div>
810 810
                   </td>
811 811
                   <td width="20">ml</td>
812 812
                   <td></td>

+ 303 - 71
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Parādīt failu

@@ -113,7 +113,7 @@
113 113
                 <tbody>
114 114
                   <tr>
115 115
                     <td width="70">入科方式:</td>
116
-                    <td width="190">
116
+                    <td width="280">
117 117
                       <div>
118 118
                         <label-box style="margin-left:15px;" v-for="(item, index) in way_arr" :key="index" :isChecked="receiverTreatmentAccess.way == item.id ? true : false" :showValue="item.name"></label-box>
119 119
                         <!--&nbsp-->
@@ -127,7 +127,7 @@
127 127
 
128 128
                     <td width='20'></td>
129 129
                     <td width="50">意识:</td>
130
-                    <td width="140">
130
+                    <td width="300">
131 131
                       <div style="display:flex;">
132 132
                         <label-box style="margin-left:15px;" v-for="(item, index) in consciousness_arr" :key="index" :isChecked="receiverTreatmentAccess.consciousness == item.id ? true : false" :showValue="item.name"></label-box>
133 133
 
@@ -143,31 +143,7 @@
143 143
                         <!--showValue='模糊'></label-box>-->
144 144
                       </div>
145 145
                     </td>
146
-                    <td width="40">出血:</td>
147
-                    <td width="40">
148
-                      <div>
149
-                        <label-box :isChecked="predialysis.is_hemorrhage == 2 ? true : false" showValue="无"></label-box>
150
-                      </div>
151
-                    </td>
152
-                    <td width="200">
153
-                      <div>
154
-                        <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('牙龈出血') > -1 ? true : false" showValue="牙龈出血"></label-box>
155
-                        &nbsp;
156
-                        <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('瘀斑') > -1 ? true : false" showValue="瘀斑"></label-box>
157
-                        &nbsp;
158
-                        <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('经期') > -1 ? true : false" showValue="经期"></label-box>
159
-                        
160
-                        
161
-                      </div>
162
-                    </td>
163
-                    <td width="50">
164
-                      <div>
165
-                        <label-box :isChecked="predialysis.hemorrhage_other != '' ? true : false" showValue="其他"></label-box>
166
-                      </div>
167
-                    </td>
168
-                    <td width="100">
169
-                        <div class="under-line">&nbsp;{{ predialysis.hemorrhage_other ? predialysis.hemorrhage_other : '' }}</div>
170
-                    </td>
146
+                    
171 147
                     <td></td>
172 148
                   </tr>
173 149
                 </tbody>
@@ -188,7 +164,7 @@
188 164
                     </td>
189 165
                     <td width='40'>针眼:</td>
190 166
                     <td width='10'>A</td>
191
-                    <td width='120'>
167
+                    <td width='70'>
192 168
                         <div class="under-line">&nbsp;
193 169
                             <span v-if="predialysis.pinholing && predialysis.pinholing.indexOf('A1')>-1">A1,</span>
194 170
                             <span v-if="predialysis.pinholing && predialysis.pinholing.indexOf('A2')>-1">A2,</span>
@@ -199,7 +175,7 @@
199 175
                         </div>
200 176
                     </td>
201 177
                     <td width='10'>V</td>
202
-                    <td width='120'>
178
+                    <td width='70'>
203 179
                         <div class="under-line">&nbsp;
204 180
                             <span v-if="predialysis.pinholing && predialysis.pinholing.indexOf('V1')>-1">V1,</span>
205 181
                             <span v-if="predialysis.pinholing && predialysis.pinholing.indexOf('V2')>-1">V2,</span>
@@ -209,21 +185,31 @@
209 185
                             <span v-if="predialysis.pinholing && predialysis.pinholing.indexOf('V6')>-1">V6</span>
210 186
                         </div>
211 187
                     </td>
212
-                    <td width='80'>内瘘位置:</td>
213
-                    <td width="280">
188
+                    <td width="40">出血:</td>
189
+                    <td width="40">
214 190
                       <div>
215
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-左') > -1 ? true : false) : false" showValue="左"></label-box>
216
-                        &nbsp;
217
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-右') > -1 ? true : false) : false" showValue="右"></label-box>
218
-                        &nbsp;
219
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-前臂') > -1 ? true : false) : false" showValue="前臂"></label-box>
220
-                        &nbsp;
221
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-上臂') > -1 ? true : false) : false" showValue="上臂"></label-box>
191
+                        <label-box :isChecked="predialysis.is_hemorrhage == 2 ? true : false" showValue="无"></label-box>
192
+                      </div>
193
+                    </td>
194
+                    <td width="200">
195
+                      <div>
196
+                        <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('牙龈出血') > -1 ? true : false" showValue="牙龈出血"></label-box>
222 197
                         &nbsp;
223
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-下肢') > -1 ? true : false) : false" showValue="下肢"></label-box>
198
+                        <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('瘀斑') > -1 ? true : false" showValue="瘀斑"></label-box>
224 199
                         &nbsp;
200
+                        <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('经期') > -1 ? true : false" showValue="经期"></label-box>
201
+                        
202
+                        
225 203
                       </div>
226 204
                     </td>
205
+                    <td width="50">
206
+                      <div>
207
+                        <label-box :isChecked="predialysis.hemorrhage_other != '' ? true : false" showValue="其他"></label-box>
208
+                      </div>
209
+                    </td>
210
+                    <td width="100">
211
+                        <div class="under-line">&nbsp;{{ predialysis.hemorrhage_other ? predialysis.hemorrhage_other : '' }}</div>
212
+                    </td>
227 213
                     <td></td>
228 214
                   </tr>
229 215
                 </tbody>
@@ -254,6 +240,21 @@
254 240
                         <label-box :isChecked="predialysis.internal_fistula_skin.indexOf('红肿') > -1 ? true : false" showValue="红肿"></label-box>
255 241
                       </div>
256 242
                     </td>
243
+                    <td width='80'>内瘘位置:</td>
244
+                    <td width="280">
245
+                      <div>
246
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-左') > -1 ? true : false) : false" showValue="左"></label-box>
247
+                        &nbsp;
248
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-右') > -1 ? true : false) : false" showValue="右"></label-box>
249
+                        &nbsp;
250
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-前臂') > -1 ? true : false) : false" showValue="前臂"></label-box>
251
+                        &nbsp;
252
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-上臂') > -1 ? true : false) : false" showValue="上臂"></label-box>
253
+                        &nbsp;
254
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('内瘘-下肢') > -1 ? true : false) : false" showValue="下肢"></label-box>
255
+                        &nbsp;
256
+                      </div>
257
+                    </td>
257 258
                     <td></td>
258 259
                   </tr>
259 260
                 </tbody>
@@ -312,15 +313,15 @@
312 313
                     <td width='40'>位置</td>
313 314
                     <td width="280">
314 315
                       <div>
315
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('置管-左') > -1 ? true : false) : false" showValue="左"></label-box>
316
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('置管-左') > -1 ? true : false) : false" showValue="左"></label-box>
316 317
                         &nbsp;
317
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('置管-右') > -1 ? true : false) : false" showValue="右"></label-box>
318
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('置管-右') > -1 ? true : false) : false" showValue="右"></label-box>
318 319
                         &nbsp;
319
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('置管-颈内') > -1 ? true : false) : false" showValue="颈内"></label-box>
320
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('置管-颈内') > -1 ? true : false) : false" showValue="颈内"></label-box>
320 321
                         &nbsp;
321
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('置管-股V') > -1 ? true : false) : false" showValue="股V"></label-box>
322
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('置管-股V') > -1 ? true : false) : false" showValue="股V"></label-box>
322 323
                         &nbsp;
323
-                        <label-box :isChecked="predialysis.blood_access_part_id ? (QueryPartById(predialysis.blood_access_part_id).indexOf('置管-锁骨下') > -1 ? true : false) : false" showValue="锁骨下"></label-box>
324
+                        <label-box :isChecked="predialysis.blood_access_part_id ? (predialysis.blood_access_part_id.indexOf('置管-锁骨下') > -1 ? true : false) : false" showValue="锁骨下"></label-box>
324 325
                         &nbsp;
325 326
                       </div>
326 327
                     </td>
@@ -376,11 +377,11 @@
376 377
                       <div>
377 378
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量-好') > -1 ? true : false" showValue="好"></label-box>
378 379
                         &nbsp;
379
-                        <label-box :isChecked="predialysis.catheter.indexOf('血流量差-A') > -1 ? true : false" showValue="A"></label-box>
380
+                        <label-box :isChecked="predialysis.catheter.indexOf('A端血流量差') > -1 ? true : false" showValue="A"></label-box>
380 381
                         /
381
-                        <label-box :isChecked="predialysis.catheter.indexOf('血流量差-V') > -1 ? true : false" showValue="V"></label-box>
382
+                        <label-box :isChecked="predialysis.catheter.indexOf('V端血流量差') > -1 ? true : false" showValue="V"></label-box>
382 383
                         差&nbsp;
383
-                        <label-box :isChecked="predialysis.catheter.indexOf('血流量-AV反接') > -1 ? true : false" showValue="AV反接"></label-box>
384
+                        <label-box :isChecked="predialysis.catheter.indexOf('AV反接') > -1 ? true : false" showValue="AV反接"></label-box>
384 385
                       </div>
385 386
                     </td>
386 387
                   </tr>
@@ -420,7 +421,7 @@
420 421
                     <td width="35">℃</td>
421 422
                     <td width='60'>24h尿量</td>
422 423
                     <td width='50'>
423
-                        <div class="under-line">&nbsp;{{ predialysis.urine_volume ? predialysis.urine_volume : '' }}</div>
424
+                        <div class="under-line">&nbsp;{{ predialysis.urine_volume ? predialysis.urine_volume : 0 }}</div>
424 425
                     </td>
425 426
                     <td width='10'>ml</td>
426 427
                     <td width='40'>水肿</td>
@@ -428,7 +429,7 @@
428 429
                         <label-box :isChecked="predialysis.edema && predialysis.edema.indexOf('无') > -1 ? true : false" showValue="无"></label-box>
429 430
                     </td>
430 431
                     <td width='30'>
431
-                        <label-box :isChecked="predialysis.edema && getEdema(predialysis.edema) != '' ? true : false" showValue=""></label-box>
432
+                        <label-box :isChecked="predialysis.edema && predialysis.edema.indexOf('无') == -1 ? true : false" showValue=""></label-box>
432 433
                     </td>
433 434
                     <td width='80'>
434 435
                         <div class="under-line">&nbsp;{{ predialysis.edema ? getEdema(predialysis.edema) : '' }}</div>
@@ -558,7 +559,7 @@
558 559
                 <table class="table-box">
559 560
                     <tbody>
560 561
                         <tr>
561
-                            <td width='100'>透析频率(次/周)</td>
562
+                            <td width='120'>透析频率(次/周)</td>
562 563
                             <td width='50'>
563 564
                                 <div class="under-line">
564 565
                                     &nbsp;{{ predialysis.dialysis_count ? predialysis.dialysis_count : "" }}
@@ -582,12 +583,18 @@
582 583
                             </td>
583 584
                             <td width='20'></td>
584 585
                             <td width='80'>灌流器</td>
585
-                            <td width='120'>
586
+                            <td width='100'>
586 587
                                 <div class="under-line">
587 588
                                     &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? getDialyzerPerfusionApparatus(prescription.dialyzer_perfusion_apparatus,'灌流器') : '' }}
588 589
                                 </div>
589 590
                             </td>
590
-                            <td></td>
591
+                            <td width='70'>置换速度</td>
592
+                            <td width='90'>
593
+                                <div class="under-line">
594
+                                    &nbsp;{{ prescription.displace_speed ? prescription.displace_speed:'' }}
595
+                                </div>
596
+                            </td>
597
+                            
591 598
                         </tr>
592 599
                     </tbody>
593 600
                 </table>
@@ -596,26 +603,25 @@
596 603
                         <tr>
597 604
                             <td width='70'>抗凝方式</td>
598 605
                             <td width='100'>
599
-                                <label-box :isChecked="prescription.anticoagulant == 6 ? true:false" showValue="低分子肝素"></label-box>
606
+                                <label-box :isChecked="prescription.anticoagulant == 3 ? true : prescription.anticoagulant == 6 ? true : prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
600 607
                             </td>
601
-                            <td width='60'>
608
+                            <td width='100'>
602 609
                                 <div class="under-line">
603
-                                    &nbsp;<span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_zongliang }}</span>
610
+                                    &nbsp;{{ prescription.antioxidant_commodity_name ? prescription.antioxidant_commodity_name : '' }}
604 611
                                 </div>
605 612
                             </td>
606
-                            <td width='10'>IU</td>
607 613
                             <td width='10'>(</td>
608 614
                             <td width='40'>首剂</td>
609 615
                             <td width='50'>
610 616
                                 <div class="under-line">
611
-                                    &nbsp;<span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_shouji }}</span>
617
+                                    &nbsp;<span v-if="prescription.anticoagulant == 3 || prescription.anticoagulant == 6 || prescription.anticoagulant == 7">{{ prescription.anticoagulant_shouji }}</span>
612 618
                                 </div>
613 619
                             </td>
614 620
                             <td width='10'>IU</td>
615 621
                             <td width='40'>追加</td>
616 622
                             <td width='50'>
617 623
                                 <div class="under-line">
618
-                                    &nbsp;<span v-if="prescription.anticoagulant == 6">{{ prescription.anticoagulant_weichi }}</span>
624
+                                    &nbsp;<span v-if="prescription.anticoagulant == 3 || prescription.anticoagulant == 6 || prescription.anticoagulant == 7">{{ prescription.anticoagulant_weichi }}</span>
619 625
                                 </div>
620 626
                             </td>
621 627
                             <td width='20'>IU/h</td>
@@ -626,7 +632,7 @@
626 632
                             <td width='40'>其他</td>
627 633
                             <td width='100'>
628 634
                                 <div class="under-line">&nbsp;
629
-                                    <span v-if="prescription.anticoagulant != 1 && prescription.anticoagulant != 2 && prescription.anticoagulant != 6">
635
+                                    <span v-if="prescription.anticoagulant != 1 && prescription.anticoagulant != 2 && prescription.anticoagulant != 3 && prescription.anticoagulant != 6 && prescription.anticoagulant != 7">
630 636
                                         {{ prescription.anticoagulant_name }}
631 637
                                     </span>
632 638
                                 </div>
@@ -649,14 +655,14 @@
649 655
                                     &nbsp;<span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_shouji }}</span>
650 656
                                 </div>
651 657
                             </td>
652
-                            <td width='10'>mg</td>
658
+                            <td width='10'>U</td>
653 659
                             <td width='40'>追加</td>
654 660
                             <td width='50'>
655 661
                                 <div class="under-line">
656 662
                                     &nbsp;<span v-if="prescription.anticoagulant == 2">{{ prescription.anticoagulant_weichi }}</span>
657 663
                                 </div>
658 664
                             </td>
659
-                            <td width='20'>mg/h</td>
665
+                            <td width='20'>U/h</td>
660 666
                             <td width='40'>提前</td>
661 667
                             <td width='50'>
662 668
                                 <div class="under-line">
@@ -682,15 +688,15 @@
682 688
                     <td width="20">钙</td>
683 689
                     <td width="180">
684 690
                       (
685
-                        <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : false" showValue="1.25"></label-box>
686
-                        <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('低钙') > -1 ? true : false" showValue="1.5"></label-box>
691
+                        <label-box :isChecked="false" showValue="1.25"></label-box>
692
+                        <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : false" showValue="1.5"></label-box>
687 693
                         <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('高钙') > -1 ? true : false" showValue="1.75"></label-box>
688 694
                       )
689 695
                     </td>
690 696
                     <td width='20'>mmol/L</td>
691 697
                     <td width="20">钾</td>
692 698
 
693
-                    <td width="150">
699
+                    <td width="160">
694 700
                       (
695 701
                         <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : false" showValue="2.0"></label-box>
696 702
                         <label-box :isChecked="false" showValue="3.0mmol/L"></label-box>
@@ -728,7 +734,7 @@
728 734
                     <td width='50'>
729 735
                         <div class="under-line">
730 736
                             &nbsp;<span v-if="afterdialysis.sealing_fluid_dispose.indexOf('肝素')>-1">
731
-                                {{ afterdialysis.sealing_fluid_dispose ? getSealingFluidDispose(afterdialysis.sealing_fluid_dispose).replace(/[^0-9]/ig,"") : '' }}
737
+                                {{ afterdialysis.sealing_fluid_dispose ? getSealingFluidDispose(afterdialysis.sealing_fluid_dispose).replace(/[^\d.]/g,"") : '' }}
732 738
                             </span>
733 739
                         </div>
734 740
                     </td>
@@ -741,7 +747,7 @@
741 747
                     <td width='50'>
742 748
                         <div class="under-line">
743 749
                             &nbsp;<span v-if="afterdialysis.sealing_fluid_dispose.indexOf('+NS')>-1">
744
-                                {{ afterdialysis.sealing_fluid_dispose ? getSealingFluidDisposetwo(afterdialysis.sealing_fluid_dispose).replace(/[^0-9]/ig,"") : '' }}
750
+                                {{ afterdialysis.sealing_fluid_dispose ? getSealingFluidDisposetwo(afterdialysis.sealing_fluid_dispose).replace(/[^\d.]/g,"") : '' }}
745 751
                             </span>
746 752
                         </div>
747 753
                     </td>
@@ -850,10 +856,10 @@
850 856
         </tr>
851 857
       </table>
852 858
 
853
-      <table class="print-table" border="1">
859
+      <table class="print-table" border="1" v-if="monitors.length <= 8">
854 860
         <tbody>
855 861
           <tr>
856
-            <td :rowspan="jilurow+4" width="30px" class="title-box">
862
+            <td :rowspan="monitors.length + 1" width="30px" class="title-box">
857 863
               透析治疗记录
858 864
             </td>
859 865
 
@@ -898,7 +904,7 @@
898 904
             </td>
899 905
 
900 906
             <td>
901
-              &nbsp;{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}
907
+              &nbsp;<span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.arterial_pressure ? monitor.arterial_pressure : '0' }}</span>
902 908
             </td>
903 909
             <td>
904 910
               &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
@@ -906,7 +912,7 @@
906 912
             <td>
907 913
               &nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
908 914
             </td>
909
-            <td>&nbsp;{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}</td>
915
+            <td>&nbsp;<span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "0" }}</span></td>
910 916
             <td>&nbsp;{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</td>
911 917
             <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
912 918
 
@@ -1049,7 +1055,7 @@
1049 1055
                     <td width='40'>其他</td>
1050 1056
                     <td width='160'>
1051 1057
                       <div class="under-line">
1052
-                        &nbsp;{{ afterdialysis.complication ? getComplication(afterdialysis.complication) : '' }}
1058
+                        &nbsp;{{ afterdialysis.other_complication ? afterdialysis.other_complication : '' }}
1053 1059
                       </div>
1054 1060
                     </td>
1055 1061
                     <td></td>
@@ -1106,6 +1112,189 @@
1106 1112
       </table>
1107 1113
 
1108 1114
     </div>
1115
+    <div style="page-break-after: always;"></div>
1116
+    <div class="dialysis-print-order"  v-if="monitors.length > 8">
1117
+      <div class="order-yy-name" style="font-size:28px;font-weight:bold;">{{ orgname }}</div>
1118
+      <div class="order-title">血液净化治疗记录单</div>
1119
+      <table class="table-box">
1120
+        <tbody>
1121
+          <tr>
1122
+            <td width="50">姓 名:</td>
1123
+            <td width="90">
1124
+              <div class="under-line">&nbsp;{{ patientInfo.name }}</div>
1125
+            </td>
1126
+            <td width="30"></td>
1127
+            <td width="50">性 别:</td>
1128
+            <td width="100">
1129
+              <label-box :isChecked="patientInfo_gender_1" showValue="男" ></label-box>&nbsp;
1130
+              <label-box :isChecked="patientInfo_gender_2" showValue="女" ></label-box>
1131
+            </td>
1132
+            <td width="20"></td>
1133
+
1134
+            <td width="50">年 龄:</td>
1135
+            <td width="50">
1136
+              <div class="under-line">{{ getNewAge(patientInfo.id_card_no) }}</div>
1137
+            </td>
1138
+            <td width="20">岁</td>
1139
+            <td width="20"></td>
1140
+
1141
+            <!-- <td width="40">诊 断:</td>
1142
+            <td width="160">
1143
+              <div class="under-line">&nbsp;{{ patientInfo.diagnose }}</div>
1144
+            </td> -->
1145
+            <td width="40">日 期:</td>
1146
+            <td width="50">
1147
+                <div class="under-line">{{ queryParams.xtdate.slice(0,4) }}</div>
1148
+            </td>
1149
+            <td width='10'>年</td>
1150
+            <td width="50">
1151
+                <div class="under-line">{{ queryParams.xtdate.slice(5,7) }}</div>
1152
+            </td>
1153
+            <td width='10'>月</td>
1154
+            <td width="50">
1155
+                <div class="under-line">{{ queryParams.xtdate.slice(8,11) }}</div>
1156
+            </td>
1157
+            <td width='10'>日</td>
1158
+            <td width='30'></td>
1159
+            <td width="20">第</td>
1160
+            <td width="50">
1161
+                <div class="under-line">2</div>
1162
+            </td>
1163
+            <td width="20">页</td>
1164
+            <!-- <td width="60">住院号:</td>
1165
+            <td width="80">
1166
+              <div class="under-line">
1167
+                &nbsp;{{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number : "" }}
1168
+              </div>
1169
+            </td> -->
1170
+            <td width="20"></td>
1171
+
1172
+            <td></td>
1173
+
1174
+            
1175
+          </tr>
1176
+        </tbody>
1177
+      </table>
1178
+      <table class="table-box" style="margin-top: 10px;">
1179
+        <tbody>
1180
+          <tr>
1181
+            <td width="70">透析次数:</td>
1182
+            <td width="50">
1183
+              <div class="under-line">&nbsp;{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count }}</div>
1184
+            </td>
1185
+            <td width="30"></td>
1186
+            <td width="40">诊 断:</td>
1187
+            <td width="160">
1188
+              <div class="under-line">&nbsp;{{ patientInfo.diagnose }}</div>
1189
+            </td>
1190
+            <td width="20"></td>
1191
+
1192
+            <td width="60">门诊号:</td>
1193
+            <td width="80">
1194
+              <div class="under-line">
1195
+                &nbsp;{{ patientInfo.dialysis_no }}
1196
+              </div>
1197
+            </td>
1198
+            <td width="20"></td>
1199
+
1200
+            
1201
+            <td width="70">设备型号:</td>
1202
+            <td width='100'>
1203
+                <div class="under-line">&nbsp;
1204
+                    {{ predialysis.machine_type ? predialysis.machine_type : '' }}
1205
+                </div>
1206
+            </td>
1207
+            <td width='30'></td>
1208
+            <td width="30">机位</td>
1209
+            <td width="120">
1210
+                <div class="under-line">&nbsp;{{ getNumber() }}</div>
1211
+            </td>
1212
+            <td width="20">号</td>
1213
+
1214
+            <td></td>
1215
+
1216
+            
1217
+          </tr>
1218
+        </tbody>
1219
+      </table>
1220
+      <table class="print-table" border="1">
1221
+        <tbody>
1222
+          <tr>
1223
+            <td :rowspan="monitors.length + 1" width="30px" class="title-box">
1224
+              透析治疗记录
1225
+            </td>
1226
+
1227
+            <td style="line-height:20px;" width="50">时<br />间</td>
1228
+            <td style="line-height:20px;" width="70">血<br />压<br /><span style="font-size:10px; !important">mmHg</span></td>
1229
+            <td style="line-height:20px;" width="40">脉<br />搏<br /><span style="font-size:10px; !important">次/分</span></td>
1230
+            <td style="line-height:20px;" width="50">血<br />流<br />量<br /><span style="font-size:10px; !important">ml/分</span></td>
1231
+            <td style="line-height:20px;" width="50">动<br />脉<br />压<br /><span style="font-size:10px; !important">mmHg</span></td>
1232
+            <td style="line-height:20px;" width="50">静<br />脉<br />压<br /><span style="font-size:10px; !important">mmHg</span></td>
1233
+            <td style="line-height:20px;" width="50">跨<br />膜<br />压<br /><span style="font-size:10px; !important">mmHg</span></td>
1234
+            <td style="line-height:20px;" width="40">超<br />滤<br />率<br /><span style="font-size:10px; !important">ml/h</span></td>
1235
+            <td style="line-height:20px;" width="40">钠<br />浓<br />度<br /><span style="font-size:10px; !important">mmol/L</span></td>
1236
+            <td style="line-height:20px;" width="40">电<br />导<br />度<br /><span style="font-size:10px; !important">ms/cm</span></td>
1237
+            
1238
+            <td style="line-height:20px;" width="60">透析液<br />温度<br /><span style="font-size:10px; !important">ml</span></td>
1239
+            <td style="line-height:20px;" width="">病情变化及处理</td>
1240
+            <td style="line-height:20px;" width="60">签名</td>
1241
+          </tr>
1242
+
1243
+          <tr v-for="monitor in monitors" :key="monitor.id">
1244
+            <td style="height:40px;">
1245
+              &nbsp;
1246
+              <!-- <template>
1247
+                <span v-if="monitor.monitoring_date">
1248
+                    {{monitor.monitoring_date | parseTime('{y}-{m}-{d}')}}
1249
+                </span>
1250
+            </template>     -->
1251
+              {{ getTime(monitor.operate_time, "{h}:{i}") }}
1252
+            </td>
1253
+            <td>
1254
+              &nbsp;
1255
+              <span v-if='monitor.operate_time'>
1256
+              {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
1257
+              {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
1258
+              </span>
1259
+            </td>
1260
+            <td>
1261
+              &nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
1262
+            </td>
1263
+            <td>
1264
+              &nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
1265
+            </td>
1266
+
1267
+            <td>
1268
+              &nbsp;<span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.arterial_pressure ? monitor.arterial_pressure : '0' }}</span>
1269
+            </td>
1270
+            <td>
1271
+              &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
1272
+            </td>
1273
+            <td>
1274
+              &nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
1275
+            </td>
1276
+            <td>&nbsp;{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}</td>
1277
+            <td>&nbsp;{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</td>
1278
+            <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
1279
+
1280
+            <td>&nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : '' }}</td>
1281
+            <td style="text-align:left;line-height:20px;">
1282
+              &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
1283
+            </td>
1284
+            <td>
1285
+              <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
1286
+                {{ getAdminUser(monitor.monitoring_nurse) }}
1287
+              </span>
1288
+              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
1289
+                <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
1290
+              </span>
1291
+            </td>
1292
+            
1293
+            
1294
+          </tr>
1295
+        </tbody>
1296
+      </table>
1297
+    </div>
1109 1298
   </div>
1110 1299
 </template>
1111 1300
 
@@ -1283,6 +1472,7 @@ export default {
1283 1472
               newStr += item + ','
1284 1473
             }
1285 1474
           })
1475
+          
1286 1476
           return newStr.substring(0, newStr.length - 1)
1287 1477
         }
1288 1478
       }
@@ -1363,6 +1553,27 @@ export default {
1363 1553
         if(arr[i] == "肝素10ml"){
1364 1554
           strname = "肝素10ml"
1365 1555
         }
1556
+        if(arr[i] == "肝素1.1ml"){
1557
+          strname = "肝素1.1ml"
1558
+        }
1559
+        if(arr[i] == "肝素1.2ml"){
1560
+          strname = "肝素1.2ml"
1561
+        }
1562
+       if(arr[i] == "肝素1.3ml"){
1563
+          strname = "肝素1.3ml"
1564
+        }
1565
+        if(arr[i] == "肝素1.4ml"){
1566
+          strname = "肝素1.4ml"
1567
+        }
1568
+       if(arr[i] == "肝素1.5ml"){
1569
+          strname = "肝素1.5ml"
1570
+        }
1571
+       if(arr[i] == "肝素1.6ml"){
1572
+          strname = "肝素1.6ml"
1573
+        }
1574
+       if(arr[i] == "肝素1.7ml"){
1575
+          strname = "肝素1.7ml"
1576
+        }
1366 1577
       }
1367 1578
       return strname
1368 1579
     },
@@ -1380,6 +1591,27 @@ export default {
1380 1591
         if(arr[i] == "+NS10ml"){
1381 1592
           strname = "+NS10ml"
1382 1593
         }
1594
+        if(arr[i] == "+NS1.1ml"){
1595
+          strname = "+NS1.1ml"
1596
+        }
1597
+        if(arr[i] == "+NS1.2ml"){
1598
+          strname = "+NS1.2ml"
1599
+        }
1600
+       if(arr[i] == "+NS1.3ml"){
1601
+          strname = "+NS1.3ml"
1602
+        }
1603
+       if(arr[i] == "+NS1.4ml"){
1604
+          strname = "+NS1.4ml"
1605
+        }
1606
+       if(arr[i] == "+NS1.5ml"){
1607
+          strname = "+NS1.5ml"
1608
+        }
1609
+       if(arr[i] == "+NS1.6ml"){
1610
+          strname = "+NS1.6ml"
1611
+        }
1612
+      if(arr[i] == "+NS1.7ml"){
1613
+          strname = "+NS1.7ml"
1614
+        }
1383 1615
       }
1384 1616
       return strname
1385 1617
     },

+ 58 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Parādīt failu

@@ -419,6 +419,56 @@
419 419
                   </tr>
420 420
                 </tbody>
421 421
               </table>
422
+
423
+              <table class="table-box">
424
+                <tbody>
425
+                  <tr>
426
+                    <td width="70"></td>
427
+                    <td width="40">血栓:</td>
428
+                    <td width="90">
429
+                      <div>
430
+                        <label-box :isChecked="predialysis.thromubus_type == 1?true:false" showValue="有"></label-box>
431
+                        &nbsp;
432
+                        <label-box :isChecked="predialysis.thromubus_type == 2?true:false" showValue="无"></label-box>
433
+                        &nbsp;
434
+                      </div>
435
+                    </td>
436
+                    <td width="10">(</td>
437
+                    <td width="90">导管AV端各约</td>
438
+                    <td width="50">
439
+                      <div class="under-line">
440
+                        &nbsp;
441
+                        <span>
442
+                            {{ predialysis.thrombus_av ? predialysis.thrombus_av : '' }}
443
+                        </span>
444
+                      </div>
445
+                    </td>
446
+                    <td width="10">cm</td>
447
+                    <td width="50">A端约</td>
448
+                     <td width="50">
449
+                      <div class="under-line">
450
+                        &nbsp;
451
+                        <span>
452
+                            {{ predialysis.thromubus_a ? predialysis.thromubus_a : '' }}
453
+                        </span>
454
+                      </div>
455
+                    </td>
456
+                    <td width="10">cm</td>
457
+                    <td width="50">V端约</td>
458
+                     <td width="50">
459
+                      <div class="under-line">
460
+                        &nbsp;
461
+                        <span>
462
+                            {{ predialysis.thromubus_v ? predialysis.thromubus_v : '' }}
463
+                        </span>
464
+                      </div>
465
+                    </td>
466
+                    <td width="10">cm</td>
467
+                    <td width="10">)</td>
468
+                    <td></td>
469
+                  </tr>
470
+                </tbody>
471
+              </table>
422 472
               <table >
423 473
                 <tbody>
424 474
                   <tr class="table-box">
@@ -611,12 +661,18 @@
611 661
                     <td width="60">
612 662
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "" }}</div>
613 663
                     </td>
614
-                    <td width="10">ml,</td>
664
+                    <td width="15">
665
+                      <span v-if="prescription.anticoagulant =='阿加曲班'">ml,</span>
666
+                      <span v-if="prescription.anticoagulant =='普通肝素'">iu,</span>
667
+                     </td>
615 668
                     <td width="60">追加量</td>
616 669
                     <td width="60">
617 670
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "" }}</div>
618 671
                     </td>
619
-                    <td width="10">ml</td>
672
+                    <td width="10">
673
+                      <span v-if="prescription.anticoagulant =='阿加曲班'">ml</span>
674
+                      <span v-if="prescription.anticoagulant =='普通肝素'">iu/h</span>
675
+                    </td>
620 676
                     <td width="10">)</td>
621 677
                     <td width="100">
622 678
                         <label-box :isChecked="prescription.anticoagulant == '无肝素' ? true : false" showValue="无肝素"></label-box>

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

@@ -789,7 +789,9 @@
789 789
               <div>
790 790
                 <span style="width:70px;display:inline-block">
791 791
                   {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
792
-                </span>ml
792
+                </span>
793
+
794
+                <span>L</span>
793 795
               </div>
794 796
             </td>
795 797
             <td width="100" style="border:none;border-left:1px solid #000;padding-left:5px">

+ 10 - 9
src/xt_pages/index/verify_token.vue Parādīt failu

@@ -11,18 +11,19 @@ export default {
11 11
     this.$store.dispatch('VerifyToken', this.$route.query.token).then(() => {
12 12
       this.$store.dispatch('xt_GenerateRoutes', this.$store.getters.current_role_urls).then(() => {
13 13
         this.$store.dispatch('VerifyConfigList').then(() => {
14
-          // alert('token 验证成功')
15
-          // console.log(this.$store.getters.xt_permission.addRouters)
16
-          this.$router.addRoutes(this.$store.getters.xt_permission.addRouters) // 动态添加可访问路由表
17
-  //          next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
18
-          if(this.$store.getters.current_role_urls.includes('/dialysis/dialysisrecord')){
19
-            this.$router.replace({ path: '/dialysis/dialysisrecord' })
14
+          
15
+            // alert('token 验证成功')
16
+            // console.log(this.$store.getters.xt_permission.addRouters)
17
+            this.$router.addRoutes(this.$store.getters.xt_permission.addRouters) // 动态添加可访问路由表
18
+    //          next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
19
+            if(this.$store.getters.current_role_urls.includes('/dialysis/dialysisrecord')){
20
+              this.$router.replace({ path: '/dialysis/dialysisrecord' })
20 21
 
21
-          }else{
22
-            this.$router.replace({ path: '/home' })
22
+            }else{
23
+              this.$router.replace({ path: '/home' })
23 24
 
24 25
 
25
-          }
26
+            }
26 27
 
27 28
         })
28 29
       })

+ 2 - 1
src/xt_pages/management/components/PlanForm.vue Parādīt failu

@@ -183,7 +183,8 @@ export default {
183 183
         { id: 1, name: "0.22%季铵盐" },
184 184
         { id: 2, name: "500mg/l含氯消毒剂" },
185 185
         { id: 3, name: "1000mg/l含氯消毒剂" },
186
-        { id: 4, name: "1500mg/l含氯消毒剂" }
186
+        { id: 4, name: "1500mg/l含氯消毒剂" },
187
+        { id: 5,  name:"消毒湿巾"}
187 188
       ],
188 189
       // 夜路消毒方式
189 190
       sterilizeType: [

+ 8 - 1
src/xt_pages/management/home.vue Parādīt failu

@@ -2329,7 +2329,8 @@ export default {
2329 2329
           { id: 1, name: '0.22%季铵盐' },
2330 2330
           { id: 2, name: '500mg/l含氯消毒剂' },
2331 2331
           { id: 3, name: '1000mg/l含氯消毒剂' },
2332
-          { id: 4, name: '1500mg/l含氯消毒剂' }
2332
+          { id: 4, name: '1500mg/l含氯消毒剂' },
2333
+          { id: 5,  name:  "消毒湿巾"}
2333 2334
         ],
2334 2335
         // 夜路消毒方式
2335 2336
         sterilizeType: [
@@ -3212,6 +3213,9 @@ export default {
3212 3213
               if (plan[index].machine_disinfectant === 4) {
3213 3214
                 plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
3214 3215
               }
3216
+              if(plan[index].machine_disinfectant === 5){
3217
+                 plan[index].machine_disinfectant = "消毒湿巾"
3218
+              }
3215 3219
 
3216 3220
               if (plan[index].disinfectan_way === 0) {
3217 3221
                 plan[index].disinfectan_way = '/'
@@ -3346,6 +3350,9 @@ export default {
3346 3350
               if (plandetail[index].machine_disinfectant === 4) {
3347 3351
                 plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
3348 3352
               }
3353
+              if(plandetail[index].machine_disinfectant === 5){
3354
+                  plandetail[index].machine_disinfectant = "消毒湿巾"
3355
+              }
3349 3356
 
3350 3357
               if (plandetail[index].disinfectan_way === 0) {
3351 3358
                 plandetail[index].disinfectan_way = '/'

+ 82 - 23
src/xt_pages/medicalScheduling/index.vue Parādīt failu

@@ -7,6 +7,7 @@
7 7
                 <el-button type="primary" @click="DeleteStaffSchedule">清除</el-button>
8 8
                 <el-button type="primary" @click="copyStaffSchedule">复制</el-button>
9 9
                 <el-button type="primary" icon="el-icon-printer" @click="toPrint">打印</el-button>
10
+                <el-button type="primary" icon="el-icon-printer" @click="exportList">导出</el-button>
10 11
             </div>
11 12
         </div>
12 13
         <div class="app-container">
@@ -312,19 +313,32 @@
312 313
                             </el-table>
313 314
                         </el-tab-pane>
314 315
                     </el-tabs>
315
-                    <!-- <div style="margin-top:20px;">
316
-                        <p style="line-height:20px;">1.默认科室所有排序在职员工账号</p>
317
-                        <p style="line-height:20px;">2.护士默认排序,按加入机构先后降序排序,最先加入机构的排序为1,显示在列表最下面,自定义排序,最大的序号排在最上面</p>
318
-                        <p style="line-height:20px;">3.职称显示与管理中旬的员工列表显示的职称一样</p>
319
-                        <p style="line-height:20px;">4.是否排班,默认机构所有用户是“是”,如果是否,则该用户不在医护排班列表中</p>
320
-                    </div> -->
316
+                 
321 317
                 </div>
322
-                <!-- <div slot="footer" class="dialog-footer">
323
-                <el-button @click="hide">取 消</el-button>
324
-                <el-button type="primary" @click="submitAction()">保 存</el-button>
325
-                </div> -->
326
-            </el-dialog>
318
+            </el-dialog>    
327 319
         </div>
320
+
321
+
322
+        <!-- <el-dialog
323
+            title="导出排班"
324
+            :visible.sync="exportDialogVisible"
325
+            width="30%">
326
+            <span>
327
+             <div class="block">
328
+               <span class="demonstration">月份:</span>
329
+               <el-date-picker
330
+                v-model="value1"
331
+                type="week"
332
+                format="yyyy 第 WW 周"
333
+                placeholder="选择周">
334
+             </el-date-picker>
335
+             </div>
336
+            </span>
337
+            <span slot="footer" class="dialog-footer">
338
+                <el-button @click="dialogVisible = false">取 消</el-button>
339
+                <el-button type="primary" @click="exportList">确 定</el-button>
340
+            </span>
341
+        </el-dialog>     -->
328 342
     </div>
329 343
 </template>
330 344
 
@@ -390,18 +404,21 @@ export default {
390 404
            arrFive:[],
391 405
            arrSix:[],
392 406
            arrSeven:[],
393
-
394
-           //
395
-            nurseVisible:false,
396
-            activeName:'nurse',
397
-            radio:'1',
398
-            nurseTableData:[],
399
-            doctorTableData:[],
407
+           nurseVisible:false,
408
+           activeName:'nurse',
409
+           radio:'1',
410
+           nurseTableData:[],
411
+           doctorTableData:[],
412
+           exportDialogVisible:false,
413
+           month_time:""
400 414
         }
401 415
     },
402 416
     methods:{
403 417
         search(){},
404
-        toPrint(){
418
+        // toPrint(){
419
+        //   this.exportDialogVisible = true
420
+        // },
421
+         toPrint(){
405 422
             this.$router.push({
406 423
                 path: '/medicalScheduling/schedule/print?starttime='+this.getTimestamp(this.weekDayArr[0])+"&endtime="+this.getTimestamp(this.weekDayArr[6])+"&weekArr="+ this.weekDayArr+"&typeValue="+this.typeValue,
407 424
                 // query: { date: date }
@@ -935,9 +952,10 @@ export default {
935 952
                     data.push(...newNurse)
936 953
                     data.push(...newDoctor)
937 954
                     data.push(obj)
955
+                    
938 956
                     this.tableData = data
939 957
 
940
-
958
+                   console.log("表哥3333333333",this.tableData)
941 959
                 }
942 960
             })
943 961
         },
@@ -1902,7 +1920,48 @@ export default {
1902 1920
               this.getDoctorList()
1903 1921
             }
1904 1922
          })
1905
-       }
1923
+       },
1924
+
1925
+       toExport(){
1926
+         this.exportDialogVisible = true
1927
+
1928
+       },
1929
+
1930
+     getTimestamp(time) { //把时间日期转成时间戳
1931
+          return (new Date(time)).getTime() / 1000
1932
+       },
1933
+       exportList(){
1934
+         import('@/vendor/Export2Excel').then(excel => {
1935
+         for(let i=0;i<this.tableData.length;i++){
1936
+           this.tableData[i].monday  = this.getClass(this.tableData[i].user_name,1)
1937
+           this.tableData[i].tuesday  = this.getClass(this.tableData[i].user_name,2)
1938
+           this.tableData[i].wednesday = this.getClass(this.tableData[i].user_name,3)
1939
+           this.tableData[i].thursday = this.getClass(this.tableData[i].user_name,4)
1940
+           this.tableData[i].friday = this.getClass(this.tableData[i].user_name,5)
1941
+           this.tableData[i].saturday = this.getClass(this.tableData[i].user_name,6)
1942
+           this.tableData[i].weekday = this.getClass(this.tableData[i].user_name,0)
1943
+         }
1944
+         console.log("this.table",this.tableData)
1945
+         const tHeader = ['医护姓名', '周一'+"("+this.weekDayArr[0]+")" ,  '周二'+"("+this.weekDayArr[1]+")", '周三'+"("+this.weekDayArr[2]+")" , '周四'+"("+this.weekDayArr[3]+")" ,  '周五'+"("+this.weekDayArr[4]+")" ,  '周六'+"("+this.weekDayArr[5]+")",'周日'+"("+this.weekDayArr[6]+")"]
1946
+         const filterVal = ['user_name', 'monday', 'tuesday','wednesday','thursday','friday','saturday','weekday'] 
1947
+         
1948
+         const data = this.formatJson(filterVal,this.tableData)
1949
+         console.log("data",data)
1950
+       
1951
+         excel.export_json_to_excel({
1952
+           header: tHeader,
1953
+           data,
1954
+           filename: '医护排班'
1955
+         })
1956
+          this.downloadLoading = false
1957
+    
1958
+        })
1959
+       },
1960
+       formatJson(filterVal, jsonData) {
1961
+        return jsonData.map(v => filterVal.map(j => v[j]))
1962
+       },
1963
+    
1964
+    
1906 1965
     },
1907 1966
     created(){
1908 1967
         //获取医护人员
@@ -1940,8 +1999,8 @@ export default {
1940 1999
         }
1941 2000
       var now = moment().locale('zh-cn').format('YYYY-MM-DD 00:00:00')
1942 2001
       this.timeNow = this.getTimestamp(now)
1943
-
1944
-
2002
+     
2003
+   
1945 2004
     }
1946 2005
 }
1947 2006
 </script>

+ 481 - 0
src/xt_pages/outpatientCharges/allListPrint.vue Parādīt failu

@@ -0,0 +1,481 @@
1
+<template>
2
+  <div>
3
+    <template>
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
+      >打印
12
+      </el-button
13
+      >
14
+    </template>
15
+
16
+    <div class='dialysisPage' style="padding-top:40px;">
17
+      <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18
+    </div>
19
+  </div>
20
+</template>
21
+
22
+<script>
23
+  import { getHisOrderDetailCollect } from '@/api/his/his'
24
+  import { uParseTime } from '@/utils/tools'
25
+  import printOne from './allListTemplate/printOne'
26
+
27
+  export default {
28
+    name: 'allListPrint',
29
+    components: {
30
+      printOne
31
+    },
32
+    props: {
33
+      paramsObj: Object
34
+    },
35
+    data() {
36
+      return {
37
+        list: [],
38
+        patient: {},
39
+        order: {},
40
+        admin: {}
41
+      }
42
+    },
43
+
44
+    created() {
45
+      this.getInfo(this.paramsObj.id)
46
+
47
+    },
48
+    methods: {
49
+      getTimes(time) {
50
+        return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
51
+      }, getInfo(order_id) {
52
+        let params = {
53
+          id: order_id
54
+        }
55
+        getHisOrderDetailCollect(params).then(response => {
56
+          if (response.data.state == 0) {
57
+            this.$message.error(response.data.msg)
58
+            return false
59
+          } else {
60
+            this.order = response.data.data.order
61
+            this.patient = response.data.data.patient
62
+            this.admin = response.data.data.admin_info
63
+            var order_info = response.data.data.order_info
64
+
65
+            //获取所有项目类型进行去重
66
+            let med_chrgitm_types = []
67
+            for (let i = 0; i < order_info.length; i++) {
68
+              med_chrgitm_types.push(order_info[i].med_chrgitm_type)
69
+            }
70
+            const obj = {}
71
+            med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
72
+              obj[next] ? '' : obj[next] = true && cur.push(next)
73
+              return cur
74
+            }, []) // 设置cur默认类型为数组,并且初始值为空的数组
75
+
76
+            let tempOrderInfo = []
77
+
78
+            for (let i = 0; i < med_chrgitm_types.length; i++) {
79
+              let obj = {
80
+                total: 0,
81
+                details: []
82
+              }
83
+              let tempDetails = []
84
+              for (let b = 0; b < order_info.length; b++) {
85
+                if (med_chrgitm_types[i] == order_info[b].med_chrgitm_type) {
86
+                  tempDetails.push(order_info[b])
87
+                }
88
+              }
89
+
90
+              obj.details = this.setNewData(tempDetails)
91
+              obj.total = this.getTotal(obj.details)
92
+
93
+              obj.details.push({
94
+                total: obj.total,
95
+                is_total: 1,
96
+              })
97
+              this.list =  this.list.concat(obj.details)
98
+            }
99
+
100
+
101
+
102
+
103
+          }
104
+        })
105
+      }, getTotal:function(items){
106
+        let total = 0
107
+        for(let i = 0; i < items.length; i++){
108
+          total = Number(total) + Number((parseFloat(items[i].count) * parseFloat(items[i].price)).toFixed(2))
109
+        }
110
+        return total.toFixed(2)
111
+      },setNewData(details) {
112
+        let drug_ids = []
113
+        let project_ids = []
114
+
115
+        for (let i = 0; i < details.length; i++) {
116
+          if (details[i].advice && details[i].advice.id > 0 && details[i].advice.prescription && details[i].advice.prescription.type == 1) { //药品
117
+            let obj = {
118
+              id: details[i].advice.drug_id,
119
+              price: details[i].advice.price
120
+            }
121
+            drug_ids.push(obj)
122
+          } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
123
+            let obj = {
124
+              id: details[i].project.project_id,
125
+              price: details[i].project.price
126
+
127
+            }
128
+            project_ids.push(obj)
129
+
130
+          }
131
+
132
+        }
133
+        //
134
+        // console.log('old ids')
135
+        // console.log(drug_ids)
136
+        // console.log(project_ids)
137
+        // console.log('old ids')
138
+
139
+        let new_drug_ids = this.unique(drug_ids)
140
+        let new_project_ids = this.unique(project_ids)
141
+        let list = []
142
+
143
+        console.log('ids')
144
+        console.log(new_drug_ids)
145
+        console.log(new_project_ids)
146
+        console.log('ids')
147
+
148
+        if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
149
+          for (let i = 0; i < new_drug_ids.length; i++) {
150
+            let obj = {}
151
+            let count = 0
152
+            for (let a = 0; a < details.length; a++) {
153
+              if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price) {
154
+                obj['name'] = details[a].advice.advice_name
155
+                obj['spec'] = details[a].advice.drug.drug_spec
156
+                obj['unit'] = details[a].advice.drug.max_unit
157
+
158
+                obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
159
+                obj['price'] = parseFloat(details[a].pric)
160
+                obj['is_total'] = 2
161
+                count = count + details[a].cnt
162
+              }
163
+            }
164
+            obj['count'] = count
165
+            list.push(obj)
166
+          }
167
+        }
168
+
169
+        if (new_drug_ids.length == 0 && new_project_ids.length > 0) {
170
+          for (let i = 0; i < new_project_ids.length; i++) {
171
+            let obj = {}
172
+            let count = 0
173
+            for (let a = 0; a < details.length; a++) {
174
+              if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
175
+                obj['name'] = details[a].project.project.project_name
176
+                obj['spec'] = '1'
177
+                obj['unit'] = details[a].project.project.unit
178
+                obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
179
+                obj['price'] = parseFloat(details[a].pric)
180
+                obj['is_total'] = 2
181
+
182
+                count = count + details[a].cnt
183
+              }
184
+            }
185
+            obj['count'] = count
186
+            list.push(obj)
187
+          }
188
+        }
189
+
190
+        return list
191
+
192
+      }, unique(array) {
193
+        // res用来存储结果
194
+        var res = []
195
+        for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
196
+          for (var j = 0, resLen = res.length; j < resLen; j++) {
197
+            if (array[i].id === res[j].id && array[i].price === res[j].price) {
198
+              break
199
+            }
200
+          }
201
+          // 如果array[i]是唯一的,那么执行完循环,j等于resLen
202
+          if (j === resLen) {
203
+            res.push(array[i])
204
+          }
205
+        }
206
+        return res
207
+      },
208
+
209
+      getType(med_chrgitm_type) {
210
+        switch (med_chrgitm_type) {
211
+          case '01':
212
+            return '床位费'
213
+            break
214
+          case '02':
215
+            return '诊察费'
216
+
217
+            break
218
+          case '03':
219
+            return '检查费'
220
+
221
+            break
222
+          case '04':
223
+            return '化验费'
224
+            break
225
+          case '05':
226
+            return '治疗费'
227
+
228
+            break
229
+          case '06':
230
+            return '手术费'
231
+
232
+            break
233
+          case '07':
234
+            return '护理费'
235
+
236
+            break
237
+          case '08':
238
+            return '材料费'
239
+
240
+            break
241
+          case '09':
242
+            return '西药费'
243
+
244
+            break
245
+          case '10':
246
+            return '中药饮片费'
247
+
248
+            break
249
+          case '11':
250
+            return '中成药费'
251
+
252
+            break
253
+          case '12':
254
+            return '一般诊疗费'
255
+
256
+            break
257
+          case '13':
258
+            return '挂号费'
259
+
260
+            break
261
+          case '14':
262
+            return '其他费'
263
+
264
+            break
265
+
266
+        }
267
+
268
+      },
269
+      printThisPage() {
270
+
271
+        const style =
272
+          '@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;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;text-align:left;}.allListTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
273
+        printJS({
274
+          printable: 'allList-print',
275
+          type: 'html',
276
+          style: style,
277
+          scanStyles: false
278
+        })
279
+
280
+        // if (this.org_template_info.template_id == 1) {
281
+        //   printJS({
282
+        //     printable: "dialysis-print-box",
283
+        //     type: "html",
284
+        //     style: style,
285
+        //     scanStyles: false
286
+        //   });
287
+        // }
288
+      }
289
+    }
290
+
291
+  }
292
+</script>
293
+
294
+<style>
295
+  .dialysis-print-order {
296
+    width: 960px;
297
+    margin: 0 auto;
298
+  }
299
+
300
+  .dialysis-print-order .order-yy-name {
301
+    margin: auto;
302
+    text-align: center;
303
+    font-size: 20px;
304
+    letter-spacing: 5px;
305
+  }
306
+
307
+  .dialysis-print-order .order-title {
308
+    margin: auto;
309
+    font-weight: 600;
310
+    text-align: center;
311
+    font-size: 22px;
312
+    padding: 10px;
313
+  }
314
+
315
+  .dialysis-print-order .table-box {
316
+    width: 100%;
317
+    line-height: 23px;
318
+    font-size: 14px;
319
+  }
320
+
321
+  .dialysis-print-order .print-table {
322
+    width: 100%;
323
+    text-align: center;
324
+    border-collapse: collapse;
325
+    line-height: 40px;
326
+    font-size: 14px;
327
+    border-color: #000;
328
+  }
329
+
330
+  .dialysis-print-order .print-table-no {
331
+    width: 100%;
332
+    text-align: center;
333
+    border-collapse: collapse;
334
+    font-size: 14px;
335
+  }
336
+
337
+  .dialysis-print-order .under-line {
338
+    border-bottom: 1px solid #999;
339
+    width: 95%;
340
+    text-align: center;
341
+    margin-left: 2px;
342
+  }
343
+
344
+  .dialysis-print-order .title-box {
345
+    text-align: center;
346
+    font-size: 16px;
347
+  }
348
+
349
+  .dialysis-print-order .radio-lebel-box {
350
+    font-weight: 400;
351
+    cursor: pointer;
352
+  }
353
+
354
+  .dialysis-print-order .radio-no {
355
+    opacity: 0;
356
+    outline: none;
357
+    position: absolute;
358
+    margin: 0;
359
+    width: 0;
360
+    height: 0;
361
+    z-index: -1;
362
+  }
363
+
364
+  .dialysis-print-order .radio-inner {
365
+    white-space: nowrap;
366
+    cursor: pointer;
367
+    outline: none;
368
+    display: inline-block;
369
+    line-height: 1;
370
+    position: relative;
371
+    vertical-align: middle;
372
+  }
373
+
374
+  .dialysis-print-order .radio-fang {
375
+    display: inline-block;
376
+    position: relative;
377
+    border: 1px solid #000;
378
+    box-sizing: border-box;
379
+    width: 14px;
380
+    height: 14px;
381
+    background-color: #fff;
382
+    z-index: 1;
383
+    transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
384
+    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
385
+  }
386
+
387
+  .dialysis-print-order .is-checked-radio::after {
388
+    content: "√";
389
+    font-size: 15px;
390
+  }
391
+
392
+  .dialysis-print-order .print-table-no tr td {
393
+    padding: 8px 5px;
394
+    line-height: 25px;
395
+  }
396
+
397
+  .dialysis-print-order .print-table tr td {
398
+    padding: 1px 1px;
399
+    /*line-height: 25px;*/
400
+  }
401
+
402
+  .es-img {
403
+    height: 30px;
404
+  }
405
+
406
+  .advice-name {
407
+    text-align: left;
408
+  }
409
+
410
+  .advice-children {
411
+    display: flex;
412
+  }
413
+
414
+  .title-box-pro {
415
+    border: 0 #fff;
416
+    line-height: 25px;
417
+    height: 25px;
418
+    text-align: left;
419
+    padding-left: 10px !important;
420
+  }
421
+
422
+  .title-box-pro-tr {
423
+    border: 0 #fff;
424
+  }
425
+
426
+  .text-align-left {
427
+    text-align: left !important;
428
+    padding-left: 10px !important;
429
+    font-size: 14px !important;
430
+    line-height: 25px;
431
+  }
432
+
433
+  .print-table-tr-new td {
434
+    line-height: 20px !important;
435
+  }
436
+
437
+  .border-top-solid {
438
+    border: solid 1px #000;
439
+  }
440
+
441
+  .print-template-two tr {
442
+    line-height: 30px;
443
+  }
444
+
445
+  .table-box1 {
446
+    border: 1px solid #000;
447
+    width: 100%;
448
+    line-height: 30px;
449
+    font-size: 14px;
450
+    border-collapse: collapse;
451
+  }
452
+
453
+  .table-box1 tr {
454
+    border-bottom: 1px solid #000;
455
+  }
456
+</style>
457
+
458
+<style lang="scss">
459
+
460
+  .newContainer {
461
+
462
+  .dialysisPage::-webkit-scrollbar {
463
+    height: 15px;
464
+  }
465
+
466
+  .el-date-editor {
467
+
468
+  .el-input__inner {
469
+    padding-right: 0px;
470
+  }
471
+
472
+  }
473
+  .el-table td, .el-table th {
474
+    text-align: center;
475
+  }
476
+
477
+  }
478
+  .newContainer::-webkit-scrollbar {
479
+    height: 15px !important;
480
+  }
481
+</style>

+ 174 - 0
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue Parādīt failu

@@ -0,0 +1,174 @@
1
+<template>
2
+    <div id="allList-print" class="allList-print">
3
+        <div v-for='(i,index) in pageArr.length' :key="index">
4
+            <div class="allListTitle">{{$store.getters.xt_user.org.org_name}}费用汇总</div>
5
+            <div class="allListInfo">
6
+            <div>患者姓名:{{patient.name}}</div>
7
+            <div>透析号:{{patient.dialysis_no}}</div>
8
+            <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
9
+            <div>年龄:{{patient.age}}  岁</div>
10
+            <div>日期:{{getTimes(order.settle_start_time)}} 至 {{getTimes(order.settle_end_time)}}</div>
11
+
12
+            </div>
13
+            <table class="allListTable" border="1">
14
+                <tr>
15
+                    <td style="width:10%">类别</td>
16
+                    <td style="width:50%">项目名称</td>
17
+                    <td style="width:10%">规格</td>
18
+                    <td style="width:10%">单价(元)</td>
19
+                    <td style="width:10%">数量</td>
20
+                    <td style="width:10%">金额(元)</td>
21
+                </tr>
22
+                <template v-for='item in list.slice(index * 13,(index * 13) + pageArr[index])'>
23
+                    <tr v-if="item.is_total == 2">
24
+                        <td style="width:10%">{{item.med_chrgitm_type}}</td>
25
+                        <td style="width:50%">{{item.name}}</td>
26
+                        <td style="width:10%">{{item.spec}}</td>
27
+                        <td style="width:10%">{{(item.price).toFixed(2)}}</td>
28
+                        <td style="width:10%">{{item.count}}{{item.unit}}</td>
29
+                        <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
30
+                    </tr>
31
+                    <tr>
32
+                        <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{item.total}}元</td>
33
+                    </tr>
34
+                </template>
35
+            </table>
36
+            <div class="tableBottom">
37
+            <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
38
+            <div class="tableBottomOne">制表日期:{{ getNowTime()}}</div>
39
+            <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
40
+            </div>
41
+        </div>
42
+    </div>
43
+</template>
44
+
45
+<script>
46
+  import { uParseTime } from '@/utils/tools'
47
+
48
+  export default {
49
+    props: {
50
+      list: {
51
+        type: Array,
52
+        default: function () {
53
+          return [];
54
+        }
55
+      }, patient: {
56
+        type: Object,
57
+        default: function () {
58
+          return {};
59
+        }
60
+      }, order: {
61
+        type: Object,
62
+        default: function () {
63
+          return {};
64
+        }
65
+      }, admin: {
66
+        type: Object,
67
+        default: function () {
68
+          return {};
69
+        }
70
+      },
71
+    },
72
+    data(){
73
+        return{
74
+            page:1,
75
+            pageArr:[],
76
+        }
77
+    },
78
+    methods:{
79
+      getNowTime: function () {
80
+        let dateTime
81
+        let yy = new Date().getFullYear()
82
+        let mm = new Date().getMonth() + 1
83
+        let dd = new Date().getDate()
84
+        let hh = new Date().getHours()
85
+        let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
86
+          :
87
+          new Date().getMinutes()
88
+        let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
89
+          :
90
+          new Date().getSeconds()
91
+        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
92
+        return dateTime
93
+      },
94
+      getTimes(time) {
95
+        return uParseTime(time, '{y}-{m}-{d}')
96
+      },getTotal:function(items){
97
+        let total = 0
98
+        for(let i = 0; i < items.length; i++){
99
+          total = total + (items[i].count * items[i].price).toFixed(2)
100
+        }
101
+        return total
102
+
103
+      },
104
+      getPage(){
105
+        if(this.list.length <= 13){
106
+            this.page = 1
107
+            this.pageArr.push(this.list.length)
108
+        }else if(this.list.length > 13){
109
+            this.page = parseInt(this.list.length / 13)
110
+            let num = this.list.length % 13
111
+            for (var i=0;i<this.page;i++){
112
+                this.pageArr.push(13)
113
+            }
114
+            if(num != 0){
115
+                this.pageArr.push(num)
116
+            }
117
+        }
118
+      }
119
+
120
+    },
121
+    watch:{
122
+        list: {
123
+            handler(newVal) {
124
+                this.getPage()
125
+            },
126
+            deep: true
127
+        }
128
+    }
129
+  }
130
+
131
+
132
+</script>
133
+
134
+<style lang="scss" scoped>
135
+.allList-print{
136
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
137
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
138
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
139
+    margin-bottom: 20px;
140
+    padding:20px 10px;
141
+}
142
+.allListTitle{
143
+    font-size: 24px;
144
+    text-align: center;
145
+    font-weight: bold;
146
+    margin-bottom: 10px;
147
+}
148
+.allListInfo{
149
+    display: flex;
150
+    font-size: 16px;
151
+    justify-content: space-between;
152
+    margin: 10px 0;
153
+}
154
+.allListTable{
155
+    width: 100%;
156
+    text-align: center;
157
+    border-collapse: collapse;
158
+    line-height: 40px;
159
+    font-size: 14px;
160
+    border-color: #000;
161
+    text-align: left;
162
+}
163
+.allListTable tr td {
164
+    padding: 0 5px;
165
+}
166
+.tableBottom{
167
+    font-size: 16px;
168
+    display: flex;
169
+    margin-top: 20px;
170
+}
171
+.tableBottomOne{
172
+    margin-right: 40px;
173
+}
174
+</style>

+ 208 - 0
src/xt_pages/outpatientCharges/components/chargeMonthPrescriptionTable.vue Parādīt failu

@@ -0,0 +1,208 @@
1
+<template>
2
+  <div class="prescriptionTable">
3
+    <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4
+              :row-style="{ color: '#303133' }"
5
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
7
+      <el-table-column align="center" prop="name" label="名称">
8
+        <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
9
+      </el-table-column>
10
+
11
+      <el-table-column align="center" prop="name" width="90" label="单次用量">
12
+        <template slot-scope="scope">
13
+          <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
14
+          <div>{{scope.row.single_dose}}&nbsp;&nbsp;{{scope.row.single_dose_unit}}</div>
15
+        </template>
16
+      </el-table-column>
17
+      <el-table-column align="center" prop="name" width="100" label="用法">
18
+        <template slot-scope="scope">
19
+          <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
20
+          <div> {{scope.row.delivery_way}}</div>
21
+
22
+        </template>
23
+      </el-table-column>
24
+      <el-table-column align="center" prop="name" width="100" label="频率">
25
+        <template slot-scope="scope">
26
+          <div> {{scope.row.execution_frequency}}</div>
27
+
28
+          <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
29
+        </template>
30
+      </el-table-column>
31
+
32
+      <el-table-column align="center" prop="day" width="50" label="天数">
33
+        <template slot-scope="scope">{{scope.row.day}}天</template>
34
+      </el-table-column>
35
+
36
+      <el-table-column align="center" prop="name" width="100" label="总量">
37
+        <template slot-scope="scope">
38
+          <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
39
+          <div>{{scope.row.prescribing_number}}&nbsp;&nbsp;{{scope.row.prescribing_number_unit}}</div>
40
+        </template>
41
+      </el-table-column>
42
+      <el-table-column align="center" prop="name" width="60" label="单价">
43
+        <template slot-scope="scope">
44
+          <div> {{scope.row.retail_price}}元</div>
45
+
46
+          <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
47
+        </template>
48
+      </el-table-column>
49
+      <el-table-column align="center" prop="name" width="50" label="备注">
50
+        <template slot-scope="scope">
51
+          <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
52
+          <div> {{scope.row.remark}}</div>
53
+        </template>
54
+      </el-table-column>
55
+    </el-table>
56
+    <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
57
+              :row-style="{ color: '#303133' }"
58
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
59
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
60
+      <el-table-column align="center" prop="project_name" label="名称">
61
+        <template slot-scope="scope">{{ scope.row.project_name }}</template>
62
+      </el-table-column>
63
+      <el-table-column align="center" prop="statistical_classification" width="100" label="组">
64
+        <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
65
+      </el-table-column>
66
+      <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
67
+        <template slot-scope="scope">{{scope.row.single_dose}}{{scope.row.unit}}</template>
68
+
69
+      </el-table-column>
70
+      <el-table-column align="center" prop="delivery_way" width="80" label="用法">
71
+        <template slot-scope="scope">
72
+          <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
73
+          {{scope.row.delivery_way}}
74
+
75
+        </template>
76
+      </el-table-column>
77
+      <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
78
+        <template slot-scope="scope">
79
+          <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
80
+          {{scope.row.execution_frequency}}
81
+
82
+        </template>
83
+      </el-table-column>
84
+      <el-table-column align="center" prop="number_days" width="50" label="天数">
85
+        <template slot-scope="scope">
86
+          <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
87
+          {{scope.row.number_days}}天
88
+
89
+        </template>
90
+
91
+      </el-table-column>
92
+      <el-table-column align="center" prop="total" width="50" label="总量">
93
+        <template slot-scope="scope">
94
+          <div style="display:flex;">
95
+            <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
96
+            {{scope.row.total}}
97
+
98
+            <div>{{scope.row.unit}}</div>
99
+
100
+          </div>
101
+        </template>
102
+      </el-table-column>
103
+      <el-table-column align="center" prop="name" width="50" label="单价">
104
+        <template slot-scope="scope">
105
+          <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
106
+          {{scope.row.price}}元
107
+
108
+        </template>
109
+      </el-table-column>
110
+      <el-table-column align="center" prop="name" width="50" label="备注">
111
+        <template slot-scope="scope">
112
+          <!--<el-input v-model="scope.row.remark" readonly></el-input>-->
113
+          {{scope.row.remark}}
114
+
115
+        </template>
116
+      </el-table-column>
117
+    </el-table>
118
+
119
+    <div class="additionalBox">
120
+      <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
121
+        <span :title="item.item_name">{{item.item_name}}</span>
122
+        <el-input v-model="item.price" placeholder="" style="width:50px;" readonly></el-input>
123
+        共
124
+        <el-input v-model="item.count" placeholder="" style="width:50px;" readonly></el-input>
125
+        次
126
+        <!--<i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>-->
127
+      </div>
128
+    </div>
129
+  </div>
130
+</template>
131
+
132
+<script>
133
+  import { getInitData } from '@/api/his/his'
134
+  import { getDictionaryDataConfig} from "@/utils/data";
135
+
136
+  export default {
137
+    props: {
138
+      prescription: Object
139
+    },
140
+    data() {
141
+      return {
142
+        drugways: [],
143
+        efs: []
144
+      }
145
+    }, mounted() {
146
+      getInitData().then(response => {
147
+        if (response.data.state == 0) {
148
+          this.$message.error(response.data.msg)
149
+          return false
150
+        } else {
151
+          this.drugways = response.data.data.drugways
152
+          this.efs = response.data.data.efs
153
+        }
154
+      })
155
+    }, methods:  {
156
+
157
+
158
+      getGroup(id){
159
+        var name = ""
160
+        var statistics_category =  getDictionaryDataConfig('system','statistics_category')
161
+        console.log("2235",statistics_category)
162
+        for(let i=0;i<statistics_category.length;i++){
163
+          if(id == statistics_category[i].id){
164
+            name = statistics_category[i].name
165
+          }
166
+        }
167
+        return name
168
+      },
169
+
170
+
171
+    }
172
+  }
173
+</script>
174
+
175
+<style lang="scss">
176
+  .prescriptionTable{
177
+  .additionalBox{
178
+    margin-top: 20px;
179
+    display: flex;
180
+    flex-wrap: wrap;
181
+  .additionalOne{
182
+    margin-right:20px;
183
+    margin-bottom:10px;
184
+    display: flex;
185
+    align-items: center;
186
+  >span{
187
+    white-space: nowrap;
188
+    overflow: hidden;
189
+    text-overflow: ellipsis;
190
+    width:80px;
191
+    display: inline-block;
192
+    font-size: 14px;
193
+  }
194
+  }
195
+  .deleteIcon{
196
+    color:red;
197
+    margin-left:5px;
198
+  }
199
+  }
200
+  .el-table th .cell, .el-table td .cell{
201
+    padding: 0 2px;
202
+    white-space: pre-line;
203
+  }
204
+  .el-icon-delete{
205
+    color:red;
206
+  }
207
+  }
208
+</style>

+ 425 - 0
src/xt_pages/outpatientCharges/components/dayPrescriptionTable.vue Parādīt failu

@@ -0,0 +1,425 @@
1
+<template>
2
+  <div class="prescriptionTable">
3
+    <el-table v-if="activeType  == 1" :data="prescription.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"
4
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
5
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
6
+      <el-table-column align="center" prop="drug_name" label="名称">
7
+        <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
8
+      </el-table-column>
9
+
10
+      <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
11
+        <template slot-scope="scope">
12
+          <div style="display:flex;align-items:center;">
13
+            <el-input v-model="scope.row.single_dose" style="width:65%;"></el-input>
14
+            <div>{{scope.row.single_dose_unit}}</div>
15
+          </div>
16
+        </template>
17
+      </el-table-column>
18
+      <el-table-column align="center" prop="delivery_way" width="100" label="用法">
19
+        <template slot-scope="scope">
20
+          <el-select v-model="scope.row.delivery_way" placeholder="请选择">
21
+            <el-option
22
+              v-for="(item,index) in drugways"
23
+              :key="index"
24
+              :label="item.name"
25
+              :value="item.name">
26
+            </el-option>
27
+          </el-select>
28
+        </template>
29
+      </el-table-column>
30
+      <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
31
+        <template slot-scope="scope">
32
+          <el-select v-model="scope.row.execution_frequency" placehold er="请选择">
33
+            <el-option
34
+              v-for="item,index in efs"
35
+              :key="index"
36
+              :label="item.name"
37
+              :value="item.name">
38
+            </el-option>
39
+          </el-select>
40
+        </template>
41
+      </el-table-column>
42
+
43
+
44
+      <el-table-column align="center" prop="day" width="50" label="天数">
45
+        <template slot-scope="scope">
46
+          <el-input v-model="scope.row.day" placeholder=""></el-input>
47
+          <div>{{'天'}}</div>
48
+        </template>
49
+      </el-table-column>
50
+
51
+      <el-table-column align="center" prop="prescribing_number" width="80" label="总量">
52
+        <template slot-scope="scope">
53
+          <div style="display:flex;align-items:center;">
54
+            <el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder=""></el-input>
55
+            <div> {{scope.row.prescribing_number_unit}}</div>
56
+          </div>
57
+        </template>
58
+      </el-table-column>
59
+      <el-table-column align="center" prop="retail_price" width="60" label="单价">
60
+        <template slot-scope="scope">
61
+          <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
62
+          <div>{{'元'}}</div>
63
+
64
+        </template>
65
+      </el-table-column>
66
+      <el-table-column align="center" prop="remark" width="50" label="备注">
67
+        <template slot-scope="scope">
68
+          <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
69
+        </template>
70
+      </el-table-column>
71
+      <el-table-column align="center" width="40" prop="name" label="操作">
72
+        <template slot-scope="scope">
73
+          <i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>
74
+        </template>
75
+      </el-table-column>
76
+    </el-table>
77
+
78
+    <el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;" :row-style="{ color: '#303133' }"
79
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
80
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
81
+      <el-table-column align="center" prop="project_name" label="名称">
82
+        <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
83
+      </el-table-column>
84
+      <el-table-column align="center" prop="statistical_classification" width="100" label="组">
85
+        <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
86
+      </el-table-column>
87
+      <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
88
+        <template slot-scope="scope">
89
+          <el-input v-model="scope.row.single_dose" placeholder=""></el-input>
90
+          <div>{{scope.row.unit}}</div>
91
+
92
+        </template>
93
+      </el-table-column>
94
+      <el-table-column align="center" prop="delivery_way" width="80" label="用法">
95
+        <template slot-scope="scope">
96
+          <el-autocomplete
97
+            style="width:100%;"
98
+            class="inline-input"
99
+            v-model="scope.row.delivery_way"
100
+            :fetch-suggestions="querySearch2"
101
+            placeholder="请输入内容"
102
+          ></el-autocomplete>
103
+        </template>
104
+      </el-table-column>
105
+      <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
106
+        <template slot-scope="scope">
107
+          <el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>
108
+        </template>
109
+      </el-table-column>
110
+      <el-table-column align="center" prop="number_days" width="50" label="天数">
111
+        <template slot-scope="scope">
112
+          <el-input v-model="scope.row.number_days" placeholder=""></el-input>
113
+          <div>{{'天'}}</div>
114
+        </template>
115
+      </el-table-column>
116
+      <el-table-column align="center" prop="total" width="70" label="总量">
117
+        <template slot-scope="scope">
118
+          <div style="display:flex;align-items:center;">
119
+            <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
120
+            <div>{{scope.row.unit}}</div>
121
+
122
+          </div>
123
+        </template>
124
+      </el-table-column>
125
+      <el-table-column align="center" prop="name" width="50" label="单价">
126
+        <template slot-scope="scope">
127
+          <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
128
+          <div>{{'元'}}</div>
129
+
130
+        </template>
131
+      </el-table-column>
132
+      <el-table-column align="center" prop="name" width="50" label="备注">
133
+        <template slot-scope="scope">
134
+          <el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>
135
+        </template>
136
+      </el-table-column>
137
+      <el-table-column align="center" width="40" prop="name" label="操作">
138
+        <template slot-scope="scope">
139
+          <i class="el-icon-delete" @click="deleteProject(scope.row,scope.$index)"></i>
140
+        </template>
141
+      </el-table-column>
142
+    </el-table>
143
+
144
+    <div class="additionalBox">
145
+      <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
146
+        <span :title="item.item_name">{{item.item_name}}</span>
147
+        <el-input v-model="item.price" placeholder="" style="width:50px;"></el-input>
148
+        共
149
+        <el-input v-model="item.count" placeholder="" style="width:50px;"></el-input>
150
+        次
151
+        <i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>
152
+      </div>
153
+    </div>
154
+  </div>
155
+</template>
156
+
157
+<script>
158
+  import { getDictionaryDataConfig} from "@/utils/data";
159
+  import { getInitData,delHisAdvice,delHisProject,delHisAddition } from '@/api/his/his'
160
+
161
+  export default {
162
+    props: {
163
+      preDrugs: Array,
164
+      activeType: Number,
165
+      addtions_charge:Array,
166
+      prescription:{
167
+        type:Object,
168
+        default: function () {
169
+          return {
170
+            name:"",
171
+            advices:[],
172
+            project:[],
173
+            drugways:[],
174
+            efs:[],
175
+          };
176
+        }
177
+      },
178
+    },
179
+    data() {
180
+      return {
181
+        advices:[],
182
+        tableData: [],
183
+        newoptions: [{
184
+          value: '1',
185
+          label: '1'
186
+        }, {
187
+          value: '2',
188
+          label: '2'
189
+        }, {
190
+          value: '3',
191
+          label: '3'
192
+        }, {
193
+          value: '4',
194
+          label: '4'
195
+        }, {
196
+          value: '5',
197
+          label: '5'
198
+        }],
199
+        value: '1',
200
+        input: 1,
201
+      }
202
+    },
203
+    methods:{
204
+      createFilter(queryString) {
205
+        return (restaurant) => {
206
+          return (restaurant.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
207
+        }
208
+      },
209
+      querySearch2(queryString, cb) {
210
+        var restaurants = this.getDictionaryDataConfig("system","project_use")
211
+        restaurants.map(item => {
212
+          item.value = item.name
213
+        })
214
+        var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
215
+        // 调用 callback 返回建议列表的数据
216
+        cb(results)
217
+      },
218
+      delAddition(index, addition){
219
+        if(this.prescription.order_status == 2){
220
+          this.$message.error('该处方已经结算,无法删除')
221
+          return
222
+        }
223
+        this.$confirm("附加费删除后不可恢复,是否确认删除", "删除", {
224
+          confirmButtonText: "确 定",
225
+          cancelButtonText: "取 消",
226
+          type: "warning"
227
+        }).then(() => {
228
+          this.$nextTick(function(){
229
+            if(addition.id == 0){
230
+              this.prescription.addition.splice(index, 1)
231
+            }else{
232
+              let params = {
233
+                'id': addition.id,
234
+              }
235
+              delHisAddition(params).then(response => {
236
+                if (response.data.state == 0) {
237
+                  this.$message.error(response.data.msg)
238
+                  return false
239
+                } else {
240
+                  var temp2 = this.deepClone(this.prescription.addition)
241
+                  temp2.splice(index, 1)
242
+                  this.prescription.addition = temp2
243
+                  this.$message.success(response.data.data.msg)
244
+                }
245
+              })
246
+            }
247
+          });
248
+
249
+        })
250
+          .catch(() => {});
251
+
252
+      },
253
+      getInitData(){
254
+        getInitData().then(response => {
255
+          if (response.data.state == 0) {
256
+            this.$message.error(response.data.msg)
257
+            return false
258
+          } else {
259
+            this.drugways = response.data.data.drugways
260
+            this.efs = response.data.data.efs
261
+          }
262
+        })
263
+
264
+      },deleteDrug:function(index, row){
265
+        if(this.prescription.order_status == 2){
266
+          this.$message.error('该处方已经结算,无法删除')
267
+          return
268
+        }
269
+        this.$confirm("药品删除后不可恢复,是否确认删除", "删除", {
270
+          confirmButtonText: "确 定",
271
+          cancelButtonText: "取 消",
272
+          type: "warning"
273
+        }).then(() => {
274
+          this.$nextTick(function(){
275
+            if(row.advice_id == 0){
276
+              this.prescription.advices.splice(index, 1)
277
+            }else{
278
+              let params = {
279
+                'id': row.advice_id,
280
+              }
281
+              delHisAdvice(params).then(response => {
282
+                if (response.data.state == 0) {
283
+                  this.$message.error(response.data.msg)
284
+                  return false
285
+                } else {
286
+                  var temp2 = this.deepClone(this.prescription.advices)
287
+                  temp2.splice(index, 1)
288
+                  this.prescription.advices = temp2
289
+                  this.$message.success(response.data.data.msg)
290
+                }
291
+              })
292
+
293
+
294
+            }
295
+
296
+          });
297
+
298
+
299
+        })
300
+          .catch(() => {});
301
+
302
+
303
+
304
+
305
+
306
+      },deepClone(source) {
307
+        if (!source && typeof source !== 'object') {
308
+          throw new Error('error arguments', 'shallowClone')
309
+        }
310
+        const targetObj = source.constructor === Array ? [] : {}
311
+        Object.keys(source).forEach((keys) => {
312
+          if (source[keys] && typeof source[keys] === 'object') {
313
+            targetObj[keys] = this.deepClone(source[keys])
314
+          } else {
315
+            targetObj[keys] = source[keys]
316
+          }
317
+        })
318
+        return targetObj
319
+      },
320
+
321
+      setNewData:function(data){
322
+        this.prescription = data
323
+
324
+        // this.prescription.advices = data.advices
325
+      },
326
+      getDictionaryDataConfig(module, filed_name) {
327
+        return getDictionaryDataConfig(module, filed_name)
328
+      },
329
+      getGroup(id){
330
+        var name = ""
331
+        var statistics_category =  getDictionaryDataConfig('system','statistics_category')
332
+        console.log("2235",statistics_category)
333
+        for(let i=0;i<statistics_category.length;i++){
334
+          if(id == statistics_category[i].id){
335
+            name = statistics_category[i].name
336
+          }
337
+        }
338
+        return name
339
+      },
340
+      deleteProject(row,i){
341
+        if(this.prescription.order_status == 2){
342
+          this.$message.error('该处方已经结算,无法删除')
343
+          return
344
+        }
345
+        this.$confirm("项目删除后不可恢复,是否确认删除", "删除", {
346
+          confirmButtonText: "确 定",
347
+          cancelButtonText: "取 消",
348
+          type: "warning"
349
+        }).then(() => {
350
+          if(row.id == 0){
351
+            this.prescription.project.splice(i, 1)
352
+
353
+          }else{
354
+            let params = {
355
+              'id': row.id,
356
+            }
357
+            delHisProject(params).then(response => {
358
+              if (response.data.state == 0) {
359
+                this.$message.error(response.data.msg)
360
+                return false
361
+              } else {
362
+                for (let i = 0; i < this.prescription.project.length; i++){
363
+                  if(this.prescription.project[i].id == row.id){
364
+                    this.prescription.project.splice(i, 1)
365
+                  }
366
+                }
367
+                this.$message.success(response.data.data.msg)
368
+              }
369
+            })
370
+          }
371
+        })
372
+          .catch(() => {});
373
+
374
+      },
375
+    },mounted(){
376
+      this.getInitData()
377
+    },
378
+  }
379
+</script>
380
+
381
+<style lang="scss">
382
+  .prescriptionTable {
383
+
384
+  .el-input__inner {
385
+    padding: 0 5px;
386
+  }
387
+
388
+  .additionalBox {
389
+    margin-top: 20px;
390
+    display: flex;
391
+    flex-wrap: wrap;
392
+
393
+  .additionalOne {
394
+    margin-right: 20px;
395
+    margin-bottom: 10px;
396
+    display: flex;
397
+    align-items: center;
398
+
399
+  > span {
400
+    white-space: nowrap;
401
+    overflow: hidden;
402
+    text-overflow: ellipsis;
403
+    width: 80px;
404
+    display: inline-block;
405
+    font-size: 14px;
406
+  }
407
+
408
+  .deleteIcon {
409
+    color: red;
410
+    margin-left: 5px;
411
+  }
412
+
413
+  }
414
+  .el-table th .cell, .el-table td .cell {
415
+    padding: 0 2px;
416
+    white-space: pre-line;
417
+  }
418
+
419
+  .el-icon-delete {
420
+    color: red;
421
+  }
422
+
423
+  }
424
+  }
425
+</style>

+ 297 - 0
src/xt_pages/outpatientCharges/components/monthPrescriptionTable.vue Parādīt failu

@@ -0,0 +1,297 @@
1
+<template>
2
+  <div class="prescriptionTable">
3
+    <el-table v-if="activeType  == 1" :data="prescription.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"
4
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
5
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
6
+      <el-table-column align="center" prop="drug_name" label="名称">
7
+        <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
8
+      </el-table-column>
9
+      <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
10
+        <template slot-scope="scope">
11
+          <div style="display:flex;align-items:center;">
12
+            <el-input v-model="scope.row.single_dose" style="width:65%;"></el-input>
13
+            <div>{{scope.row.single_dose_unit}}</div>
14
+          </div>
15
+        </template>
16
+      </el-table-column>
17
+      <el-table-column align="center" prop="delivery_way" width="100" label="用法">
18
+        <template slot-scope="scope">
19
+          <el-select v-model="scope.row.delivery_way" placeholder="请选择">
20
+            <el-option
21
+              readonly
22
+              v-for="(item,index) in drugways"
23
+              :key="index"
24
+              :label="item.name"
25
+              :value="item.name">
26
+            </el-option>
27
+          </el-select>
28
+        </template>
29
+      </el-table-column>
30
+      <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
31
+        <template slot-scope="scope">
32
+          <el-select v-model="scope.row.execution_frequency" placehold er="请选择">
33
+            <el-option
34
+              readonly
35
+              v-for="item,index in efs"
36
+              :key="index"
37
+              :label="item.name"
38
+              :value="item.name">
39
+            </el-option>
40
+          </el-select>
41
+        </template>
42
+      </el-table-column>
43
+
44
+
45
+      <el-table-column align="center" prop="day" width="50" label="天数">
46
+        <template slot-scope="scope">
47
+          <el-input v-model="scope.row.day" placeholder="" readonly></el-input>
48
+          <div>{{'天'}}</div>
49
+        </template>
50
+      </el-table-column>
51
+
52
+      <el-table-column align="center" prop="prescribing_number" width="80" label="总量">
53
+        <template slot-scope="scope">
54
+          <div style="display:flex;align-items:center;">
55
+            <el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder="" readonly></el-input>
56
+            <div> {{scope.row.prescribing_number_unit}}</div>
57
+          </div>
58
+        </template>
59
+      </el-table-column>
60
+      <el-table-column align="center" prop="retail_price" width="60" label="单价">
61
+        <template slot-scope="scope">
62
+          <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
63
+          <div>{{'元'}}</div>
64
+        </template>
65
+      </el-table-column>
66
+      <el-table-column align="center" prop="remark" width="50" label="备注">
67
+        <template slot-scope="scope">
68
+          <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>
69
+        </template>
70
+      </el-table-column>
71
+    </el-table>
72
+
73
+    <el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;" :row-style="{ color: '#303133' }"
74
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
75
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
76
+      <el-table-column align="center" prop="project_name" label="名称">
77
+        <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
78
+      </el-table-column>
79
+      <el-table-column align="center" prop="statistical_classification" width="100" label="组">
80
+        <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
81
+      </el-table-column>
82
+      <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
83
+        <template slot-scope="scope">
84
+          <el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>
85
+          <div>{{scope.row.unit}}</div>
86
+
87
+        </template>
88
+      </el-table-column>
89
+      <el-table-column align="center" prop="delivery_way" width="80" label="用法">
90
+        <template slot-scope="scope">
91
+          <el-autocomplete
92
+            readonly
93
+            style="width:100%;"
94
+            class="inline-input"
95
+            v-model="scope.row.delivery_way"
96
+            :fetch-suggestions="querySearch2"
97
+            placeholder="请输入内容"
98
+          ></el-autocomplete>
99
+        </template>
100
+      </el-table-column>
101
+      <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
102
+        <template slot-scope="scope">
103
+          <el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>
104
+        </template>
105
+      </el-table-column>
106
+      <el-table-column align="center" prop="number_days" width="50" label="天数">
107
+        <template slot-scope="scope">
108
+          <el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>
109
+          <div>{{'天'}}</div>
110
+        </template>
111
+      </el-table-column>
112
+      <el-table-column align="center" prop="total" width="70" label="总量">
113
+        <template slot-scope="scope">
114
+          <div style="display:flex;align-items:center;">
115
+            <el-input v-model="scope.row.total" style="width:60%" placeholder="" readonly></el-input>
116
+            <div>{{scope.row.unit}}</div>
117
+          </div>
118
+        </template>
119
+      </el-table-column>
120
+      <el-table-column align="center" prop="name" width="50" label="单价">
121
+        <template slot-scope="scope">
122
+          <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
123
+          <div>{{'元'}}</div>
124
+        </template>
125
+      </el-table-column>
126
+      <el-table-column align="center" prop="name" width="50" label="备注">
127
+        <template slot-scope="scope">
128
+          <el-input v-model="scope.row.remark" :title="scope.row.remark" readonly></el-input>
129
+        </template>
130
+      </el-table-column>
131
+    </el-table>
132
+    <div class="additionalBox">
133
+      <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
134
+        <span :title="item.item_name">{{item.item_name}}</span>
135
+        <el-input v-model="item.price" placeholder="" style="width:50px;"></el-input>
136
+        共
137
+        <el-input v-model="item.count" placeholder="" style="width:50px;"></el-input>
138
+        次
139
+        <i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>
140
+      </div>
141
+    </div>
142
+  </div>
143
+</template>
144
+
145
+<script>
146
+  import { getDictionaryDataConfig} from "@/utils/data";
147
+  import { getInitData,delHisAdvice,delHisProject,delHisAddition } from '@/api/his/his'
148
+
149
+  export default {
150
+    props: {
151
+      preDrugs: Array,
152
+      activeType: Number,
153
+      addtions_charge:Array,
154
+      prescription:{
155
+        type:Object,
156
+        default: function () {
157
+          return {
158
+            name:"",
159
+            advices:[],
160
+            project:[],
161
+            drugways:[],
162
+            efs:[],
163
+          };
164
+        }
165
+      },
166
+    },
167
+    data() {
168
+      return {
169
+        advices:[],
170
+        tableData: [],
171
+        newoptions: [{
172
+          value: '1',
173
+          label: '1'
174
+        }, {
175
+          value: '2',
176
+          label: '2'
177
+        }, {
178
+          value: '3',
179
+          label: '3'
180
+        }, {
181
+          value: '4',
182
+          label: '4'
183
+        }, {
184
+          value: '5',
185
+          label: '5'
186
+        }],
187
+        value: '1',
188
+        input: 1,
189
+      }
190
+    },
191
+    methods:{
192
+      createFilter(queryString) {
193
+        return (restaurant) => {
194
+          return (restaurant.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
195
+        }
196
+      },
197
+      querySearch2(queryString, cb) {
198
+        var restaurants = this.getDictionaryDataConfig("system","project_use")
199
+        restaurants.map(item => {
200
+          item.value = item.name
201
+        })
202
+        var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
203
+        // 调用 callback 返回建议列表的数据
204
+        cb(results)
205
+      },
206
+      getInitData(){
207
+        getInitData().then(response => {
208
+          if (response.data.state == 0) {
209
+            this.$message.error(response.data.msg)
210
+            return false
211
+          } else {
212
+            this.drugways = response.data.data.drugways
213
+            this.efs = response.data.data.efs
214
+          }
215
+        })
216
+      },
217
+      deepClone(source) {
218
+        if (!source && typeof source !== 'object') {
219
+          throw new Error('error arguments', 'shallowClone')
220
+        }
221
+        const targetObj = source.constructor === Array ? [] : {}
222
+        Object.keys(source).forEach((keys) => {
223
+          if (source[keys] && typeof source[keys] === 'object') {
224
+            targetObj[keys] = this.deepClone(source[keys])
225
+          } else {
226
+            targetObj[keys] = source[keys]
227
+          }
228
+        })
229
+        return targetObj
230
+      },
231
+      setNewData:function(data){
232
+        this.prescription = data
233
+      },
234
+      getDictionaryDataConfig(module, filed_name) {
235
+        return getDictionaryDataConfig(module, filed_name)
236
+      },
237
+      getGroup(id){
238
+        var name = ""
239
+        var statistics_category =  getDictionaryDataConfig('system','statistics_category')
240
+        for(let i=0;i<statistics_category.length;i++){
241
+          if(id == statistics_category[i].id){
242
+            name = statistics_category[i].name
243
+          }
244
+        }
245
+        return name
246
+      },
247
+    },mounted(){
248
+      this.getInitData()
249
+    },
250
+  }
251
+</script>
252
+
253
+<style lang="scss">
254
+  .prescriptionTable {
255
+
256
+  .el-input__inner {
257
+    padding: 0 5px;
258
+  }
259
+
260
+  .additionalBox {
261
+    margin-top: 20px;
262
+    display: flex;
263
+    flex-wrap: wrap;
264
+
265
+  .additionalOne {
266
+    margin-right: 20px;
267
+    margin-bottom: 10px;
268
+    display: flex;
269
+    align-items: center;
270
+
271
+  > span {
272
+    white-space: nowrap;
273
+    overflow: hidden;
274
+    text-overflow: ellipsis;
275
+    width: 80px;
276
+    display: inline-block;
277
+    font-size: 14px;
278
+  }
279
+
280
+  .deleteIcon {
281
+    color: red;
282
+    margin-left: 5px;
283
+  }
284
+
285
+  }
286
+  .el-table th .cell, .el-table td .cell {
287
+    padding: 0 2px;
288
+    white-space: pre-line;
289
+  }
290
+
291
+  .el-icon-delete {
292
+    color: red;
293
+  }
294
+
295
+  }
296
+  }
297
+</style>

+ 7 - 5
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Parādīt failu

@@ -30,7 +30,7 @@
30 30
       </el-table-column>
31 31
 
32 32
       <el-table-column align="center" prop="day" width="50" label="天数">
33
-        <template slot-scope="scope">{{scope.row.day}}</template>
33
+        <template slot-scope="scope">{{scope.row.day}}</template>
34 34
       </el-table-column>
35 35
 
36 36
       <el-table-column align="center" prop="name" width="100" label="总量">
@@ -41,7 +41,7 @@
41 41
       </el-table-column>
42 42
       <el-table-column align="center" prop="name" width="60" label="单价">
43 43
         <template slot-scope="scope">
44
-          <div> {{scope.row.retail_price}}</div>
44
+          <div> {{scope.row.retail_price}}</div>
45 45
 
46 46
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
47 47
         </template>
@@ -64,7 +64,8 @@
64 64
         <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
65 65
       </el-table-column>
66 66
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
67
-        <template slot-scope="scope">{{scope.row.single_dose}}</template>
67
+        <template slot-scope="scope">{{scope.row.single_dose}}{{scope.row.unit}}</template>
68
+
68 69
       </el-table-column>
69 70
       <el-table-column align="center" prop="delivery_way" width="80" label="用法">
70 71
         <template slot-scope="scope">
@@ -83,9 +84,10 @@
83 84
       <el-table-column align="center" prop="number_days" width="50" label="天数">
84 85
         <template slot-scope="scope">
85 86
           <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
86
-          {{scope.row.number_days}}
87
+          {{scope.row.number_days}}
87 88
 
88 89
         </template>
90
+
89 91
       </el-table-column>
90 92
       <el-table-column align="center" prop="total" width="50" label="总量">
91 93
         <template slot-scope="scope">
@@ -101,7 +103,7 @@
101 103
       <el-table-column align="center" prop="name" width="50" label="单价">
102 104
         <template slot-scope="scope">
103 105
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
104
-          {{scope.row.price}}
106
+          {{scope.row.price}}
105 107
 
106 108
         </template>
107 109
       </el-table-column>

+ 283 - 98
src/xt_pages/outpatientCharges/components/registerDialog.vue Parādīt failu

@@ -1,10 +1,25 @@
1 1
 <template>
2
-  <el-dialog width="854px" class="registerDialog" :title="titles" :visible.sync="visibility" :close-on-click-modal="isClose"
2
+  <el-dialog width="854px" class="registerDialog" :title="titles" :visible.sync="visibility"
3
+             :close-on-click-modal="isClose"
3 4
              :close-on-press-escape="isClose">
4 5
 
5
-    <el-form :model="form"  :rules="rules"  ref="formValue"  label-width="100px">
6
-      <el-form-item label="患者姓名:"  prop="name" :validate-event="is_Name">
7
-         <el-input  v-model="form.name" :disabled="true"></el-input>
6
+    <el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
7
+      <el-form-item label="患者姓名:" prop="name" :validate-event="is_Name">
8
+        <el-autocomplete
9
+          class="checkSearch"
10
+          popper-class="my-autocomplete"
11
+          v-model="form.name"
12
+          :fetch-suggestions="querySearchAsync"
13
+          :trigger-on-focus="false"
14
+          placeholder="请输入病人名字"
15
+          @select="handleSelect"
16
+          style="width:160px;"
17
+        >
18
+          <i class="el-icon-search el-input__icon" slot="suffix"></i>
19
+          <template slot-scope="{ item }">
20
+            <div class="name">{{ item.name }}</div>
21
+          </template>
22
+        </el-autocomplete>
8 23
       </el-form-item>
9 24
 
10 25
       <el-form-item label="性别:" prop="gender" :validate-event="is_Name">
@@ -16,6 +31,8 @@
16 31
             :value="item.value">
17 32
           </el-option>
18 33
         </el-select>
34
+
35
+
19 36
       </el-form-item>
20 37
 
21 38
       <el-form-item label="年龄:" prop="age" :validate-event="is_Name">
@@ -24,7 +41,8 @@
24 41
 
25 42
 
26 43
       <el-form-item label="出生日期:" prop="birthday" :validate-event="is_Name">
27
-        <el-date-picker v-model="form.birthday" type="date" @change="getBirthday" placeholder="选择日期" style="width:100%;"></el-date-picker>
44
+        <el-date-picker v-model="form.birthday" type="date" format="yyyy-MM-dd"
45
+                        value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%;"></el-date-picker>
28 46
       </el-form-item>
29 47
 
30 48
       <el-form-item label="手机号码:" prop="phone">
@@ -44,8 +62,8 @@
44 62
       </el-form-item>
45 63
 
46 64
 
47
-      <el-form-item label="证件类型:">
48
-        <el-select v-model="form.certificates" placeholder="请选择"  style="width:100%;">
65
+      <el-form-item label="证件类型:" prop="certificates" :validate-event="is_Name">
66
+        <el-select v-model="form.certificates" placeholder="请选择" style="width:100%;">
49 67
           <el-option
50 68
             v-for="item in certificates"
51 69
             :key="item.value"
@@ -55,10 +73,43 @@
55 73
         </el-select>
56 74
       </el-form-item>
57 75
 
58
-      <el-form-item label="证件号码:" prop="id_card"  :validate-event="is_Name">
76
+      <el-form-item label="证件号码:" prop="id_card" :validate-event="is_Name">
59 77
         <el-input v-model="form.id_card"></el-input>
60 78
       </el-form-item>
61 79
 
80
+      <el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">
81
+        <el-select style="margin-right:5px;width:100px;" v-model="form.p_type" placeholder=""
82
+                   >
83
+          <el-option
84
+            v-for="(item,index) in registers"
85
+            :key="index"
86
+            :label="item.label"
87
+            :value="item.value">
88
+          </el-option>
89
+        </el-select>
90
+      </el-form-item>
91
+      <el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">
92
+        <el-select style="margin-right:5px;width:100px;" v-model="form.sick_type" placeholder="">
93
+          <el-option
94
+            v-for="(item,index) in sick"
95
+            :key="index"
96
+            :label="item.class_name"
97
+            :value="item.id">
98
+          </el-option>
99
+        </el-select>
100
+      </el-form-item>
101
+
102
+      <el-form-item label="诊断:" prop="diagnosis" :validate-event="is_Name">
103
+        <el-select style="margin-right:5px;width:100px;" v-model="form.diagnosis" placeholder="">
104
+          <el-option
105
+            v-for="(item,index) in diagnoses"
106
+            :key="index"
107
+            :label="item.class_name"
108
+            :value="item.id">
109
+          </el-option>
110
+        </el-select>
111
+      </el-form-item>
112
+
62 113
 
63 114
       <el-form-item label="结算类型:">
64 115
         <el-select v-model="form.settlement_value" placeholder="请选择" style="width:100%;">
@@ -82,14 +133,30 @@
82 133
           </el-option>
83 134
         </el-select>
84 135
       </el-form-item>
136
+
137
+
138
+      <el-form-item label="读卡类型:" prop="id_card_type" :validate-event="is_Name">
139
+        <el-select v-model="form.id_card_type" placeholder="请选择">
140
+          <el-option
141
+            v-for="item in IDCardTypes"
142
+            :key="item.value"
143
+            :label="item.label"
144
+            :value="item.value">
145
+          </el-option>
146
+        </el-select>
147
+      </el-form-item>
148
+
149
+
85 150
       <el-form-item class="specialFormItem" label="医保卡号:">
86 151
         <div style="display:flex;">
87 152
           <el-input v-model="form.medical_insurance_card"></el-input>
153
+          <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button>
154
+
88 155
         </div>
89 156
       </el-form-item>
90 157
 
91
-      <el-form-item label="挂号类型:"  prop="register_type"  :validate-event="is_Name">
92
-        <el-select v-model="form.register_type"  placeholder="请选择" style="width:100%;">
158
+      <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
159
+        <el-select v-model="form.register" placeholder="请选择" style="width:100%;">
93 160
           <el-option
94 161
             v-for="item in register"
95 162
             :key="item.value"
@@ -107,49 +174,79 @@
107 174
     </el-form>
108 175
 
109 176
     <span slot="footer" class="dialog-footer">
110
-    <el-button  @click="cancel('formValue')">取 消</el-button>
111
-    <el-button  type="primary" @click="confirm('formValue')">挂 号</el-button>
177
+    <el-button @click="cancel('formValue')">取 消</el-button>
178
+    <el-button type="primary" @click="confirm('formValue')">挂 号</el-button>
112 179
   </span>
113 180
   </el-dialog>
114 181
 
115 182
 </template>
116 183
 
117 184
 <script>
118
-  import { getDictionaryDataConfig } from '@/utils/data'
185
+  import {uParseTime} from "@/utils/tools";
186
+  import axios from 'axios'
187
+  import {PostSearch} from '@/api/patient'
188
+
189
+  import {getDictionaryDataConfig} from '@/utils/data'
190
+
119 191
   export default {
192
+
120 193
     name: 'registerDialog',
121 194
 
122 195
     data() {
123 196
 
124 197
       return {
125
-        form:{
198
+        registers: [
199
+          {value: 11, label: "普通门诊"},
200
+          {value: 12, label: '门诊挂号'},
201
+          {value: 13, label: "急诊"},
202
+          {value: 14, label: "门诊特殊病"},
203
+          {value: 15, label: "门诊统筹"},
204
+          {value: 16, label: "门诊慢性病"},
205
+          {value: 21, label: "普通住院"},
206
+
207
+        ],
208
+        form: {
209
+          id: '',
126 210
           settlement_value: '',
127
-          medical_insurance_card:'',
128
-          name:'',
129
-          gender:'',
130
-          certificates:'',
131
-          medical_care:'',
132
-          birthday:'',
133
-          age:'',
134
-          id_card:'',
135
-          register:'',
136
-          doctor:'',
137
-          department:'',
138
-          registration_fee:'',
139
-          medical_expenses:'',
140
-          cost:'',
141
-          phone:'',
142
-          social_type:'',
143
-        },
211
+          medical_insurance_card: '',
212
+          name: '',
213
+          gender: '',
214
+          certificates: 1,
215
+          p_type:'',
216
+          sick_type:'',
217
+          diagnosis:'',
218
+          medical_care: '',
219
+          birthday: '',
220
+          age: '',
221
+          id_card: '',
222
+          register: '',
223
+          doctor: '',
224
+          id_card_type: 1,
225
+          department: '',
226
+          registration_fee: '',
227
+          medical_expenses: '',
228
+          cost: '',
229
+          phone: '',
230
+          social_type: '',
231
+        }, IDCardTypes: [{
232
+          value: 1,
233
+          label: '社保卡'
234
+        }, {
235
+          value: 2,
236
+          label: "身份证"
237
+        }, {
238
+          value: 3,
239
+          label: "电子凭证"
240
+        },],
144 241
         settlement: [
145
-            {value: 1,label: '医保'},
146
-            {value: 2,label: '自费'},
147
-            {value: 3,label:'公费'},
148
-            {value: 4,label:'农保'},
149
-            {value: 5,label:'会员'},
150
-            {value: 6,label:'职工'},
151
-            {value: 7,label:'合同'}
152
-          ],
242
+          {value: 1, label: '医保'},
243
+          {value: 2, label: '自费'},
244
+          {value: 3, label: '公费'},
245
+          {value: 4, label: '农保'},
246
+          {value: 5, label: '会员'},
247
+          {value: 6, label: '职工'},
248
+          {value: 7, label: '合同'}
249
+        ],
153 250
         sex: [{
154 251
           value: 1,
155 252
           label: '男'
@@ -163,16 +260,16 @@
163 260
         }, {
164 261
           value: 2,
165 262
           label: "社保卡"
166
-        },{
263
+        }, {
167 264
           value: 3,
168 265
           label: "护照"
169
-        },{
266
+        }, {
170 267
           value: 4,
171 268
           label: "军官证"
172
-        },{
269
+        }, {
173 270
           value: 5,
174 271
           label: "台胞证"
175
-        },{
272
+        }, {
176 273
           value: 6,
177 274
           label: "港澳地区身份证"
178 275
         }],
@@ -182,16 +279,16 @@
182 279
         }, {
183 280
           value: 2,
184 281
           label: "公务员医疗补助"
185
-        },{
282
+        }, {
186 283
           value: 3,
187 284
           label: "大额医疗费用补助"
188
-        },{
285
+        }, {
189 286
           value: 4,
190 287
           label: "离休人员医疗"
191
-        },{
288
+        }, {
192 289
           value: 5,
193 290
           label: "城乡居民基本医疗保险"
194
-        },{
291
+        }, {
195 292
           value: 6,
196 293
           label: "城乡居民大病医疗保险"
197 294
         },
@@ -205,25 +302,32 @@
205 302
         }, {
206 303
           value: 2,
207 304
           label: "主治"
208
-        },{
305
+        }, {
209 306
           value: 3,
210 307
           label: "主任"
211
-        },{
308
+        }, {
212 309
           value: 4,
213 310
           label: "免收诊金"
214
-        },{
311
+        }, {
215 312
           value: 5,
216 313
           label: "专家"
217 314
         }],
218 315
         rules: {
219
-          name:[{ required:true,message:"患者姓名不能为空",trigger: 'blur'}],
220
-          gender:[{ required:true,message:"患者性别不能为空",trigger: 'blur'}],
221
-          id_card: [{ required: true, message: '证件号码不能为空', trigger: 'blur'  }],
222
-          register_type: [{ required: true, message: '请选择挂号类型' , trigger: 'blur' }],
223
-          doctor: [{ required: true, message: '请选择医生' , trigger: 'blur' }],
224
-          department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
225
-          age:[{ required:true,message:"患者年龄不能为空",trigger: 'blur'}],
226
-          birthday:[{required:true,message:"患者出生日期不能为空",trigger:'blur'}]
316
+          name: [{required: true, message: "患者姓名不能为空", trigger: 'blur'}],
317
+          gender: [{required: true, message: "患者性别不能为空", trigger: 'blur'}],
318
+          id_card: [{required: true, message: '证件号码不能为空', trigger: 'blur'}],
319
+          register: [{required: true, message: '请选择挂号类型', trigger: 'blur'}],
320
+          doctor: [{required: true, message: '请选择医生', trigger: 'blur'}],
321
+          department: [{required: true, message: '请填写科室', trigger: 'blur'}],
322
+          age: [{required: true, message: "患者年龄不能为空", trigger: 'blur'}],
323
+          birthday: [{required: true, message: "患者出生日期不能为空", trigger: 'blur'}],
324
+          certificates: [{required: true, message: "证件类型不能为空", trigger: 'change'}],
325
+          id_card_type: [{required: true, message: "读卡类型不能为空", trigger: 'change'}],
326
+
327
+          p_type: [{required: true, message: "处方类型不能为空", trigger: 'change'}],
328
+          sick_type: [{required: true, message: "大病类别不能为空", trigger: 'change'}],
329
+          diagnosis: [{required: true, message: "诊断不能为空", trigger: 'change'}],
330
+
227 331
         },
228 332
 
229 333
         visibility: false,
@@ -232,22 +336,23 @@
232 336
 
233 337
         resetForm: {
234 338
           settlement_value: '',
235
-          medical_insurance_card:'',
236
-          name:'',
237
-          gender:'',
238
-          certificates:'',
239
-          medical_care:'',
240
-          birthday:'',
241
-          age:'',
242
-          id_card:'',
243
-          register:'',
244
-          doctor:'',
245
-          department:'',
246
-          registration_fee:'',
247
-          medical_expenses:'',
248
-          cost:'',
249
-          phone:'',
250
-          social_type:'',
339
+          medical_insurance_card: '',
340
+          name: '',
341
+          gender: '',
342
+          certificates: '',
343
+          id_card_type: '',
344
+          medical_care: '',
345
+          birthday: '',
346
+          age: '',
347
+          id_card: '',
348
+          register: '',
349
+          doctor: '',
350
+          department: '',
351
+          registration_fee: '',
352
+          medical_expenses: '',
353
+          cost: '',
354
+          phone: '',
355
+          social_type: '',
251 356
         },
252 357
 
253 358
       }
@@ -270,44 +375,121 @@
270 375
         type: Number,
271 376
         default: 1
272 377
 
273
-      }
378
+      },
379
+      sick: Array,
380
+      diagnoses: Array,
274 381
     },
275 382
     methods: {
276
-      getDictionaryDataConfig(module, filed_name) {
277
-        return getDictionaryDataConfig(module, filed_name)
383
+      handleSelect(val) {
384
+        this.form.id = val.id
385
+        this.form.name = val.name
386
+        this.form.gender = val.gender
387
+        this.form.age = val.age
388
+        this.form.birthday = uParseTime(val.birthday, '{y}-{m}-{d}')
389
+        this.form.phone = val.phone
390
+        this.form.id_card = val.id_card_no
278 391
       },
279
-      show: function(patientInfo) {
280
-        this.form.name = patientInfo.name
281
-        this.form.gender = patientInfo.gender
282
-        this.form.age = patientInfo.age
283
-        this.form.birthday = patientInfo.birthday
284
-        this.form.phone = patientInfo.phone
285
-        this.form.birthday = patientInfo.birthday
286
-        this.form.id_card = patientInfo.id_card_no
287
-        this.form.social_type = patientInfo.health_care_type
288
-        if( this.form.social_type == 0){
289
-          this.form.social_type = ""
392
+      querySearchAsync(keyword, cb) {
393
+        let key = ''
394
+        if (keyword != undefined) {
395
+          key = keyword
396
+        }
397
+        let searchArray = []
398
+        PostSearch(key).then(response => {
399
+          if (response.data.state == 1) {
400
+            searchArray = response.data.data.patient
401
+            cb(searchArray)
402
+          } else {
403
+            cb([])
404
+          }
405
+        })
406
+      },
407
+      reading(medicalInsuranceCard) {
408
+        var that = this
409
+        if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
410
+          this.$message.error("请先选择读卡类型")
411
+          return
412
+        }
413
+        let params = {
414
+          'id_card_type': this.form.id_card_type,
415
+          'admin_user_id':this.$store.getters.xt_user.user.id,
290 416
 
291 417
         }
418
+        axios.get('http://127.0.0.1:9532/api/sscard', {
419
+          params: params
420
+        })
421
+          .then(function (response) {
422
+            if (response.data.state == 0) {
423
+              that.$message.error(response.data.msg)
424
+              return false
425
+            } else {
426
+              var patient = response.data.data.patient
427
+
428
+              if (that.form.id_card_type == 1) {
429
+                this.form.id = patient.id
430
+                that.form.name = patient.name
431
+                that.form.sex = patient.gender
432
+                that.form.age = patient.age
433
+                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
434
+                that.form.phone = patient.phone
435
+                that.form.idCard = patient.id_card_no
436
+                that.form.medicalInsuranceCard = response.data.data.number
437
+
438
+              } else if (that.form.id_card_type == 2) {
439
+                this.form.id = patient.id
440
+                that.form.name = patient.name
441
+                that.form.sex = patient.gender
442
+                that.form.age = patient.age
443
+                that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
444
+                that.form.phone = patient.phone
445
+                that.form.idCard = patient.id_card_no
446
+              }
447
+              that.$message({message: '读卡成功', type: 'success'})
448
+            }
449
+          })
450
+          .catch(function (error) {
451
+
452
+          });
453
+
454
+
455
+      },
456
+      getDictionaryDataConfig(module, filed_name) {
457
+        return getDictionaryDataConfig(module, filed_name)
458
+      },
459
+      show: function () {
460
+        this.form = Object.assign({}, this.resetForm)
461
+        // this.form.name = patientInfo.name
462
+        // this.form.gender = patientInfo.gender
463
+        // this.form.age = patientInfo.age
464
+        // this.form.birthday = patientInfo.birthday
465
+        // this.form.phone = patientInfo.phone
466
+        // this.form.birthday = patientInfo.birthday
467
+        // this.form.id_card = patientInfo.id_card_no
468
+        // this.form.social_type = patientInfo.health_care_type
469
+        // this.form.id_card_type = 1
470
+        // if( this.form.social_type == 0){
471
+        //   this.form.social_type = ""
472
+        //
473
+        // }
292 474
         this.visibility = true
293 475
 
294
-      }, hide: function() {
476
+      }, hide: function () {
295 477
         this.visibility = false
296
-      }, cancel: function(formName) {
478
+        this.$refs['formValue'].resetFields()
479
+      }, cancel: function (formName) {
297 480
         this.$emit('cancel', this.getValue())
298 481
         this.$refs['formValue'].resetFields()
299 482
       },
300
-      confirm: function(formName) {
483
+      confirm: function (formName) {
301 484
         this.$refs['formValue'].validate((valid) => {
302 485
           if (valid) {
303 486
             let value = {}
304 487
             value = this.getValue()
305 488
             this.$emit('confirm', value)
306
-            this.form = Object.assign({}, this.resetForm)
307 489
           }
308 490
         })
309 491
       },
310
-      getValue: function() {
492
+      getValue: function () {
311 493
         let form = {}
312 494
         form = this.form
313 495
         return form
@@ -318,13 +500,16 @@
318 500
 </script>
319 501
 
320 502
 <style lang="scss" scoped>
321
-.registerDialog{
322
-  .el-form{
503
+  .registerDialog {
504
+
505
+  .el-form {
323 506
     display: flex;
324 507
     flex-wrap: wrap;
325 508
   }
326
-  .el-form-item{
327
-    width:50%;
509
+
510
+  .el-form-item {
511
+    width: 50%;
512
+  }
513
+
328 514
   }
329
-}
330 515
 </style>

+ 157 - 0
src/xt_pages/outpatientCharges/costComparison.vue Parādīt failu

@@ -0,0 +1,157 @@
1
+<template>
2
+  <div class="main-contain incomeStatistics">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
+        <div>
9
+          <el-input size="small" style="width:150px;"  v-model="keywords"
10
+                    class="filter-item"/>
11
+          <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">
12
+            搜索
13
+          </el-button>
14
+        </div>
15
+        <el-button size="small" type="primary" @click="dialogFormVisible = true">医保对账</el-button>
16
+      </div>
17
+      <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
18
+                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
19
+        <el-table-column
20
+          prop="date"
21
+          label="序号"
22
+          width="60"
23
+          align="center"
24
+          type="index"
25
+        >
26
+        </el-table-column>
27
+        <el-table-column align="center" prop="name" label="操作机构">
28
+          <template slot-scope="scope"></template>
29
+        </el-table-column>
30
+        <el-table-column align="center" prop="name" label="对账申请人">
31
+          <template slot-scope="scope"></template>
32
+        </el-table-column>
33
+        <el-table-column align="center" prop="name" label="开始日期">
34
+          <template slot-scope="scope"></template>
35
+        </el-table-column>
36
+        <el-table-column align="center" prop="name" label="结束日期">
37
+          <template slot-scope="scope"></template>
38
+        </el-table-column>
39
+        <el-table-column align="center" prop="name" label="险种类型">
40
+          <template slot-scope="scope"></template>
41
+        </el-table-column>
42
+        <el-table-column align="center" prop="name" label="对账类型">
43
+          <template slot-scope="scope"></template>
44
+        </el-table-column>
45
+        <el-table-column align="center" prop="name" label="结算笔数">
46
+          <template slot-scope="scope"></template>
47
+        </el-table-column>
48
+        <el-table-column align="center" prop="name" label="医疗费用总数">
49
+          <template slot-scope="scope">
50
+          </template>
51
+        </el-table-column>
52
+        <el-table-column align="center" prop="name" width="160" label="基本医疗基金总费用">
53
+          <template slot-scope="scope">
54
+          </template>
55
+        </el-table-column>
56
+        <el-table-column align="center" prop="name" label="个人支付总费用">
57
+          <template slot-scope="scope">
58
+          </template>
59
+        </el-table-column>
60
+      </el-table>
61
+      <el-pagination
62
+        @size-change="handleSizeChange"
63
+        @current-change="handleCurrentChange"
64
+        :page-sizes="[10, 50, 100]"
65
+        :page-size="10"
66
+        background
67
+        style="margin-top:20px;float: right"
68
+        layout="total, sizes, prev, pager, next, jumper"
69
+        :total="total"
70
+
71
+      >
72
+      </el-pagination>
73
+      <el-dialog title="医保对账" :visible.sync="dialogFormVisible">
74
+        <el-form :model="form" label-width="100px">
75
+            <el-form-item label="时间" :label-width="formLabelWidth">
76
+                <el-date-picker v-model="start_time" prefix-icon="el-icon-date"
77
+                    @change="handleStartTimeChange" :editable="false" :clearable="false"
78
+                    style="width: 200px;" type="date" placeholder="选择开始日期"
79
+                    format="yyyy-MM-dd"
80
+                    value-format="yyyy-MM-dd"
81
+                    align="right"></el-date-picker>-
82
+
83
+                <el-date-picker v-model="end_time" prefix-icon="el-icon-date"
84
+                    @change="handleEndTimeChange" :editable="false" :clearable="false"
85
+                    style="width: 200px;margin-right:10px;" type="date" placeholder="选择结束日期"
86
+                    format="yyyy-MM-dd"
87
+                    value-format="yyyy-MM-dd"
88
+                    align="right"></el-date-picker>
89
+            </el-form-item>
90
+            <el-form-item label="险种类型" :label-width="formLabelWidth">
91
+                <el-select v-model="value" placeholder="请选择" style="width: 200px;">
92
+                    <el-option
93
+                    v-for="item in options"
94
+                    :key="item.value"
95
+                    :label="item.label"
96
+                    :value="item.value">
97
+                    </el-option>
98
+                </el-select>
99
+            </el-form-item>
100
+            <el-form-item label="对账类型" :label-width="formLabelWidth">
101
+                <el-select v-model="value" placeholder="请选择" style="width: 200px;">
102
+                    <el-option
103
+                    v-for="item in options"
104
+                    :key="item.value"
105
+                    :label="item.label"
106
+                    :value="item.value">
107
+                    </el-option>
108
+                </el-select>
109
+            </el-form-item>
110
+        </el-form>
111
+        <div slot="footer" class="dialog-footer">
112
+            <el-button @click="dialogFormVisible = false">取 消</el-button>
113
+            <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
114
+        </div>
115
+      </el-dialog>
116
+    </div>
117
+
118
+
119
+  </div>
120
+</template>
121
+
122
+
123
+<script>
124
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
125
+  import { getHisOrderList,getDoctorList,getExportConsumeDetailList } from '@/api/his/his'
126
+  import { uParseTime } from '@/utils/tools'
127
+
128
+  export default {
129
+    components: {
130
+      BreadCrumb
131
+    },
132
+    data() {
133
+      return {
134
+        crumbs: [
135
+          { path: false, name: '门诊收费' },
136
+          { path: false, name: '医保费用对照' }
137
+        ],
138
+        tableData: [],
139
+        limit:10,
140
+        page:1,
141
+        dialogFormVisible:false
142
+      }
143
+    },
144
+    methods: {
145
+      handleSizeChange(limit){
146
+        this.limit = limit;
147
+      },
148
+      handleCurrentChange(page){
149
+        this.page = page;
150
+      },
151
+    },
152
+    created() {
153
+
154
+
155
+    }
156
+  }
157
+</script>

+ 369 - 0
src/xt_pages/outpatientCharges/listPrint.vue Parādīt failu

@@ -0,0 +1,369 @@
1
+<template>
2
+  <div>
3
+    <template>
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
+      >打印
12
+      </el-button
13
+      >
14
+    </template>
15
+
16
+    <div class='dialysisPage' style="padding-top:40px;">
17
+      <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18
+    </div>
19
+  </div>
20
+</template>
21
+
22
+<script>
23
+  import printOne from './listTemplate/printOne'
24
+  import { getHisOrderDetail } from '@/api/his/his'
25
+  import { uParseTime } from '@/utils/tools'
26
+
27
+  export default {
28
+    name: 'listPrint',
29
+    components: {
30
+      printOne
31
+    },
32
+    props: {
33
+      paramsObj: Object
34
+    },
35
+    data() {
36
+      return {
37
+        list: [],
38
+        patient:{},
39
+        order:{},
40
+        admin:{},
41
+      }
42
+    },
43
+    created() {
44
+      this.getInfo(this.paramsObj.id)
45
+    },
46
+
47
+    methods: {
48
+      getTimes(time) {
49
+        return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
50
+      },
51
+      getInfo(order_id) {
52
+        let params = {
53
+          id: order_id
54
+        }
55
+        getHisOrderDetail(params).then(response => {
56
+          if (response.data.state == 0) {
57
+            this.$message.error(response.data.msg)
58
+            return false
59
+          } else {
60
+            this.order = response.data.data.order
61
+            this.patient = response.data.data.patient
62
+            console.log(this.patient)
63
+            this.admin = response.data.data.admin_info
64
+
65
+
66
+            for (let i = 0; i < response.data.data.order_info.length; i++) {
67
+              var infos = response.data.data.order_info[i]
68
+              let obj = {
69
+                med_chrgitm_type: this.getType(infos.med_chrgitm_type),
70
+                price: infos.pric,
71
+                count: infos.cnt
72
+              }
73
+              if (infos.advice && infos.advice.id == 0 && infos.project && infos.project.id > 0) {
74
+                obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
75
+                obj['name'] = infos.project.project.project_name
76
+                obj['spec'] = 1
77
+                obj['unit'] = infos.project.project.unit
78
+
79
+              }
80
+
81
+              if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
82
+                obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
83
+                obj['name'] = infos.advice.advice_name
84
+                obj['spec'] = infos.advice.drug.drug_spec
85
+                obj['unit'] = infos.advice.drug.max_unit
86
+
87
+              }
88
+              this.list.push(obj)
89
+              this.list.sort(function(a, b) {
90
+                return b.p_time < a.p_time ? 1 : -1
91
+              })
92
+
93
+            }
94
+          }
95
+        })
96
+      },
97
+      getType(med_chrgitm_type) {
98
+        switch (med_chrgitm_type) {
99
+          case '01':
100
+            return '床位费'
101
+            break
102
+          case '02':
103
+            return '诊察费'
104
+
105
+            break
106
+          case '03':
107
+            return '检查费'
108
+
109
+            break
110
+          case '04':
111
+            return '化验费'
112
+            break
113
+          case '05':
114
+            return '治疗费'
115
+
116
+            break
117
+          case '06':
118
+            return '手术费'
119
+
120
+            break
121
+          case '07':
122
+            return '护理费'
123
+
124
+            break
125
+          case '08':
126
+            return '材料费'
127
+
128
+            break
129
+          case '09':
130
+            return '西药费'
131
+
132
+            break
133
+          case '10':
134
+            return '中药饮片费'
135
+
136
+            break
137
+          case '11':
138
+            return '中成药费'
139
+
140
+            break
141
+          case '12':
142
+            return '一般诊疗费'
143
+
144
+            break
145
+          case '13':
146
+            return '挂号费'
147
+
148
+            break
149
+          case '14':
150
+            return '其他费'
151
+
152
+            break
153
+
154
+        }
155
+
156
+      },
157
+      printThisPage() {
158
+
159
+        const style =
160
+          '@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: 40px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
161
+        printJS({
162
+          printable: 'list-print',
163
+          type: 'html',
164
+          style: style,
165
+          scanStyles: false
166
+        })
167
+
168
+        // if (this.org_template_info.template_id == 1) {
169
+        //   printJS({
170
+        //     printable: "dialysis-print-box",
171
+        //     type: "html",
172
+        //     style: style,
173
+        //     scanStyles: false
174
+        //   });
175
+        // }
176
+      }
177
+    }
178
+
179
+  }
180
+</script>
181
+
182
+<style>
183
+  .dialysis-print-order {
184
+    width: 960px;
185
+    margin: 0 auto;
186
+  }
187
+
188
+  .dialysis-print-order .order-yy-name {
189
+    margin: auto;
190
+    text-align: center;
191
+    font-size: 20px;
192
+    letter-spacing: 5px;
193
+  }
194
+
195
+  .dialysis-print-order .order-title {
196
+    margin: auto;
197
+    font-weight: 600;
198
+    text-align: center;
199
+    font-size: 22px;
200
+    padding: 10px;
201
+  }
202
+
203
+  .dialysis-print-order .table-box {
204
+    width: 100%;
205
+    line-height: 23px;
206
+    font-size: 14px;
207
+  }
208
+
209
+  .dialysis-print-order .print-table {
210
+    width: 100%;
211
+    text-align: center;
212
+    border-collapse: collapse;
213
+    line-height: 40px;
214
+    font-size: 14px;
215
+    border-color: #000;
216
+  }
217
+
218
+  .dialysis-print-order .print-table-no {
219
+    width: 100%;
220
+    text-align: center;
221
+    border-collapse: collapse;
222
+    font-size: 14px;
223
+  }
224
+
225
+  .dialysis-print-order .under-line {
226
+    border-bottom: 1px solid #999;
227
+    width: 95%;
228
+    text-align: center;
229
+    margin-left: 2px;
230
+  }
231
+
232
+  .dialysis-print-order .title-box {
233
+    text-align: center;
234
+    font-size: 16px;
235
+  }
236
+
237
+  .dialysis-print-order .radio-lebel-box {
238
+    font-weight: 400;
239
+    cursor: pointer;
240
+  }
241
+
242
+  .dialysis-print-order .radio-no {
243
+    opacity: 0;
244
+    outline: none;
245
+    position: absolute;
246
+    margin: 0;
247
+    width: 0;
248
+    height: 0;
249
+    z-index: -1;
250
+  }
251
+
252
+  .dialysis-print-order .radio-inner {
253
+    white-space: nowrap;
254
+    cursor: pointer;
255
+    outline: none;
256
+    display: inline-block;
257
+    line-height: 1;
258
+    position: relative;
259
+    vertical-align: middle;
260
+  }
261
+
262
+  .dialysis-print-order .radio-fang {
263
+    display: inline-block;
264
+    position: relative;
265
+    border: 1px solid #000;
266
+    box-sizing: border-box;
267
+    width: 14px;
268
+    height: 14px;
269
+    background-color: #fff;
270
+    z-index: 1;
271
+    transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
272
+    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
273
+  }
274
+
275
+  .dialysis-print-order .is-checked-radio::after {
276
+    content: "√";
277
+    font-size: 15px;
278
+  }
279
+
280
+  .dialysis-print-order .print-table-no tr td {
281
+    padding: 8px 5px;
282
+    line-height: 25px;
283
+  }
284
+
285
+  .dialysis-print-order .print-table tr td {
286
+    padding: 1px 1px;
287
+    /*line-height: 25px;*/
288
+  }
289
+
290
+  .es-img {
291
+    height: 30px;
292
+  }
293
+
294
+  .advice-name {
295
+    text-align: left;
296
+  }
297
+
298
+  .advice-children {
299
+    display: flex;
300
+  }
301
+
302
+  .title-box-pro {
303
+    border: 0 #fff;
304
+    line-height: 25px;
305
+    height: 25px;
306
+    text-align: left;
307
+    padding-left: 10px !important;
308
+  }
309
+
310
+  .title-box-pro-tr {
311
+    border: 0 #fff;
312
+  }
313
+
314
+  .text-align-left {
315
+    text-align: left !important;
316
+    padding-left: 10px !important;
317
+    font-size: 14px !important;
318
+    line-height: 25px;
319
+  }
320
+
321
+  .print-table-tr-new td {
322
+    line-height: 20px !important;
323
+  }
324
+
325
+  .border-top-solid {
326
+    border: solid 1px #000;
327
+  }
328
+
329
+  .print-template-two tr {
330
+    line-height: 30px;
331
+  }
332
+
333
+  .table-box1 {
334
+    border: 1px solid #000;
335
+    width: 100%;
336
+    line-height: 30px;
337
+    font-size: 14px;
338
+    border-collapse: collapse;
339
+  }
340
+
341
+  .table-box1 tr {
342
+    border-bottom: 1px solid #000;
343
+  }
344
+</style>
345
+
346
+<style lang="scss">
347
+
348
+  .newContainer {
349
+
350
+  .dialysisPage::-webkit-scrollbar {
351
+    height: 15px;
352
+  }
353
+
354
+  .el-date-editor {
355
+
356
+  .el-input__inner {
357
+    padding-right: 0px;
358
+  }
359
+
360
+  }
361
+  .el-table td, .el-table th {
362
+    text-align: center;
363
+  }
364
+
365
+  }
366
+  .newContainer::-webkit-scrollbar {
367
+    height: 15px !important;
368
+  }
369
+</style>

+ 0 - 0
src/xt_pages/outpatientCharges/listTemplate/printOne.vue Parādīt failu


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels