Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
bc342a24
Commit
bc342a24
authored
Aug 25, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加采购订单列表跳转售后换货申请逻辑
parent
24a3f573
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
15 deletions
+25
-15
addExchange.tsx
...vice/exchangeApplication/exchangePrSubmit/addExchange.tsx
+2
-2
index.tsx
...cation/exchangePrSubmit/components/ExchangeForm/index.tsx
+23
-13
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/addExchange.tsx
View file @
bc342a24
...
...
@@ -3,10 +3,10 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import
ExchangeForm
from
'./components/ExchangeForm'
;
const
AddExchange
:
React
.
FC
=
()
=>
{
const
{
orderId
}
=
usePageStatus
();
const
{
orderId
,
orderType
}
=
usePageStatus
();
return
(
<
ExchangeForm
orderId=
{
orderId
}
isEdit
/>
<
ExchangeForm
orderId=
{
orderId
}
orderType=
{
+
orderType
}
isEdit
/>
);
};
...
...
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/index.tsx
View file @
bc342a24
...
...
@@ -49,6 +49,10 @@ interface BillsFormProps {
* 订单id,从订单列表跳转过来的
*/
orderId
?:
number
,
/**
* 订单类型
*/
orderType
?:
number
,
}
type
ReplaceGoodsListItemType
=
{
...
...
@@ -143,6 +147,10 @@ interface DetailInfo {
*/
orderNo
?:
string
,
/**
* 订单类型
*/
orderType
?:
number
,
/**
* 商品数据
*/
replaceGoodsList
?:
ReplaceGoodsListItemType
[],
...
...
@@ -173,6 +181,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
id
,
isEdit
=
false
,
orderId
,
orderType
:
outerOrderType
,
})
=>
{
const
[
detailInfo
,
setDetailInfo
]
=
useState
<
DetailInfo
>
({
applyTime
:
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
...
...
@@ -419,16 +428,15 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
return
;
}
setInfoLoading
(
true
);
PublicApi
.
getOrderProcurementOrderDetails
({
id
:
`
${
orderId
}
`
,
orderNo
:
''
,
PublicApi
.
getOrderBuyerDetail
({
orderId
:
`
${
orderId
}
`
,
}
as
any
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
const
{
supplyMembers
Name
,
supplyMembers
Id
,
supplyMembers
RoleId
,
vendorMember
Name
,
vendorMember
Id
,
vendor
RoleId
,
orderNo
,
}
=
res
.
data
;
...
...
@@ -440,20 +448,22 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
);
setDetailInfo
({
applyTime
:
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
applyTime
:
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
supplierMember
:
supplyMembers
Name
?
vendorMember
Name
?
[
{
name
:
supplyMembersName
,
memberId
:
supplyMembersId
,
roleId
:
supplyMembersRoleId
,
name
:
vendorMemberName
,
memberId
:
vendorMemberId
,
roleId
:
vendorRoleId
,
},
]
:
[]
,
orderNo
,
,
orderNo
,
orderType
:
+
outerOrderType
,
});
setOrderTypeValue
(
+
outerOrderType
);
}
})
.
catch
((
err
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment