28169 пре 1 година
родитељ
комит
3bec5a5884
35 измењених фајлова са 958 додато и 186 уклоњено
  1. 203 13
      package-lock.json
  2. 3 1
      package.json
  3. 53 0
      src/api/dialysis.js
  4. 2 2
      src/api/patient.js
  5. 4 4
      src/api/role/admin.js
  6. 1 0
      src/lang/en.js
  7. 2 0
      src/router/index.js
  8. 1 1
      src/views/layout/Layout.vue
  9. 2 2
      src/views/layout/components/Sidebar/index.vue
  10. 4 4
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  11. 2 4
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyseven.vue
  12. 7 1
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  13. 13 2
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  14. 6 2
      src/xt_pages/dialysis/details/dialysisOff.vue
  15. 9 44
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  16. 77 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue
  17. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue
  18. 2 0
      src/xt_pages/medicalScheduling/schedulingStatistics.vue
  19. 8 8
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  20. 188 1
      src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue
  21. 8 6
      src/xt_pages/role/admin.vue
  22. 2 1
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  23. 1 0
      src/xt_pages/stock/drugs/inventoryPrint.vue
  24. 1 0
      src/xt_pages/stock/inventoryPrint.vue
  25. 38 2
      src/xt_pages/stock/query/goodNewQuery.vue
  26. 2 0
      src/xt_pages/stock/query/goodNewQueryPrint.vue
  27. 36 0
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  28. 2 0
      src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue
  29. 8 10
      src/xt_pages/user/components/PatientDetail.vue
  30. 10 12
      src/xt_pages/user/components/PatientForm.vue
  31. 128 32
      src/xt_pages/user/patients.vue
  32. 1 1
      src/xt_pages/workforce/components/tableWeeks.vue
  33. 20 1
      src/xt_pages/workforce/next_remind_print.vue
  34. 23 13
      src/xt_pages/workforce/remind_print.vue
  35. 90 17
      src/xt_pages/workforce/remind_print_setting_one.vue

+ 203 - 13
package-lock.json Прегледај датотеку

@@ -36,6 +36,21 @@
36 36
         "@babel/types": "7.0.0-beta.31"
37 37
       }
38 38
     },
39
+    "@babel/runtime": {
40
+      "version": "7.22.11",
41
+      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.11.tgz",
42
+      "integrity": "sha512-ee7jVNlWN09+KftVOu9n7S8gQzD/Z6hN/I8VBRXW4P1+Xe7kJGXMwu8vds4aGIMHZnNbdpSWCfZZtinytpcAvA==",
43
+      "requires": {
44
+        "regenerator-runtime": "^0.14.0"
45
+      },
46
+      "dependencies": {
47
+        "regenerator-runtime": {
48
+          "version": "0.14.0",
49
+          "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz",
50
+          "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA=="
51
+        }
52
+      }
53
+    },
39 54
     "@babel/template": {
40 55
       "version": "7.0.0-beta.31",
41 56
       "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.31.tgz",
@@ -122,6 +137,12 @@
122 137
         "moment": "*"
123 138
       }
124 139
     },
140
+    "@types/raf": {
141
+      "version": "3.4.0",
142
+      "resolved": "https://registry.npmjs.org/@types/raf/-/raf-3.4.0.tgz",
143
+      "integrity": "sha512-taW5/WYqo36N7V39oYyHP9Ipfd5pNFvGTIQsNGj86xV88YQ7GnI30/yMfKDF7Zgin0m3e+ikX88FvImnK4RjGw==",
144
+      "optional": true
145
+    },
125 146
     "JSV": {
126 147
       "version": "4.0.2",
127 148
       "resolved": "https://registry.npmjs.org/JSV/-/JSV-4.0.2.tgz",
@@ -483,8 +504,7 @@
483 504
     "atob": {
484 505
       "version": "2.1.2",
485 506
       "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
486
-      "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
487
-      "dev": true
507
+      "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg=="
488 508
     },
489 509
     "autoprefixer": {
490 510
       "version": "7.2.3",
@@ -1474,6 +1494,11 @@
1474 1494
         }
1475 1495
       }
1476 1496
     },
1497
+    "base64-arraybuffer": {
1498
+      "version": "1.0.2",
1499
+      "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz",
1500
+      "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ=="
1501
+    },
1477 1502
     "base64-js": {
1478 1503
       "version": "1.3.0",
1479 1504
       "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz",
@@ -1723,6 +1748,11 @@
1723 1748
         "electron-to-chromium": "^1.3.30"
1724 1749
       }
1725 1750
     },
1751
+    "btoa": {
1752
+      "version": "1.2.1",
1753
+      "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz",
1754
+      "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g=="
1755
+    },
1726 1756
     "buffer": {
1727 1757
       "version": "4.9.1",
1728 1758
       "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz",
@@ -1915,6 +1945,36 @@
1915 1945
       "integrity": "sha512-7nK5qs17icQaX6V3/RYrJkOsZyRNnroA4+ZwxaKJzIKy+crIy0Mz5CBlLySd2SNV+4nbUZeqeNfiaEieUBu3aA==",
1916 1946
       "dev": true
1917 1947
     },
1948
+    "canvg": {
1949
+      "version": "3.0.10",
1950
+      "resolved": "https://registry.npmjs.org/canvg/-/canvg-3.0.10.tgz",
1951
+      "integrity": "sha512-qwR2FRNO9NlzTeKIPIKpnTY6fqwuYSequ8Ru8c0YkYU7U0oW+hLUvWadLvAu1Rl72OMNiFhoLu4f8eUjQ7l/+Q==",
1952
+      "optional": true,
1953
+      "requires": {
1954
+        "@babel/runtime": "^7.12.5",
1955
+        "@types/raf": "^3.4.0",
1956
+        "core-js": "^3.8.3",
1957
+        "raf": "^3.4.1",
1958
+        "regenerator-runtime": "^0.13.7",
1959
+        "rgbcolor": "^1.0.1",
1960
+        "stackblur-canvas": "^2.0.0",
1961
+        "svg-pathdata": "^6.0.3"
1962
+      },
1963
+      "dependencies": {
1964
+        "core-js": {
1965
+          "version": "3.32.1",
1966
+          "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.32.1.tgz",
1967
+          "integrity": "sha512-lqufgNn9NLnESg5mQeYsxQP5w7wrViSj0jr/kv6ECQiByzQkrn1MKvV0L3acttpDqfQrHLwr2KCMgX5b8X+lyQ==",
1968
+          "optional": true
1969
+        },
1970
+        "regenerator-runtime": {
1971
+          "version": "0.13.11",
1972
+          "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
1973
+          "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==",
1974
+          "optional": true
1975
+        }
1976
+      }
1977
+    },
1918 1978
     "caseless": {
1919 1979
       "version": "0.12.0",
1920 1980
       "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
@@ -2794,6 +2854,14 @@
2794 2854
       "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=",
2795 2855
       "dev": true
2796 2856
     },
2857
+    "css-line-break": {
2858
+      "version": "2.1.0",
2859
+      "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.1.0.tgz",
2860
+      "integrity": "sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==",
2861
+      "requires": {
2862
+        "utrie": "^1.0.2"
2863
+      }
2864
+    },
2797 2865
     "css-loader": {
2798 2866
       "version": "0.28.7",
2799 2867
       "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-0.28.7.tgz",
@@ -3451,6 +3519,12 @@
3451 3519
         "domelementtype": "1"
3452 3520
       }
3453 3521
     },
3522
+    "dompurify": {
3523
+      "version": "2.4.7",
3524
+      "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.4.7.tgz",
3525
+      "integrity": "sha512-kxxKlPEDa6Nc5WJi+qRgPbOAbgTpSULL+vI3NUXsZMlkJxTqYI9wg5ZTay2sFrdZRWHPWNi+EdAhcJf81WtoMQ==",
3526
+      "optional": true
3527
+    },
3454 3528
     "domready": {
3455 3529
       "version": "1.0.8",
3456 3530
       "resolved": "https://registry.npmjs.org/domready/-/domready-1.0.8.tgz",
@@ -4388,6 +4462,11 @@
4388 4462
         "websocket-driver": ">=0.5.1"
4389 4463
       }
4390 4464
     },
