Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
faf2c3ec
Commit
faf2c3ec
authored
May 22, 2022
by
季圣华
Browse files
优化商品编辑时候单位的校验
parent
06b90012
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/material/modules/MaterialModal.vue
View file @
faf2c3ec
...
@@ -644,8 +644,15 @@
...
@@ -644,8 +644,15 @@
}
}
}
else
if
(
formData
.
unitId
)
{
}
else
if
(
formData
.
unitId
)
{
if
(
commodityUnit
!=
basicUnit
&&
commodityUnit
!=
otherUnit
&&
commodityUnit
!=
otherUnitTwo
&&
commodityUnit
!=
otherUnitThree
)
{
if
(
commodityUnit
!=
basicUnit
&&
commodityUnit
!=
otherUnit
&&
commodityUnit
!=
otherUnitTwo
&&
commodityUnit
!=
otherUnitThree
)
{
this
.
$message
.
warning
(
'
条码之后的单位填写有误,单位【
'
+
commodityUnit
+
'
】请修改为【
'
let
warnInfo
=
'
条码之后的单位填写有误,单位【
'
+
commodityUnit
+
'
】请修改为【
'
+
basicUnit
+
'
】或【
'
+
otherUnit
+
'
】
'
+
basicUnit
+
'
】或【
'
+
otherUnit
+
'
】或【
'
+
otherUnitTwo
+
'
】或【
'
+
otherUnitThree
+
'
】!
'
);
if
(
otherUnitTwo
)
{
warnInfo
+=
'
或【
'
+
otherUnitTwo
+
'
】
'
}
if
(
otherUnitThree
)
{
warnInfo
+=
'
或【
'
+
otherUnitThree
+
'
】
'
}
warnInfo
+=
'
!
'
this
.
$message
.
warning
(
warnInfo
);
return
;
return
;
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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