Commit d3ebd1e6 authored by 罗超's avatar 罗超

1

parent 45931769
......@@ -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
}
},
},
};
......
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