|
|
@ -116,15 +116,76 @@ const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
tableObject.params = { |
|
|
|
// fromInventoryStatus: 'OK', |
|
|
|
// toInventoryStatus:'HOLD', |
|
|
|
businessType :'OkToHold' |
|
|
|
if ( routeName.value == 'OktoholdRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
// fromInventoryStatus: 'OK', |
|
|
|
// toInventoryStatus:'HOLD', |
|
|
|
businessType :'OkToHold' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'OK' |
|
|
|
toInventoryStatus.value = "HOLD" |
|
|
|
businessType.value = 'OkToHold' |
|
|
|
importFileName.value = '物料转隔离申请' |
|
|
|
} |
|
|
|
else if ( routeName.value == 'NoktoholdRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
// fromInventoryStatus: 'NOK', |
|
|
|
// toInventoryStatus:'HOLD', |
|
|
|
businessType :'NokToHold' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'NOK' |
|
|
|
toInventoryStatus.value = "HOLD" |
|
|
|
businessType.value = 'NokToHold' |
|
|
|
importFileName.value = '不合格转隔离申请' |
|
|
|
} |
|
|
|
else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
// fromInventoryStatus: 'HOLD', |
|
|
|
// toInventoryStatus:'OK', |
|
|
|
businessType :'HoldToOk' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'HOLD' |
|
|
|
toInventoryStatus.value = "OK" |
|
|
|
businessType.value = 'HoldToOk' |
|
|
|
importFileName.value = '隔离转合格申请' |
|
|
|
} else if ( routeName.value == 'HoldtoscrapRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
// fromInventoryStatus: 'HOLD', |
|
|
|
// toInventoryStatus:'SCRAP', |
|
|
|
businessType:'HoldToScrap' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'HOLD' |
|
|
|
toInventoryStatus.value = "SCRAP" |
|
|
|
businessType.value = 'HoldToScrap' |
|
|
|
importFileName.value = '隔离转报废申请' |
|
|
|
} else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
// fromInventoryStatus: 'OK', |
|
|
|
// toInventoryStatus:'SCRAP', |
|
|
|
businessType :'OkToScrap' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'OK' |
|
|
|
toInventoryStatus.value = "SCRAP" |
|
|
|
businessType.value = 'OkToScrap' |
|
|
|
importFileName.value = '合格转报废申请' |
|
|
|
} |
|
|
|
else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
|
tableObject.params = { |
|
|
|
// fromInventoryStatus: 'SCRAP', |
|
|
|
// toInventoryStatus:'HOLD', |
|
|
|
businessType :'ScrapToHold' |
|
|
|
} |
|
|
|
fromInventoryStatus.value = 'SCRAP' |
|
|
|
toInventoryStatus.value = "HOLD" |
|
|
|
businessType.value = 'ScrapToHold' |
|
|
|
importFileName.value = '报废转隔离申请' |
|
|
|
} else { |
|
|
|
tableObject.params = { |
|
|
|
businessType :'Move' |
|
|
|
} |
|
|
|
businessType.value = 'Move' |
|
|
|
importFileName.value = '库存移动申请' |
|
|
|
} |
|
|
|
// fromInventoryStatus.value = 'OK' |
|
|
|
// toInventoryStatus.value = "HOLD" |
|
|
|
businessType.value = 'OkToHold' |
|
|
|
importFileName.value = '物料转隔离申请' |
|
|
|
|
|
|
|
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ |
|
|
|
if(item.field == 'fromWarehouseCode') { |
|
|
|