Crunchy
2024-05-06 1f4c79169a0d3ef46f2430b61d4999e1be6261b3
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
/*
 *    Copyright (c) 2018-2025, ztt All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: ztt
 */
 
import request from '@/router/axios'
 
export function page(query) {
  return request({
    url: '/mes/qualityProcessInspect/page',
    method: 'get',
    params: query
  })
}
 
export function updateProcessInspectsById(query) {
  return request({
    url: '/mes/qualityProcessInspect/updateProcessInspectsById2',
    method: 'post',
    params: query
  })
}
 
export function chooseMater(query) {
    return request({
      url: '/mes/qualityProcessInspect/chooseMater',
      method: 'get',
      params: query
    })
  }
 
export function addProcess(obj) {
    return request({
        url: '/mes/qualityProcessInspect/addProcess',
        method: 'post',
        data: obj
    })
}
 
export function queryById(obj) {
    return request({
        url: '/mes/qualityProcessInspect/'+obj,
        method: 'get',
    })
}
 
export function deleteById(obj) {
    return request({
        url: '/mes/qualityProcessInspect/'+obj,
        method: 'delete',
    })
}
 
export function updateDeviceBypppId(obj) {
    return request({
        url: '/mes/qualityProcessInsProduct/updateDevBypppId',
        method: 'post',
        params: obj
    })
}
 
export function updateProcessInsProduct(obj) {
    return request({
        url: '/mes/qualityProcessInsProduct/updateprocessInsProduct',
        method: 'post',
        params: obj
    })
}
 
export function updateProcessInsProduct2(obj) {
    return request({
        url: '/mes/qualityProcessInsProduct/updateprocessInsProduct2',
        method: 'post',
        data: obj
    })
}
 
export function selectDevice() {
  return request({
    url: '/mes/qualityProcessInsProduct/selectDevice',
    method: 'get',
  })
}
 
export function exportProcessInsProduct(query) {
  return request({
    url: '/mes/qualityProcessInspect/exportExcel',
    method: 'get',
    responseType : 'blob',
    params: query
  })
}
 
export function selOutBatchNo(query) {
    return request({
      url: '/mes/qualityProcessInspect/selOutBatchNo',
      method: 'get',
      params: query
    })
  }