Browse Source

fix():修改退款订单重试接口

tags/PMS_Frontend_v1.0.6-develop
xingjx 1 year ago
parent
commit
2e4e0d5211
  1. BIN
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/blue.png
  2. BIN
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/green.png
  3. 11
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/index.scss
  4. 78
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx
  5. BIN
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/red.png
  6. 18
      src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx

BIN
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/blue.png

After

Width: 423  |  Height: 108  |  Size: 5.0 KiB

BIN
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/green.png

After

Width: 423  |  Height: 108  |  Size: 5.2 KiB

11
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/index.scss

@ -137,9 +137,12 @@ $color-primary : var(--color-primary);
width: 40px;
height: 40px;
opacity: 0.99;
background: #ffdbdf;
margin-left: 84px;
margin-right: 20px;
.icon {
width: 40px;
height: 40px;
}
}
.result-content {
.title {
@ -162,13 +165,13 @@ $color-primary : var(--color-primary);
}
}
.rea {
background: #3B97FF;
background: url("./red.png");
}
.reb {
background: #a2caf8;
background: url("./blue.png");
}
.rec {
background: #1e2a37;
background: url("./green.png");
}
}
.result-box {

78
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx

@ -1,6 +1,7 @@
import React, { useState, useEffect } from "react";
import { ResultFlowResult } from "@/components";
import { Select, Input, Button, Table, message, Pagination, DatePicker, Modal, Cascader, Tooltip } from "antd";
import { Icon } from "@/components"
import { useSessionStorageState } from "ahooks";
import moment from "moment";
import ReactEcharts from "echarts-for-react";
@ -154,6 +155,7 @@ function ParkingAlyPeriod() {
data: areaNames,
itemWidth: 18,
itemHeight: 12,
width: '40%',
textStyle: {
fontSize: 14,
color: 'white',
@ -218,76 +220,6 @@ function ParkingAlyPeriod() {
4
]
},
{
"name": "1",
"type": "line",
//yAxisIndex: 1,
"data": [
9,
4,
4
]
},
{
"name": "2",
"type": "line",
//yAxisIndex: 1,
"data": [
9,
8,
4
]
},
{
"name": "3",
"type": "line",
//yAxisIndex: 1,
"data": [
9,
4,
0
]
},
{
"name": "4",
"type": "line",
//yAxisIndex: 1,
"data": [
9,
4,
7
]
},
{
"name": "5",
"type": "line",
//yAxisIndex: 1,
"data": [
3,
4,
4
]
},
{
"name": "6",
"type": "line",
//yAxisIndex: 1,
"data": [
7,
4,
4
]
},
{
"name": "7",
"type": "line",
//yAxisIndex: 1,
"data": [
9,
3,
4
]
},
],
grid: {
x: 50,
@ -537,21 +469,21 @@ function ParkingAlyPeriod() {
<div className="result">
<div className="result-hd">
<div className="result-header rea">
<div className="result-icon"></div>
<div className="result-icon"><Icon type="shijian" /></div>
<div className="result-content">
<div className="title">停车高峰时段</div>
<div className="time"></div>
</div>
</div>
<div className="result-header reb">
<div className="result-icon"></div>
<div className="result-icon"><Icon type="shijian" /></div>
<div className="result-content">
<div className="title">入场压力时段</div>
<div className="time"></div>
</div>
</div>
<div className="result-header rec">
<div className="result-icon"></div>
<div className="result-icon"><Icon type="shijian" /></div>
<div className="result-content">
<div className="title">出场压力时段</div>
<div className="time">00:00 - 22:00</div>

BIN
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/red.png

After

Width: 423  |  Height: 108  |  Size: 5.1 KiB

18
src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx

@ -63,7 +63,7 @@ function ReturnOrderInquiry() {
return <>
{record.status_name == "退款失败"||record.status_name =="处理种"?
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => {
// refundSearch(record)
refundre(record)
// setTkddVisible(true)
}}>
<a>重试</a>
@ -218,7 +218,21 @@ function ReturnOrderInquiry() {
}
})
}
//退
function refundre(e) {
ajax({
url: "/api/fin/order_search/refund_retry",
type: "post",
data: { refund_id: e.id },
}).then((res) => {
let { status } = res
if (status == 20000) {
message.success(res.message)
} else {
message.error(res.message)
}
})
}
//
function renderTable(columns, arr, dataSource, exportUrl) {
return (

Loading…
Cancel
Save