Commit 2bc9044a authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加编辑物流单

parent d4423b22
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-18 11:22:44 * @Date: 2020-11-18 11:22:44
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-07 11:10:08 * @LastEditTime: 2021-01-21 16:09:14
* @Description: 待新增换货发货单 * @Description: 待新增换货发货单
*/ */
import React, { useState, useRef } from 'react'; import React, { useState, useRef } from 'react';
...@@ -20,6 +20,7 @@ import { PublicApi } from '@/services/api'; ...@@ -20,6 +20,7 @@ import { PublicApi } from '@/services/api';
import { import {
EXCHANGE_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS, EXCHANGE_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS,
EXCHANGE_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS, EXCHANGE_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS,
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_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';
...@@ -128,6 +129,17 @@ const ExchangePrAddLogistics: React.FC = () => { ...@@ -128,6 +129,17 @@ const ExchangePrAddLogistics: React.FC = () => {
查看物流单 查看物流单
</Button> </Button>
)} )}
{record.innerStatus === EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_LOGISTICS && (
<Button
type="link"
onClick={
() =>
history.push(`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=${record.replaceId}`)
}
>
编辑
</Button>
)}
</> </>
), ),
}, },
......
...@@ -20,6 +20,7 @@ import { PublicApi } from '@/services/api'; ...@@ -20,6 +20,7 @@ import { PublicApi } from '@/services/api';
import { import {
EXCHANGE_INNER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS, EXCHANGE_INNER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS,
EXCHANGE_INNER_STATUS_SUPPLIER_UNCONFIRMED_LOGISTICS, EXCHANGE_INNER_STATUS_SUPPLIER_UNCONFIRMED_LOGISTICS,
EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_EXCHANGE,
} 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';
...@@ -128,6 +129,17 @@ const ReturnPrAddLogistics: React.FC = () => { ...@@ -128,6 +129,17 @@ const ReturnPrAddLogistics: React.FC = () => {
查看物流单 查看物流单
</Button> </Button>
)} )}
{record.innerStatus === EXCHANGE_INNER_STATUS_UNACCEPTED_RETURN_EXCHANGE && (
<Button
type="link"
onClick={
() =>
history.push(`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=${record.replaceId}`)
}
>
编辑
</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