From 001a264f16eb700caa7ff4c07cc4003efd75cde3 Mon Sep 17 00:00:00 2001 From: zhaichao Date: Sun, 23 Aug 2026 16:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=A1=88=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/classHour/plan.js | 87 +++ frontend/src/views/classHour/plan/index.vue | 677 +++++++++++++++++++- 2 files changed, 758 insertions(+), 6 deletions(-) create mode 100644 frontend/src/api/classHour/plan.js diff --git a/frontend/src/api/classHour/plan.js b/frontend/src/api/classHour/plan.js new file mode 100644 index 000000000..d00363322 --- /dev/null +++ b/frontend/src/api/classHour/plan.js @@ -0,0 +1,87 @@ +import request from '@/utils/request' + +// ======================== 方案管理:课时费方案 / 课时方案 ======================== +// 接口前缀 /ks,经 vue.config.js 代理转发为 /api/ks。 + +// ---------- 课时费方案(KSFBZ) ---------- +// 分页列表(名称模糊) +export function listFeeStandard(query) { + return request({ + url: '/ks/fee-standard/list', + method: 'get', + params: query + }) +} + +// 详情 +export function getFeeStandard(bh) { + return request({ + url: '/ks/fee-standard/get', + method: 'get', + params: { bh: bh } + }) +} + +// 新增(编号为空时后端自动生成 UUID) +export function addFeeStandard(data) { + return request({ + url: '/ks/fee-standard/add', + method: 'post', + data: data + }) +} + +// 编辑(编号必传) +export function updateFeeStandard(data) { + return request({ + url: '/ks/fee-standard/update', + method: 'post', + data: data + }) +} + +// 删除 +export function deleteFeeStandard(bh) { + return request({ + url: '/ks/fee-standard/delete', + method: 'post', + params: { bh: bh } + }) +} + +// ---------- 课时方案(KSXSFA) ---------- +// 分页列表(名称模糊) +export function listCoefficientPlan(query) { + return request({ + url: '/ks/coefficient-plan/list', + method: 'get', + params: query + }) +} + +// 详情 +export function getCoefficientPlan(bh) { + return request({ + url: '/ks/coefficient-plan/get', + method: 'get', + params: { bh: bh } + }) +} + +// 新增(编号为空时后端自动生成 UUID) +export function addCoefficientPlan(data) { + return request({ + url: '/ks/coefficient-plan/add', + method: 'post', + data: data + }) +} + +// 编辑(编号必传) +export function updateCoefficientPlan(data) { + return request({ + url: '/ks/coefficient-plan/update', + method: 'post', + data: data + }) +} diff --git a/frontend/src/views/classHour/plan/index.vue b/frontend/src/views/classHour/plan/index.vue index 1b826b751..496c00d6f 100644 --- a/frontend/src/views/classHour/plan/index.vue +++ b/frontend/src/views/classHour/plan/index.vue @@ -1,15 +1,680 @@ + +