Commit 69ec80f1 authored by 李腾's avatar 李腾

fix: 退货退款新增查看物流操作

parent 50308ff2
......@@ -77,42 +77,3 @@ const LogisticsRecordModal = (props, ref) => {
};
export default forwardRef(LogisticsRecordModal);
const LogisticsCom = props => {
const { modalVisible, onCancel } = props;
const [result, setResult] = useState({});
useEffect(() => {
setResult(props.value);
});
return (
<Modal
destroyOnClose
title={`${
result?.expressCompanyName
? `${result?.expressCompanyName}-${result?.deliveryNo}`
: '物流信息'
}`}
visible={modalVisible}
onCancel={() => onCancel()}
onOk={() => onCancel()}
afterClose={() => setResult({})}
bodyStyle={{ maxHeight: '600px', minHeight: '200px', overflow: 'auto' }}
footer={[]}
>
{result?.detailList?.length ? (
<Timeline>
{result?.detailList?.map((item, index) => (
// eslint-disable-next-line react/no-array-index-key
<Timeline.Item color={index > 0 ? 'gray' : 'blue'} key={index}>
<p>{item.desc}</p>
<p>{item.logisticsTime}</p>
</Timeline.Item>
))}
</Timeline>
) : (
'暂无物流信息'
)}
</Modal>
);
};
......@@ -130,6 +130,7 @@ const AuditModal = props => {
,请务必检查此单物流状态后审核。<a onClick={openLogisticsRecord}>查看物流</a>
</div>
)}
<Form {...layout} name="formData">
<FormItem label="审核结果">
{getFieldDecorator('auditResult', {
......@@ -243,6 +244,11 @@ const AuditModal = props => {
</FormItem>
)}
</Form>
{+formData.serviceType === 2 && (
<div align="right" style={{ paddingRight: '42px', marginTop: '-25px' }}>
<a onClick={openLogisticsRecord}>查看物流</a>
</div>
)}
</Modal>
<LogisticsRecordModal ref={logisticsRecordModalRef} />
</>
......
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