103 lines
2.1 KiB
JavaScript
103 lines
2.1 KiB
JavaScript
import { http } from '@/utils/http'
|
|
|
|
/**
|
|
* 领料出库 ---- 列表查询
|
|
*/
|
|
export const getPickingOutboundListAPI = (data) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: '/material/lease_apply_info/list',
|
|
data,
|
|
})
|
|
}
|
|
/**
|
|
* 领料出库 ---- 任务详情
|
|
*/
|
|
export const getOutboundDetailsAPI = (id,keyWord) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: `/material/lease_apply_info/${id}?keyWord=${keyWord}`,
|
|
})
|
|
}
|
|
|
|
|
|
export const getOutboundDetailsAPITwo = (id,keyWord,publishTask) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: `/material/lease_apply_info/${id}?keyWord=${keyWord}&publishTask=${publishTask}`,
|
|
})
|
|
}
|
|
/**
|
|
* 领料出库 ---- 物资详情
|
|
*/
|
|
export const getCodeDetailAPI = (data) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: `/material/lease_apply_info/getInnerById`,
|
|
data
|
|
})
|
|
}
|
|
/**
|
|
* 领料出库 ---- 查看详情
|
|
*/
|
|
export const getDetailsByIdApi = (data) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: `/material/lease_apply_info/getDetailsById`,
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 领料出库 ---- 出库
|
|
*/
|
|
export const setOutboundNumAPI = (data) => {
|
|
return http({
|
|
method: 'POSt',
|
|
url: '/material/lease_apply_info/leaseOut',
|
|
data,
|
|
})
|
|
}
|
|
/**
|
|
* 领料出库 ---- 编码出库 ---- 获取编码设备列表
|
|
*/
|
|
export const getCodeDeviceListAPI = (data) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: '/material/ma_machine/list',
|
|
data,
|
|
})
|
|
}
|
|
//
|
|
export const getCodeScanAPI = (data) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: '/material/lease_apply_info/getInfoByQrcode',
|
|
data,
|
|
})
|
|
}
|
|
|
|
export const getScanCodeAPI = (data) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: '/material/ma_machine/getHisByQrcode',
|
|
data,
|
|
})
|
|
}
|
|
|
|
export const getDeviceListAPI = (data) => {
|
|
return http({
|
|
method: 'GET',
|
|
url: '/material/ma_machine/getHisByCode',
|
|
data,
|
|
})
|
|
}
|
|
//出库退回
|
|
export const leaseOutBackApi = (data) => {
|
|
return http({
|
|
method: 'POSt',
|
|
url: '/material/lease_apply_info/leaseOutBack',
|
|
data,
|
|
})
|
|
}
|