Parcourir la source

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

csx il y a 2 ans
Parent
révision
0578229858
33 fichiers modifiés avec 8577 ajouts et 672 suppressions
  1. 79 37
      package-lock.json
  2. 8 7
      src/lang/en.js
  3. 1 0
      src/lang/zh.js
  4. 6 0
      src/router/modules/stock.js
  5. 3 3
      src/views/layout/Layout.vue
  6. 1 1
      src/views/layout/components/Sidebar/index.vue
  7. 29 7
      src/xt_pages/Pharmacy/DispensingDetails.vue
  8. 197 252
      src/xt_pages/Pharmacy/DrugDispensing.vue
  9. 283 225
      src/xt_pages/Pharmacy/PatientDispensing.vue
  10. 11 1
      src/xt_pages/Pharmacy/print/drugPrint.vue
  11. 75 72
      src/xt_pages/Pharmacy/print/patientPrint.vue
  12. 1 1
      src/xt_pages/data/components/addDrugs.vue
  13. 1 1
      src/xt_pages/data/components/drugs.vue
  14. 14 1
      src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue
  15. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  16. 2 2
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  17. 16 0
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  18. 8 8
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  19. 36 31
      src/xt_pages/dialysis/details/index.vue
  20. 3 5
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  21. 1 1
      src/xt_pages/dialysis/dialysisPage.vue
  22. 65 5
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  23. 3791 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftySix.vue
  24. 3 3
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  25. 3598 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyfive.vue
  26. 1 6
      src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue
  27. 1 1
      src/xt_pages/outpatientCharges/statementPrint.vue
  28. 1 1
      src/xt_pages/outpatientCharges/summary.vue
  29. 7 0
      src/xt_pages/stock/query/expiryDateQuery.vue
  30. 185 0
      src/xt_pages/stock/query/goodNewQuery.vue
  31. 7 0
      src/xt_pages/stock/query/patientQuery.vue
  32. 7 0
      src/xt_pages/stock/query/purchaseStockQuery.vue
  33. 135 0
      src/xt_pages/stock/stockNewQuery.vue

+ 79 - 37
package-lock.json Voir le fichier

@@ -621,7 +621,7 @@
621 621
     "assert-plus": {
622 622
       "version": "1.0.0",
623 623
       "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
624
-      "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw=="
624
+      "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
625 625
     },
