|
@ -55,6 +55,7 @@ |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
|
|
|
:isShowButton = isShowButton |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
@ -113,8 +114,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
if(formField == 'deliverPlanNumber') { |
|
|
if(formField == 'deliverPlanNumber') { |
|
|
setV['deliverPlanNumber'] = val[0]['number'] |
|
|
setV['deliverPlanNumber'] = val[0]['number'] |
|
|
setV['customerCode'] = val[0]['customerCode'] |
|
|
if(setV['deliverPlanNumber'] != null){ |
|
|
isShowButton.value = false |
|
|
isShowButton.value = false |
|
|
|
|
|
} |
|
|
|
|
|
setV['customerCode'] = val[0]['customerCode'] |
|
|
// 获取子表数据 getBomDisassemble |
|
|
// 获取子表数据 getBomDisassemble |
|
|
DeliverPlanDetailApi.selectDetailByMasterID(val[0]['id']) |
|
|
DeliverPlanDetailApi.selectDetailByMasterID(val[0]['id']) |
|
|
.then(res => { |
|
|
.then(res => { |
|
@ -293,12 +296,16 @@ const openForm =async (type: string, row?: number) => { |
|
|
if(type == "update"){ |
|
|
if(type == "update"){ |
|
|
DeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
DeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
if (item.field == 'deliverPlanNumber') { |
|
|
if (item.field == 'deliverPlanNumber') { |
|
|
item.componentProps.isSearchList = false |
|
|
item.componentProps.isSearchList = false, |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}else { |
|
|
}else { |
|
|
item.componentProps.isSearchList = true, |
|
|
DeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
item.componentProps.disabled = true |
|
|
if (item.field == 'deliverPlanNumber') { |
|
|
|
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
tableData.value = [] // 重置明细数据 |
|
|
tableData.value = [] // 重置明细数据 |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|