|
|
@ -149,13 +149,11 @@ const { tableObject, tableMethods } = useTable({ |
|
|
|
businessType.value = 'ScrapToHoldRequest' |
|
|
|
} else if( routeName.value == 'InventorymoveRequestMain'){ |
|
|
|
fromInventoryStatus.value = null |
|
|
|
businessType.value = 'Move' |
|
|
|
businessType.value = 'InventorymoveRequest' |
|
|
|
console.log(146 , businessType.value) |
|
|
|
} |
|
|
|
|
|
|
|
// 修改 tableform 属性 |
|
|
|
console.log('11111',InventorymoveRequestDetail.allSchemas.tableFormColumns); |
|
|
|
|
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
|
if(item.field == 'fromPackingNumber') { |
|
|
|
if (fromInventoryStatus.value) { |
|
|
@ -171,6 +169,19 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
|
value: businessType.value, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} else if (fromInventoryStatus.value == null) { |
|
|
|
item.tableForm.searchCondition = [ |
|
|
|
{ |
|
|
|
key: 'businessType', |
|
|
|
value: businessType.value , |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
item.form.componentProps.searchCondition = [ |
|
|
|
{ |
|
|
|
key: 'businessType', |
|
|
|
value: businessType.value, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} else { |
|
|
|
delete item.tableForm.searchCondition |
|
|
|
} |
|
|
|