forked from liweijie/education
88 lines
1.8 KiB
JavaScript
88 lines
1.8 KiB
JavaScript
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
|
||
})
|
||
}
|