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
b8d71152
Commit
b8d71152
authored
Oct 22, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
8b1700e8
0fe96d9d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
useBusinessEffects.ts
...kSellStorage/bills/addBills/effects/useBusinessEffects.ts
+2
-3
No files found.
src/pages/transaction/stockSellStorage/bills/addBills/effects/useBusinessEffects.ts
View file @
b8d71152
...
@@ -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-10-2
1 19:09:27
* @LastEditTime: 2020-10-2
2 09:25:26
* @Description: 联动逻辑相关
* @Description: 联动逻辑相关
*/
*/
import
{
Modal
}
from
'antd'
;
import
{
Modal
}
from
'antd'
;
...
@@ -394,7 +394,6 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -394,7 +394,6 @@ export const useBusinessEffects = (context, actions) => {
const
{
name
,
originAsyncData
,
value
}
=
fieldState
;
const
{
name
,
originAsyncData
,
value
}
=
fieldState
;
const
current
=
originAsyncData
.
find
(
item
=>
item
.
productId
===
value
);
const
current
=
originAsyncData
.
find
(
item
=>
item
.
productId
===
value
);
console
.
log
(
'value'
,
value
)
// 取消选择
// 取消选择
if
(
!
value
)
{
if
(
!
value
)
{
setFieldState
(
setFieldState
(
...
@@ -472,7 +471,7 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -472,7 +471,7 @@ export const useBusinessEffects = (context, actions) => {
return
`invoicesDetailsRequests.
${
$1
}
.productCount`
return
`invoicesDetailsRequests.
${
$1
}
.productCount`
}),
}),
state
=>
{
state
=>
{
state
.
value
=
1
;
state
.
value
=
current
.
purchaseCount
;
}
}
);
);
setFieldState
(
setFieldState
(
...
...
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