|
|
@@ -72,8 +72,13 @@ export default {
|
|
|
!this.$util.isEmpty(itemInfo.bigPrice) &&
|
|
|
!this.$util.isEmpty(itemInfo.smallPrice)
|
|
|
) {
|
|
|
- price += item.bigCount * Number(itemInfo.bigPrice);
|
|
|
- price += item.smallCount * Number(itemInfo.smallPrice);
|
|
|
+ if(item.userPrice>0){
|
|
|
+ price += item.userPrice;
|
|
|
+ }else{
|
|
|
+ price += item.bigCount * Number(itemInfo.bigPrice);
|
|
|
+ price += item.smallCount * Number(itemInfo.smallPrice);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -140,7 +145,8 @@ export default {
|
|
|
element.child.forEach(child => {
|
|
|
child.classId = element.classId;
|
|
|
child.className = element.className;
|
|
|
- child.realityWeight = 0
|
|
|
+ child.realityWeight = 0;
|
|
|
+ child.userPrice = 0;
|
|
|
});
|
|
|
});
|
|
|
this.productInfo = data;
|
|
|
@@ -364,14 +370,16 @@ export default {
|
|
|
bigCount: null, //扎数
|
|
|
smallCount: null, //支数
|
|
|
autoPrice: null, //调价价格
|
|
|
- realityWeight: null //调价价格
|
|
|
+ realityWeight: null, //调价价格
|
|
|
+ userPrice: null, //调价价格
|
|
|
};
|
|
|
list.push(params);
|
|
|
- console.log(list)
|
|
|
+ console.log(list,'-----------')
|
|
|
if(type!='noAdd'){
|
|
|
this.setSelectInfoByType({ type: this.pageType, info: list });
|
|
|
}
|
|
|
this.$nextTick(()=>{
|
|
|
+ console.log(9999)
|
|
|
this.customNum(params1)
|
|
|
})
|
|
|
},
|
|
|
@@ -454,6 +462,7 @@ export default {
|
|
|
list[index].bigCount = Number(item.bigNum);
|
|
|
list[index].smallCount = Number(item.smallNum);
|
|
|
list[index].realityWeight = Number(item.realityWeight),
|
|
|
+ list[index].userPrice = Number(item.userPrice),
|
|
|
list[index].itemPrice = item.itemPrice?Number(item.itemPrice):'';
|
|
|
}
|
|
|
}
|
|
|
@@ -463,6 +472,7 @@ export default {
|
|
|
bigCount: Number(item.bigCount),
|
|
|
smallCount: Number(item.smallCount),
|
|
|
realityWeight: Number(item.realityWeight),
|
|
|
+ userPrice: Number(item.userPrice),
|
|
|
itemPrice: item.itemPrice?Number(item.itemPrice):''
|
|
|
};
|
|
|
|