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