diff --git a/src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx b/src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx
index 74642c7..53163dd 100644
--- a/src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx
+++ b/src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx
@@ -58,14 +58,25 @@ function ReturnOrderInquiry() {
}
switch (type) {
case 8:
- obj.render = (text, record) => (<>
+ obj.render = (text, record) => {
+
+ return <>
+ {record.status_name == "退款失败"||record.status_name =="处理种"?
+ {
+ // refundSearch(record)
+ // setTkddVisible(true)
+ }}>
+ 重试
+
+ :null}
{
refundSearch(record)
setTkddVisible(true)
}}>
详情
- >)
+ >
+ }
arr.push(obj)
break
default: break
@@ -159,7 +170,7 @@ function ReturnOrderInquiry() {
},
];
const [resultData, setResultData] = useState([])
- const [ycddData, setYcddData] = useState([])//异常订单数据
+ const [ycddData, setYcddData] = useState([])//详情数据
const [detailVisible, setDetailVisible] = useState(false);
const [timesVisible, setTimesVisible] = useState(false); //退款尝试次数展开
const [tkddVisible, setTkddVisible] = useState(false);
@@ -196,7 +207,7 @@ function ReturnOrderInquiry() {
ajax({
url: "/api/ope/record/refund_info",
type: "get",
- data: { id: e.refund_id },
+ data: { id: e.id },
}).then((res) => {
let { status, data } = res
if (status == 20000) {
@@ -348,10 +359,6 @@ function ReturnOrderInquiry() {
>}
- useEffect(() => {
- search()
- }, [])
-
return (
<>
{renderTable(
@@ -382,10 +389,12 @@ function ReturnOrderInquiry() {
title={'订单详情'}
onCancel={() => {
setTkddVisible(false);
+ setYcddData([]);
}}
footer={[
]}