Commit f1c8af0f authored by Facius's avatar Facius

备件页面冗余代码

parent 4304b5bf
...@@ -137,15 +137,11 @@ ...@@ -137,15 +137,11 @@
this.searchedKeyword = this.keyword this.searchedKeyword = this.keyword
this.$u.api.reserveList(param).then((res) => { this.$u.api.reserveList(param).then((res) => {
if (res.code == 200) { if (res.code == 200) {
for(var item of res.data) {
item.max = item.quantity
}
this.partsList = [] this.partsList = []
let list = res.data || [] let list = res.data || []
for (var item of list) { for (var item of list) {
item.selected = false item.selected = false
item.quantity = 0
this.partsList.push(item) this.partsList.push(item)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment