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