|
@ -466,11 +466,14 @@ export default {
|
|
|
this.$toast.clear()
|
|
|
if(res.obj && res.obj.orderList){
|
|
|
var list = _.filter(res.obj.orderList, v=>{
|
|
|
return v.status===0
|
|
|
return v.status===0 || v.status==-5
|
|
|
})
|
|
|
if(list.length){
|
|
|
list.forEach(v=>{
|
|
|
var allPrice = 0
|
|
|
if(v.status == -5){
|
|
|
v.status = -99
|
|
|
}
|
|
|
v.drugList.forEach(d=>{
|
|
|
allPrice += d.price * ((d.quantity&&Number(d.quantity)) || 1)
|
|
|
})
|