/* * 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 }) }