|
@@ -189,7 +189,7 @@ export default {
|
|
|
},
|
|
|
getParams() {
|
|
|
const upstreamProcurementDocuments = this.upstreamTableData.map((item, index) => {
|
|
|
- if(item.name) {
|
|
|
+ if (item?.name) {
|
|
|
return {
|
|
|
name: item.name,
|
|
|
files: this.$refs[`upfileStorage${index}`].getFileLists.map(item => item.id)
|
|
@@ -197,7 +197,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
const salesDocumentsInfos = this.downstreamTableData.map((item, index) => {
|
|
|
- if(item.name) {
|
|
|
+ if (item?.name) {
|
|
|
return {
|
|
|
name: item.name,
|
|
|
files: this.$refs[`downfileStorage${index}`].getFileLists.map(item => item.id)
|
|
@@ -205,8 +205,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
return {
|
|
|
- upstreamProcurementDocuments: upstreamProcurementDocuments.filter(item => item.name),
|
|
|
- salesDocumentsInfos: salesDocumentsInfos.filter(item => item.name)
|
|
|
+ upstreamProcurementDocuments: upstreamProcurementDocuments.filter(item => item?.name),
|
|
|
+ salesDocumentsInfos: salesDocumentsInfos.filter(item => item?.name)
|
|
|
}
|
|
|
}
|
|
|
}
|