admin
5 天以前 f6789ac9f44a6b1f9d95421329bb1f0a7cd52d6d
提交 | 用户 | 时间
f6789a 1 import request from '@/utils/request'
A 2
3 // 查询工单物料配置列表
4 export function listMaterialConf(query) {
5   return request({
6     url: '/sc/materialConf/list',
7     method: 'get',
8     params: query
9   })
10 }
11
12 export function changeMaterialStatus(id, status) {
13   const data = {
14     id,
15     status
16   }
17   return request({
18     url: '/sc/materialConf/changeMaterialStatus',
19     method: 'put',
20     data: data
21   })
22 }
23
24 // 查询工单物料配置详细
25 export function getMaterialConf(id) {
26   return request({
27     url: '/sc/materialConf/' + id,
28     method: 'get'
29   })
30 }
31
32 // 新增工单物料配置
33 export function addMaterialConf(data) {
34   return request({
35     url: '/sc/materialConf',
36     method: 'post',
37     data: data
38   })
39 }
40
41 // 修改工单物料配置
42 export function updateMaterialConf(data) {
43   return request({
44     url: '/sc/materialConf',
45     method: 'put',
46     data: data
47   })
48 }
49
50 // 删除工单物料配置
51 export function delMaterialConf(id) {
52   return request({
53     url: '/sc/materialConf/' + id,
54     method: 'delete'
55   })
56 }