diff --git a/src/assets/css/base.scss b/src/assets/css/base.scss index fd5707c..784805c 100644 --- a/src/assets/css/base.scss +++ b/src/assets/css/base.scss @@ -26,7 +26,10 @@ body { & { overflow: -moz-scrollbars-none; } } - +.redLogo{ + color: red; + margin-right: 10px; +} .full-loading { height: 100%; width: 100%; @@ -54,7 +57,7 @@ a { background-color: #3e4557 !important; } .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content { - max-height: 715px; + max-height: 680px; overflow: auto; } .ant-table-content::-webkit-scrollbar { @@ -734,3 +737,6 @@ color:var(--color-text) !important; // .ant-checkbox{ // background-color: #454c5e; // } +.ant-table-tbody>tr.ant-table-placeholder:hover>td { + background: #3e4557 !important; +} diff --git a/src/components/ParkingRecordModal/RecordReviewModal.jsx b/src/components/ParkingRecordModal/RecordReviewModal.jsx new file mode 100644 index 0000000..f658f29 --- /dev/null +++ b/src/components/ParkingRecordModal/RecordReviewModal.jsx @@ -0,0 +1,195 @@ +import React, { useState, useRef, useEffect } from "react"; +import { Modal, Tabs, Table, message, Button, Input, Select } from "antd"; +import { RightOutlined, DownOutlined } from "@ant-design/icons"; +import { dictionary, utils } from "@/config/common"; +import VehicleInformation from "./VehicleInformation"; +import { payRecordColumns, refundRecordColumns, operatorRecordColumns } from "./dataSource"; +import moment from "moment"; +import ajax from "@/services"; +import "./index.scss"; +const { TextArea } = Input; +const RecordReviewModal = (props) => { + const { + className = "", + title = null, // 头部 + open = false, + data = [], + disabledModal = false, // 查看或提交 + onCancel, + } = props; + + // 表头 + const columns = [ + { + title: "停车订单ID", + dataIndex: "park_id", + key: "park_id", + width: 200, + align: "center", + fixed: 'left', + render: (text) => ( + <> + { + navigator.clipboard.writeText(`${text}`).then(() => { message.success("已复制到剪切板") }); + }}>{text} + + ), + }, + { + title: "车牌号", + dataIndex: "plateNumber", + key: "plateNumber", + align: "center", + }, + { + title: "停车场名称", + dataIndex: "parkName", + key: "parkName", + align: "center", + }, + { + title: "入场时间", + dataIndex: "strEntryTime", + key: "strEntryTime", + align: "center", + }, + { + title: "出场时间", + dataIndex: "strExitTime", + key: "strExitTime", + align: "center", + }, + ]; + const [modalVisible, setModalVisible] = useState(false); // 模态框显示隐藏 + const [resultData, setResultData] = useState([]); // 数据 + const [expandedRowKeys, setExpandedRowKeys] = useState([0]); // 默认展开的列表数据 + + // 关闭模态框 + const $onCancelModal = () => { + if (onCancel) onCancel(false); + setResultData([]); + setExpandedRowKeys([0]); + } + useEffect(() => { + setModalVisible(open) + }, [open]); + + useEffect(() => { + if (data?.length) { + let _data = []; + data.map((item, index) => { + let value = { + ...item, + key: index, + road: item?.parkName || "", + region: item?.areaName || "", + operator: item?.operationName || "", + berth_id: item?.berthCode, + road_type: item?.parkTypeName || "", + } + _data.push({ + ...value, + description: + }) + }); + setResultData(_data); + }; + }, [data]) + return ( + +
停车订单详情
+ <>{record.description}, + expandedRowKeys, + expandIcon: ({ expanded, onExpand, record }) => + expanded ? ( + { onExpand(record, e); setExpandedRowKeys([]) }} /> + ) : ( + { onExpand(record, e); setExpandedRowKeys([record?.key]) }} /> + ) + }} + /> + {disabledModal ? +
+
流程查看 查看全部
+
+
+ 1 + 发起处理 + 哈哈哈 2023-10-26 18:08:48 +
+
已完成
+
+ 2 + 发起处理 + 哈哈哈 2023-10-26 18:08:48 +
+
+
+ : null + } +
+
异常订单处理
+ *处理理由 +