From 78919c176e19f2bf1a70654dbe00fdd15e26d7f6 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Wed, 12 Feb 2025 10:04:04 +0800 Subject: [PATCH 01/22] =?UTF-8?q?=E6=82=A3=E8=80=85=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-ui/.env.development | 4 +- acupuncture-ui/.env.production | 4 +- acupuncture-ui/.env.staging | 4 +- acupuncture-ui/README.md | 4 +- acupuncture-ui/package.json | 6 +- acupuncture-ui/src/App.vue | 57 +- acupuncture-ui/src/api/login.js | 50 +- acupuncture-ui/src/api/patientFile.js | 10 + acupuncture-ui/src/api/system/user.js | 2 +- acupuncture-ui/src/assets/styles/ruoyi.scss | 2 +- .../src/components/RuoYi/Doc/index.vue | 6 +- .../src/components/RuoYi/Git/index.vue | 6 +- acupuncture-ui/src/directive/dialog/drag.js | 4 +- .../src/directive/dialog/dragHeight.js | 2 +- .../src/directive/dialog/dragWidth.js | 2 +- .../src/directive/module/clipboard.js | 2 +- .../src/directive/permission/hasPermi.js | 2 +- .../src/directive/permission/hasRole.js | 2 +- .../src/layout/components/Navbar.vue | 12 +- acupuncture-ui/src/main.js | 4 +- acupuncture-ui/src/plugins/download.js | 2 +- acupuncture-ui/src/utils/dict/Dict.js | 2 +- acupuncture-ui/src/utils/dict/DictMeta.js | 2 +- acupuncture-ui/src/utils/dict/DictOptions.js | 2 +- acupuncture-ui/src/utils/index.js | 2 +- acupuncture-ui/src/utils/request.js | 2 +- acupuncture-ui/src/utils/ruoyi.js | 2 +- acupuncture-ui/src/views/index.vue | 81 ++- acupuncture-ui/src/views/login.vue | 112 ++-- .../src/views/monitor/job/index.vue | 2 +- .../src/views/patientFile/index.vue | 594 ++++++++++++++++++ acupuncture-ui/src/views/register.vue | 131 ++-- .../src/views/system/user/index.vue | 2 +- .../src/views/tool/gen/genInfoForm.vue | 2 +- acupuncture-ui/src/views/tool/gen/index.vue | 2 +- acupuncture-ui/vue.config.js | 153 +++-- 36 files changed, 1018 insertions(+), 260 deletions(-) create mode 100644 acupuncture-ui/src/api/patientFile.js create mode 100644 acupuncture-ui/src/views/patientFile/index.vue diff --git a/acupuncture-ui/.env.development b/acupuncture-ui/.env.development index 302ecd1a..365dcc24 100644 --- a/acupuncture-ui/.env.development +++ b/acupuncture-ui/.env.development @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 针灸管理系统 # 开发环境配置 ENV = 'development' -# 若依管理系统/开发环境 +# 针灸管理系统/开发环境 VUE_APP_BASE_API = '/dev-api' # 路由懒加载 diff --git a/acupuncture-ui/.env.production b/acupuncture-ui/.env.production index b4893b0d..a2858f2f 100644 --- a/acupuncture-ui/.env.production +++ b/acupuncture-ui/.env.production @@ -1,8 +1,8 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 针灸管理系统 # 生产环境配置 ENV = 'production' -# 若依管理系统/生产环境 +# 针灸管理系统/生产环境 VUE_APP_BASE_API = '/prod-api' diff --git a/acupuncture-ui/.env.staging b/acupuncture-ui/.env.staging index 209b64e3..6523f1b3 100644 --- a/acupuncture-ui/.env.staging +++ b/acupuncture-ui/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 针灸管理系统 BABEL_ENV = production @@ -8,5 +8,5 @@ NODE_ENV = production # 测试环境配置 ENV = 'staging' -# 若依管理系统/测试环境 +# 针灸管理系统/测试环境 VUE_APP_BASE_API = '/stage-api' diff --git a/acupuncture-ui/README.md b/acupuncture-ui/README.md index e82b44f9..00c0ab84 100644 --- a/acupuncture-ui/README.md +++ b/acupuncture-ui/README.md @@ -2,10 +2,10 @@ ```bash # 克隆项目 -git clone https://gitee.com/y_project/acupuncture-Vue +git clone https://gitee.com/y_project/RuoYi-Vue # 进入项目目录 -cd acupuncture-ui +cd ruoyi-ui # 安装依赖 npm install diff --git a/acupuncture-ui/package.json b/acupuncture-ui/package.json index 1e722ec2..e29e4d95 100644 --- a/acupuncture-ui/package.json +++ b/acupuncture-ui/package.json @@ -1,7 +1,7 @@ { - "name": "acupuncture", + "name": "ruoyi", "version": "3.8.9", - "description": "若依管理系统", + "description": "针灸管理系统", "author": "若依", "license": "MIT", "scripts": { @@ -33,7 +33,7 @@ ], "repository": { "type": "git", - "url": "https://gitee.com/y_project/acupuncture-Vue.git" + "url": "https://gitee.com/y_project/RuoYi-Vue.git" }, "dependencies": { "@riophae/vue-treeselect": "0.4.0", diff --git a/acupuncture-ui/src/App.vue b/acupuncture-ui/src/App.vue index b92ea379..1066ff93 100644 --- a/acupuncture-ui/src/App.vue +++ b/acupuncture-ui/src/App.vue @@ -13,12 +13,16 @@ export default { components: { ThemePicker }, metaInfo() { return { - title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title, - titleTemplate: title => { - return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE - } - } - } + title: + this.$store.state.settings.dynamicTitle && + this.$store.state.settings.title, + titleTemplate: (title) => { + return title + ? `${title} - ${process.env.VUE_APP_TITLE}` + : process.env.VUE_APP_TITLE; + }, + }; + }, }; + diff --git a/acupuncture-ui/src/api/login.js b/acupuncture-ui/src/api/login.js index 7b7388fd..dc87eebb 100644 --- a/acupuncture-ui/src/api/login.js +++ b/acupuncture-ui/src/api/login.js @@ -1,4 +1,4 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // 登录方法 export function login(username, password, code, uuid) { @@ -6,55 +6,55 @@ export function login(username, password, code, uuid) { username, password, code, - uuid - } + uuid, + }; return request({ - url: '/login', + url: "/web/login", headers: { isToken: false, - repeatSubmit: false + repeatSubmit: false, }, - method: 'post', - data: data - }) + method: "post", + data: data, + }); } // 注册方法 export function register(data) { return request({ - url: '/register', + url: "/register", headers: { - isToken: false + isToken: false, }, - method: 'post', - data: data - }) + method: "post", + data: data, + }); } // 获取用户详细信息 export function getInfo() { return request({ - url: '/getInfo', - method: 'get' - }) + url: "/getInfo", + method: "get", + }); } // 退出方法 export function logout() { return request({ - url: '/logout', - method: 'post' - }) + url: "/logout", + method: "post", + }); } // 获取验证码 export function getCodeImg() { return request({ - url: '/captchaImage', + url: "/captchaImage", headers: { - isToken: false + isToken: false, }, - method: 'get', - timeout: 20000 - }) -} \ No newline at end of file + method: "get", + timeout: 20000, + }); +} diff --git a/acupuncture-ui/src/api/patientFile.js b/acupuncture-ui/src/api/patientFile.js new file mode 100644 index 00000000..c6de6c9a --- /dev/null +++ b/acupuncture-ui/src/api/patientFile.js @@ -0,0 +1,10 @@ +import request from "@/utils/request"; + +// 注册方法 +export function queryPatient(data) { + return request({ + url: "/patient/list", + method: "post", + data: data, + }); +} diff --git a/acupuncture-ui/src/api/system/user.js b/acupuncture-ui/src/api/system/user.js index e17c5b73..b5e3edd8 100644 --- a/acupuncture-ui/src/api/system/user.js +++ b/acupuncture-ui/src/api/system/user.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import { parseStrEmpty } from "@/utils/acupuncture"; +import { parseStrEmpty } from "@/utils/ruoyi"; // 查询用户列表 export function listUser(query) { diff --git a/acupuncture-ui/src/assets/styles/ruoyi.scss b/acupuncture-ui/src/assets/styles/ruoyi.scss index 4a1292ef..7e44513c 100644 --- a/acupuncture-ui/src/assets/styles/ruoyi.scss +++ b/acupuncture-ui/src/assets/styles/ruoyi.scss @@ -1,6 +1,6 @@ /** * 通用css样式布局处理 -* Copyright (c) 2019 acupuncture +* Copyright (c) 2019 ruoyi */ /** 基础通用 **/ diff --git a/acupuncture-ui/src/components/RuoYi/Doc/index.vue b/acupuncture-ui/src/components/RuoYi/Doc/index.vue index a37b5945..75fa8641 100644 --- a/acupuncture-ui/src/components/RuoYi/Doc/index.vue +++ b/acupuncture-ui/src/components/RuoYi/Doc/index.vue @@ -6,10 +6,10 @@ + \ No newline at end of file diff --git a/acupuncture-ui/src/components/RuoYi/Git/index.vue b/acupuncture-ui/src/components/RuoYi/Git/index.vue index 054a8e45..bdafbaef 100644 --- a/acupuncture-ui/src/components/RuoYi/Git/index.vue +++ b/acupuncture-ui/src/components/RuoYi/Git/index.vue @@ -6,10 +6,10 @@ + \ No newline at end of file diff --git a/acupuncture-ui/src/directive/dialog/drag.js b/acupuncture-ui/src/directive/dialog/drag.js index c6d98841..2e823465 100644 --- a/acupuncture-ui/src/directive/dialog/drag.js +++ b/acupuncture-ui/src/directive/dialog/drag.js @@ -1,6 +1,6 @@ /** * v-dialogDrag 弹窗拖拽 -* Copyright (c) 2019 acupuncture +* Copyright (c) 2019 ruoyi */ export default { @@ -61,4 +61,4 @@ export default { }; } } -}; +}; \ No newline at end of file diff --git a/acupuncture-ui/src/directive/dialog/dragHeight.js b/acupuncture-ui/src/directive/dialog/dragHeight.js index bb54be6f..97e53054 100644 --- a/acupuncture-ui/src/directive/dialog/dragHeight.js +++ b/acupuncture-ui/src/directive/dialog/dragHeight.js @@ -1,6 +1,6 @@ /** * v-dialogDragWidth 可拖动弹窗高度(右下角) - * Copyright (c) 2019 acupuncture + * Copyright (c) 2019 ruoyi */ export default { diff --git a/acupuncture-ui/src/directive/dialog/dragWidth.js b/acupuncture-ui/src/directive/dialog/dragWidth.js index f7266a06..2df08673 100644 --- a/acupuncture-ui/src/directive/dialog/dragWidth.js +++ b/acupuncture-ui/src/directive/dialog/dragWidth.js @@ -1,6 +1,6 @@ /** * v-dialogDragWidth 可拖动弹窗宽度(右侧边) - * Copyright (c) 2019 acupuncture + * Copyright (c) 2019 ruoyi */ export default { diff --git a/acupuncture-ui/src/directive/module/clipboard.js b/acupuncture-ui/src/directive/module/clipboard.js index 9e00551c..635315a8 100644 --- a/acupuncture-ui/src/directive/module/clipboard.js +++ b/acupuncture-ui/src/directive/module/clipboard.js @@ -1,6 +1,6 @@ /** * v-clipboard 文字复制剪贴 -* Copyright (c) 2021 acupuncture +* Copyright (c) 2021 ruoyi */ import Clipboard from 'clipboard' diff --git a/acupuncture-ui/src/directive/permission/hasPermi.js b/acupuncture-ui/src/directive/permission/hasPermi.js index ff5f3aab..7101e3e8 100644 --- a/acupuncture-ui/src/directive/permission/hasPermi.js +++ b/acupuncture-ui/src/directive/permission/hasPermi.js @@ -1,6 +1,6 @@ /** * v-hasPermi 操作权限处理 - * Copyright (c) 2019 acupuncture + * Copyright (c) 2019 ruoyi */ import store from '@/store' diff --git a/acupuncture-ui/src/directive/permission/hasRole.js b/acupuncture-ui/src/directive/permission/hasRole.js index 65a538e2..ad9d4d79 100644 --- a/acupuncture-ui/src/directive/permission/hasRole.js +++ b/acupuncture-ui/src/directive/permission/hasRole.js @@ -1,6 +1,6 @@ /** * v-hasRole 角色权限处理 - * Copyright (c) 2019 acupuncture + * Copyright (c) 2019 ruoyi */ import store from '@/store' diff --git a/acupuncture-ui/src/layout/components/Navbar.vue b/acupuncture-ui/src/layout/components/Navbar.vue index 718a982f..466cd981 100644 --- a/acupuncture-ui/src/layout/components/Navbar.vue +++ b/acupuncture-ui/src/layout/components/Navbar.vue @@ -10,11 +10,11 @@ - + - + @@ -54,8 +54,8 @@ import Hamburger from '@/components/Hamburger' import Screenfull from '@/components/Screenfull' import SizeSelect from '@/components/SizeSelect' import Search from '@/components/HeaderSearch' -import acupunctureGit from '@/components/acupuncture/Git' -import acupunctureDoc from '@/components/acupuncture/Doc' +import RuoYiGit from '@/components/RuoYi/Git' +import RuoYiDoc from '@/components/RuoYi/Doc' export default { components: { @@ -65,8 +65,8 @@ export default { Screenfull, SizeSelect, Search, - acupunctureGit, - acupunctureDoc + RuoYiGit, + RuoYiDoc }, computed: { ...mapGetters([ diff --git a/acupuncture-ui/src/main.js b/acupuncture-ui/src/main.js index 9f1c1816..13c6cf29 100644 --- a/acupuncture-ui/src/main.js +++ b/acupuncture-ui/src/main.js @@ -6,7 +6,7 @@ import Element from 'element-ui' import './assets/styles/element-variables.scss' import '@/assets/styles/index.scss' // global css -import '@/assets/styles/acupuncture.scss' // acupuncture css +import '@/assets/styles/ruoyi.scss' // ruoyi css import App from './App' import store from './store' import router from './router' @@ -18,7 +18,7 @@ import './assets/icons' // icon import './permission' // permission control import { getDicts } from "@/api/system/dict/data"; import { getConfigKey } from "@/api/system/config"; -import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/acupuncture"; +import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi"; // 分页组件 import Pagination from "@/components/Pagination"; // 自定义表格工具组件 diff --git a/acupuncture-ui/src/plugins/download.js b/acupuncture-ui/src/plugins/download.js index b53c938a..42acd006 100644 --- a/acupuncture-ui/src/plugins/download.js +++ b/acupuncture-ui/src/plugins/download.js @@ -3,7 +3,7 @@ import {Loading, Message} from 'element-ui' import { saveAs } from 'file-saver' import { getToken } from '@/utils/auth' import errorCode from '@/utils/errorCode' -import { blobValidate } from "@/utils/acupuncture"; +import { blobValidate } from "@/utils/ruoyi"; const baseURL = process.env.VUE_APP_BASE_API let downloadLoadingInstance; diff --git a/acupuncture-ui/src/utils/dict/Dict.js b/acupuncture-ui/src/utils/dict/Dict.js index 37c635d1..104bd6e7 100644 --- a/acupuncture-ui/src/utils/dict/Dict.js +++ b/acupuncture-ui/src/utils/dict/Dict.js @@ -1,5 +1,5 @@ import Vue from 'vue' -import { mergeRecursive } from "@/utils/acupuncture"; +import { mergeRecursive } from "@/utils/ruoyi"; import DictMeta from './DictMeta' import DictData from './DictData' diff --git a/acupuncture-ui/src/utils/dict/DictMeta.js b/acupuncture-ui/src/utils/dict/DictMeta.js index 5c12bab4..9779daa4 100644 --- a/acupuncture-ui/src/utils/dict/DictMeta.js +++ b/acupuncture-ui/src/utils/dict/DictMeta.js @@ -1,4 +1,4 @@ -import { mergeRecursive } from "@/utils/acupuncture"; +import { mergeRecursive } from "@/utils/ruoyi"; import DictOptions from './DictOptions' /** diff --git a/acupuncture-ui/src/utils/dict/DictOptions.js b/acupuncture-ui/src/utils/dict/DictOptions.js index b6046c86..338a94e1 100644 --- a/acupuncture-ui/src/utils/dict/DictOptions.js +++ b/acupuncture-ui/src/utils/dict/DictOptions.js @@ -1,4 +1,4 @@ -import { mergeRecursive } from "@/utils/acupuncture"; +import { mergeRecursive } from "@/utils/ruoyi"; import dictConverter from './DictConverter' export const options = { diff --git a/acupuncture-ui/src/utils/index.js b/acupuncture-ui/src/utils/index.js index c79bd683..df5db12b 100644 --- a/acupuncture-ui/src/utils/index.js +++ b/acupuncture-ui/src/utils/index.js @@ -1,4 +1,4 @@ -import { parseTime } from './acupuncture' +import { parseTime } from './ruoyi' /** * 表格时间格式化 diff --git a/acupuncture-ui/src/utils/request.js b/acupuncture-ui/src/utils/request.js index ef386d29..ffb0d219 100644 --- a/acupuncture-ui/src/utils/request.js +++ b/acupuncture-ui/src/utils/request.js @@ -3,7 +3,7 @@ import { Notification, MessageBox, Message, Loading } from 'element-ui' import store from '@/store' import { getToken } from '@/utils/auth' import errorCode from '@/utils/errorCode' -import { tansParams, blobValidate } from "@/utils/acupuncture"; +import { tansParams, blobValidate } from "@/utils/ruoyi"; import cache from '@/plugins/cache' import { saveAs } from 'file-saver' diff --git a/acupuncture-ui/src/utils/ruoyi.js b/acupuncture-ui/src/utils/ruoyi.js index bd3a6f1e..44bf9c40 100644 --- a/acupuncture-ui/src/utils/ruoyi.js +++ b/acupuncture-ui/src/utils/ruoyi.js @@ -2,7 +2,7 @@ /** * 通用js方法封装处理 - * Copyright (c) 2019 acupuncture + * Copyright (c) 2019 ruoyi */ // 日期格式化 diff --git a/acupuncture-ui/src/views/index.vue b/acupuncture-ui/src/views/index.vue index 737595c6..f5750d24 100644 --- a/acupuncture-ui/src/views/index.vue +++ b/acupuncture-ui/src/views/index.vue @@ -3,7 +3,18 @@
- 阿里云服务器折扣区☛☛点我进入☚☚     腾讯云服务器秒杀区☛☛点我进入☚☚ + 阿里云服务器折扣区☛☛点我进入☚☚ +     腾讯云服务器秒杀区☛☛点我进入☚☚

