Browse Source

不合格转隔离前端细节

hella_online_20240829
chenfang 4 months ago
parent
commit
9a4e2db086
  1. 11
      src/api/wms/inventorymoveJobMain/index.ts
  2. 12
      src/api/wms/inventorymoveRecordMain/index.ts
  3. 3
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue
  4. 3
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue

11
src/api/wms/inventorymoveJobMain/index.ts

@ -96,6 +96,17 @@ export const exportOkToHoldJobMain = async (params) => {
} }
} }
// 导出不合格转隔离任务主 Excel
export const exportNokToHoldJobMain = async (params) => {
params.businessType = 'NokToHold'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params })
}
}
// 导出隔离转合格任务主 Excel // 导出隔离转合格任务主 Excel
export const exportHoldToOkJobMain = async (params) => { export const exportHoldToOkJobMain = async (params) => {
params.businessType = 'HoldToOk' params.businessType = 'HoldToOk'

12
src/api/wms/inventorymoveRecordMain/index.ts

@ -81,7 +81,17 @@ export const exportOkToHoldRecordMain = async (params) => {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
} }
} }
// 导出合格转隔离记录主 Excel
export const exportNokToHoldRecordMain = async (params) => {
params.businessType = 'NokToHold'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/inventorymove-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/inventorymove-record-main/export-excel`, params })
}
}
// 导出隔离转合格记录主 Excel // 导出隔离转合格记录主 Excel
export const exportHoldToOkRecordMain = async (params) => { export const exportHoldToOkRecordMain = async (params) => {
params.businessType = 'HoldToOk' params.businessType = 'HoldToOk'

3
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue

@ -302,6 +302,9 @@ const handleExport = async () => {
if(routeName.value == 'OktoholdJobMain'){ if(routeName.value == 'OktoholdJobMain'){
const data = await InventorymoveJobMainApi.exportOkToHoldJobMain(tableObject.params) const data = await InventorymoveJobMainApi.exportOkToHoldJobMain(tableObject.params)
download.excel(data, '合格转隔离任务主.xlsx') download.excel(data, '合格转隔离任务主.xlsx')
}else if ( routeName.value == 'HoldtookJobMain') {
const data = await InventorymoveJobMainApi.exportNokToHoldJobMain(tableObject.params)
download.excel(data, '不合格转隔离任务主.xlsx')
}else if ( routeName.value == 'HoldtookJobMain') { }else if ( routeName.value == 'HoldtookJobMain') {
const data = await InventorymoveJobMainApi.exportHoldToOkJobMain(tableObject.params) const data = await InventorymoveJobMainApi.exportHoldToOkJobMain(tableObject.params)
download.excel(data, '隔离转合格任务主.xlsx') download.excel(data, '隔离转合格任务主.xlsx')

3
src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue

@ -227,6 +227,9 @@ const handleExport = async () => {
if(routeName.value == 'OktoholdRecordMain'){ if(routeName.value == 'OktoholdRecordMain'){
const data = await InventorymoveRecordMainApi.exportOkToHoldRecordMain(tableObject.params) const data = await InventorymoveRecordMainApi.exportOkToHoldRecordMain(tableObject.params)
download.excel(data, '合格转隔离记录主.xlsx') download.excel(data, '合格转隔离记录主.xlsx')
}else if ( routeName.value == 'HoldtookRecordMain') {
const data = await InventorymoveRecordMainApi.exportNokToHoldRecordMain(tableObject.params)
download.excel(data, '不合格转隔离记录主.xlsx')
}else if ( routeName.value == 'HoldtookRecordMain') { }else if ( routeName.value == 'HoldtookRecordMain') {
const data = await InventorymoveRecordMainApi.exportHoldToOkRecordMain(tableObject.params) const data = await InventorymoveRecordMainApi.exportHoldToOkRecordMain(tableObject.params)
download.excel(data, '隔离转合格记录主.xlsx') download.excel(data, '隔离转合格记录主.xlsx')

Loading…
Cancel
Save