|
|
@ -116,23 +116,23 @@ const { tableObject, tableMethods } = useTable({ |
|
|
|
*/ |
|
|
|
if ( routeName.value == 'OktoholdRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
fromInventoryStatus: 'OK', |
|
|
|
toInventoryStatus:'HOLD' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'OK' |
|
|
|
toInventoryStatus.value = "HOLD" |
|
|
|
businessType.value = 'OkToHold' |
|
|
|
importFileName.value = '合格转隔离申请' |
|
|
|
}else if ( routeName.value == 'NoktoholdRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
fromInventoryStatus: 'NOK', |
|
|
|
toInventoryStatus:'HOLD' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'NOK' |
|
|
|
toInventoryStatus.value = "HOLD" |
|
|
|
businessType.value = 'NokToHold' |
|
|
|
importFileName.value = '不合格转隔离申请' |
|
|
|
} else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
|
importFileName.value = '物料转隔离申请' |
|
|
|
} |
|
|
|
// else if ( routeName.value == 'NoktoholdRequestMain') { |
|
|
|
// tableObject.params = { |
|
|
|
// fromInventoryStatus: 'NOK', |
|
|
|
// toInventoryStatus:'HOLD' |
|
|
|
// } |
|
|
|
// fromInventoryStatus.value = 'NOK' |
|
|
|
// toInventoryStatus.value = "HOLD" |
|
|
|
// businessType.value = 'NokToHold' |
|
|
|
// importFileName.value = '不合格转隔离申请' |
|
|
|
// } |
|
|
|
else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
fromInventoryStatus: 'HOLD', |
|
|
|
toInventoryStatus:'OK' |
|
|
@ -159,16 +159,18 @@ const { tableObject, tableMethods } = useTable({ |
|
|
|
toInventoryStatus.value = "SCRAP" |
|
|
|
businessType.value = 'OkToScrap' |
|
|
|
importFileName.value = '合格转报废申请' |
|
|
|
} else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
fromInventoryStatus: 'SCRAP', |
|
|
|
toInventoryStatus:'HOLD' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'SCRAP' |
|
|
|
toInventoryStatus.value = "HOLD" |
|
|
|
businessType.value = 'ScrapToHold' |
|
|
|
importFileName.value = '报废转隔离申请' |
|
|
|
} else if( routeName.value == 'InventorymoveRequestMain'){ |
|
|
|
// else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
|
// tableObject.params = { |
|
|
|
// fromInventoryStatus: 'SCRAP', |
|
|
|
// toInventoryStatus:'HOLD' |
|
|
|
// } |
|
|
|
// fromInventoryStatus.value = 'SCRAP' |
|
|
|
// toInventoryStatus.value = "HOLD" |
|
|
|
// businessType.value = 'ScrapToHold' |
|
|
|
// importFileName.value = '报废转隔离申请' |
|
|
|
// } |
|
|
|
else if( routeName.value == 'InventorymoveRequestMain'){ |
|
|
|
fromInventoryStatus.value = null |
|
|
|
businessType.value = 'Move' |
|
|
|
importFileName.value = '库存移动申请' |
|
|
@ -639,7 +641,7 @@ const handleExport = async () => { |
|
|
|
exportLoading.value = true |
|
|
|
if(routeName.value == 'OktoholdRequestMain'){ |
|
|
|
const data = await InventorymoveRequestMainApi.exportOkToHoldRequestMain(tableObject.params) |
|
|
|
download.excel(data, '合格转隔离申请主.xlsx') |
|
|
|
download.excel(data, '物料转隔离申请主.xlsx') |
|
|
|
}else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportHoldToOkRequestMain(tableObject.params) |
|
|
|
download.excel(data, '隔离转合格申请主.xlsx') |
|
|
@ -649,10 +651,12 @@ const handleExport = async () => { |
|
|
|
}else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportOkToScrapRequestMain(tableObject.params) |
|
|
|
download.excel(data, '合格转报废申请主.xlsx') |
|
|
|
}else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportScrapToHoldRequestMain(tableObject.params) |
|
|
|
download.excel(data, '报废转隔离申请主.xlsx') |
|
|
|
}else{ |
|
|
|
} |
|
|
|
// else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
|
// const data = await InventorymoveRequestMainApi.exportScrapToHoldRequestMain(tableObject.params) |
|
|
|
// download.excel(data, '报废转隔离申请主.xlsx') |
|
|
|
// } |
|
|
|
else{ |
|
|
|
const data = await InventorymoveRequestMainApi.exportInventorymoveRequestMain(tableObject.params) |
|
|
|
download.excel(data, '库存转移申请主.xlsx') |
|
|
|
} |
|
|
|