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