You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
193 lines
3.5 KiB
193 lines
3.5 KiB
import request from '@/axios'; |
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/list', |
|
method: 'get', |
|
params: { |
|
current, |
|
size, |
|
...params, |
|
}, |
|
}); |
|
}; |
|
export const getpackList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/packageList', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
export const getinventoryList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/inventoryList', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
export const getlclList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/lclList', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
export const getpackListhistory = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/packageListhistory', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
export const getinventoryListhistory = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/inventoryListhistory', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
|
|
/** 获取打印模板 */ |
|
export const getPrintTemplate = ids => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/barCode', |
|
method: 'post', |
|
params: { |
|
ids, |
|
}, |
|
}); |
|
}; |
|
|
|
/** 获取托盘码PDF */ |
|
export const postDownPdf = ids => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/downPdf', |
|
method: 'post', |
|
data: { |
|
ids, |
|
}, |
|
responseType: 'blob', |
|
}); |
|
}; |
|
|
|
export const getlclListhistory = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/lclListhistory', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getDetail = id => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/detail', |
|
method: 'get', |
|
params: { |
|
id, |
|
}, |
|
}); |
|
}; |
|
|
|
export const remove = ids => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/remove', |
|
method: 'post', |
|
params: { |
|
ids, |
|
}, |
|
}); |
|
}; |
|
export const disable = ids => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/disable', |
|
method: 'post', |
|
params: { |
|
ids, |
|
}, |
|
}); |
|
}; |
|
export const addable = ids => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/addable', |
|
method: 'post', |
|
params: { |
|
ids, |
|
}, |
|
}); |
|
}; |
|
|
|
export const add = row => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/save', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
export const update = row => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/update', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
export const vacant = row => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/vacant', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
export const vacants = row => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/vacants', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
/** |
|
* 获取仓库信息 |
|
*/ |
|
export const getWarehouseListqx = () => { |
|
return request({ |
|
url: '/api/logpm-basicdata/warehouse/warehouseListqx', |
|
method: 'get', |
|
}); |
|
}; |
|
|
|
/** |
|
* 托盘详情导出 |
|
*/ |
|
export const getExportTrayData = params => { |
|
return request({ |
|
url: '/api/logpm-basicdata/tray/exportTrayData', |
|
method: 'get', |
|
params, |
|
responseType: 'blob', |
|
}); |
|
};
|
|
|