feat(生产物料): 添加库存表和入库记录表的导出功能

- 在mminventory.js和mmrecordinbound.js中添加导出API
- 更新MmInventory.vue和MmRecordInbound.vue中的导出逻辑
- 改进导入结果提示信息的展示格式
- 修正导入模板和导入数据的API路径
This commit is contained in:
Tom
2026-01-09 10:52:28 +08:00
parent 3f853eef54
commit 389ee19294
4 changed files with 71 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
import request from '@/utils/request'
import { downFile } from '@/utils/request'
/**
* 库存表分页查询
@@ -112,3 +113,15 @@ export function createOutboundReceipt(data) {
data: data
})
}
/**
* 导出库存表
*/
export async function exportMmInventory(query) {
// return request({
// url: '/system/User/export',
// method: 'get',
// params: query
// })
await downFile('/mes/productionMaterial/MmInventory/export', { ...query })
}

View File

@@ -1,4 +1,5 @@
import request from '@/utils/request'
import { downFile } from '@/utils/request'
/**
* 入库记录表分页查询
@@ -55,3 +56,15 @@ export function delMmRecordInbound(pid) {
method: 'POST'
})
}
/**
* 导出库存表
*/
export async function exportMmRecordInbound(query) {
// return request({
// url: '/system/User/export',
// method: 'get',
// params: query
// })
await downFile('/mes/productionMaterial/MmRecordInbound/export', { ...query })
}