Commit 54909672 authored by XieZhiXiong's avatar XieZhiXiong

feat: 新增编辑物流单的逻辑

parent 229850a1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-06 16:30:44 * @Date: 2020-11-06 16:30:44
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-07 16:12:25 * @LastEditTime: 2021-01-26 18:36:23
* @Description: 待新增退货发货单 * @Description: 待新增退货发货单
*/ */
import React, { useState, useRef } from 'react'; import React, { useState, useRef } from 'react';
...@@ -19,7 +19,8 @@ import { createFormActions } from '@formily/antd'; ...@@ -19,7 +19,8 @@ import { createFormActions } from '@formily/antd';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { import {
RETURN_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS, RETURN_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS,
RETURN_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS, RETURN_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS,
RETURN_INNER_STATUS_UNACCEPTED_LOGISTICS,
} from '@/constants'; } from '@/constants';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch'; import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
import { FORM_FILTER_PATH } from '@/formSchema/const'; import { FORM_FILTER_PATH } from '@/formSchema/const';
...@@ -133,6 +134,17 @@ const ReturnPrAddLogistics: React.FC = () => { ...@@ -133,6 +134,17 @@ const ReturnPrAddLogistics: React.FC = () => {
查看物流单 查看物流单
</Button> </Button>
)} )}
{record.innerStatus === RETURN_INNER_STATUS_UNACCEPTED_LOGISTICS && (
<Button
type="link"
onClick={
() =>
history.push(`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=${record.returnId}`)
}
>
编辑
</Button>
)}
</> </>
), ),
}, },
......
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