Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-inventory
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 143aa70b
authored
Sep 26, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
退货过滤库存为0的商品以及退货时不允许输0
1 parent
d9dc334c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
5 deletions
src/views/sendBack/add.vue
src/views/sendBack/numDialog.vue
src/views/sendBack/add.vue
View file @
143aa70
...
@@ -432,6 +432,7 @@ export default {
...
@@ -432,6 +432,7 @@ export default {
...
this
.
searchForm
,
...
this
.
searchForm
,
...
this
.
editRefundForm
...
this
.
editRefundForm
}
}
_form
.
stockFlag
=
true
this
.
searchFormSearch
=
this
.
$common
.
utils
.
deepClone
(
_form
)
this
.
searchFormSearch
=
this
.
$common
.
utils
.
deepClone
(
_form
)
resolve
()
resolve
()
})
})
...
...
src/views/sendBack/numDialog.vue
View file @
143aa70
<!--
盘点
-->
<!--
退货
-->
<
template
>
<
template
>
<GLDialog
title=
"
盘点
"
<GLDialog
title=
"
退货
"
:visible
.
sync=
"numVisible"
:visible
.
sync=
"numVisible"
class=
"numDailog"
class=
"numDailog"
@
onCancel=
"handleClose"
@
onCancel=
"handleClose"
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
:rules=
"formRules"
:rules=
"formRules"
label-width=
"154px"
label-width=
"154px"
size=
"small"
>
size=
"small"
>
<el-form-item
label=
"
盘点
数量:"
<el-form-item
label=
"
退货
数量:"
prop=
"inventoryNum"
>
prop=
"inventoryNum"
>
<el-input
placeholder=
"请输入
盘点
数量"
<el-input
placeholder=
"请输入
退货
数量"
v-model=
"infoForm.inventoryNum"
v-model=
"infoForm.inventoryNum"
clearable
clearable
@
input=
"handleUpgradeNum"
></el-input>
@
input=
"handleUpgradeNum"
></el-input>
...
@@ -38,7 +38,29 @@ export default {
...
@@ -38,7 +38,29 @@ export default {
},
},
formRules
:
{
formRules
:
{
inventoryNum
:
[{
required
:
true
,
message
:
'请输入盘点数量'
,
trigger
:
'change'
}]
inventoryNum
:
[
{
required
:
true
,
message
:
'请输入退货数量'
,
trigger
:
'blur'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
// 先转成数字
const
num
=
Number
(
value
)
// 检查是否为有效数字
if
(
isNaN
(
num
))
{
return
callback
(
new
Error
(
'请输入有效数字'
))
}
// 检查是否为 0
if
(
num
===
0
)
{
return
callback
(
new
Error
(
'退货数量不能为 0'
))
}
// 校验通过
callback
()
},
trigger
:
'blur'
// 或 'change'/'input'
}
]
},
},
selectLoading
:
false
,
selectLoading
:
false
,
// 基本数据
// 基本数据
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment