|
@@ -38,13 +38,14 @@ class Buyer extends Unit {
|
|
|
}
|
|
|
}
|
|
|
class Winner extends Unit {
|
|
|
- constructor(name, id, { seoId, winnerPerson, winnerTel, isCandidate }) {
|
|
|
+ constructor(name, id, { seoId, winnerPerson, winnerTel, isCandidate, personTel }) {
|
|
|
super(name, id)
|
|
|
|
|
|
this.seoId = seoId || ''
|
|
|
this.winnerPerson = winnerPerson || ''
|
|
|
this.winnerTel = winnerTel || ''
|
|
|
this.isCandidate = isCandidate
|
|
|
+ this.personTel = personTel
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -153,13 +154,17 @@ class SummaryModel extends BaseModel {
|
|
|
list.push(summaryWinner)
|
|
|
list.push(winnerContactInfo)
|
|
|
|
|
|
- const seoId = summary?.winnerSeoId[w.winner]
|
|
|
+ let seoId = ''
|
|
|
+ if (summary?.winnerSeoId) {
|
|
|
+ seoId = summary?.winnerSeoId[w.winner]
|
|
|
+ }
|
|
|
winnerList.push(
|
|
|
- new Winner('winner', '中标单位', {
|
|
|
+ new Winner(w.winner, w.winnerId, {
|
|
|
seoId: seoId || '',
|
|
|
winnerPerson: w.winnerPerson || '',
|
|
|
winnerTel: w.winnerTel || '',
|
|
|
- isCandidate: w.isCandidate || false
|
|
|
+ isCandidate: w.isCandidate || false,
|
|
|
+ personTel: winnerContactInfo
|
|
|
})
|
|
|
)
|
|
|
})
|