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
shenshaokai
jinfa-platform
Commits
c3c01833
Commit
c3c01833
authored
Jan 13, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复单据来源值为 undefined 的问题
parent
53bc5c81
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
addBills.tsx
src/pages/transaction/stockSellStorage/bills/addBills.tsx
+1
-1
index.tsx
...ion/stockSellStorage/bills/components/BillsForm/index.tsx
+5
-7
No files found.
src/pages/transaction/stockSellStorage/bills/addBills.tsx
View file @
c3c01833
...
...
@@ -7,7 +7,7 @@ const AddBills: React.FC = () => {
invoicesTypeId
,
// 单据类型ID
relevanceInvoices
,
// 对应单据
relevanceInvoicesId
,
// 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
source
,
source
=
2
,
}
=
usePageStatus
();
return
(
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/index.tsx
View file @
c3c01833
...
...
@@ -232,7 +232,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
fullAddress
:
fullAddress
||
''
,
receiverName
:
receiverName
||
''
,
phone
:
phone
||
''
,
//
deliveryType,
deliveryType
,
isDefault
,
}
]
:
...
...
@@ -240,8 +240,6 @@ const BillsForm: React.FC<BillsFormProps> = ({
,
invoicesDetailsRequests
:
details
,
...
rest
,
deliveryType
,
transport
:
DELIVERY_TYPE
[
deliveryType
],
});
}).
finally
(()
=>
{
setInfoLoading
(
false
);
...
...
@@ -271,6 +269,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
setInfoLoading
(
true
);
PublicApi
.
getOrderProcurementOrderDetails
({
id
:
relevanceInvoicesId
,
orderNo
:
''
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
...
...
@@ -317,6 +316,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
setInfoLoading
(
true
);
PublicApi
.
getOrderPurchaseOrderDetails
({
id
:
relevanceInvoicesId
,
orderNo
:
''
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
...
...
@@ -392,12 +392,11 @@ const BillsForm: React.FC<BillsFormProps> = ({
fullAddress
:
receiveAddress
||
''
,
receiverName
:
receiveUserName
||
''
,
phone
:
receiveUserTel
||
''
,
deliveryType
,
}
]
:
[]
,
deliveryType
,
transport
:
DELIVERY_TYPE
[
deliveryType
],
});
}).
finally
(()
=>
{
setInfoLoading
(
false
);
...
...
@@ -439,12 +438,11 @@ const BillsForm: React.FC<BillsFormProps> = ({
fullAddress
:
receiveAddress
||
''
,
receiverName
:
receiveUserName
||
''
,
phone
:
receiveUserTel
||
''
,
deliveryType
,
}
]
:
[]
,
deliveryType
,
transport
:
DELIVERY_TYPE
[
deliveryType
],
});
}).
finally
(()
=>
{
setInfoLoading
(
false
);
...
...
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