Browse Source

优化代码以及添加 icon 的自动导入

DESKTOP-MINPJAU\Administrator 3 years ago
parent
commit
925871f1fe

+ 494 - 0
package-lock.json

@@ -39,6 +39,7 @@
         "@vue/compiler-sfc": "^3.2.37",
         "sass": "^1.32.12",
         "unplugin-auto-import": "^0.9.2",
+        "unplugin-icons": "^0.14.6",
         "vite": "2.9.13",
         "vite-plugin-mock": "2.9.6",
         "vite-plugin-vue-setup-extend": "^0.4.0",
@@ -73,6 +74,174 @@
         "node": ">=6.0.0"
       }
     },
+    "node_modules/@antfu/install-pkg": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmmirror.com/@antfu/install-pkg/-/install-pkg-0.1.0.tgz",
+      "integrity": "sha512-VaIJd3d1o7irZfK1U0nvBsHMyjkuyMP3HKYVV53z8DKyulkHKmjhhtccXO51WSPeeSHIeoJEoNOKavYpS7jkZw==",
+      "dev": true,
+      "dependencies": {
+        "execa": "^5.1.1",
+        "find-up": "^5.0.0"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/cross-spawn": {
+      "version": "7.0.3",
+      "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz",
+      "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+      "dev": true,
+      "dependencies": {
+        "path-key": "^3.1.0",
+        "shebang-command": "^2.0.0",
+        "which": "^2.0.1"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/execa": {
+      "version": "5.1.1",
+      "resolved": "https://registry.npmmirror.com/execa/-/execa-5.1.1.tgz",
+      "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
+      "dev": true,
+      "dependencies": {
+        "cross-spawn": "^7.0.3",
+        "get-stream": "^6.0.0",
+        "human-signals": "^2.1.0",
+        "is-stream": "^2.0.0",
+        "merge-stream": "^2.0.0",
+        "npm-run-path": "^4.0.1",
+        "onetime": "^5.1.2",
+        "signal-exit": "^3.0.3",
+        "strip-final-newline": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/find-up": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz",
+      "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+      "dev": true,
+      "dependencies": {
+        "locate-path": "^6.0.0",
+        "path-exists": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/get-stream": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmmirror.com/get-stream/-/get-stream-6.0.1.tgz",
+      "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/is-stream": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmmirror.com/is-stream/-/is-stream-2.0.1.tgz",
+      "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/locate-path": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz",
+      "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+      "dev": true,
+      "dependencies": {
+        "p-locate": "^5.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/npm-run-path": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmmirror.com/npm-run-path/-/npm-run-path-4.0.1.tgz",
+      "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+      "dev": true,
+      "dependencies": {
+        "path-key": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/p-limit": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz",
+      "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+      "dev": true,
+      "dependencies": {
+        "yocto-queue": "^0.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/p-locate": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz",
+      "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+      "dev": true,
+      "dependencies": {
+        "p-limit": "^3.0.2"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/path-key": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",
+      "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/shebang-command": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",
+      "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+      "dev": true,
+      "dependencies": {
+        "shebang-regex": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/shebang-regex": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
+      "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/@antfu/install-pkg/node_modules/which": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz",
+      "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+      "dev": true,
+      "dependencies": {
+        "isexe": "^2.0.0"
+      },
+      "bin": {
+        "node-which": "bin/node-which"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
     "node_modules/@antfu/utils": {
       "version": "0.5.2",
       "resolved": "https://registry.npmmirror.com/@antfu/utils/-/utils-0.5.2.tgz",
@@ -512,6 +681,49 @@
         "@hapi/hoek": "^9.0.0"
       }
     },
+    "node_modules/@iconify/types": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmmirror.com/@iconify/types/-/types-1.1.0.tgz",
+      "integrity": "sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw==",
+      "dev": true
+    },
+    "node_modules/@iconify/utils": {
+      "version": "1.0.33",
+      "resolved": "https://registry.npmmirror.com/@iconify/utils/-/utils-1.0.33.tgz",
+      "integrity": "sha512-vGeAqo7aGPxOQmGdVoXFUOuyN+0V7Lcrx2EvaiRjxUD1x6Om0Tvq2bdm7E24l2Pz++4S0mWMCVFXe/17EtKImQ==",
+      "dev": true,
+      "dependencies": {
+        "@antfu/install-pkg": "^0.1.0",
+        "@antfu/utils": "^0.5.0",
+        "@iconify/types": "^1.1.0",
+        "debug": "^4.3.4",
+        "kolorist": "^1.5.1",
+        "local-pkg": "^0.4.1"
+      }
+    },
+    "node_modules/@iconify/utils/node_modules/debug": {
+      "version": "4.3.4",
+      "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
+      "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.1.2"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@iconify/utils/node_modules/ms": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
+      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+      "dev": true
+    },
     "node_modules/@jridgewell/gen-mapping": {
       "version": "0.1.1",
       "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",
@@ -7243,6 +7455,12 @@
         "node": ">= 8"
       }
     },
+    "node_modules/kolorist": {
+      "version": "1.5.1",
+      "resolved": "https://registry.npmmirror.com/kolorist/-/kolorist-1.5.1.tgz",
+      "integrity": "sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ==",
+      "dev": true
+    },
     "node_modules/launch-editor": {
       "version": "2.3.0",
       "resolved": "https://registry.npmmirror.com/launch-editor/download/launch-editor-2.3.0.tgz",
@@ -11164,6 +11382,64 @@
         "node": ">=12"
       }
     },
+    "node_modules/unplugin-icons": {
+      "version": "0.14.6",
+      "resolved": "https://registry.npmmirror.com/unplugin-icons/-/unplugin-icons-0.14.6.tgz",
+      "integrity": "sha512-8sxDiL4l+TV4zufZfrskgHZZSDFoGOCBgYsefRMM4inQ3Z6KhgMSuNyew7U7D/xG//rwxgD7bN+Dv+YAZEEfEw==",
+      "dev": true,
+      "dependencies": {
+        "@antfu/install-pkg": "^0.1.0",
+        "@antfu/utils": "^0.5.2",
+        "@iconify/utils": "^1.0.33",
+        "debug": "^4.3.4",
+        "kolorist": "^1.5.1",
+        "local-pkg": "^0.4.1",
+        "unplugin": "^0.7.0"
+      },
+      "peerDependencies": {
+        "@svgr/core": ">=5.5.0",
+        "@vue/compiler-sfc": "^3.0.2",
+        "vue-template-compiler": "^2.6.12",
+        "vue-template-es2015-compiler": "^1.9.0"
+      },
+      "peerDependenciesMeta": {
+        "@svgr/core": {
+          "optional": true
+        },
+        "@vue/compiler-sfc": {
+          "optional": true
+        },
+        "vue-template-compiler": {
+          "optional": true
+        },
+        "vue-template-es2015-compiler": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/unplugin-icons/node_modules/debug": {
+      "version": "4.3.4",
+      "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
+      "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.1.2"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/unplugin-icons/node_modules/ms": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
+      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+      "dev": true
+    },
     "node_modules/unset-value": {
       "version": "1.0.0",
       "resolved": "https://registry.npm.taobao.org/unset-value/download/unset-value-1.0.0.tgz?cache=0&sync_timestamp=1616088539233&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Funset-value%2Fdownload%2Funset-value-1.0.0.tgz",
@@ -12410,6 +12686,15 @@
         "node": ">=10"
       }
     },
+    "node_modules/yocto-queue": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz",
+      "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      }
+    },
     "node_modules/zrender": {
       "version": "5.2.1",
       "resolved": "https://registry.nlark.com/zrender/download/zrender-5.2.1.tgz",
@@ -12442,6 +12727,134 @@
         "@jridgewell/trace-mapping": "^0.3.9"
       }
     },
+    "@antfu/install-pkg": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmmirror.com/@antfu/install-pkg/-/install-pkg-0.1.0.tgz",
+      "integrity": "sha512-VaIJd3d1o7irZfK1U0nvBsHMyjkuyMP3HKYVV53z8DKyulkHKmjhhtccXO51WSPeeSHIeoJEoNOKavYpS7jkZw==",
+      "dev": true,
+      "requires": {
+        "execa": "^5.1.1",
+        "find-up": "^5.0.0"
+      },
+      "dependencies": {
+        "cross-spawn": {
+          "version": "7.0.3",
+          "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz",
+          "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+          "dev": true,
+          "requires": {
+            "path-key": "^3.1.0",
+            "shebang-command": "^2.0.0",
+            "which": "^2.0.1"
+          }
+        },
+        "execa": {
+          "version": "5.1.1",
+          "resolved": "https://registry.npmmirror.com/execa/-/execa-5.1.1.tgz",
+          "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
+          "dev": true,
+          "requires": {
+            "cross-spawn": "^7.0.3",
+            "get-stream": "^6.0.0",
+            "human-signals": "^2.1.0",
+            "is-stream": "^2.0.0",
+            "merge-stream": "^2.0.0",
+            "npm-run-path": "^4.0.1",
+            "onetime": "^5.1.2",
+            "signal-exit": "^3.0.3",
+            "strip-final-newline": "^2.0.0"
+          }
+        },
+        "find-up": {
+          "version": "5.0.0",
+          "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz",
+          "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+          "dev": true,
+          "requires": {
+            "locate-path": "^6.0.0",
+            "path-exists": "^4.0.0"
+          }
+        },
+        "get-stream": {
+          "version": "6.0.1",
+          "resolved": "https://registry.npmmirror.com/get-stream/-/get-stream-6.0.1.tgz",
+          "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+          "dev": true
+        },
+        "is-stream": {
+          "version": "2.0.1",
+          "resolved": "https://registry.npmmirror.com/is-stream/-/is-stream-2.0.1.tgz",
+          "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+          "dev": true
+        },
+        "locate-path": {
+          "version": "6.0.0",
+          "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz",
+          "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+          "dev": true,
+          "requires": {
+            "p-locate": "^5.0.0"
+          }
+        },
+        "npm-run-path": {
+          "version": "4.0.1",
+          "resolved": "https://registry.npmmirror.com/npm-run-path/-/npm-run-path-4.0.1.tgz",
+          "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+          "dev": true,
+          "requires": {
+            "path-key": "^3.0.0"
+          }
+        },
+        "p-limit": {
+          "version": "3.1.0",
+          "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz",
+          "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+          "dev": true,
+          "requires": {
+            "yocto-queue": "^0.1.0"
+          }
+        },
+        "p-locate": {
+          "version": "5.0.0",
+          "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz",
+          "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+          "dev": true,
+          "requires": {
+            "p-limit": "^3.0.2"
+          }
+        },
+        "path-key": {
+          "version": "3.1.1",
+          "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",
+          "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+          "dev": true
+        },
+        "shebang-command": {
+          "version": "2.0.0",
+          "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",
+          "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+          "dev": true,
+          "requires": {
+            "shebang-regex": "^3.0.0"
+          }
+        },
+        "shebang-regex": {
+          "version": "3.0.0",
+          "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
+          "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+          "dev": true
+        },
+        "which": {
+          "version": "2.0.2",
+          "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz",
+          "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+          "dev": true,
+          "requires": {
+            "isexe": "^2.0.0"
+          }
+        }
+      }
+    },
     "@antfu/utils": {
       "version": "0.5.2",
       "resolved": "https://registry.npmmirror.com/@antfu/utils/-/utils-0.5.2.tgz",
@@ -12784,6 +13197,43 @@
         "@hapi/hoek": "^9.0.0"
       }
     },
+    "@iconify/types": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmmirror.com/@iconify/types/-/types-1.1.0.tgz",
+      "integrity": "sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw==",
+      "dev": true
+    },
+    "@iconify/utils": {
+      "version": "1.0.33",
+      "resolved": "https://registry.npmmirror.com/@iconify/utils/-/utils-1.0.33.tgz",
+      "integrity": "sha512-vGeAqo7aGPxOQmGdVoXFUOuyN+0V7Lcrx2EvaiRjxUD1x6Om0Tvq2bdm7E24l2Pz++4S0mWMCVFXe/17EtKImQ==",
+      "dev": true,
+      "requires": {
+        "@antfu/install-pkg": "^0.1.0",
+        "@antfu/utils": "^0.5.0",
+        "@iconify/types": "^1.1.0",
+        "debug": "^4.3.4",
+        "kolorist": "^1.5.1",
+        "local-pkg": "^0.4.1"
+      },
+      "dependencies": {
+        "debug": {
+          "version": "4.3.4",
+          "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
+          "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+          "dev": true,
+          "requires": {
+            "ms": "2.1.2"
+          }
+        },
+        "ms": {
+          "version": "2.1.2",
+          "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
+          "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+          "dev": true
+        }
+      }
+    },
     "@jridgewell/gen-mapping": {
       "version": "0.1.1",
       "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",
@@ -18073,6 +18523,12 @@
       "integrity": "sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ==",
       "dev": true
     },
+    "kolorist": {
+      "version": "1.5.1",
+      "resolved": "https://registry.npmmirror.com/kolorist/-/kolorist-1.5.1.tgz",
+      "integrity": "sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ==",
+      "dev": true
+    },
     "launch-editor": {
       "version": "2.3.0",
       "resolved": "https://registry.npmmirror.com/launch-editor/download/launch-editor-2.3.0.tgz",
@@ -21111,6 +21567,38 @@
         }
       }
     },
