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
2033f7a2
Commit
2033f7a2
authored
Jan 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 去掉数量校验
parent
2f3ccddc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
26 deletions
+28
-26
useBusinessEffects.ts
...mit/components/ExchangeForm/effects/useBusinessEffects.ts
+14
-13
useBusinessEffects.ts
...ubmit/components/RepairForm/effects/useBusinessEffects.ts
+14
-13
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/effects/useBusinessEffects.ts
View file @
2033f7a2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2020-11-03 18:30:47
* @Date: 2020-11-03 18:30:47
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 202
0-12-24 10:36:02
* @LastEditTime: 202
1-01-21 16:26:34
* @Description: 联动逻辑相关
* @Description: 联动逻辑相关
*/
*/
import
{
Modal
}
from
'antd'
;
import
{
Modal
}
from
'antd'
;
...
@@ -61,18 +61,19 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -61,18 +61,19 @@ export const useBusinessEffects = (context, actions) => {
state
=>
state
.
value
.
remaining
,
state
=>
state
.
value
.
remaining
,
);
);
setFieldState
(
// 不需要做数量校验
FormPath
.
transform
(
name
,
/
\d
/
,
$1
=>
{
// setFieldState(
return
`replaceGoodsList.
${
$1
}
.replaceCount`
// FormPath.transform(name, /\d/, $1 => {
}),
// return `replaceGoodsList.${$1}.replaceCount`
state
=>
{
// }),
if
(
+
value
>
replacedCountValue
)
{
// state => {
state
.
errors
=
'填写值已超过最大可换货数量,请重新填写'
;
// if (+value > replacedCountValue) {
}
else
{
// state.errors = '填写值已超过最大可换货数量,请重新填写';
state
.
errors
=
''
;
// } else {
}
// state.errors = '';
}
// }
);
// }
// );
});
});
// 供应会员联动 单据明细
// 供应会员联动 单据明细
...
...
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/effects/useBusinessEffects.ts
View file @
2033f7a2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2020-11-03 18:30:47
* @Date: 2020-11-03 18:30:47
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 202
0-11-17 10:32:48
* @LastEditTime: 202
1-01-21 16:26:00
* @Description: 联动逻辑相关
* @Description: 联动逻辑相关
*/
*/
import
{
Modal
}
from
'antd'
;
import
{
Modal
}
from
'antd'
;
...
@@ -38,18 +38,19 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -38,18 +38,19 @@ export const useBusinessEffects = (context, actions) => {
state
=>
state
.
value
.
remaining
,
state
=>
state
.
value
.
remaining
,
);
);
setFieldState
(
// 不需要做数量校验
FormPath
.
transform
(
name
,
/
\d
/
,
$1
=>
{
// setFieldState(
return
`repairGoodsList.
${
$1
}
.repairCount`
// FormPath.transform(name, /\d/, $1 => {
}),
// return `repairGoodsList.${$1}.repairCount`
state
=>
{
// }),
if
(
+
value
>
repairedCountValue
)
{
// state => {
state
.
errors
=
'填写值已超过最大可维修数量,请重新填写'
;
// if (+value > repairedCountValue) {
}
else
{
// state.errors = '填写值已超过最大可维修数量,请重新填写';
state
.
errors
=
''
;
// } else {
}
// state.errors = '';
}
// }
);
// }
// );
});
});
// 供应会员联动 单据明细
// 供应会员联动 单据明细
...
...
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