|
@@ -14,6 +14,7 @@ import AuthButton from '@/components/AuthButton';
|
14
|
14
|
import UserInfo from './UserInfo';
|
15
|
15
|
import HouseInfo from './HouseInfo';
|
16
|
16
|
import BatchInvalid from './BatchRaise/BatchInvalid';
|
|
17
|
+import BatchDel from './BatchRaise/BatchDel';
|
17
|
18
|
import BatchPay from './BatchRaise/BatchPay';
|
18
|
19
|
import BatchRefund from './BatchRaise/BatchRefund';
|
19
|
20
|
import Refund from './BatchRaise/Refund';
|
|
@@ -29,6 +30,7 @@ function PreselectionRecord(props) {
|
29
|
30
|
const [userInfo, setUserInfo] = useState({visable:false, raiseId:'', raiseRecord: {}})
|
30
|
31
|
const [houseInfo, setHouseInfo] = useState({visable:false, raiseRecordId:''})
|
31
|
32
|
const [invalid, setInvalid] = useState({visable:false,houseIds:''})
|
|
33
|
+ const [batchDel, setBatchDel] = useState({visable:false,houseIds:''})
|
32
|
34
|
const [pay, setPay] = useState({visable:false,houseIds:''})
|
33
|
35
|
const [refund, setRefund] = useState({visable:false,houseIds:''})
|
34
|
36
|
const [taRaiseRecords, setTaRaiseRecords] = useState([])
|
|
@@ -101,6 +103,17 @@ function PreselectionRecord(props) {
|
101
|
103
|
return;
|
102
|
104
|
}
|
103
|
105
|
setInvalid(e);
|
|
106
|
+ getList();
|
|
107
|
+ }
|
|
108
|
+
|
|
109
|
+ function showBatchDel(e){
|
|
110
|
+ console.log(e,'eeeeeee')
|
|
111
|
+ if (taRaiseRecords.length <= 0){
|
|
112
|
+ message.info("请选择数据");
|
|
113
|
+ return;
|
|
114
|
+ }
|
|
115
|
+ setBatchDel(e);
|
|
116
|
+ getList();
|
104
|
117
|
}
|
105
|
118
|
|
106
|
119
|
function showPay(e){
|
|
@@ -188,7 +201,7 @@ function PreselectionRecord(props) {
|
188
|
201
|
title: '房源锁定状态',
|
189
|
202
|
dataIndex: 'houseLockingStatus',
|
190
|
203
|
key: 'houseLockingStatus',
|
191
|
|
- // render: blockName => <><span>{blockName}幢</span></>,
|
|
204
|
+ render: (text, record) => (<><span>{record.houseLockingStatus == 'unlocked' ? '未锁定':'已锁定'}</span></>),
|
192
|
205
|
},
|
193
|
206
|
{
|
194
|
207
|
title: '账户手机号',
|
|
@@ -213,7 +226,7 @@ function PreselectionRecord(props) {
|
213
|
226
|
title: '是否作废',
|
214
|
227
|
dataIndex: 'status',
|
215
|
228
|
key: 'status',
|
216
|
|
- render: (text, record) => (<><span>{record.status == 0 ? '否':'是'}</span></>),
|
|
229
|
+ render: (text, record) => (<><span>{record.status == 0 ? '是':'否'}</span></>),
|
217
|
230
|
},
|
218
|
231
|
{
|
219
|
232
|
title: '作废原因',
|
|
@@ -259,13 +272,13 @@ function PreselectionRecord(props) {
|
259
|
272
|
title: '认筹单提交时间',
|
260
|
273
|
dataIndex: 'createDate',
|
261
|
274
|
key: 'createDate',
|
262
|
|
- render: (x, row) => <><span>{`${moment(row.createDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
|
|
275
|
+ render: (x, row) => <><span>{row.createDate != null ? `${moment(row.createDate).format('YYYY-MM-DD HH:mm:ss')}` : ''}</span></>,
|
263
|
276
|
},
|
264
|
277
|
{
|
265
|
278
|
title: '最后修改时间',
|
266
|
279
|
dataIndex: 'updateDate',
|
267
|
280
|
key: 'updateDate',
|
268
|
|
- render: (x, row) => <><span>{`${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
|
|
281
|
+ render: (x, row) => <><span>{row.updateDate != null ? `${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}`:''}</span></>,
|
269
|
282
|
},
|
270
|
283
|
{
|
271
|
284
|
title: '最后修改人',
|
|
@@ -279,7 +292,7 @@ function PreselectionRecord(props) {
|
279
|
292
|
align: 'center',
|
280
|
293
|
render: (text, record) => (
|
281
|
294
|
<AuthButton name="admin.salesBatch.detail.get" noRight={null}>
|
282
|
|
- <a style={{ color: '#66B3FF' }} onClick={() => raiseRefund({visable:true, raiseRecordId: record.raiseRecordId})} >退费</a>
|
|
295
|
+ <a style={{ color: '#66B3FF' }} onClick={() => raiseRefund({visable:true, raiseRecordId: record.raiseRecordId})} ><span>{record.payStatus === 'paid' ? '退费':''}</span></a>
|
283
|
296
|
</AuthButton>
|
284
|
297
|
),
|
285
|
298
|
},
|
|
@@ -413,12 +426,13 @@ function PreselectionRecord(props) {
|
413
|
426
|
</Form.Item>
|
414
|
427
|
</Form>
|
415
|
428
|
<Button type="primary" onClick={() => showInvalid({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量作废</Button>
|
416
|
|
- <Button type="primary" onClick={() => toDelBatch({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量删除</Button>
|
|
429
|
+ <Button type="primary" onClick={() => showBatchDel({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量删除</Button>
|
417
|
430
|
<Button type="primary" onClick={() => showPay({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量线下缴费</Button>
|
418
|
431
|
<Button type="primary" onClick={() => showRefund({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量线下退费</Button>
|
419
|
432
|
<UserInfo visible={userInfo.visable} raiseId={userInfo.raiseId} raiseRecordId={userInfo.raiseRecord} onCancel={e => setUserInfo(e)} />
|
420
|
433
|
<HouseInfo visible={houseInfo.visable} salesBatchId={houseInfo.salesBatchId} raiseRecordId={houseInfo.raiseRecordId} buildingId={houseInfo.buildingId} onCancel={() => setHouseInfo({visable:false, raiseRecordId: houseInfo.raiseRecordId})} />
|
421
|
434
|
<BatchInvalid visible={invalid.visable} houseIds={invalid.houseIds} onCancel={() => showInvalid(false)} onSuccess={() => showInvalid(false)}/>
|
|
435
|
+ <BatchDel visible={batchDel.visable} houseIds={batchDel.houseIds} onCancel={() => showBatchDel({visable:false, houseIds: taRaiseRecords})} onSuccess={() => showBatchDel({visable:false, houseIds:'' })}/>
|
422
|
436
|
<BatchPay visible={pay.visable} houseIds={pay.houseIds} onCancel={() => showPay(false)} onSuccess={() => showPay(false)} />
|
423
|
437
|
<BatchRefund visible={refund.visable} houseIds={refund.houseIds} onCancel={() => setRefund(false)} onSuccess={() => setRefund(false)}/>
|
424
|
438
|
<Refund visible={singleRefund.visable} raiseRecordId={singleRefund.raiseRecordId} onCancel={() => setSingleRefund({visable:false, raiseRecordId:''})}></Refund>
|