|
@@ -68,9 +68,8 @@ export default {
|
|
|
if (this.selectList) {
|
|
if (this.selectList) {
|
|
|
for (const item of this.selectList) {
|
|
for (const item of this.selectList) {
|
|
|
const itemInfo = this.getSelectItemById(item.id, item.classId);
|
|
const itemInfo = this.getSelectItemById(item.id, item.classId);
|
|
|
- if ( itemInfo && !this.$util.isEmpty(itemInfo.bigPrice) && !this.$util.isEmpty(itemInfo.smallPrice) ) {
|
|
|
|
|
|
|
+ if ( itemInfo && !this.$util.isEmpty(itemInfo.bigPrice)) {
|
|
|
price += item.bigCount * Number(itemInfo.bigPrice);
|
|
price += item.bigCount * Number(itemInfo.bigPrice);
|
|
|
- price += item.smallCount * Number(itemInfo.smallPrice);
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -81,13 +80,8 @@ export default {
|
|
|
if (this.selectList) {
|
|
if (this.selectList) {
|
|
|
for (const item of this.selectList) {
|
|
for (const item of this.selectList) {
|
|
|
const itemInfo = this.getSelectItemById(item.id, item.classId);
|
|
const itemInfo = this.getSelectItemById(item.id, item.classId);
|
|
|
- if (
|
|
|
|
|
- itemInfo &&
|
|
|
|
|
- !this.$util.isEmpty(itemInfo.bigPrice) &&
|
|
|
|
|
- !this.$util.isEmpty(itemInfo.smallPrice)
|
|
|
|
|
- ) {
|
|
|
|
|
- price += item.bigCount * Number(itemInfo.bigPrice);
|
|
|
|
|
- price += item.smallCount * Number(itemInfo.smallPrice);
|
|
|
|
|
|
|
+ if ( itemInfo && !this.$util.isEmpty(itemInfo.bigPrice) ) {
|
|
|
|
|
+ price += item.bigCount * Number(itemInfo.bigPrice)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|