|
@ -115,73 +115,78 @@ const { tableObject, tableMethods } = useTable({ |
|
|
/** |
|
|
/** |
|
|
* OktoholdRequestMain 合格转隔离 |
|
|
* OktoholdRequestMain 合格转隔离 |
|
|
*/ |
|
|
*/ |
|
|
if ( routeName.value == 'OktoholdRequestMain') { |
|
|
if ( routeName.value == 'OktoholdRequestMain') { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
toInventoryStatus:'HOLD' |
|
|
// fromInventoryStatus: 'OK', |
|
|
|
|
|
// toInventoryStatus:'HOLD', |
|
|
|
|
|
businessType :'OkToHold' |
|
|
} |
|
|
} |
|
|
toInventoryStatus.value = "HOLD" |
|
|
// fromInventoryStatus.value = 'OK' |
|
|
|
|
|
// toInventoryStatus.value = "HOLD" |
|
|
businessType.value = 'OkToHold' |
|
|
businessType.value = 'OkToHold' |
|
|
importFileName.value = '物料转隔离申请' |
|
|
importFileName.value = '物料转隔离申请' |
|
|
} |
|
|
} |
|
|
// else if ( routeName.value == 'NoktoholdRequestMain') { |
|
|
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 = { |
|
|
tableObject.params = { |
|
|
fromInventoryStatus: 'HOLD', |
|
|
// fromInventoryStatus: 'NOK', |
|
|
toInventoryStatus:'OK' |
|
|
// 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' |
|
|
// fromInventoryStatus.value = 'HOLD' |
|
|
toInventoryStatus.value = "OK" |
|
|
// toInventoryStatus.value = "OK" |
|
|
businessType.value = 'HoldToOk' |
|
|
businessType.value = 'HoldToOk' |
|
|
importFileName.value = '隔离转合格申请' |
|
|
importFileName.value = '隔离转合格申请' |
|
|
} else if ( routeName.value == 'HoldtoscrapRequestMain') { |
|
|
} else if ( routeName.value == 'HoldtoscrapRequestMain') { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
fromInventoryStatus: 'HOLD', |
|
|
// fromInventoryStatus: 'HOLD', |
|
|
toInventoryStatus:'SCRAP' |
|
|
// toInventoryStatus:'SCRAP', |
|
|
|
|
|
businessType:'HoldToScrap' |
|
|
} |
|
|
} |
|
|
fromInventoryStatus.value = 'HOLD' |
|
|
// fromInventoryStatus.value = 'HOLD' |
|
|
toInventoryStatus.value = "SCRAP" |
|
|
// toInventoryStatus.value = "SCRAP" |
|
|
businessType.value = 'HoldToScrap' |
|
|
businessType.value = 'HoldToScrap' |
|
|
importFileName.value = '隔离转报废申请' |
|
|
importFileName.value = '隔离转报废申请' |
|
|
} else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
} else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
fromInventoryStatus: 'OK', |
|
|
// fromInventoryStatus: 'OK', |
|
|
toInventoryStatus:'SCRAP' |
|
|
// toInventoryStatus:'SCRAP', |
|
|
|
|
|
businessType :'OkToScrap' |
|
|
} |
|
|
} |
|
|
fromInventoryStatus.value = 'OK' |
|
|
// fromInventoryStatus.value = 'OK' |
|
|
toInventoryStatus.value = "SCRAP" |
|
|
// toInventoryStatus.value = "SCRAP" |
|
|
businessType.value = 'OkToScrap' |
|
|
businessType.value = 'OkToScrap' |
|
|
importFileName.value = '合格转报废申请' |
|
|
importFileName.value = '合格转报废申请' |
|
|
} |
|
|
} |
|
|
// else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
// tableObject.params = { |
|
|
tableObject.params = { |
|
|
// fromInventoryStatus: 'SCRAP', |
|
|
// fromInventoryStatus: 'SCRAP', |
|
|
// toInventoryStatus:'HOLD' |
|
|
// toInventoryStatus:'HOLD', |
|
|
// } |
|
|
businessType :'ScrapToHold' |
|
|
// fromInventoryStatus.value = 'SCRAP' |
|
|
} |
|
|
// toInventoryStatus.value = "HOLD" |
|
|
// fromInventoryStatus.value = 'SCRAP' |
|
|
// businessType.value = 'ScrapToHold' |
|
|
// toInventoryStatus.value = "HOLD" |
|
|
// importFileName.value = '报废转隔离申请' |
|
|
businessType.value = 'ScrapToHold' |
|
|
// } |
|
|
importFileName.value = '报废转隔离申请' |
|
|
else if( routeName.value == 'InventorymoveRequestMain'){ |
|
|
} else { |
|
|
fromInventoryStatus.value = null |
|
|
|
|
|
businessType.value = 'Move' |
|
|
|
|
|
importFileName.value = '库存移动申请' |
|
|
|
|
|
}else { |
|
|
|
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
fromInventoryStatus: 'OK', |
|
|
businessType :'Move' |
|
|
toInventoryStatus:'SCRAP' |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
businessType.value = 'Move' |
|
|
|
|
|
importFileName.value = '库存移动申请' |
|
|
} |
|
|
} |
|
|
console.log(99 , businessType.value) |
|
|
console.log(99 , businessType.value) |
|
|
|
|
|
|
|
|
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ |
|
|
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ |
|
|
if(item.field == 'fromWarehouseCode') { |
|
|
if(item.field == 'fromWarehouseCode') { |
|
|
if (fromInventoryStatus.value) { |
|
|
if (fromInventoryStatus.value) { |
|
@ -789,6 +794,15 @@ const importSuccess = () => { |
|
|
|
|
|
|
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
|
|
|
const cmd = { |
|
|
|
|
|
'column':'businessType', |
|
|
|
|
|
'action':'==', |
|
|
|
|
|
'value':businessType.value |
|
|
|
|
|
} |
|
|
|
|
|
if (!Array.isArray(searchData.filters)) { |
|
|
|
|
|
searchData.filters = []; |
|
|
|
|
|
} |
|
|
|
|
|
searchData.filters.push(cmd) |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
filters: searchData.filters |
|
|
filters: searchData.filters |
|
|