|
|
@ -68,17 +68,14 @@ function arrearsTask(props) { |
|
|
|
let result = [...deployListColumns]; |
|
|
|
return result; |
|
|
|
} |
|
|
|
//欠费详情列表 |
|
|
|
const handleDetailColumns = (tab) => { |
|
|
|
let result = [...deployDetailColumns]; |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//重置数据 |
|
|
|
const getResetData = () => { |
|
|
|
setFormData({ |
|
|
|
...parameter |
|
|
|
}) |
|
|
|
getData({...parameter,pn: 1} ) |
|
|
|
getData({ ...parameter, pn: 1 }) |
|
|
|
} |
|
|
|
//列表 |
|
|
|
const deployListColumns = [ |
|
|
@ -158,6 +155,16 @@ function arrearsTask(props) { |
|
|
|
</div> |
|
|
|
}, |
|
|
|
}] |
|
|
|
|
|
|
|
const handleDetailColumns = () => { |
|
|
|
let result = [...deployDetailColumns]; |
|
|
|
return result; |
|
|
|
} |
|
|
|
const handleColumns2 = () => { |
|
|
|
|
|
|
|
let result = [...columns2]; |
|
|
|
return result; |
|
|
|
} |
|
|
|
const [getDetailList, setGetDetailList] = useState({}) |
|
|
|
const [getDetail, setGetDetail] = useState([]) |
|
|
|
const [getDetailData, seteGetDetailData] = useState({ |
|
|
@ -202,10 +209,13 @@ function arrearsTask(props) { |
|
|
|
}) |
|
|
|
} |
|
|
|
const [getStatus, setGetStatus] = useState(0) |
|
|
|
const [getRecordList, setGetRecordList] = useState({}) |
|
|
|
console.log(getRecordList); |
|
|
|
//查看详情 |
|
|
|
const checkDetail = (record) => { |
|
|
|
console.log(record); |
|
|
|
amountDetail(record) |
|
|
|
setGetRecordList(record) |
|
|
|
if (record.audit_status == 0) { |
|
|
|
setGetStatus(1) |
|
|
|
setDetailVisible(true) |
|
|
@ -270,9 +280,72 @@ function arrearsTask(props) { |
|
|
|
title: '欠费金额', |
|
|
|
dataIndex: 'arrears_mount', |
|
|
|
key: 'arrears_mount', |
|
|
|
}] |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '缴费时间', |
|
|
|
dataIndex: 'pay_time', |
|
|
|
key: 'pay_time', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '追缴金额', |
|
|
|
dataIndex: 'recovery_mount', |
|
|
|
key: 'recovery_mount', |
|
|
|
} |
|
|
|
] |
|
|
|
|
|
|
|
//审核查看 |
|
|
|
const columns2 = [ |
|
|
|
{ |
|
|
|
title: "序号", |
|
|
|
render: (text, record, index) => index + 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '订单ID', |
|
|
|
dataIndex: 'park_id', |
|
|
|
render: (text, record, index) => ( |
|
|
|
<div style={{ width: "150px", wordBreak: "break-all" }}>{record.park_id}</div> |
|
|
|
) |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '车牌号', |
|
|
|
render: (text, record, index) => ( |
|
|
|
<div style={{ width: "100px", wordBreak: "break-all" }}>{record.plate}</div> |
|
|
|
) |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '欠费路段', |
|
|
|
render: (text, record, index) => ( |
|
|
|
<div style={{ width: "100px", wordBreak: "break-all" }}>{record.road_name}</div> |
|
|
|
) |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '入场时间', |
|
|
|
dataIndex: 'in_time', |
|
|
|
render: (text, record, index) => ( |
|
|
|
<div style={{ width: "200px", wordBreak: "break-all" }}>{record.in_time}</div> |
|
|
|
) |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
title: '出场时间', |
|
|
|
dataIndex: 'out_time', |
|
|
|
render: (text, record, index) => ( |
|
|
|
<div style={{ width: "200px", wordBreak: "break-all" }}>{record.out_time}</div> |
|
|
|
) |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '停车时长', |
|
|
|
dataIndex: 'parking_duration', |
|
|
|
render: (text, record, index) => ( |
|
|
|
<div style={{ width: "150px", wordBreak: "break-all" }}>{record.parking_duration}</div> |
|
|
|
) |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '欠费金额', |
|
|
|
dataIndex: 'arrears_mount', |
|
|
|
key: 'arrears_mount', |
|
|
|
} |
|
|
|
] |
|
|
|
// 获取列表数据 |
|
|
|
const getData = (data = formData) => { |
|
|
|
setAjaxLoading(true) |
|
|
@ -316,7 +389,7 @@ function arrearsTask(props) { |
|
|
|
let data = { |
|
|
|
id: getRecord, |
|
|
|
audit_status: type, |
|
|
|
remark:[] |
|
|
|
remark: [] |
|
|
|
} |
|
|
|
ajax.getDeployTask(data).then(res => { |
|
|
|
if (res.status === 20000) { |
|
|
@ -564,13 +637,13 @@ function arrearsTask(props) { |
|
|
|
</div> |
|
|
|
<div className="timePicker "> |
|
|
|
<div className="btnBox"> |
|
|
|
<Button type="primary" className="yisa-btn colorReset" onClick={() => { getResetData() }}> |
|
|
|
<Button type="primary" className="yisa-btn colorReset" onClick={() => { getResetData() }}> |
|
|
|
重置 |
|
|
|
</Button> |
|
|
|
<Button type="primary" className="yisa-btn colorBtn" onClick={() => { getSearchData() }}> |
|
|
|
查询 |
|
|
|
查询 |
|
|
|
</Button> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="timePicker "> |
|
|
@ -618,15 +691,29 @@ function arrearsTask(props) { |
|
|
|
title='审核详情' |
|
|
|
> |
|
|
|
<ResultFlowResult ajaxLoad={ajaxLoading} resultData={getDetail.data ? getDetail.data : []}> |
|
|
|
<Table |
|
|
|
bordered |
|
|
|
dataSource={getDetail.data} |
|
|
|
columns={ |
|
|
|
handleDetailColumns() |
|
|
|
} |
|
|
|
pagination={false} |
|
|
|
loading={ajaxLoading} |
|
|
|
/> |
|
|
|
|
|
|
|
{ |
|
|
|
getRecordList.audit_status === 1 ? |
|
|
|
<Table |
|
|
|
bordered |
|
|
|
dataSource={getDetail.data} |
|
|
|
columns={ |
|
|
|
handleDetailColumns() |
|
|
|
} |
|
|
|
pagination={false} |
|
|
|
loading={ajaxLoading} |
|
|
|
/> : |
|
|
|
<Table |
|
|
|
bordered |
|
|
|
dataSource={getDetail.data} |
|
|
|
columns={ |
|
|
|
handleColumns2() |
|
|
|
} |
|
|
|
pagination={false} |
|
|
|
loading={ajaxLoading} |
|
|
|
/> |
|
|
|
} |
|
|
|
|
|
|
|
<Pagination |
|
|
|
className="pagination-common" |
|
|
|
showTotal={() => `共 ${getDetail.total_records} 条`} |
|
|
@ -671,15 +758,28 @@ function arrearsTask(props) { |
|
|
|
title='欠费详情' |
|
|
|
> |
|
|
|
<ResultFlowResult ajaxLoad={ajaxLoading} resultData={getDetail.data ? getDetail.data : []}> |
|
|
|
<Table |
|
|
|
bordered |
|
|
|
dataSource={getDetail.data} |
|
|
|
columns={ |
|
|
|
handleDetailColumns() |
|
|
|
} |
|
|
|
pagination={false} |
|
|
|
loading={ajaxLoading} |
|
|
|
/> |
|
|
|
{ |
|
|
|
getRecordList.audit_status === 1 ? |
|
|
|
<Table |
|
|
|
bordered |
|
|
|
dataSource={getDetail.data} |
|
|
|
columns={ |
|
|
|
handleDetailColumns() |
|
|
|
} |
|
|
|
pagination={false} |
|
|
|
loading={ajaxLoading} |
|
|
|
/> : |
|
|
|
<Table |
|
|
|
bordered |
|
|
|
dataSource={getDetail.data} |
|
|
|
columns={ |
|
|
|
handleColumns2() |
|
|
|
} |
|
|
|
pagination={false} |
|
|
|
loading={ajaxLoading} |
|
|
|
/> |
|
|
|
} |
|
|
|
|
|
|
|
<Pagination |
|
|
|
className="pagination-common" |
|
|
|
showTotal={() => `共 ${getDetail.total_records} 条`} |
|
|
|