|
@@ -69,12 +69,12 @@ export default withLayout((props) => {
|
69
|
69
|
}, [buildingId])
|
70
|
70
|
|
71
|
71
|
useEffect(() => {
|
72
|
|
- if (CurrentStatusId - 0 !== 3) {
|
|
72
|
+ if (CurrentStatusId - 0 !== 3 && buildingId) {
|
73
|
73
|
fetch({ url: `${API_BUILDING_HOUSE_TYPE}?buildingId=${buildingId}&pageSize=${500}`, method: 'get' }).then((res) => {
|
74
|
74
|
setHouseTypeList(res.records || [])
|
75
|
75
|
})
|
76
|
76
|
}
|
77
|
|
- }, [CurrentStatusId])
|
|
77
|
+ }, [CurrentStatusId, buildingId])
|
78
|
78
|
|
79
|
79
|
const CutStatus = (item) => {
|
80
|
80
|
return () => {
|
|
@@ -101,9 +101,12 @@ export default withLayout((props) => {
|
101
|
101
|
const InputChange = (key, e) => {
|
102
|
102
|
let resData = { ...FormData }
|
103
|
103
|
resData[key] = e.detail.value
|
|
104
|
+ console.log('---------resData---------', resData)
|
104
|
105
|
setFormData({ ...resData })
|
105
|
106
|
}
|
106
|
107
|
|
|
108
|
+ console.log('---------FormData---------', FormData)
|
|
109
|
+
|
107
|
110
|
const PickerChange = (key, e) => {
|
108
|
111
|
let resData = { ...FormData }
|
109
|
112
|
if (key === 'realtyConsultant') {
|