4465
+    "fflate": {
4466
+      "version": "0.4.8",
4467
+      "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz",
4468
+      "integrity": "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA=="
4469
+    },
4391 4470
     "figures": {
4392 4471
       "version": "2.0.0",
4393 4472
       "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz",
@@ -4759,7 +4838,8 @@
4759 4838
         "ansi-regex": {
4760 4839
           "version": "2.1.1",
4761 4840
           "bundled": true,
4762
-          "dev": true
4841
+          "dev": true,
4842
+          "optional": true
4763 4843
         },
4764 4844
         "aproba": {
4765 4845
           "version": "1.2.0",
@@ -4782,13 +4862,15 @@
4782 4862
         "balanced-match": {
4783 4863
           "version": "1.0.0",
4784 4864
           "bundled": true,
4785
-          "dev": true
4865
+          "dev": true,
4866
+          "optional": true
4786 4867
         },
4787 4868
         "brace-expansion": {
4788 4869
           "version": "1.1.11",
4789 4870
           "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4790 4871
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4791 4872
           "dev": true,
4873
+          "optional": true,
4792 4874
           "requires": {
4793 4875
             "balanced-match": "^1.0.0",
4794 4876
             "concat-map": "0.0.1"
@@ -4804,19 +4886,22 @@
4804 4886
         "code-point-at": {
4805 4887
           "version": "1.1.0",
4806 4888
           "bundled": true,
4807
-          "dev": true
4889
+          "dev": true,
4890
+          "optional": true
4808 4891
         },
4809 4892
         "concat-map": {
4810 4893
           "version": "0.0.1",
4811 4894
           "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4812 4895
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4813
-          "dev": true
4896
+          "dev": true,
4897
+          "optional": true
4814 4898
         },
4815 4899
         "console-control-strings": {
4816 4900
           "version": "1.1.0",
4817 4901
           "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4818 4902
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4819
-          "dev": true
4903
+          "dev": true,
4904
+          "optional": true
4820 4905
         },
4821 4906
         "core-util-is": {
4822 4907
           "version": "1.0.2",
@@ -4946,7 +5031,8 @@
4946 5031
         "inherits": {
4947 5032
           "version": "2.0.3",
4948 5033
           "bundled": true,
4949
-          "dev": true
5034
+          "dev": true,
5035
+          "optional": true
4950 5036
         },
4951 5037
         "ini": {
4952 5038
           "version": "1.3.5",
@@ -4960,6 +5046,7 @@
4960 5046
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4961 5047
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4962 5048
           "dev": true,
5049
+          "optional": true,
4963 5050
           "requires": {
4964 5051
             "number-is-nan": "^1.0.0"
4965 5052
           }
@@ -4976,6 +5063,7 @@
4976 5063
           "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4977 5064
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4978 5065
           "dev": true,
5066
+          "optional": true,
4979 5067
           "requires": {
4980 5068
             "brace-expansion": "^1.1.7"
4981 5069
           }
@@ -4983,13 +5071,15 @@
4983 5071
         "minimist": {
4984 5072
           "version": "0.0.8",
4985 5073
           "bundled": true,
4986
-          "dev": true
5074
+          "dev": true,
5075
+          "optional": true
4987 5076
         },
4988 5077
         "minipass": {
4989 5078
           "version": "2.3.5",
4990 5079
           "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
4991 5080
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4992 5081
           "dev": true,
5082
+          "optional": true,
4993 5083
           "requires": {
4994 5084
             "safe-buffer": "^5.1.2",
4995 5085
             "yallist": "^3.0.0"
@@ -5010,6 +5100,7 @@
5010 5100
           "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
5011 5101
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
5012 5102
           "dev": true,
5103
+          "optional": true,
5013 5104
           "requires": {
5014 5105
             "minimist": "0.0.8"
5015 5106
           }
@@ -5097,7 +5188,8 @@
5097 5188
         "number-is-nan": {
5098 5189
           "version": "1.0.1",
5099 5190
           "bundled": true,
5100
-          "dev": true
5191
+          "dev": true,
5192
+          "optional": true
5101 5193
         },
5102 5194
         "object-assign": {
5103 5195
           "version": "4.1.1",
@@ -5111,6 +5203,7 @@
5111 5203
           "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5112 5204
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5113 5205
           "dev": true,
5206
+          "optional": true,
5114 5207
           "requires": {
5115 5208
             "wrappy": "1"
5116 5209
           }
@@ -5205,7 +5298,8 @@
5205 5298
         "safe-buffer": {
5206 5299
           "version": "5.1.2",
5207 5300
           "bundled": true,
5208
-          "dev": true
5301
+          "dev": true,
5302
+          "optional": true
5209 5303
         },
5210 5304
         "safer-buffer": {
5211 5305
           "version": "2.1.2",
@@ -5247,6 +5341,7 @@
5247 5341
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5248 5342
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5249 5343
           "dev": true,
5344
+          "optional": true,
5250 5345
           "requires": {
5251 5346
             "code-point-at": "^1.0.0",
5252 5347
             "is-fullwidth-code-point": "^1.0.0",
@@ -5268,6 +5363,7 @@
5268 5363
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5269 5364
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5270 5365
           "dev": true,
5366
+          "optional": true,
5271 5367
           "requires": {
5272 5368
             "ansi-regex": "^2.0.0"
5273 5369
           }
@@ -5315,13 +5411,15 @@
5315 5411
         "wrappy": {
5316 5412
           "version": "1.0.2",
5317 5413
           "bundled": true,
5318
-          "dev": true
5414
+          "dev": true,
5415
+          "optional": true
5319 5416
         },
5320 5417
         "yallist": {
5321 5418
           "version": "3.0.3",
5322 5419
           "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5323 5420
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5324
-          "dev": true
5421
+          "dev": true,
5422
+          "optional": true
5325 5423
         }
5326 5424
       }
5327 5425
     },
@@ -5834,6 +5932,32 @@
5834 5932
         }
5835 5933
       }
5836 5934
     },
5935
+    "html2canvas": {
5936
+      "version": "1.4.1",
5937
+      "resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.4.1.tgz",
5938
+      "integrity": "sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==",
5939
+      "requires": {
5940
+        "css-line-break": "^2.1.0",
5941
+        "text-segmentation": "^1.0.3"
5942
+      }
5943
+    },
5944
+    "html2pdf.js": {
5945
+      "version": "0.10.1",
5946
+      "resolved": "https://registry.npmjs.org/html2pdf.js/-/html2pdf.js-0.10.1.tgz",
5947
+      "integrity": "sha512-3onwwhOWsZfNjIZwV6YIJ6FVhXk+X9YxHSqzeS6hup+1dGi2DHI+zZYUJ+iFnvtaYcjlhyrILL1fvRCUOa8Fcg==",
5948
+      "requires": {
5949
+        "es6-promise": "^4.2.5",
5950
+        "html2canvas": "^1.0.0",
5951
+        "jspdf": "^2.3.1"
5952
+      },
5953
+      "dependencies": {
5954
+        "es6-promise": {
5955
+          "version": "4.2.8",
5956
+          "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
5957
+          "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="
5958
+        }
5959
+      }
5960
+    },
5837 5961
     "htmlparser2": {
5838 5962
       "version": "3.10.1",
5839 5963
       "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz",
@@ -6734,6 +6858,29 @@
6734 6858
         "nomnom": "^1.5.x"
6735 6859
       }
6736 6860
     },
6861
+    "jspdf": {
6862
+      "version": "2.5.1",
6863
+      "resolved": "https://registry.npmjs.org/jspdf/-/jspdf-2.5.1.tgz",
6864
+      "integrity": "sha512-hXObxz7ZqoyhxET78+XR34Xu2qFGrJJ2I2bE5w4SM8eFaFEkW2xcGRVUss360fYelwRSid/jT078kbNvmoW0QA==",
6865
+      "requires": {
6866
+        "@babel/runtime": "^7.14.0",
6867
+        "atob": "^2.1.2",
6868
+        "btoa": "^1.2.1",
6869
+        "canvg": "^3.0.6",
6870
+        "core-js": "^3.6.0",
6871
+        "dompurify": "^2.2.0",
6872
+        "fflate": "^0.4.8",
6873
+        "html2canvas": "^1.0.0-rc.5"
6874
+      },
6875
+      "dependencies": {
6876
+        "core-js": {
6877
+          "version": "3.32.1",
6878
+          "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.32.1.tgz",
6879
+          "integrity": "sha512-lqufgNn9NLnESg5mQeYsxQP5w7wrViSj0jr/kv6ECQiByzQkrn1MKvV0L3acttpDqfQrHLwr2KCMgX5b8X+lyQ==",
6880
+          "optional": true
6881
+        }
6882
+      }
6883
+    },
6737 6884
     "jsprim": {
6738 6885
       "version": "1.4.2",
6739 6886
       "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz",
@@ -11410,6 +11557,15 @@
11410 11557
       "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==",
11411 11558
       "dev": true
11412 11559
     },
11560
+    "raf": {
11561
+      "version": "3.4.1",
11562
+      "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz",
11563
+      "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==",
11564
+      "optional": true,
11565
+      "requires": {
11566
+        "performance-now": "^2.1.0"
11567
+      }
11568
+    },
11413 11569
     "randomatic": {
11414 11570
       "version": "3.1.1",
11415 11571
       "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz",
@@ -11904,6 +12060,12 @@
11904 12060
       "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==",
11905 12061
       "dev": true
11906 12062
     },
12063
+    "rgbcolor": {
12064
+      "version": "1.0.1",
12065
+      "resolved": "https://registry.npmjs.org/rgbcolor/-/rgbcolor-1.0.1.tgz",
12066
+      "integrity": "sha512-9aZLIrhRaD97sgVhtJOW6ckOEh6/GnvQtdVNfdZ6s67+3/XwLS9lBcQYzEEhYVeUowN7pRzMLsyGhK2i/xvWbw==",
12067
+      "optional": true
12068
+    },
11907 12069
     "right-align": {
11908 12070
       "version": "0.1.3",
11909 12071
       "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz",
@@ -12954,6 +13116,12 @@
12954 13116
         "safe-buffer": "^5.1.1"
12955 13117
       }
12956 13118
     },
13119
+    "stackblur-canvas": {
13120
+      "version": "2.6.0",
13121
+      "resolved": "https://registry.npmjs.org/stackblur-canvas/-/stackblur-canvas-2.6.0.tgz",
13122
+      "integrity": "sha512-8S1aIA+UoF6erJYnglGPug6MaHYGo1Ot7h5fuXx4fUPvcvQfcdw2o/ppCse63+eZf8PPidSu4v1JnmEVtEDnpg==",
13123
+      "optional": true
13124
+    },
12957 13125
     "stackframe": {
12958 13126
       "version": "1.0.4",
12959 13127
       "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.0.4.tgz",
@@ -13398,6 +13566,12 @@
13398 13566
         }
13399 13567
       }
13400 13568
     },
13569
+    "svg-pathdata": {
13570
+      "version": "6.0.3",
13571
+      "resolved": "https://registry.npmjs.org/svg-pathdata/-/svg-pathdata-6.0.3.tgz",
13572
+      "integrity": "sha512-qsjeeq5YjBZ5eMdFuUa4ZosMLxgr5RZ+F+Y1OrDhuOCEInRMA3x74XdBtggJcj9kOeInz0WE+LgCPDkZFlBYJw==",
13573
+      "optional": true
13574
+    },
13401 13575
     "svg-sprite-loader": {
13402 13576
       "version": "3.5.2",
13403 13577
       "resolved": "https://registry.npmjs.org/svg-sprite-loader/-/svg-sprite-loader-3.5.2.tgz",
@@ -13496,6 +13670,14 @@
13496 13670
         "inherits": "2"
13497 13671
       }
13498 13672
     },
13673
+    "text-segmentation": {
13674
+      "version": "1.0.3",
13675
+      "resolved": "https://registry.npmjs.org/text-segmentation/-/text-segmentation-1.0.3.tgz",
13676
+      "integrity": "sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==",
13677
+      "requires": {
13678
+        "utrie": "^1.0.2"
13679
+      }
13680
+    },
13499 13681
     "text-table": {
13500 13682
       "version": "0.2.0",
13501 13683
       "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
@@ -14070,6 +14252,14 @@
14070 14252
       "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
14071 14253
       "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
14072 14254
     },
14255
+    "utrie": {
14256
+      "version": "1.0.2",
14257
+      "resolved": "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz",
14258
+      "integrity": "sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==",
14259
+      "requires": {
14260
+        "base64-arraybuffer": "^1.0.2"
14261
+      }
14262
+    },
14073 14263
     "uuid": {
14074 14264
       "version": "3.4.0",
14075 14265
       "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",

+ 3 - 1
package.json Прегледај датотеку

@@ -5,7 +5,6 @@
5 5
   "author": "Pan <panfree23@gmail.com>",
6 6
   "license": "MIT",
7 7
   "scripts": {
8
-
9 8
     "dev": "cross-env BABEL_ENV=development webpack-dev-server  --inline --progress --config build/webpack.dev.conf.js ",
10 9
     "build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js",
11 10
     "build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js && npm run fixfont && npm run fiximg",
@@ -51,9 +50,12 @@
51 50
     "element-ui": "^2.13.2",
52 51
     "file-saver": "^1.3.8",
53 52
     "font-awesome": "4.7.0",
53
+    "html2canvas": "^1.4.1",
54
+    "html2pdf.js": "^0.10.1",
54 55
     "js-cookie": "2.2.0",
55 56
     "jsbarcode": "^3.11.5",
56 57
     "jsonlint": "1.6.3",
58
+    "jspdf": "^2.5.1",
57 59
     "jszip": "3.1.5",
58 60
     "mockjs": "1.0.1-beta3",
59 61
     "moment": "^2.24.0",

+ 53 - 0
src/api/dialysis.js Прегледај датотеку

@@ -457,3 +457,56 @@ export function saveInformation(params){
457 457
     params:params
458 458
   })
459 459
 }
460
+
461
+
462
+export function getPatientList(keyword,params){
463
+   console.log("paramswoowwo",params)
464
+  return request({
465
+    url:"/api/patient/getpatientlist?keyword="+keyword,
466
+    method:"get",
467
+    params:params
468
+  })
469
+}
470
+
471
+export function getPrescriptionLogList(params){
472
+  
473
+  return request({
474
+    url:"/api/patient/getprescriptionloglist",
475
+    method:"get",
476
+    params:params
477
+  })
478
+}
479
+
480
+export function getBeforLogList(params){
481
+ 
482
+  return request({
483
+    url:"/api/patient/getbeforloglist",
484
+    method:"get",
485
+    params:params
486
+  })
487
+}
488
+
489
+export function getDocLogLogList(params){
490
+  return request({
491
+    url:"/api/patient/getdocloglist",
492
+    method:"get",
493
+    params:params
494
+  })
495
+}
496
+
497
+export function getMonitorLogList(params){
498
+  return request({
499
+    url:"/api/patient/getmonitorloglist",
500
+    method:"get",
501
+    params:params
502
+  })
503
+}
504
+
505
+export function getAferLogList(params){
506
+
507
+  return request({
508
+    url:"/api/patient/getafterloglist",
509
+    method:"get",
510
+    params:params,
511
+  })
512
+}

+ 2 - 2
src/api/patient.js Прегледај датотеку

@@ -246,9 +246,9 @@ export function deleteRescueRecords(patient_id, ids_str) {
246 246
   })
247 247
 }
248 248
 
249
-export function EditLapseto(patient_id, data) {
249
+export function EditLapseto(patient_id, data,start_time,end_time,address) {
250 250
   return request({
251
-    url: '/api/patients/lapseto/edit?id=' + patient_id,
251
+    url: '/api/patients/lapseto/edit?id=' + patient_id+"&start_time="+start_time+"&end_time="+end_time+"&patient_address="+address,
252 252
     method: 'post',
253 253
     data: data
254 254
   })

+ 4 - 4
src/api/role/admin.js Прегледај датотеку

@@ -275,11 +275,11 @@ export function getEnterPriseDetail(params){
275 275
   })
276 276
 }