+    "unplugin-icons": {
+      "version": "0.14.6",
+      "resolved": "https://registry.npmmirror.com/unplugin-icons/-/unplugin-icons-0.14.6.tgz",
+      "integrity": "sha512-8sxDiL4l+TV4zufZfrskgHZZSDFoGOCBgYsefRMM4inQ3Z6KhgMSuNyew7U7D/xG//rwxgD7bN+Dv+YAZEEfEw==",
+      "dev": true,
+      "requires": {
+        "@antfu/install-pkg": "^0.1.0",
+        "@antfu/utils": "^0.5.2",
+        "@iconify/utils": "^1.0.33",
+        "debug": "^4.3.4",
+        "kolorist": "^1.5.1",
+        "local-pkg": "^0.4.1",
+        "unplugin": "^0.7.0"
+      },
+      "dependencies": {
+        "debug": {
+          "version": "4.3.4",
+          "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
+          "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+          "dev": true,
+          "requires": {
+            "ms": "2.1.2"
+          }
+        },
+        "ms": {
+          "version": "2.1.2",
+          "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
+          "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+          "dev": true
+        }
+      }
+    },
     "unset-value": {
       "version": "1.0.0",
       "resolved": "https://registry.npm.taobao.org/unset-value/download/unset-value-1.0.0.tgz?cache=0&sync_timestamp=1616088539233&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Funset-value%2Fdownload%2Funset-value-1.0.0.tgz",
@@ -22065,6 +22553,12 @@
       "integrity": "sha1-LrfcOwKJcY/ClfNidThFxBoMlO4=",
       "dev": true
     },
