Goldennfish
2023-07-21 8833392e76da93f2de7b7c7950e75751cb63e085
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
import request from '@/utils/request'
 
// 查询所有标准数据
export function getStandardsList() {
  return request({
    url: '/standards/list',
    method: 'get'
  })
}
 
// 分页查询所有标准数据
export function getStandardsListOfPage(params) {
  return request({
    url: '/standards/list_page',
    method: 'get',
    params
  })
}
 
// 添加类型
export function addStandards(data) {
  return request({
    url: '/standards/add',
    method: 'post',
    data
  })
}
 
// 根据标准查询所有型号 参数IdOrNameOfSerialNumber, standardsId
export function getSerialNumberList(params) {
  return request({
    url: '/serial-number/list',
    method: 'get',
    params
  })
}
 
// 添加型号
export function addSerialNumber(data) {
  return request({
    url: '/serial-number/add',
    method: 'post',
    data
  })
}
 
// 根据型号查询所有产品规格 参数serialNumberId, specificationsName
export function getSpecificationsList(params) {
  return request({
    url: '/specifications/list',
    method: 'get',
    params
  })
}
 
// 添加产品规格
export function addSpecifications(data) {
  return request({
    url: '/specifications/add',
    method: 'post',
    data
  })
}
 
// 编辑产品规格
export function updateSpecifications(data) {
  return request({
    url: '/specifications/update',
    method: 'put',
    data
  })
}
 
// 更新规格状态
export function updateSpeState(data) {
  return request({
    url: '/specifications/update_spe_state',
    method: 'put',
    data
  })
}