Commit d5ff468c authored by zhengke's avatar zhengke

no message

parent 022d4a20
...@@ -517,8 +517,12 @@ ...@@ -517,8 +517,12 @@
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num) { makeAdocument(row, index, num) {
this.dataList[index].MultipleChoiceList=[]
let list = row.OrderType&&row.OrderType.split(',') let list = row.OrderType&&row.OrderType.split(',')
if(list!=null&&list.length!=0&&num==1){ if(list!=null&&list.length!=0&&num==1){
this.dataList.forEach(item=>{
return item.cost = false
})
this.dataList.forEach(item=>{ this.dataList.forEach(item=>{
return item.actuallyReceived = false return item.actuallyReceived = false
}) })
...@@ -533,6 +537,9 @@ ...@@ -533,6 +537,9 @@
} }
else if(list!=null&&list.length!=0&&num==3){ else if(list!=null&&list.length!=0&&num==3){
this.dataList.forEach(item=>{
return item.actuallyReceived = false
})
this.dataList.forEach(item=>{ this.dataList.forEach(item=>{
return item.cost = false return item.cost = false
}) })
...@@ -582,6 +589,11 @@ ...@@ -582,6 +589,11 @@
}] }]
href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data) href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data)
window.open(href); window.open(href);
for(let i=0;i<$this.dataList.length;i++){
$this.dataList[i].checkList = []
$this.dataList[i].MultipleChoiceList = []
$this.dataList[i].selectedType = ""
}
} }
}else{ }else{
...@@ -618,6 +630,11 @@ ...@@ -618,6 +630,11 @@
} }
href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data) href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data)
window.open(href); window.open(href);
for(let i=0;i<$this.dataList.length;i++){
$this.dataList[i].checkList = []
$this.dataList[i].MultipleChoiceList = []
$this.dataList[i].selectedType = ""
}
} }
} }
......
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