626 626
     "assign-symbols": {
627 627
       "version": "1.0.0",
@@ -647,7 +647,7 @@
647 647
     "async-foreach": {
648 648
       "version": "0.1.3",
649 649
       "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz",
650
-      "integrity": "sha512-VUeSMD8nEGBWaZK4lizI1sf3yEC7pnAQ/mrI7pC2fBz2s/tq5jWWEngTwaf0Gruu/OoXRGLGg1XFqpYBiGTYJA=="
650
+      "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI="
651 651
     },
652 652
     "async-limiter": {
653 653
       "version": "1.0.0",
@@ -666,7 +666,7 @@
666 666
     "asynckit": {
667 667
       "version": "0.4.0",
668 668
       "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
669
-      "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
669
+      "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
670 670
     },
671 671
     "atob": {
672 672
       "version": "2.1.2",
@@ -691,7 +691,7 @@
691 691
     "aws-sign2": {
692 692
       "version": "0.7.0",
693 693
       "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
694
-      "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA=="
694
+      "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
695 695
     },
696 696
     "aws4": {
697 697
       "version": "1.11.0",
@@ -1677,7 +1677,7 @@
1677 1677
     "bcrypt-pbkdf": {
1678 1678
       "version": "1.0.2",
1679 1679
       "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
1680
-      "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==",
1680
+      "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
1681 1681
       "requires": {
1682 1682
         "tweetnacl": "^0.14.3"
1683 1683
       }
@@ -2100,7 +2100,7 @@
2100 2100
     "caseless": {
2101 2101
       "version": "0.12.0",
2102 2102
       "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
2103
-      "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw=="
2103
+      "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
2104 2104
     },
2105 2105
     "center-align": {
2106 2106
       "version": "0.1.3",
@@ -2461,7 +2461,7 @@
2461 2461
     },
2462 2462
     "codepage": {
2463 2463
       "version": "1.12.2",
2464
-      "resolved": "https://registry.npmmirror.com/codepage/-/codepage-1.12.2.tgz",
2464
+      "resolved": "https://registry.npmjs.org/codepage/-/codepage-1.12.2.tgz",
2465 2465
       "integrity": "sha512-FAN+oPs/ocaPLFvIt4vEOHgWA6UJ6t+fVbbVBoXDpTpC+4JYasomYZEEjR/Miph3qQrVnIShRwwmwu4P35JW1w==",
2466 2466
       "requires": {
2467 2467
         "commander": "~2.14.1",
@@ -2470,7 +2470,7 @@
2470 2470
       "dependencies": {
2471 2471
         "commander": {
2472 2472
           "version": "2.14.1",
2473
-          "resolved": "https://registry.npmmirror.com/commander/-/commander-2.14.1.tgz",
2473
+          "resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz",
2474 2474
           "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw=="
2475 2475
         }
2476 2476
       }
@@ -2699,7 +2699,7 @@
2699 2699
     "console-control-strings": {
2700 2700
       "version": "1.1.0",
2701 2701
       "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
2702
-      "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
2702
+      "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
2703 2703
     },
2704 2704
     "consolidate": {
2705 2705
       "version": "0.14.5",
@@ -2890,13 +2890,55 @@
2890 2890
       }
2891 2891
     },
2892 2892
     "cross-env": {
2893
-      "version": "5.1.1",
2894
-      "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.1.1.tgz",
2895
-      "integrity": "sha512-Wtvr+z0Z06KO1JxjfRRsPC+df7biIOiuV4iZ73cThjFGkH+ULBZq1MkBdywEcJC4cTDbO6c8IjgRjfswx3YTBA==",
2893
+      "version": "7.0.3",
2894
+      "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
2895
+      "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
2896 2896
       "dev": true,
2897 2897
       "requires": {
2898
-        "cross-spawn": "^5.1.0",
2899
-        "is-windows": "^1.0.0"
2898
+        "cross-spawn": "^7.0.1"
2899
+      },
2900
+      "dependencies": {
2901
+        "cross-spawn": {
2902
+          "version": "7.0.3",
2903
+          "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
2904
+          "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
2905
+          "dev": true,
2906
+          "requires": {
2907
+            "path-key": "^3.1.0",
2908
+            "shebang-command": "^2.0.0",
2909
+            "which": "^2.0.1"
2910
+          }
2911
+        },
2912
+        "path-key": {
2913
+          "version": "3.1.1",
2914
+          "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
2915
+          "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
2916
+          "dev": true
2917
+        },
2918
+        "shebang-command": {
2919
+          "version": "2.0.0",
2920
+          "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
2921
+          "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
2922
+          "dev": true,
2923
+          "requires": {
2924
+            "shebang-regex": "^3.0.0"
2925
+          }
2926
+        },
2927
+        "shebang-regex": {
2928
+          "version": "3.0.0",
2929
+          "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
2930
+          "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
2931
+          "dev": true
2932
+        },
2933
+        "which": {
2934
+          "version": "2.0.2",
2935
+          "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
2936
+          "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
2937
+          "dev": true,
2938
+          "requires": {
2939
+            "isexe": "^2.0.0"
2940
+          }
2941
+        }
2900 2942
       }
2901 2943
     },
2902 2944
     "cross-spawn": {
@@ -3291,7 +3333,7 @@
3291 3333
     "dashdash": {
3292 3334
       "version": "1.14.1",
3293 3335
       "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
3294
-      "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==",
3336
+      "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
3295 3337
       "requires": {
3296 3338
         "assert-plus": "^1.0.0"
3297 3339
       }
@@ -3466,7 +3508,7 @@
3466 3508
     "delayed-stream": {
3467 3509
       "version": "1.0.0",
3468 3510
       "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
3469
-      "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
3511
+      "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
3470 3512
     },
3471 3513
     "delegate": {
3472 3514
       "version": "3.2.0",
@@ -3476,7 +3518,7 @@
3476 3518
     "delegates": {
3477 3519
       "version": "1.0.0",
3478 3520
       "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
3479
-      "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
3521
+      "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
3480 3522
     },
3481 3523
     "depd": {
3482 3524
       "version": "1.1.2",
@@ -3654,7 +3696,7 @@
3654 3696
     "ecc-jsbn": {
3655 3697
       "version": "0.1.2",
3656 3698
       "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
3657
-      "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==",
3699
+      "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
3658 3700
       "requires": {
3659 3701
         "jsbn": "~0.1.0",
3660 3702
         "safer-buffer": "^2.1.0"
@@ -4249,7 +4291,7 @@
4249 4291
     },
4250 4292
     "exit-on-epipe": {
4251 4293
       "version": "1.0.1",
4252
-      "resolved": "https://registry.npmmirror.com/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz",
4294
+      "resolved": "https://registry.npmjs.org/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz",
4253 4295
       "integrity": "sha512-h2z5mrROTxce56S+pnvAV890uu7ls7f1kEvVGJbw1OlFH3/mlJ5bkXu0KRyW94v37zzHPiUd55iLn3DA7TjWpw=="
4254 4296
     },
4255 4297
     "expand-brackets": {
@@ -4546,7 +4588,7 @@
4546 4588
     "extsprintf": {
4547 4589
       "version": "1.3.0",
4548 4590
       "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
4549
-      "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g=="
4591
+      "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
4550 4592
     },
4551 4593
     "fast-deep-equal": {
4552 4594
       "version": "2.0.1",
@@ -4793,7 +4835,7 @@
4793 4835
     "forever-agent": {
4794 4836
       "version": "0.6.1",
4795 4837
       "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
4796
-      "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw=="
4838
+      "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
4797 4839
     },
4798 4840
     "form-data": {
4799 4841
       "version": "2.3.3",
@@ -4832,7 +4874,7 @@
4832 4874
     },
4833 4875
     "frac": {
4834 4876
       "version": "1.1.2",
4835
-      "resolved": "https://registry.npmmirror.com/frac/-/frac-1.1.2.tgz",
4877
+      "resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz",
4836 4878
       "integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA=="
4837 4879
     },
4838 4880
     "fragment-cache": {
@@ -5642,7 +5684,7 @@
5642 5684
     "getpass": {
5643 5685
       "version": "0.1.7",
5644 5686
       "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
5645
-      "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==",
5687
+      "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
5646 5688
       "requires": {
5647 5689
         "assert-plus": "^1.0.0"
5648 5690
       }
@@ -5792,7 +5834,7 @@
5792 5834
     "har-schema": {
5793 5835
       "version": "2.0.0",
5794 5836
       "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
5795
-      "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q=="
5837
+      "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
5796 5838
     },
5797 5839
     "har-validator": {
5798 5840
       "version": "5.1.5",
@@ -5871,7 +5913,7 @@
5871 5913
     "has-unicode": {
5872 5914
       "version": "2.0.1",
5873 5915
       "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
5874
-      "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
5916
+      "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
5875 5917
     },
5876 5918
     "has-value": {
5877 5919
       "version": "1.0.0",
@@ -6316,7 +6358,7 @@
6316 6358
     "http-signature": {
6317 6359
       "version": "1.2.0",
6318 6360
       "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
6319
-      "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==",
6361
+      "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
6320 6362
       "requires": {
6321 6363
         "assert-plus": "^1.0.0",
6322 6364
         "jsprim": "^1.2.2",
@@ -6869,7 +6911,7 @@
6869 6911
     "is-typedarray": {
6870 6912
       "version": "1.0.0",
6871 6913
       "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
6872
-      "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA=="
6914
+      "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
6873 6915
     },
6874 6916
     "is-utf8": {
6875 6917
       "version": "0.2.1",
@@ -6908,7 +6950,7 @@
6908 6950
     "isstream": {
6909 6951
       "version": "0.1.2",
6910 6952
       "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
6911
-      "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g=="
6953
+      "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
6912 6954
     },
6913 6955
     "jest-get-type": {
6914 6956
       "version": "22.4.3",
@@ -6962,7 +7004,7 @@
6962 7004
     "jsbn": {
6963 7005
       "version": "0.1.1",
6964 7006
       "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
6965
-      "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg=="
7007
+      "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
6966 7008
     },
6967 7009
     "jsesc": {
6968 7010
       "version": "1.3.0",
@@ -7006,7 +7048,7 @@
7006 7048
     "json-stringify-safe": {
7007 7049
       "version": "5.0.1",
7008 7050
       "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
7009
-      "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="
7051
+      "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
7010 7052
     },
7011 7053
     "json3": {
7012 7054
       "version": "3.3.2",
@@ -9414,7 +9456,7 @@
9414 9456
     "performance-now": {
9415 9457
       "version": "2.1.0",
9416 9458
       "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
9417
-      "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow=="
9459
+      "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
9418 9460
     },
9419 9461
     "pify": {
9420 9462
       "version": "3.0.0",
@@ -12143,7 +12185,7 @@
12143 12185
     },
12144 12186
     "printj": {
12145 12187
       "version": "1.1.2",
12146
-      "resolved": "https://registry.npmmirror.com/printj/-/printj-1.1.2.tgz",
12188
+      "resolved": "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz",
12147 12189
       "integrity": "sha512-zA2SmoLaxZyArQTOPj5LXecR+RagfPSU5Kw1qP+jkWeNlrq+eJZyY2oS68SU1Z/7/myXM4lo9716laOFAVStCQ=="
12148 12190
     },
12149 12191
     "private": {
@@ -14702,7 +14744,7 @@
14702 14744
     "tunnel-agent": {
14703 14745
       "version": "0.6.0",
14704 14746
       "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
14705
-      "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
14747
+      "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
14706 14748
       "requires": {
14707 14749
         "safe-buffer": "^5.0.1"
14708 14750
       }
@@ -14710,7 +14752,7 @@
14710 14752
     "tweetnacl": {
14711 14753
       "version": "0.14.5",
14712 14754
       "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
14713
-      "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA=="
14755
+      "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
14714 14756
     },
14715 14757
     "type-check": {
14716 14758
       "version": "0.3.2",
@@ -15083,7 +15125,7 @@
15083 15125
     "verror": {
15084 15126
       "version": "1.10.0",
15085 15127
       "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
15086
-      "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==",
15128
+      "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
15087 15129
       "requires": {
15088 15130
         "assert-plus": "^1.0.0",
15089 15131
         "core-util-is": "1.0.2",
@@ -16088,7 +16130,7 @@
16088 16130
     },
16089 16131
     "xlsx": {
16090 16132
       "version": "0.11.19",
16091
-      "resolved": "https://registry.npmmirror.com/xlsx/-/xlsx-0.11.19.tgz",
16133
+      "resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.11.19.tgz",
16092 16134
       "integrity": "sha512-UTfD64o5Ka/E6QHL12fzcq5wnt9MCtuwgoUdYSTDxjjDkhNmZwSfPlJH/+Yh8vE6nU/0ax3MXNrc9AP4haAmIg==",
16093 16135
       "requires": {
16094 16136
         "adler-32": "~1.2.0",
@@ -16102,7 +16144,7 @@
16102 16144
       "dependencies": {
16103 16145
         "commander": {
16104 16146
           "version": "2.13.0",
16105
-          "resolved": "https://registry.npmmirror.com/commander/-/commander-2.13.0.tgz",
16147
+          "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz",
16106 16148
           "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA=="
16107 16149
         }
16108 16150
       }

+ 8 - 7
src/lang/en.js Voir le fichier

@@ -87,7 +87,7 @@ export default {
87 87
     data_dictionary: 'data_dictionary',
88 88
     field_config: 'field_config',
89 89
     template: 'Template',
90
-    DepositManagement:'Deposit Management',
90
+    DepositManagement: 'Deposit Management',
91 91
     workforce: 'workforce',
92 92
     appointment: 'appointment',
93 93
     sign: 'sign',
@@ -96,19 +96,20 @@ export default {
96 96
     deviceZoneManage: 'Device Zone Manage',
97 97
     deviceGroupManage: 'Device Group Manage',
98 98
     stockManage: 'Stock Manage',
99
-    wareHouseManage:'Ware House Manage',
100
-    inventoryTransfer:'inventoryTransfer',
101
-    DrugDispensing:'DrugDispensing',
102
-    DispensingDetails:'DispensingDetails',
99
+    wareHouseManage: 'Ware House Manage',
100
+    inventoryTransfer: 'inventoryTransfer',
101
+    DrugDispensing: 'DrugDispensing',
102
+    DispensingDetails: 'DispensingDetails',
103 103
     // ConsumablesManagement:'ConsumablesManagement',
104
-    MedicianManagement:'MedicianManagement',
105
-    patiantDispensing:'patiantDispensing',
104
+    MedicianManagement: 'MedicianManagement',
105
+    patiantDispensing: 'patiantDispensing',
106 106
     supplyManage: 'Supply Manage',
107 107
     supplyQuery: 'supply query',
108 108
     baseInfo: 'base Info',
109 109
     stockIn: 'stock in',
110 110
     stockOut: 'stock out',
111 111
     stockQuery: 'stock query',
112
+    stockNewQuery: 'stock new query',
112 113
     manufacturer: 'manufacturer',
113 114
     dealer: 'dealer',
114 115
     AddStockIn: 'Add Stock In',

+ 1 - 0
src/lang/zh.js Voir le fichier

@@ -137,6 +137,7 @@ export default {
137 137
     stockOutRecord: '出库记录',
138 138
     addStockIn: '入库',
139 139
     stockQuery: '库存查询',
140
+    stockNewQuery: '库存查询',
140 141
     supplyQuery: '供应商管理',
141 142
     purchaseOrderQuery: '采购订单',
142 143
     goodOrderQuery: '采购单',

+ 6 - 0
src/router/modules/stock.js Voir le fichier

@@ -18,6 +18,12 @@ export default {
18 18
       name: 'stockQuery',
19 19
       meta: { title: 'stockQuery', noCache: true }
20 20
     },
21
+    {
22
+      path: '/stock/new/query',
23
+      component: () => import('@/xt_pages/stock/stockNewQuery'),
24
+      name: 'stockNewQuery',
25
+      meta: { title: 'stockNewQuery', noCache: true }
26
+    },
21 27
     {
22 28
       path: '/stock/in',
23 29
       component: () => import('@/xt_pages/stock/stockInOrder'),

+ 3 - 3
src/views/layout/Layout.vue Voir le fichier

@@ -12,10 +12,10 @@
12 12
           <i class="iconfont icon-s_bingli navIcon"></i>
13 13
           <p>电子病历</p>
14 14
         </div>
15
-        <div v-if="medicianshow" :class="index == 7 ? 'navOne navActive' : 'navOne'" @click="clickActive(7,'药房管理')">
15
+        <!-- <div v-if="medicianshow" :class="index == 7 ? 'navOne navActive' : 'navOne'" @click="clickActive(7,'药房管理')">
16 16
           <i class="iconfont icon-shangcheng-1 navIcon"></i>
17 17
           <p>药房管理</p>
18
-        </div>
18
+        </div> -->
19 19
         <div v-if="touxiShow" :class="index == 2 ? 'navOne navActive' : 'navOne'" @click="clickActive(2,'透析管理')">
20 20
           <i class="iconfont icon-computer_fill navIcon"></i>
21 21
           <p>透析管理</p>
@@ -139,7 +139,7 @@ export default {
139 139
     let caigou = ['supplyManage','supplyList'];
140 140
     let peizhi = ['system','roleManage','DepartManage', 'bedManagement', 'dictionaryManagement', 'templateManagement','showconfig','printTemplate','integration_config','basicConfig'];
141 141
     let kuyishopping = ['kuyiShopping'];
142
-    let medician = ['PatientDispensing','DrugDispensing','DispensingDetails','MedicianManagement']
142
+    let medician = ['PatientDispensing','DrugDispensing','DispensingDetails','stockDrugs']
143 143
     let menzhenArr = [];
144 144
     let bingliArr = [];
145 145
     let touxiArr = [];

+ 1 - 1
src/views/layout/components/Sidebar/index.vue Voir le fichier

@@ -103,7 +103,7 @@ export default {
103 103
             this.$emit('func',a)
104 104
           }
105 105
         }else if(newVal == '药房管理'){
106
-          let nameArr = ['PatientDispensing','DrugDispensing','DispensingDetails','MedicianManagement']
106
+          let nameArr = ['PatientDispensing','DrugDispensing','DispensingDetails','stockDrugs']
107 107
           // console.log('permission_routers',this.permission_routers)
108 108
           let routerArr = [];
109 109
           this.permission_routers.map(item => {

+ 29 - 7
src/xt_pages/Pharmacy/DispensingDetails.vue Voir le fichier

@@ -15,7 +15,7 @@
15 15
         <div>
16 16
           <el-input
17 17
             size="small"
18
-            style="width: 200px; margin-left: 10px"
18
+            style="width: 200px;margin-right: 20px;"
19 19
             class="filter-item"
20 20
             v-model="keyword"
21 21
             placeholder="请输入患者姓名"
@@ -54,6 +54,7 @@
54 54
             class="filter-item"
55 55
             type="primary"
56 56
             icon="el-icon-search"
57
+            style="margin-left: 20px;"
57 58
             @click="query"
58 59
             >查询</el-button
59 60
           >
@@ -65,30 +66,30 @@
65 66
           backgroundColor: 'rgb(245, 247, 250)',
66 67
           color: '#606266',
67 68
         }"
68
-        style="width: 1651px"
69
+        style="width: 100%"
69 70
         :data="tableList"
70 71
         :class="signAndWeighBoxPatients"
71 72
         border
72 73
       >
73
-        <el-table-column type="index" label="序号" align="center" width="250">
74
+        <el-table-column type="index" label="序号" align="center" width="100">
74 75
         </el-table-column>
75
-        <el-table-column label="患者名称" align="center" width="300">
76
+        <el-table-column label="患者名称" align="center">
76 77
           <template slot-scope="scope">
77 78
             <span>{{scope.row.Name  ? scope.row.Name  : ""}}</span>
78 79
           </template>
79 80
         </el-table-column>
80 81
 
81
-        <el-table-column label="开立医生" align="center" width="300">
82
+        <el-table-column label="开立医生" align="center">
82 83
           <template slot-scope="scope">
83 84
             <span>{{scope.row.DoctorName  ? scope.row.DoctorName  : ""}}</span>
84 85
           </template>
85 86
         </el-table-column>
86
-        <el-table-column label="发药时间" align="center" width="400">
87
+        <el-table-column label="发药时间" align="center">
87 88
           <template slot-scope="scope">
88 89
             <span>{{scope.row.RecordDate  ? scope.row.RecordDate  : ""}}</span>
89 90
           </template>
90 91
         </el-table-column>
91
-        <el-table-column label="操作" align="center" width="400">
92
+        <el-table-column label="操作" align="center">
92 93
           <template slot-scope="scope">
93 94
             <el-button type="primary" @click="views(scope.row)">查看</el-button>
94 95
           </template>
@@ -211,4 +212,25 @@ export default {
211 212
 </script>
212 213
 
213 214
 <style rel="stylesheet/css" lang="scss" scoped>
215
+
216
+/deep/ .el-table--scrollable-x .el-table__body-wrapper {
217
+  overflow: auto;
218
+}
219
+/deep/ .gutter {
220
+  width: 15px !important;
221
+  display: inline-block !important;
222
+}
223
+/deep/ .el-table__fixed-right-patch {
224
+  width: 15px !important;
225
+}
226
+
227
+/deep/ .el-table__fixed-right {
228
+  bottom: 0 !important;
229
+  left: auto;
230
+  right: 0;
231
+}
232
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
233
+  width: 15px !important;
234
+  height: 15px !important;
235
+}
214 236
 </style>

+ 197 - 252
src/xt_pages/Pharmacy/DrugDispensing.vue Voir le fichier

@@ -18,13 +18,13 @@
18 18
               format="yyyy-MM-dd"
19 19
               value-format="yyyy-MM-dd"
20 20
               placeholder="选择日期"
21
-              @change="changeTimes()"
21
+              :change="testsss()"
22 22
             >
23 23
             </el-date-picker>
24 24
           </div>
25 25
 
26 26
           <div class="list">
27
-            <el-radio-group v-model="state" @change="lala()">
27
+            <el-radio-group v-model="state">
28 28
               <el-radio :label="1">待发药</el-radio>
29 29
               <el-radio :label="2">已发药</el-radio>
30 30
             </el-radio-group>
@@ -46,28 +46,29 @@
46 46
             </el-button>
47 47
           </div>
48 48
 
49
-          <el-table v-if="state == 1"
49
+          <el-table
50
+            v-if="state == 1"
50 51
             :height="tableHeight"
51
-            :data="waiting_drug"
52
+            :data="tableData"
52 53
             border
53 54
             style="width: 100%"
54 55
             highlight-current-row
55
-            ref="table01"
56
+            ref="singleTable"
56 57
             @current-change="handleCurrentChange"
57 58
           >
58 59
             <el-table-column prop="name" label="名称" width="100">
59 60
                <template slot-scope="scope">
60
-                {{scope.row.name}}
61
+                {{scope.row.drug_name}}
61 62
               </template>
62 63
             </el-table-column>
63 64
             <el-table-column prop="specifications" label="规格" width="100">
64 65
               <template slot-scope="scope">
65
-                {{scope.row.specifications}}
66
+                {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
66 67
               </template>
67 68
             </el-table-column>
68 69
             <el-table-column prop="stock" label="库存" width="100">
69 70
                <template slot-scope="scope">
70
-                {{scope.row.stock}}
71
+                {{getWarehoseInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
71 72
               </template>
72 73
             </el-table-column>
73 74
           </el-table>
@@ -75,26 +76,26 @@
75 76
           <el-table
76 77
             v-if="state == 2"
77 78
             :height="tableHeight"
78
-            :data="issued_drug"
79
+            :data="tableData"
79 80
             border
80 81
             style="width: 100%"
81 82
             highlight-current-row
82
-            @current-change="handleCurrentChange"
83
-            ref="table02"
83
+            @current-change="handleSelectionChangeOne"
84
+            ref="singleTable"
84 85
           >
85 86
             <el-table-column prop="name" label="名称" width="100">
86 87
                <template slot-scope="scope">
87
-                {{scope.row.name}}
88
+                {{scope.row.drug_name}}
88 89
               </template>
89 90
             </el-table-column>
90 91
             <el-table-column prop="specifications" label="规格" width="100">
91 92
               <template slot-scope="scope">
92
-                {{scope.row.specifications}}
93
+                {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
93 94
               </template>
94 95
             </el-table-column>
95 96
             <el-table-column prop="stock" label="库存" width="100">
96 97
                <template slot-scope="scope">
97
-                {{scope.row.stock}}
98
+                {{getWarehoseInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
98 99
               </template>
99 100
             </el-table-column>
100 101
           </el-table>
@@ -102,116 +103,121 @@
102 103
       </div>
103 104
       <div class="mainRight">
104 105
         <div class="titlelist">
105
-<!--          <el-button type="primary" @click="tt">调试</el-button>-->
106 106
           <el-button type="primary" @click="dispense" v-if="state == 1">发药</el-button>
107 107
           <el-button type="primary" @click="toPrint">打印</el-button>
108
-<!--          <el-button @click="tt">调试</el-button>-->
109
-<!--          <el-button type="primary" @click="toSetting">设置</el-button>-->
108
+          <el-button type="primary" @click="toSetting">设置</el-button>
110 109
         </div>
111 110
         <el-divider></el-divider>
112 111
         <div>
113 112
           <el-table
114 113
             :height="tableHeight"
115
-            :data="tableData"
114
+            :data="tableData_list"
116 115
             border
117 116
             style="width: 1328px"
118 117
             @selection-change="handleSelectionChange"
119 118
              v-if="state == 1"
120 119
           >
121
-            <el-table-column type="selection" width="55"> </el-table-column>
120
+            >
121
+            <el-table-column type="selection" width="55" align="center"> </el-table-column>
122 122
             <el-table-column type="index" label="序号" width="120" align="center">
123
+              <template slot-scope="scope">
124
+                {{scope.$index + 1}}
125
+              </template>
123 126
             </el-table-column>
124 127
             <el-table-column prop="name" label="患者名称" width="180" align="center">
125 128
                 <template slot-scope="scope">
126
-                 {{scope.row.name}}
129
+                 {{getPatientName(scope.row.patient_id)}}
127 130
               </template>
128 131
             </el-table-column>
129 132
             <el-table-column prop="name" label="单次用量" width="170" align="center">
130 133
                <template  slot-scope="scope">
131
-                 {{scope.row.single_dosage}}
134
+                 {{scope.row.single_dose}}
132 135
                </template>
133 136
             </el-table-column>
134 137
             <el-table-column prop="name" label="用法" width="160" align="center">
135 138
                <template  slot-scope="scope">
136
-                 {{scope.row.usage}}
139
+                 {{scope.row.delivery_way}}
137 140
                </template>
138 141
             </el-table-column>
139 142
             <el-table-column prop="name" label="频率" width="160" align="center">
140 143
                 <template  slot-scope="scope">
141
-                 {{scope.row.frequency}}
144
+                 {{scope.row.execution_frequency}}
142 145
                </template>
143 146
             </el-table-column>
144 147
             <el-table-column prop="name" label="天数" width="160" align="center">
145 148
                <template  slot-scope="scope">
146
-                 {{scope.row.days}}
149
+                 {{scope.row.day}}
147 150
                </template>
148 151
             </el-table-column>
149 152
             <el-table-column prop="name" label="总量" width="160" align="center">
150 153
                 <template  slot-scope="scope">
151
-                 {{scope.row.total}}
154
+                 {{scope.row.prescribing_number}}
152 155
                </template>
153 156
             </el-table-column>
154 157
             <el-table-column prop="name" label="数据来源" width="162" align="center">
155 158
                 <template  slot-scope="scope">
156
-                  {{scope.row.data_sources}}
159
+                 <span v-if="scope.row.type == 1">血透</span>
160
+                 <span v-if="scope.row.type == 2">HIS</span>
157 161
                </template>
158 162
             </el-table-column>
159 163
           </el-table>
160
-        </div>
161
-        <div>
162
-          <el-table
164
+
165
+
166
+            <el-table
163 167
             :height="tableHeight"
164
-            :data="tableData"
168
+            :data="tableList"
165 169
             border
166 170
             style="width: 1328px"
167 171
             v-if="state == 2"
168 172
           >
169
-<!--            <el-table-column type="selection" width="55"> </el-table-column>-->
173
+            >
174
+            <el-table-column type="selection" width="55"> </el-table-column>
170 175
             <el-table-column type="index" label="序号" width="120" align="center">
176
+              <template slot-scope="scope">
177
+                {{scope.$index + 1}}
178
+              </template>
171 179
             </el-table-column>
172 180
             <el-table-column prop="name" label="患者名称" width="180" align="center">
173 181
                 <template slot-scope="scope">
174
-                 {{scope.row.name}}
182
+                 {{getPatientName(scope.row.patient_id)}}
175 183
               </template>
176 184
             </el-table-column>
177 185
             <el-table-column prop="name" label="单次用量" width="170" align="center">
178 186
                <template  slot-scope="scope">
179
-                 {{scope.row.single_dosage}}
187
+                 {{scope.row.single_dose}}
180 188
                </template>
181 189
             </el-table-column>
182 190
             <el-table-column prop="name" label="用法" width="160" align="center">
183 191
                <template  slot-scope="scope">
184
-                 {{scope.row.usage}}
192
+                 {{scope.row.delivery_way}}
185 193
                </template>
186 194
             </el-table-column>
187 195
             <el-table-column prop="name" label="频率" width="160" align="center">
188 196
                 <template  slot-scope="scope">
189
-                 {{scope.row.frequency}}
197
+                 {{scope.row.execution_frequency}}
190 198
                </template>
191 199
             </el-table-column>
192 200
             <el-table-column prop="name" label="天数" width="160" align="center">
193 201
                <template  slot-scope="scope">
194
-                 {{scope.row.days}}
202
+                 {{scope.row.day}}
195 203
                </template>
196 204
             </el-table-column>
197 205
             <el-table-column prop="name" label="总量" width="160" align="center">
198 206
                 <template  slot-scope="scope">
199
-                 {{scope.row.total}}
207
+                 {{scope.row.prescribing_number}}
200 208
                </template>
201 209
             </el-table-column>
202 210
             <el-table-column prop="name" label="数据来源" width="162" align="center">
203 211
                 <template  slot-scope="scope">
204
-                  {{scope.row.data_sources}}
212
+                 <span v-if="scope.row.type == 1">血透</span>
213
+                 <span v-if="scope.row.type == 2">HIS</span>
205 214
                </template>
206 215
             </el-table-column>
207
-              <el-table-column prop="name" label="领药人" width="160" align="center">
208
-                <template  slot-scope="scope">
209
-                  {{scope.row.people}}
210
-                </template>
211
-              </el-table-column>
212 216
           </el-table>
217
+
218
+
213 219
         </div>
214
-        <div style="margin-top" v-if="state == 1">领药人:
220
+        <div style="margin-top:12px;" v-if="state == 1">领药人:
215 221
           <el-select v-model="admin_user_id" placeholder="请选择">
216 222
             <el-option
217 223
               v-for="item in doctorList"
@@ -223,21 +229,19 @@
223 229
         </div>
224 230
       </div>
225 231
 
226
-      <el-dialog
227
-        title="设置"
228
-        :visible.sync="dialogVisible"
229
-        width="30%">
230
-        <span>请选择药品是否要通过药房管理出库</span>
231
-        <span>
232
+      <el-dialog title="设置" :visible.sync="dialogVisible" width="30%">
233
+        <span style="font-size: 17px">请选择药品是否要通过药房管理出库</span>
234
+        <span style="display: block; padding: 18px 25px">
232 235
           <el-radio v-model="is_open" label="1">是</el-radio>
233 236
           <el-radio v-model="is_open" label="2">否</el-radio>
234 237
         </span>
235
-        <span>
238
+        <div style="height: 50px; background: #c7ebfc; border-radius: 5px;padding: 7px;">
239
+          <i class="el-icon-info" style="color: #3399ff;font-size: 17px;"></i>
236 240
           若选择为是,则通过药房发药的药品都会在发药之后进行出库,否则按原来的方式进行出库管理
237
-        </span>
241
+        </div>
238 242
         <span slot="footer" class="dialog-footer">
239 243
           <el-button @click="dialogVisible = false">取 消</el-button>
240
-          <el-button type="primary" @click="SaveSetting">确 定</el-button>
244
+          <el-button type="primary" @click="SaveSetting">保 存</el-button>
241 245
         </span>
242 246
       </el-dialog>
243 247
     </div>
@@ -256,13 +260,11 @@
256 260
 import drugPrint from "./print/drugPrint.vue";
257 261
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
258 262
 import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug,SaveSetting,getPharmacyConfig,getUserdDrugList } from "@/api/his/advice";
259
-import {
260
-  dispensemedicine,
261
-  waitingmedicine,
262
-  getpatientswithdrugs,
263
-  medicinedeparture,
264
-  getcurrentname
265
-} from "@/api/pharmacy"
263
+// import {
264
+//   waitingdrug,
265
+//   issueddrugs,
266
+//   getpharmacycontent
267
+// } from "@/api/pharmacy"
266 268
 const moment = require('moment')
267 269
 export default {
268 270
   components: {
@@ -272,7 +274,7 @@ export default {
272 274
   data() {
273 275
     return {
274 276
       crumbs: [
275
-        { path: false, name: "药房管理" },
277
+        { path: false, name: "药品发药" },
276 278
         { path: "/Pharmacy/DrugDispensing", name: "药品发药" },
277 279
       ],
278 280
       tableHeight: 400,
@@ -292,194 +294,86 @@ export default {
292 294
       isVisibility:"",
293 295
       propsTable:"",
294 296
       doctorList:[],
295
-      admin_user_id:0,
296
-      waiting_drug:[],//待发药列表
297
-      issued_drug:[],//已发药列表
298
-      currentRow:null,
299
-      tmp:0,
297
+      admin_user_id:this.$store.getters.xt_user.user.id,
300 298
     };
301 299
   },
302 300
 
303 301
   methods: {
304
-    tt(){
305
-      console.log("this.currentRow",this.currentRow)
306
-      this.$router.go(0)
307
-    },
308
-    async fun3(){
309
-      console.log("fun3")
310
-      this.fun1().then(val => {
311
-        this.fun2();
312
-      })
313
-    },
314
-    async fun4(tps){
315
-      console.log("fun3",tps)
316
-      this.fun1().then(val => {
317
-        console.log("this.issued_drug",this.issued_drug)
318
-        for(let i = 0;i < this.issued_drug.length;i++){
319
-          if(tps == this.issued_drug[i].id){
320
-            this.$refs.table02.setCurrentRow(this.issued_drug[i]);
321
-            this.handleCurrentChange(this.issued_drug[i])
322
-          }
323
-        }
324
-      })
325
-    },
326
-    async fun5(tps){
327
-      console.log("fun3",tps)
328
-      this.fun1().then(val => {
329
-        console.log("this.issued_drug",this.waiting_drug)
330
-        for(let i = 0;i < this.waiting_drug.length;i++){
331
-          if(tps == this.waiting_drug[i].id){
332
-            this.$refs.table01.setCurrentRow(this.waiting_drug[i]);
333
-            this.handleCurrentChange(this.waiting_drug[i])
334
-          }
335
-        }
336
-      })
337
-    },
338
-    changeTimes(){
339
-      // alert("aa")
340
-      // this.getdruglist();
341
-      this.fun3();
302
+    testsss(){
303
+      console.log("time",this.start_time);
342 304
     },
343 305
     //初始化
344 306
     init(){
345
-      this.state = 1
346
-      this.tableData = null
347
-      this.currentRow = null
348
-    },
349
-    lala(){
350
-      this.currentRow = null
351
-      this.tableData = null
352
-      this.selectedbydefault()
307
+
353 308
     },
354 309
      searchAction() {
355
-      // this.getlist();
356
-       this.tableData = null
357
-       this.currentRow = null
358
-       this.getdruglist();
310
+      this.getlist();
359 311
     },
360 312
     // 跳转打印页面
361 313
     toPrint() {
362
-
363
-      if (this.state == 1 && this.multipleSelection.length == 0){
364
-        this.$message.error("未选择任何数据");
365
-        return
366
-      }
367
-      if (this.state == 2 && this.tableData == null){
368
-          this.$message.error("未选择任何数据");
369
-          return
370
-      }
371
-      this.$refs.drugprint.show(this.tableData,this.currentRow,this.state,this.multipleSelection);
314
+      // this.$router.push({ path: "/Pharmacy/print/patientPrint" });
315
+      this.$refs.drugprint.show();
372 316
     },
373
-    //列表选择
374 317
     handleSelectionChange(val) {
375 318
       this.multipleSelection = val;
376 319
     },
377
-    //默认选中
378
-    selectedbydefault(){
379
-      if(this.state == 1 && this.waiting_drug.length > 0){
380
-        this.$refs.table01.setCurrentRow(this.waiting_drug[0]);
381
-        this.handleCurrentChange(this.waiting_drug[0])
382
-      }
383
-      if(this.state == 2 && this.issued_drug.length >0){
384
-        this.$refs.table02.setCurrentRow(this.issued_drug[0]);
385
-        this.handleCurrentChange(this.issued_drug[0])
386
-      }
387
-    },
388
-    //包装selectedbydefault
389
-    fun2(){
390
-      console.log("3333333this.waitmount_data",this.waiting_drug)
391
-      // return new Promise((resolve, reject) => {
392
-      if(this.state == 1 && this.waiting_drug.length > 0){
393
-        this.$refs.table01.setCurrentRow(this.waiting_drug[0]);
394
-        this.handleCurrentChange(this.waiting_drug[0])
395
-      }
396
-      if(this.state == 2 && this.issued_drug.length >0){
397
-        this.$refs.table02.setCurrentRow(this.issued_drug[0]);
398
-        this.handleCurrentChange(this.issued_drug[0])
399
-      }
400
-      // });
320
+    handleSelectionChangeOne(val){
321
+      this.tableList = []
322
+      this.getUserlist(val.id)
401 323
     },
402 324
     // 药品发药
403 325
     dispense() {
404
-      var tps = this.currentRow.id;
405
-      if(this.multipleSelection.length < 1){
406
-        this.$message.error("未选择任何信息")
407
-        return
408
-      }
409
-      var tmp = "";
410
-      console.log("初始值",tmp)
411
-      for (var i=0;i < this.multipleSelection.length;i++){
412
-        tmp = tmp + this.multipleSelection[i].id + ","
413
-      }
414
-      var params = {
415
-        creater: this.admin_user_id,
416
-        ids: tmp,
417
-      }
418
-      medicinedeparture(params).then((res) => {
419
-        if (res.data.state == 1){
420
-          this.$message.success("操作成功")
421
-          this.getdruglist();
422
-          //刷新列表
423
-          this.handleCurrentChange(this.currentRow);
424
-          this.fun4(tps);
425
-          this.state = 2;
426
-        }else{
427
-          this.$message.error("操作失败:" + res.data.msg)
428
-          //刷新列表
429
-          this.handleCurrentChange(this.currentRow);
430
-          this.fun5(tps);
431
-          this.state = 1;
326
+      var blood_ids = []
327
+      var his_ids = []
328
+      var bloodStr = ""
329
+      var hisStr = ""
330
+      for(let i=0;i<this.tableData.length;i++){
331
+        if(this.tableData[i].type == 1){
332
+          blood_ids.push(this.tableData[i].id)
432 333
         }
433
-      })
434
-    },
435
-    //获取药品列表
436
-    getdruglist(){
437
-      var params = {
438
-        keyword: this.keywords,
439
-        time: this.start_time,
440
-      }
441
-      waitingmedicine(params).then((res) => {
442
-        if (res.data.state == 1){
443
-          this.waiting_drug = res.data.data.list
444
-        }
445
-      })
446
-      dispensemedicine(params).then((res) => {
447
-        if (res.data.state == 1){
448
-          this.issued_drug = res.data.data.list
334
+        if(this.tableData[i].type == 2){
335
+          his_ids.push(this.tableData[i].id)
449 336
         }
450
-      })
451
-    },
452
-    async fun1(){
337
+      }
338
+      bloodStr = blood_ids.join(",")
339
+      hisStr =  his_ids.join(",")
453 340
       var params = {
454
-        keyword: this.keywords,
455
-        time: this.start_time,
341
+        bloodStr:bloodStr,
342
+        hisStr:hisStr,
343
+        admin_user_id:this.admin_user_id,
456 344
       }
457
-      await waitingmedicine(params).then((res) => {
458
-        if (res.data.state == 1){
459
-          this.waiting_drug = res.data.data.list
460
-        }
461
-        console.log("fun1lil1111i")
462
-      })
463
-      await dispensemedicine(params).then((res) => {
464
-        if (res.data.state == 1){
465
-          this.issued_drug = res.data.data.list
466
-        }
467
-        console.log("fun122222222")
468
-      })
469
-      console.log("fun1")
345
+      this.$confirm("确定是否对该药品进行发药?", "患者发药", {
346
+        confirmButtonText: "确 定",
347
+        cancelButtonText: "取 消",
348
+        type: "warning",
349
+      }).then(() => {
350
+        updatePharmacyBaseDrug(params).then(response=>{
351
+           if(response.data.state == 1){
352
+           var msg = response.data.data.msg
353
+           var medical =  response.data.data.medical
354
+           if(msg === 1){
355
+             this.$message.success("发药成功!")
356
+           }
357
+           if(msg == 2 || msg ===3){
358
+             this.$message.error("库存不足")
359
+           }
360
+         }
361
+        })
362
+      }).catch(() => {});
470 363
     },
471 364
 
472
-    morencreatename(){
473
-      var param ={}
474
-      getcurrentname(param).then((res) => {
475
-        console.log("res(药)",res)
476
-        if (res.data.state == 1){
477
-          this.admin_user_id = res.data.data.list;
478
-          console.log("this.admin_user_id(药)",this.admin_user_id)
479
-        }
480
-      });
365
+    // 药品退药
366
+    endispense() {
367
+      var params = {};
368
+      this.$confirm("确定是否对该药品进行退药?", "患者退药", {
369
+        confirmButtonText: "确 定",
370
+        cancelButtonText: "取 消",
371
+        type: "warning",
372
+      })
373
+        .then(() => {})
374
+        .catch(() => {});
481 375
     },
482
-    //获取领药人选项
376
+
483 377
     getlist(){
484 378
       var params = {
485 379
         start_time:this.start_time,
@@ -487,43 +381,76 @@ export default {
487 381
       }
488 382
       getTodayAdviceList(params).then(response=>{
489 383
          if(response.data.state == 1){
490
-           this.doctorList = response.data.data.doctorlist
491
-           console.log("this.admin_user_id(药2)",this.admin_user_id)
492
-           // this.admin_user_id = this.doctorList[0].admin_user_id
493
-           // this.admin_user_id = this.tmp
384
+           var list =  response.data.data.list
385
+           this.$refs.singleTable.setCurrentRow(list[0])
386
+           this.tableData = list
387
+           var doctorlist = response.data.data.doctorlist
388
+           this.doctorList = doctorlist
494 389
          }
495 390
       })
496 391
     },
497
-   //  //获取药品的患者信息
498
-    informationofdrugs(val){
499
-      var params = {
500
-        // patient_id: this.currentRow.
392
+   getWarehoseInfo(arr, max_unit, min_unit, min_number) {
393
+      var total = 0;
394
+      var max_str = "";
395
+      var min_str = "";
396
+      if (arr.length > 0) {
397
+        for (let i = 0; i < arr.length; i++) {
398
+          total += parseInt(arr[i].stock_max_number+ arr[i].stock_min_number);
399
+        }
501 400
       }
502
-    },
503
-    handleCurrentChange(val) {
504
-      this.currentRow = val;
505
-      if(this.state == 1){
506
-        this.getdrugsdetails(0)
401
+      if (total < min_number) {
402
+        min_str = total + min_unit;
403
+      }
404
+      if (total == 0) {
405
+        min_str = "";
406
+        max_str = "";
507 407
       }
508
-      if (this.state == 2){
509
-        this.getdrugsdetails(1)
408
+      if (total >= min_number) {
409
+        if (parseInt(total / min_number) != 0) {
410
+          max_str = parseInt(total / min_number) + max_unit;
411
+        }
412
+        if (total % min_number != 0) {
413
+          min_str = (total % min_number) + min_unit;
414
+        }
510 415
       }
416
+      return max_str + min_str;
417
+    },
418
+
419
+    handleCurrentChange(row) {
420
+      this.getPharmacyBaseDrug(row.id)
511 421
     },
512
-    getdrugsdetails(val){
422
+    getPharmacyBaseDrug(drug_id){
513 423
       var params = {
514
-        drug_id:this.currentRow.id,
515
-        is_medicine:val,
516
-        time:this.start_time,
424
+        start_time:this.start_time,
425
+        drug_id:drug_id,
517 426
       }
518
-      getpatientswithdrugs(params).then((res) => {
519
-        if (res.data.state == 1){
520
-          this.tableData = res.data.data.list;//列表数据
521
-        }else {
522
-          this.$message.error(res.data.msg);
427
+      getPharmacyBaseDrug(params).then(response=>{
428
+        if(response.data.state == 1){
429
+           var advicelist = response.data.data.advicelist
430
+           for(let i=0;i<advicelist.length;i++){
431
+             advicelist[i].type = 1
432
+             advicelist[i].day = " "
433
+             this.tableData_list.push(advicelist[i])
434
+           }
435
+           var hisAdviceList = response.data.data.hisAdviceList
436
+           for(let i=0;i<hisAdviceList.length;i++){
437
+             hisAdviceList[i].type = 2
438
+             this.tableData_list.push(hisAdviceList[i])
439
+           }
440
+           var patient = response.data.data.patient
441
+           this.patientList = patient
523 442
         }
524 443
       })
525 444
     },
526
-
445
+    getPatientName(id){
446
+       var name = ""
447
+       for(let i=0;i<this.patientList.length;i++){
448
+          if(id == this.patientList[i].id){
449
+             name = this.patientList[i].name
450
+          }
451
+       }
452
+       return name
453
+    },
527 454
     toSetting(){
528 455
       getPharmacyConfig().then(response=>{
529 456
         if(response.data.state == 1){
@@ -571,10 +498,7 @@ export default {
571 498
   },
572 499
   created() {
573 500
     this.init();
574
-    this.morencreatename();
575
-    this.getlist();
576
-    // this.getdruglist();
577
-    this.fun3();
501
+    this.getlist()
578 502
   },
579 503
 };
580 504
 </script>
@@ -615,4 +539,25 @@ export default {
615 539
     justify-content: flex-end;
616 540
   }
617 541
 }
542
+
543
+/deep/ .el-table--scrollable-x .el-table__body-wrapper {
544
+  overflow: auto;
545
+}
546
+/deep/ .gutter {
547
+  width: 15px !important;
548
+  display: inline-block !important;
549
+}
550
+/deep/ .el-table__fixed-right-patch {
551
+  width: 15px !important;
552
+}
553
+
554
+/deep/ .el-table__fixed-right {
555
+  bottom: 0 !important;
556
+  left: auto;
557
+  right: 0;
558
+}
559
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
560
+  width: 15px !important;
561
+  height: 15px !important;
562
+}
618 563
 </style>

+ 283 - 225
src/xt_pages/Pharmacy/PatientDispensing.vue Voir le fichier

@@ -1,4 +1,5 @@
1
-<template><!--患者发药-->
1
+<template>
2
+  <!--患者发药-->
2 3
   <div class="main-contain new-main-contain">
3 4
     <div class="position">
4 5
       <!--      <bread-crumb :crumbs='crumbs'></bread-crumb>-->
@@ -13,31 +14,30 @@
13 14
           <div class="list">
14 15
             <el-date-picker
15 16
               style="width: 200px"
16
-              v-model="start_time"
17
+              v-model="datepick"
17 18
               type="date"
18
-              format="yyyy-MM-dd"
19
-              value-format="yyyy-MM-dd"
20 19
               placeholder="选择日期"
21
-              @change="changeTimes()"
22 20
             >
23 21
             </el-date-picker>
24 22
           </div>
25
-<!--          <el-button @click="testsss">调试1</el-button>-->
26
-<!--          <el-button @click="testsss2">调试2</el-button>-->
23
+          <!--          <el-button @click="testsss">调试1</el-button>-->
24
+          <!--          <el-button @click="testsss2">调试2</el-button>-->
27 25
           <div class="list">
28 26
             <el-radio-group v-model="state" @change="lala()">
29
-              <el-radio :label="1" >待发药{{ waitmount }}人</el-radio>
30
-              <el-radio :label="2" >已发药{{ alreadmount }}人</el-radio>
27
+              <el-radio :label="1">待发药{{ waitmount }}人</el-radio>
28
+              <el-radio :label="2">已发药{{ alreadmount }}人</el-radio>
31 29
             </el-radio-group>
32 30
           </div>
33
-          <div class="list">
31
+          <div
32
+            class="list"
33
+            style="display: flex; justify-content: space-between"
34
+          >
34 35
             <el-input
35 36
               size="small"
36 37
               style="width: 130px"
37 38
               v-model="keywords"
38 39
               class="filter-item"
39 40
               placeholder="请输入患者名称"
40
-              clearable
41 41
             />
42 42
             <el-button
43 43
               size="small"
@@ -48,27 +48,49 @@
48 48
             </el-button>
49 49
           </div>
50 50
 
51
-          <el-table :height="tableHeight" ref="table01" :data="waitmount_data" highlight-current-row @current-change="handleCurrentChange" border style="width: 100%" v-if="state == 1">
52
-            <el-table-column prop="date" label="患者姓名" width="100" >
51
+          <el-table
52
+            :height="tableHeight"
53
+            ref="table01"
54
+            :data="waitmount_data"
55
+            highlight-current-row
56
+            @current-change="handleCurrentChange"
57
+            border
58
+            style="width: 100%"
59
+            v-if="state == 1"
60
+          >
61
+            <el-table-column prop="date" label="患者姓名" width="100">
53 62
               <template slot-scope="scope">
54
-                <span >{{scope.row.Name ? scope.row.Name : ""}}</span>
63
+                <span>{{ scope.row.Name ? scope.row.Name : "" }}</span>
55 64
               </template>
56 65
             </el-table-column>
57 66
             <el-table-column prop="name" label="透析号" width="100">
58 67
               <template slot-scope="scope">
59
-                <span>{{scope.row.DialysisNo ? scope.row.DialysisNo : ""}}</span>
68
+                <span>{{
69
+                  scope.row.DialysisNo ? scope.row.DialysisNo : ""
70
+                }}</span>
60 71
               </template>
61 72
             </el-table-column>
62 73
           </el-table>
63
-          <el-table :height="tableHeight" ref="table02" :data="alreadmount_data" highlight-current-row @current-change="handleCurrentChange" border style="width: 100%" v-if="state == 2">
64
-            <el-table-column prop="date" label="患者姓名" width="100" >
65
-              <template slot-scope="scope" >
66
-                <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
74
+          <el-table
75
+            :height="tableHeight"
76
+            ref="table02"
77
+            :data="alreadmount_data"
78
+            highlight-current-row
79
+            @current-change="handleCurrentChange"
80
+            border
81
+            style="width: 100%"
82
+            v-if="state == 2"
83
+          >
84
+            <el-table-column prop="date" label="患者姓名" width="100">
85
+              <template slot-scope="scope">
86
+                <span>{{ scope.row.Name ? scope.row.Name : "" }}</span>
67 87
               </template>
68 88
             </el-table-column>
69 89
             <el-table-column prop="name" label="透析号" width="100">
70 90
               <template slot-scope="scope">
71
-                <span>{{scope.row.DialysisNo ? scope.row.DialysisNo : ""}}</span>
91
+                <span>{{
92
+                  scope.row.DialysisNo ? scope.row.DialysisNo : ""
93
+                }}</span>
72 94
               </template>
73 95
             </el-table-column>
74 96
           </el-table>
@@ -83,83 +105,94 @@
83 105
             >退药</el-button
84 106
           >
85 107
           <el-button type="primary" @click="toPrint">打印</el-button>
86
-<!--          <el-button @click="tiaoshi">调试</el-button>-->
87
-          <el-button type="primary" v-if="state == 1" @click="toSetting">设置</el-button>
108
+          <!--          <el-button @click="tiaoshi">调试</el-button>-->
109
+          <el-button type="primary" v-if="state == 1" @click="toSetting"
110
+            >设置</el-button
111
+          >
88 112
         </div>
89 113
         <el-divider></el-divider>
90 114
         <div>
91 115
           <el-table
92 116
             :height="tableHeight"
93
-            :data="tableData"
117
+            :data="tableData_list"
94 118
             border
95 119
             style="width: 100%"
96 120
           >
97
-            <el-table-column type="index" label="序号" width="120" align="center">
121
+            <el-table-column
122
+              type="index"
123
+              label="序号"
124
+              width="120"
125
+              align="center"
126
+            >
98 127
             </el-table-column>
99
-            <el-table-column  label="名称" width="200" align="center">
128
+            <el-table-column label="名称" width="200" align="center">
100 129
               <template slot-scope="scope">
101
-                <span>{{scope.row.Name  ? scope.row.Name  : ""}}</span>
130
+                <span>{{ scope.row.Name ? scope.row.Name : "" }}</span>
102 131
               </template>
103 132
             </el-table-column>
104
-            <el-table-column  label="单次用量" width="150" align="center">
133
+            <el-table-column label="单次用量" width="150" align="center">
105 134
               <template slot-scope="scope">
106
-                <span>{{scope.row.SingleDosage  ? scope.row.SingleDosage  : ""}}</span>
135
+                <span>{{
136
+                  scope.row.SingleDosage ? scope.row.SingleDosage : ""
137
+                }}</span>
107 138
               </template>
108 139
             </el-table-column>
109
-            <el-table-column  label="用法" width="160" align="center">
140
+            <el-table-column label="用法" width="160" align="center">
110 141
               <template slot-scope="scope">
111
-                <span>{{scope.row.Usage  ? scope.row.Usage  : ""}}</span>
142
+                <span>{{ scope.row.Usage ? scope.row.Usage : "" }}</span>
112 143
               </template>
113 144
             </el-table-column>
114
-            <el-table-column  label="频率" width="160" align="center">
145
+            <el-table-column label="频率" width="160" align="center">
115 146
               <template slot-scope="scope">
116
-                <span>{{scope.row.Frequency  ? scope.row.Frequency  : ""}}</span>
147
+                <span>{{
148
+                  scope.row.Frequency ? scope.row.Frequency : ""
149
+                }}</span>
117 150
               </template>
118 151
             </el-table-column>
119
-            <el-table-column  label="天数" width="140" align="center">
152
+            <el-table-column label="天数" width="140" align="center">
120 153
               <template slot-scope="scope">
121
-                <span>{{scope.row.Days  ? scope.row.Days  : ""}}</span>
154
+                <span>{{ scope.row.Days ? scope.row.Days : "" }}</span>
122 155
               </template>
123 156
             </el-table-column>
124
-            <el-table-column  label="总量" width="140" align="center">
157
+            <el-table-column label="总量" width="140" align="center">
125 158
               <template slot-scope="scope">
126
-                <span>{{scope.row.Total  ? scope.row.Total  : ""}}</span>
159
+                <span>{{ scope.row.Total ? scope.row.Total : "" }}</span>
127 160
               </template>
128 161
             </el-table-column>
129
-            <el-table-column  label="开立医生" width="150" align="center">
162
+            <el-table-column label="开立医生" width="150" align="center">
130 163
               <template slot-scope="scope">
131
-                <span>{{scope.row.Doctor  ? scope.row.Doctor  : ""}}</span>
164
+                <span>{{ scope.row.Doctor ? scope.row.Doctor : "" }}</span>
132 165
               </template>
133 166
             </el-table-column>
134
-            <el-table-column  label="数据来源" width="162" align="center">
167
+            <el-table-column label="数据来源" width="162" align="center">
135 168
               <template slot-scope="scope">
136
-                <span>{{scope.row.DataSources  ? scope.row.DataSources  : ""}}</span>
169
+                <span>{{
170
+                  scope.row.DataSources ? scope.row.DataSources : ""
171
+                }}</span>
137 172
               </template>
138 173
             </el-table-column>
139
-            <el-table-column  label="备注" width="170" align="center">
174
+            <el-table-column label="备注" width="170" align="center">
140 175
               <template slot-scope="scope">
141
-                <span>{{scope.row.Remarks  ? scope.row.Remarks  : ""}}</span>
176
+                <span>{{ scope.row.Remarks ? scope.row.Remarks : "" }}</span>
142 177
               </template>
143 178
             </el-table-column>
144 179
           </el-table>
145 180
         </div>
146
-<!--        <div v-if="state == 2" style="margin-top: 25px">诊断时间:{{ timedate }}</div>-->
181
+        <!--        <div v-if="state == 2" style="margin-top: 25px">诊断时间:{{ timedate }}</div>-->
147 182
       </div>
148
-      <el-dialog
149
-        title="设置"
150
-        :visible.sync="dialogVisible"
151
-        width="30%">
152
-        <span>请选择药品是否要通过药房管理出库</span>
153
-        <span>
183
+      <el-dialog title="设置" :visible.sync="dialogVisible" width="30%">
184
+        <span style="font-size: 17px">请选择药品是否要通过药房管理出库</span>
185
+        <span style="display: block; padding: 18px 25px">
154 186
           <el-radio v-model="is_open" label="1">是</el-radio>
155 187
           <el-radio v-model="is_open" label="2">否</el-radio>
156 188
         </span>
157
-        <span>
189
+        <div style="height: 50px; background: #c7ebfc; border-radius: 5px;padding: 7px;">
190
+          <i class="el-icon-info" style="color: #3399ff;font-size: 17px;"></i>
158 191
           若选择为是,则通过药房发药的药品都会在发药之后进行出库,否则按原来的方式进行出库管理
159
-        </span>
192
+        </div>
160 193
         <span slot="footer" class="dialog-footer">
161 194
           <el-button @click="dialogVisible = false">取 消</el-button>
162
-          <el-button type="primary" @click="SaveSetting">确 定</el-button>
195
+          <el-button type="primary" @click="SaveSetting">保 存</el-button>
163 196
         </span>
164 197
       </el-dialog>
165 198
     </div>
@@ -176,16 +209,16 @@
176 209
 <script>
177 210
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
178 211
 import patientPrint from "./print/patientPrint.vue";
179
-import { getPharmacyConfig,SaveSetting } from "@/api/his/advice";
212
+import { getPharmacyConfig, SaveSetting } from "@/api/his/advice";
180 213
 import {
181 214
   waitingdrug,
182 215
   issueddrugs,
183 216
   todaynumber,
184 217
   getpharmacycontent,
185 218
   dispensingmedicine,
186
-  drugwithdrawal
187
-} from "@/api/pharmacy"
188
-const moment = require('moment')
219
+  drugwithdrawal,
220
+} from "@/api/pharmacy";
221
+const moment = require("moment");
189 222
 export default {
190 223
   components: {
191 224
     BreadCrumb,
@@ -193,30 +226,29 @@ export default {
193 226
   },
194 227
   data() {
195 228
     return {
196
-      patient_id:0,
229
+      patient_id: 0,
197 230
       crumbs: [
198
-        { path: false, name: "药房管理" },
231
+        { path: false, name: "患者发药" },
199 232
         { path: "/Pharmacy/patiantDispensing", name: "患者发药" },
200 233
       ],
201 234
       tableHeight: 400,
202
-      start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
203
-      state: 1,//1待发药,2已发药
204
-      waitmount: 0,//待发药人数
235
+      start_time: moment(new Date()).add("year", 0).format("YYYY-MM-DD"),
236
+      state: 1, //1待发药,2已发药
237
+      waitmount: 0, //待发药人数
205 238
       waitmount_data: [],
206
-      alreadmount: 0,//已发药人数
239
+      alreadmount: 0, //已发药人数
207 240
       alreadmount_data: [],
208 241
       keywords: "",
209 242
       tableData: [],
210 243
       propsTable: [],
211 244
       tableData_list: [],
212 245
       isVisibility: false,
213
-      currentRow:null,
214
-      dialogVisible:false,
215
-      is_open:"2",
246
+      currentRow: null,
247
+      dialogVisible: false,
248
+      is_open: "2",
216 249
     };
217 250
   },
218
-  watch: {
219
-  },
251
+  watch: {},
220 252
   created() {
221 253
     this.init();
222 254
     this.gettodaynumber();
@@ -225,270 +257,271 @@ export default {
225 257
     // this.selectedbydefault();
226 258
   },
227 259
   methods: {
228
-    tiaoshi(){
229
-      console.log("this.tableData",this.tableData)
260
+    tiaoshi() {
261
+      console.log("this.tableData", this.tableData);
230 262
     },
231
-    async fun3(){
232
-      console.log("fun3")
233
-        this.fun1().then(val => {
234
-          this.fun2();
235
-        })
263
+    async fun3() {
264
+      console.log("fun3");
265
+      this.fun1().then((val) => {
266
+        this.fun2();
267
+      });
236 268
     },
237
-    async fun4(tmp){
238
-      console.log("fun3")
239
-      this.fun1().then(val => {
240
-        console.log("this.alreadmount_data",this.alreadmount_data)
241
-        for (let i = 0;i < this.alreadmount_data.length;i++){
242
-          console.log("tmp = ",tmp)
243
-          if (this.alreadmount_data[i].PatientID == tmp){
244
-            console.log("i = ",i)
269
+    async fun4(tmp) {
270
+      console.log("fun3");
271
+      this.fun1().then((val) => {
272
+        console.log("this.alreadmount_data", this.alreadmount_data);
273
+        for (let i = 0; i < this.alreadmount_data.length; i++) {
274
+          console.log("tmp = ", tmp);
275
+          if (this.alreadmount_data[i].PatientID == tmp) {
276
+            console.log("i = ", i);
245 277
             this.$refs.table02.setCurrentRow(this.alreadmount_data[i]);
246
-            this.handleCurrentChange(this.alreadmount_data[i])
278
+            this.handleCurrentChange(this.alreadmount_data[i]);
247 279
           }
248 280
         }
249
-      })
281
+      });
250 282
     },
251
-    async fun5(tmp){
252
-      console.log("fun3")
253
-      this.fun1().then(val => {
254
-        console.log("this.alreadmount_data",this.waitmount_data)
255
-        for (let i = 0;i < this.waitmount_data.length;i++){
256
-          console.log("tmp = ",tmp)
257
-          if (this.waitmount_data[i].PatientID == tmp){
258
-            console.log("i = ",i)
283
+    async fun5(tmp) {
284
+      console.log("fun3");
285
+      this.fun1().then((val) => {
286
+        console.log("this.alreadmount_data", this.waitmount_data);
287
+        for (let i = 0; i < this.waitmount_data.length; i++) {
288
+          console.log("tmp = ", tmp);
289
+          if (this.waitmount_data[i].PatientID == tmp) {
290
+            console.log("i = ", i);
259 291
             this.$refs.table02.setCurrentRow(this.waitmount_data[i]);
260
-            this.handleCurrentChange(this.waitmount_data[i])
292
+            this.handleCurrentChange(this.waitmount_data[i]);
261 293
           }
262 294
         }
263
-      })
295
+      });
264 296
     },
265 297
 
266
-    lala(){
267
-      console.log("this.state!!!!!!",this.state)
298
+    lala() {
299
+      console.log("this.state!!!!!!", this.state);
268 300
       //初始化状态
269
-      this.tableData = null
270
-      this.currentRow = null
271
-      this.selectedbydefault()
301
+      this.tableData = null;
302
+      this.currentRow = null;
303
+      this.selectedbydefault();
272 304
     },
273 305
     //选中行数
274 306
     handleCurrentChange(val) {
275 307
       this.currentRow = val;
276
-      console.log("this.currentRow",this.currentRow)
277
-      if(this.state == 1){
278
-        this.getpatientdetails(0)
308
+      console.log("this.currentRow", this.currentRow);
309
+      if (this.state == 1) {
310
+        this.getpatientdetails(0);
279 311
       }
280
-      if(this.state == 2){
281
-        this.getpatientdetails(1)
312
+      if (this.state == 2) {
313
+        this.getpatientdetails(1);
282 314
       }
283 315
     },
284
-    init(){
316
+    init() {
285 317
       // console.log("初始化了")
286
-      this.state = 1
287
-      this.tableData = null
288
-      this.currentRow = null
318
+      this.state = 1;
319
+      this.tableData = null;
320
+      this.currentRow = null;
289 321
     },
290
-    testsss(){
291
-     this.state = 1;
322
+    testsss() {
323
+      this.state = 1;
292 324
     },
293 325
     //默认选中的
294
-    selectedbydefault(){
295
-      if(this.state == 1 && this.waitmount_data.length > 0){
326
+    selectedbydefault() {
327
+      if (this.state == 1 && this.waitmount_data.length > 0) {
296 328
         this.$refs.table01.setCurrentRow(this.waitmount_data[0]);
297
-        this.handleCurrentChange(this.waitmount_data[0])
329
+        this.handleCurrentChange(this.waitmount_data[0]);
298 330
       }
299
-      if(this.state == 2 && this.alreadmount_data.length >0){
331
+      if (this.state == 2 && this.alreadmount_data.length > 0) {
300 332
         this.$refs.table02.setCurrentRow(this.alreadmount_data[0]);
301
-        this.handleCurrentChange(this.alreadmount_data[0])
333
+        this.handleCurrentChange(this.alreadmount_data[0]);
302 334
       }
303 335
     },
304 336
     //包装selectedbydefault
305
-    fun2(){
306
-      console.log("3333333this.waitmount_data",this.waitmount_data)
337
+    fun2() {
338
+      console.log("3333333this.waitmount_data", this.waitmount_data);
307 339
       // return new Promise((resolve, reject) => {
308
-        if(this.state == 1 && this.waitmount_data.length > 0){
309
-          this.$refs.table01.setCurrentRow(this.waitmount_data[0]);
310
-          this.handleCurrentChange(this.waitmount_data[0])
311
-        }
312
-        if(this.state == 2 && this.alreadmount_data.length >0){
313
-          this.$refs.table02.setCurrentRow(this.alreadmount_data[0]);
314
-          this.handleCurrentChange(this.alreadmount_data[0])
315
-        }
340
+      if (this.state == 1 && this.waitmount_data.length > 0) {
341
+        this.$refs.table01.setCurrentRow(this.waitmount_data[0]);
342
+        this.handleCurrentChange(this.waitmount_data[0]);
343
+      }
344
+      if (this.state == 2 && this.alreadmount_data.length > 0) {
345
+        this.$refs.table02.setCurrentRow(this.alreadmount_data[0]);
346
+        this.handleCurrentChange(this.alreadmount_data[0]);
347
+      }
316 348
       // });
317 349
     },
318
-    changeTimes(){
350
+    changeTimes() {
319 351
       this.gettodaynumber();
320 352
       this.getwaitmount();
321 353
       this.fun3();
322 354
     },
323 355
     //获取当天发药的人数
324
-    gettodaynumber(){
325
-      console.log("aaa")
356
+    gettodaynumber() {
357
+      console.log("aaa");
326 358
       var params = {
327 359
         time: this.start_time,
328
-      }
360
+      };
329 361
       todaynumber(params).then((res) => {
330
-        if (res.data.state == 1){
362
+        if (res.data.state == 1) {
331 363
           this.waitmount = res.data.data.itotal;
332 364
           this.alreadmount = res.data.data.wtotal;
333 365
         }
334
-      })
366
+      });
335 367
       // console.log("2222222")
336 368
     },
337 369
     //获取发药人列表
338
-    getwaitmount(){
370
+    getwaitmount() {
339 371
       var params = {
340 372
         keyword: this.keywords,
341 373
         time: this.start_time,
342
-      }
374
+      };
343 375
       waitingdrug(params).then((res) => {
344
-        if (res.data.state == 1){
376
+        if (res.data.state == 1) {
345 377
           this.waitmount_data = res.data.data.list;
346 378
         }
347
-      })
379
+      });
348 380
       issueddrugs(params).then((res) => {
349
-        if (res.data.state == 1){
381
+        if (res.data.state == 1) {
350 382
           this.alreadmount_data = res.data.data.list;
351 383
         }
352
-      })
384
+      });
353 385
     },
354 386
     //包装getwaitmount
355
-    async fun1(){
387
+    async fun1() {
356 388
       // return new Promise((resolve, reject) => {
357
-        var params = {
358
-          keyword: this.keywords,
359
-          time: this.start_time,
389
+      var params = {
390
+        keyword: this.keywords,
391
+        time: this.start_time,
392
+      };
393
+      await waitingdrug(params).then((res) => {
394
+        if (res.data.state == 1) {
395
+          this.waitmount_data = res.data.data.list;
396
+          console.log("1111111");
360 397
         }
361
-        await waitingdrug(params).then((res) => {
362
-          if (res.data.state == 1){
363
-            this.waitmount_data = res.data.data.list;
364
-            console.log("1111111")
365
-          }
366
-        })
367
-        await issueddrugs(params).then((res) => {
368
-          if (res.data.state == 1){
369
-            this.alreadmount_data = res.data.data.list;
370
-            console.log("1111111s")
371
-          }
372
-        })
373
-        console.log("222222222")
398
+      });
399
+      await issueddrugs(params).then((res) => {
400
+        if (res.data.state == 1) {
401
+          this.alreadmount_data = res.data.data.list;
402
+          console.log("1111111s");
403
+        }
404
+      });
405
+      console.log("222222222");
374 406
 
375 407
       // })
376 408
     },
377 409
     //获取患者信息详情
378
-    getpatientdetails(val){
410
+    getpatientdetails(val) {
379 411
       var params = {
380
-        patient_id:this.currentRow.PatientID,
412
+        patient_id: this.currentRow.PatientID,
381 413
         is_medicine: val,
382
-        time:this.start_time,
383
-      }
414
+        time: this.start_time,
415
+      };
384 416
       getpharmacycontent(params).then((res) => {
385
-        if (res.data.state == 1){
417
+        if (res.data.state == 1) {
386 418
           this.tableData = res.data.data.list;
387
-        }else{
419
+        } else {
388 420
           this.$message.error(res.data.msg);
389 421
         }
390
-      })
422
+      });
391 423
     },
392 424
     // 跳转打印页面
393 425
     toPrint() {
394
-      if (this.tableData == null){
426
+      if (this.tableData == null) {
395 427
         this.$message.error("未选择任何数据");
396
-        return
428
+        return;
397 429
       }
398
-      this.$refs.patientprint.show(this.tableData,this.currentRow,this.state);
430
+      this.$refs.patientprint.show(this.tableData, this.currentRow, this.state);
399 431
     },
400 432
 
401 433
     // 搜索患者
402
-    searchAction() {
403
-      this.tableData = null;
404
-      this.getwaitmount();
405
-    },
434
+    searchAction() {},
406 435
 
407 436
     // 药品发药
408 437
     dispense() {
409 438
       var tmp = this.currentRow.PatientID;
410 439
       var params = {
411
-        patient_id:this.currentRow.PatientID,
412
-        time:this.start_time,
440
+        patient_id: this.currentRow.PatientID,
441
+        time: this.start_time,
413 442
       };
414 443
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
415 444
         confirmButtonText: "确 定",
416 445
         cancelButtonText: "取 消",
417 446
         type: "warning",
418
-      }).then(() => {
419
-        dispensingmedicine(params).then((res) => {
420
-          if(res.data.state == 1){
421
-            this.$message.success('操作成功');
422
-            this.gettodaynumber();
423
-            this.searchAction();
424
-            this.tableData = null;
425
-            this.fun4(tmp);
426
-            this.state = 2;
427
-            // console.log("this.alreadmount_data",this.alreadmount_data)
428
-            // for (let i = 0;i < this.alreadmount_data.length;i++){
429
-            //   console.log("tmp = ",tmp)
430
-            //     if (this.alreadmount_data[i].PatientID == tmp){
431
-            //       console.log("i = ",i)
432
-            //       this.$refs.table02.setCurrentRow(this.alreadmount_data[i]);
433
-            //       this.handleCurrentChange(this.alreadmount_data[i])
434
-            //     }
435
-            // }
436
-          }else {
437
-            this.$message.error(res.data.msg);
438
-          }
447
+      })
448
+        .then(() => {
449
+          dispensingmedicine(params).then((res) => {
450
+            if (res.data.state == 1) {
451
+              this.$message.success("操作成功");
452
+              this.gettodaynumber();
453
+              this.searchAction();
454
+              this.tableData = null;
455
+              this.fun4(tmp);
456
+              this.state = 2;
457
+              // console.log("this.alreadmount_data",this.alreadmount_data)
458
+              // for (let i = 0;i < this.alreadmount_data.length;i++){
459
+              //   console.log("tmp = ",tmp)
460
+              //     if (this.alreadmount_data[i].PatientID == tmp){
461
+              //       console.log("i = ",i)
462
+              //       this.$refs.table02.setCurrentRow(this.alreadmount_data[i]);
463
+              //       this.handleCurrentChange(this.alreadmount_data[i])
464
+              //     }
465
+              // }
466
+            } else {
467
+              this.$message.error(res.data.msg);
468
+            }
469
+          });
439 470
         })
440
-      }).catch(() => {});
471
+        .catch(() => {});
441 472
     },
442 473
 
443
-    toSetting(){
444
-      getPharmacyConfig().then(response=>{
445
-        if(response.data.state == 1){
446
-          this.dialogVisible = true
447
-          var config = response.data.data.config
448
-          this.is_open = config.is_open.toString()
474
+    toSetting() {
475
+      getPharmacyConfig().then((response) => {
476
+        if (response.data.state == 1) {
477
+          this.dialogVisible = true;
478
+          var config = response.data.data.config;
479
+          this.is_open = config.is_open.toString();
449 480
         }
450
-      })
481
+      });
451 482
     },
452
-    SaveSetting(){
483
+    SaveSetting() {
453 484
       var params = {
454
-        is_open:parseInt(this.is_open),
455
-      }
456
-      SaveSetting(params).then(response=>{
457
-        if(response.data.state == 1){
458
-          var config = response.data.data.config
459
-          this.$message.success("保存成功!")
460
-          this.dialogVisible = false
485
+        is_open: parseInt(this.is_open),
486
+      };
487
+      SaveSetting(params).then((response) => {
488
+        if (response.data.state == 1) {
489
+          var config = response.data.data.config;
490
+          this.$message.success("保存成功!");
491
+          this.dialogVisible = false;
461 492
         }
462
-      })
493
+      });
463 494
     },
495
+
464 496
     // 药品退药
465 497
     endispense() {
466 498
       var tmp = this.currentRow.PatientID;
467 499
       var params = {
468
-        patient_id:this.currentRow.PatientID,
469
-        time:this.start_time,
500
+        patient_id: this.currentRow.PatientID,
501
+        time: this.start_time,
470 502
       };
471 503
       this.$confirm("确定是否对该药品进行退药?", "患者退药", {
472 504
         confirmButtonText: "确 定",
473 505
         cancelButtonText: "取 消",
474 506
         type: "warning",
475
-      }).then(() => {
476
-        drugwithdrawal(params).then((res) => {
477
-          if(res.data.state == 1){
478
-            this.$message.success('操作成功');
479
-            this.gettodaynumber();
480
-            this.searchAction();
481
-            this.tableData = null;
482
-            this.fun4(tmp);
483
-            this.state = 1;
484
-          }else {
485
-            this.$message.error(res.data.msg);
486
-          }
507
+      })
508
+        .then(() => {
509
+          drugwithdrawal(params).then((res) => {
510
+            if (res.data.state == 1) {
511
+              this.$message.success("操作成功");
512
+              this.gettodaynumber();
513
+              this.searchAction();
514
+              this.tableData = null;
515
+              this.fun4(tmp);
516
+              this.state = 1;
517
+            } else {
518
+              this.$message.error(res.data.msg);
519
+            }
520
+          });
487 521
         })
488
-      }).catch(() => {});
522
+        .catch(() => {});
489 523
     },
490 524
   },
491
-
492 525
 };
493 526
 </script>
494 527
 
@@ -528,4 +561,29 @@ export default {
528 561
     justify-content: flex-end;
529 562
   }
530 563
 }
531
-</style>
564
+
565
+.el-input__inner{
566
+  padding-right: 15px;
567
+}
568
+
569
+/deep/ .el-table--scrollable-x .el-table__body-wrapper {
570
+  overflow: auto;
571
+}
572
+/deep/ .gutter {
573
+  width: 15px !important;
574
+  display: inline-block !important;
575
+}
576
+/deep/ .el-table__fixed-right-patch {
577
+  width: 15px !important;
578
+}
579
+
580
+/deep/ .el-table__fixed-right {
581
+  bottom: 0 !important;
582
+  left: auto;
583
+  right: 0;
584
+}
585
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
586
+  width: 15px !important;
587
+  height: 15px !important;
588
+}
589
+</style>

+ 11 - 1
src/xt_pages/Pharmacy/print/drugPrint.vue Voir le fichier

@@ -9,10 +9,12 @@
9 9
       >打印</el-button
10 10
     >
11 11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12
+      <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}} 领药单</div></div>
12 13
       <div class="list_title">
13 14
         <div>药品名称:{{name}}</div>
14 15
         <div>规格:{{specifications}}</div>
15 16
         <div>发药状态:{{state_name}}</div>
17
+        <div>日期:</div>
16 18
 <!--        <div v-if="state==2">领药人:</div>-->
17 19
       </div>
18 20
 
@@ -83,6 +85,7 @@ export default {
83 85
       name:"",
84 86
       specifications:"",
85 87
       state_name:"",
88
+      org_name: this.$store.getters.xt_user.org.org_name,
86 89
     };
87 90
   },
88 91
   props: {
@@ -147,10 +150,14 @@ export default {
147 150
       //     scanStyles: false,
148 151
       //   });
149 152
       this.printJson({
150
-        title: `<div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;">
153
+        title: `
154
+        <div>
155
+        <div style="width: 940px;text-align:center;font-size:16px;font-weight:bold;">${this.org_name} 领药单</div>
156
+        <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;font-size:14px;">
151 157
         <div style="width: 230px;padding: 10px 0;">药品名称:${this.name}</div>
152 158
         <div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
153 159
         <div style="width: 230px;padding: 10px 0;">发药状态:${this.state_name}</div>
160
+        <div style="width: 230px;padding: 10px 0;">日期:</div>
154 161
         </div>`, // 打印出来的标题
155 162
         data: this.tableData, // 需要打印的数据
156 163
         serial: true, // 是否需要打印序列号
@@ -209,6 +216,9 @@ export default {
209 216
 </script>
210 217
 
211 218
 <style lang="scss" scoped>
219
+/deep/ .el-dialog{
220
+  width: 60%;
221
+}
212 222
 .print_style {
213 223
   position: absolute;
214 224
   right: 10px;

+ 75 - 72
src/xt_pages/Pharmacy/print/patientPrint.vue Voir le fichier

@@ -9,9 +9,11 @@
9 9
       >打印</el-button
10 10
     >
11 11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12
+       <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}} 发药单</div></div>
12 13
       <div class="list_title">
13 14
         <div>患者名称:{{name}}</div>
14 15
         <div>发药状态:{{state}}</div>
16
+        <div>日期:</div>
15 17
       </div>
16 18
 
17 19
       <el-table
@@ -21,47 +23,19 @@
21 23
         max-height="450"
22 24
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
23 25
       >
24
-        <el-table-column type="index" prop="index" label="序号" width="60">
26
+        <el-table-column type="index" prop="index" label="序号" width="60" align="center">
25 27
         </el-table-column>
26
-        <el-table-column prop="name" label="名称" width="160">
27
-          <template slot-scope="scope" >
28
-            <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
29
-          </template>
28
+        <el-table-column prop="name" label="名称" width="160" align="center">
30 29
         </el-table-column>
31
-        <el-table-column prop="SingleDosage" label="单次用量" width="120">
32
-          <template slot-scope="scope" >
33
-            <span>{{scope.row.SingleDosage ? scope.row.SingleDosage : ""}}</span>
34
-          </template>
30
+        <el-table-column prop="SingleDosage" label="单次用量" width="120" align="center">
35 31
         </el-table-column>
36
-        <el-table-column prop="use" label="用法" width="120">
37
-          <template slot-scope="scope" >
38
-            <span>{{scope.row.Usage ? scope.row.Usage : ""}}</span>
39
-          </template>
32
+        <el-table-column prop="use" label="用法" width="120" align="center"> </el-table-column>
33
+        <el-table-column prop="frequency" label="频率" width="120" align="center">
40 34
         </el-table-column>
41
-        <el-table-column prop="frequency" label="频率" width="120">
42
-          <template slot-scope="scope" >
43
-            <span>{{scope.row.Frequency ? scope.row.Frequency : ""}}</span>
44
-          </template>
35
+        <el-table-column prop="day" label="天数" width="120" align="center"> </el-table-column>
36
+        <el-table-column prop="amount" label="总量" width="120" align="center">
45 37
         </el-table-column>
46
-        <el-table-column prop="day" label="天数" width="120">
47
-          <template slot-scope="scope" >
48
-            <span>{{scope.row.Days ? scope.row.Days : ""}}</span>
49
-          </template>
50
-        </el-table-column>
51
-        <el-table-column prop="amount" label="总量" width="120">
52
-          <template slot-scope="scope" >
53
-            <span>{{scope.row.Total ? scope.row.Total : ""}}</span>
54
-          </template>
55
-        </el-table-column>
56
-        <el-table-column prop="tips" label="数据来源" width="120">
57
-          <template slot-scope="scope" >
58
-            <span>{{scope.row.DataSources ? scope.row.DataSources : ""}}</span>
59
-          </template>
60
-        </el-table-column>
61
-        <el-table-column prop="tips" label="备注" width="120">
62
-          <template slot-scope="scope" >
63
-            <span>{{scope.row.Remarks ? scope.row.Remarks : ""}}</span>
64
-          </template>
38
+        <el-table-column prop="tips" label="备注" width="120" align="center">
65 39
         </el-table-column>
66 40
       </el-table>
67 41
     </div>
@@ -76,10 +50,11 @@ export default {
76 50
   data() {
77 51
     return {
78 52
       visibility: false,
79
-      tableData: [],
53
+      tableData: [{}],
80 54
       isClose:false,
81 55
       name:"",
82 56
       state:null,
57
+      org_name: this.$store.getters.xt_user.org.org_name,
83 58
     };
84 59
   },
85 60
   props: {
@@ -103,18 +78,8 @@ export default {
103 78
         }
104 79
       }
105 80
     },
106
-    show: function (val,data,state) {
81
+    show: function () {
107 82
       this.visibility = true;
108
-      console.log("val",val)
109
-      this.tableData = val
110
-      this.name = data.Name
111
-      if (state == 1){
112
-        this.state = "待发药"
113
-      }
114
-      if (state == 2){
115
-        this.state = "已发药"
116
-      }
117
-
118 83
     },
119 84
 
120 85
     comfirm: function (formName) {
@@ -138,57 +103,61 @@ export default {
138 103
       //     scanStyles: false,
139 104
       //   });
140 105
       this.printJson({
141
-        title: `<div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;">
142
-        <div style="width: 230px;padding: 10px 0;">患者名称:${this.name}</div>
143
-        <div style="width: 230px;padding: 10px 0;">发药状态:${this.state}</div>
106
+        title: `
107
+        <div>
108
+        <div style="width: 940px;text-align:center;font-size:16px;font-weight:bold;">${this.org_name} 发药单</div>
109
+        <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;font-size:14px;">
110
+        <div style="width: 310px;padding: 10px 0;">患者名称:${this.name}</div>
111
+        <div style="width: 320px;padding: 10px 0;">发药状态:${this.state}</div>
112
+        <div style="width: 310px;padding: 10px 0;">日期:</div>
144 113
         </div>`, // 打印出来的标题
145 114
         data: this.tableData, // 需要打印的数据
146 115
         serial: true, // 是否需要打印序列号
147 116
         fields: [
148 117
           // 需要打印的字段
149
-
118
+          // "index",
150 119
           "Name",
151 120
           "SingleDosage",
152
-          "Usage",
153
-          "Frequency",
154
-          "Days",
155
-          "Total",
156
-          "DataSources",
157
-          "Remarks",
121
+          "use",
122
+          "frequency",
123
+          "day",
124
+          "amount",
125
+          "from",
126
+          "tips",
158 127
         ],
159 128
         properties: [
160 129
           // 需要打印的字段对应的表头名
161
-
130
+         
162 131
           {
163
-            field: "Name",
164
-            displayName: "名",
132
+            field: "name",
133
+            displayName: "名",
165 134
           },
166 135
           {
167 136
             field: "SingleDosage",
168
-            displayName: "单用量",
137
+            displayName: "单用量",
169 138
           },
170 139
           {
171
-            field: "Usage",
140
+            field: "use",
172 141
             displayName: "用法",
173 142
           },
174 143
           {
175
-            field: "Frequency",
144
+            field: "frequency",
176 145
             displayName: "频率",
177 146
           },
178 147
           {
179
-            field: "Days",
148
+            field: "day",
180 149
             displayName: "天数",
181 150
           },
182 151
           {
183
-            field: "Total",
152
+            field: "amount",
184 153
             displayName: "总量",
185 154
           },
186 155
           {
187
-            field: "DataSources",
156
+            field: "from",
188 157
             displayName: "数据来源",
189 158
           },
190 159
           {
191
-            field: "Remarks",
160
+            field: "tips",
192 161
             displayName: "备注",
193 162
           },
194 163
         ],
@@ -198,11 +167,19 @@ export default {
198 167
 };
199 168
 </script>
200 169
 
201
-<style lang="scss" scoped>
170
+<style rel="stylesheet/css" lang="scss" scoped>
171
+/deep/ .el-dialog{
172
+  width: 60%;
173
+}
174
+
175
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
176
+  width: 10px;
177
+  height: 10px;
178
+}
202 179
 .print_style {
203 180
   position: absolute;
204
-  right: 10px;
205
-  top: 42px;
181
+  right: 65px;
182
+  top: 50px;
206 183
 }
207 184
 
208 185
 .list_title {
@@ -212,8 +189,34 @@ export default {
212 189
   margin: 30px auto;
213 190
 
214 191
   div {
215
-    width: 230px;
192
+    width: 320px;
216 193
     padding: 10px 0;
217 194
   }
218 195
 }
196
+
219 197
 </style>
198
+
199
+<style>
200
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
201
+  font-size: 12px;
202
+}
203
+
204
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
205
+  background: #6fb5fa;
206
+}
207
+
208
+.count {
209
+  color: #bd2c00;
210
+}
211
+.el-table td,
212
+.el-table th.is-leaf,
213
+.el-table--border,
214
+.el-table--group {
215
+  border-color: #d0d3da;
216
+}
217
+.el-table--border::after,
218
+.el-table--group::after,
219
+.el-table::before {
220
+  background-color: #d0d3da;
221
+}
222
+</style>

+ 1 - 1
src/xt_pages/data/components/addDrugs.vue Voir le fichier

@@ -41,7 +41,7 @@
41 41
                         </div>
42 42
                         <div style="width:100%;display:flex;align-items:center;margin-left:120px;">
43 43
                             <el-form-item prop="dose" class="noMargin">
44
-                              <el-input v-model="form.dose" type="number" style="width:100px;margin-right:5px;" placeholder="剂量" ></el-input>
44
+                              <el-input v-model="form.dose"  style="width:100px;margin-right:5px;" placeholder="剂量" ></el-input>
45 45
                             </el-form-item>
46 46
                             <el-form-item prop="dose_unit" class="noMargin">
47 47
                               <el-select v-model="form.dose_unit" style="width:160px;" placeholder="剂量单位">

+ 1 - 1
src/xt_pages/data/components/drugs.vue Voir le fichier

@@ -92,7 +92,7 @@
92 92
       <el-table-column prop="date" label="单位&规格" align="center">
93 93
         <template slot-scope="scope">
94 94
           <div>
95
-            <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
95
+            <span>{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
96 96
           </div>
97 97
         </template>
98 98
       </el-table-column>

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue Voir le fichier

@@ -857,7 +857,7 @@
857 857
                 </tr>
858 858
                 <tr>
859 859
                   <td style="width:60px" rowspan="2">时间</td>
860
-                  <td colspan="4">透析参数</td>
860
+                  <td colspan="5">透析参数</td>
861 861
                   <td colspan="5">生命体征</td>
862 862
                   <td colspan="2">治疗中病情变化</td>
863 863
                   <td style="width:80px" rowspan="2">护士签名</td>
@@ -879,6 +879,10 @@
879 879
                     <p style="height:20px;line-height:20px">脱水量</p>
880 880
                     <p style="height:20px;line-height:20px">ml</p>
881 881
                   </th>
882
+                  <th style="width: 70px">
883
+                    <p style="height: 20px; line-height: 20px">KT/V</p>
884
+                    <p style="height: 20px; line-height: 20px">&nbsp;</p>
885
+                  </th>
882 886
                   <th style="width:30px">
883 887
                     <p style="height:20px;line-height:20px">T</p>
884 888
                     <p style="height:20px;line-height:20px">℃</p>
@@ -949,6 +953,15 @@
949 953
                       }}
950 954
                     </span>
951 955
                   </td>
956
+                  <td>
957
+                    <span v-if="getTime(monitor.operate_time) != ''">
958
+                      {{
959
+                        monitor.ktv
960
+                        ? monitor.ktv
961
+                        : ""
962
+                      }}
963
+                    </span>
964
+            </td>
952 965
                   <td>
953 966
                     <span v-if="getTime(monitor.operate_time) != ''">
954 967
                       {{ monitor.temperature ? monitor.temperature : "0" }}

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Voir le fichier

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

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Voir le fichier

@@ -82,7 +82,7 @@
82 82
                     </el-col>
83 83
 
84 84
                     <el-col :span="8"
85
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249)">
85
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249)">
86 86
                         <el-form-item label="目标超滤量(ml):">
87 87
                             <el-input
88 88
                                     type="number"
@@ -93,7 +93,7 @@
93 93
 
94 94
 
95 95
                     <el-col :span="8"
96
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249">
96
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249">
97 97
                         <el-form-item label="目标超滤量(L):">
98 98
                             <el-input
99 99
                                     type="number"

+ 16 - 0
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Voir le fichier

@@ -233,6 +233,7 @@
233 233
                 template_id == 51 ||
234 234
                 template_id == 53 ||
235 235
                 template_id == 54 ||
236
+                template_id == 56 ||
236 237
                 org_id == 10210 ||
237 238
                 org_id == 9555)
238 239
             "
@@ -287,6 +288,7 @@
287 288
               template_id != 51 &&
288 289
               template_id != 53 &&
289 290
               template_id != 54 &&
291
+              template_id != 56 &&
290 292
               org_id!= 10210 &&
291 293
               org_id != 9555
292 294
             "
@@ -334,6 +336,7 @@
334 336
                 template_id == 48 ||
335 337
                 template_id == 53 ||
336 338
                 template_id == 54 ||
339
+                template_id == 56 ||
337 340
                 template_id == 47)
338 341
             "
339 342
           >
@@ -378,6 +381,7 @@
378 381
               template_id != 46 &&
379 382
               template_id != 53 &&
380 383
               template_id != 54 &&
384
+              template_id != 56 &&
381 385
               template_id != 48 &&
382 386
               template_id != 47
383 387
             "
@@ -436,6 +440,7 @@
436 440
                 template_id == 48 ||
437 441
                 template_id == 53 ||
438 442
                 template_id == 54 ||
443
+                template_id == 56 ||
439 444
                 template_id == 47)
440 445
             "
441 446
           >
@@ -460,6 +465,7 @@
460 465
               template_id != 48 &&
461 466
               template_id != 53 &&
462 467
               template_id != 54 &&
468
+              template_id != 56 &&
463 469
               template_id != 47
464 470
             "
465 471
           >
@@ -501,6 +507,7 @@
501 507
                 template_id == 29 ||
502 508
                 template_id == 53 ||
503 509
                 template_id == 54 ||
510
+                template_id == 56 ||
504 511
                 template_id == 48)
505 512
             "
506 513
           >
@@ -529,6 +536,7 @@
529 536
               template_id != 43 &&
530 537
               template_id != 53 &&
531 538
               template_id != 54 &&
539
+              template_id != 56 &&
532 540
               template_id != 48
533 541
             "
534 542
           >
@@ -1017,6 +1025,7 @@
1017 1025
                 template_id == 48 ||
1018 1026
                 template_id == 53 ||
1019 1027
                 template_id == 54 ||
1028
+                template_id == 56 ||
1020 1029
                 template_id == 47)
1021 1030
             "
1022 1031
           >
@@ -1055,6 +1064,7 @@
1055 1064
               template_id != 48 &&
1056 1065
               template_id != 53 &&
1057 1066
               template_id != 54 &&
1067
+              template_id != 56 &&
1058 1068
               template_id != 47
1059 1069
             "
1060 1070
           >
@@ -1100,6 +1110,7 @@
1100 1110
                 template_id == 51 ||
1101 1111
                 template_id == 53 ||
1102 1112
                 template_id == 54 ||
1113
+                template_id == 56 ||
1103 1114
                 org_id == 10210 ||
1104 1115
                 org_id == 9555)
1105 1116
             "
@@ -1146,6 +1157,7 @@
1146 1157
               template_id == 48 &&
1147 1158
               template_id == 53 &&
1148 1159
               template_id == 54 &&
1160
+              template_id == 56 &&
1149 1161
               org_id !=  10210 &&
1150 1162
               org_id != 9555
1151 1163
             "
@@ -1182,6 +1194,7 @@
1182 1194
               template_id != 47 &&
1183 1195
               template_id != 48 &&
1184 1196
               template_id != 54 &&
1197
+              template_id != 56 &&
1185 1198
               template_id != 53
1186 1199
             "
1187 1200
           >
@@ -1203,6 +1216,7 @@
1203 1216
                 template_id == 47 ||
1204 1217
                 template_id == 53 ||
1205 1218
                 template_id == 54 ||
1219
+                template_id == 56 ||
1206 1220
                 template_id == 48)
1207 1221
             "
1208 1222
           >
@@ -1229,6 +1243,7 @@
1229 1243
               template_id != 46 &&
1230 1244
               template_id != 53 &&
1231 1245
               template_id != 54 &&
1246
+              template_id != 56 &&
1232 1247
               template_id != 48
1233 1248
             "
1234 1249
           >
@@ -1252,6 +1267,7 @@
1252 1267
                 template_id == 46 ||
1253 1268
                 template_id == 53 ||
1254 1269
                 template_id == 54 ||
1270
+                template_id == 56 ||
1255 1271
                 template_id == 48)
1256 1272
             "
1257 1273
           >

+ 8 - 8
src/xt_pages/dialysis/details/dialysisMonitoring.vue Voir le fichier

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

+ 36 - 31
src/xt_pages/dialysis/details/index.vue Voir le fichier

@@ -17,13 +17,13 @@
17 17
           @click="next"
18 18
           >下一位</el-button
19 19
         >
20
-        <el-button
20
+        <!-- <el-button
21 21
           size="small"
22 22
           type="primary"
23 23
           @click="printOrderOne"
24 24
           icon="el-icon-printer"
25
-          >打印上机单</el-button
26
-        >
25
+          >打印上机单</el-button> -->
26
+
27 27
         <el-button
28 28
           size="small"
29 29
           type="primary"
@@ -214,7 +214,7 @@
214 214
         </el-tab-pane>
215 215
       </el-tabs>
216 216
 
217
-     
217
+
218 218
 
219 219
         <el-dialog
220 220
                 :visible.sync="startVisibility"
@@ -237,8 +237,7 @@
237 237
              <div v-for="(main_collection,index) in printList" :key="index">
238 238
               <div class="signPrint" style="font-size:16px;">
239 239
                 <div style="margin-left:50px;">姓名:
240
-                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
241
-                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
240
+                  <span>{{main_collection.patient.name}} </span>
242 241
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
243 242
                 </div>
244 243
                 <div class="printCell">
@@ -248,12 +247,12 @@
248 247
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
249 248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
250 249
                   </span>
251
-                  <span> </span>
250
+                  <span>{{ printDate }}</span>
252 251
                 </div>
253 252
                 <div class="printCell">
254 253
                    <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
255 254
                     <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
256
-                 
255
+
257 256
                 </div>
258 257
                 <div class="printCell">
259 258
                   <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
@@ -290,7 +289,7 @@
290 289
                    </span>
291 290
                 </div>
292 291
                 <div class="printCell">
293
-                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after).toFixed(2) }}Kg</span>
292
+                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
294 293
                  维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
295 294
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
296 295
                     mg/h
@@ -371,7 +370,6 @@
371 370
 
372 371
       <span slot="footer" class="dialog-footer">
373 372
         <el-button @click="startVisibility = false">取 消</el-button>
374
-        <el-button type="primary" @click="startVisibility = false">确 定</el-button>
375 373
       </span>
376 374
     </el-dialog>
377 375
 
@@ -858,9 +856,12 @@ export default {
858 856
       startVisibility:false,
859 857
       printList:[],
860 858
       anticoagulants_confit:null,
859
+      printDate:'',
860
+      assessmentAfterDislysis:{},
861 861
     }
862 862
   },
863 863
   created() {
864
+   this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
864 865
     if(this.$route.query.showView){
865 866
       this.showView = this.$route.query.showView
866 867
     }
@@ -903,7 +904,7 @@ export default {
903 904
     };
904 905
     this.websocketSend(this.initData)
905 906
     this.getInitData()
906
-    this.getInitPrintData()
907
+
907 908
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
908 909
   },
909 910
   beforeMount() {
@@ -1173,11 +1174,11 @@ export default {
1173 1174
           }
1174 1175
 
1175 1176
           var solution = resp.data.solution // 透析方案
1176
-         
1177
+
1177 1178
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
1178 1179
 
1179 1180
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
1180
-        
1181
+
1181 1182
           if (predialysis_evaluation != null) {
1182 1183
             if (predialysis_evaluation.blood_access_part_id == -2) {
1183 1184
               predialysis_evaluation.blood_access_part_id = 0
@@ -1230,7 +1231,7 @@ export default {
1230 1231
           var system_prescribe = resp.data.system_prescribe
1231 1232
 
1232 1233
           var lastAssessment =  resp.data.lastAssessment
1233
-         
1234
+
1234 1235
           this.$refs.nav.setLastRecord(
1235 1236
             lastPredialysisEvaluation,
1236 1237
             lastMonitorRecord,
@@ -1320,12 +1321,12 @@ export default {
1320 1321
           this.device_numbers = resp.data.device_numbers
1321 1322
 
1322 1323
           var his_doctor_advices = resp.data.his_advices
1323
-        
1324
+
1324 1325
           this.his_doctor_advices = his_doctor_advices
1325 1326
           this.his_is_open = resp.data.is_open_config.is_open
1326 1327
 
1327 1328
           this.is_advice_open = resp.data.is_advice_open.is_advice_open
1328
-          
1329
+
1329 1330
           var stockType =  resp.data.stockType
1330 1331
           this.stockType = stockType
1331 1332
 
@@ -1336,7 +1337,7 @@ export default {
1336 1337
           }else{
1337 1338
             this.preparestock = []
1338 1339
           }
1339
-    
1340
+
1340 1341
           for (let i = 0; i <  this.doctor_advices.length; i++){
1341 1342
             this.doctor_advices[i]['origin'] = 1
1342 1343
           }
@@ -1400,7 +1401,8 @@ export default {
1400 1401
       )
1401 1402
     },
1402 1403
     printOrderOne(){
1403
-      this.startVisibility = true
1404
+      this.getInitPrintData()
1405
+
1404 1406
     },
1405 1407
     // 日期
1406 1408
     handleScheduleDateChange: function(index) {
@@ -1524,7 +1526,7 @@ export default {
1524 1526
           //   }
1525 1527
           // }
1526 1528
 
1527
-         
1529
+
1528 1530
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1529 1531
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1530 1532
           if (this.activeName == 'first') {
@@ -1552,7 +1554,7 @@ export default {
1552 1554
           })
1553 1555
           this.tableData = newArr
1554 1556
           this.getData()
1555
-         
1557
+
1556 1558
         } else {
1557 1559
           this.$message.error(resp.msg)
1558 1560
         }
@@ -1725,13 +1727,13 @@ export default {
1725 1727
           for (let j = 0; j < patientArr[i].schedules.length; j++) {
1726 1728
             if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
1727 1729
               // 删除元素后改变i的值
1728
-              
1730
+
1729 1731
               patientArr[i].schedules.splice(j--, 1)
1730 1732
             }
1731 1733
           }
1732 1734
         }
1733 1735
         let arr1 = []
1734
-     
1736
+
1735 1737
         // let patientArr =
1736 1738
         if (this.patientStateVal == 0) {
1737 1739
           arr1 = patientArr
@@ -1746,7 +1748,7 @@ export default {
1746 1748
               }
1747 1749
             }
1748 1750
           }
1749
-         
1751
+
1750 1752
           arr1 = arr
1751 1753
         } else if (this.patientStateVal == 2) {
1752 1754
           let arr = []
@@ -1759,7 +1761,7 @@ export default {
1759 1761
               }
1760 1762
             }
1761 1763
           }
1762
-         
1764
+
1763 1765
           arr1 = arr
1764 1766
         } else if (this.patientStateVal == 3) {
1765 1767
           let arr = []
@@ -1785,7 +1787,7 @@ export default {
1785 1787
               }
1786 1788
             }
1787 1789
           }
1788
-      
1790
+
1789 1791
           arr1 = arr
1790 1792
         }
1791 1793
 
@@ -1809,7 +1811,7 @@ export default {
1809 1811
           arr = JSON.parse(JSON.stringify(arr1))
1810 1812
           for (let i = 0; i < arr.length; i++) {
1811 1813
             for (let j = 0; j < arr[i].schedules.length; j++) {
1812
-             
1814
+
1813 1815
               if(arr[i].schedules[j].doctor_advice.length == 0){
1814 1816
                 arr[i].schedules.splice(j--, 1)
1815 1817
               }
@@ -1918,7 +1920,7 @@ export default {
1918 1920
       }
1919 1921
     },
1920 1922
     websocketMess() {
1921
-     
1923
+
1922 1924
       this.websocket.onmessage = e => {
1923 1925
         let res = JSON.parse(e.data);
1924 1926
         // let res = re.data;
@@ -1967,7 +1969,7 @@ export default {
1967 1969
                   calledArr.push(item)
1968 1970
               }
1969 1971
           })
1970
-    
1972
+
1971 1973
           this.waitingCalled = waitingCalledArr
1972 1974
           this.called = calledArr
1973 1975
         }else if(res.channel == 'allQueueList'){
@@ -2024,7 +2026,7 @@ export default {
2024 2026
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
2025 2027
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
2026 2028
       axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
2027
-       
2029
+
2028 2030
         // let patientArr = res.data.queue_list.data
2029 2031
         // this.patientArr = patientArr
2030 2032
         // this.$emit('child-event',this.patientArr)
@@ -2086,7 +2088,7 @@ export default {
2086 2088
       }else {
2087 2089
         schedule_type = 2
2088 2090
       }
2089
-     
2091
+
2090 2092
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
2091 2093
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
2092 2094
       axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
@@ -2150,7 +2152,7 @@ export default {
2150 2152
           documentTitle: '  ',
2151 2153
           style: style1,
2152 2154
           scanStyles: false
2153
-        }) 
2155
+        })
2154 2156
       },
2155 2157
     getInitPrintData(){
2156 2158
        var params = {
@@ -2160,8 +2162,11 @@ export default {
2160 2162
       getInitPrintData(params).then(response=>{
2161 2163
         if(response.data.state == 1){
2162 2164
           var list = response.data.data.list
2165
+          var assessmentAfterDislysis =  response.data.data.assessmentAfterDislysis
2163 2166
           console.log("list2332322332",list)
2164 2167
           this.printList = list
2168
+          this.assessmentAfterDislysis = assessmentAfterDislysis
2169
+          this.startVisibility = true
2165 2170
         }
2166 2171
       })
2167 2172
     }

+ 3 - 5
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Voir le fichier

@@ -559,7 +559,7 @@ export default {
559 559
             
560 560
             if(project_config.is_open == 1){
561 561
               this.project = resp.data.project
562
-              console.log( this.project)
562
+              console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
563 563
              
564 564
               let projectArr = []
565 565
               if(this.org_id!= 10318){
@@ -570,7 +570,7 @@ export default {
570 570
                     }
571 571
                   })
572 572
                 })
573
-                
573
+                console.log("projectArr2332323232323232",projectArr)
574 574
                  resp.data.hisAdvices.map((item,index) => {
575 575
                   if(projectArr[index].project && projectArr[index].project.length > 0){
576 576
                      projectArr[index].project.map(it => {
@@ -598,10 +598,8 @@ export default {
598 598
                     })
599 599
                   }
600 600
                 })
601
+                console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
601 602
               }
602
-            
603
-             
604
-
605 603
             }
606 604
            
607 605
            if(config.is_open == 0 || config.is_open == 2){

+ 1 - 1
src/xt_pages/dialysis/dialysisPage.vue Voir le fichier

@@ -648,7 +648,7 @@
648 648
                     <p>{{ DialysisPrescriptionComfirmUserName }}</p>
649 649
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescriptionAndOther">提交并设为长期处方</el-button>
650 650
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescription">提交</el-button>
651
-                    <el-button type="primary" @click="printDan">打印上机单</el-button>
651
+                    <!-- <el-button type="primary" @click="printDan">打印上机单</el-button> -->
652 652
                   </el-form-item>
653 653
                 </el-col>
654 654
 

+ 65 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue Voir le fichier

@@ -688,6 +688,34 @@
688 688
           >打印</el-button
689 689
         >
690 690
       </template>
691
+      <template
692
+        v-if="
693
+          org_template_info.template_id == 55
694
+        "
695
+      >
696
+        <el-button
697
+          :loading="loading"
698
+          size="small"
699
+          icon="el-icon-printer"
700
+          @click="printThisPage"
701
+          type="primary"
702
+          >打印</el-button
703
+        >
704
+      </template>
705
+      <template
706
+        v-if="
707
+          org_template_info.template_id == 56
708
+        "
709
+      >
710
+        <el-button
711
+          :loading="loading"
712
+          size="small"
713
+          icon="el-icon-printer"
714
+          @click="printThisPage"
715
+          type="primary"
716
+          >打印</el-button
717
+        >
718
+      </template>
691 719
     </div>
692 720
     <div class="app-container" style="min-height: 0">
693 721
       <!--<div class="order-print-btn"-->
@@ -846,7 +874,7 @@
846 874
             v-if="org_template_info.template_id == 5"
847 875
           >
848 876
           </DialysisPrintOrderFive>
849
-
877
+                                  
850 878
           <DialysisPrintOrderSix
851 879
             v-bind:childResponse="childResponse"
852 880
             v-if="org_template_info.template_id == 6"
@@ -1089,6 +1117,16 @@
1089 1117
             v-if="org_template_info.template_id == 54"
1090 1118
           >
1091 1119
           </DialysisPrintOrderFiftyFour>
1120
+           <DialysisPrintOrderFiftyfive
1121
+            v-bind:childResponse="childResponse"
1122
+            v-if="org_template_info.template_id == 55"
1123
+          >
1124
+          </DialysisPrintOrderFiftyfive>
1125
+          <DialysisPrintOrderFiftySix
1126
+            v-bind:childResponse="childResponse"
1127
+            v-if="org_template_info.template_id == 56"
1128
+          >
1129
+          </DialysisPrintOrderFiftySix>
1092 1130
           
1093 1131
         </div>
1094 1132
       </el-container>
@@ -1161,10 +1199,14 @@ import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
1161 1199
 import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1162 1200
 import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo";
1163 1201
 import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree";
1164
-import DialysisPrintOrderFiftyFour from "./template/DialysisPrintOrderFiftyFour"
1202
+import DialysisPrintOrderFiftyFour from "./template/DialysisPrintOrderFiftyFour";
1203
+import DialysisPrintOrderFiftyfive from "./template/DialysisPrintOrderFiftyfive"
1204
+import DialysisPrintOrderFiftySix from "./template/DialysisPrintOrderFiftySix"
1165 1205
 export default {
1166 1206
   name: "dialysisPrintOrder",
1167 1207
   components: {
1208
+    DialysisPrintOrderFiftySix,
1209
+    DialysisPrintOrderFiftyfive,
1168 1210
     DialysisPrintOrderFiftyFour,
1169 1211
     DialysisPrintOrderFiftyThree,
1170 1212
     DialysisPrintOrderFiftyTwo,
@@ -1379,7 +1421,7 @@ export default {
1379 1421
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1380 1422
       const style2 =
1381 1423
         // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1382
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1424
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1383 1425
       const style3 =
1384 1426
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1385 1427
       // const style3 =
@@ -1402,8 +1444,8 @@ export default {
1402 1444
       // 三明曙光样式
1403 1445
       const style11 =
1404 1446
         '@media print {.dialysis-print-order{width:960px;margin:100px auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:30px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:15px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1405
-      // 漳浦天福样式
1406
-      const style12 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1447
+      // 雷州惠爱样式
1448
+      const style12 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto;margin-top:50px;} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .dialysis-print-order .print-table .short_tr th p{height:20px !important; line-height:20px !important;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .td_div1{display:flex;white-space: normal;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-table tr th p{height: 20px; line-height: 20px}  .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;} ';
1407 1449
       // 金乡宏大样式
1408 1450
       const style13 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 390px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-4{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-4 .tr_3{border-bottom: 1px solid;}  .print-table-4 .td_3 {border-right: 1px solid;} .print-table-4 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-4 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-5{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-5 tr td_5{width:75px;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1409 1451
 
@@ -1762,6 +1804,24 @@ export default {
1762 1804
           style: style13,
1763 1805
           scanStyles: false,
1764 1806
         });
1807
+      }else if (
1808
+        this.org_template_info.template_id == 55
1809
+      ) {
1810
+        printJS({
1811
+          printable: "dialysis-print-box-1",
1812
+          type: "html",
1813
+          style: style2,
1814
+          scanStyles: false,
1815
+        });
1816
+      }else if (
1817
+        this.org_template_info.template_id == 56
1818
+      ) {
1819
+        printJS({
1820
+          printable: "dialysis-print-box-1",
1821
+          type: "html",
1822
+          style: style2,
1823
+          scanStyles: false,
1824
+        });
1765 1825
       }
1766 1826
     },
1767 1827
     printThisOnePage() {

Fichier diff supprimé car celui-ci est trop grand
+ 3791 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftySix.vue


+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue Voir le fichier

@@ -324,14 +324,14 @@
324 324
               医师签名:
325 325
               <span
326 326
                 style="height: 20px"
327
-                v-if="setAdminUserES(prescription.creater) == ''"
327
+                v-if="setAdminUserES(prescription.modifier) == ''"
328 328
               >
329
-                {{ getAdminUser(prescription.creater) }}
329
+                {{ getAdminUser(prescription.modifier) }}
330 330
               </span>
331 331
               <img
332 332
                 class="es-img"
333 333
                 style="height: 25px"
334
-                :src="setAdminUserES(prescription.creater)"
334
+                :src="setAdminUserES(prescription.modifier)"
335 335
                 alt
336 336
                 srcset
337 337
                 v-else

Fichier diff supprimé car celui-ci est trop grand
+ 3598 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyfive.vue


+ 1 - 6
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue Voir le fichier

@@ -186,12 +186,7 @@
186 186
           </span>
187 187
           <span style="position: absolute; top: 235px; left: 250px">
188 188
             <span v-if="zhongwen.indexOf('仟') > -1">
189
-              {{
190
-                zhongwen.substring(
191
-                  zhongwen.indexOf("仟") - 1,
192
-                  zhongwen.indexOf("仟")
193
-                )
194
-              }}
189
+              {{zhongwen.substring(zhongwen.indexOf("仟") - 1,zhongwen.indexOf("仟"))}}
195 190
             </span>
196 191
             <span v-else>零</span>
197 192
           </span>

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Voir le fichier

@@ -420,7 +420,7 @@ export default {
420 420
               this.balanceAccounts.order_info.map((item) => {
421 421
                 if (item.advice_id > 0) {
422 422
                   obj.details.push(item);
423
-                  obj.total += item.pric * item.advice.prescribing_number;
423
+                  obj.total += item.pric.toFixed(2) * item.advice.prescribing_number
424 424
                   num++;
425 425
                 } else {
426 426
                   if (item.project.type == 2) {

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue Voir le fichier

@@ -1234,7 +1234,7 @@ export default {
1234 1234
         number: obj.mdtrt_id,
1235 1235
         name: obj.patient.name,
1236 1236
         age: obj.age,
1237
-        gend: obj.gend,
1237
+        gend: obj.patient.gender,
1238 1238
         setl_time: obj.setl_time,
1239 1239
         chargeName: this.getName(obj.creator),
1240 1240
       };

+ 7 - 0
src/xt_pages/stock/query/expiryDateQuery.vue Voir le fichier

@@ -0,0 +1,7 @@
1
+<template>
2
+  <div class="main-contain">
3
+     <div class="app-container ">
4
+       有效期 库存查询喔喔喔
5
+     </div>
6
+  </div>
7
+</template>

+ 185 - 0
src/xt_pages/stock/query/goodNewQuery.vue Voir le fichier

@@ -0,0 +1,185 @@
1
+<template>
2
+  <div class="main-contain">
3
+     <div class="app-container ">
4
+        <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
5
+         <div>
6
+          <span>仓库:</span>
7
+          <el-select v-model="storehouse_id" style="width:200px;margin-right:10px;" placeholder="请选择"
8
+          filterable
9
+           @change="changeStorehouseName">
10
+            <el-option
11
+              v-for="item in houseList"
12
+              :key="item.id"
13
+              :label="item.storehouse_name"
14
+              :value="item.id">
15
+            </el-option>
16
+          </el-select>
17
+          <span>库存预警:</span>
18
+          <el-select v-model="good_id" style="width:250px;margin-right:10px;" placeholder="请选择"
19
+          filterable
20
+           @change="changeGoodName">
21
+            <el-option
22
+              v-for="item in goodList"
23
+              :key="item.id"
24
+              :label="item.good_name"
25
+              :value="item.id">
26
+            </el-option>
27
+          </el-select>
28
+         </div>
29
+        </div>
30
+
31
+           <el-table
32
+            :row-style="{ color: '#303133' }"
33
+            :header-cell-style="{
34
+              backgroundColor: 'rgb(245, 247, 250)',
35
+              color: '#606266'
36
+            }"
37
+            :data="tableList"
38
+            :class="signAndWeighBoxPatients"
39
+            border
40
+          >
41
+            <el-table-column label="耗材类型" align="center">
42
+              <template slot-scope="scope">
43
+                
44
+            </template>
45
+            </el-table-column>
46
+            <el-table-column label="耗材名称" align="center">
47
+              <template slot-scope="scope">
48
+               
49
+              </template>
50
+            </el-table-column>
51
+            <el-table-column label="规格&单位" align="center">
52
+                <template slot-scope="scope">
53
+                  
54
+                </template>
55
+            </el-table-column>
56
+            <el-table-column label="生产厂商" align="center">
57
+                <template slot-scope="scope">
58
+                 
59
+                </template>
60
+            </el-table-column>
61
+            <el-table-column label="国家编码" align="center">
62
+              <template slot-scope="scope">
63
+               
64
+              </template>
65
+            </el-table-column>
66
+            <el-table-column label="仓库名称" align="center">
67
+              <template slot-scope="scope">
68
+             
69
+              </template>
70
+            </el-table-column>
71
+        
72
+    
73
+            <el-table-column label="入库量" align="center">
74
+              <template slot-scope="scope">
75
+                
76
+              </template>
77
+            </el-table-column>
78
+
79
+            <el-table-column label="出库量" align="center">
80
+              <template slot-scope="scope">
81
+                
82
+              </template>
83
+            </el-table-column>
84
+
85
+            <el-table-column label="退库数量" align="center">
86
+              <template slot-scope="scope">
87
+                
88
+              </template>
89
+            </el-table-column>
90
+
91
+             <el-table-column label="实际出库" align="center">
92
+              <template slot-scope="scope">
93
+                
94
+              </template>
95
+            </el-table-column>
96
+
97
+            <el-table-column label="剩余库存" align="center">
98
+              <template slot-scope="scope">
99
+                
100
+              </template>
101
+            </el-table-column>
102
+
103
+            <el-table-column label="总库存量" align="center">
104
+              <template slot-scope="scope">
105
+                
106
+              </template>
107
+            </el-table-column>
108
+           
109
+            <el-table-column label="操作" align="center">
110
+             
111
+              <template slot-scope="scope">
112
+                <el-button
113
+                  size="small"
114
+                  type="primary"
115
+                  @click="toClick(scope.row)"
116
+                >库存流水
117
+                </el-button>
118
+                <el-button
119
+                  size="small"
120
+                  type="primary"
121
+                  @click="toClickOne(scope.row)"
122
+                >批次
123
+                </el-button>
124
+               </template>
125
+            </el-table-column>
126
+
127
+          </el-table>
128
+     </div>
129
+
130
+  </div>
131
+</template>
132
+<script>
133
+export default {
134
+
135
+  data(){
136
+    return{
137
+     tableList:[],
138
+     goodList:[],
139
+     houseList:[],
140
+     storehouse_id:0,
141
+     good_id:0,
142
+     multipleSelection: [],
143
+     signAndWeighBoxPatients: "sign-and-weigh-box-patients",
144
+     manufacturerList:[],
145
+    }
146
+  
147
+  },
148
+  methods:{
149
+    changeStorehouseName(){
150
+
151
+    },
152
+    changeGoodName(){
153
+
154
+    },
155
+    toClick(val){
156
+       var manufacturer_name = ""
157
+       var specification_name = ""
158
+       for(let i=0;i<this.manufacturerList.length;i++){
159
+          if(val.manufacturer == this.manufacturerList[i].id){
160
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
161
+          }
162
+       }
163
+      specification_name = val.specification_name + "/" + val.packing_unit
164
+      var overCount  = this.getOverplus(val.xt_warehouse_info)
165
+      // window.sessionStorage.setItem('start_time',this.start_time)
166
+      // window.sessionStorage.setItem('end_time',this.end_time)
167
+      this.$router.push({path:"/stock/in/stockflow?id="+val.id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
168
+    },
169
+    toClickOne(val){
170
+      var manufacturer_name = ""
171
+      for(let i=0;i<this.manufacturerList.length;i++){
172
+          if(val.manufacturer == this.manufacturerList[i].id){
173
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
174
+          }
175
+       }
176
+      specification_name = val.specification_name + "/" + val.packing_unit
177
+      var overCount  = this.getOverplus(val.xt_warehouse_info)
178
+      // window.sessionStorage.setItem('start_time',this.start_time)
179
+      // window.sessionStorage.setItem('end_time',this.end_time)
180
+      this.$router.push({path:"/stock/in/stockbatchnumber?id="+val.id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
181
+    },
182
+  }
183
+}
184
+</script>
185
+

+ 7 - 0
src/xt_pages/stock/query/patientQuery.vue Voir le fichier

@@ -0,0 +1,7 @@
1
+<template>
2
+  <div class="main-contain">
3
+     <div class="app-container ">
4
+       患者查询 库存查询喔喔喔
5
+     </div>
6
+  </div>
7
+</template>

+ 7 - 0
src/xt_pages/stock/query/purchaseStockQuery.vue Voir le fichier

@@ -0,0 +1,7 @@
1
+<template>
2
+  <div class="main-contain">
3
+     <div class="app-container ">
4
+        进销存 库存查询喔喔喔
5
+     </div>
6
+  </div>
7
+</template>

+ 135 - 0
src/xt_pages/stock/stockNewQuery.vue Voir le fichier

@@ -0,0 +1,135 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+     
6
+    </div>
7
+     <div class="app-container ">
8
+        <el-tabs v-model="activeName" @tab-click="handleClick">
9
+            <el-tab-pane label="库存查询" name="first">
10
+              <GoodNewQuery></GoodNewQuery>
11
+            </el-tab-pane>
12
+            <el-tab-pane label="进销存查询" name="second">
13
+               <PurchaseStockQuery></PurchaseStockQuery>
14
+           </el-tab-pane>
15
+            <el-tab-pane label="有效期查询" name="third">
16
+                <expiryDateQuery></expiryDateQuery>
17
+            </el-tab-pane>
18
+            <el-tab-pane label="患者查询" name="fourth">
19
+                <patientQuery></patientQuery>
20
+            </el-tab-pane>
21
+        </el-tabs>
22
+     </div>
23
+  </div>
24
+</template>
25
+
26
+<script>
27
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
28
+import GoodNewQuery from "@/xt_pages/stock/query/goodNewQuery"
29
+import ExpiryDateQuery from "@/xt_pages/stock/query/expiryDateQuery"
30
+import PurchaseStockQuery from "@/xt_pages/stock/query/purchaseStockQuery"
31
+import PatientQuery from "@/xt_pages/stock/query/patientQuery"
32
+export default {
33
+  name: "stockNewQuery",
34
+  
35
+  components: {
36
+    BreadCrumb,
37
+    GoodNewQuery,
38
+    ExpiryDateQuery,
39
+    PurchaseStockQuery,
40
+    PatientQuery
41
+  },
42
+  data() {
43
+    return {
44
+      crumbs: [
45
+        { path: false, name: "库存管理" },
46
+        { path: "/stock/query", name: "库存查询" }
47
+      ],
48
+      multipleSelection: [],
49
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
50
+      activeName: 'first'
51
+    };
52
+  },
53
+  methods:{
54
+    handleClick(){
55
+        
56
+    }
57
+  }
58
+};
59
+</script>
60
+
61
+<style rel="stylesheet/css" lang="scss" scoped>
62
+.information {
63
+  border: 1px #dcdfe6 solid;
64
+  padding: 30px 20px 30px 20px;
65
+
66
+  .border {
67
+    border-bottom: 1px #dcdfe6 solid;
68
+    margin: 0px 0 20px 0;
69
+  }
70
+}
71
+
72
+.title {
73
+  background: #409eff;
74
+  height: 44px;
75
+  line-height: 44px;
76
+  padding: 0 0 0 10px;
77
+  color: #fff;
78
+  margin: 0 0 10px 0;
79
+}
80
+
81
+.edit_separater {
82
+  border-top: 1px solid rgb(233, 233, 233);
83
+  margin-top: 15px;
84
+  margin-bottom: 15px;
85
+}
86
+</style>
87
+
88
+<style>
89
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
90
+  font-size: 12px;
91
+}
92
+
93
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
94
+  background: #6fb5fa;
95
+}
96
+
97
+.count {
98
+  color: #bd2c00;
99
+}
100
+.el-table td,
101
+.el-table th.is-leaf,
102
+.el-table--border,
103
+.el-table--group {
104
+  border-color: #d0d3da;
105
+}
106
+.el-table--border::after,
107
+.el-table--group::after,
108
+.el-table::before {
109
+  background-color: #d0d3da;
110
+}
111
+
112
+/* 合并表格线样式 */
113
+
114
+.spanClass .cell {
115
+  padding: 0 !important;
116
+}
117
+
118
+.spanClass .cell tr {
119
+  display: inline-block;
120
+  width: 100%;
121
+  /* height: 44px; */
122
+}
123
+
124
+.spanClass .cell tr td {
125
+  padding: 10px 0;
126
+  border-bottom: 1px solid #ebeef5;
127
+  display: block;
128
+  width: 100%;
129
+  min-height: 44px;
130
+}
131
+.spanClass .cell tr:last-of-type td{
132
+  border-bottom: none;
133
+}
134
+
135
+</style>