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
陈智峰
jinfa-platform
Commits
e3d25b88
Commit
e3d25b88
authored
Jan 26, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 删除入库、发货id 更改为 单据编号
parent
eca1f22c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
index.tsx
...ion/stockSellStorage/bills/components/BillsForm/index.tsx
+6
-11
editBills.tsx
src/pages/transaction/stockSellStorage/bills/editBills.tsx
+9
-4
No files found.
src/pages/transaction/stockSellStorage/bills/components/BillsForm/index.tsx
View file @
e3d25b88
...
...
@@ -53,15 +53,12 @@ interface BillsFormProps {
*/
id
?:
string
;
/**
*
发货单
号
*
单据编
号
*/
deliveryNo
?:
number
;
invoicesNo
?:
string
;
/**
*
入库单号
*
是否是编辑的
*/
storageNo
?:
number
;
validateId
?:
string
;
// 是否是编辑的
isEdit
?:
boolean
;
/**
* 单据类型ID
...
...
@@ -101,8 +98,7 @@ function transforDirection(type) {
const
BillsForm
:
React
.
FC
<
BillsFormProps
>
=
({
id
=
0
,
deliveryNo
=
0
,
storageNo
=
0
,
invoicesNo
=
''
,
isEdit
=
false
,
invoicesTypeId
,
relevanceInvoices
,
...
...
@@ -167,14 +163,13 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 获取单据详情
const
getBillInfo
=
()
=>
{
if
(
!
id
&&
!
deliveryNo
&&
!
storage
No
)
{
if
(
!
id
&&
!
invoices
No
)
{
return
;
}
setInfoLoading
(
true
);
PublicApi
.
getWarehouseInvoicesDetails
({
invoicesId
:
`
${
id
}
`
,
deliveryNo
,
storageNo
,
invoicesNo
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
...
...
src/pages/transaction/stockSellStorage/bills/editBills.tsx
View file @
e3d25b88
/*
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:35
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-26 18:00:59
* @Description:
*/
import
React
from
'react'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
BillsForm
from
'./components/BillsForm'
;
...
...
@@ -5,8 +12,7 @@ import BillsForm from './components/BillsForm';
const
EditBills
:
React
.
FC
=
()
=>
{
const
{
id
,
deliveryNo
=
0
,
storageNo
=
0
,
invoicesNo
=
''
,
invoicesTypeId
,
// 单据类型ID
relevanceInvoices
,
// 对应单据
relevanceInvoicesId
,
// 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
...
...
@@ -15,8 +21,7 @@ const EditBills: React.FC = () => {
return
(
<
BillsForm
id=
{
id
}
deliveryNo=
{
deliveryNo
}
storageNo=
{
storageNo
}
invoicesNo=
{
invoicesNo
}
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