Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
45931769
Commit
45931769
authored
May 13, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8b551072
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
addSuppliesStockOut-from.vue
src/components/sale/addSuppliesStockOut-from.vue
+8
-7
No files found.
src/components/sale/addSuppliesStockOut-from.vue
View file @
45931769
...
...
@@ -630,9 +630,9 @@
});
if
(
this
.
model
.
Type
===
1
){
let
haocaidata
=
Array
.
from
(
new
Set
(
this
.
hccheckList
))
haocaidata
.
forEach
(
item
=>
{
item
.
Number
=
0
})
//
haocaidata.forEach(item=>{
// item.Number=""
//
})
this
.
dataList_class
[
this
.
chooseHcIndex
].
haocaiList
=
haocaidata
}
else
if
(
this
.
model
.
Type
===
2
){
this
.
dataList
=
Array
.
from
(
new
Set
(
this
.
hcItemList
))
...
...
@@ -666,17 +666,18 @@
chukuNum_class
(
val
,
maxVal
,
index
,
rowIndex
){
if
(
val
>
maxVal
){
this
.
dataList_class
[
rowIndex
].
haocaiList
[
index
].
Number
=
maxVal
}
else
if
(
val
<
0
||!
val
){
console
.
log
(
"大于"
,
this
.
dataList_class
[
rowIndex
].
haocaiList
[
index
].
Number
)
}
else
if
(
val
<
0
||
val
==
undefined
||
val
==
null
){
console
.
log
(
"小于"
)
this
.
dataList_class
[
rowIndex
].
haocaiList
[
index
].
Number
=
0
}
this
.
$forceUpdate
();
},
chukuNum
(
val
,
maxVal
,
index
){
this
.
$forceUpdate
();
if
(
val
>
maxVal
){
this
.
dataList
[
index
].
Number
=
maxVal
}
else
if
(
val
<
0
||
!
va
l
){
}
else
if
(
val
<
0
||
val
==
undefined
||
val
==
nul
l
){
this
.
dataList
[
index
].
Number
=
0
}
...
...
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