68 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/*
 | 
						|
 * @Author: Do not edit
 | 
						|
 * @Date: 2023-10-21 11:50:46
 | 
						|
 * @LastEditTime: 2023-11-15 15:56:14
 | 
						|
 * @LastEditors: DY
 | 
						|
 * @Description: 
 | 
						|
 */
 | 
						|
import request from '@/utils/request'
 | 
						|
 | 
						|
// 创建原料
 | 
						|
export function createHotMaterial(data) {
 | 
						|
  return request({
 | 
						|
    url: '/base/core-hot-material/create',
 | 
						|
    method: 'post',
 | 
						|
    data: data
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 更新原料
 | 
						|
export function updateHotMaterial(data) {
 | 
						|
  return request({
 | 
						|
    url: '/base/core-hot-material/update',
 | 
						|
    method: 'put',
 | 
						|
    data: data
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 删除原料
 | 
						|
export function deleteHotMaterial(id) {
 | 
						|
  return request({
 | 
						|
    url: '/base/core-hot-material/delete?id=' + id,
 | 
						|
    method: 'delete'
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 获得原料
 | 
						|
export function getHotMaterial(id) {
 | 
						|
  return request({
 | 
						|
    url: '/base/core-hot-material/get?id=' + id,
 | 
						|
    method: 'get'
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 获得原料code
 | 
						|
export function getCode() {
 | 
						|
  return request({
 | 
						|
    url: '/base/core-hot-material/getCode',
 | 
						|
    method: 'get'
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 获得原料分页
 | 
						|
export function getHotMaterialPage(query) {
 | 
						|
  return request({
 | 
						|
    url: '/base/core-hot-material/page',
 | 
						|
    method: 'get',
 | 
						|
    params: query
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 获得所有列表
 | 
						|
export function getHotMaterialList(query) {
 | 
						|
  return request({
 | 
						|
    url: '/base/core-hot-material/listAll',
 | 
						|
    method: 'get',
 | 
						|
    params: query
 | 
						|
  })
 | 
						|
} |