|
|
@ -585,6 +585,21 @@ const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
tableData.value = [] |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
if(type == "update"){ |
|
|
|
RelegateRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'fromWarehouseCode') { |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
}) |
|
|
|
}else { |
|
|
|
RelegateRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'fromWarehouseCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
//为true表示子表数据中存在数量为0的数据 |
|
|
|
const flag = ref(false) |
|
|
|