diff --git a/src/views/equipement/standard/book/components/basic.vue b/src/views/equipement/standard/book/components/basic.vue index 484bc71..98e62c6 100644 --- a/src/views/equipement/standard/book/components/basic.vue +++ b/src/views/equipement/standard/book/components/basic.vue @@ -237,14 +237,14 @@ const techFileRef = ref() // 所依据的技术文件组件ref // 所依据的技术文件表头 const techFilesColumns = [ - { text: '文件编号', value: 'fileNo', required: true, align: 'center', width: '240' }, + { text: '文件编号', value: 'technologyFileNo', required: true, align: 'center', width: '240' }, { text: '文件名称', value: 'technologyFileName', required: true, align: 'center' }, { text: '备注', value: 'remark', align: 'center' }, ] // 点击技术文件增加行 const addFilesRow = () => { - const index = technologyRelationList.value.findIndex((item: ITechFiles) => !item.fileNo) + const index = technologyRelationList.value.findIndex((item: ITechFiles) => !item.technologyFileNo) if (index !== -1) { ElMessage.warning('请完善上一条文件信息') return @@ -292,13 +292,13 @@ console.log(val) if (val && val.length) { - const index = technologyRelationList.value.findIndex((i: ITechFiles) => val[0].fileNo === i.fileNo) + const index = technologyRelationList.value.findIndex((i: ITechFiles) => val[0].fileNo === i.technologyFileNo) if (index !== -1) { ElMessage.warning('此文件已添加过') return } const fileParam = { - fileNo: val[0].fileNo, // 文件编号 + technologyFileNo: val[0].fileNo, // 文件编号 technologyFileName: val[0].fileName, // 文件名称 remark: val[0].remark, // 备注 technologyFileId: val[0].id, // id