feat: 物料、单位导入数据、导出模板功能

This commit is contained in:
2025-07-29 17:32:34 +08:00
parent a76c7657f5
commit 2de0b7149b
15 changed files with 447 additions and 18 deletions

View File

@@ -32,4 +32,20 @@ export function getUnit(params) {
})
}
export default { add, edit, del, getUnit }
export function excelImport(data) {
return request({
url: 'api/mdPbMeasureunit/importExcel',
method: 'post',
data
})
}
export function downloadImportUnitTemplate(data) {
return request({
url: 'api/mdPbMeasureunit/downloadImportUnitTemplate',
method: 'get',
responseType: 'blob'
})
}
export default { add, edit, del, getUnit, excelImport, downloadImportUnitTemplate }