You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import request from '@/utils/request'
// 物料入库单创建
export function createMaterialInbound ( data ) {
return request ( {
url : '/admin-api/erp/stock-in/create' ,
method : 'post' ,
data : { ... data , inType : '物料入库' }
} )
}
// 物料入库单分页查询(待入库/待审核)
export function getMaterialInboundPage ( params = { } ) {
return request ( {
url : '/admin-api/erp/stock-in/page' ,
method : 'get' ,
params : { ... params , inType : '物料入库' }
} )
}
// 物料入库单提交审核(提交后变为待审核状态)
export function submitMaterialInbound ( data ) {
return request ( {
url : '/admin-api/erp/stock-in/submit' ,
method : 'put' ,
data
} )
}
// 物料入库单审核( status: 20=通过, 1=驳回)
export function auditMaterialInbound ( data ) {
return request ( {
url : '/admin-api/erp/stock-in/audit' ,
method : 'put' ,
data
} )
}
// 物料入库单删除
export function deleteMaterialInbound ( id ) {
return request ( {
url : '/admin-api/erp/stock-in/delete' ,
method : 'delete' ,
params : { ids : String ( id ) }
} )
}
// 物料入库单详情
export function getMaterialInboundDetail ( id ) {
return request ( {
url : '/admin-api/erp/stock-in/get' ,
method : 'get' ,
params : { id }
} )
}