广丰卷烟厂数采质量分析系统
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { request } from '@/service/request';
 
/** 获取判定规程列表 */
export function fetchGetStdList (params?: Api.Qm.StdSearchParams) {
    return request<Api.Qm.StdList>({
        url: '/qm/std/list',
        method: 'get',
        params
    });
}
/** 新增判定规程 */
export function fetchCreateStd (data: Api.Qm.StdOperateParams) {
    return request<boolean>({
        url: '/qm/std',
        method: 'post',
        data
    });
}
 
/** 修改判定规程 */
export function fetchUpdateStd (data: Api.Qm.StdOperateParams) {
    return request<boolean>({
        url: '/qm/std',
        method: 'put',
        data
    });
}
 
/** 批量删除判定规程 */
export function fetchBatchDeleteStd (ids: CommonType.IdType[]) {
    return request<boolean>({
        url: `/qm/std/${ids.join(',')}`,
        method: 'delete'
    });
}