import request from "@/utils/request"; export function getRawRecord(params) { return request({ url: '/entry-record/list', method: 'get', params: params }) } export function addRawRecord(data) { return request({ url: '/entry-record', method: 'post', data: data }) } export function editRawRecord(params) { return request({ url: `/entry-record`, method: 'put', data: params }) } export function delRawRecord(data) { return request({ url: `/entry-record/` + data, method: 'delete' }) } export function doEntryRaw(data) { return request({ url: '/entry-record/doEntry/' + data, method: 'post' }) } export function getRawWarehouseRecord(params) { return request({ url: '/warehouse-record/list', method: 'get', params: params }) } export function getRawDetail(params) { return request({ url: '/hazmat/list', method: 'get', params: params }) } export function getRawFlow(params) { return request({ url: '/hazmat-flow/list', method: 'get', params: params }) } export function getRawList(params) { return request({ url: '/hazmat/hazmatCollect', method: 'get', params: params }) } export function disCardRaw(data) { return request({ url: '/hazmat/hazmatDiscard/' + data, method: 'post', }) } export function getAllRawFlow(params) { return request({ url: '/hazmat-flow/getAllHazmatFlowByHazmatId', method: 'get', params: params }) } export function getAllRawFlowByFlowId(params) { return request({ url: '/hazmat-flow/getAllHazmatFlowById', method: 'get', params: params }) } export function getWhRawDetail(params) { return request({ url: '/entry-record/hazmatlist', method: 'get', params: params }) } export function changeRawRemaining(data) { return request({ url: '/hazmat/changeRemaining', method: 'post', data: data }) }