import request from '@/utils/request'

// 查询工艺线体关联列表
export function listProduct(query) {
	return request({
		url: '/technology/pro/routeprodproduct/list',
		method: 'get',
		params: query
	});
}

// 查询工艺线体关联详细
export function getProduct(recordId) {
	return request({
		url: '/technology/pro/routeprodproduct/' + recordId,
		method: 'get'
		});
}

// 新增工艺线体关联
export function addProduct(data) {
	return request({
		url: '/technology/pro/routeprodproduct',
		method: 'post',
		data: data
	});
}

// 修改工艺线体关联
export function updateProduct(data) {
	return request({
		url: '/technology/pro/routeprodproduct',
		method: 'put',
		data: data
	});
}

// 删除工艺线体关联
export function delProduct(recordId) {
	return request({
		url: '/technology/pro/routeprodproduct/' + recordId,
		method: 'delete'
	});
}

// 查询工艺产品关联列表
export function getListProduct(query) {
	return request({
		url: '/technology/pro/routeprodproduct/getList',
		method: 'get',
		params: query
	});
}

// 查询工艺已经关联的产品列表
export function getRightList(query) {
	return request({
		url: '/technology/pro/routeprodproduct/getRightList',
		method: 'get',
		params: query
	});
}
