Commit 1a04ac87 authored by 李腾's avatar 李腾

feat: 售后订单管理-服务订单隐藏物流相关按钮

parent 6e2fbf1b
......@@ -125,7 +125,8 @@ export default () => {
width: 300,
dataIndex: 'action',
fixed: 'right',
render: (_, r) => [
render: (_, r) => {
const operations = [
<Popconfirm
title="确定允许退款?"
onConfirm={() => refund(r)}
......@@ -162,7 +163,14 @@ export default () => {
<Button className="mr10 mt10" type="primary" onClick={() => viewLog(r)}>
查看记录
</Button>,
],
];
// 服务订单删除物流拦截
if (!['vip', 'self'].includes(r.supplierType)) {
operations.splice(3, 1);
}
return operations;
},
},
];
return (
......
......@@ -178,14 +178,15 @@ export default () => {
dataIndex: 'action',
width: 250,
fixed: 'right',
render: (val, r) => [
<Button key="link1" onClick={() => openAudit(r)} className="mr10" type="primary">
render: (val, r) => {
const operations = [
<Button key="link1" onClick={() => openAudit(r)} className="mr10 mt10" type="primary">
审核
</Button>,
<Button
disabled={r.serviceType !== 1 || (r.serviceType === 1 && r.intercept)}
onClick={() => openLogistics(r)}
className="mr10"
className="mr10 mt10"
type="primary"
>
物流拦截
......@@ -193,10 +194,17 @@ export default () => {
<Button className="mr10 mt10" key="link" onClick={() => viewDetail(r)} type="primary">
订单详情
</Button>,
<Button type="primary" onClick={() => viewLog(r)}>
<Button className="mr10 mt10" type="primary" onClick={() => viewLog(r)}>
查看记录
</Button>,
],
];
// 服务订单删除物流拦截
if (!['vip', 'self'].includes(r.supplierType)) {
operations.splice(1, 1);
}
return operations;
},
},
];
return (
......
......@@ -281,7 +281,7 @@ const OrderList = ref => {
</div>
));
}
return '-';
return <div align="center">-</div>;
},
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment