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
d3ebd1e6
Commit
d3ebd1e6
authored
May 13, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
45931769
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
addSuppliesStockOut-from.vue
src/components/sale/addSuppliesStockOut-from.vue
+6
-10
No files found.
src/components/sale/addSuppliesStockOut-from.vue
View file @
d3ebd1e6
...
...
@@ -629,13 +629,13 @@
this
.
hcItemList
.
push
(
item
);
});
if
(
this
.
model
.
Type
===
1
){
let
haocaidata
=
Array
.
from
(
new
Set
(
this
.
hccheckList
))
let
haocaidata
=
JSON
.
parse
(
JSON
.
stringify
(
Array
.
from
(
new
Set
(
this
.
hccheckList
))))
// 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
))
this
.
dataList
=
JSON
.
parse
(
JSON
.
stringify
(
Array
.
from
(
new
Set
(
this
.
hcItemList
))
))
}
})
...
...
@@ -665,22 +665,18 @@
},
chukuNum_class
(
val
,
maxVal
,
index
,
rowIndex
){
if
(
val
>
maxVal
){
this
.
dataList_class
[
rowIndex
].
haocaiList
[
index
].
Number
=
maxVal
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
.
dataList_class
[
rowIndex
].
haocaiList
[
index
].
Number
=
maxVal
this
.
dataList_class
[
rowIndex
-
1
].
haocaiList
[
index
].
Number
=
maxVal
}
else
if
(
val
<
0
||
val
==
undefined
||
val
==
null
){
this
.
dataList_class
[
rowIndex
].
haocaiList
[
index
].
Number
=
0
}
},
chukuNum
(
val
,
maxVal
,
index
){
if
(
val
>
maxVal
){
this
.
dataList
[
index
].
Number
=
maxVal
}
else
if
(
val
<
0
||
val
==
undefined
||
val
==
null
){
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