张延森 5 vuotta sitten
vanhempi
commit
a58280468b

+ 1
- 0
src/onlineSelling/pages/houseCart/index.js Näytä tiedosto

45
       const { id: salesBatchId, multi } = this.$router.params
45
       const { id: salesBatchId, multi } = this.$router.params
46
 
46
 
47
       const params = {
47
       const params = {
48
+        source: 'raiseChoose',
48
         salesBatchId,
49
         salesBatchId,
49
         pageNum: 1,
50
         pageNum: 1,
50
         pageSize: 9999,
51
         pageSize: 9999,

+ 14
- 4
src/onlineSelling/pages/records/index.js Näytä tiedosto

62
       const { userInfo: { person: { personId } }, house } = this.props
62
       const { userInfo: { person: { personId } }, house } = this.props
63
       const params = {
63
       const params = {
64
         personId,
64
         personId,
65
-        salesBatchId,
65
+        // salesBatchId,
66
         pageNumber: 1,
66
         pageNumber: 1,
67
         pageSize: 999,
67
         pageSize: 999,
68
       }
68
       }
139
       return;
139
       return;
140
     }
140
     }
141
 
141
 
142
-    debugger
143
     const houseList = recordList.map(x => x.housingInfo).filter(x => chooseList.indexOf(x.houseId) > -1)
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
     this.props.dispatchFlush2Cart(houseList);
153
     this.props.dispatchFlush2Cart(houseList);
145
 
154
 
146
     Taro.navigateTo({
155
     Taro.navigateTo({
256
       }
265
       }
257
     })
266
     })
258
   }
267
   }
268
+
259
   loadAparamentType(salesBatchId) {
269
   loadAparamentType(salesBatchId) {
260
     queryApartmentType({ salesBatchId: salesBatchId }).then(res => {
270
     queryApartmentType({ salesBatchId: salesBatchId }).then(res => {
261
       res.unshift({ apartmentName: '请选择', apartmentId: '' })
271
       res.unshift({ apartmentName: '请选择', apartmentId: '' })
264
       })
274
       })
265
     })
275
     })
266
   }
276
   }
267
-  handleApartmentChange = e => {
268
 
277
 
278
+  handleApartmentChange = e => {
269
     const { apartmentList } = this.state
279
     const { apartmentList } = this.state
270
 
280
 
271
     this.setState({
281
     this.setState({
343
         buildingId,
353
         buildingId,
344
         salesBatchId,
354
         salesBatchId,
345
         houseLockingStatus,
355
         houseLockingStatus,
346
-
347
       }
356
       }
357
+
348
       this.getRaise(params)
358
       this.getRaise(params)
349
     }
359
     }
350
 
360