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 @@ + +