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
a979a372
Commit
a979a372
authored
Jul 29, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 显示加工单价、加工金额
parent
c8d80a89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
useBusinessEffects.ts
.../bills/components/BillsForm/effects/useBusinessEffects.ts
+14
-2
No files found.
src/pages/transaction/stockSellStorage/bills/components/BillsForm/effects/useBusinessEffects.ts
View file @
a979a372
...
@@ -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: 2021-0
3-02 14:30:30
* @LastEditTime: 2021-0
7-29 13:40:54
* @Description: 联动逻辑相关
* @Description: 联动逻辑相关
*/
*/
import
{
Modal
,
message
}
from
'antd'
;
import
{
Modal
,
message
}
from
'antd'
;
...
@@ -388,6 +388,7 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -388,6 +388,7 @@ export const useBusinessEffects = (context, actions) => {
FormPath
.
setIn
(
state
,
'originAsyncData'
,
details
.
map
(
item
=>
({
FormPath
.
setIn
(
state
,
'originAsyncData'
,
details
.
map
(
item
=>
({
...
item
,
...
item
,
// 这里的数据以采购、销售订单的为准
// 这里的数据以采购、销售订单的为准
price
:
item
.
processPrice
,
// 与采购入库单、销售发货单统一
logistics
:
{
logistics
:
{
deliveryType
,
// 手动赋值配送方式,同一个通知单下的所有商品都是统一的配送方式
deliveryType
,
// 手动赋值配送方式,同一个通知单下的所有商品都是统一的配送方式
},
},
...
@@ -418,7 +419,10 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -418,7 +419,10 @@ export const useBusinessEffects = (context, actions) => {
value
:
item
.
id
,
value
:
item
.
id
,
}));
}));
setFieldState
(
'invoicesDetailsRequests.*.product'
,
state
=>
{
setFieldState
(
'invoicesDetailsRequests.*.product'
,
state
=>
{
FormPath
.
setIn
(
state
,
'originAsyncData'
,
details
);
FormPath
.
setIn
(
state
,
'originAsyncData'
,
details
.
map
((
item
)
=>
({
...
item
,
price
:
item
.
processPrice
,
// 与采购入库单、销售发货单统一
})));
FormPath
.
setIn
(
state
,
'props.enum'
,
goodOptions
);
FormPath
.
setIn
(
state
,
'props.enum'
,
goodOptions
);
});
});
});
});
...
@@ -731,6 +735,14 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -731,6 +735,14 @@ export const useBusinessEffects = (context, actions) => {
state
.
value
=
current
.
processNum
;
state
.
value
=
current
.
processNum
;
}
}
);
);
setFieldState
(
FormPath
.
transform
(
name
,
/
\d
/
,
$1
=>
{
return
`invoicesDetailsRequests.
${
$1
}
.amount`
}),
state
=>
{
state
.
value
=
current
.
processPrice
?
`¥
${(
current
.
processNum
*
current
.
processPrice
).
toFixed
(
2
)}
`
:
null
;
}
);
break
;
break
;
}
}
...
...
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