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
b475d4ef
Commit
b475d4ef
authored
Sep 24, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转进销存单据
parent
f47136da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
useSelfTable.tsx
...tion/saleOrder/addSaleDelevedOrder/model/useSelfTable.tsx
+1
-1
useBusinessEffects.ts
...kSellStorage/bills/addBills/effects/useBusinessEffects.ts
+2
-1
index.tsx
...ges/transaction/stockSellStorage/bills/addBills/index.tsx
+14
-0
No files found.
src/pages/transaction/saleOrder/addSaleDelevedOrder/model/useSelfTable.tsx
View file @
b475d4ef
...
@@ -107,7 +107,7 @@ export const useSelfTable = () => {
...
@@ -107,7 +107,7 @@ export const useSelfTable = () => {
}
}
const
handleAdd
=
async
(
record
)
=>
{
const
handleAdd
=
async
(
record
)
=>
{
history
.
push
(
`/memberCenter/tranactionAbility/stockSellStorage/addBills?relevanceInvoicesId=
${
record
.
id
}
&invoicesTypeId=S002&relevanceInvoices=1`
)
history
.
push
(
`/memberCenter/tranactionAbility/stockSellStorage/addBills?
orderNo=
${
record
.
orderNo
}
&deliveryAddresId=
${
record
.
deliveryAddresId
}
&
relevanceInvoicesId=
${
record
.
id
}
&invoicesTypeId=S002&relevanceInvoices=1`
)
}
}
return
{
return
{
...
...
src/pages/transaction/stockSellStorage/bills/addBills/effects/useBusinessEffects.ts
View file @
b475d4ef
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2020-09-16 15:16:47
* @Date: 2020-09-16 15:16:47
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-09-24
16:02:02
* @LastEditTime: 2020-09-24
20:11:39
* @Description: 联动逻辑相关
* @Description: 联动逻辑相关
*/
*/
import
{
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
...
@@ -314,6 +314,7 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -314,6 +314,7 @@ export const useBusinessEffects = (context, actions) => {
onFieldValueChange$
(
'orderNo'
).
subscribe
(
fieldState
=>
{
onFieldValueChange$
(
'orderNo'
).
subscribe
(
fieldState
=>
{
const
relevanceInvoicesVal
=
getFieldValue
(
'relevanceInvoices'
);
const
relevanceInvoicesVal
=
getFieldValue
(
'relevanceInvoices'
);
const
first
=
fieldState
.
value
&&
fieldState
.
value
[
0
];
const
first
=
fieldState
.
value
&&
fieldState
.
value
[
0
];
console
.
log
(
'first'
,
first
)
setFieldValue
(
'memberName'
,
first
?
first
.
memberName
:
''
);
setFieldValue
(
'memberName'
,
first
?
first
.
memberName
:
''
);
setFieldValue
(
'relevanceInvoicesId'
,
first
?
first
.
id
:
null
);
setFieldValue
(
'relevanceInvoicesId'
,
first
?
first
.
id
:
null
);
...
...
src/pages/transaction/stockSellStorage/bills/addBills/index.tsx
View file @
b475d4ef
...
@@ -46,6 +46,11 @@ const AddBills: React.FC<{}> = (props: any) => {
...
@@ -46,6 +46,11 @@ const AddBills: React.FC<{}> = (props: any) => {
pageStatus
,
pageStatus
,
preview
,
preview
,
id
,
id
,
invoicesTypeId
,
relevanceInvoices
,
orderNo
,
deliveryAddresId
,
relevanceInvoicesId
,
}
=
usePageStatus
();
}
=
usePageStatus
();
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
type
:
'checkbox'
});
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
type
:
'checkbox'
});
...
@@ -156,6 +161,15 @@ const AddBills: React.FC<{}> = (props: any) => {
...
@@ -156,6 +161,15 @@ const AddBills: React.FC<{}> = (props: any) => {
);
);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
invoicesTypeId
&&
relevanceInvoices
&&
orderNo
&&
deliveryAddresId
&&
relevanceInvoicesId
)
{
setBillInfo
({
invoicesTypeId
,
relevanceInvoices
:
+
relevanceInvoices
,
orderNo
:
orderNo
?
[{
orderNo
,
id
:
+
relevanceInvoicesId
}]
:
[],
deliveryAddresId
:
+
deliveryAddresId
,
});
}
getBillInfo
();
getBillInfo
();
},
[]);
},
[]);
...
...
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