|
@@ -39,9 +39,11 @@ function PreselectionRecord(props) {
|
39
|
39
|
const salesBatchId = props.salesBatchId
|
40
|
40
|
const buildingId = props.buildingId
|
41
|
41
|
const raiseRecordId = props.raiseRecordId
|
|
42
|
+ const houseId = props.houseId
|
42
|
43
|
|
43
|
44
|
useEffect(() => {
|
44
|
|
- getList()
|
|
45
|
+ console.log('houseIdhouseIdhouseIdhouseId', houseId)
|
|
46
|
+ getList({houseId:houseId.toString()})
|
45
|
47
|
}, [])
|
46
|
48
|
|
47
|
49
|
function openNotificationWithIcon(type, message) {
|
|
@@ -54,6 +56,7 @@ function PreselectionRecord(props) {
|
54
|
56
|
|
55
|
57
|
function getList(params) {
|
56
|
58
|
// 网路请求
|
|
59
|
+ console.log(params,'params')
|
57
|
60
|
request({ ...apis.house.houseRaiseRecord, params: { ...params, salesBatchId: salesBatchId, raiseId: raiseId } }).then(res => {
|
58
|
61
|
setData(res)
|
59
|
62
|
}).catch(err => {
|
|
@@ -85,10 +88,10 @@ function PreselectionRecord(props) {
|
85
|
88
|
props.form.validateFields((err, values) => {
|
86
|
89
|
if (!err) {
|
87
|
90
|
let {liveTime, ...submitValue} = values
|
88
|
|
- if (submitValue.payStartTime != null){
|
|
91
|
+ if (submitValue.startTime != null){
|
89
|
92
|
submitValue.startTime = moment(submitValue.startTime).format('YYYY-MM-DD HH:mm:ss')
|
90
|
93
|
}
|
91
|
|
- if (submitValue.payEndTime != null){
|
|
94
|
+ if (submitValue.endTime != null){
|
92
|
95
|
submitValue.endTime = moment(submitValue.endTime).format('YYYY-MM-DD HH:mm:ss')
|
93
|
96
|
}
|
94
|
97
|
console.log('提交数据: ', values)
|
|
@@ -197,9 +200,9 @@ function PreselectionRecord(props) {
|
197
|
200
|
render: (text, record) => (<><span>{record.houseLockingStatus == 'unlocked' ? '未锁定':'已锁定'}</span></>),
|
198
|
201
|
},
|
199
|
202
|
{
|
200
|
|
- title: '账户手机号',
|
201
|
|
- dataIndex: 'personTel',
|
202
|
|
- key: 'personTel',
|
|
203
|
+ title: '认筹人姓名',
|
|
204
|
+ dataIndex: 'name',
|
|
205
|
+ key: 'name',
|
203
|
206
|
// render: unitName => <><span>{unitName}单元</span></>,
|
204
|
207
|
},
|
205
|
208
|
{
|
|
@@ -333,8 +336,8 @@ function PreselectionRecord(props) {
|
333
|
336
|
)}
|
334
|
337
|
</Form.Item>
|
335
|
338
|
<Form.Item>
|
336
|
|
- {getFieldDecorator('tel')(
|
337
|
|
- <Input placeholder="账户手机号"/>,
|
|
339
|
+ {getFieldDecorator('personName')(
|
|
340
|
+ <Input placeholder="认筹人姓名"/>,
|
338
|
341
|
)}
|
339
|
342
|
</Form.Item>
|
340
|
343
|
<Form.Item>
|
|
@@ -399,12 +402,12 @@ function PreselectionRecord(props) {
|
399
|
402
|
</Form.Item> */}
|
400
|
403
|
<Form.Item>
|
401
|
404
|
{getFieldDecorator('startTime')(
|
402
|
|
- <DatePicker placeholder="认筹开始时间"/>,
|
|
405
|
+ <DatePicker showTime={{ format: 'HH:mm:ss' }} placeholder="认筹提交时间从"/>,
|
403
|
406
|
)}
|
404
|
407
|
</Form.Item>
|
405
|
408
|
<Form.Item>
|
406
|
409
|
{getFieldDecorator('endTime')(
|
407
|
|
- <DatePicker placeholder="认筹结束时间"/>,
|
|
410
|
+ <DatePicker showTime={{ format: 'HH:mm:ss' }} placeholder="认筹提交时间到"/>,
|
408
|
411
|
)}
|
409
|
412
|
</Form.Item>
|
410
|
413
|
<Form.Item>
|
|
@@ -427,8 +430,7 @@ function PreselectionRecord(props) {
|
427
|
430
|
<BatchPay visible={pay.visable} houseIds={pay.houseIds} onCancel={() => showPay(false)} onSuccess={() => showPay(false)} />
|
428
|
431
|
<BatchRefund visible={refund.visable} houseIds={refund.houseIds} onCancel={() => setRefund(false)} onSuccess={() => showRefund(false)}/>
|
429
|
432
|
<Refund visible={singleRefund.visable} raiseRecordId={singleRefund.raiseRecordId} onCancel={() => raiseRefund({visable:false, raiseRecordId:''})} onSuccess={() => raiseRefund({visable:false, raiseRecordId:''})}></Refund>
|
430
|
|
- <br/>
|
431
|
|
- <span>共筛选出{data.total}条数据</span>
|
|
433
|
+ <div style={{marginTop:'20px', marginBottom:'20px'}}><span>共筛选出{data.total}条数据</span></div>
|
432
|
434
|
<Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
|
433
|
435
|
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
434
|
436
|
<Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>
|