|
|
@ -603,6 +603,11 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{ |
|
|
|
if(item.field == 'qty'){ |
|
|
|
item.tableForm.disabled = routeName.value == "HoldtookRequestMain" |
|
|
|
} |
|
|
|
}) |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
} |
|
|
@ -611,6 +616,11 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
* 详情 新增/编辑事件 |
|
|
|
*/ |
|
|
|
const detailOpenForm = (type, row) => { |
|
|
|
InventorymoveRequestDetail.allSchemas.formSchema.forEach(item=>{ |
|
|
|
if(item.field == 'qty'){ |
|
|
|
item.componentProps.disabled = routeName.value == "HoldtookRequestMain" |
|
|
|
} |
|
|
|
}) |
|
|
|
if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ |
|
|
|
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.push({ |
|
|
|
key: 'warehouseCode', |
|
|
|