277 277
 
278
-export function UploadPrintOrder(str,params){
278
+export function UploadPrintOrder(data){
279 279
   
280 280
   return request({
281
-    url:"/api/device/uploadprintorder?name="+str,
282
-    method:"Get",
283
-    params:params,
281
+    url:"/api/device/uploadprintorder",
282
+    method:"Post",
283
+    data:data,
284 284
   })
285 285
 }

+ 1 - 0
src/lang/en.js Прегледај датотеку

@@ -83,6 +83,7 @@ export default {
83 83
     dialysisRecord: 'dialysisRecord',
84 84
     dialysisInfo:'dialysisInfo',
85 85
     dialysis_index:'dialysis_index',
86
+    log_index:'log_index',
86 87
     scheduling: 'scheduling',
87 88
     device: 'Device',
88 89
     deviceManage: 'Device Manage',

+ 2 - 0
src/router/index.js Прегледај датотеку

@@ -10,6 +10,7 @@ import patient from './modules/patient'
10 10
 import qcd from './modules/qcd'
11 11
 import Dialysisanalysis from './modules/Dialysisanalysis'
12 12
 import DialysisIndex from './modules/dialysisIndex'
13
+import DialysisLogIndex from './modules/logIndex'
13 14
 import stock from './modules/stock'
14 15
 import weight_sign from './modules/weight_sign'
15 16
 import workforce from './modules/workforce'
@@ -206,6 +207,7 @@ var _asy_router_map = [
206 207
   supply,
207 208
   Dialysisanalysis,// 新菜单6.1
208 209
   DialysisIndex,
210
+  DialysisLogIndex,
209 211
 ]
210 212
 
211 213
 var is_asy_router = process.env.NODE_ENV === 'production' // true; 设置为 true 强制进行路由验证

+ 1 - 1
src/views/layout/Layout.vue Прегледај датотеку

@@ -134,7 +134,7 @@ export default {
134 134
   created(){
135 135
     let menzhen = ['hospitalStation',"hospitalRecord","hospitalCharges","DepositManagement","hisTool",'outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord'];
136 136
     let bingli = ['User','createPatient'];
137
-    let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index'];
137
+    let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','log_index'];
138 138
     let kucun = ['stockManage','stockDrugs','selfPreparedMedicine','inventoryTransfer','wareHouseManage','otherManagement'];
139 139
     let caigou = ['supplyManage','supplyList'];
140 140
     let peizhi = ['system','roleManage','DepartManage', 'bedManagement', 'dictionaryManagement', 'templateManagement','showconfig','printTemplate','integration_config','basicConfig'];

+ 2 - 2
src/views/layout/components/Sidebar/index.vue Прегледај датотеку

@@ -48,7 +48,7 @@ export default {
48 48
   },
49 49
   created(){
50 50
     if(this.navTitle == '透析管理'){
51
-      let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis'];
51
+      let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis','log_index'];
52 52
       // console.log('permission_routers',this.permission_routers)
53 53
       let routerArr = [];
54 54
       this.permission_routers.map(item => {
@@ -120,7 +120,7 @@ export default {
120 120
             this.$emit('func',a)
121 121
           }
122 122
         }else if(newVal == '透析管理'){
123
-          let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis'];
123
+          let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis','log_index'];
124 124
           // console.log('permission_routers',this.permission_routers)
125 125
           let routerArr = [];
126 126
           this.permission_routers.map(item => {

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Прегледај датотеку

@@ -915,7 +915,7 @@
915 915
                       style="padding: 2px 0; line-height: 23px; display: flex"
916 916
                     >
917 917
                       <div class="inline_block" style="flex: 1"
918
-                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510">
918
+                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510 && org_id!=10460">
919 919
                         上次透后体重:
920 920
                         <div
921 921
                           class="under_line"
@@ -941,7 +941,7 @@
941 941
                       </div>
942 942
 
943 943
                       <div class="inline_block" style="flex: 1"
944
-                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495)&& org_id!=10510">
944
+                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495 || org_id == 10460)&& org_id!=10510">
945 945
                         上次透后体重:
946 946
                         <div
947 947
                           class="under_line"
@@ -1349,7 +1349,7 @@
1349 1349
                           <td width="60">时间</td>
1350 1350
                           <td width="60">血压<br />(mmHg)</td>
1351 1351
                           <td width="50">脉搏<br />(次/分)</td>
1352
-                          <td width="50">呼吸<br />(次/分)</td>
1352
+                          <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1353 1353
                           <td width="50">血流量<br />(ml/min)</td>
1354 1354
                           <td width="50" v-if="org_id == 10478">动脉压<br />(mmHg)</td>
1355 1355
                           <td width="50">静脉压<br />(mmHg)</td>
@@ -1467,7 +1467,7 @@
1467 1467
                                 : ""
1468 1468
                             }}
1469 1469
                           </td>
1470
-                          <td>
1470
+                          <td v-if="org_id!=10489">
1471 1471
                             {{
1472 1472
                               monitor_record.breathing_rate
1473 1473
                                 ? monitor_record.breathing_rate

+ 2 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyseven.vue Прегледај датотеку

@@ -88,12 +88,10 @@
88 88
                   <span style="width: 14%;">震颤:</span>
89 89
                   <span style="width: 14%;">外观:</span>
90 90
                   <span style="width: 14%;">置换方式:
91
-                    {{
92
-                          getDisplaceLiquiPart(record.prescription.displace_liqui_part)
93
-                        }}
91
+                    {{getDisplaceLiquiPart(record.prescription.displace_liqui_part)}}
94 92
                   </span>
95 93
                   <span style="width: 14%;">置换总量:
96
-                    {{ record.prescription.displace_liqui_value ? record.prescription.displace_liqui_value : "/" }}
94
+                    {{ record.prescription.displace_liqui_value ? record.prescription.displace_liqui_value : "/" }}L
97 95
                   </span>
98 96
                 </td>
99 97
               </tr>

+ 7 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue Прегледај датотеку

@@ -20,12 +20,18 @@
20 20
 
21 21
         </li>
22 22
 
23
-         <li v-if="isShow('置换速度')">
23
+         <li v-if="isShow('置换速度')&& this.$store.getters.xt_user.template_info.org_id!=10375">
24 24
           <label>置换速度 : </label>
25 25
           <span class="content">{{displace_speed }}</span>
26 26
             <span class="unit">ml/min</span>
27 27
         </li>
28 28
 
29
+        <li v-if="isShow('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375">
30
+          <label>置换速度 : </label>
31
+          <span class="content">{{displace_speed }}</span>
32
+            <span class="unit">ml/L</span>
33
+        </li>
34
+
29 35
 
30 36
         <li v-if="isShow('透析液配方')">
31 37
           <label>透析液配方 : </label>

+ 13 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -604,7 +604,7 @@
604 604
                     </el-col>
605 605
 
606 606
 
607
-                    <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow">
607
+                    <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id != 10375" v-show="totalShow">
608 608
                         <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isCheckmust('置换速度')">
609 609
                             <el-input
610 610
                                     v-model="dialysisPrescription.displace_speed"
@@ -612,6 +612,14 @@
612 612
                         </el-form-item>
613 613
                     </el-col>
614 614
 
615
+                    <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375" v-show="totalShow">
616
+                        <el-form-item label="置换速度(L/h)" prop="displace_speed" :rules="isCheckmust('置换速度')">
617
+                            <el-input
618
+                                    v-model="dialysisPrescription.displace_speed"
619
+                            ></el-input>
620
+                        </el-form-item>
621
+                    </el-col>
622
+
615 623
                     <el-col
616 624
                             :span="8"
617 625
                             v-if="isShows('钙名称')"
@@ -3333,6 +3341,9 @@ mu
3333 3341
         this.hide()
3334 3342
       },
3335 3343
       handleSolution: function(formName) {
3344
+        if(this.dialysisPrescription.anticoagulant == "" || this.dialysisPrescription.anticoagulant == 0){
3345
+          this.dialysisPrescription.anticoagulant = 3
3346
+        }
3336 3347
         this.$refs[formName].validate((valid)=>{
3337 3348
           if(valid){
3338 3349
             if(!this.isLoading){
@@ -3387,7 +3398,7 @@ mu
3387 3398
                   ParamsQuery['patient'] = this.patient.id
3388 3399
                   ParamsQuery['record_date'] = this.record_date
3389 3400
                   ParamsQuery['mode'] = '1'
3390
-
3401
+               
3391 3402
                   postSoulution(ParamsQuery).then(response => {
3392 3403
                     if (response.data.state == 0) {
3393 3404
                       this.$message.error(response.data.msg)

+ 6 - 2
src/xt_pages/dialysis/details/dialysisOff.vue Прегледај датотеку

@@ -20,7 +20,7 @@
20 20
           <span class="content">{{end_time}}</span>
21 21
         </li>
22 22
       </ul>
23
-      <ul>
23
+      <ul v-if="org_id!=0&&org_id!=10460">
24 24
         <li>
25 25
           <label>宣教知识 : </label>
26 26
           <span class="content">{{this.record.mission}}</span>
@@ -38,7 +38,8 @@ export default {
38 38
   name: 'DialysisComputer',
39 39
   data() {
40 40
       return {
41
-        title: '透析下机 '
41
+        title: '透析下机 ',
42
+        org_id:0,
42 43
       }
43 44
   },
44 45
   props: {
@@ -76,6 +77,9 @@ export default {
76 77
   },
77 78
   methods: {
78 79
 
80
+  },
81
+  created(){
82
+    this.org_id = this.$store.getters.xt_user.org.id
79 83
   }
80 84
 }
81 85
 </script>

+ 9 - 44
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Прегледај датотеку

@@ -1,8 +1,8 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4
-    <!-- <el-button type="primary" @click="toUpload">一键上传</el-button> -->
5
-    <div id="dialysis-print-box-1" ref="pdfContent">
4
+    
5
+    <div id="dialysis-print-box-1"  ref="pdfContent">
6 6
       <div
7 7
         id="dialysis-print-box-1-1"
8 8
         class="dialysis-print-order print-template-two print_page_main_content"
@@ -828,7 +828,7 @@
828 828
                             ? prescription.dialyzer_perfusion_apparatus
829 829
                             : ""
830 830
                         }}
831
-                        <span v-if="prescription.dialysis_dialyszers&&prescription.dialysis_dialyszers!=''">/</span>
831
+                        <span v-if="prescription.dialyzer_perfusion_apparatus&&prescription.dialyzer_perfusion_apparatus!=''">/</span>
832 832
                         {{
833 833
                           prescription.dialysis_dialyszers
834 834
                             ? prescription.dialysis_dialyszers
@@ -951,10 +951,10 @@
951 951
                         class="under_line"
952 952
                         style="width: 100px; text-align: center"
953 953
                       >
954
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495">{{
954
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460">{{
955 955
                           lastafterdialysis.weight_after
956 956
                         }}</span>
957
-                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495">{{
957
+                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495 && org_id!=10460">{{
958 958
                           predialysis.weight_after_last_transparency
959 959
                             ? predialysis.weight_after_last_transparency
960 960
                             : "未称重"
@@ -1431,7 +1431,7 @@
1431 1431
                         <td width="50">时间</td>
1432 1432
                         <td width="65">血压<br />(mmHg)</td>
1433 1433
                         <td width="50">脉搏<br />(次/分)</td>
1434
-                        <td width="50">呼吸<br />(次/分)</td>
1434
+                        <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1435 1435
                         <td width="50">血流量<br />(ml/min)</td>
1436 1436
                         <td width="50" v-if="org_id==10478 || org_id == 0">
1437 1437
                           动脉压<br />({{
@@ -1488,7 +1488,7 @@
1488 1488
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1489 1489
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
1490 1490
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1491
-                        <td>{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1491
+                        <td v-if="org_id!=10489">{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1492 1492
                         <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1493 1493
                         <td v-if="org_id ==10478">
1494 1494
                           {{
@@ -3122,6 +3122,8 @@ import print from "print-js";
3122 3122
 import html2pdf from 'html2pdf.js'
3123 3123
 import { UploadPrintOrder } from "@/api/role/admin"
3124 3124
 import { HTML5_FMT } from "moment";
3125
+import html2canvas from 'html2canvas'
3126
+import { jsPDF } from 'jspdf';
3125 3127
 export default {
3126 3128
   name: "dialysisPrintOrderSix",
3127 3129
   props: ["childResponse"],
@@ -4082,43 +4084,6 @@ export default {
4082 4084
       }
4083 4085
     },
4084 4086
 
4085
-    toUpload(){
4086
-      const content = this.$refs.pdfContent;
4087
-      console.log("contentwowowowow",content)
4088
-      // Convert HTML to PDF
4089
-      const pdfOptions = {
4090
-        margin: 10,
4091
-        filename: 'sample.pdf',
4092
-        image: { type: 'jpeg', quality: 0.98 },
4093
-        html2canvas: { scale: 2 },
4094
-        jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' },
4095
-      };
4096
-      
4097
-      const pdf =  html2pdf().from(content).set(pdfOptions).outputPdf();
4098
-      
4099
-      console.log("pdfwowowoow",pdf)
4100
-      // Convert PDF to Base64
4101
-      const pdfBlob = new Blob([pdf], { type: 'application/pdf' });
4102
-      const reader = new FileReader();
4103
-      
4104
-      reader.onload = () => {
4105
-      const base64Data = reader.result.split(',')[1]; // Base64 string
4106
-      console.log('Base64 PDF:', base64Data);
4107
-
4108
-        UploadPrintOrder(base64Data).then(response=>{
4109
-           if(response.data.state == 1){
4110
-             var sign =  response.data.data.sign
4111
-             console.log("paramwowowo",sign)
4112
-             this.$message.success("上传成功")
4113
-           }
4114
-        })
4115
-        
4116
-        // Here, you can use the base64Data as needed, like sending it to the server, etc.
4117
-      };
4118
-      
4119
-      reader.readAsDataURL(pdfBlob);
4120
-    
4121
-    }
4122 4087
   },
4123 4088
   watch: {
4124 4089
     "patientInfo.gender": function () {

+ 77 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue Прегледај датотеку

@@ -1,6 +1,7 @@
1 1
 <template>
2 2
   <div >
3 3
     <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
4
+    <el-button type="primary" @click="toUpload">一键上传</el-button>
4 5
     <div id="dialysis-print-box-64">
5 6
       <div
6 7
         id="dialysis-print-box-64-1"
@@ -721,6 +722,12 @@
721 722
 import { getDialysisRecord } from "@/api/dialysis";
722 723
 import { jsGetAge, uParseTime } from "@/utils/tools";
723 724
 import { getDataConfig } from "@/utils/data";
725
+import print from "print-js";
726
+import html2pdf from 'html2pdf.js'
727
+import { UploadPrintOrder } from "@/api/role/admin"
728
+import { HTML5_FMT } from "moment";
729
+import html2canvas from 'html2canvas'
730
+import { jsPDF } from 'jspdf';
724 731
 export default {
725 732
   data() {
726 733
     return {
@@ -1221,7 +1228,76 @@ export default {
1221 1228
         }
1222 1229
       }
1223 1230
       return name
1224
-    }
1231
+    },
1232
+
1233
+    toUpload() {
1234
+        let dom = document.getElementById("dialysis-print-box-64");
1235
+        //调用方法下载
1236
+        html2canvas(dom, {
1237
+          useCORS: true, //允许跨域
1238
+          allowTaint: false,
1239
+          logging: false,
1240
+          letterRendering: true,
1241
+          ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
1242
+          scale: 4, //按比例增加分辨率
1243
+          background: '#fff',//pdf背景色为白色,默认是黑色的
1244
+       
1245
+        }).then((canvas) => {
1246
+          //返回图片dataURL,参数:图片格式和清晰度(0-1)
1247
+          var pageData = canvas.toDataURL('image/jpeg', 1.0);
1248
+
1249
+          //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
1250
+          var pdf = new jsPDF('', 'pt', 'a4');
1251
+
1252
+          //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
1253
+          pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
1254
+
1255
+          var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1256
+          console.log("base63",newBase64Data)
1257
+          this.viewPdf(newBase64Data)
1258
+
1259
+          var data = {
1260
+            name:newBase64Data,
1261
+          }
1262
+          UploadPrintOrder(data).then(response=>{
1263
+            if(response.data.state == 1){
1264
+              var sign =  response.data.data.sign
1265
+              console.log("SIGNWWOOWWO")
1266
+              this.$message.success("保存成功!")
1267
+            }
1268
+          })
1269
+          
1270
+          // this.viewPdf(newBase64Data)
1271
+          //保存到pdf,名字是stone
1272
+          // pdf.save('stone.pdf');
1273
+         
1274
+        });
1275
+      },
1276
+   
1277
+    viewPdf(content) {
1278
+      console.log("content",content);
1279
+      const blob = this.base64ToBlob(content);
1280
+      if (window.navigator && window.navigator.msSaveOrOpenBlob) {
1281
+        window.navigator.msSaveOrOpenBlob(blob);
1282
+      } else {
1283
+        const fileURL = URL.createObjectURL(blob);
1284
+        console.log("fileUlrwowowoow",fileURL)
1285
+        window.open(fileURL);//打开ppf文件
1286
+      }
1287
+    },
1288
+    base64ToBlob(code) {
1289
+      code = code.replace(/[\n\r]/g, '');// 检查base64字符串是否符合base64编码
1290
+      // atob() 方法用于解码使用 base-64 编码的字符串。
1291
+      const raw = window.atob(code);
1292
+      const rawLength = raw.length;
1293
+      const uInt8Array = new Uint8Array(rawLength);
1294
+      for (let i = 0; i < rawLength; ++i) {
1295
+      // 将解码后的逐个字符转换成Unicode序号,放入Unit8Array数组
1296
+        uInt8Array[i] = raw.charCodeAt(i);
1297
+      }
1298
+      // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1299
+      return new Blob([uInt8Array], { type: 'application/pdf' });
1300
+    },
1225 1301
   },
1226 1302
   created() {
1227 1303
     var bloodAccessParOpera = getDataConfig(

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue Прегледај датотеку

@@ -103,7 +103,7 @@
103 103
                     }}
104 104
                   </span>
105 105
                   <span style="width: 14%;">置换总量:
106
-                    {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
106
+                    {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}L
107 107
                   </span>
108 108
                 </td>
109 109
               </tr>

+ 2 - 0
src/xt_pages/medicalScheduling/schedulingStatistics.vue Прегледај датотеку

@@ -745,10 +745,12 @@ export default {
745 745
         changeTime(val){
746 746
             this.start_time = val.getTime()/1000
747 747
             this.getlist()
748
+            this.getchartlist()
748 749
         },
749 750
         changeTimeTwo(val){
750 751
             this.end_time = val.getTime()/1000
751 752
             this.getlist()
753
+            this.getchartlist()
752 754
         },
753 755
         compare(property){
754 756
             return function(a,b){

+ 8 - 8
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Прегледај датотеку

@@ -1774,7 +1774,7 @@ export default {
1774 1774
               // }
1775 1775
 
1776 1776
               var preTime = nowTime
1777
-              if ( this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191){
1777
+              if ( this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191  && this.$store.getters.xt_user.org.id != 10375){
1778 1778
                 if (prescription.pre_time == 0) {
1779 1779
                   if (this.schedule.schedule_type == 1) {
1780 1780
                     if(this.org_id == 10028){
@@ -1936,7 +1936,7 @@ export default {
1936 1936
                   tempProject.push(obj)
1937 1937
                 }
1938 1938
                 var preTime = nowTime
1939
-                if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191) {
1939
+                if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
1940 1940
                   if (this.schedule.schedule_type == 1) {
1941 1941
                     if(this.org_id == 10028){
1942 1942
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
@@ -2252,7 +2252,7 @@ export default {
2252 2252
                     // }
2253 2253
 
2254 2254
                     var preTime = nowTime
2255
-                    if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 ) {
2255
+                    if (this.org_id != 0 && this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
2256 2256
                       if (prescription.pre_time == 0) {
2257 2257
                         if (this.schedule.schedule_type == 1) {
2258 2258
                           if(this.org_id == 10028){
@@ -2416,7 +2416,7 @@ export default {
2416 2416
 
2417 2417
                       var preTime = nowTime
2418 2418
                       // var preTime = ''
2419
-                      if(this.org_id != 0 && this.org_id !=  9919 && this.org_id !=  10485 && this.org_id !=  10191) {
2419
+                      if(this.org_id != 0 && this.org_id !=  9919 && this.org_id !=  10485 && this.org_id !=  10191 && this.$store.getters.xt_user.org.id != 10375) {
2420 2420
                         if (this.schedule.schedule_type == 1) {
2421 2421
                           if(this.org_id == 10028){
2422 2422
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
@@ -3928,7 +3928,7 @@ export default {
3928 3928
 
3929 3929
                     var preTime = nowTime
3930 3930
 
3931
-                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id  != 10485 && this.org_id  != 10191 ) {
3931
+                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id  != 10485 && this.org_id  != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
3932 3932
                       if (prescription.pre_time == 0) {
3933 3933
                         if (this.schedule.schedule_type == 1) {
3934 3934
                           if(this.org_id == 10028){
@@ -4088,7 +4088,7 @@ export default {
4088 4088
 
4089 4089
                       // var preTime = nowTime
4090 4090
                       var preTime = nowTime
4091
-                      if( this.org_id != 0 && this.org_id != 9919 &&  this.org_id != 10485 &&  this.org_id != 10191) {
4091
+                      if( this.org_id != 0 && this.org_id != 9919 &&  this.org_id != 10485 &&  this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4092 4092
                         if (this.schedule.schedule_type == 1) {
4093 4093
                           if(this.org_id == 10028){
4094 4094
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
@@ -4577,7 +4577,7 @@ export default {
4577 4577
 
4578 4578
                     var preTime = nowTime
4579 4579
 
4580
-                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191) {
4580
+                    if(this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4581 4581
                       if (prescription.pre_time == 0) {
4582 4582
                         // preTime = nowTime
4583 4583
                         if (this.schedule.schedule_type == 1) {
@@ -4740,7 +4740,7 @@ export default {
4740 4740
 
4741 4741
                       var preTime = nowTime
4742 4742
                       // var preTime = ''
4743
-                      if(this.org_id != 0 && this.org_id != 9919  && this.org_id != 10485 && this.org_id != 10191 ) {
4743
+                      if(this.org_id != 0 && this.org_id != 9919  && this.org_id != 10485 && this.org_id != 10191  && this.$store.getters.xt_user.org.id != 10375) {
4744 4744
                         if (this.schedule.schedule_type == 1) {
4745 4745
                           if(this.org_id == 10028){
4746 4746
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'

+ 188 - 1
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue Прегледај датотеку

@@ -67,7 +67,11 @@
67 67
       </div>
68 68
       <div style="padding-left:10px;flex:1">
69 69
         <div class="tableTitle">统计表</div>
70
-        <div><el-button type="primary" @click="exportList">导出</el-button></div>
70
+        <div>
71
+          <el-button type="primary" @click="exportList">按透析记录导出</el-button>
72
+          <el-button type="primary" @click="exportListOne">按排班导出</el-button>
73
+        </div>
74
+       
71 75
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
72 76
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
73 77
         >
@@ -142,6 +146,7 @@ export default {
142 146
       },
143 147
       patient_id:0,
144 148
       modeIdCount:[],
149
+      scheduleCount:[],
145 150
     };
146 151
   },
147 152
   methods: {
@@ -202,6 +207,10 @@ export default {
202 207
 
203 208
           var modeIdCount = response.data.data.modeIdCount
204 209
           console.log("modeidcount=====",modeIdCount)
210
+
211
+        
212
+         
213
+
205 214
           for(let i=0;i<modeIdCount.length;i++){
206 215
             if(modeIdCount[i].mode_id == 1){
207 216
                modeIdCount[i].mode_id = "HD"
@@ -302,6 +311,109 @@ export default {
302 311
             }
303 312
           }
304 313
           this.modeIdCount = modeIdCount
314
+
315
+          var scheduleCount =  response.data.data.scheduleCount
316
+          console.log("scheduleCount",scheduleCount)
317
+          for(let i=0;i<scheduleCount.length;i++){
318
+            if(scheduleCount[i].mode_id == 1){
319
+              scheduleCount[i].mode_id = "HD"
320
+            }
321
+            if(scheduleCount[i].mode_id == 2){
322
+              scheduleCount[i].mode_id = "HDF"
323
+            }
324
+            if(scheduleCount[i].mode_id == 3){
325
+              scheduleCount[i].mode_id = "HD+HP"
326
+            }
327
+            if(scheduleCount[i].mode_id == 4){
328
+              scheduleCount[i].mode_id = "HP"
329
+            }
330
+            if(scheduleCount[i].mode_id == 5){
331
+              scheduleCount[i].mode_id = "HF"
332
+            }
333
+            if(scheduleCount[i].mode_id == 6){
334
+              scheduleCount[i].mode_id = "SCUF"
335
+            }
336
+            if(scheduleCount[i].mode_id == 7){
337
+              scheduleCount[i].mode_id = "IUF"
338
+            }
339
+            if(scheduleCount[i].mode_id == 8){
340
+              scheduleCount[i].mode_id = "HFHD"
341
+            }
342
+            if(scheduleCount[i].mode_id == 9){
343
+              scheduleCount[i].mode_id = "HFHD+HP"
344
+            }
345
+            if(scheduleCount[i].mode_id == 10){
346
+              scheduleCount[i].mode_id = "PHF"
347
+            }
348
+            if(scheduleCount[i].mode_id == 11){
349
+              scheduleCount[i].mode_id = "HFR"
350
+            }
351
+            if(scheduleCount[i].mode_id == 12){
352
+              scheduleCount[i].mode_id = "HDF+HP"
353
+            }
354
+            if(scheduleCount[i].mode_id == 13){
355
+              scheduleCount[i].mode_id = "CRRT"
356
+            }
357
+             if(scheduleCount[i].mode_id == 14){
358
+              scheduleCount[i].mode_id = "腹水回输"
359
+            }
360
+             if(scheduleCount[i].mode_id == 15){
361
+              scheduleCount[i].mode_id = "HD前置换"
362
+            }
363
+             if(scheduleCount[i].mode_id == 16){
364
+              scheduleCount[i].mode_id = "HD后置换"
365
+            }
366
+             if(scheduleCount[i].mode_id == 17){
367
+              scheduleCount[i].mode_id = "HDF前置换"
368
+            }
369
+             if(scheduleCount[i].mode_id == 18){
370
+              scheduleCount[i].mode_id = "HDF后置换"
371
+            }
372
+              if(scheduleCount[i].mode_id == 19){
373
+                scheduleCount[i].mode_id = "IUF+HD"
374
+            }
375
+            if(scheduleCount[i].mode_id == 20){
376
+              scheduleCount[i].mode_id = "UF"
377
+            }
378
+            if(scheduleCount[i].mode_id == 21){
379
+              scheduleCount[i].mode_id = "HD+"
380
+            }
381
+            if(scheduleCount[i].mode_id == 22){
382
+              scheduleCount[i].mode_id = "血浆胆红素吸附+HDF"
383
+            }
384
+            if(scheduleCount[i].mode_id == 23){
385
+              scheduleCount[i].mode_id = "血浆胆红素吸附"
386
+            }
387
+            if(scheduleCount[i].mode_id == 24){
388
+              scheduleCount[i].mode_id = "I-HDF"
389
+            }
390
+            if(scheduleCount[i].mode_id == 25){
391
+              scheduleCount[i].mode_id = "HD高通"
392
+            }
393
+
394
+            if(scheduleCount[i].mode_id == 26){
395
+              scheduleCount[i].mode_id = "CVVH"
396
+            }
397
+            if(scheduleCount[i].mode_id == 27){
398
+              scheduleCount[i].mode_id = "CVVHD"
399
+            }
400
+             if(scheduleCount[i].mode_id == 28){
401
+              scheduleCount[i].mode_id = "CVVHDF"
402
+            }
403
+            if(scheduleCount[i].mode_id == 29){
404
+              scheduleCount[i].mode_id = "PE"
405
+            }
406
+            if(scheduleCount[i].mode_id == 30){
407
+              scheduleCount[i].mode_id = "血浆胆红素吸附+HP"
408
+            }
409
+           if(scheduleCount[i].mode_id == 31){
410
+            scheduleCount[i].mode_id = "HPD"
411
+            }
412
+            if(scheduleCount[i].mode_id == 32){
413
+              scheduleCount[i].mode_id = "HDP"
414
+            }
415
+          }
416
+          this.scheduleCount = scheduleCount
305 417
           let dataInfo = {}
306 418
           list.forEach((item, index) => {
307 419
             let { patient_id } = item
@@ -353,6 +465,15 @@ export default {
353 465
        }
354 466
        return count
355 467
     },
468
+    getScheduleDialysisCount(id){
469
+       var count = 0
470
+       for(let i=0;i<this.scheduleCount.length;i++){
471
+           if(id == this.scheduleCount[i].patient_id){
472
+              count += this.scheduleCount[i].Count
473
+           }
474
+       }
475
+       return count
476
+    },
356 477
     onSearch(){
357 478
       if(this.listQuery.search == "" || this.listQuery.search == null){
358 479
          this.getDialysisList()
@@ -576,6 +697,55 @@ export default {
576 697
           this.downloadLoading = false
577 698
         })
578 699
       },
700
+
701
+      exportListOne(){
702
+       for(let i=0;i<this.DialysisData.length;i++){
703
+         this.DialysisData[i].index = i+1
704
+         this.DialysisData[i].HD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HD")
705
+         this.DialysisData[i].HDF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HDF")
706
+         this.DialysisData[i].HDHP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HD+HP")
707
+         this.DialysisData[i].HP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HP")
708
+         this.DialysisData[i].HF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HF")
709
+         this.DialysisData[i].SCUF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"SCUF")
710
+         this.DialysisData[i].IUF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"IUF")
711
+         this.DialysisData[i].HFHD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HFHD")
712
+         this.DialysisData[i].HFHDHP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HFHD+HP")
713
+         this.DialysisData[i].HDFHP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HDF+HP")
714
+         this.DialysisData[i].CRRT = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"CRRT")
715
+         this.DialysisData[i].OTR = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"腹水回输")
716
+
717
+         this.DialysisData[i].IUFHD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"IUF+HD")
718
+         this.DialysisData[i].UF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"UF")
719
+         this.DialysisData[i].HDPlus = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HD+")
720
+         this.DialysisData[i].IHDF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"I-HDF")
721
+         this.DialysisData[i].HDGT = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HD高通")
722
+         this.DialysisData[i].CVVH = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"CVVH")
723
+         this.DialysisData[i].CVVHD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"CVVHD")
724
+         this.DialysisData[i].CVVHDF = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"CVVHDF")
725
+         this.DialysisData[i].PE = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"PE")
726
+         this.DialysisData[i].XUEHP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"血浆胆红素吸附+HP")
727
+         this.DialysisData[i].HPD = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HPD")
728
+         this.DialysisData[i].HDP = this.getScheduleHdModeIdCount(this.DialysisData[i].patient_id,"HDP")
729
+
730
+         this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
731
+         this.DialysisData[i].total_count = this.getScheduleDialysisCount(this.DialysisData[i].patient_id)
732
+       }
733
+       console.log("hhh2323323232",this.DialysisData)
734
+       import('@/vendor/Export2Excel').then(excel => {
735
+        const tHeader = ['序号','姓名', '年龄', '透析号','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','IUF+HD','UF','HD+','I-HDF','HD高通','CVVH','CVVHD','CVVHDF','PE','血浆胆红素吸附+HP','HPD','HDP','总数']
736
+        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','IUF+HD','UF','HD+','I-HDF','HDGT','CVVH','CVVHD','CVVHDF','PE','XUEHP','HPD','HDP','total_count']
737
+
738
+        const data = this.formatJson(filterVal, this.DialysisData)
739
+
740
+        excel.export_json_to_excel({
741
+           header: tHeader,
742
+           data,
743
+           filename: '透析详情'
744
+         })
745
+          this.downloadLoading = false
746
+        })
747
+      },
748
+
579 749
       formatJson(filterVal, jsonData) {
580 750
         return jsonData.map(v =>
581 751
           filterVal.map(j => {
@@ -601,6 +771,23 @@ export default {
601 771
           }
602 772
         }
603 773
 
774
+        return count
775
+     },
776
+
777
+     getScheduleHdModeIdCount(id,mode_name){
778
+        var count = 0
779
+        var arr = []
780
+        for(let i = 0;i<this.scheduleCount.length;i++){
781
+           if(id == this.scheduleCount[i].patient_id && this.scheduleCount[i].mode_id == mode_name){
782
+             arr.push(this.scheduleCount[i])
783
+           }
784
+        }
785
+        if(arr.length > 0){
786
+          for(let i=0;i<arr.length;i++){
787
+            count += arr[i].Count
788
+          }
789
+        }
790
+
604 791
         return count
605 792
      }
606 793
 

+ 8 - 6
src/xt_pages/role/admin.vue Прегледај датотеку

@@ -122,7 +122,7 @@
122 122
           @click="toTestTwo">创建个人印章</el-button> -->
123 123
 
124 124
 
125
-          <!-- <el-button
125
+          <el-button
126 126
           type="primary"
127 127
           size="small"
128 128
           icon="el-icon-circle-plus-outline"
@@ -162,20 +162,22 @@
162 162
           style="float:left"
163 163
           @click="toTestThrity">合同详情查询</el-button>
164 164
 
165
-          <el-button
165
+
166
+         <el-button
166 167
           type="primary"
167 168
           size="small"
168 169
           icon="el-icon-circle-plus-outline"
169 170
           style="float:left"
170
-          @click="toEnd">结束签署</el-button> -->
171
-
171
+          @click="toWatch">合同在线预览</el-button>
172 172
 
173
-          <!-- <el-button
173
+          <el-button
174 174
           type="primary"
175 175
           size="small"
176 176
           icon="el-icon-circle-plus-outline"
177 177
           style="float:left"
178
-          @click="toWatch">合同在线预览</el-button> -->
178
+          @click="toEnd">结束签署</el-button>
179
+           
180
+         
179 181
           
180 182
      </div>
181 183
     

+ 2 - 1
src/xt_pages/stock/drugs/drugStockOutOrder.vue Прегледај датотеку

@@ -354,7 +354,7 @@
354 354
             <template slot-scope="scope">
355 355
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
356 356
                   <td style="border-right: none; border-inline-end: none;text-align: center">
357
-                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
357
+                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
358 358
                     <span v-if="is_sys == 0">
359 359
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
360 360
                       <span v-if="scope.row.child.length > 1">{{item.count * item.price}}</span> 
@@ -1959,6 +1959,7 @@ export default {
1959 1959
       if(max_unit == min_unit){
1960 1960
          all_price = max_str * price + min_str * price
1961 1961
       }
1962
+      console.log("all_pricewowo",all_price)
1962 1963
       if(all_price > 0){
1963 1964
         return all_price.toFixed(2)
1964 1965
       }else{

+ 1 - 0
src/xt_pages/stock/drugs/inventoryPrint.vue Прегледај датотеку

@@ -46,6 +46,7 @@
46 46
 <script>
47 47
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
48 48
 const moment = require('moment');
49
+import print from "print-js";
49 50
 import { uParseTime } from '@/utils/tools'
50 51
 import { getInventoryModeList } from "@/api/drug/drug"
51 52
 export default {

+ 1 - 0
src/xt_pages/stock/inventoryPrint.vue Прегледај датотеку

@@ -45,6 +45,7 @@
45 45
 
46 46
 <script>
47 47
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
48
+import print from "print-js";
48 49
 const moment = require('moment');
49 50
 import { uParseTime } from '@/utils/tools'
50 51
 import { getInventoryExportList } from "@/api/stock"

+ 38 - 2
src/xt_pages/stock/query/goodNewQuery.vue Прегледај датотеку

@@ -797,7 +797,8 @@ export default {
797 797
    exportList(){
798 798
       import('@/vendor/Export2Excel').then(excel => {
799 799
       
800
-         if(this.tableList!=null && this.tableList.length > 0){
800
+        if(this.org_id!=0 && this.org_id!=9956){
801
+          if(this.tableList!=null && this.tableList.length > 0){
801 802
           for(let i=0;i<this.tableList.length;i++){
802 803
             this.tableList[i].index = i+1
803 804
             this.tableList[i].type_name =  this.getGoodTypeName(this.tableList[i].good_type_id)
@@ -826,7 +827,42 @@ export default {
826 827
            filename: '库存查询'
827 828
          })
828 829
           this.downloadLoading = false
829
-        })
830
+        }
831
+
832
+        if(this.org_id == 0 || this.org_id == 9956){
833
+         
834
+          if(this.tableList!=null && this.tableList.length > 0){
835
+          for(let i=0;i<this.tableList.length;i++){
836
+            this.tableList[i].index = i+1
837
+            this.tableList[i].type_name =  this.getGoodTypeName(this.tableList[i].good_type_id)
838
+            this.tableList[i].spec = this.tableList[i].specification_name +"/"+ this.tableList[i].packing_unit
839
+            this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
840
+            this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
841
+            this.tableList[i].stock_in_count = this.GetExportStockInCount(this.tableList[i].xt_good_stock,this.tableList[i].id)
842
+            this.tableList[i].stock_out_count =this.getExportStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
843
+            this.tableList[i].stock_cancel_count = this.getExportCancelStockInfo(this.tableList[i].xt_good_stock,this.tableList[i].id)
844
+            this.tableList[i].act_out_count  = this.getExportActStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
845
+            this.tableList[i].over_count = this.getExportOverCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
846
+            this.tableList[i].sum_count =  this.getOverCount(this.tableList[i].xt_warehouse_info) 
847
+
848
+          }
849
+         }
850
+         
851
+
852
+         const tHeader = ['序号','耗材编码','耗材类型', '耗材名称', '规格&单位','生产厂商','经销商','批准文号','国家编码','入库数量','出库数量','退库数量','实际出库','剩余库存','总库存']
853
+         const filterVal = ['index','good_number','type_name', 'good_name', 'spec','manufacturer_name','dealer_name','number','social_security_directory_code','stock_in_count','act_out_count','stock_cancel_count','stock_out_count','over_count','sum_count']
854
+        
855
+         const data = this.formatJson(filterVal, this.tableList)
856
+         
857
+         excel.export_json_to_excel({
858
+           header: tHeader,
859
+           data,
860
+           filename: '库存查询'
861
+         })
862
+          this.downloadLoading = false
863
+        }
864
+   
865
+       })
830 866
       },
831 867
       formatJson(filterVal, jsonData) {
832 868
         return jsonData.map(v => filterVal.map(j => v[j]));

+ 2 - 0
src/xt_pages/stock/query/goodNewQueryPrint.vue Прегледај датотеку

@@ -33,6 +33,7 @@
33 33
               <thead>
34 34
                 <tr>
35 35
                   <td width="5%">序号</td>
36
+                  <td width="5%" v-if="org_id ==0 || org_id ==9956">耗材编码</td>
36 37
                   <td width="6%">耗材类型</td>
37 38
                   <td width="10%">耗材名称</td>
38 39
                   <td width="10%">规格&单位</td>
@@ -53,6 +54,7 @@
53 54
                 <tr v-for="(item, index) in tableList" :key="index">
54 55
                   <!-- 序号 -->
55 56
                   <td>{{ index + 1 }}</td>
57
+                  <td width="5%" v-if="org_id ==0 || org_id ==9956">{{item.good_number }}</td>
56 58
                   <!-- 耗材类型 -->
57 59
                   <td>{{ getGoodTypeName(item.good_type_id) }}</td>
58 60
                   <!-- 耗材名称 -->

+ 36 - 0
src/xt_pages/stock/query/purchaseNewStockQuery.vue Прегледај датотеку

@@ -1001,6 +1001,9 @@ export default {
1001 1001
     this.$router.push({path:"/purchase/new/stock/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&page="+this.page+"&limit="+this.limit+"&keyword="+this.keyword+"&good_type="+this.good_type})
1002 1002
    },
1003 1003
    exportList: function() {
1004
+
1005
+       if(this.org_id!=0&& this.org_id!=9956){
1006
+         
1004 1007
         for(let i=0;i<this.tableList.length;i++){
1005 1008
           this.tableList[i].index = i+1
1006 1009
           this.tableList[i].query_date = this.start_time+"~"+this.end_time
@@ -1028,6 +1031,39 @@ export default {
1028 1031
               filename
1029 1032
             })
1030 1033
         })
1034
+       }
1035
+
1036
+       if(this.org_id == 0 || this.org_id == 9956){
1037
+        
1038
+        for(let i=0;i<this.tableList.length;i++){
1039
+          this.tableList[i].index = i+1
1040
+          this.tableList[i].query_date = this.start_time+"~"+this.end_time
1041
+          this.tableList[i].good_type = this.getGoodTypeName(this.tableList[i].good_type_id)
1042
+          this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
1043
+          this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
1044
+          this.tableList[i].specification_name_one = this.tableList[i].specification_name + "/"+this.tableList[i].packing_unit
1045
+        }
1046
+        import('@/vendor/Export2Excel').then(excel => {
1047
+           const multiHeader = [['序号','耗材编码', '查询日期',' 耗材类型','耗材名称','规格&单位','生产产商','经销商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
1048
+           const header = ['','', '','','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
1049
+           const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:G2','H1:H2','I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1']
1050
+           const filterVal = ['index','good_number', 'query_date', 'good_type','good_name','specification_name_one','manufacturer_name','dealer_name','stockIn','stock_in_price','stockMoney','stockAdd','addStockMoney','saleStockMoney','outStock','stockOutprice','saleOutMoney','overStock','overPrice','overMoney']
1051
+    
1052
+           const data = this.formatJson(filterVal, this.tableList)
1053
+           
1054
+           const filename = '进销存查询'
1055
+     
1056
+          
1057
+            excel.export_json_to_excel({
1058
+              multiHeader,
1059
+              header,
1060
+              merges,
1061
+              data,
1062
+              filename
1063
+            })
1064
+        })
1065
+       }
1066
+   
1031 1067
       },
1032 1068
       formatJson(filterVal, jsonData) {
1033 1069
         return jsonData.map(v => filterVal.map(j => v[j]));

+ 2 - 0
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue Прегледај датотеку

@@ -25,6 +25,7 @@
25 25
                             <thead>
26 26
                                 <tr>
27 27
                                   <td rowspan="2" width="80">序号</td>
28
+                                  <td rowspan="2" width="80" v-if="org_id==9956">耗材编码</td>
28 29
                                   <td rowspan="2" width="80">耗材名称</td>
29 30
                                   <td rowspan="2" width="80">耗材类型</td>
30 31
                                   <td rowspan="2" width="80">规格&单位</td>
@@ -54,6 +55,7 @@
54 55
                             <tbody>
55 56
                                 <tr v-for="(item,index) in this.tableList" :key="index">
56 57
                                  <td>{{index + 1}}</td>
58
+                                 <td v-if="org_id==9956">{{item.good_number}}</td>
57 59
                                  <td>{{item.good_name}}</td>
58 60
                                  <td>{{getGoodTypeName(item.good_type_id)}}</td>
59 61
                                  <td>{{item.specification_name}}</td>

+ 8 - 10
src/xt_pages/user/components/PatientDetail.vue Прегледај датотеку

@@ -366,7 +366,7 @@
366 366
               </el-col>
367 367
 
368 368
 
369
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
369
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
370 370
                 <el-form-item
371 371
                   label="流转地: "
372 372
                 >
@@ -380,9 +380,9 @@
380 380
                  </el-select>
381 381
                 </el-form-item>
382 382
               </el-col>
383
-           
383
+            -->
384 384
 
385
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
385
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
386 386
                 <el-form-item
387 387
                   label="流转开始时间 : "
388 388
                 >
@@ -400,9 +400,9 @@
400 400
                   @change="startTimeChange"
401 401
                  ></el-date-picker>
402 402
                 </el-form-item>
403
-              </el-col>
403
+              </el-col> -->
404 404
 
405
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
405
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
406 406
                 <el-form-item
407 407
                   label="流转结束时间 : "
408 408
                 >
@@ -420,9 +420,9 @@
420 420
                   @change="startTimeChange"
421 421
                  ></el-date-picker>
422 422
                 </el-form-item>
423
-              </el-col> 
423
+              </el-col>  -->
424 424
 
425
-                <el-col :span="8" style="margin-bottom: 20px;">
425
+                <!-- <el-col :span="8" style="margin-bottom: 20px;">
426 426
                 <el-form-item
427 427
                   label="备注 : "
428 428
                   prop="sch_remark">
@@ -435,7 +435,7 @@
435 435
                     placeholder
436 436
                   ></el-input>
437 437
                 </el-form-item>
438
-              </el-col>
438
+              </el-col> -->
439 439
 
440 440
             <el-col :span="8" style="height: 59px">
441 441
               <el-form-item
@@ -1374,8 +1374,6 @@ export default {
1374 1374
       patientSourceList:[
1375 1375
         {value:1,label:"门诊"},
1376 1376
         {value:2,label:"住院"},
1377
-        {value:3,label:"请假"},
1378
-        {value:4,label:"流转"}
1379 1377
       ],
1380 1378
       generic_info_fold: true,
1381 1379
       treat_info_fold: true,

+ 10 - 12
src/xt_pages/user/components/PatientForm.vue Прегледај датотеку

@@ -394,7 +394,7 @@
394 394
                 </el-form-item>
395 395
               </el-col>
396 396
       
397
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
397
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
398 398
                 <el-form-item
399 399
                   label="患者去向 : "
400 400
                 >
@@ -408,11 +408,11 @@
408 408
                     >
409 409
                   </el-radio-group>
410 410
                 </el-form-item>
411
-              </el-col>
411
+              </el-col> -->
412 412
            
413 413
 
414 414
             
415
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
415
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
416 416
                 <el-form-item
417 417
                   label="流转地: "
418 418
                 >
@@ -425,11 +425,11 @@
425 425
                     </el-option>
426 426
                  </el-select>
427 427
                 </el-form-item>
428
-              </el-col>
428
+              </el-col> -->
429 429
            
430 430
  
431 431
              
432
-                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
432
+                <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
433 433
                 <el-form-item
434 434
                   label="流转开始时间 : "
435 435
                 >
@@ -447,9 +447,9 @@
447 447
                   @change="startTimeChange"
448 448
                  ></el-date-picker>
449 449
                 </el-form-item>
450
-              </el-col>
450
+              </el-col> -->
451 451
 
452
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
452
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
453 453
                 <el-form-item
454 454
                   label="流转结束时间 : "
455 455
                 >
@@ -467,11 +467,11 @@
467 467
                   @change="startTimeChange"
468 468
                  ></el-date-picker>
469 469
                 </el-form-item>
470
-              </el-col> 
470
+              </el-col>  -->
471 471
            
472 472
              
473 473
 
474
-              <el-col :span="8" style="margin-bottom: 20px;" :style="isEdit ? 'width:360px' : ''">
474
+              <!-- <el-col :span="8" style="margin-bottom: 20px;" :style="isEdit ? 'width:360px' : ''">
475 475
                 <el-form-item
476 476
                   label="备注 : "
477 477
                   prop="sch_remark">
@@ -483,7 +483,7 @@
483 483
                     placeholder
484 484
                   ></el-input>
485 485
                 </el-form-item>
486
-              </el-col>
486
+              </el-col> -->
487 487
 
488 488
 
489 489
               <el-col :span="24" :style="isEdit ? 'width:360px' : ''" v-show="showLapseto">
@@ -1411,8 +1411,6 @@ export default {
1411 1411
       patientSourceList:[
1412 1412
         {value:1,label:"门诊"},
1413 1413
         {value:2,label:"住院"},
1414
-        {value:3,label:"请假"},
1415
-        {value:4,label:"流转"}
1416 1414
       ],
1417 1415
       lapsetoOptions: [
1418 1416
         { value: 1, label: "留治" },

+ 128 - 32
src/xt_pages/user/patients.vue Прегледај датотеку

@@ -253,7 +253,7 @@
253 253
           </ul>
254 254
         </div>
255 255
       </div>
256
-      <div class="cell clearfix">
256
+      <!-- <div class="cell clearfix">
257 257
         <label class="title"><span class="name">患者去向</span> : </label>
258 258
         <div class="time ">
259 259
           <ul class="">
@@ -267,7 +267,7 @@
267 267
             </li>
268 268
           </ul>
269 269
         </div>
270
-      </div>
270
+      </div> -->
271 271
       <div class="cell clearfix">
272 272
         <label class="title"><span class="name">其它查询</span> : </label>
273 273
         <el-select
@@ -525,7 +525,7 @@
525 525
             </el-radio-group>
526 526
           </el-form-item>
527 527
 
528
-          <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required>
528
+          <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3"> 
529 529
             <el-date-picker
530 530
               v-model="lapsetoForm.lapseto_time"
531 531
               type="datetime"
@@ -539,6 +539,47 @@
539 539
           <el-form-item label="转出(死亡)原因:" v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3">
540 540
               <el-input v-model="lapsetoForm.out_reason"></el-input>
541 541
           </el-form-item>
542
+
543
+          <el-form-item label="开始时间:" v-if="lapsetoForm.lapseto_type != 2 && lapsetoForm.lapsetoType !=3">
544
+            <el-date-picker
545
+                  size="small"
546
+                  v-model="form.patient_start_time"
547
+                  prefix-icon="el-icon-date"
548
+                  :editable="false"
549
+                  style="width: 150px;"
550
+                  type="date"
551
+                  placeholder="选择日期时间"
552
+                  align="right"
553
+                  format="yyyy-MM-dd"
554
+                  value-format="yyyy-MM-dd"
555
+                ></el-date-picker>
556
+         </el-form-item>
557
+
558
+         <el-form-item label="结束时间:" v-if="lapsetoForm.lapseto_type != 2 && lapsetoForm.lapsetoType !=3">
559
+            <el-date-picker
560
+                  size="small"
561
+                  v-model="form.patient_end_time"
562
+                  prefix-icon="el-icon-date"
563
+                  :editable="false"
564
+                  style="width: 150px;"
565
+                  type="date"
566
+                  placeholder="选择日期时间"
567
+                  align="right"
568
+                  format="yyyy-MM-dd"
569
+                  value-format="yyyy-MM-dd"
570
+                ></el-date-picker>
571
+         </el-form-item>
572
+
573
+        <el-form-item label="转院地区:" v-if="lapsetoForm.lapseto_type == 4">
574
+          <el-select v-model="form.patient_address" placeholder="请选择">
575
+              <el-option
576
+                v-for="item in liuAddresslist"
577
+                :key="item.id"
578
+                :label="item.name"
579
+                :value="item.name">
580
+              </el-option>
581
+           </el-select>
582
+        </el-form-item>
542 583
         </el-form>
543 584
         <div slot="footer" class="dialog-footer">
544 585
           <el-button @click="LapsetoDialogVisible = false">取 消</el-button>
@@ -638,34 +679,32 @@
638 679
             :data="patientAllgicList"
639 680
             border
640 681
             style="width: 100%">
641
-            <el-table-column  prop="date" label="流转地"  width="180"  align="center">
682
+            <el-table-column  prop="date" label="序号"  width="100"  align="center">
642 683
               <template  slot-scope="scope">
643
-                 {{ scope.row.patient_address }}
644
-
684
+                {{ scope.$index + 1 }}
645 685
               </template>
646 686
             </el-table-column>
647
-            <el-table-column  prop="name" label="流转开始时间"  width="180"   align="center">
687
+            <el-table-column  prop="date" label="转归方式"  width="100"  align="center">
688
+              <template  slot-scope="scope">
689
+                 {{getPatientSource(scope.row.patient_source) }}
690
+              </template>
691
+            </el-table-column>
692
+            
693
+            <el-table-column  prop="name" label="开始时间"  width="180"   align="center">
648 694
               <template  slot-scope="scope"  >
649 695
                  {{ getTime(scope.row.start_time) }}
650
-
651 696
               </template>
652 697
             </el-table-column>
653 698
 
654
-            <el-table-column  prop="name" label="开始流转结束时间"  width="180"   align="center">
699
+            <el-table-column  prop="name" label="结束时间"  width="180"   align="center">
655 700
               <template  slot-scope="scope"  >
656 701
                 {{ getTime(scope.row.end_time) }}
657
-
658
-              </template>
659
-            </el-table-column>
660
-            <el-table-column  prop="address"  label="流转地址"   align="center">
661
-              <template  slot-scope="scope" >
662
-                {{ scope.row.patient_address }}
663 702
               </template>
664 703
             </el-table-column>
665
-
666
-            <el-table-column  prop="address"  label="备注"   align="center">
704
+            
705
+            <el-table-column  prop="date" label="转院地区"  width="180"  align="center">
667 706
               <template  slot-scope="scope">
668
-                {{ scope.row.remake }}
707
+                 {{ scope.row.patient_address }}
669 708
               </template>
670 709
             </el-table-column>
671 710
           </el-table>
@@ -689,7 +728,7 @@
689 728
   import { log } from 'util'
690 729
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
691 730
   import UploadExcel from '@/xt_pages/components/UploadExcel'
692
-
731
+  import { getDataConfig } from "@/utils/data";
693 732
   export default {
694 733
     name: 'Patient',
695 734
     components: {
@@ -738,7 +777,14 @@
738 777
         lapsetoOptions: [
739 778
           { value: 1, label: '留治' },
740 779
           { value: 2, label: '转出' },
741
-          { value: 3,  label: "死亡" },
780
+          { value: 3, label: "死亡" },
781
+          { value: 4, label: "转院" },
782
+          { value: 5, label:"肾移植"},
783
+          { value: 6, label:"转腹透"},
784
+          { value:7,  label:"出院"},
785
+          { value:8,  label:"好转"},
786
+          { value:9,  label:"放弃治疗"},
787
+          { value:10, label:"其他状态"},
742 788
         ],
743 789
         systemType: 0,
744 790
         systemArr: [
@@ -761,16 +807,20 @@
761 807
           {value:0,label:"全部",source:0,lapeseto:0},
762 808
           {value:1,label:"门诊",source:1,lapeseto:1},
763 809
           {value:2,label:"住院",source:2,lapeseto:2},
764
-          {value:3,label:"请假",source:3,lapeseto:3},
765
-          {value:4,label:"流转",source:4,lapeseto:4}
810
+         
766 811
        ],
767 812
         lapsetoArr: [
768 813
           { value: 0, label: '全部', source: 0, lapseto: 0 },
769 814
           { value: 1, label: '转出', source: 0, lapseto: 2 },
770 815
           { value: 2, label: '留治', source: 0, lapseto: 1 },
771 816
           { value: 3, label: '死亡', source:0,  lapseto: 3 },
772
-          // { value: 3, label: "门诊", source: 1, lapseto: 1 },
773
-          // { value: 4, label: "住院", source: 2, lapseto: 1 }
817
+          { value: 4, label: "转院", source: 0, lapseto: 4 },
818
+          { value: 5, label: "肾移植", source: 0, lapseto: 5 },
819
+          { value: 6, label: "转腹透", source: 0, lapseto: 6 },
820
+          { value: 7, label: "出院", source: 0, lapseto: 7 },
821
+          { value: 8, label: "好转", source: 0, lapseto: 8 },
822
+          { value: 9, label: "放弃治疗", source: 0, lapseto: 9 },
823
+          { value: 10, label: "其他状态", source: 0, lapseto: 10 },
774 824
         ],
775 825
         scheduling: [
776 826
           {
@@ -839,10 +889,17 @@
839 889
         totalOne: 0,
840 890
         page: 1,
841 891
         limit: 5,
842
-        patientAllgicList:[]
892
+        patientAllgicList:[],
893
+        liuAddresslist:[],
894
+        form:{
895
+          patient_address:"",
896
+          patient_start_time:"",
897
+          patient_end_time:"",
898
+        }
843 899
       }
844 900
     },
845 901
     created() {
902
+      this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
846 903
       if(sessionStorage.getItem('patientPageSize')){
847 904
         this.listQuery.limit = parseInt(sessionStorage.getItem('patientPageSize'))
848 905
       }
@@ -1272,10 +1329,14 @@
1272 1329
         return row.total_dialysis + row.user_sys_before_count
1273 1330
       },
1274 1331
       EditLapseto() {
1275
-        if (this.lapsetoForm.lapseto_time == '') {
1276
-          this.$message.error('请选择时间')
1277
-          return
1332
+
1333
+        if(this.lapsetoForm.lapeseto ==2 || this.lapsetoForm.lapeseto == 3 ){
1334
+          if (this.lapsetoForm.lapseto_time == '') {
1335
+            this.$message.error('请选择时间')
1336
+            return
1337
+          }
1278 1338
         }
1339
+      
1279 1340
         //  if(this.lapeseto == "留治"){
1280 1341
         //    this.lapsetoForm.lapseto_type = 1
1281 1342
         //  }
@@ -1286,7 +1347,7 @@
1286 1347
         //   this.lapsetoForm.lapseto_type = 3
1287 1348
         //  }
1288 1349
         console.log("22222",this.lapsetoForm)
1289
-        EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm).then(
1350
+        EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm,this.form.patient_start_time,this.form.patient_end_time,this.form.patient_address).then(
1290 1351
           response => {
1291 1352
             if (response.data.state === 1) {
1292 1353
               this.$notify({
@@ -1325,14 +1386,49 @@
1325 1386
       },
1326 1387
       LapsetoInfo(row) {
1327 1388
         console.log("row",row)
1328
-        if (typeof row.lapseto === 'undefined' ||(row.lapseto !== 1 && row.lapseto !== 2 && row.lapseto !==3)) {
1329
-          return '未设置'
1330
-        } else if (row.lapseto === 1) {
1389
+        if (row.lapseto === 1) {
1331 1390
           return '留治'
1332 1391
         } else if(row.lapseto === 2) {
1333 1392
           return '转出'
1334 1393
         }else if(row.lapseto === 3){
1335 1394
           return '死亡'
1395
+        }else if(row.lapseto == 4){
1396
+          return "转院"
1397
+        }else if(row.lapseto == 5){
1398
+          return "肾移植"
1399
+        }else if(row.lapseto == 6){
1400
+           return "转腹透"
1401
+        }else if(row.lapseto == 7){
1402
+           return "出院"
1403
+        }else if(row.lapseto == 8){
1404
+           return "好转"
1405
+        }else if (row.lapseto == 9){
1406
+           return "放弃治疗"
1407
+        }else if (row.lapseto == 10){
1408
+           return "其他状态"
1409
+        }
1410
+      },
1411
+      getPatientSource(val){
1412
+        if(val === 1) {
1413
+          return '留治'
1414
+        }else if(val === 2) {
1415
+          return '转出'
1416
+        }else if(val === 3){
1417
+          return '死亡'
1418
+        }else if(val == 4){
1419
+          return "转院"
1420
+        }else if(val == 5){
1421
+          return "肾移植"
1422
+        }else if(val == 6){
1423
+           return "转腹透"
1424
+        }else if(val == 7){
1425
+           return "出院"
1426
+        }else if(val== 8){
1427
+           return "好转"
1428
+        }else if (val == 9){
1429
+           return "放弃治疗"
1430
+        }else if (val == 10){
1431
+           return "其他状态"
1336 1432
         }
1337 1433
       },
1338 1434
       openWechatBindDialog() {

+ 1 - 1
src/xt_pages/workforce/components/tableWeeks.vue Прегледај датотеку

@@ -907,7 +907,7 @@
907 907
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
908 908
           })
909 909
         }
910
-        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340 && this.org_id != 0){
910
+        if(this.org_id != 9671 && this.org_id != 9675 && this.org_id != 10340 && this.org_id != 0 && this.org_id!=10375){
911 911
           var zone = this.zone
912 912
           console.log("zone23232",zone)
913 913
           var newArr = []

+ 20 - 1
src/xt_pages/workforce/next_remind_print.vue Прегледај датотеку

@@ -35,6 +35,7 @@
35 35
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
36 36
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
37 37
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
38
+                  <td width="100" >血管通路</td>
38 39
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
39 40
                 </tr>
40 41
               </thead>
@@ -94,6 +95,9 @@
94 95
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
95 96
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
96 97
                 </td>
98
+                <td :width="td_1_width">
99
+                  <span>{{getBloodName(main_collection.dialysissolution.blood_access)  }}</span>
100
+                </td>
97 101
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
98 102
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
99 103
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
@@ -110,6 +114,7 @@
110 114
 
111 115
 <script>
112 116
   import { getNextScheduleWeekDay,getPrintList } from '@/api/schedule'
117
+  import { getDataConfig } from '@/utils/data'
113 118
   import { parseTime } from '@/utils'
114 119
   import { uParseTime } from '@/utils/tools'
115 120
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
@@ -141,13 +146,18 @@
141 146
         pre_status:0,
142 147
         printObj:{},
143 148
         loading: false,
149
+        blood_access_option:[],
144 150
       }
145 151
     },
146 152
     components: {
147 153
       BreadCrumb
148 154
     },
149 155
     created() {
150
-   
156
+      
157
+      this.blood_access_option = getDataConfig(
158
+          'hemodialysis',
159
+          'vascular_access_desc'
160
+       )
151 161
       this.getPrintList()
152 162
       this.org_id = this.$store.getters.xt_user.org.id
153 163
       this.currentDate = this.getCurrentDate()
@@ -168,6 +178,15 @@
168 178
     
169 179
     },
170 180
     methods: {
181
+      getBloodName(id){
182
+         var name= ""
183
+         for(let i=0;i<this.blood_access_option.length;i++){
184
+           if(id == this.blood_access_option[i].id){
185
+              name = this.blood_access_option[i].name
186
+           }
187
+         }
188
+         return name
189
+      },
171 190
       getTimestamp(time) { //把时间日期转成时间戳
172 191
         return (new Date(time)).getTime()
173 192
       },

+ 23 - 13
src/xt_pages/workforce/remind_print.vue Прегледај датотеку

@@ -32,8 +32,9 @@
32 32
                   <td width="70" v-if="printObj.number == 1">机号</td>
33 33
                   <td width="120" v-if="printObj.mode == 1">透析模式</td>
34 34
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
35
-                  <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
35
+                  <td width="100" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
36 36
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
37
+                  <td width="200">血管通路</td>
37 38
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
38 39
                 </tr>
39 40
               </thead>
@@ -63,18 +64,7 @@
63 64
                 </td>
64 65
 
65 66
                 <td :width="td_1_width" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus ==1">
66
-                  <!-- <span v-if="org_id!=9987">
67
-                     <span > 
68
-                       <span v-if="org_id!=10131 && org_id!=10215 && org_id!=10233 && main_collection.prescription.dialyzer_perfusion_apparatus!=''">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
69
-                     
70
-                       <span v-if="org_id==10131 || org_id==9671 || org_id == 10215 || org_id == 10233">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
71
-                      </span>
72
-                     <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span> 
73
-                  </span>
74
-                    {{main_collection.prescription.dialysis_dialyszers}}
75
-                  <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
76
-                  <span v-if="main_collection.prescription.dialysis_irrigation!=''">{{main_collection.prescription.dialysis_irrigation}}</span> -->
77
-                  
67
+                 
78 68
                   <span v-if="main_collection.prescription.dialysis_dialyszers == ''">{{main_collection.dialysissolution.dialysis_dialyszers}}</span>
79 69
                   <span v-if="main_collection.prescription.dialysis_dialyszers != ''">{{main_collection.prescription.dialysis_dialyszers}}</span>
80 70
 
@@ -104,6 +94,9 @@
104 94
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
105 95
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
106 96
                 </td>
97
+                <td :width="td_1_width">
98
+                   <span>{{getBloodName(main_collection.prescription.blood_access)  }}</span>
99
+                </td>
107 100
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
108 101
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
109 102
                    <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{ getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
@@ -120,6 +113,7 @@
120 113
 
121 114
 <script>
122 115
   import { getScheduleList,getPrintList } from '@/api/schedule'
116
+  import { getDataConfig } from '@/utils/data'
123 117
   import { parseTime } from '@/utils'
124 118
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
125 119
   import print from 'print-js'
@@ -146,6 +140,7 @@
146 140
         printObj:{},
147 141
         week_time:0,
148 142
         zone:0,
143
+        blood_access_option:[]
149 144
       }
150 145
     },
151 146
     components: {
@@ -154,6 +149,12 @@
154 149
     created() {
155 150
       this.getPrintList()
156 151
       this.org_id = this.$store.getters.xt_user.org.id
152
+
153
+      this.blood_access_option = getDataConfig(
154
+          'hemodialysis',
155
+          'vascular_access_desc'
156
+       )
157
+      
157 158
      //console.log("org_id23322323",this.org_id)
158 159
     //  this.currentDate = this.getCurrentDate()
159 160
       this.modeOptions = this.$store.getters.treatment_mode
@@ -414,6 +415,15 @@
414 415
         console.log('name', name)
415 416
         return name
416 417
       },
418
+      getBloodName(id){
419
+         var name= ""
420
+         for(let i=0;i<this.blood_access_option.length;i++){
421
+           if(id == this.blood_access_option[i].id){
422
+              name = this.blood_access_option[i].name
423
+           }
424
+         }
425
+         return name
426
+      }
417 427
     },
418 428
   }
419 429
 </script>

+ 90 - 17
src/xt_pages/workforce/remind_print_setting_one.vue Прегледај датотеку

@@ -42,17 +42,14 @@
42 42
                     <span>{{getModeId(main_collection.mode_id)}}</span>
43 43
                   
44 44
                 </div>
45
-                <div class="printCell">
46
-                  <span v-if="org_id!=0&&org_id!=10375">抗凝剂:
47
-                    {{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}
48
-                  </span>
49
-                  <span v-if="org_id==0||org_id==10375">抗凝剂:
50
-                    {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}
51
-                  </span>
45
+                <div class="printCell" v-if="org_id!=10375">
46
+                  <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
52 47
                 </div>
53
-                <div class="printCell">
54
-                 <span v-if="org_id !=0&&org_id!=10375">首剂:
55
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
48
+                <div class="printCell" v-if="org_id==10375">
49
+                  <span>抗凝剂:{{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}</span>
50
+                </div>
51
+                <div class="printCell" v-if="org_id!=10375">
52
+                 首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
56 53
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
57 54
                     {{main_collection.dialysissolution.anticoagulant_shouji}}mg
58 55
                   </span>
@@ -83,10 +80,10 @@
83 80
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
84 81
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
85 82
                    </span>
86
-                  </span> 
87
-
88
-                  <span v-if="org_id ==0||org_id==10375">首剂:
89
-                  <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_shouji}} mg</span>
83
+                 
84
+                </div>
85
+                <div class="printCell" v-if="org_id ==10375">
86
+                 首剂:<span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_shouji}} mg</span>
90 87
                   <span v-if="main_collection.prescription.anticoagulant == 2">
91 88
                     {{main_collection.prescription.anticoagulant_shouji}}mg
92 89
                   </span>
@@ -117,9 +114,9 @@
117 114
                   <span v-if="main_collection.prescription.anticoagulant == 11">
118 115
                     {{main_collection.prescription.anticoagulant_shouji}}iu
119 116
                    </span>
120
-                  </span> 
117
+                 
121 118
                 </div>
122
-                <div class="printCell">
119
+                <div class="printCell" v-if="org_id!=10375">
123 120
                   维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
124 121
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
125 122
                     mg/h
@@ -156,8 +153,46 @@
156 153
                    </span>
157 154
               
158 155
                 </div>
156
+
157
+                <div class="printCell" v-if="org_id!=10375">
158
+                  维持:{{main_collection.prescription.anticoagulant_weichi}}
159
+                   <span v-if="main_collection.prescription.anticoagulant == 1">
160
+                    mg/h
161
+                  </span>
162
+                  <span v-if="main_collection.prescription.anticoagulant == 2">
163
+                    mg/h
164
+                  </span>
165
+                  <span v-if="main_collection.prescription.anticoagulant == 3">
166
+                   iu/h
167
+                  </span>
168
+                  <span v-if="main_collection.prescription.anticoagulant == 4">
169
+                    mg/h
170
+                  </span>
171
+                  <span v-if="main_collection.prescription.anticoagulant == 5">
172
+                    mg/h
173
+                   </span>
174
+                  <span v-if="main_collection.prescription.anticoagulant == 6">
175
+                   iu/h
176
+                  </span>
177
+                  <span v-if="main_collection.prescription.anticoagulant == 7">
178
+                   iu/h
179
+                   </span>
180
+                  <span v-if="main_collection.prescription.anticoagulant == 8">
181
+                    iu/h
182
+                  </span>
183
+                  <span v-if="main_collection.prescription.anticoagulant == 9">
184
+                    iu/h
185
+                  </span>
186
+                  <span v-if="main_collection.prescription.anticoagulant == 10">
187
+                    iu/h
188
+                    </span>
189
+                  <span v-if="main_collection.prescription.anticoagulant == 11">
190
+                    iu/h
191
+                   </span>
192
+              
193
+                </div>
159 194
                
160
-                <div class="printCell">
195
+                <div class="printCell" v-if="org_id!=10375">
161 196
                   总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
162 197
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
163 198
                     mg
@@ -193,6 +228,44 @@
193 228
                    iu
194 229
                    </span>
195 230
           
231
+                </div>
232
+
233
+                <div class="printCell" v-if="org_id==10375">
234
+                  总量:{{main_collection.prescription.anticoagulant_zongliang}}
235
+                  <span v-if="main_collection.prescription.anticoagulant == 1">
236
+                    mg
237
+                  </span>
238
+                  <span v-if="main_collection.prescription.anticoagulant == 2">
239
+                    mg
240
+                  </span>
241
+                  <span v-if="main_collection.prescription.anticoagulant == 3">
242
+                    iu
243
+                  </span>
244
+                  <span v-if="main_collection.prescription.anticoagulant == 4">
245
+                   mg
246
+                  </span>
247
+                  <span v-if="main_collection.prescription.anticoagulant == 5">
248
+                    mg
249
+                   </span>
250
+                  <span v-if="main_collection.prescription.anticoagulant == 6">
251
+                   iu
252
+                  </span>
253
+                  <span v-if="main_collection.prescription.anticoagulant == 7">
254
+                    iu
255
+                   </span>
256
+                  <span v-if="main_collection.prescription.anticoagulant == 8">
257
+                     iu
258
+                  </span>
259
+                  <span v-if="main_collection.prescription.anticoagulant == 9">
260
+                   iu
261
+                  </span>
262
+                  <span v-if="main_collection.prescription.anticoagulant == 10">
263
+                    iu
264
+                    </span>
265
+                  <span v-if="main_collection.prescription.anticoagulant == 11">
266
+                   iu
267
+                   </span>
268
+          
196 269
                 </div>
197 270
                 <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
198 271
                     <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>