|
|
@@ -102,9 +102,22 @@ export default {
|
|
|
return "";
|
|
|
},
|
|
|
//选择商品总价
|
|
|
- allPrice() {
|
|
|
+ allPriceFun(){
|
|
|
let price = 0;
|
|
|
+ if (this.selectList) {
|
|
|
+ for (const item of this.selectList) {
|
|
|
+ const itemInfo = this.getSelectItemById(item.id, item.classId);
|
|
|
+ if (itemInfo &&!this.$util.isEmpty(itemInfo.itemPrice)) {
|
|
|
+ price += Number(itemInfo.itemPrice);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
+ return Math.round(price * 100) / 100;
|
|
|
+ },
|
|
|
+ allPrice() {
|
|
|
+ let price = 0;
|
|
|
+ console.log('this.selectList',this.selectList)
|
|
|
if (this.selectList) {
|
|
|
for (const item of this.selectList) {
|
|
|
const itemInfo = this.getSelectItemById(item.id, item.classId);
|