From 4ebb21915d4f0fff74e115264cdc7659f4d3c49b Mon Sep 17 00:00:00 2001 From: chenqi Date: Fri, 5 Jun 2026 11:45:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E6=B7=BB=E5=8A=A0=E5=8C=BB?= =?UTF-8?q?=E6=8A=80=E5=B7=A5=E4=BD=9C=E7=AB=99=E6=8E=A5=E5=8F=A3=E5=92=8C?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 techStation 模块 API 接口文件,包含医技执行和退费审批功能 - 实现检查和检验项目的执行确认接口 - 提供退费审批的通过和驳回接口支持 - 添加 VxeTable 兼容层组件,统一表格事件参数格式 - 集成 Vitest 测试配置,设置 jsdom 环境和全局变量 --- openhis-ui-vue3/src/api/techStation/index.js | 71 +++++++++++++++++ .../src/components/VxeTableCompat/index.vue | 76 +++++++++++++++++++ openhis-ui-vue3/vitest.config.ts | 18 +++++ 3 files changed, 165 insertions(+) create mode 100644 openhis-ui-vue3/src/api/techStation/index.js create mode 100644 openhis-ui-vue3/src/components/VxeTableCompat/index.vue create mode 100644 openhis-ui-vue3/vitest.config.ts diff --git a/openhis-ui-vue3/src/api/techStation/index.js b/openhis-ui-vue3/src/api/techStation/index.js new file mode 100644 index 000000000..4673a70c5 --- /dev/null +++ b/openhis-ui-vue3/src/api/techStation/index.js @@ -0,0 +1,71 @@ +import request from '@/utils/request' + +// ========== 医技执行 ========== + +// 查询待执行列表 +export function listExecuteOrders(query) { + return request({ + url: '/tech-station/execute/list', + method: 'get', + params: query + }) +} + +// 执行确认(检查) +export function executeExamOrder(applyNo) { + return request({ + url: '/tech-station/execute/exam/' + applyNo, + method: 'put' + }) +} + +// 执行确认(检验) +export function executeLabOrder(applyNo) { + return request({ + url: '/tech-station/execute/lab/' + applyNo, + method: 'put' + }) +} + +// ========== 医技退费审批 ========== + +// 查询待退费审批列表 +export function listRefundApproveOrders(query) { + return request({ + url: '/tech-station/refund-approve/list', + method: 'get', + params: query + }) +} + +// 退费审批通过(检查) +export function approveExamRefund(applyNo) { + return request({ + url: '/tech-station/refund-approve/approve/exam/' + applyNo, + method: 'put' + }) +} + +// 退费审批驳回(检查) +export function rejectExamRefund(applyNo) { + return request({ + url: '/tech-station/refund-approve/reject/exam/' + applyNo, + method: 'put' + }) +} + +// 退费审批通过(检验) +export function approveLabRefund(applyNo) { + return request({ + url: '/tech-station/refund-approve/approve/lab/' + applyNo, + method: 'put' + }) +} + +// 退费审批驳回(检验) +export function rejectLabRefund(applyNo) { + return request({ + url: '/tech-station/refund-approve/reject/lab/' + applyNo, + method: 'put' + }) +} \ No newline at end of file diff --git a/openhis-ui-vue3/src/components/VxeTableCompat/index.vue b/openhis-ui-vue3/src/components/VxeTableCompat/index.vue new file mode 100644 index 000000000..0d92b8b04 --- /dev/null +++ b/openhis-ui-vue3/src/components/VxeTableCompat/index.vue @@ -0,0 +1,76 @@ + \ No newline at end of file diff --git a/openhis-ui-vue3/vitest.config.ts b/openhis-ui-vue3/vitest.config.ts new file mode 100644 index 000000000..8d63c2989 --- /dev/null +++ b/openhis-ui-vue3/vitest.config.ts @@ -0,0 +1,18 @@ +import { defineConfig } from 'vitest/config' +import vue from '@vitejs/plugin-vue' +import path from 'path' + +export default defineConfig({ + plugins: [vue()], + resolve: { + alias: { + '~': path.resolve(__dirname, './'), + '@': path.resolve(__dirname, './src'), + }, + }, + test: { + globals: true, + environment: 'jsdom', + include: ['src/**/*.{test,spec}.{js,ts}'], + }, +}) \ No newline at end of file