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

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

parent 6e2fbf1b
...@@ -125,7 +125,8 @@ export default () => { ...@@ -125,7 +125,8 @@ export default () => {
width: 300, width: 300,
dataIndex: 'action', dataIndex: 'action',
fixed: 'right', fixed: 'right',
render: (_, r) => [ render: (_, r) => {
const operations = [
<Popconfirm <Popconfirm
title="确定允许退款?" title="确定允许退款?"
onConfirm={() => refund(r)} onConfirm={() => refund(r)}
...@@ -162,7 +163,14 @@ export default () => { ...@@ -162,7 +163,14 @@ export default () => {
<Button className="mr10 mt10" type="primary" onClick={() => viewLog(r)}> <Button className="mr10 mt10" type="primary" onClick={() => viewLog(r)}>
查看记录 查看记录
</Button>, </Button>,
], ];
// 服务订单删除物流拦截
if (!['vip', 'self'].includes(r.supplierType)) {
operations.splice(3, 1);
}
return operations;
},
}, },
]; ];
return ( return (
......
...@@ -178,14 +178,15 @@ export default () => { ...@@ -178,14 +178,15 @@ export default () => {
dataIndex: 'action', dataIndex: 'action',
width: 250, width: 250,
fixed: 'right', fixed: 'right',
render: (val, r) => [ render: (val, r) => {
<Button key="link1" onClick={() => openAudit(r)} className="mr10" type="primary"> const operations = [
<Button key="link1" onClick={() => openAudit(r)} className="mr10 mt10" type="primary">
审核 审核
</Button>, </Button>,
<Button <Button
disabled={r.serviceType !== 1 || (r.serviceType === 1 && r.intercept)} disabled={r.serviceType !== 1 || (r.serviceType === 1 && r.intercept)}
onClick={() => openLogistics(r)} onClick={() => openLogistics(r)}
className="mr10" className="mr10 mt10"
type="primary" type="primary"
> >
物流拦截 物流拦截
...@@ -193,10 +194,17 @@ export default () => { ...@@ -193,10 +194,17 @@ export default () => {
<Button className="mr10 mt10" key="link" onClick={() => viewDetail(r)} type="primary"> <Button className="mr10 mt10" key="link" onClick={() => viewDetail(r)} type="primary">
订单详情 订单详情
</Button>, </Button>,
<Button type="primary" onClick={() => viewLog(r)}> <Button className="mr10 mt10" type="primary" onClick={() => viewLog(r)}>
查看记录 查看记录
</Button>, </Button>,
], ];
// 服务订单删除物流拦截
if (!['vip', 'self'].includes(r.supplierType)) {
operations.splice(1, 1);
}
return operations;
},
}, },
]; ];
return ( return (
......
...@@ -281,7 +281,7 @@ const OrderList = ref => { ...@@ -281,7 +281,7 @@ const OrderList = ref => {
</div> </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