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