|
@ -618,8 +618,19 @@ const formRef = ref() |
|
|
const openForm =async (type: string, row?: number) => { |
|
|
const openForm =async (type: string, row?: number) => { |
|
|
if(type=='create'){ |
|
|
if(type=='create'){ |
|
|
InventorymoveRequestMain.allSchemas.formSchema.forEach(item =>{ |
|
|
InventorymoveRequestMain.allSchemas.formSchema.forEach(item =>{ |
|
|
|
|
|
if(item.field == 'fromWarehouseCode'){ |
|
|
|
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
if(item.field == 'dueTime') { |
|
|
if(item.field == 'dueTime') { |
|
|
item.value = dayjs().add(1, 'hour') |
|
|
item.value = dayjs().add(1, 'hour').valueOf() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
InventorymoveRequestMain.allSchemas.formSchema.forEach(item =>{ |
|
|
|
|
|
if(item.field == 'fromWarehouseCode'){ |
|
|
|
|
|
item.componentProps.isSearchList = false |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|