|
|
@ -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 =="处理种"? |
|
|
|
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { |
|
|
|
// refundSearch(record) |
|
|
|
// setTkddVisible(true) |
|
|
|
}}> |
|
|
|
<a>重试</a> |
|
|
|
</span> |
|
|
|
:null} |
|
|
|
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { |
|
|
|
refundSearch(record) |
|
|
|
setTkddVisible(true) |
|
|
|
}}> |
|
|
|
<a>详情</a> |
|
|
|
</span> |
|
|
|
</>) |
|
|
|
</> |
|
|
|
} |
|
|
|
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() { |
|
|
|
</>} |
|
|
|
</div> |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
search() |
|
|
|
}, []) |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|
{renderTable( |
|
|
@ -382,10 +389,12 @@ function ReturnOrderInquiry() { |
|
|
|
title={'订单详情'} |
|
|
|
onCancel={() => { |
|
|
|
setTkddVisible(false); |
|
|
|
setYcddData([]); |
|
|
|
}} |
|
|
|
footer={[ |
|
|
|
<Button key="back" onClick={() => { |
|
|
|
setTkddVisible(false); |
|
|
|
setYcddData([]); |
|
|
|
}}> |
|
|
|
关闭窗口 |
|
|
|
</Button>]} |
|
|
|