Commit 45931769 authored by 罗超's avatar 罗超

1

parent 8b551072
...@@ -630,9 +630,9 @@ ...@@ -630,9 +630,9 @@
}); });
if(this.model.Type===1){ if(this.model.Type===1){
let haocaidata=Array.from(new Set(this.hccheckList)) let haocaidata=Array.from(new Set(this.hccheckList))
haocaidata.forEach(item=>{ // haocaidata.forEach(item=>{
item.Number=0 // item.Number=""
}) // })
this.dataList_class[this.chooseHcIndex].haocaiList=haocaidata this.dataList_class[this.chooseHcIndex].haocaiList=haocaidata
}else if(this.model.Type===2){ }else if(this.model.Type===2){
this.dataList=Array.from(new Set(this.hcItemList)) this.dataList=Array.from(new Set(this.hcItemList))
...@@ -666,17 +666,18 @@ ...@@ -666,17 +666,18 @@
chukuNum_class(val,maxVal,index,rowIndex){ chukuNum_class(val,maxVal,index,rowIndex){
if(val>maxVal){ if(val>maxVal){
this.dataList_class[rowIndex].haocaiList[index].Number=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.dataList_class[rowIndex].haocaiList[index].Number=0
} }
this.$forceUpdate();
}, },
chukuNum(val,maxVal,index){ chukuNum(val,maxVal,index){
this.$forceUpdate();
if(val>maxVal){ if(val>maxVal){
this.dataList[index].Number=maxVal this.dataList[index].Number=maxVal
}else if(val<0||!val){ }else if(val<0||val==undefined||val==null){
this.dataList[index].Number=0 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