+    "yocto-queue": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz",
+      "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+      "dev": true
+    },
     "zrender": {
       "version": "5.2.1",
       "resolved": "https://registry.nlark.com/zrender/download/zrender-5.2.1.tgz",

+ 1 - 0
package.json

@@ -40,6 +40,7 @@
     "@vue/compiler-sfc": "^3.2.37",
     "sass": "^1.32.12",
     "unplugin-auto-import": "^0.9.2",
+    "unplugin-icons": "^0.14.6",
     "vite": "2.9.13",
     "vite-plugin-mock": "2.9.6",
     "vite-plugin-vue-setup-extend": "^0.4.0",

+ 0 - 1
src/components/zhu-yuan-yi-sheng/TianJiaJianChaJianYan.vue

@@ -382,7 +382,6 @@ let hotKeyList = {
  */
 const initializationShortcut = () => {
   xcHotKey(hotKeyList)
-  console.log('需要重新注册快捷键')
 }
 
 const starAdd = (obj) => {

+ 4 - 3
src/views/hospitalization/zhu-yuan-yi-sheng/Home.vue

@@ -2,13 +2,13 @@
   <el-container>
     <el-container>
       <el-aside style="width:auto !important;">
-        <Overview v-show="xianShiLieBiao" :showSelection="false"></Overview>
+        <Overview v-show="xianShiLieBiao" :showSelection="false"/>
       </el-aside>
       <el-main>
         <huan-zhe-xin-xi></huan-zhe-xin-xi>
         <el-row v-show="xianShiLieBiao" class="tabs">
           <template v-for="item in pathList">
-            <el-col :span="3" :style="xuanZhong(item.path)" class="tab-item" @click="handleClick(item.path)">
+            <el-col :span="3" :style="currentPagePosition(item.path)" class="tab-item" @click="handleClick(item.path)">
               <span> {{ item.title }}</span>
             </el-col>
           </template>
@@ -33,6 +33,7 @@ import Overview from '@/components/medical-insurance/patient-overview/Index.vue'
 const tableHeight = computed(() => {
   return store.state.app.windowSize.h
 })
+
 const xianShiLieBiao = ref(true)
 
 watch(() => router.currentRoute.value.path, () => {
@@ -58,7 +59,7 @@ onActivated(() => {
 
 })
 
-const xuanZhong = (val) => {
+const currentPagePosition = (val) => {
   if (router.currentRoute.value.path === val) {
     return {
       backgroundColor: 'white',

+ 200 - 167
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/TianJiaYiZhu.vue

@@ -5,18 +5,21 @@
   <template v-for="(item, index) in tiShiBiaoTi" :key="index">
     <el-alert :title="item.title" :type="item.type" effect="dark"></el-alert>
   </template>
-  <el-button icon="el-icon-arrow-left" style="font-size: 14px" text @click="router.go(-1)">返回</el-button>
+  <el-button icon="ArrowLeft" style="font-size: 14px" text type="primary" @click="router.go(-1)">返回</el-button>
   <el-button type="primary" @click="muBanDuiHuaKuang = true">获取模板</el-button>
   <el-button :disabled="yiZhuList.length === 0" type="primary" @click="baoCunMuBanClick">保存模板</el-button>
   <el-button icon="el-icon-check" type="success" @click="baoCunYiZhuClick">保存</el-button>
   {{ count }}
-  <cuo-wu-xin-xi />
+  <cuo-wu-xin-xi/>
   <el-divider direction="vertical"></el-divider>
-  <el-button :disabled="yiZhuData.serial === '00' || stringIsBlank(yiZhuData.serial)" icon="el-icon-view" type="success" @click="HeLiYongYao.dialog = true"> 药品用法 </el-button>
+  <el-button :disabled="yiZhuData.serial === '00' || stringIsBlank(yiZhuData.serial)" icon="el-icon-view" type="success"
+             @click="HeLiYongYao.dialog = true"> 药品用法
+  </el-button>
   <el-divider direction="vertical"></el-divider>
   <el-button @click="tiaoZhuanZhiHeLiYongYao">合理用药</el-button>
   <el-button @click="allergenDialog = true">患者过敏信息</el-button>
-  <yao-ping-xiang-qing v-if="HeLiYongYao.dialog" :code="HeLiYongYao.code" @close="HeLiYongYao.dialog = false"></yao-ping-xiang-qing>
+  <yao-ping-xiang-qing v-if="HeLiYongYao.dialog" :code="HeLiYongYao.code"
+                       @close="HeLiYongYao.dialog = false"></yao-ping-xiang-qing>
   <el-form ref="yiZhuRef" v-model="yiZhuData" label-width="90px" size="small">
     <el-row>
       <el-col :span="span" @click="yiZhuMingDialog = true">
@@ -35,13 +38,16 @@
       </el-col>
       <el-col :span="span">
         <el-form-item class="bi_tian" label="频率:" prop="frequCode">
-          <XcSelect v-model="yiZhuData" :data="yaoPinPingLvData" :name="['frequCode', 'frequCodeName']" clearable remote @method="pinLvRemoteMethod" ref="pingLv"> </XcSelect>
+          <XcSelect v-model="yiZhuData" :data="yaoPinPingLvData" :name="['frequCode', 'frequCodeName']" clearable remote
+                    @method="pinLvRemoteMethod" ref="pingLv"></XcSelect>
         </el-form-item>
       </el-col>
       <el-col :span="span">
         <el-form-item class="bi_tian" label="一次剂量:" prop="dose">
-          <el-input-number v-model="yiZhuData.dose" :min="0" :precision="2" style="width: 110px" @change="jiSuanLingLiang"></el-input-number>
-          <XcSelect v-model="yiZhuData" :data="yaoPinJiLiangData" :name="['doseUnit', 'doseUnitName']" :width="80" @change="xuanZheJiLiang">
+          <el-input-number v-model="yiZhuData.dose" :min="0" :precision="2" style="width: 110px"
+                           @change="jiSuanLingLiang"></el-input-number>
+          <XcSelect v-model="yiZhuData" :data="yaoPinJiLiangData" :name="['doseUnit', 'doseUnitName']" :width="80"
+                    @change="xuanZheJiLiang">
             <XcOption label="value"></XcOption>
             <XcOption label="name"></XcOption>
           </XcSelect>
@@ -52,7 +58,8 @@
       </el-col>
       <el-col :span="span">
         <el-form-item class="bi_tian" label="给药方式:" prop="supplyCode">
-          <XcSelect v-model="yiZhuData" :data="geiYaoFangShiData" :name="['supplyCode', 'supplyCodeName']" clearable remote @method="geiYaoFangShiRemoteMethod"> </XcSelect>
+          <XcSelect v-model="yiZhuData" :data="geiYaoFangShiData" :name="['supplyCode', 'supplyCodeName']" clearable
+                    remote @method="geiYaoFangShiRemoteMethod"></XcSelect>
         </el-form-item>
       </el-col>
       <el-col :span="span">
@@ -63,23 +70,23 @@
       <el-col :span="span">
         <el-form-item class="bi_tian" label="开始时间:" prop="startTime">
           <el-date-picker
-            v-model="yiZhuData.startTime"
-            :disabled-date="disabledDate"
-            format="YYYY-MM-DD HH:mm:ss"
-            type="datetime"
-            value-format="YYYY-MM-DD HH:mm:ss"
+              v-model="yiZhuData.startTime"
+              :disabled-date="disabledDate"
+              format="YYYY-MM-DD HH:mm:ss"
+              type="datetime"
+              value-format="YYYY-MM-DD HH:mm:ss"
           ></el-date-picker>
         </el-form-item>
       </el-col>
       <el-col :span="span">
         <el-form-item class="bi_tian" label="停止时间:" prop="endTime">
           <el-date-picker
-            v-model="yiZhuData.endTime"
-            :disabled="yiZhuData.frequCode === 'ONCE'"
-            :disabled-date="disabledDate"
-            format="YYYY-MM-DD HH:mm:ss"
-            type="datetime"
-            value-format="YYYY-MM-DD HH:mm:ss"
+              v-model="yiZhuData.endTime"
+              :disabled="yiZhuData.frequCode === 'ONCE'"
+              :disabled-date="disabledDate"
+              format="YYYY-MM-DD HH:mm:ss"
+              type="datetime"
+              value-format="YYYY-MM-DD HH:mm:ss"
           ></el-date-picker>
         </el-form-item>
       </el-col>
@@ -90,12 +97,14 @@
       </el-col>
       <el-col :span="span">
         <el-form-item class="bi_tian" label="执行科室:" prop="execUnit">
-          <XcSelect v-model="yiZhuData" :data="zhiXingKeShiData" :name="['execUnit', 'execUnitName']" remote @method="metZhiXingKeShi"> </XcSelect>
+          <XcSelect v-model="yiZhuData" :data="zhiXingKeShiData" :name="['execUnit', 'execUnitName']" remote
+                    @method="metZhiXingKeShi"></XcSelect>
         </el-form-item>
       </el-col>
       <el-col :span="span">
         <el-form-item label="父医嘱:" prop="orderName">
-          <el-select v-model="yiZhuData.parentNo" :disabled="yiZhuData.serial === '00'" clearable @clear="yiZhuData.parentNo = null" @click="fuYiZhuClick">
+          <el-select v-model="yiZhuData.parentNo" :disabled="yiZhuData.serial === '00'" clearable
+                     @clear="yiZhuData.parentNo = null" @click="fuYiZhuClick">
             <el-option v-for="item in fuYiZhuData" :key="item.code" :label="item.name" :value="item.code">
               <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
               <el-divider direction="vertical"></el-divider>
@@ -133,20 +142,23 @@
       </el-col>
       <el-col :span="span">
         <el-form-item label="医保自费:">
-          <el-switch v-model="yiZhuData.ybSelfFlag" active-color="#13ce66" active-text="自费" active-value="1" inactive-color="#ff4949" inactive-text="记账" inactive-value="0">
+          <el-switch v-model="yiZhuData.ybSelfFlag" active-color="#13ce66" active-text="自费" active-value="1"
+                     inactive-color="#ff4949" inactive-text="记账" inactive-value="0">
           </el-switch>
         </el-form-item>
       </el-col>
       <el-col :span="span">
         <el-form-item label="是否紧急:">
-          <el-switch v-model="yiZhuData.emergencyFlag" active-color="#13ce66" active-text="是" active-value="1" inactive-color="#ff4949" inactive-text="否" inactive-value="0">
+          <el-switch v-model="yiZhuData.emergencyFlag" active-color="#13ce66" active-text="是" active-value="1"
+                     inactive-color="#ff4949" inactive-text="否" inactive-value="0">
           </el-switch>
         </el-form-item>
       </el-col>
       <el-col v-if="yiZhuData.orderCode === zkCode" :span="span">
         <el-form-item label="转科:" class="bi_tian">
           <el-select v-model="yiZhuData.zkObj">
-            <el-option v-for="(item, index) in zkList" :key="item.value" :label="item.wardName + '|' + item.smallName" :value="item.value">
+            <el-option v-for="(item, index) in zkList" :key="item.value" :label="item.wardName + '|' + item.smallName"
+                       :value="item.value">
               <span>{{ item.wardName }}</span>
               <el-divider direction="vertical"></el-divider>
               <span>{{ item.smallName }}</span>
@@ -157,7 +169,8 @@
       <el-col v-if="yiZhuData.kjywFlag !== 0" :span="span">
         <el-form-item label="用药方式:">
           <el-select v-model="yiZhuData.yyfs" style="width: 120px" @change="kangJunYaoYongYaoFangShiGaiBian">
-            <el-option v-for="item in kangJunYaoWuYongYaoFangShi" :key="item.code" :label="item.name" :value="item.code">
+            <el-option v-for="item in kangJunYaoWuYongYaoFangShi" :key="item.code" :label="item.name"
+                       :value="item.code">
               <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
               <el-divider direction="vertical"></el-divider>
               <span>{{ item.name }}</span>
@@ -168,11 +181,11 @@
       <el-col :span="span">
         <el-form-item v-if="yiZhuData.kjywFlag !== 0" label="切口等级:">
           <el-select
-            v-model="yiZhuData.ssqk"
-            :disabled="yiZhuData.yyfs !== 1 && yiZhuData.yyfs !== 2 && yiZhuData.yyfs !== null"
-            clearable
-            style="width: 120px"
-            @clear="yiZhuData.ssqk = null"
+              v-model="yiZhuData.ssqk"
+              :disabled="yiZhuData.yyfs !== 1 && yiZhuData.yyfs !== 2 && yiZhuData.yyfs !== null"
+              clearable
+              style="width: 120px"
+              @clear="yiZhuData.ssqk = null"
           >
             <el-option v-for="item in kangJunYaoWuQieKou" :key="item.code" :label="item.name" :value="item.code">
               <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
@@ -185,13 +198,14 @@
       <el-col :span="span">
         <el-form-item v-if="yiZhuData.kjywFlag !== 0" label="用药时间:">
           <el-select
-            v-model="yiZhuData.yysj"
-            :disabled="yiZhuData.yyfs !== 1 && yiZhuData.yyfs !== 2 && yiZhuData.yyfs !== null"
-            clearable
-            style="width: 120px"
-            @clear="yiZhuData.yysj = null"
+              v-model="yiZhuData.yysj"
+              :disabled="yiZhuData.yyfs !== 1 && yiZhuData.yyfs !== 2 && yiZhuData.yyfs !== null"
+              clearable
+              style="width: 120px"
+              @clear="yiZhuData.yysj = null"
           >
-            <el-option v-for="item in kangJunYaoWuYongYaoShiJian" :key="item.code" :label="item.name" :value="item.code">
+            <el-option v-for="item in kangJunYaoWuYongYaoShiJian" :key="item.code" :label="item.name"
+                       :value="item.code">
               <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
               <el-divider direction="vertical"></el-divider>
               <span>{{ item.name }}</span></el-option
@@ -202,20 +216,20 @@
     </el-row>
   </el-form>
   <el-button icon="el-icon-plus" type="primary" @click="tianJiaYiZhu">添加</el-button>
-  <xc-code code="Ctrl + S" description="键盘添加" />
-  <xc-code code="Ctrl + F" description="打开搜索框" />
-  <xc-code code="Ctrl + 1" description="回到第一个输入框(数字1)" />
-  <xc-code code="Alt + PgUp / PgDn" description="医嘱上下" />
-  <xc-code code="Alt + ← / →" description="编辑(←) / 复制 (→)" />
-  <xc-code code="Alt + D " description="删除选中的医嘱" />
+  <xc-code code="Ctrl + S" description="键盘添加"/>
+  <xc-code code="Ctrl + F" description="打开搜索框"/>
+  <xc-code code="Ctrl + 1" description="回到第一个输入框(数字1)"/>
+  <xc-code code="Alt + PgUp / PgDn" description="医嘱上下"/>
+  <xc-code code="Alt + ← / →" description="编辑(←) / 复制 (→)"/>
+  <xc-code code="Alt + D " description="删除选中的医嘱"/>
   <el-button @click="dianJiXiuGaiZhiXingKeShi">修改执行科室</el-button>
   <el-table
-    :data="yiZhuList"
-    ref="elTableRef"
-    :height="windowSize.h / 2.4"
-    @selection-change="dianJiXuanZhongShuJu"
-    :row-class-name="doctorSOrderForm"
-    @row-click="whenClickingOnTheForm"
+      :data="yiZhuList"
+      ref="elTableRef"
+      :height="windowSize.h / 2.4"
+      @selection-change="dianJiXuanZhongShuJu"
+      :row-class-name="doctorSOrderForm"
+      @row-click="whenClickingOnTheForm"
   >
     <el-table-column type="selection"></el-table-column>
     <el-table-column label="排序" type="index"></el-table-column>
@@ -261,30 +275,46 @@
     </el-table-column>
   </el-table>
   <!-- 这里是搜索医嘱的 -->
-  <sou-suo-yi-zhu v-if="yiZhuMingDialog" @close="closeTheDoctorSOrderSearchBox()" @xuanZhongFeiYong="xuanZhongFeiYong"></sou-suo-yi-zhu>
-  <AllergenEntry v-if="allergenDialog" :pat-no="huanZheXinXi.inpatientNo" @close="allergenDialog = false"></AllergenEntry>
+  <sou-suo-yi-zhu v-if="yiZhuMingDialog" @close="closeTheDoctorSOrderSearchBox()"
+                  @xuanZhongFeiYong="xuanZhongFeiYong"></sou-suo-yi-zhu>
+  <AllergenEntry v-if="allergenDialog" :pat-no="huanZheXinXi.inpatientNo"
+                 @close="allergenDialog = false"></AllergenEntry>
 </template>
 
 <script name="TianJiaYiZhu" setup>
-import { huoQuFeiYongXinXi, huoQuGeiYaoFangShi, huoQuZhiXinKeShi, huoQuZhuYuanPinLv, jiaoYan, shangChuanYiZhu } from '@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru'
-import { cuoWuXinXi, fuZhiYiZhu, getSelfBuy, huanZheXinXi, youWuXuanZheHuanZhe, zkList } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
+import {
+  huoQuFeiYongXinXi,
+  huoQuGeiYaoFangShi,
+  huoQuZhiXinKeShi,
+  huoQuZhuYuanPinLv,
+  jiaoYan,
+  shangChuanYiZhu
+} from '@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru'
+import {
+  cuoWuXinXi,
+  fuZhiYiZhu,
+  getSelfBuy,
+  huanZheXinXi,
+  youWuXuanZheHuanZhe,
+  zkList
+} from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
 import store from '../../../../store'
-import { listIsBlank, listNotBlank, stringIsBlank, stringNotBlank } from '@/utils/blank-utils'
-import { kangJunYaoWuQieKou, kangJunYaoWuYongYaoFangShi, kangJunYaoWuYongYaoShiJian } from '@/data'
-import { ElMessage, ElMessageBox } from 'element-plus'
-import { clone } from '@/utils/clone'
+import {listIsBlank, listNotBlank, stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
+import {kangJunYaoWuQieKou, kangJunYaoWuYongYaoFangShi, kangJunYaoWuYongYaoShiJian} from '@/data'
+import {ElMessage, ElMessageBox} from 'element-plus'
+import {clone} from '@/utils/clone'
 import HuoQuMuBan from '../../../../components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/HuoQuMuBan.vue'
-import { uuid } from '@/utils/getUuid'
+import {uuid} from '@/utils/getUuid'
 import BaoCunMuBan from '../../../../components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/BaoCunMuBan.vue'
-import { getServerDateApi, whetherThePatientHasAllergens, yaoPinXiangMuPiPeiYiBao } from '@/api/public-api'
+import {getServerDateApi, whetherThePatientHasAllergens, yaoPinXiangMuPiPeiYiBao} from '@/api/public-api'
 import router from '@/router'
 import SouSuoYiZhu from '@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/SouSuoYiZhu.vue'
 import CuoWuXinXi from '@/components/zhu-yuan-yi-sheng/CuoWuXinXi.vue'
 import YaoPingXiangQing from '@/components/zhu-yuan-yi-sheng/he-li-yong-yao/YaoPingXiangQing.vue'
 import AllergenEntry from '@/components/zhu-yuan-yi-sheng/AllergenEntry.vue'
 import Sleep from '@/utils/sleep'
-import { logoutShortcut, xcHotKey } from '@/utils/xckeydown'
-import { BizException, ExceptionEnum } from '@/utils/BizException'
+import {logoutShortcut, xcHotKey} from '@/utils/xckeydown'
+import {BizException, ExceptionEnum} from '@/utils/BizException'
 
 const windowSize = computed(() => {
   return store.state.app.windowSize
@@ -360,10 +390,10 @@ const spanSize = (val) => {
 }
 spanSize(windowSize.value.w)
 watch(
-  () => windowSize.value,
-  () => {
-    spanSize(windowSize.value.w)
-  }
+    () => windowSize.value,
+    () => {
+      spanSize(windowSize.value.w)
+    }
 )
 
 // 搜索医嘱
@@ -375,75 +405,75 @@ const xuanZhongFeiYong = async (row) => {
   yiZhuData.value = row
   if (row.serial !== '00') {
     huoQuFeiYongXinXi(row.orderCode, row.serial)
-      .then((res) => {
-        yiZhuData.value.drugFlag = row.orderType
-        // 判断是否 是皮试的药 如果是就只能有这些 给药方式
-        if (res.data.psFlag === 1) {
-          geiYaoFangShiData.value = res.piShi
-          tiShiBiaoTi.value.push({ title: '该药品为皮试药品给药方式只能是皮试类型', type: 'warning' })
-          yiZhuData.value.psFlag = true
-        } else {
-          yiZhuData.value.psFlag = false
-        }
-        yiZhuData.value.kjywFlag = res.data.kjywFlag
-        if (yiZhuData.value.kjywFlag === 1) {
-          tiShiBiaoTi.value.push({ title: '该药品为抗菌药物,请填写抗菌药物医嘱附注信息录入。', type: 'error' })
-        }
-        if (res.data.selfFlagYb === 1) {
-          tiShiBiaoTi.value.push({ title: '该药品医保自费药品,如符合条件请填写记账,不是请填写自费。' })
-        }
-        yiZhuData.value.miniUnitName = res.data.miniUnitName
-        yaoPinJiLiangData.value = res.yaoPingJiLiang
-        // 加载 剂量单位
-        if (stringNotBlank(yiZhuData.value.doseUnit)) {
-          yaoPinJiLiangData.value.forEach((item) => {
-            if (item.code === yiZhuData.value.doseUnit) {
-              jiLiangValue.value = item.value
-            }
-          })
-        } else if (listNotBlank(yaoPinJiLiangData.value)) {
-          // 没有剂量单位的时候默认加载第一个计量单位 并且计算
-          yiZhuData.value.doseUnit = yaoPinJiLiangData.value[0].code
-          yiZhuData.value.dose = yaoPinJiLiangData.value[0].value
-          jiLiangValue.value = yaoPinJiLiangData.value[0].value
-          jiSuanLingLiang(yaoPinJiLiangData.value[0].value)
-        }
-        // 加载默认频率 如果已经填写了 就用有的
-        if (stringIsBlank(row.frequCode)) {
-          if (stringNotBlank(res.data.frequCode)) {
-            yiZhuData.value.frequCode = res.data.frequCode
+        .then((res) => {
+          yiZhuData.value.drugFlag = row.orderType
+          // 判断是否 是皮试的药 如果是就只能有这些 给药方式
+          if (res.data.psFlag === 1) {
+            geiYaoFangShiData.value = res.piShi
+            tiShiBiaoTi.value.push({title: '该药品为皮试药品给药方式只能是皮试类型', type: 'warning'})
+            yiZhuData.value.psFlag = true
           } else {
-            yiZhuData.value.frequCode = 'ONCE'
+            yiZhuData.value.psFlag = false
           }
-        }
-        // 加载给药方式
-        if (stringIsBlank(yiZhuData.value.supplyCode)) {
-          if (stringNotBlank(res.data.supplyCode)) {
-            yiZhuData.value.supplyCode = res.data.supplyCode
+          yiZhuData.value.kjywFlag = res.data.kjywFlag
+          if (yiZhuData.value.kjywFlag === 1) {
+            tiShiBiaoTi.value.push({title: '该药品为抗菌药物,请填写抗菌药物医嘱附注信息录入。', type: 'error'})
           }
-        }
-      })
-      .catch(async () => {
-        await Sleep(500)
-        qingKong()
-      })
+          if (res.data.selfFlagYb === 1) {
+            tiShiBiaoTi.value.push({title: '该药品医保自费药品,如符合条件请填写记账,不是请填写自费。'})
+          }
+          yiZhuData.value.miniUnitName = res.data.miniUnitName
+          yaoPinJiLiangData.value = res.yaoPingJiLiang
+          // 加载 剂量单位
+          if (stringNotBlank(yiZhuData.value.doseUnit)) {
+            yaoPinJiLiangData.value.forEach((item) => {
+              if (item.code === yiZhuData.value.doseUnit) {
+                jiLiangValue.value = item.value
+              }
+            })
+          } else if (listNotBlank(yaoPinJiLiangData.value)) {
+            // 没有剂量单位的时候默认加载第一个计量单位 并且计算
+            yiZhuData.value.doseUnit = yaoPinJiLiangData.value[0].code
+            yiZhuData.value.dose = yaoPinJiLiangData.value[0].value
+            jiLiangValue.value = yaoPinJiLiangData.value[0].value
+            jiSuanLingLiang(yaoPinJiLiangData.value[0].value)
+          }
+          // 加载默认频率 如果已经填写了 就用有的
+          if (stringIsBlank(row.frequCode)) {
+            if (stringNotBlank(res.data.frequCode)) {
+              yiZhuData.value.frequCode = res.data.frequCode
+            } else {
+              yiZhuData.value.frequCode = 'ONCE'
+            }
+          }
+          // 加载给药方式
+          if (stringIsBlank(yiZhuData.value.supplyCode)) {
+            if (stringNotBlank(res.data.supplyCode)) {
+              yiZhuData.value.supplyCode = res.data.supplyCode
+            }
+          }
+        })
+        .catch(async () => {
+          await Sleep(500)
+          qingKong()
+        })
   } else {
     yiZhuData.value.kjywFlag = 0
     huoQuFeiYongXinXi(row.orderCode, '00')
-      .then((res) => {
-        yiZhuData.value.drugFlag = row.orderType
-        yiZhuData.value.frequCode = 'ONCE'
-        if (stringNotBlank(res.paiChiYiZhu)) {
-          tiShiBiaoTi.value.push({ title: res.paiChiYiZhu, type: 'error' })
-        }
-        if (!res.dose) {
-          yiZhuData.value.dose = 1
-        }
-      })
-      .catch(async () => {
-        await Sleep(500)
-        qingKong()
-      })
+        .then((res) => {
+          yiZhuData.value.drugFlag = row.orderType
+          yiZhuData.value.frequCode = 'ONCE'
+          if (stringNotBlank(res.paiChiYiZhu)) {
+            tiShiBiaoTi.value.push({title: res.paiChiYiZhu, type: 'error'})
+          }
+          if (!res.dose) {
+            yiZhuData.value.dose = 1
+          }
+        })
+        .catch(async () => {
+          await Sleep(500)
+          qingKong()
+        })
   }
   // 判断这个是不是 新添加的数据 如果是空的就是 新数据
   getServerDateApi().then((res) => {
@@ -514,7 +544,7 @@ const fuYiZhuClick = () => {
   fuYiZhuData.value = []
   yiZhuList.value.forEach((item, index) => {
     if (stringNotBlank(item.drugFlag) && item.drugFlag === 'i' && item.id !== yiZhuData.value.id && stringIsBlank(item.parentNo)) {
-      fuYiZhuData.value.push({ code: item.id, name: item.orderName })
+      fuYiZhuData.value.push({code: item.id, name: item.orderName})
     }
   })
 }
@@ -557,20 +587,20 @@ const tianJiaYiZhu = () => {
     list: list,
   }
   shangChuanYiZhu(data)
-    .then((res) => {
-      let index = tianJiaYiZhuWeiYiBiaoShi.value.indexOf(yiZhuData.value.id)
-      if (index > -1) {
-        yiZhuList.value.splice(index, 1)
-        tianJiaYiZhuWeiYiBiaoShi.value.splice(index, 1)
-        ElMessage.error('重复添加,老记录已删除。')
-      }
-      tianJiaYiZhuWeiYiBiaoShi.value.push(yiZhuData.value.id)
-      yiZhuList.value.push(clone(yiZhuData.value))
-      qingKong()
-    })
-    .catch((e) => {
-      cuoWuXinXi.value = e
-    })
+      .then((res) => {
+        let index = tianJiaYiZhuWeiYiBiaoShi.value.indexOf(yiZhuData.value.id)
+        if (index > -1) {
+          yiZhuList.value.splice(index, 1)
+          tianJiaYiZhuWeiYiBiaoShi.value.splice(index, 1)
+          ElMessage.error('重复添加,老记录已删除。')
+        }
+        tianJiaYiZhuWeiYiBiaoShi.value.push(yiZhuData.value.id)
+        yiZhuList.value.push(clone(yiZhuData.value))
+        qingKong()
+      })
+      .catch((e) => {
+        cuoWuXinXi.value = e
+      })
 }
 
 /**
@@ -624,10 +654,11 @@ const baoCunYiZhuClick = () => {
         dangerouslyUseHTMLString: true,
         confirmButtonText: '继续录入',
       })
-        .then(() => {
-          baoCunYiZhu()
-        })
-        .catch(() => {})
+          .then(() => {
+            baoCunYiZhu()
+          })
+          .catch(() => {
+          })
     } else {
       baoCunYiZhu()
     }
@@ -656,17 +687,18 @@ function baoCunYiZhu() {
     type: 'warning',
     closeOnClickModal: false,
   })
-    .then(() => {
-      shangChuanYiZhu(data)
-        .then((res) => {
-          fuZhiYiZhu.value = []
-          router.go(-1)
-        })
-        .catch((e) => {
-          cuoWuXinXi.value = e
-        })
-    })
-    .catch(() => {})
+      .then(() => {
+        shangChuanYiZhu(data)
+            .then((res) => {
+              fuZhiYiZhu.value = []
+              router.go(-1)
+            })
+            .catch((e) => {
+              cuoWuXinXi.value = e
+            })
+      })
+      .catch(() => {
+      })
 }
 
 /*  这里是抗菌药物,选择了除了 1和 2 的其他都可以不用填写 */
@@ -717,13 +749,13 @@ const baoCunMuBanClick = () => {
     list: yiZhuList.value,
   }
   shangChuanYiZhu(data)
-    .then((res) => {
-      baoCunMuBanRef.value.daKaiBaoCunMuBan(yiZhuList.value)
-      cuoWuXinXi.value = ''
-    })
-    .catch((e) => {
-      cuoWuXinXi.value = e
-    })
+      .then((res) => {
+        baoCunMuBanRef.value.daKaiBaoCunMuBan(yiZhuList.value)
+        cuoWuXinXi.value = ''
+      })
+      .catch((e) => {
+        cuoWuXinXi.value = e
+      })
 }
 // 医嘱限制时间不能在之前
 const disabledDate = (time) => {
@@ -828,7 +860,8 @@ const countDown = () => {
   if (seconds.value === 300) {
     ElMessageBox.alert('您的操作时间过半', '提示', {
       type: 'warning',
-    }).then((res) => {})
+    }).then((res) => {
+    })
   } else if (seconds.value === 60 || seconds.value === 30 || seconds.value === 20) {
     ElMessage({
       message: '剩余操作时间' + seconds.value + '秒',
@@ -887,7 +920,7 @@ const regainFocus = () => {
  * @param rowIndex 下标
  * @returns {string} 样式
  */
-const doctorSOrderForm = ({ row, rowIndex }) => {
+const doctorSOrderForm = ({row, rowIndex}) => {
   row.tableIndex = rowIndex
   if (dataIndex === rowIndex) {
     return 'input_and_table_to_be_selected'
@@ -967,7 +1000,7 @@ const deleteSelectedOrders = () => {
 
 // 注册快捷键的 list
 let shortcutKeyRegistration = {
-  ctrl: { s: saveOrAddADoctorSOrder, f: openSearchBox, 1: regainFocus },
+  ctrl: {s: saveOrAddADoctorSOrder, f: openSearchBox, 1: regainFocus},
   alt: {
     PageUp: upData,
     PageDown: downData,

+ 88 - 75
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -2,25 +2,27 @@
   <el-container>
     <el-header>
       <el-date-picker
-        v-model="dateRange"
-        :shortcuts="shortcuts"
-        end-placeholder="结束日期"
-        placeholder="选择日期"
-        range-separator="至"
-        size="small"
-        start-placeholder="开始日期"
-        style="width: 220px"
-        type="daterange"
+          v-model="dateRange"
+          :shortcuts="shortcuts"
+          end-placeholder="结束日期"
+          placeholder="选择日期"
+          range-separator="至"
+          size="small"
+          start-placeholder="开始日期"
+          style="width: 220px"
+          type="daterange"
       >
       </el-date-picker>
       医嘱名称:
-      <el-select v-model="orderName" :remote-method="remoteMethodChargeCode" clearable filterable remote style="width: 120px">
+      <el-select v-model="orderName" :remote-method="remoteMethodChargeCode" clearable filterable remote
+                 style="width: 120px">
         <el-option v-for="item in yiZhuMingZiData" :key="item.code" :label="item.name" :value="item.code">
           <span>{{ item.name }}</span>
         </el-option>
       </el-select>
       频率:
-      <el-select v-model="pinLv" :disabled="zhuangTai === 8 || zhuangTai === 9" clearable filterable size="small" style="width: 120px">
+      <el-select v-model="pinLv" :disabled="zhuangTai === 8 || zhuangTai === 9" clearable filterable size="small"
+                 style="width: 120px">
         <el-option v-for="item in huanZhePinLvData" :key="item.code" :label="item.name" :value="item.code">
           <span>{{ item.name }}</span>
         </el-option>
@@ -34,33 +36,37 @@
         </el-option>
       </el-select>
       <el-divider direction="vertical"></el-divider>
-      <el-button icon="el-icon-search" type="primary" @click="chaXunYiZhuClick(0)">查询</el-button>
+      <el-button icon="Search" type="primary" @click="chaXunYiZhuClick(0)">查询</el-button>
       <el-divider style="margin: 2px 0"></el-divider>
       <el-tag effect="dark" type="info">录入</el-tag>
       <el-tag effect="dark" type="success">确认</el-tag>
       <el-tag effect="dark">执行</el-tag>
       <el-tag effect="dark" type="danger">停止</el-tag>
       <el-divider direction="vertical"></el-divider>
-      <el-button icon="el-icon-plus" type="primary" @click="addYiZhuClick"> 添加</el-button>
+      <el-button icon="Plus" type="primary" @click="addYiZhuClick"> 添加</el-button>
       <el-button :disabled="xuanZhongDeShuJu.length === 0" type="warning" @click="点击批量停止;">批量停止</el-button>
       <el-divider direction="vertical"></el-divider>
-      <el-button :disabled="xuanZhongDeShuJu.length === 0" type="success" @click="dianJiFuZhuXuanZhongYiZhu">复制选中医嘱 </el-button>
-      <el-button type="warning" :disabled="stringIsBlank(huanZheXinXi.inpatientNo)" @click="clickToModifyTheDoctorSOrderTime"> 修改医嘱时间 </el-button>
-      <el-button type="warning" :disabled="stringIsBlank(huanZheXinXi.inpatientNo)" @click="jumpToMedicalRecord"> 病案首页 </el-button>
+      <el-button :disabled="xuanZhongDeShuJu.length === 0" type="success" @click="dianJiFuZhuXuanZhongYiZhu">复制选中医嘱
+      </el-button>
+      <el-button type="warning" :disabled="stringIsBlank(huanZheXinXi.inpatientNo)"
+                 @click="clickToModifyTheDoctorSOrderTime"> 修改医嘱时间
+      </el-button>
+      <el-button type="warning" :disabled="stringIsBlank(huanZheXinXi.inpatientNo)" @click="jumpToMedicalRecord"> 病案首页
+      </el-button>
     </el-header>
     <el-main>
       <el-table
-        ref="tableRef"
-        :data="yiZhuPage.data"
-        :height="windowSize.h / 1.5"
-        :row-class-name="differChildrenRows"
-        border
-        class="eltable"
-        highlight-current-row
-        row-key="actOrderNo"
-        @selection-change="huoQuXuanZhongDeShuJu"
-        @select-all="quanXuanYiZhu"
-        @row-click="clickOnTheForm"
+          ref="tableRef"
+          :data="yiZhuPage.data"
+          :height="windowSize.h / 1.5"
+          :row-class-name="differChildrenRows"
+          border
+          class="eltable"
+          highlight-current-row
+          row-key="actOrderNo"
+          @selection-change="huoQuXuanZhongDeShuJu"
+          @select-all="quanXuanYiZhu"
+          @row-click="clickOnTheForm"
       >
         <el-table-column fixed="left" type="index"></el-table-column>
         <el-table-column fixed="left" type="selection"></el-table-column>
@@ -128,24 +134,26 @@
         </el-table-column>
       </el-table>
       <el-pagination
-        :current-page="yiZhuPage.currentPage"
-        :page-size="yiZhuPage.pageSize"
-        :page-sizes="[10, 20, 30, 40, 50]"
-        :total="yiZhuPage.total"
-        layout="total, sizes, prev, pager, next, jumper"
-        @size-change="handleSizeChange"
-        @current-change="handleCurrentChange"
+          :current-page="yiZhuPage.currentPage"
+          :page-size="yiZhuPage.pageSize"
+          :page-sizes="[10, 20, 30, 40, 50]"
+          :total="yiZhuPage.total"
+          layout="total, sizes, prev, pager, next, jumper"
+          @size-change="handleSizeChange"
+          @current-change="handleCurrentChange"
       >
       </el-pagination>
     </el-main>
-    <el-dialog v-model="yiZhuChaoZuoDialog" :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false" :title="yiZhuChaoZuoBiaoTi" top="25%" width="30%">
+    <el-dialog v-model="yiZhuChaoZuoDialog" :close-on-click-modal="false" :close-on-press-escape="false"
+               :show-close="false" :title="yiZhuChaoZuoBiaoTi" top="25%" width="30%">
       <div v-if="chaoZuoBiaoZhi === 2">
         撤销原因:
         <el-input v-model="content" maxlength="100" rows="2" show-word-limit type="textarea"></el-input>
       </div>
       <div v-else-if="chaoZuoBiaoZhi === 3 || chaoZuoBiaoZhi === 90">
         停止时间点:
-        <el-date-picker v-model="tingZhiRiQi" format="YYYY-MM-DD HH:mm:ss" type="datetime" value-format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
+        <el-date-picker v-model="tingZhiRiQi" format="YYYY-MM-DD HH:mm:ss" type="datetime"
+                        value-format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
       </div>
       <template #footer>
         <span class="dialog-footer">
@@ -158,13 +166,18 @@
 </template>
 
 <script name="YiZhuLuRuZhuJian" setup>
-import { shortcuts } from '@/data/shortcuts'
-import { huoQuYiZhuMingCheng, huoQuYiZhuShuJu, piLiangXiuGaiTingZhiShiJian, yiZhuChaoZuo } from '@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru'
-import { fuZhiYiZhu, huanZhePinLvData, huanZheXinXi, youWuXuanZheHuanZhe, zkList } from '../public-js/zhu-yuan-yi-sheng'
-import { getDateRangeFormatDate, getFormatDatetime } from '@/utils/date'
+import {shortcuts} from '@/data/shortcuts'
+import {
+  huoQuYiZhuMingCheng,
+  huoQuYiZhuShuJu,
+  piLiangXiuGaiTingZhiShiJian,
+  yiZhuChaoZuo
+} from '@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru'
+import {fuZhiYiZhu, huanZhePinLvData, huanZheXinXi, youWuXuanZheHuanZhe, zkList} from '../public-js/zhu-yuan-yi-sheng'
+import {getDateRangeFormatDate, getFormatDatetime} from '@/utils/date'
 import store from '@/store'
-import { stringIsBlank, stringNotBlank } from '@/utils/blank-utils'
-import { getServerDateApi, getTheTransferList } from '@/api/public-api'
+import {stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
+import {getServerDateApi, getTheTransferList} from '@/api/public-api'
 import router from '@/router'
 import Sleep from '@/utils/sleep'
 
@@ -204,15 +217,15 @@ const remoteMethodChargeCode = (val) => {
 
 // 根据医嘱的名字来进行搜索 结束
 const zhuangTaiList = ref([
-  { code: 0, name: '全部' },
-  { code: 1, name: '录入' },
-  { code: 2, name: '确认' },
-  { code: 3, name: '执行' },
-  { code: 5, name: '停止' },
-  { code: 6, name: '可停止' },
-  { code: 7, name: '可撤销' },
-  { code: 8, name: '临时医嘱' },
-  { code: 9, name: '长期医嘱' },
+  {code: 0, name: '全部'},
+  {code: 1, name: '录入'},
+  {code: 2, name: '确认'},
+  {code: 3, name: '执行'},
+  {code: 5, name: '停止'},
+  {code: 6, name: '可停止'},
+  {code: 7, name: '可撤销'},
+  {code: 8, name: '临时医嘱'},
+  {code: 9, name: '长期医嘱'},
 ])
 
 const zhuangTaiXuanZhe = (val) => {
@@ -238,14 +251,14 @@ const chaXunYiZhuClick = (total) => {
     zhuangTai: zhuangTai.value,
   }
   huoQuYiZhuShuJu(data)
-    .then((res) => {
-      yiZhuPage.value.total = res.total
-      yiZhuPage.value.data = res.records
-    })
-    .catch((e) => {
-      yiZhuPage.value.total = 0
-      yiZhuPage.value.data = []
-    })
+      .then((res) => {
+        yiZhuPage.value.total = res.total
+        yiZhuPage.value.data = res.records
+      })
+      .catch((e) => {
+        yiZhuPage.value.total = 0
+        yiZhuPage.value.data = []
+      })
 }
 
 const handleSizeChange = (val) => {
@@ -258,7 +271,7 @@ const handleCurrentChange = (val) => {
   chaXunYiZhuClick(yiZhuPage.value.total)
 }
 /* 添加子医嘱的背景颜色 */
-const differChildrenRows = ({ row }) => {
+const differChildrenRows = ({row}) => {
   if (row.isChildren) {
     return 'children-row'
   }
@@ -280,7 +293,7 @@ const addYiZhuClick = () => {
   })
 }
 
-const dianJiYiZhuChaoZuo = ({ actOrderNo, orderName }, flag, name) => {
+const dianJiYiZhuChaoZuo = ({actOrderNo, orderName}, flag, name) => {
   chaoZuoBiaoZhi.value = flag
   yiZhuHao.value = actOrderNo
   if (flag === 1) {
@@ -394,20 +407,20 @@ onActivated(() => {
 })
 
 watch(
-  () => huanZheXinXi.value,
-  () => {
-    getServerDateApi().then((res) => {
-      if (dateRange.value === null) {
-        dateRange.value = []
-        dateRange.value.push(getFormatDatetime(res, 'YYYY-MM-DD'))
-        dateRange.value.push(getFormatDatetime(res, 'YYYY-MM-DD'))
-      } else {
-        dateRange.value[0] = getFormatDatetime(res, 'YYYY-MM-DD')
-        dateRange.value[1] = getFormatDatetime(res, 'YYYY-MM-DD')
-      }
-      chaXunYiZhuClick(0)
-    })
-  }
+    () => huanZheXinXi.value,
+    () => {
+      getServerDateApi().then((res) => {
+        if (dateRange.value === null) {
+          dateRange.value = []
+          dateRange.value.push(getFormatDatetime(res, 'YYYY-MM-DD'))
+          dateRange.value.push(getFormatDatetime(res, 'YYYY-MM-DD'))
+        } else {
+          dateRange.value[0] = getFormatDatetime(res, 'YYYY-MM-DD')
+          dateRange.value[1] = getFormatDatetime(res, 'YYYY-MM-DD')
+        }
+        chaXunYiZhuClick(0)
+      })
+    }
 )
 
 function getYiZhuFlag(val) {

+ 0 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yi-zhu.js


+ 5 - 0
vite.config.js

@@ -6,6 +6,7 @@ import {resolve} from 'path'
 import VueSetupExtend from 'vite-plugin-vue-setup-extend'
 // 不用导入 vue 的 import 了
 import AutoImport from 'unplugin-auto-import/vite'
+import Icons from "unplugin-icons/vite";
 
 
 const pathResolve = (dir) => {
@@ -21,6 +22,10 @@ export default defineConfig({
         alias,
     },
     plugins: [
+        Icons({
+            autoInstall: true,
+            compiler: "vue3",
+        }),
         VueSetupExtend(),
         vue({
             refTransform: true