|
@ -1,11 +1,21 @@ |
|
|
import React, { useState, useEffect } from "react"; |
|
|
import React, { useState, useEffect } from "react"; |
|
|
import { ResultFlowResult } from "@/components"; |
|
|
import { ResultFlowResult } from "@/components"; |
|
|
import { Select, Input, Button, Table, message, Pagination, DatePicker, Modal, Tooltip } from "antd"; |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
Select, |
|
|
|
|
|
Input, |
|
|
|
|
|
Button, |
|
|
|
|
|
Table, |
|
|
|
|
|
message, |
|
|
|
|
|
Pagination, |
|
|
|
|
|
DatePicker, |
|
|
|
|
|
Modal, |
|
|
|
|
|
Tooltip, |
|
|
|
|
|
} from "antd"; |
|
|
import { useSessionStorageState } from "ahooks"; |
|
|
import { useSessionStorageState } from "ahooks"; |
|
|
import { useNavigate } from "react-router-dom"; |
|
|
import { useNavigate } from "react-router-dom"; |
|
|
import { setTabList } from "@/store/common.js"; |
|
|
import { setTabList } from "@/store/common.js"; |
|
|
import { useSelector, useDispatch } from "react-redux"; |
|
|
import { useSelector, useDispatch } from "react-redux"; |
|
|
import { QuestionCircleFilled } from "@ant-design/icons" |
|
|
|
|
|
|
|
|
import { QuestionCircleFilled } from "@ant-design/icons"; |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
|
import "./index.scss"; |
|
|
import "./index.scss"; |
|
|
import ajax from "@/services"; |
|
|
import ajax from "@/services"; |
|
@ -22,15 +32,21 @@ function EditOrderInquiry(props) { |
|
|
{ defaultValue: null } |
|
|
{ defaultValue: null } |
|
|
); |
|
|
); |
|
|
const [detailVisible, setDetailVisible] = useState(false); |
|
|
const [detailVisible, setDetailVisible] = useState(false); |
|
|
const [bigpicVisible, setBigpicVisible] = useState(false);//大图展示 |
|
|
|
|
|
|
|
|
const [bigpicVisible, setBigpicVisible] = useState(false); //大图展示 |
|
|
const [bigPic, setBigPic] = useState(); |
|
|
const [bigPic, setBigPic] = useState(); |
|
|
const [ycddData, setYcddData] = useState([])//详情数据 |
|
|
|
|
|
const [detailTable, setDetailTable] = useState([]) |
|
|
|
|
|
|
|
|
const [ycddData, setYcddData] = useState([]); //详情数据 |
|
|
|
|
|
const [detailTable, setDetailTable] = useState([]); |
|
|
// 默认数据 |
|
|
// 默认数据 |
|
|
const defaultData = { |
|
|
const defaultData = { |
|
|
start_time: moment().subtract(7, "days").startOf("day").format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
|
|
|
start_time: moment() |
|
|
|
|
|
.subtract(7, "days") |
|
|
|
|
|
.startOf("day") |
|
|
|
|
|
.format("YYYY-MM-DD HH:mm:ss"), |
|
|
end_time: moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"), |
|
|
end_time: moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"), |
|
|
deal_time_start: moment().subtract(7, "days").startOf("day").format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
|
|
|
deal_time_start: moment() |
|
|
|
|
|
.subtract(7, "days") |
|
|
|
|
|
.startOf("day") |
|
|
|
|
|
.format("YYYY-MM-DD HH:mm:ss"), |
|
|
deal_time_end: moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"), |
|
|
deal_time_end: moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"), |
|
|
//app_name: "", // 应用名称 |
|
|
//app_name: "", // 应用名称 |
|
|
//app_type: 0, //应用类型 |
|
|
//app_type: 0, //应用类型 |
|
@ -59,27 +75,30 @@ function EditOrderInquiry(props) { |
|
|
const [total, setTotal] = useState(false); |
|
|
const [total, setTotal] = useState(false); |
|
|
const [detailTableData, setDetailTableData] = useState([]); |
|
|
const [detailTableData, setDetailTableData] = useState([]); |
|
|
const [searchSelectList, setSearchSelectList] = useState([]); //搜索下拉数据 |
|
|
const [searchSelectList, setSearchSelectList] = useState([]); //搜索下拉数据 |
|
|
const [sessionTabList, setSessionTabList] = useSessionStorageState('editOrderInquiry', { |
|
|
|
|
|
value: { |
|
|
|
|
|
|
|
|
const [sessionTabList, setSessionTabList] = useSessionStorageState( |
|
|
|
|
|
"editOrderInquiry", |
|
|
|
|
|
{ |
|
|
|
|
|
value: {}, |
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
|
|
|
); |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
if (sessionTabList && Object.values(sessionTabList).length > 0) { |
|
|
if (sessionTabList && Object.values(sessionTabList).length > 0) { |
|
|
setFormData({ |
|
|
setFormData({ |
|
|
...formData, ...sessionTabList |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
...formData, |
|
|
|
|
|
...sessionTabList, |
|
|
|
|
|
}); |
|
|
getData({ |
|
|
getData({ |
|
|
...sessionTabList |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
...sessionTabList, |
|
|
|
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
getData() |
|
|
|
|
|
|
|
|
getData(); |
|
|
} |
|
|
} |
|
|
}, [isAjax]) |
|
|
|
|
|
|
|
|
}, [isAjax]); |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
setSessionTabList({ |
|
|
setSessionTabList({ |
|
|
...formData |
|
|
|
|
|
}) |
|
|
|
|
|
}, [formData]) |
|
|
|
|
|
|
|
|
...formData, |
|
|
|
|
|
}); |
|
|
|
|
|
}, [formData]); |
|
|
// useEffect(() => { |
|
|
// useEffect(() => { |
|
|
// getSelectList(); |
|
|
// getSelectList(); |
|
|
// }, []); |
|
|
// }, []); |
|
@ -111,12 +130,12 @@ function EditOrderInquiry(props) { |
|
|
} |
|
|
} |
|
|
setDefaultParams({ ...postData, ...pageInfo }); |
|
|
setDefaultParams({ ...postData, ...pageInfo }); |
|
|
setTabLoading(true); |
|
|
setTabLoading(true); |
|
|
console.log(115, pageInfo, { ...postData, ...v, ...pageInfo }) |
|
|
|
|
|
|
|
|
console.log(115, pageInfo, { ...postData, ...v, ...pageInfo }); |
|
|
ajax.getOrderChangeList({ ...postData, ...v, ...pageInfo }).then( |
|
|
ajax.getOrderChangeList({ ...postData, ...v, ...pageInfo }).then( |
|
|
(res) => { |
|
|
(res) => { |
|
|
if (parseInt(res?.status) === 20000) { |
|
|
if (parseInt(res?.status) === 20000) { |
|
|
setResultData(res?.data.list || []); |
|
|
setResultData(res?.data.list || []); |
|
|
setTotal(res.data.total) |
|
|
|
|
|
|
|
|
setTotal(res.data.total); |
|
|
} else { |
|
|
} else { |
|
|
message.error(res?.message); |
|
|
message.error(res?.message); |
|
|
} |
|
|
} |
|
@ -136,7 +155,7 @@ function EditOrderInquiry(props) { |
|
|
(res) => { |
|
|
(res) => { |
|
|
if (parseInt(res?.status) === 20000) { |
|
|
if (parseInt(res?.status) === 20000) { |
|
|
setYcddData(res?.data || []); |
|
|
setYcddData(res?.data || []); |
|
|
setDetailTable(res?.data?.order_update_detail) |
|
|
|
|
|
|
|
|
setDetailTable(res?.data?.order_update_detail); |
|
|
} else { |
|
|
} else { |
|
|
message.error(res?.message); |
|
|
message.error(res?.message); |
|
|
} |
|
|
} |
|
@ -201,11 +220,17 @@ function EditOrderInquiry(props) { |
|
|
width: 160, |
|
|
width: 160, |
|
|
render: (text) => ( |
|
|
render: (text) => ( |
|
|
<> |
|
|
<> |
|
|
<a onClick={() => { |
|
|
|
|
|
navigator.clipboard.writeText(`${text}`).then(() => { message.success("已复制到剪切板") }); |
|
|
|
|
|
}}>{text}</a> |
|
|
|
|
|
|
|
|
<a |
|
|
|
|
|
onClick={() => { |
|
|
|
|
|
navigator.clipboard.writeText(`${text}`).then(() => { |
|
|
|
|
|
message.success("已复制到剪切板"); |
|
|
|
|
|
}); |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
{text} |
|
|
|
|
|
</a> |
|
|
</> |
|
|
</> |
|
|
) |
|
|
|
|
|
|
|
|
), |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: "业务订单类型", |
|
|
title: "业务订单类型", |
|
@ -220,11 +245,17 @@ function EditOrderInquiry(props) { |
|
|
width: 160, |
|
|
width: 160, |
|
|
render: (text) => ( |
|
|
render: (text) => ( |
|
|
<> |
|
|
<> |
|
|
<a onClick={() => { |
|
|
|
|
|
navigator.clipboard.writeText(`${text}`).then(() => { message.success("已复制到剪切板") }); |
|
|
|
|
|
}}>{text}</a> |
|
|
|
|
|
|
|
|
<a |
|
|
|
|
|
onClick={() => { |
|
|
|
|
|
navigator.clipboard.writeText(`${text}`).then(() => { |
|
|
|
|
|
message.success("已复制到剪切板"); |
|
|
|
|
|
}); |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
{text} |
|
|
|
|
|
</a> |
|
|
</> |
|
|
</> |
|
|
) |
|
|
|
|
|
|
|
|
), |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: "订单金额(元)", |
|
|
title: "订单金额(元)", |
|
@ -271,13 +302,18 @@ function EditOrderInquiry(props) { |
|
|
title: "操作", |
|
|
title: "操作", |
|
|
align: "center", |
|
|
align: "center", |
|
|
width: 140, |
|
|
width: 140, |
|
|
fixed: 'right', |
|
|
|
|
|
|
|
|
fixed: "right", |
|
|
render: (val, row, index) => { |
|
|
render: (val, row, index) => { |
|
|
return ( |
|
|
return ( |
|
|
<span style={{ |
|
|
|
|
|
color: "#177ddc", |
|
|
|
|
|
cursor: "pointer" |
|
|
|
|
|
}} onClick={() => { handleView(row); }}> |
|
|
|
|
|
|
|
|
<span |
|
|
|
|
|
style={{ |
|
|
|
|
|
color: "#177ddc", |
|
|
|
|
|
cursor: "pointer", |
|
|
|
|
|
}} |
|
|
|
|
|
onClick={() => { |
|
|
|
|
|
handleView(row); |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
查看 |
|
|
查看 |
|
|
</span> |
|
|
</span> |
|
|
); |
|
|
); |
|
@ -312,11 +348,17 @@ function EditOrderInquiry(props) { |
|
|
align: "center", |
|
|
align: "center", |
|
|
render: (text) => ( |
|
|
render: (text) => ( |
|
|
<> |
|
|
<> |
|
|
<a onClick={() => { |
|
|
|
|
|
navigator.clipboard.writeText(`${text}`).then(() => { message.success("已复制到剪切板") }); |
|
|
|
|
|
}}>{text}</a> |
|
|
|
|
|
|
|
|
<a |
|
|
|
|
|
onClick={() => { |
|
|
|
|
|
navigator.clipboard.writeText(`${text}`).then(() => { |
|
|
|
|
|
message.success("已复制到剪切板"); |
|
|
|
|
|
}); |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
{text} |
|
|
|
|
|
</a> |
|
|
</> |
|
|
</> |
|
|
) |
|
|
|
|
|
|
|
|
), |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: "抵扣修改金额", |
|
|
title: "抵扣修改金额", |
|
@ -346,102 +388,194 @@ function EditOrderInquiry(props) { |
|
|
]; |
|
|
]; |
|
|
// 查看 |
|
|
// 查看 |
|
|
const handleView = (row) => { |
|
|
const handleView = (row) => { |
|
|
getDetailData({ deal_record_id: row.deal_record_id, park_record_id: row.park_record_id }) |
|
|
|
|
|
setDetailVisible(true) |
|
|
|
|
|
|
|
|
getDetailData({ |
|
|
|
|
|
deal_record_id: row.deal_record_id, |
|
|
|
|
|
park_record_id: row.park_record_id, |
|
|
|
|
|
}); |
|
|
|
|
|
setDetailVisible(true); |
|
|
}; |
|
|
}; |
|
|
//订单详情 |
|
|
//订单详情 |
|
|
const tkddModal = <div className="ltc-box"> |
|
|
|
|
|
<div className="ltc-box-title"><div className="text">停车订单:{ycddData.park_record_id}</div><div className="line"></div></div> |
|
|
|
|
|
<div className="ltc-box-title"><div className="text">车厂详情</div></div> |
|
|
|
|
|
<div className="ltc-content"> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">停车场名称</div><div className="new-value">{ycddData?.order_info?.parking_detail.road_name || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">区域</div><div className="new-value">{ycddData?.order_info?.parking_detail.region_name || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">商户名称</div><div className="new-value">{ycddData?.order_info?.parking_detail.operator_name || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">泊位号</div><div className="new-value">{ycddData?.order_info?.parking_detail.berth_id || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">车场类型</div><div className="new-value">{ycddData?.order_info?.parking_detail.parking_model_type_name || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className="ltc-box-title"><div className="text">车辆详情</div></div> |
|
|
|
|
|
<div className="ltc-content"> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">车牌号</div><div className="new-value">{ycddData?.order_info?.vehicle_detail.plate || "--"}</div> |
|
|
|
|
|
|
|
|
const tkddModal = ( |
|
|
|
|
|
<div className="ltc-box"> |
|
|
|
|
|
<div className="ltc-box-title"> |
|
|
|
|
|
<div className="text">停车订单:{ycddData.park_record_id}</div> |
|
|
|
|
|
<div className="line"></div> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">停车时长</div><div className="new-value">{ycddData?.order_info?.vehicle_detail.parking_duration || "--"}</div> |
|
|
|
|
|
|
|
|
<div className="ltc-box-title"> |
|
|
|
|
|
<div className="text">车厂详情</div> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">入场时间</div><div className="new-value">{ycddData?.order_info?.vehicle_detail.in_time || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">出场时间</div><div className="new-value">{ycddData?.order_info?.vehicle_detail.out_time || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">入场记录来源</div><div className="new-value">{ycddData?.order_info?.vehicle_detail.in_source_name || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">出场记录来源</div><div className="new-value">{ycddData?.order_info?.vehicle_detail.out_source_name || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">证据图像</div><div className="new-value"><a onClick={() => { setBigpicVisible(true) }}>查看</a></div> |
|
|
|
|
|
|
|
|
<div className="ltc-content"> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">停车场名称</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.parking_detail.road_name || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">区域</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.parking_detail.region_name || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">商户名称</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.parking_detail.operator_name || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">泊位号</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.parking_detail.berth_id || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">车场类型</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.parking_detail.parking_model_type_name || |
|
|
|
|
|
"--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div className="ltc-box-title"><div className="text">订单详情:{ycddData?.refund_id}</div></div> |
|
|
|
|
|
<div className="ltc-content"> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">应收金额</div><div className="new-value">{ycddData?.order_info?.order_detail.receivable_amount || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">优惠总计</div><div className="new-value">{ycddData?.order_info?.order_detail.preferential_amount || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">实付总计</div><div className="new-value">{ycddData?.order_info?.order_detail.actual_amount || "--"}</div> |
|
|
|
|
|
|
|
|
<div className="ltc-box-title"> |
|
|
|
|
|
<div className="text">车辆详情</div> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">欠费总计</div><div className="new-value">{ycddData?.order_info?.order_detail.arrears_mount || "--"}</div> |
|
|
|
|
|
|
|
|
<div className="ltc-content"> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">车牌号</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.vehicle_detail.plate || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">停车时长</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.vehicle_detail.parking_duration || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">入场时间</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.vehicle_detail.in_time || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">出场时间</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.vehicle_detail.out_time || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">入场记录来源</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.vehicle_detail.in_source_name || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">出场记录来源</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.vehicle_detail.out_source_name || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">证据图像</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
<a |
|
|
|
|
|
onClick={() => { |
|
|
|
|
|
setBigpicVisible(true); |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
查看 |
|
|
|
|
|
</a> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-box-title"><div className="text">修改信息:{ycddData?.refund_id}</div><div className="line"></div></div> |
|
|
|
|
|
<div className="ltc-content"> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">修改原因</div><div className="new-value">{ycddData?.update_info?.update_reason || "--"}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">欠费金额修改</div><div className="new-value">{ycddData?.update_info?.receivable_amount || "--"}</div> |
|
|
|
|
|
|
|
|
<div className="ltc-box-title"> |
|
|
|
|
|
<div className="text">订单详情:{ycddData?.refund_id}</div> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">修改金额</div><div className="new-value">{ycddData?.update_info?.receivable_amount_exception || "--"}</div> |
|
|
|
|
|
|
|
|
<div className="ltc-content"> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">应收金额</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.order_detail.receivable_amount || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">优惠总计</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.order_detail.preferential_amount || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">实付总计</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.order_detail.actual_amount || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">欠费总计</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.order_info?.order_detail.arrears_mount || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">优惠金额修改</div><div className="new-value">{ycddData?.update_info?.preferential_amount || "--"}</div> |
|
|
|
|
|
|
|
|
<div className="ltc-box-title"> |
|
|
|
|
|
<div className="text">修改信息:{ycddData?.refund_id}</div> |
|
|
|
|
|
<div className="line"></div> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">退款方式</div><div className="new-value">{ycddData?.update_info?.refund_type_name || "--"}</div> |
|
|
|
|
|
|
|
|
<div className="ltc-content"> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">修改原因</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.update_info?.update_reason || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">欠费金额修改</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.update_info?.receivable_amount || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">修改金额</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.update_info?.receivable_amount_exception || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">优惠金额修改</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.update_info?.preferential_amount || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">退款方式</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.update_info?.refund_type_name || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">退款金额共计</div> |
|
|
|
|
|
<div className="new-value"> |
|
|
|
|
|
{ycddData?.update_info?.actual_refund || "--"} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item"> |
|
|
|
|
|
<div className="new-item">退款金额共计</div><div className="new-value">{ycddData?.update_info?.actual_refund || "--"}</div> |
|
|
|
|
|
|
|
|
<div className="ltc-box-title"> |
|
|
|
|
|
<div className="text">订单修改明细</div> |
|
|
|
|
|
<div className="line"></div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<Table |
|
|
|
|
|
//rowSelection={rowSelection} |
|
|
|
|
|
rowKey={"index"} |
|
|
|
|
|
columns={detailColumns} |
|
|
|
|
|
dataSource={detailTable || []} |
|
|
|
|
|
pagination={false} |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-box-title"><div className="text">订单修改明细</div><div className="line"></div></div> |
|
|
|
|
|
<Table |
|
|
|
|
|
//rowSelection={rowSelection} |
|
|
|
|
|
rowKey={'index'} |
|
|
|
|
|
columns={detailColumns} |
|
|
|
|
|
dataSource={detailTable || []} |
|
|
|
|
|
pagination={false} |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
); |
|
|
// 导出 |
|
|
// 导出 |
|
|
const handleExport = () => { |
|
|
const handleExport = () => { |
|
|
if (resultData.list?.length > 0) { |
|
|
if (resultData.list?.length > 0) { |
|
@ -531,50 +665,48 @@ function EditOrderInquiry(props) { |
|
|
placeholder="请选择" |
|
|
placeholder="请选择" |
|
|
options={[ |
|
|
options={[ |
|
|
{ |
|
|
{ |
|
|
value: '0', |
|
|
|
|
|
label: '全部' |
|
|
|
|
|
|
|
|
value: "0", |
|
|
|
|
|
label: "全部", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '1', |
|
|
|
|
|
label: '停车订单' |
|
|
|
|
|
|
|
|
value: "1", |
|
|
|
|
|
label: "停车订单", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '2', |
|
|
|
|
|
label: '充电订单' |
|
|
|
|
|
|
|
|
value: "2", |
|
|
|
|
|
label: "充电订单", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '3', |
|
|
|
|
|
label: '充值订单' |
|
|
|
|
|
|
|
|
value: "3", |
|
|
|
|
|
label: "充值订单", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '4', |
|
|
|
|
|
label: '停车卡订单' |
|
|
|
|
|
|
|
|
value: "4", |
|
|
|
|
|
label: "停车卡订单", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '5', |
|
|
|
|
|
label: '充电预约订单' |
|
|
|
|
|
|
|
|
value: "5", |
|
|
|
|
|
label: "充电预约订单", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '6', |
|
|
|
|
|
label: '停车预约订单' |
|
|
|
|
|
|
|
|
value: "6", |
|
|
|
|
|
label: "停车预约订单", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '7', |
|
|
|
|
|
label: '错峰订单' |
|
|
|
|
|
|
|
|
value: "7", |
|
|
|
|
|
label: "错峰订单", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '8', |
|
|
|
|
|
label: '预付费订单' |
|
|
|
|
|
|
|
|
value: "8", |
|
|
|
|
|
label: "预付费订单", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
value: '9', |
|
|
|
|
|
label: '商家预付费订单' |
|
|
|
|
|
|
|
|
value: "9", |
|
|
|
|
|
label: "商家预付费订单", |
|
|
}, |
|
|
}, |
|
|
]} |
|
|
]} |
|
|
value={formData.parking_type} |
|
|
value={formData.parking_type} |
|
|
onChange={(v) => |
|
|
|
|
|
setFormData({ ...formData, parking_type: v }) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
onChange={(v) => setFormData({ ...formData, parking_type: v })} |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="yisa-search"> |
|
|
<div className="yisa-search"> |
|
@ -594,20 +726,31 @@ function EditOrderInquiry(props) { |
|
|
className="form-con" |
|
|
className="form-con" |
|
|
showTime |
|
|
showTime |
|
|
allowClear={false} |
|
|
allowClear={false} |
|
|
value={formData.start_time ? moment(formData.start_time) : undefined} |
|
|
|
|
|
onChange={(date, dateString) => setFormData({ ...formData, start_time: dateString })} |
|
|
|
|
|
|
|
|
value={ |
|
|
|
|
|
formData.start_time ? moment(formData.start_time) : undefined |
|
|
|
|
|
} |
|
|
|
|
|
onChange={(date, dateString) => |
|
|
|
|
|
setFormData({ ...formData, start_time: dateString }) |
|
|
|
|
|
} |
|
|
disabledDate={(current) => current > moment(formData.end_time)} |
|
|
disabledDate={(current) => current > moment(formData.end_time)} |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div className="yisa-search"> |
|
|
<div className="yisa-search"> |
|
|
<label>至</label> |
|
|
<label>至</label> |
|
|
<DatePicker |
|
|
<DatePicker |
|
|
className="form-con" |
|
|
className="form-con" |
|
|
showTime |
|
|
showTime |
|
|
allowClear={false} |
|
|
allowClear={false} |
|
|
value={formData.end_time ? moment(formData.end_time) : undefined} |
|
|
|
|
|
onChange={(date, dateString) => setFormData({ ...formData, end_time: dateString })} |
|
|
|
|
|
disabledDate={(current) => current < moment(formData.start_time)} |
|
|
|
|
|
|
|
|
value={ |
|
|
|
|
|
formData.end_time ? moment(formData.end_time) : undefined |
|
|
|
|
|
} |
|
|
|
|
|
onChange={(date, dateString) => |
|
|
|
|
|
setFormData({ ...formData, end_time: dateString }) |
|
|
|
|
|
} |
|
|
|
|
|
disabledDate={(current) => |
|
|
|
|
|
current < moment(formData.start_time) |
|
|
|
|
|
} |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="yisa-search"> |
|
|
<div className="yisa-search"> |
|
@ -616,9 +759,17 @@ function EditOrderInquiry(props) { |
|
|
className="form-con" |
|
|
className="form-con" |
|
|
showTime |
|
|
showTime |
|
|
allowClear={false} |
|
|
allowClear={false} |
|
|
value={formData.deal_time_start ? moment(formData.deal_time_start) : undefined} |
|
|
|
|
|
onChange={(date, dateString) => setFormData({ ...formData, deal_time_start: dateString })} |
|
|
|
|
|
disabledDate={(current) => current > moment(formData.deal_time_end)} |
|
|
|
|
|
|
|
|
value={ |
|
|
|
|
|
formData.deal_time_start |
|
|
|
|
|
? moment(formData.deal_time_start) |
|
|
|
|
|
: undefined |
|
|
|
|
|
} |
|
|
|
|
|
onChange={(date, dateString) => |
|
|
|
|
|
setFormData({ ...formData, deal_time_start: dateString }) |
|
|
|
|
|
} |
|
|
|
|
|
disabledDate={(current) => |
|
|
|
|
|
current > moment(formData.deal_time_end) |
|
|
|
|
|
} |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="yisa-search"> |
|
|
<div className="yisa-search"> |
|
@ -627,9 +778,17 @@ function EditOrderInquiry(props) { |
|
|
className="form-con" |
|
|
className="form-con" |
|
|
showTime |
|
|
showTime |
|
|
allowClear={false} |
|
|
allowClear={false} |
|
|
value={formData.deal_time_end ? moment(formData.deal_time_end) : undefined} |
|
|
|
|
|
onChange={(date, dateString) => setFormData({ ...formData, deal_time_end: dateString })} |
|
|
|
|
|
disabledDate={(current) => current < moment(formData.deal_time_start)} |
|
|
|
|
|
|
|
|
value={ |
|
|
|
|
|
formData.deal_time_end |
|
|
|
|
|
? moment(formData.deal_time_end) |
|
|
|
|
|
: undefined |
|
|
|
|
|
} |
|
|
|
|
|
onChange={(date, dateString) => |
|
|
|
|
|
setFormData({ ...formData, deal_time_end: dateString }) |
|
|
|
|
|
} |
|
|
|
|
|
disabledDate={(current) => |
|
|
|
|
|
current < moment(formData.deal_time_start) |
|
|
|
|
|
} |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="yisa-search"> |
|
|
<div className="yisa-search"> |
|
@ -652,9 +811,7 @@ function EditOrderInquiry(props) { |
|
|
}, |
|
|
}, |
|
|
]} |
|
|
]} |
|
|
value={formData.status_id} |
|
|
value={formData.status_id} |
|
|
onChange={(v) => |
|
|
|
|
|
setFormData({ ...formData, status_id: v }) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
onChange={(v) => setFormData({ ...formData, status_id: v })} |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="form-btn"> |
|
|
<div className="form-btn"> |
|
@ -709,23 +866,27 @@ function EditOrderInquiry(props) { |
|
|
<Modal |
|
|
<Modal |
|
|
open={detailVisible} |
|
|
open={detailVisible} |
|
|
width={1500} |
|
|
width={1500} |
|
|
title={'修改详情'} |
|
|
|
|
|
|
|
|
title={"修改详情"} |
|
|
onCancel={() => { |
|
|
onCancel={() => { |
|
|
setDetailVisible(false); |
|
|
setDetailVisible(false); |
|
|
}} |
|
|
}} |
|
|
footer={[ |
|
|
footer={[ |
|
|
<Button key="back" onClick={() => { |
|
|
|
|
|
setDetailVisible(false); |
|
|
|
|
|
}}> |
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
|
key="back" |
|
|
|
|
|
onClick={() => { |
|
|
|
|
|
setDetailVisible(false); |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
关闭窗口 |
|
|
关闭窗口 |
|
|
</Button>]} |
|
|
|
|
|
|
|
|
</Button>, |
|
|
|
|
|
]} |
|
|
> |
|
|
> |
|
|
{tkddModal} |
|
|
{tkddModal} |
|
|
</Modal> |
|
|
</Modal> |
|
|
<Modal |
|
|
<Modal |
|
|
open={bigpicVisible} |
|
|
open={bigpicVisible} |
|
|
width={1600} |
|
|
width={1600} |
|
|
title={'图片展示'} |
|
|
|
|
|
|
|
|
title={"图片展示"} |
|
|
className="eae-modal" |
|
|
className="eae-modal" |
|
|
onCancel={() => { |
|
|
onCancel={() => { |
|
|
setBigpicVisible(false); |
|
|
setBigpicVisible(false); |
|
@ -733,22 +894,49 @@ function EditOrderInquiry(props) { |
|
|
footer={false} |
|
|
footer={false} |
|
|
> |
|
|
> |
|
|
<div className="ltc-box"> |
|
|
<div className="ltc-box"> |
|
|
<div className="ltc-box-title"><div className="text">入场照片</div><div className="line"></div></div> |
|
|
|
|
|
|
|
|
<div className="ltc-box-title"> |
|
|
|
|
|
<div className="text">入场照片</div> |
|
|
|
|
|
<div className="line"></div> |
|
|
|
|
|
</div> |
|
|
<div className="ltc-content"> |
|
|
<div className="ltc-content"> |
|
|
<div className="ltc-item ltc-item-img "> |
|
|
<div className="ltc-item ltc-item-img "> |
|
|
<img src={ycddData?.order_info?.vehicle_detail.admissionPic || require("../../../../../src/assets/images/error-img.png")} /> |
|
|
|
|
|
|
|
|
<img |
|
|
|
|
|
src={ |
|
|
|
|
|
ycddData?.order_info?.vehicle_detail.admissionPic || |
|
|
|
|
|
require("../../../../../src/assets/images/error-img.png") |
|
|
|
|
|
} |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item ltc-item-img "> |
|
|
<div className="ltc-item ltc-item-img "> |
|
|
<img src={ycddData?.order_info?.vehicle_detail.admissionPicPlate || require("../../../../../src/assets/images/error-img.png")} /> |
|
|
|
|
|
|
|
|
<img |
|
|
|
|
|
src={ |
|
|
|
|
|
ycddData?.order_info?.vehicle_detail |
|
|
|
|
|
.admissionPicPlate || |
|
|
|
|
|
require("../../../../../src/assets/images/error-img.png") |
|
|
|
|
|
} |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-box-title"><div className="text">出场照片</div><div className="line"></div></div> |
|
|
|
|
|
|
|
|
<div className="ltc-box-title"> |
|
|
|
|
|
<div className="text">出场照片</div> |
|
|
|
|
|
<div className="line"></div> |
|
|
|
|
|
</div> |
|
|
<div className="ltc-content"> |
|
|
<div className="ltc-content"> |
|
|
<div className="ltc-item ltc-item-img "> |
|
|
<div className="ltc-item ltc-item-img "> |
|
|
<img src={ycddData?.order_info?.vehicle_detail.exitionPic || require("../../../../../src/assets/images/error-img.png")} /> |
|
|
|
|
|
|
|
|
<img |
|
|
|
|
|
src={ |
|
|
|
|
|
ycddData?.order_info?.vehicle_detail.exitionPic || |
|
|
|
|
|
require("../../../../../src/assets/images/error-img.png") |
|
|
|
|
|
} |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div className="ltc-item ltc-item-img "> |
|
|
<div className="ltc-item ltc-item-img "> |
|
|
<img src={ycddData?.order_info?.vehicle_detail.exitionPicPlate || require("../../../../../src/assets/images/error-img.png")} /> |
|
|
|
|
|
|
|
|
<img |
|
|
|
|
|
src={ |
|
|
|
|
|
ycddData?.order_info?.vehicle_detail.exitionPicPlate || |
|
|
|
|
|
require("../../../../../src/assets/images/error-img.png") |
|
|
|
|
|
} |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|