16 changed files with 316 additions and 52 deletions
-
12src/assets/css/base.scss
-
34src/config/ajax.js
-
12src/pages/InRoadMgm/EquipmentOpe/faultReport/loadable.jsx
-
6src/pages/InRoadMgm/RecordInquiry/ArrearsEtcInquiries/index.jsx
-
5src/pages/InRoadMgm/RecordInquiry/ArrearsEtcInquiries/index.scss
-
181src/pages/InRoadMgm/RecordInquiry/ArrearsEtcInquiries/loadable.jsx
-
2src/pages/InRoadMgm/RecordInquiry/index.jsx
-
45src/pages/Nav/index.jsx
-
37src/pages/Nav/index.scss
-
4src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx
-
2src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx
-
1src/router/index.jsx
-
6src/router/router.config.js
-
2src/services/OperationCenter/OperationSales/index.js
-
1src/services/OutRoadMgm/OutSegment.js
-
18src/services/recordInquiry.js
@ -0,0 +1,6 @@ |
|||||
|
import React from "react" |
||||
|
import loadable from "@loadable/component" |
||||
|
import { LoadingImg } from "@/components" |
||||
|
|
||||
|
const ArrearsEtcInquiriesLoadable = loadable(() => import("./loadable")) |
||||
|
export default (pros) => <ArrearsEtcInquiriesLoadable {...pros} fallback={<LoadingImg />} /> |
@ -0,0 +1,5 @@ |
|||||
|
@import "@/assets/css/mixin.scss"; |
||||
|
$color-container-bg : var(--color-container-bg); |
||||
|
$color-user-list-bg : var(--color-user-list-bg); |
||||
|
$color-text : var(--color-text); |
||||
|
$color-primary : var(--color-primary); |
@ -0,0 +1,181 @@ |
|||||
|
import React, { useState, useRef, useEffect } from "react"; |
||||
|
import { message, Pagination, Table, Space, Modal, Button } from "antd"; |
||||
|
import { dictionary, utils } from "@/config/common"; |
||||
|
import moment from "moment"; |
||||
|
// import { useSessionStorageState, useUpdateEffect, useSize, useUpdate } from 'ahooks'; |
||||
|
import ajax from "@/services"; |
||||
|
import { TableModule } from "@/components"; |
||||
|
// import "./index.scss"; |
||||
|
// import errorImg from "@/assets/images/layout/error.png" |
||||
|
// import { useLocation } from "react-router-dom"; |
||||
|
|
||||
|
let array = []; |
||||
|
|
||||
|
function ArrearsEtcInquiries() { |
||||
|
const columns = [ |
||||
|
{ |
||||
|
title: "序号", |
||||
|
dataIndex: "index", |
||||
|
key: "index", |
||||
|
align: "center", |
||||
|
render: (_, record, index) => { |
||||
|
return index + 1; |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
title: "车牌号", |
||||
|
dataIndex: "licensePlateNumber", |
||||
|
align: "center", |
||||
|
render: (text, record, index) => ( |
||||
|
<div style={{ width: "100px", wordBreak: "break-all" }}>{record.licensePlateNumber}</div> |
||||
|
) |
||||
|
}, |
||||
|
{ |
||||
|
title: "商户名称", |
||||
|
dataIndex: "merchantName", |
||||
|
align: "center", |
||||
|
render: (text, record, index) => ( |
||||
|
<div style={{ width: "100px", wordBreak: "break-all" }}>{record.merchantName}</div> |
||||
|
) |
||||
|
}, |
||||
|
{ |
||||
|
title: "欠费路段", |
||||
|
dataIndex: "arrearsSection", |
||||
|
align: "center", |
||||
|
render: (text, record, index) => ( |
||||
|
<div style={{ width: "100px", wordBreak: "break-all" }}>{record.arrearsSection}</div> |
||||
|
) |
||||
|
}, |
||||
|
{ |
||||
|
title: "入场时间", |
||||
|
dataIndex: "entryTime", |
||||
|
align: "center", |
||||
|
render: (text, record, index) => ( |
||||
|
<div style={{ width: "130px", wordBreak: "break-all" }}>{record.entryTime}</div> |
||||
|
) |
||||
|
}, |
||||
|
{ |
||||
|
title: "出场时间", |
||||
|
dataIndex: "exitTime", |
||||
|
align: "center", |
||||
|
render: (text, record, index) => ( |
||||
|
<div style={{ width: "130px", wordBreak: "break-all" }}>{record.exitTime}</div> |
||||
|
) |
||||
|
}, |
||||
|
{ |
||||
|
title: "停车时长", |
||||
|
dataIndex: "parkingDuration", |
||||
|
key: "parkingDuration", |
||||
|
align: "center", |
||||
|
}, |
||||
|
{ |
||||
|
title: "实收金额", |
||||
|
dataIndex: "actualPayment", |
||||
|
key: "actualPayment", |
||||
|
align: "center", |
||||
|
}, |
||||
|
{ |
||||
|
title: "支付渠道", |
||||
|
dataIndex: "paymentChannel", |
||||
|
key: "paymentChannel", |
||||
|
align: "center", |
||||
|
}, |
||||
|
// { |
||||
|
// title: "收费员", |
||||
|
// dataIndex: "tollCollector", |
||||
|
// key: "tollCollector", |
||||
|
// align: "center", |
||||
|
// }, |
||||
|
// { |
||||
|
// title: "收费路段", |
||||
|
// dataIndex: "tollSection", |
||||
|
// key: "tollSection", |
||||
|
// align: "center", |
||||
|
// }, |
||||
|
{ |
||||
|
title: "缴费时间", |
||||
|
dataIndex: "paymentTime", |
||||
|
key: "paymentTime", |
||||
|
align: "center", |
||||
|
}, |
||||
|
]; |
||||
|
const formSearch = [ |
||||
|
{ |
||||
|
name: "operator", |
||||
|
type: "Select", |
||||
|
label: "商户名称", |
||||
|
placeholder: "请输入商户名称", |
||||
|
}, |
||||
|
{ |
||||
|
name: "road", |
||||
|
type: "Input", |
||||
|
label: "欠费路段", |
||||
|
placeholder: "请输入欠费路段", |
||||
|
}, |
||||
|
// { |
||||
|
// name: "out_person", |
||||
|
// type: "Input", |
||||
|
// label: "收费员", |
||||
|
// placeholder: "请输入收费员", |
||||
|
// }, |
||||
|
// { |
||||
|
// name: "tollSection", |
||||
|
// type: "Input", |
||||
|
// label: "收费路段", |
||||
|
// placeholder: "请输入收费路段", |
||||
|
// }, |
||||
|
{ |
||||
|
name: "plate", |
||||
|
type: "Input", |
||||
|
label: "车牌号", |
||||
|
placeholder: "请输入车牌号", |
||||
|
}, |
||||
|
{ |
||||
|
name: "paymentTimePeriod", |
||||
|
type: "RangePicker", |
||||
|
label: "缴费时间段", |
||||
|
}, |
||||
|
]; |
||||
|
//搜索参数初始化 |
||||
|
const initFormData = { |
||||
|
operator: "0", |
||||
|
road: "", |
||||
|
out_person: "", |
||||
|
tollSection: "", |
||||
|
plate: "", |
||||
|
}; |
||||
|
//搜索的结果 |
||||
|
const [tableData, setTableData] = useState([]); |
||||
|
//搜索的总结果数 |
||||
|
const [total, setTotal] = useState(0); |
||||
|
//搜索方法 |
||||
|
const fetch = (params) => { |
||||
|
utils.tableScrollTop("parent-table-scroll"); |
||||
|
ajax.getArrearsListEtc(params).then((res) => { |
||||
|
if (res.status === 20000) { |
||||
|
setTableData(res.data.list); |
||||
|
setTotal(res.data.total); |
||||
|
} |
||||
|
}); |
||||
|
}; |
||||
|
return ( |
||||
|
<TableModule |
||||
|
columns={columns} |
||||
|
tableData={tableData} |
||||
|
formSearch={formSearch} |
||||
|
total={total} |
||||
|
search={fetch} |
||||
|
initFormData={initFormData} |
||||
|
mandatory={['plate','berth_id']} |
||||
|
mandatory_name={['车牌号或泊位号']} |
||||
|
pagename="欠费追缴查询" |
||||
|
pageName={'arrearsInquiries'} |
||||
|
otherData={{ |
||||
|
payment_time: 1, |
||||
|
}} |
||||
|
exportUrl="/api/bpm/record/get_arrears_export" |
||||
|
/> |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
export default ArrearsEtcInquiries; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue