zhangwencui
10 小时以前 645b989aff40a95bd2f99d18afa253271381a969
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// 产品维护页面接口
import request from '@/utils/request'
 
// 产品树查询
export function productTreeList(query) {
    return request({
        url: '/productMaterial/list',
        method: 'get',
        params: query
    })
}
// 产品树查询2
export function productTreeListQuery(query) {
    return request({
        url: '/productMaterial/listQuery',
        method: 'get',
        params: query
    })
}
// 产品子类新增
export function addOrEditProduct(query) {
    return request({
        url: '/productMaterial/add',
        method: 'post',
        data: query
    })
}
// 产品子类修改
export function updateOrEditProduct(query) {
    return request({
        url: '/productMaterial/update',
        method: 'put',
        data: query
    })
}
// 规格型号新增
export function addOrEditProductModel(query) {
    return request({
        url: '/productMaterialSku/add',
        method: 'post',
        data: query
    })
}
// 规格型号修改
export function updateOrEditProductModel(query) {
    return request({
        url: '/productMaterialSku/update',
        method: 'put',
        data: query
    })
}
// 产品子类删除
export function delProduct(query) {
    return request({
        url: '/productMaterial/delete',
        method: 'delete',
        data: query
    })
}
// 规格型号删除
export function delProductModel(query) {
    return request({
        url: '/productMaterialSku/delete',
        method: 'delete',
        data: query
    })
}
// 规格型号查询
export function modelList(query) {
    return request({
        url: '/basic/product/modelList',
        method: 'get',
        params: query
    })
}
export function modelListPage(query) {
    return request({
        url: '/productMaterialSku/list',
        method: 'get',
        params: query
    })
}
 
//  下载产品导入模板
export function downloadProductModelImportTemplate() {
    return request({
        url: '/productMaterialSku/downloadTemplate',
        method: 'post',
        responseType: 'blob'
    })
}
 
// 产品大类新增
export function addOrEditProductConfig(query) {
    return request({
        url: '/productMaterial/config/add',
        method: 'post',
        data: query
    })
}
// 产品大类修改
export function updateOrEditProductConfig(query) {
    return request({
        url: '/productMaterial/config/update',
        method: 'put',
        data: query
    })
}
 
// 产品大类删除
export function delProductConfig(query) {
    return request({
        url: '/productMaterial/config/delete',
        method: 'delete',
        data: query
    })
}
 
// 产品物料信息-存货类别数据集合
export function getinventoryCategoryList(query) {
    return request({
        url: '/productMaterial/inventoryCategoryList',
        method: 'get',
        params: query
    })
}
// 产品物料信息-物料类型数据集合
export function getmaterialTypeList(query) {
    return request({
        url: '/productMaterial/materialTypeList',
        method: 'get',
        params: query
    })
}
// 拉取数据
export function loadData() {
    return request({
        url: '/productMaterial/loadData',
        method: 'get',
    })
}