李旭东
2023-11-03 10686c5e51ef98ca459ab000462c0701e0bb17ea
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
/**
 * 设备管理
 */
import axios from '../request';
export default {
  /**
   * 设备信息管理
  */
  // 查询设备列表信息
  searchDeviceInfoList: (params) =>
    axios.post('/engineering/bigDevice/bigDeviceList', params),
  // 添加设备信息
  insertDeviceInfo: (params) =>
    axios.post('/engineering/bigDevice/bigDeviceInsert', params),
  // 修改设备信息
  updateDeviceInfo: (params) =>
    axios.post('/engineering/bigDevice/bigDeviceUpdate', params),
  // 删除设备信息
  deleteDeviceInfo: (params) =>
    axios.get('/engineering/bigDevice/bigDeviceDel', { params }),
  // 获取设备信息详情
  getDeviceDetails: (params) =>
    axios.get('/engineering/bigDevice/bigDeviceInfo', { params }),
  // 导出设备excel
  exportDeviceExcel: (params) =>
    axios({
      method: 'post',
      url: '/engineering/bigDevice/bigDeviceExcel',
      responseType: 'blob',
      data: params
    }),
 
  /**
   *  设备点检
  */
  // 查询设备点检列表信息
  searchSpotCheckList: (params) =>
    axios({
      method: 'post',
      url: '/m/checkDevice/findList',
      headers: {
        pageNum: params.pageNum,
        pageSize: params.pageSize
      },
      data: {
        startTime: params.startTime,
        endTime: params.endTime,
        bigNumber: params.bigNumber
      }
    }),
  // 添加设备点检信息
  insertSpotCheckInfo: (params) =>
    axios.post('m/checkDevice/addCheckDevice', params),
  // 修改设备点检信息
  updateSpotCheckInfo: (params) =>
    axios.post('m/checkDevice/addCheckDevice', params),
  //删除设备点检信息
  deleteSpotCheckInfo: (params) =>
    axios.post('/m/checkDevice/delete', params),
  // 获取点检详情
  getSpotCheckDetail: (params) =>
    axios.post('m/checkDevice/checkDeviceInfo', params),
  // 获取全部设备信息
  getAllDeviceData: () =>
    axios.post('/m/checkDevice/deviceList'),
 
    /**
     * 生产采集设备
     *
     */
    // 查询设备列表信息
    searchProductDevice: params =>
        axios.post('/engineering/device/deviceList', params),
    // 添加设备信息
    insertProductDevice: params =>
        axios.post('/engineering/device/deviceInsert', params),
    // 修改设备信息
    updateProductDevice: params =>
        axios.post('/engineering/device/deviceUpdate', params),
    // 设备信息详情
    detailsProductDevice: params =>
        axios.get('/engineering/device/deviceInfo', {params}),
    // 删除设备信息
    deleteProductDevice: params =>
        axios.get('/engineering/device/deviceDel', {params}),
}