|
|
@ -57,37 +57,6 @@ function ReturnOrderInquiry() { |
|
|
|
align: "center", |
|
|
|
} |
|
|
|
switch (type) { |
|
|
|
case 2: |
|
|
|
obj.render = (text, record) => (<> |
|
|
|
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { |
|
|
|
setYcddData(record) |
|
|
|
setDetailVisible(true) |
|
|
|
}}> |
|
|
|
<a>详情</a> |
|
|
|
</span> |
|
|
|
</>) |
|
|
|
arr.push(obj) |
|
|
|
break |
|
|
|
case 6: |
|
|
|
obj.render = (text, record) => (<> |
|
|
|
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { |
|
|
|
setTkddVisible(true) |
|
|
|
}}> |
|
|
|
<a>详情</a> |
|
|
|
</span> |
|
|
|
</>) |
|
|
|
arr.push(obj) |
|
|
|
break |
|
|
|
case 7: |
|
|
|
obj.render = (text, record) => (<> |
|
|
|
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { |
|
|
|
setTkddVisible(true) |
|
|
|
}}> |
|
|
|
<a>详情</a> |
|
|
|
</span> |
|
|
|
</>) |
|
|
|
arr.push(obj) |
|
|
|
break |
|
|
|
case 8: |
|
|
|
obj.render = (text, record) => (<> |
|
|
|
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { |
|
|
@ -189,78 +158,19 @@ function ReturnOrderInquiry() { |
|
|
|
defaultValue: [moment().subtract(1, "month"), moment()], |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|
const [tag, setTag] = useState('1'); |
|
|
|
const [resultData, setResultData] = useState([]) |
|
|
|
const [baseData, setBaseData] = useState({ |
|
|
|
//car_type:2 |
|
|
|
img: '' |
|
|
|
}) |
|
|
|
const [ycddData, setYcddData] = useState([])//异常订单数据 |
|
|
|
const [detailVisible, setDetailVisible] = useState(false); |
|
|
|
const [timesVisible, setTimesVisible] = useState(false); //退款尝试次数展开 |
|
|
|
const [tkddVisible, setTkddVisible] = useState(false); |
|
|
|
const [eaeVisible, setEaeVisible] = useState(false);//出入场图片 |
|
|
|
const [bigpicVisible, setBigpicVisible] = useState(false);//大图展示 |
|
|
|
const [bqVisible, setBqVisible] = useState(false);//流程查看 |
|
|
|
const [bigPic, setBigPic] = useState(); |
|
|
|
const [total, setTotal] = useState(0); |
|
|
|
const [tabKey, setTabKey] = useState("1"); |
|
|
|
function openModal(params) { |
|
|
|
setDetailVisible(true); |
|
|
|
} |
|
|
|
|
|
|
|
//基本信息详情 |
|
|
|
function searchDetail(e) { |
|
|
|
ajax({ |
|
|
|
url: "/api/ope/user/get_base_info", |
|
|
|
type: "get", |
|
|
|
data: { memberId: e.memberId }, |
|
|
|
}).then((res) => { |
|
|
|
let { status, data, total } = res |
|
|
|
if (status == 20000) { |
|
|
|
setBaseData(data) |
|
|
|
setTag('2') |
|
|
|
} else { |
|
|
|
message.error(res.message) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//详情其他模块查询 |
|
|
|
function searchOther(e) { |
|
|
|
var url = '' |
|
|
|
switch (tabKey) { |
|
|
|
case "1": |
|
|
|
url = "" |
|
|
|
break |
|
|
|
case "2": |
|
|
|
url = "/api/bpm/record/get_record_list"//停车记录 |
|
|
|
break |
|
|
|
case "3": |
|
|
|
url = "/api/bpm/record/get_payment_list"//支付记录 |
|
|
|
break |
|
|
|
case "4": |
|
|
|
url = "/api/ope/record/get_recharge_list"//充值記錄 |
|
|
|
break |
|
|
|
case "5": |
|
|
|
url = "/api/bpm/record/get_parking_arrears_list"//欠费记录 |
|
|
|
break |
|
|
|
case "6": |
|
|
|
url = "" |
|
|
|
break |
|
|
|
case "7": |
|
|
|
url = "" |
|
|
|
break |
|
|
|
case "8": |
|
|
|
url = "/api/ope/record/get_refund_list"//退费订单 |
|
|
|
break |
|
|
|
default: break |
|
|
|
} |
|
|
|
if (tabKey == '5' && e && !e?.type) { |
|
|
|
e.type = 1 |
|
|
|
} |
|
|
|
//列表查询 |
|
|
|
function search(e) { |
|
|
|
var url ="/api/ope/record/get_refund_list"//退费订单 |
|
|
|
ajax({ |
|
|
|
url: url, |
|
|
|
type: "post", |
|
|
@ -298,7 +208,7 @@ function ReturnOrderInquiry() { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
//其他页面渲染 |
|
|
|
//页面渲染 |
|
|
|
function renderTable(columns, arr, dataSource, exportUrl) { |
|
|
|
return ( |
|
|
|
<TableModule |
|
|
@ -306,7 +216,8 @@ function ReturnOrderInquiry() { |
|
|
|
tableData={dataSource} |
|
|
|
formSearch={arr} |
|
|
|
total={total} |
|
|
|
search={searchOther} |
|
|
|
search={search} |
|
|
|
pageName={'returnOrderInquiry'} |
|
|
|
exportUrl={exportUrl} |
|
|
|
rowKey={'id'} |
|
|
|
/> |
|
|
@ -438,12 +349,11 @@ function ReturnOrderInquiry() { |
|
|
|
</div> |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
searchOther() |
|
|
|
}, [tabKey]) |
|
|
|
search() |
|
|
|
}, []) |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|
|
|
|
|
{renderTable( |
|
|
|
createCol(['序号', '最近尝试时间', '支付渠道', '应退实付(元)', '应退优惠(元)', '退款原因', '退款申请时间', '退款订单ID', '业务订单类型', '业务订单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'], 8), |
|
|
@ -481,8 +391,6 @@ function ReturnOrderInquiry() { |
|
|
|
</Button>]} |
|
|
|
> |
|
|
|
{tkddModal} |
|
|
|
{/* {tabKey == '8' ? tkddModal : tabKey == '6' ? tckModal : tabKey == '7' ? cfkModal : null} */} |
|
|
|
|
|
|
|
</Modal> |
|
|
|
</> |
|
|
|
); |
|
|
|