迁移质量管理SPC渲染条件配置

This commit is contained in:
sheng
2026-06-22 19:27:43 +08:00
parent 15105bc5c7
commit cc7e06fdb1
8 changed files with 516 additions and 4 deletions

View File

@@ -0,0 +1,39 @@
import { request } from '@/api/_service'
const BASE = 'spc/manager/'
function apiParams (data = {}, method = 'get.spc.create', platform = 'admin') {
return { method, platform, ...data }
}
export function fetchSpcConfigurationList (data = {}) {
return request({
url: BASE + 'list',
method: 'get',
params: apiParams(data, 'get.spc.create', 'admin')
})
}
export function createSpcConfiguration (data = {}) {
return request({
url: BASE + 'create',
method: 'post',
data: apiParams(data, 'set.spc.create', 'admin')
})
}
export function editSpcConfiguration (data = {}) {
return request({
url: BASE + 'edit',
method: 'put',
data: apiParams(data, 'set.spc.edit', 'admin')
})
}
export function deleteSpcConfiguration (data = {}) {
return request({
url: BASE + 'delete',
method: 'post',
data: apiParams(data, 'set.spc.delete', 'admin')
})
}