From 3c52039b5bddd9d42cd4e23c6b790ca0c525d23a Mon Sep 17 00:00:00 2001 From: fuenmao <980740792@qq.com> Date: Mon, 24 Aug 2026 09:21:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BB=A5=E5=89=8D=E7=9A=84?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/biz/WeiBingJu/medicinal.ts | 76 - src/api/modules/biz/WeiBingJu/prescription.ts | 155 -- src/api/modules/biz/WeiBingJu/statistics.ts | 72 - src/api/modules/biz/index.ts | 5 +- .../components/AddMedicinalDialog.vue | 140 -- .../components/AdditionRecordDialog.vue | 219 --- .../components/ConsumptionRecordDialog.vue | 120 -- src/views/biz/weibingju/medicinal/index.vue | 87 -- .../components/PrescriptionDetailDialog.vue | 983 ------------ .../components/PrescriptionReportDialog.vue | 375 ----- .../biz/weibingju/prescription/index.vue | 150 -- src/views/biz/weibingju/statistics/index.vue | 1328 ----------------- 12 files changed, 1 insertion(+), 3709 deletions(-) delete mode 100644 src/api/modules/biz/WeiBingJu/medicinal.ts delete mode 100644 src/api/modules/biz/WeiBingJu/prescription.ts delete mode 100644 src/api/modules/biz/WeiBingJu/statistics.ts delete mode 100644 src/views/biz/weibingju/medicinal/components/AddMedicinalDialog.vue delete mode 100644 src/views/biz/weibingju/medicinal/components/AdditionRecordDialog.vue delete mode 100644 src/views/biz/weibingju/medicinal/components/ConsumptionRecordDialog.vue delete mode 100644 src/views/biz/weibingju/medicinal/index.vue delete mode 100644 src/views/biz/weibingju/prescription/components/PrescriptionDetailDialog.vue delete mode 100644 src/views/biz/weibingju/prescription/components/PrescriptionReportDialog.vue delete mode 100644 src/views/biz/weibingju/prescription/index.vue delete mode 100644 src/views/biz/weibingju/statistics/index.vue diff --git a/src/api/modules/biz/WeiBingJu/medicinal.ts b/src/api/modules/biz/WeiBingJu/medicinal.ts deleted file mode 100644 index a097bf1..0000000 --- a/src/api/modules/biz/WeiBingJu/medicinal.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * @description 药材管理接口 - */ - -import { moduleRequest } from "@/api/request"; -import { ResPage } from "@/api/interface"; - -// 请求前缀,根据后端路由配置 -const http = moduleRequest("/biz/weibingju/medicinal/"); - -/** - * 药材接口 - */ -const medicinalApi = { - /** 获取药材分页列表 */ - page(params: { name?: string; pageNum?: number; pageSize?: number }) { - return http.get>("list", params); - }, - - /** 获取药材下拉字典 */ - getDictList() { - return http.get("getmedicinaldictlist"); - }, - - /** 获取药材消耗记录 */ - getConsumptionRecords(params: { id: number; pageNum?: number; pageSize?: number }) { - console.log("获取添加记录,请求参数=", params); - return http.get>(`consumption-records`, params); // 透传分页参数 - }, - - /** 获取药材添加记录 */ - getAdditionRecords(params: { id: number; pageNum?: number; pageSize?: number }) { - return http.get>(`addition-records`, params); - }, - - /** 添加药材 */ - addMedicinal(params: AddMedicinalInput) { - return http.post("add", params); - }, - - /** 修改药材添加记录 */ - updateAdditionRecord(params: UpdateMedicinalAddLogInput) { - return http.post(`addition-records`, params); - }, - - /** 删除药材添加记录 */ - deleteAdditionRecord(params: { id: number }) { - return http.post(`addition-delete`, params); - } -}; - -/** 药材信息 */ -export interface MedicinalInfo { - id?: number; - name: string; - unit?: string; - stock?: number; - description?: string; -} - -/** 添加药材 */ -export interface AddMedicinalInput { - medicinalTypeId: number; - addWeight: number; - totalPrice: number; - medicinalName: string; -} - -/** 修改添加记录 */ -export interface UpdateMedicinalAddLogInput { - id: number; - addWeight: number; - totalPrice: number; -} - -export { medicinalApi }; diff --git a/src/api/modules/biz/WeiBingJu/prescription.ts b/src/api/modules/biz/WeiBingJu/prescription.ts deleted file mode 100644 index a96ff05..0000000 --- a/src/api/modules/biz/WeiBingJu/prescription.ts +++ /dev/null @@ -1,155 +0,0 @@ -import { moduleRequest } from "@/api/request"; -import { ResPage } from "@/api/interface"; - -const http = moduleRequest("/biz/weibingju/prescription/"); - -// ----------------------------- -// 类型定义(对应后端 DTO) -// ----------------------------- - -/** 人员类型 */ -export enum PersonType { - Employee = 1, - Relative = 2 -} - -/** 处方列表 DTO */ -export interface PrescriptionDto { - id: number; - personId: number; - personName: string; - personType: PersonType; - employeeName?: string; - visitDate?: string; - canEdit: boolean; -} - -/** 处方药材 DTO */ -export interface PrescriptionHerbDto { - Id: number; - medicinalName: string; - amountG: number; - note?: string; -} - -/** 人员详情 DTO */ -export interface PersonDetailDto { - id?: number; - name: string; - age?: number; - weight?: number; - height?: number; - isEmployee: boolean; - employeeId?: number; - employeeName?: string; - relationShip?: number; - relationShipName?: string; -} - -/** 处方详情 DTO */ -export interface PrescriptionDetailDto { - id: number; - person: PersonDetailDto; - diagnosisResult: string; - userMedicinaAdvice: string; - visitDate?: string; - herbs: PrescriptionHerbDto[]; - canEdit: boolean; -} - -/** 保存处方输入 DTO */ -export interface SavePrescriptionInput { - id?: number; - person: PersonInputDto; - diagnosisResult: string; - userMedicinaAdvice: string; - visitDate?: string; - herbs: PrescriptionHerbInputDto[]; -} - -/** 人员输入 DTO */ -export interface PersonInputDto { - id?: number; - name: string; - age?: number; - weight?: number; - height?: number; - isEmployee: boolean; - employeeId?: number; - relationShip?: number; -} - -/** 处方药材输入 DTO */ -export interface PrescriptionHerbInputDto { - Id: number; - amountG: number; - note?: string; -} - -/** 人员 DTO(列表用) */ -export interface PersonDto { - id: number; - name: string; - age?: number; - employeeId?: number; -} - -/** 添加人员输入 DTO */ -export interface AddPersonInput { - name: string; - age?: number; - weight?: number; - height?: number; - isEmployee: boolean; - employeeId?: number; - relationShip?: number; -} - -/** 关系类型 DTO */ -export interface RelationTypeDto { - id: number; - name: string; -} - -// ----------------------------- -// API 方法(对应后端接口) -// ----------------------------- - -const prescriptionApi = { - /** 获取处方列表 */ - getList(params: any) { - return http.get>("list", params); - }, - - /** 获取处方详情 */ - getDetail(id: number) { - return http.get(`getprescriptiondetile?id=${id}`); - }, - - /** 保存处方(新增/编辑) */ - save(params: SavePrescriptionInput) { - return http.post("add", params); - }, - - /** 获取人员列表 */ - getPersonList(params: { type?: PersonType; employeeId?: number }) { - return http.get("persons", params); - }, - - /** 添加人员 */ - addPerson(params: AddPersonInput) { - return http.post("addpersons", params); - }, - - /** 获取关系类型 */ - getRelationTypes() { - return http.get("relation-types"); - }, - - /** 获取处方总价 */ - getTotalCost() { - return http.get("gettotalcost"); - } -}; - -export { prescriptionApi }; diff --git a/src/api/modules/biz/WeiBingJu/statistics.ts b/src/api/modules/biz/WeiBingJu/statistics.ts deleted file mode 100644 index 9b48801..0000000 --- a/src/api/modules/biz/WeiBingJu/statistics.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @description 微病句统计分析接口 - */ - -import { moduleRequest } from "@/api/request"; - -// 请求前缀 -const http = moduleRequest("/biz/weibingju/statistics/"); - -/** - * 统计接口 - */ -const statisticsApi = { - /** 获取全量总览数据(不区分年份,含剩余药材库存价值) */ - getTotalOverview() { - return http.get("overview"); - }, - - /** 获取年度统计数据 */ - getYearlyStatistics(params: { year: string }) { - return http.get("yearly", params); - }, - - /** 获取月度明细数据 */ - getMonthlyDetails(params: { year: string }) { - return http.get("monthly", params); - } -}; - -/** 全量总览数据 DTO */ -export interface TotalOverviewDto { - totalCost: number; // 历史处方总花费 - totalQty: number; // 历史处方总数量 - staffCost: number; // 员工花费 - familyCost: number; // 家属花费 - staffQty: number; // 员工处方数 - familyQty: number; // 家属处方数 - materialCost: number; // 药材采购总花费 - serviceCount: number; // 累计服务人数 - remainingMedicinalValue: number; // 当前剩余药材库存价值 -} - -/** 年度统计数据 DTO */ -export interface YearlyStatisticsDto { - year: string; - totalCost: number; // 总花费 - totalQty: number; // 总数量 - staffCost: number; // 员工花费 - familyCost: number; // 家属花费 - staffQty: number; // 员工处方数 - familyQty: number; // 家属处方数 - materialCost: number; // 药材花费 - serviceCount: number; // 服务人数 - - // 同比趋势(百分比) - totalCostTrend: number; // 处方总花费趋势 - totalQtyTrend: number; // 处方总数量趋势 - materialCostTrend: number; // 药材花费趋势 - serviceCountTrend: number; // 服务人数趋势 -} - -/** 月度明细数据 DTO */ -export interface MonthlyDetailDto { - month: string; // 月份 - staffCost: number; // 员工处方花费 - familyCost: number; // 家属处方花费 - staffQty: number; // 员工处方数量 - familyQty: number; // 家属处方数量 - materialCost: number; // 药材花费 -} - -export { statisticsApi }; diff --git a/src/api/modules/biz/index.ts b/src/api/modules/biz/index.ts index 7d15f69..c83068c 100644 --- a/src/api/modules/biz/index.ts +++ b/src/api/modules/biz/index.ts @@ -1,4 +1,4 @@ -/** +/** * @description * @license Apache License Version 2.0 * @Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛 @@ -15,6 +15,3 @@ export * from "./organization"; export * from "./ops"; -export * from "./WeiBingJu/medicinal"; -export * from "./WeiBingJu/prescription"; -export * from "./WeiBingJu/statistics"; diff --git a/src/views/biz/weibingju/medicinal/components/AddMedicinalDialog.vue b/src/views/biz/weibingju/medicinal/components/AddMedicinalDialog.vue deleted file mode 100644 index 5f25636..0000000 --- a/src/views/biz/weibingju/medicinal/components/AddMedicinalDialog.vue +++ /dev/null @@ -1,140 +0,0 @@ - - - diff --git a/src/views/biz/weibingju/medicinal/components/AdditionRecordDialog.vue b/src/views/biz/weibingju/medicinal/components/AdditionRecordDialog.vue deleted file mode 100644 index c9ebe8b..0000000 --- a/src/views/biz/weibingju/medicinal/components/AdditionRecordDialog.vue +++ /dev/null @@ -1,219 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/biz/weibingju/medicinal/components/ConsumptionRecordDialog.vue b/src/views/biz/weibingju/medicinal/components/ConsumptionRecordDialog.vue deleted file mode 100644 index a02ff58..0000000 --- a/src/views/biz/weibingju/medicinal/components/ConsumptionRecordDialog.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/biz/weibingju/medicinal/index.vue b/src/views/biz/weibingju/medicinal/index.vue deleted file mode 100644 index ea7ee7c..0000000 --- a/src/views/biz/weibingju/medicinal/index.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - diff --git a/src/views/biz/weibingju/prescription/components/PrescriptionDetailDialog.vue b/src/views/biz/weibingju/prescription/components/PrescriptionDetailDialog.vue deleted file mode 100644 index acf0d01..0000000 --- a/src/views/biz/weibingju/prescription/components/PrescriptionDetailDialog.vue +++ /dev/null @@ -1,983 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/views/biz/weibingju/prescription/components/PrescriptionReportDialog.vue b/src/views/biz/weibingju/prescription/components/PrescriptionReportDialog.vue deleted file mode 100644 index e7323c2..0000000 --- a/src/views/biz/weibingju/prescription/components/PrescriptionReportDialog.vue +++ /dev/null @@ -1,375 +0,0 @@ - - - - - - - diff --git a/src/views/biz/weibingju/prescription/index.vue b/src/views/biz/weibingju/prescription/index.vue deleted file mode 100644 index fd48fa6..0000000 --- a/src/views/biz/weibingju/prescription/index.vue +++ /dev/null @@ -1,150 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/biz/weibingju/statistics/index.vue b/src/views/biz/weibingju/statistics/index.vue deleted file mode 100644 index 1f851bd..0000000 --- a/src/views/biz/weibingju/statistics/index.vue +++ /dev/null @@ -1,1328 +0,0 @@ - - - - -