作者 韩昌

优化按钮显示

... ... @@ -143,28 +143,22 @@ const ShowOrderComHandler: FC<IProps> = (props) => {
<Button type="primary" shape="round" onClick={() => showModalHandler(1, _.id)}>
查看症状
</Button>
{[30, '30'].includes(_.orderState as string | number) ? (
{[30, '30'].includes(_.orderState as string | number) && (
<Button type="primary" shape="round" onClick={() => showModalHandler(2, _.id)}>
发送处方单
</Button>
) : (
''
)}
{[20, '20'].includes(_.orderState as string | number) ? (
{[20, '20'].includes(_.orderState as string | number) && (
<Button type="primary" shape="round" onClick={() => warning('请到app内进行接诊')}>
接诊
</Button>
) : (
''
)}
{[30, '30', 40, '40'].includes(_.orderState as string | number) ? (
{[30, '30', 40, '40'].includes(_.orderState as string | number) && (
<Button type="primary" shape="round" onClick={() => showModalHandler(3, _.id)}>
查看处方单
</Button>
) : (
''
)}
</Space>
</div>
... ...