feat(领料功能): 添加入库记录领料操作功能
- 在入库记录页面添加领料按钮和领料对话框 - 实现领料表单验证和提交逻辑 - 添加领料API接口 - 更新撤销操作后的列表刷新方法为getList - 调整表格列显示和操作按钮布局
This commit is contained in:
@@ -59,7 +59,7 @@ export function delMmInventory(pid) {
|
||||
|
||||
/**
|
||||
* 获取物料编码下拉列表
|
||||
*/
|
||||
*/
|
||||
export function getMaterialOption(query) {
|
||||
return request({
|
||||
url: 'mes/productionMaterial/MmInventory/GetMaterialOption/',
|
||||
@@ -70,7 +70,7 @@ export function getMaterialOption(query) {
|
||||
|
||||
/**
|
||||
* 获取入库类型列表
|
||||
*/
|
||||
*/
|
||||
export function getTransactionOption(query) {
|
||||
return request({
|
||||
url: 'mes/productionMaterial/MmInventory/GetTransactionOption/',
|
||||
@@ -93,7 +93,7 @@ export function createInboundReceipt(data) {
|
||||
|
||||
/**
|
||||
* 获取库位编码下拉列表
|
||||
*/
|
||||
*/
|
||||
export function getLocationOption(query) {
|
||||
return request({
|
||||
url: 'mes/productionMaterial/MmInventory/GetLocationOption/',
|
||||
@@ -116,19 +116,19 @@ export function createOutboundReceipt(data) {
|
||||
|
||||
/**
|
||||
* 导出库存表
|
||||
*/
|
||||
*/
|
||||
export async function exportMmInventory(query) {
|
||||
// return request({
|
||||
// url: '/system/User/export',
|
||||
// method: 'get',
|
||||
// params: query
|
||||
// })
|
||||
await downFile('/mes/productionMaterial/MmInventory/export', { ...query })
|
||||
// return request({
|
||||
// url: '/system/User/export',
|
||||
// method: 'get',
|
||||
// params: query
|
||||
// })
|
||||
await downFile('/mes/productionMaterial/MmInventory/export', { ...query })
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询出/入库记录
|
||||
*/
|
||||
*/
|
||||
export async function queryMmInventory(data) {
|
||||
return request({
|
||||
url: 'mes/productionMaterial/MmInventory/GetInOrOutRecord',
|
||||
@@ -139,7 +139,7 @@ export async function queryMmInventory(data) {
|
||||
|
||||
/**
|
||||
* 撤销出/入库记录
|
||||
*/
|
||||
*/
|
||||
export async function cancelMmInventory(data) {
|
||||
return request({
|
||||
url: 'mes/productionMaterial/MmInventory/RevokeReceipt',
|
||||
@@ -147,6 +147,3 @@ export async function cancelMmInventory(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -59,12 +59,23 @@ export function delMmRecordInbound(pid) {
|
||||
|
||||
/**
|
||||
* 导出库存表
|
||||
*/
|
||||
*/
|
||||
export async function exportMmRecordInbound(query) {
|
||||
// return request({
|
||||
// url: '/system/User/export',
|
||||
// method: 'get',
|
||||
// params: query
|
||||
// })
|
||||
await downFile('/mes/productionMaterial/MmRecordInbound/export', { ...query })
|
||||
// return request({
|
||||
// url: '/system/User/export',
|
||||
// method: 'get',
|
||||
// params: query
|
||||
// })
|
||||
await downFile('/mes/productionMaterial/MmRecordInbound/export', { ...query })
|
||||
}
|
||||
|
||||
/**
|
||||
* 领料操作
|
||||
*/
|
||||
export async function takeMaterial(data) {
|
||||
return request({
|
||||
url: 'mes/productionMaterial/MmRecordInbound/TakeMaterial',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user