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
4c9760b3
Commit
4c9760b3
authored
Jan 05, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加 发货单号、入库单号id
parent
8b656096
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
+35
-3
billsDetail.tsx
src/pages/transaction/stockSellStorage/bills/billsDetail.tsx
+4
-0
index.tsx
...ion/stockSellStorage/bills/components/BillsForm/index.tsx
+27
-3
editBills.tsx
src/pages/transaction/stockSellStorage/bills/editBills.tsx
+4
-0
No files found.
src/pages/transaction/stockSellStorage/bills/billsDetail.tsx
View file @
4c9760b3
...
...
@@ -5,6 +5,8 @@ import BillsForm from './components/BillsForm';
const
BillsDetail
:
React
.
FC
=
()
=>
{
const
{
id
,
deliveryNo
=
0
,
storageNo
=
0
,
invoicesTypeId
,
// 单据类型ID
relevanceInvoices
,
// 对应单据
relevanceInvoicesId
,
// 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
...
...
@@ -13,6 +15,8 @@ const BillsDetail: React.FC = () => {
return
(
<
BillsForm
id=
{
id
}
deliveryNo=
{
deliveryNo
}
storageNo=
{
storageNo
}
invoicesTypeId=
{
invoicesTypeId
}
relevanceInvoices=
{
relevanceInvoices
}
relevanceInvoicesId=
{
relevanceInvoicesId
}
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/index.tsx
View file @
4c9760b3
...
...
@@ -44,13 +44,33 @@ const {
}
=
FormEffectHooks
;
interface
BillsFormProps
{
/**
* 单据id
*/
id
?:
string
;
/**
* 发货单号
*/
deliveryNo
?:
number
;
/**
* 入库单号
*/
storageNo
?:
number
;
validateId
?:
string
;
// 是否是编辑的
isEdit
?:
boolean
;
invoicesTypeId
:
string
;
// 单据类型ID
relevanceInvoices
:
string
;
// 对应单据
relevanceInvoicesId
:
string
,
// 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
/**
* 单据类型ID
*/
invoicesTypeId
:
string
;
/**
* 对应单据
*/
relevanceInvoices
:
string
;
/**
* 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
*/
relevanceInvoicesId
:
string
;
};
function
transforDirection
(
type
)
{
...
...
@@ -72,6 +92,8 @@ function transforDirection(type) {
const
BillsForm
:
React
.
FC
<
BillsFormProps
>
=
({
id
,
deliveryNo
=
0
,
storageNo
=
0
,
isEdit
=
false
,
invoicesTypeId
,
relevanceInvoices
,
...
...
@@ -143,6 +165,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
setInfoLoading
(
true
);
PublicApi
.
getWarehouseInvoicesDetails
({
invoicesId
:
id
,
deliveryNo
,
storageNo
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
...
...
src/pages/transaction/stockSellStorage/bills/editBills.tsx
View file @
4c9760b3
...
...
@@ -5,6 +5,8 @@ import BillsForm from './components/BillsForm';
const
EditBills
:
React
.
FC
=
()
=>
{
const
{
id
,
deliveryNo
=
0
,
storageNo
=
0
,
invoicesTypeId
,
// 单据类型ID
relevanceInvoices
,
// 对应单据
relevanceInvoicesId
,
// 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
...
...
@@ -13,6 +15,8 @@ const EditBills: React.FC = () => {
return
(
<
BillsForm
id=
{
id
}
deliveryNo=
{
deliveryNo
}
storageNo=
{
storageNo
}
invoicesTypeId=
{
invoicesTypeId
}
relevanceInvoices=
{
relevanceInvoices
}
relevanceInvoicesId=
{
relevanceInvoicesId
}
...
...
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