广丰卷烟厂数采质量分析系统
zhuguifei
6 小时以前 27f6c638a3006dc1c230feb7cfb44ad2df0a43dc
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 fetchGetMatTypeList (params?: Api.Md.MatTypeSearchParams) {
    return request<Api.Md.MatTypeList>({
        url: '/md/matType/list',
        method: 'get',
        params
    });
}
/** 新增物料类型 */
export function fetchCreateMatType (data: Api.Md.MatTypeOperateParams) {
    return request<boolean>({
        url: '/md/matType',
        method: 'post',
        data
    });
}
 
/** 修改物料类型 */
export function fetchUpdateMatType (data: Api.Md.MatTypeOperateParams) {
    return request<boolean>({
        url: '/md/matType',
        method: 'put',
        data
    });
}
 
/** 批量删除物料类型 */
export function fetchBatchDeleteMatType (ids: CommonType.IdType[]) {
    return request<boolean>({
        url: `/md/matType/${ids.join(',')}`,
        method: 'delete'
    });
}