|
|
@ -110,7 +110,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
if(formField == 'deliverPlanNumber') { |
|
|
|
setV['deliverPlanNumber'] = val[0]['number'] |
|
|
|
setV['customerCode'] = val[0]['customerCode'] |
|
|
@ -290,8 +290,16 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|
console.log(9999,row) |
|
|
|
console.log(996669,type) |
|
|
|
if(type == "update"){ |
|
|
|
DeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'deliverPlanNumber') { |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
}) |
|
|
|
}else { |
|
|
|
item.componentProps.isSearchList = true, |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
} |
|
|
|