|
@@ -61,6 +61,7 @@ export default withLayout((props) => {
|
61
|
61
|
}
|
62
|
62
|
getCardList(params).then((res) => {
|
63
|
63
|
const { records } = res
|
|
64
|
+ console.log("🚀 ~ file: index.jsx ~ line 64 ~ getCardList ~ records", records)
|
64
|
65
|
setConsultantList(records || [])
|
65
|
66
|
})
|
66
|
67
|
}
|
|
@@ -103,8 +104,12 @@ export default withLayout((props) => {
|
103
|
104
|
})
|
104
|
105
|
setSuccessDate(res.customerSignatory[0].successDate.substring(0, 10))
|
105
|
106
|
}
|
106
|
|
- const ConsultantId = CurrentStatusId === 3 ? res.customerPreparatory?.realtyConsultant : (res.customerSignatory || []).length ? res.customerSignatory[0].realtyConsultant : null
|
107
|
|
- console.log(`ConsultantId is`, ConsultantId)
|
|
107
|
+ // const ConsultantId = CurrentStatusId === 3 ? res.customerPreparatory?.realtyConsultant : (res.customerSignatory || []).length ? res.customerSignatory[0].realtyConsultant : null
|
|
108
|
+ const ConsultantId = CurrentStatusId === 3 ? res?.realtyConsultant : (res.customerSignatory || []).length ? res.customerSignatory[0].realtyConsultant : null
|
|
109
|
+
|
|
110
|
+ console.log(`ConsultantId is`, ConsultantId, id)
|
|
111
|
+
|
|
112
|
+
|
108
|
113
|
ConsultantList.map((item) => {
|
109
|
114
|
if (item.id === ConsultantId) {
|
110
|
115
|
setCurrnetConsultant(item)
|