27 lines
635 B
TypeScript
27 lines
635 B
TypeScript
import request from '@/utils/http'
|
|
|
|
export type QcItemParam = {
|
|
id?: string
|
|
paramName: string
|
|
paramCode: string
|
|
paramUnit?: string
|
|
paramType: string
|
|
requiredFlag: string
|
|
orderNum?: number
|
|
}
|
|
|
|
export function fetchQcItemParams(itemSource: string, itemId: string) {
|
|
return request.get<QcItemParam[]>({
|
|
url: '/web/admin/qc-item-params',
|
|
params: { itemSource, itemId }
|
|
})
|
|
}
|
|
|
|
export function fetchSaveQcItemParams(itemSource: string, itemId: string, params: QcItemParam[]) {
|
|
return request.put<QcItemParam[]>({
|
|
url: '/web/admin/qc-item-params',
|
|
params: { itemSource, itemId },
|
|
data: { params }
|
|
})
|
|
}
|