Browse Source

fix():修改订单查询接口对接

tags/PMS_Frontend_v1.0.6-develop
xingjx 1 year ago
parent
commit
e48d89310e
  1. 11
      src/pages/FinancialMgm/OrderInquiry/OrderChangeInquiry/index.jsx
  2. 8
      src/pages/FinancialMgm/OrderInquiry/ParkingOrderInquiry/index.jsx

11
src/pages/FinancialMgm/OrderInquiry/OrderChangeInquiry/index.jsx

@ -115,8 +115,8 @@ function EditOrderInquiry(props) {
ajax.getOrderChangeList({ ...postData, ...pageInfo, ...v }).then(
(res) => {
if (parseInt(res?.status) === 20000) {
setResultData(res?.data || []);
setTotal(res.total)
setResultData(res?.data.list || []);
setTotal(res.data.total)
} else {
message.error(res?.message);
}
@ -295,6 +295,13 @@ function EditOrderInquiry(props) {
title: "支付订单ID",
dataIndex: "order_id",
align: "center",
render: (text) => (
<>
<a onClick={() => {
navigator.clipboard.writeText(`${text}`).then(() => { message.success("已复制到剪切板") });
}}>{text}</a>
</>
)
},
{
title: "抵扣修改金额",

8
src/pages/FinancialMgm/OrderInquiry/ParkingOrderInquiry/index.jsx

@ -452,10 +452,12 @@ function ParkingOrderInquiry() {
function changeKey(key) {
setTabKey(key);
setTabKeyChild('1');
//setTotal('0')
}
const [tabKeyChild, setTabKeyChild] = useState("1");
function changeKeyChild(key) {
setTabKeyChild(key);
//setTotal('0')
}
//
const limitCon = (e) => {
@ -794,15 +796,15 @@ function ParkingOrderInquiry() {
) : null}
</Tabs.TabPane>
<Tabs.TabPane tab="欠费订单查询" key="2">
{orderInfo}
{tabKey == 2 ? orderInfo : null}
</Tabs.TabPane>
<Tabs.TabPane tab="预付订单查询" key="3">
{renderTable(
{tabKey == 3 ? renderTable(
createCol(['订单ID', '支付商户', '所属商户', '支付渠道', '支付设备', '操作人', '支付时间', '预付金额', '已抵扣金额', '退款金额', '抵扣时间', '停车记录ID'],
['index', 'latest_try_time', 'payment_channels_name', 'refund_actual_amount', 'refund_discount_amount', 'reason', 'refund_time', 'payment_order_id', 'parking_type_name', 'park_record_id', 'payment_type_name', 'payment_order_id', 'flow_id', 'state_name'], 0),
[ash[22], ash[23], ash[21], ash[24], ash[15]],
resultData
)}
) : null}
</Tabs.TabPane>
</Tabs>

Loading…
Cancel
Save