@@ -12,7 +23,7 @@

若依后台管理框架

- 一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了若依管理系统,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。 + 一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了针灸管理系统,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。

当前版本: v{{ version }} @@ -26,14 +37,14 @@ size="mini" icon="el-icon-cloudy" plain - @click="goTarget('https://gitee.com/y_project/acupuncture-Vue')" + @click="goTarget('https://gitee.com/y_project/RuoYi-Vue')" >访问码云 访问主页

@@ -83,19 +94,26 @@

官网:http://www.acupuncture.viphttp://www.ruoyi.vip

- QQ群: 满937441 满887144332 - 满180251782 满104180207 满186866453 满201396349 - 满101456076 满101539465 满264312783 满167385320 - 满104748341 满160110482 满170801498 满108482800 - 满101046199 满136919097 满143961921 满174951577 - 满161281055 满138988063 满151450850 满224622315 - 满287842588 187944233 + QQ群: 满937441 + 满887144332 满180251782 满104180207 + 满186866453 满201396349 满101456076 + 满101539465 满264312783 满167385320 + 满104748341 满160110482 满170801498 + 满108482800 满101046199 满136919097 + 满143961921 满174951577 满161281055 + 满138988063 满151450850 满224622315 + 满287842588 + 187944233

微信:修复table中更多按钮切换主题色未生效修复问题

  • 修复某些特性的环境生成代码变乱码TXT文件问题
  • 修复代码生成图片/文件/单选时选择必填无法校验问题
  • -
  • 修复某些特性的情况用户编辑对话框中角色和部门无法修改问题
  • +
  • + 修复某些特性的情况用户编辑对话框中角色和部门无法修改问题 +
  • 其他细节优化
  • @@ -364,7 +384,9 @@
  • 新增获取不带后缀文件名称方法
  • 新增获取配置文件中的属性值方法
  • 新增内容编码/解码方便插件集成使用
  • -
  • 字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)
  • +
  • + 字典类型必须以字母开头,且只能为(小写字母,数字,下滑线) +
  • 优化设置分页参数默认值
  • 优化对空字符串参数处理的过滤
  • 优化显示顺序orderNum类型为整型
  • @@ -568,8 +590,12 @@
  • BLOB下载时清除URL对象引用
  • 代码生成导入表按创建时间排序
  • 修复代码生成页面数据编辑保存之后总是跳转第一页的问题
  • -
  • 修复带safari浏览器无法格式化utc日期格式yyyy-MM-dd'T'HH:mm:ss.SSS问题
  • -
  • 多图上传组件移除多余的api地址&验证失败导致图片删除问题&无法删除相应图片修复
  • +
  • + 修复带safari浏览器无法格式化utc日期格式yyyy-MM-dd'T'HH:mm:ss.SSS问题 +
  • +
  • + 多图上传组件移除多余的api地址&验证失败导致图片删除问题&无法删除相应图片修复 +
  • 其他细节优化
  • @@ -614,7 +640,9 @@
      -
    1. 新增菜单导航显示风格TopNav(false为左侧导航菜单,true为顶部导航菜单)
    2. +
    3. + 新增菜单导航显示风格TopNav(false为左侧导航菜单,true为顶部导航菜单) +
    4. 布局设置支持保存&重置配置
    5. 修复树表数据显示不全&加载慢问题
    6. 新增IE浏览器版本过低提示页面
    7. @@ -633,7 +661,9 @@
    8. 升级druid到最新版本v1.2.6
    9. 升级mybatis到最新版3.5.6 阻止远程代码执行漏洞
    10. 升级oshi到最新版本v5.6.0
    11. -
    12. velocity剔除commons-collections版本,防止3.2.1版本的反序列化漏洞
    13. +
    14. + velocity剔除commons-collections版本,防止3.2.1版本的反序列化漏洞 +
    15. 数据监控页默认账户密码防止越权访问
    16. 修复firefox下表单构建拖拽会新打卡一个选项卡
    17. 修正后端导入表权限标识
    18. @@ -1010,11 +1040,7 @@ 捐赠支持
    - donate + donate 你可以请作者喝杯咖啡表示鼓励 @@ -1031,14 +1057,14 @@ export default { data() { return { // 版本号 - version: "3.8.9" + version: "3.8.9", }; }, methods: { goTarget(href) { window.open(href, "_blank"); - } - } + }, + }, }; @@ -1105,4 +1131,3 @@ export default { } } - diff --git a/acupuncture-ui/src/views/login.vue b/acupuncture-ui/src/views/login.vue index efb63de7..5f898936 100644 --- a/acupuncture-ui/src/views/login.vue +++ b/acupuncture-ui/src/views/login.vue @@ -1,7 +1,12 @@ @@ -64,7 +87,7 @@ diff --git a/acupuncture-ui/src/views/monitor/job/index.vue b/acupuncture-ui/src/views/monitor/job/index.vue index d9e43757..892c7275 100644 --- a/acupuncture-ui/src/views/monitor/job/index.vue +++ b/acupuncture-ui/src/views/monitor/job/index.vue @@ -179,7 +179,7 @@
    Bean调用示例:ryTask.ryParams('ry') -
    Class类调用示例:com.acupuncture.quartz.task.RyTask.ryParams('ry') +
    Class类调用示例:com.ruoyi.quartz.task.RyTask.ryParams('ry')
    参数说明:支持字符串,布尔类型,长整型,浮点型,整型
    diff --git a/acupuncture-ui/src/views/patientFile/index.vue b/acupuncture-ui/src/views/patientFile/index.vue new file mode 100644 index 00000000..320e6595 --- /dev/null +++ b/acupuncture-ui/src/views/patientFile/index.vue @@ -0,0 +1,594 @@ + + + + diff --git a/acupuncture-ui/src/views/register.vue b/acupuncture-ui/src/views/register.vue index f2d24bcf..62b634c1 100644 --- a/acupuncture-ui/src/views/register.vue +++ b/acupuncture-ui/src/views/register.vue @@ -1,10 +1,24 @@ @@ -86,26 +114,40 @@ export default { password: "", confirmPassword: "", code: "", - uuid: "" + uuid: "", }, registerRules: { username: [ { required: true, trigger: "blur", message: "请输入您的账号" }, - { min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' } + { + min: 2, + max: 20, + message: "用户账号长度必须介于 2 和 20 之间", + trigger: "blur", + }, ], password: [ { required: true, trigger: "blur", message: "请输入您的密码" }, - { min: 5, max: 20, message: "用户密码长度必须介于 5 和 20 之间", trigger: "blur" }, - { pattern: /^[^<>"'|\\]+$/, message: "不能包含非法字符:< > \" ' \\\ |", trigger: "blur" } + { + min: 5, + max: 20, + message: "用户密码长度必须介于 5 和 20 之间", + trigger: "blur", + }, + { + pattern: /^[^<>"'|\\]+$/, + message: "不能包含非法字符:< > \" ' \\\ |", + trigger: "blur", + }, ], confirmPassword: [ { required: true, trigger: "blur", message: "请再次输入您的密码" }, - { required: true, validator: equalToPassword, trigger: "blur" } + { required: true, validator: equalToPassword, trigger: "blur" }, ], - code: [{ required: true, trigger: "change", message: "请输入验证码" }] + code: [{ required: true, trigger: "change", message: "请输入验证码" }], }, loading: false, - captchaEnabled: true + captchaEnabled: true, }; }, created() { @@ -113,8 +155,9 @@ export default { }, methods: { getCode() { - getCodeImg().then(res => { - this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled; + getCodeImg().then((res) => { + this.captchaEnabled = + res.captchaEnabled === undefined ? true : res.captchaEnabled; if (this.captchaEnabled) { this.codeUrl = "data:image/gif;base64," + res.img; this.registerForm.uuid = res.uuid; @@ -122,27 +165,37 @@ export default { }); }, handleRegister() { - this.$refs.registerForm.validate(valid => { + this.$refs.registerForm.validate((valid) => { if (valid) { this.loading = true; - register(this.registerForm).then(res => { - const username = this.registerForm.username; - this.$alert("恭喜你,您的账号 " + username + " 注册成功!", '系统提示', { - dangerouslyUseHTMLString: true, - type: 'success' - }).then(() => { - this.$router.push("/login"); - }).catch(() => {}); - }).catch(() => { - this.loading = false; - if (this.captchaEnabled) { - this.getCode(); - } - }) + register(this.registerForm) + .then((res) => { + const username = this.registerForm.username; + this.$alert( + "恭喜你,您的账号 " + + username + + " 注册成功!", + "系统提示", + { + dangerouslyUseHTMLString: true, + type: "success", + } + ) + .then(() => { + this.$router.push("/login"); + }) + .catch(() => {}); + }) + .catch(() => { + this.loading = false; + if (this.captchaEnabled) { + this.getCode(); + } + }); } }); - } - } + }, + }, }; diff --git a/acupuncture-ui/src/views/system/user/index.vue b/acupuncture-ui/src/views/system/user/index.vue index 1dbc2d14..dbaede04 100644 --- a/acupuncture-ui/src/views/system/user/index.vue +++ b/acupuncture-ui/src/views/system/user/index.vue @@ -550,4 +550,4 @@ export default { } } }; - \ No newline at end of file + diff --git a/acupuncture-ui/src/views/tool/gen/genInfoForm.vue b/acupuncture-ui/src/views/tool/gen/genInfoForm.vue index d4cd72af..98daf6d5 100644 --- a/acupuncture-ui/src/views/tool/gen/genInfoForm.vue +++ b/acupuncture-ui/src/views/tool/gen/genInfoForm.vue @@ -24,7 +24,7 @@ 生成包路径 - + diff --git a/acupuncture-ui/src/views/tool/gen/index.vue b/acupuncture-ui/src/views/tool/gen/index.vue index f8528e21..9237c302 100644 --- a/acupuncture-ui/src/views/tool/gen/index.vue +++ b/acupuncture-ui/src/views/tool/gen/index.vue @@ -280,7 +280,7 @@ export default { this.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath); }); } else { - this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, "acupuncture.zip"); + this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, "ruoyi.zip"); } }, /** 同步数据库操作 */ diff --git a/acupuncture-ui/vue.config.js b/acupuncture-ui/vue.config.js index 1eb35617..f1aa0f3f 100644 --- a/acupuncture-ui/vue.config.js +++ b/acupuncture-ui/vue.config.js @@ -1,15 +1,15 @@ -'use strict' -const path = require('path') +"use strict"; +const path = require("path"); function resolve(dir) { - return path.join(__dirname, dir) + return path.join(__dirname, dir); } -const CompressionPlugin = require('compression-webpack-plugin') +const CompressionPlugin = require("compression-webpack-plugin"); -const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题 +const name = process.env.VUE_APP_TITLE || "针灸管理系统"; // 网页标题 -const port = process.env.port || process.env.npm_config_port || 80 // 端口 +const port = process.env.port || process.env.npm_config_port || 80; // 端口 // vue.config.js 配置说明 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions @@ -17,115 +17,114 @@ const port = process.env.port || process.env.npm_config_port || 80 // 端口 module.exports = { // 部署生产环境和开发环境下的URL。 // 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上 - // 例如 https://www.acupuncture.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.acupuncture.vip/admin/,则设置 baseUrl 为 /admin/。 + // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。 publicPath: process.env.NODE_ENV === "production" ? "/" : "/", // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist) - outputDir: 'dist', + outputDir: "dist", // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下) - assetsDir: 'static', + assetsDir: "static", // 是否开启eslint保存检测,有效值:ture | false | 'error' - lintOnSave: process.env.NODE_ENV === 'development', + lintOnSave: process.env.NODE_ENV === "development", // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。 productionSourceMap: false, - transpileDependencies: ['quill'], + transpileDependencies: ["quill"], // webpack-dev-server 相关配置 devServer: { - host: '0.0.0.0', + host: "0.0.0.0", port: port, open: true, proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, + target: `https://test.tall.wiki/acupuncture`, changeOrigin: true, pathRewrite: { - ['^' + process.env.VUE_APP_BASE_API]: '' - } - } + ["^" + process.env.VUE_APP_BASE_API]: "", + }, + }, }, - disableHostCheck: true + disableHostCheck: true, }, css: { loaderOptions: { sass: { - sassOptions: { outputStyle: "expanded" } - } - } + sassOptions: { outputStyle: "expanded" }, + }, + }, }, configureWebpack: { name: name, resolve: { alias: { - '@': resolve('src') - } + "@": resolve("src"), + }, }, plugins: [ - // http://doc.acupuncture.vip/acupuncture-vue/other/faq.html#使用gzip解压缩静态文件 + // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件 new CompressionPlugin({ - cache: false, // 不启用文件缓存 - test: /\.(js|css|html|jpe?g|png|gif|svg)?$/i, // 压缩文件格式 - filename: '[path][base].gz[query]', // 压缩后的文件名 - algorithm: 'gzip', // 使用gzip压缩 - minRatio: 0.8, // 压缩比例,小于 80% 的文件不会被压缩 - deleteOriginalAssets: false // 压缩后删除原文件 - }) + cache: false, // 不启用文件缓存 + test: /\.(js|css|html|jpe?g|png|gif|svg)?$/i, // 压缩文件格式 + filename: "[path][base].gz[query]", // 压缩后的文件名 + algorithm: "gzip", // 使用gzip压缩 + minRatio: 0.8, // 压缩比例,小于 80% 的文件不会被压缩 + deleteOriginalAssets: false, // 压缩后删除原文件 + }), ], }, chainWebpack(config) { - config.plugins.delete('preload') // TODO: need test - config.plugins.delete('prefetch') // TODO: need test + config.plugins.delete("preload"); // TODO: need test + config.plugins.delete("prefetch"); // TODO: need test // set svg-sprite-loader + config.module.rule("svg").exclude.add(resolve("src/assets/icons")).end(); config.module - .rule('svg') - .exclude.add(resolve('src/assets/icons')) - .end() - config.module - .rule('icons') + .rule("icons") .test(/\.svg$/) - .include.add(resolve('src/assets/icons')) + .include.add(resolve("src/assets/icons")) .end() - .use('svg-sprite-loader') - .loader('svg-sprite-loader') + .use("svg-sprite-loader") + .loader("svg-sprite-loader") .options({ - symbolId: 'icon-[name]' + symbolId: "icon-[name]", }) - .end() + .end(); - config.when(process.env.NODE_ENV !== 'development', config => { - config - .plugin('ScriptExtHtmlWebpackPlugin') - .after('html') - .use('script-ext-html-webpack-plugin', [{ + config.when(process.env.NODE_ENV !== "development", (config) => { + config + .plugin("ScriptExtHtmlWebpackPlugin") + .after("html") + .use("script-ext-html-webpack-plugin", [ + { // `runtime` must same as runtimeChunk name. default is `runtime` - inline: /runtime\..*\.js$/ - }]) - .end() + inline: /runtime\..*\.js$/, + }, + ]) + .end(); - config.optimization.splitChunks({ - chunks: 'all', - cacheGroups: { - libs: { - name: 'chunk-libs', - test: /[\\/]node_modules[\\/]/, - priority: 10, - chunks: 'initial' // only package third parties that are initially dependent - }, - elementUI: { - name: 'chunk-elementUI', // split elementUI into a single package - test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm - priority: 20 // the weight needs to be larger than libs and app or it will be packaged into libs or app - }, - commons: { - name: 'chunk-commons', - test: resolve('src/components'), // can customize your rules - minChunks: 3, // minimum common number - priority: 5, - reuseExistingChunk: true - } - } - }) - config.optimization.runtimeChunk('single') - }) - } -} + config.optimization.splitChunks({ + chunks: "all", + cacheGroups: { + libs: { + name: "chunk-libs", + test: /[\\/]node_modules[\\/]/, + priority: 10, + chunks: "initial", // only package third parties that are initially dependent + }, + elementUI: { + name: "chunk-elementUI", // split elementUI into a single package + test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm + priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app + }, + commons: { + name: "chunk-commons", + test: resolve("src/components"), // can customize your rules + minChunks: 3, // minimum common number + priority: 5, + reuseExistingChunk: true, + }, + }, + }); + config.optimization.runtimeChunk("single"); + }); + }, +}; From 631e6713eb812804e013c6284f0bd60f11881b59 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Wed, 12 Feb 2025 10:29:12 +0800 Subject: [PATCH 02/22] =?UTF-8?q?=E6=82=A3=E8=80=85=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/patientFile/index.vue | 113 ++++++++++++------ 1 file changed, 75 insertions(+), 38 deletions(-) diff --git a/acupuncture-ui/src/views/patientFile/index.vue b/acupuncture-ui/src/views/patientFile/index.vue index 320e6595..a9e6d412 100644 --- a/acupuncture-ui/src/views/patientFile/index.vue +++ b/acupuncture-ui/src/views/patientFile/index.vue @@ -10,7 +10,7 @@ >
    - + - + @@ -143,10 +143,11 @@ align="center" prop="gender" show-overflow-tooltip - min-width="100" + width="100" > @@ -155,38 +156,48 @@ align="center" prop="birthDate" show-overflow-tooltip + width="150" /> + width="200" + > + + - + @@ -196,20 +207,28 @@ align="center" prop="createBy" show-overflow-tooltip + width="100" /> - + width="100" + > + + - - - - + + @@ -327,7 +349,7 @@ class="avatar-uploader wj-uploader" :headers="headers" :action="uploadFileUrl1" - accept=".zip" + accept=".xlsx, .xls" :before-upload="handleBeforePdfUpload1" :on-success="handleUploadPdfAdd1" :file-list="fileList" @@ -366,6 +388,7 @@ export default { }, uploadFileUrl1: process.env.VUE_APP_BASE_API + "/pms/importTjbgZip", // 上传的图片服务器地址 fileList: [], + // 现病史 medicalHistory: [ "高血压", "脑血管病", @@ -386,6 +409,30 @@ export default { "肾炎、肾病", "高脂血症", ], + idCardType: [ + { + label: "身份证", + value: 0, + }, + { + label: "护照或外国人永居证", + value: 1, + }, + { + label: "港澳居民来往内地通行", + value: 2, + }, + { + label: "台湾居民来往大陆通行证", + value: 3, + }, + ], + idCardTypeValue: { + 0: "身份证", + 1: "护照或外国人永居证", + 2: "港澳居民来往内地通行", + 3: "台湾居民来往大陆通行证", + }, loading: false, // 遮罩层 ids: [], // 选中数组 single: true, // 非单个禁用 @@ -411,17 +458,7 @@ export default { }, importform: {}, // 表单参数 - form: { - name: "", - gender: 0, - birthDate: "", - ethnicity: "", - educationYears: "", - phone: "", - idCardType: "", - idCard: "", - currentIllnessHistory: [], - }, + form: {}, // 表单校验 rules: { noticeTitle: [ @@ -483,15 +520,15 @@ export default { // 表单重置 reset() { this.form = { - name: "", - gender: 0, - birthDate: "", - ethnicity: "", - educationYears: "", - phone: "", - idCardType: "", - idCard: "", - currentIllnessHistory: [], + name: "", // 姓名 + gender: 0, // 性别 + birthDate: "", // 出生日期 + ethnicity: "", // 民族 + educationYears: "", // 教育程度 + phone: "", // 联系电话 + idCardType: "", // 证件类型 + idCard: "", // 证件号码 + currentIllnessHistory: [], // 现病史 }; this.resetForm("form"); }, From f43407e11a8a739e922b777e81fb6fb81e48bc20 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Wed, 12 Feb 2025 14:17:35 +0800 Subject: [PATCH 03/22] =?UTF-8?q?=E6=82=A3=E8=80=85=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-ui/src/App.vue | 3 - .../src/views/patientFile/index.vue | 127 ++++++++++++------ 2 files changed, 87 insertions(+), 43 deletions(-) diff --git a/acupuncture-ui/src/App.vue b/acupuncture-ui/src/App.vue index 1066ff93..be9682e8 100644 --- a/acupuncture-ui/src/App.vue +++ b/acupuncture-ui/src/App.vue @@ -67,7 +67,4 @@ export default { .el-upload-list__item:first-child { margin-top: 0; } -.el-input__inner { - padding: 0 15px !important; -} diff --git a/acupuncture-ui/src/views/patientFile/index.vue b/acupuncture-ui/src/views/patientFile/index.vue index a9e6d412..24463f0d 100644 --- a/acupuncture-ui/src/views/patientFile/index.vue +++ b/acupuncture-ui/src/views/patientFile/index.vue @@ -257,7 +257,7 @@ size="mini" type="text" icon="el-icon-tickets" - @click="handleDelete(scope.row)" + @click="handleDetails(scope.row)" v-hasPermi="['patientFile:details']" >详情 @@ -285,25 +285,39 @@ - + - + - - - - + + - + - + - + - + - - + - --> +
    @@ -503,24 +638,13 @@ export default { fileList: [], // 现病史 medicalHistory: [ - "高血压", - "脑血管病", - "恶性肿瘤", - "冠心病", - "精神疾病", - "胃和十二指肠溃疡", - "肥胖症", - "骨质疏松症", - "遗传性、先天性疾病", - "糖尿病", - "慢性肺系疾病", - "高脂血症", - "肝脏疾病(脂肪肝、乙型肝炎、肝硬化等)", - "过敏性疾病", - "关节炎", - "痛风", - "肾炎、肾病", - "高脂血症", + "肥胖症ICD-10编码E66.0", + "失眠病TCD编码BNX040、ICD-10编码F51.0", + "中风病TCD编码:BNG080 ICD-10编码:I63", + "面瘫病TCD编码BWV120 ICD编码G51.802", + "项痹病TCD编码BGS000 ICD编码M47.221+G55.2*", + "腰痛病ICD-10编码: M51.202", + "痉挛性斜颈TCD编码BNG090 ICD-10编码G24.300 ", ], idCardType: [ { @@ -560,7 +684,8 @@ export default { total: 0, // 总条数 listDat: [{}], // 公告表格数据 title: "", // 弹出层标题 - open: true, // 是否显示弹出层 + open: false, // 是否显示弹出层 + drawer: true, // 档案详情 importOpen: false, // 导入弹窗 // 查询参数 queryParams: { @@ -577,8 +702,9 @@ export default { }, formDisabled: false, importform: {}, - // 表单参数 + form: {}, + detailsForm: { JBXX_ZYZD: [] }, // 档案详情表单 // 表单校验 rules: { name: [ @@ -769,6 +895,23 @@ export default { diff --git a/acupuncture-ui/src/views/patientFile/index.vue b/acupuncture-ui/src/views/patientFile/index.vue index 293796a0..73b7d4fb 100644 --- a/acupuncture-ui/src/views/patientFile/index.vue +++ b/acupuncture-ui/src/views/patientFile/index.vue @@ -61,9 +61,9 @@ @click="handleQuery" >搜索 - 重置 + + 重置 + From 5860f73a5bdd1cda6d234a09b0b70dc512aa6a4b Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Fri, 14 Feb 2025 14:51:28 +0800 Subject: [PATCH 06/22] =?UTF-8?q?=E6=82=A3=E8=80=85=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-ui/package.json | 2 +- acupuncture-ui/src/api/patientFile.js | 26 +- .../src/components/HeaderSearch/index.vue | 132 +++++---- acupuncture-ui/src/router/index.js | 202 +++++++------ .../src/store/modules/permission.js | 138 ++++----- .../src/views/medicalFile/index.vue | 280 +++++++++++++++++- .../src/views/patientFile/index.vue | 106 ++++--- 7 files changed, 619 insertions(+), 267 deletions(-) diff --git a/acupuncture-ui/package.json b/acupuncture-ui/package.json index e29e4d95..c688cb1c 100644 --- a/acupuncture-ui/package.json +++ b/acupuncture-ui/package.json @@ -41,7 +41,7 @@ "clipboard": "2.0.8", "core-js": "3.37.1", "echarts": "5.4.0", - "element-ui": "2.15.14", + "element-ui": "^2.15.14", "file-saver": "2.0.5", "fuse.js": "6.4.3", "highlight.js": "9.18.5", diff --git a/acupuncture-ui/src/api/patientFile.js b/acupuncture-ui/src/api/patientFile.js index c6de6c9a..f36a872e 100644 --- a/acupuncture-ui/src/api/patientFile.js +++ b/acupuncture-ui/src/api/patientFile.js @@ -1,6 +1,6 @@ import request from "@/utils/request"; -// 注册方法 +// 获取列表 export function queryPatient(data) { return request({ url: "/patient/list", @@ -8,3 +8,27 @@ export function queryPatient(data) { data: data, }); } +// 添加患者档案 +export function patientAdd(data) { + return request({ + url: "/patient/add", + method: "post", + data: data, + }); +} +// 修改患者档案 +export function patientUpd(data) { + return request({ + url: "/patient/upd", + method: "post", + data: data, + }); +} +// 删除患者档案 +export function patientDel(data) { + return request({ + url: "/patient/del", + method: "post", + data: data, + }); +} diff --git a/acupuncture-ui/src/components/HeaderSearch/index.vue b/acupuncture-ui/src/components/HeaderSearch/index.vue index 339a6884..3f806607 100644 --- a/acupuncture-ui/src/components/HeaderSearch/index.vue +++ b/acupuncture-ui/src/components/HeaderSearch/index.vue @@ -1,6 +1,10 @@ @@ -20,60 +29,60 @@ + From b61853d4f1397adb0aec4d37fba79b4a3295d9b7 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Sat, 15 Feb 2025 08:48:22 +0800 Subject: [PATCH 07/22] =?UTF-8?q?=E8=AF=8A=E7=96=97=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-ui/src/api/medicalFile.js | 34 + acupuncture-ui/src/router/index.js | 6 +- .../src/views/medicalFile/index.vue | 2016 +++++++---------- 3 files changed, 876 insertions(+), 1180 deletions(-) create mode 100644 acupuncture-ui/src/api/medicalFile.js diff --git a/acupuncture-ui/src/api/medicalFile.js b/acupuncture-ui/src/api/medicalFile.js new file mode 100644 index 00000000..974e6cb4 --- /dev/null +++ b/acupuncture-ui/src/api/medicalFile.js @@ -0,0 +1,34 @@ +import request from "@/utils/request"; + +// 获取列表 +export function treatmentQuery(data) { + return request({ + url: "/treatment/list", + method: "post", + data: data, + }); +} +// 添加患者档案 +export function treatmentAdd(data) { + return request({ + url: "/treatment/add", + method: "post", + data: data, + }); +} +// 修改患者档案 +export function treatmentUpd(data) { + return request({ + url: "/treatment/upd", + method: "post", + data: data, + }); +} +// 删除患者档案 +export function treatmentDel(data) { + return request({ + url: "/treatment/del", + method: "post", + data: data, + }); +} diff --git a/acupuncture-ui/src/router/index.js b/acupuncture-ui/src/router/index.js index dcfb5312..becfbe3d 100644 --- a/acupuncture-ui/src/router/index.js +++ b/acupuncture-ui/src/router/index.js @@ -75,7 +75,7 @@ export const constantRoutes = [ ], }, { - path: "/patientFile/index", + path: "/patientFile", component: Layout, redirect: "index", children: [ @@ -88,12 +88,12 @@ export const constantRoutes = [ ], }, { - path: "/medicalFile/index", + path: "/medicalFile", component: Layout, redirect: "index", children: [ { - path: "index", + path: "/medicalIndex", component: () => import("@/views/medicalFile/index"), name: "Index", meta: { title: "诊疗档案", icon: "dashboard", affix: true }, diff --git a/acupuncture-ui/src/views/medicalFile/index.vue b/acupuncture-ui/src/views/medicalFile/index.vue index 68d661ea..c695f5f6 100644 --- a/acupuncture-ui/src/views/medicalFile/index.vue +++ b/acupuncture-ui/src/views/medicalFile/index.vue @@ -1,1193 +1,855 @@ + .human-body { + display: flex; + flex-wrap: wrap; + } + + .human-body>>>.el-form-item { + width: 49%; + margin-right: 2%; + } + + .human-body>>>.el-form-item:nth-of-type(2n) { + margin-right: 0; + } + + .formStep1>>>.el-form-item__label {} + + .form-item-zd { + width: 100%; + text-align: left; + } + + .form-item-age { + display: flex; + align-items: center; + } + + .form-item-age span { + margin: 0 10px; + } + + .form-item-age>>>.el-input { + width: 90px; + } + + >>>.el-drawer.rtl { + width: 50% !important; + } + \ No newline at end of file From 1e06763ace3d98fab0b64d1e5f536fd38b90d2de Mon Sep 17 00:00:00 2001 From: liuzhipeng <1747191978@qq.com> Date: Sat, 15 Feb 2025 10:45:05 +0800 Subject: [PATCH 08/22] =?UTF-8?q?=E8=AF=8A=E7=96=97=E6=A1=A3=E6=A1=88-?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=BF=A1=E6=81=AF=E6=B7=BB=E5=8A=A0=EF=BC=88?= =?UTF-8?q?=E4=B8=8D=E5=8C=85=E6=8B=AC=E8=AF=8A=E7=96=97=E6=96=B9=E6=B3=95?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-ui/src/api/medicalFile.js | 15 + acupuncture-ui/src/assets/styles/common.css | 4 +- .../src/views/medicalFile/index.vue | 2414 +++++++++++------ 3 files changed, 1600 insertions(+), 833 deletions(-) diff --git a/acupuncture-ui/src/api/medicalFile.js b/acupuncture-ui/src/api/medicalFile.js index 974e6cb4..8f461525 100644 --- a/acupuncture-ui/src/api/medicalFile.js +++ b/acupuncture-ui/src/api/medicalFile.js @@ -32,3 +32,18 @@ export function treatmentDel(data) { data: data, }); } +// 档案详情 +export function queryRecord(data) { + return request({ + url: "/treatment/queryRecord", + method: "post", + data: data, + }); +}// 档案详情 +export function saveAidRecord(data) { + return request({ + url: "/treatment/saveAidRecord", + method: "post", + data: data, + }); +} \ No newline at end of file diff --git a/acupuncture-ui/src/assets/styles/common.css b/acupuncture-ui/src/assets/styles/common.css index 147df1f6..52688a2d 100644 --- a/acupuncture-ui/src/assets/styles/common.css +++ b/acupuncture-ui/src/assets/styles/common.css @@ -95,13 +95,13 @@ justify-content: center; } -.formStep >>> .el-checkbox__input.is-checked .el-checkbox__inner { +/* .formStep >>> .el-checkbox__input.is-checked .el-checkbox__inner { background-color: #67defc; border-color: #67defc; } .formStep >>> .is-checked .el-checkbox__label { color: #67defc; -} +} */ .formStep .formStep_StepBox { display: flex; } diff --git a/acupuncture-ui/src/views/medicalFile/index.vue b/acupuncture-ui/src/views/medicalFile/index.vue index c695f5f6..e4f48fa3 100644 --- a/acupuncture-ui/src/views/medicalFile/index.vue +++ b/acupuncture-ui/src/views/medicalFile/index.vue @@ -1,855 +1,1607 @@ \ No newline at end of file +>>> .el-drawer.rtl { + width: 50% !important; +} + From f181282d58b45e434467535dcbfd62bad380e8b7 Mon Sep 17 00:00:00 2001 From: liuzhipeng <1747191978@qq.com> Date: Sat, 15 Feb 2025 12:29:07 +0800 Subject: [PATCH 09/22] =?UTF-8?q?=E8=AF=8A=E7=96=97=E6=A1=A3=E6=A1=88-?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=BF=A1=E6=81=AF=E6=B7=BB=E5=8A=A0=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/medicalFile/index.vue | 118 ++++++++++++++---- 1 file changed, 94 insertions(+), 24 deletions(-) diff --git a/acupuncture-ui/src/views/medicalFile/index.vue b/acupuncture-ui/src/views/medicalFile/index.vue index e4f48fa3..a1fa290f 100644 --- a/acupuncture-ui/src/views/medicalFile/index.vue +++ b/acupuncture-ui/src/views/medicalFile/index.vue @@ -707,8 +707,57 @@
    诊疗方法
    -
    肥胖症
    -
    行为心理干预
    +
    +
    {{ i.title }}
    +
    +
    +
    {{ j.title }}
    + + {{ k.value || k.title }} + +
    + + + +
    +
    +
    +
    {{ j.title }}
    +
    +
    {{ k.title }}
    + + {{ l.value || l.title }} + +
    + + + +
    +
    +
    +
    +
    +
    @@ -852,7 +901,7 @@ export default { list: [ { title: "行为心理干预", - valueCode: "", + valueCode: "ZLFA_XWXLGY", list: [ { title: @@ -870,7 +919,7 @@ export default { }, { title: "运动干预", - valueCode: "", + valueCode: "ZLFA_YDGY", list: [ { title: @@ -887,8 +936,8 @@ export default { ], }, { - title: " 临床营养治疗", - valueCode: "", + title: "临床营养治疗", + valueCode: "ZLFA_LCYYZL", list: [ { title: @@ -919,7 +968,7 @@ export default { list: [ { title: "疗法", - valueCode: "", + valueCode: "ZLFA_ZJ_LF", list: [ { title: "毫针/电针疗法", @@ -945,7 +994,7 @@ export default { }, { title: "穴位", - valueCode: "", + valueCode: "ZLFA_ZJ_XW", list: [ { title: "神门:安神定志,改善睡眠质量", @@ -973,7 +1022,7 @@ export default { }, { title: "药物治疗", - valueCode: "", + valueCode: "ZLFA_YW", list: [ { title: "奥利司他:通过抑制胃肠道脂肪酶,减少脂肪吸收", @@ -1010,7 +1059,7 @@ export default { list: [ { title: "生活习惯", - valueCode: "", + valueCode: "ZLFA_SHXG", list: [ { title: @@ -1034,7 +1083,7 @@ export default { }, { title: "心理调适", - valueCode: "", + valueCode: "ZLFA_XLTS", list: [ { title: @@ -1061,7 +1110,7 @@ export default { list: [ { title: "疗法", - valueCode: "", + valueCode: "ZLFA_ZJ_LF_SMZ", list: [ { title: "毫针/电针疗法", @@ -1087,7 +1136,7 @@ export default { }, { title: "穴位", - valueCode: "", + valueCode: "ZLFA_ZJ_XW_SMZ", list: [ { title: "神门:安神定志,改善睡眠质量", @@ -1115,7 +1164,7 @@ export default { }, { title: "药物治疗", - valueCode: "", + valueCode: "ZLFA_YW_SMZ", list: [ { title: @@ -1158,7 +1207,7 @@ export default { list: [ { title: "疗法", - valueCode: "", + valueCode: "ZLFA_ZJ_LF_QT", list: [ { title: "毫针/电针疗法", @@ -1184,7 +1233,7 @@ export default { }, { title: "穴位", - valueCode: "", + valueCode: "ZLFA_ZJ_XW_QT", list: [ { title: "填写", @@ -1196,16 +1245,11 @@ export default { }, { title: "药物治疗", + valueCode: "ZLFA_YW_QT", list: [ { - title: "疗法", - valueCode: "", - list: [ - { - title: "填写", - type: "input ", - }, - ], + title: "填写", + type: "input", }, ], }, @@ -1278,7 +1322,19 @@ export default { ZLFA_ZLLX: "", //治疗方式 ZLFA_XWXLGY: "", // 行为心理干预 ZLFA_YDGY: "", //运动干预 + ZLFA_ZJ_LF: "", //针灸疗法-疗法 + ZLFA_ZJ_XW: "", //针灸疗法-穴位 + ZLFA_YW: "", //药物治疗 + ZLFA_SHXG: "", // 生活习惯 + ZLFA_XLTS: "", //心理调适 + ZLFA_LCYYZL: "", //临床用药治疗 + ZLFA_ZJ_LF_SMZ: "", // 失眠症-针灸疗法-疗法 + ZLFA_ZJ_XW_SMZ: "", // 失眠症-针灸疗法-穴位 + ZLFA_YW_SMZ: "", // 失眠症-药物治疗 + ZLFA_ZJ_LF_QT: "", // 其他-针灸疗法-疗法 + ZLFA_ZJ_XW_QT: "", // 其他-针灸疗法-穴位 + ZLFA_YW_QT: "", // 其他-药物治疗 }, // 档案详情表单 // 表单校验 rules: { @@ -1366,6 +1422,10 @@ export default { this.getList(); }, methods: { + handleButClick(_item, _row) { + console.log(_item, _row); + this.detailsForm[_item.valueCode] = _row.value || _row.title; + }, // 上传成功回 - pdg handleUploadPdfAdd1(res) { if (res.code == 200) { @@ -1565,7 +1625,17 @@ export default { }; + + + diff --git a/acupuncture-ui/src/views/followFile/subjects.vue b/acupuncture-ui/src/views/followFile/subjects.vue new file mode 100644 index 00000000..53b68ea0 --- /dev/null +++ b/acupuncture-ui/src/views/followFile/subjects.vue @@ -0,0 +1,398 @@ + + + + + + diff --git a/acupuncture-ui/src/views/followFile/work.vue b/acupuncture-ui/src/views/followFile/work.vue new file mode 100644 index 00000000..371fbb33 --- /dev/null +++ b/acupuncture-ui/src/views/followFile/work.vue @@ -0,0 +1,399 @@ + + + + + + diff --git a/acupuncture-ui/src/views/medicalFile/index.vue b/acupuncture-ui/src/views/medicalFile/index.vue index 4e4d95f3..991f51a8 100644 --- a/acupuncture-ui/src/views/medicalFile/index.vue +++ b/acupuncture-ui/src/views/medicalFile/index.vue @@ -166,6 +166,7 @@ v-loading="loading" :data="listDat" @selection-change="handleSelectionChange" + max-height="600" > @@ -261,7 +262,9 @@ /> @@ -209,7 +210,9 @@ /> Date: Sat, 15 Feb 2025 17:52:05 +0800 Subject: [PATCH 12/22] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4-=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-ui/src/views/followFile/index.vue | 138 ++++++++++-------- .../src/views/followFile/subjects.vue | 2 +- acupuncture-ui/src/views/followFile/work.vue | 2 +- .../src/views/medicalFile/index.vue | 2 +- .../src/views/patientFile/index.vue | 2 +- 5 files changed, 78 insertions(+), 68 deletions(-) diff --git a/acupuncture-ui/src/views/followFile/index.vue b/acupuncture-ui/src/views/followFile/index.vue index cdb839c3..72245100 100644 --- a/acupuncture-ui/src/views/followFile/index.vue +++ b/acupuncture-ui/src/views/followFile/index.vue @@ -69,14 +69,14 @@ label="队列名称" align="center" prop="name" - width="100" + min-width="130" />