Browse Source

标准成本价格单管理 生产线物料关系管理导出

master
zhang_li 1 year ago
parent
commit
17fbc824a7
  1. 5
      src/api/wms/productionlineitem/index.ts
  2. 5
      src/api/wms/stdcostprice/index.ts
  3. 2
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  4. 2
      src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue

5
src/api/wms/productionlineitem/index.ts

@ -43,8 +43,13 @@ export const deleteProductionlineitem = async (id: number) => {
// 导出生产线物料关系 Excel
export const exportProductionlineitem = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/productionlineitem/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/productionlineitem/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

5
src/api/wms/stdcostprice/index.ts

@ -44,8 +44,13 @@ export const deleteStdcostprice = async (id: number) => {
// 导出标准成本价格单 Excel
export const exportStdcostprice = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/stdcostprice/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/stdcostprice/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

2
src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue

@ -206,7 +206,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ProductionlineitemApi.exportProductionlineitem(setSearchParams)
const data = await ProductionlineitemApi.exportProductionlineitem(tableObject.params)
download.excel(data, '生产线物料关系.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await StdcostpriceApi.exportStdcostprice(setSearchParams)
const data = await StdcostpriceApi.exportStdcostprice(tableObject.params)
download.excel(data, '标准成本价格单 .xls')
} catch {
} finally {

Loading…
Cancel
Save