Browse Source

修复bug

master
chenfang 11 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'
} 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
}

Loading…
Cancel
Save