|
@@ -62,7 +62,7 @@ export default class Records extends Component {
|
62
|
62
|
const { userInfo: { person: { personId } }, house } = this.props
|
63
|
63
|
const params = {
|
64
|
64
|
personId,
|
65
|
|
- salesBatchId,
|
|
65
|
+ // salesBatchId,
|
66
|
66
|
pageNumber: 1,
|
67
|
67
|
pageSize: 999,
|
68
|
68
|
}
|
|
@@ -139,8 +139,17 @@ export default class Records extends Component {
|
139
|
139
|
return;
|
140
|
140
|
}
|
141
|
141
|
|
142
|
|
- debugger
|
143
|
142
|
const houseList = recordList.map(x => x.housingInfo).filter(x => chooseList.indexOf(x.houseId) > -1)
|
|
143
|
+
|
|
144
|
+ // 选择房源必须同一批次
|
|
145
|
+ const checkHouse = houseList[0]
|
|
146
|
+ for (let inx in houseList) {
|
|
147
|
+ if (houseList[inx].salesBatchId != checkHouse.salesBatchId) {
|
|
148
|
+ Taro.showToast({ title: '所选房源不属于同一销售批次, 请筛选后重选', icon: 'none' })
|
|
149
|
+ return;
|
|
150
|
+ }
|
|
151
|
+ }
|
|
152
|
+
|
144
|
153
|
this.props.dispatchFlush2Cart(houseList);
|
145
|
154
|
|
146
|
155
|
Taro.navigateTo({
|
|
@@ -256,6 +265,7 @@ export default class Records extends Component {
|
256
|
265
|
}
|
257
|
266
|
})
|
258
|
267
|
}
|
|
268
|
+
|
259
|
269
|
loadAparamentType(salesBatchId) {
|
260
|
270
|
queryApartmentType({ salesBatchId: salesBatchId }).then(res => {
|
261
|
271
|
res.unshift({ apartmentName: '请选择', apartmentId: '' })
|
|
@@ -264,8 +274,8 @@ export default class Records extends Component {
|
264
|
274
|
})
|
265
|
275
|
})
|
266
|
276
|
}
|
267
|
|
- handleApartmentChange = e => {
|
268
|
277
|
|
|
278
|
+ handleApartmentChange = e => {
|
269
|
279
|
const { apartmentList } = this.state
|
270
|
280
|
|
271
|
281
|
this.setState({
|
|
@@ -343,8 +353,8 @@ export default class Records extends Component {
|
343
|
353
|
buildingId,
|
344
|
354
|
salesBatchId,
|
345
|
355
|
houseLockingStatus,
|
346
|
|
-
|
347
|
356
|
}
|
|
357
|
+
|
348
|
358
|
this.getRaise(params)
|
349
|
359
|
}
|
350
|
360
|
|