Browse Source

修复bug

master
chenfang 10 months ago
parent
commit
e61e804240
  1. 17
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

17
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -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
} }

Loading…
Cancel
Save