|
@@ -360,13 +360,15 @@
|
|
<el-input style="width:80%"
|
|
<el-input style="width:80%"
|
|
type="number"
|
|
type="number"
|
|
@mousewheel.native.prevent
|
|
@mousewheel.native.prevent
|
|
|
|
+ v-model="item.mode.price"
|
|
disabled></el-input>
|
|
disabled></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="item">
|
|
<div class="item">
|
|
<el-input style="width:80%"
|
|
<el-input style="width:80%"
|
|
type="number"
|
|
type="number"
|
|
@mousewheel.native.prevent
|
|
@mousewheel.native.prevent
|
|
- v-model="item.mode.GROUP"></el-input>
|
|
|
|
|
|
+ v-model="item.mode.GROUP"
|
|
|
|
+ @input='groupInput(item)'></el-input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -386,6 +388,7 @@
|
|
<el-input style="width:80%"
|
|
<el-input style="width:80%"
|
|
type="number"
|
|
type="number"
|
|
@mousewheel.native.prevent
|
|
@mousewheel.native.prevent
|
|
|
|
+ @input='deposiInput(item)'
|
|
v-model="item.mode.LEASE"></el-input>
|
|
v-model="item.mode.LEASE"></el-input>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -405,7 +408,7 @@
|
|
<el-input style="width:80%"
|
|
<el-input style="width:80%"
|
|
type="number"
|
|
type="number"
|
|
@mousewheel.native.prevent
|
|
@mousewheel.native.prevent
|
|
- v-model="item.mode.FREE"></el-input>
|
|
|
|
|
|
+ disabled></el-input>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -510,7 +513,7 @@ export default {
|
|
let isLEASE = false
|
|
let isLEASE = false
|
|
let isGROUP = false
|
|
let isGROUP = false
|
|
let depositFee = sub.depositFee
|
|
let depositFee = sub.depositFee
|
|
- // let price = sub.price
|
|
|
|
|
|
+ let price = sub.price
|
|
if (sub.kitGroupPurchaseTypeJson) {
|
|
if (sub.kitGroupPurchaseTypeJson) {
|
|
let expectJson = JSON.parse(sub.kitGroupPurchaseTypeJson);
|
|
let expectJson = JSON.parse(sub.kitGroupPurchaseTypeJson);
|
|
|
|
|
|
@@ -537,7 +540,7 @@ export default {
|
|
'GROUP': GROUP || 0,
|
|
'GROUP': GROUP || 0,
|
|
'LEASE': LEASE || 0,
|
|
'LEASE': LEASE || 0,
|
|
'depositFee': depositFee || 0, // 保证金
|
|
'depositFee': depositFee || 0, // 保证金
|
|
- // 'price': price || 0,// 团购价
|
|
|
|
|
|
+ 'price': price || 0,// 团购价
|
|
'isFREE': isFREE,
|
|
'isFREE': isFREE,
|
|
'isGROUP': isGROUP,
|
|
'isGROUP': isGROUP,
|
|
'isLEASE': isLEASE,
|
|
'isLEASE': isLEASE,
|
|
@@ -796,10 +799,11 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
let kitGroupPurchaseTypeJson = ''
|
|
let kitGroupPurchaseTypeJson = ''
|
|
- let depositFee;
|
|
|
|
|
|
+ let depositFee, price;
|
|
active.fangshi.forEach(fs => {
|
|
active.fangshi.forEach(fs => {
|
|
if (fs.id == zl) {
|
|
if (fs.id == zl) {
|
|
depositFee = fs.mode.depositFee
|
|
depositFee = fs.mode.depositFee
|
|
|
|
+ price = fs.mode.price
|
|
let types = {}
|
|
let types = {}
|
|
if (fs.mode.isFREE) {
|
|
if (fs.mode.isFREE) {
|
|
types.FREE = fs.mode.FREE
|
|
types.FREE = fs.mode.FREE
|
|
@@ -818,7 +822,7 @@ export default {
|
|
type: 'INSTRUMENT',
|
|
type: 'INSTRUMENT',
|
|
goodsIdList: zl,
|
|
goodsIdList: zl,
|
|
name: goodsItem.name,
|
|
name: goodsItem.name,
|
|
- price: goodsItem.groupPurchasePrice,
|
|
|
|
|
|
+ price,
|
|
kitGroupPurchaseTypeJson,
|
|
kitGroupPurchaseTypeJson,
|
|
depositFee
|
|
depositFee
|
|
}
|
|
}
|
|
@@ -854,7 +858,7 @@ export default {
|
|
// kitGroupPurchaseType: active.fangshi,
|
|
// kitGroupPurchaseType: active.fangshi,
|
|
subName: active.sound,
|
|
subName: active.sound,
|
|
subjectId: active.id,
|
|
subjectId: active.id,
|
|
- depositFee// depositFee 只有租赁才有
|
|
|
|
|
|
+ // depositFee// depositFee 只有租赁才有
|
|
}
|
|
}
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
})
|
|
})
|
|
@@ -892,10 +896,11 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
let kitGroupPurchaseTypeJson = ''
|
|
let kitGroupPurchaseTypeJson = ''
|
|
- let depositFee;
|
|
|
|
|
|
+ let depositFee, price;
|
|
active.fangshi.forEach(fs => {
|
|
active.fangshi.forEach(fs => {
|
|
if (fs.id == zl) {
|
|
if (fs.id == zl) {
|
|
depositFee = fs.mode.depositFee
|
|
depositFee = fs.mode.depositFee
|
|
|
|
+ price = fs.mode.price
|
|
let types = {}
|
|
let types = {}
|
|
|
|
|
|
if (fs.mode.isFREE) {
|
|
if (fs.mode.isFREE) {
|
|
@@ -918,7 +923,7 @@ export default {
|
|
name: goodsItem.name,
|
|
name: goodsItem.name,
|
|
kitGroupPurchaseTypeJson,
|
|
kitGroupPurchaseTypeJson,
|
|
depositFee,
|
|
depositFee,
|
|
- price: goodsItem.groupPurchasePrice
|
|
|
|
|
|
+ price
|
|
}
|
|
}
|
|
obj.musicGroupSubjectGoodsGroups.push(some);
|
|
obj.musicGroupSubjectGoodsGroups.push(some);
|
|
})
|
|
})
|
|
@@ -953,7 +958,7 @@ export default {
|
|
// kitGroupPurchaseType: active.fangshi,
|
|
// kitGroupPurchaseType: active.fangshi,
|
|
subName: active.sound,
|
|
subName: active.sound,
|
|
subjectId: active.id,
|
|
subjectId: active.id,
|
|
- depositFee: depositFee // depositFee 只有租赁才有
|
|
|
|
|
|
+ // depositFee: depositFee // depositFee 只有租赁才有
|
|
}
|
|
}
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
})
|
|
})
|
|
@@ -1029,7 +1034,6 @@ export default {
|
|
for (let j in row.zhonglei) {
|
|
for (let j in row.zhonglei) {
|
|
|
|
|
|
if (row.goodsList[i].id == row.zhonglei[j]) {
|
|
if (row.goodsList[i].id == row.zhonglei[j]) {
|
|
-
|
|
|
|
row.fangshi.push({
|
|
row.fangshi.push({
|
|
shopName: row.goodsList[i].name,
|
|
shopName: row.goodsList[i].name,
|
|
id: row.goodsList[i].id,
|
|
id: row.goodsList[i].id,
|
|
@@ -1037,8 +1041,8 @@ export default {
|
|
'FREE': 0,
|
|
'FREE': 0,
|
|
'GROUP': 0,
|
|
'GROUP': 0,
|
|
'LEASE': 0,
|
|
'LEASE': 0,
|
|
- 'depositFee': 0, // 保证金
|
|
|
|
- 'price': 0,// 团购价
|
|
|
|
|
|
+ 'depositFee': 1500, // 保证金
|
|
|
|
+ 'price': row.goodsList[i].groupPurchasePrice,// 团购价
|
|
'isFREE': false,
|
|
'isFREE': false,
|
|
'isGROUP': false,
|
|
'isGROUP': false,
|
|
'isLEASE': false,
|
|
'isLEASE': false,
|
|
@@ -1059,6 +1063,17 @@ export default {
|
|
this.reductionVisible = false
|
|
this.reductionVisible = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ groupInput (item) {
|
|
|
|
+ if (item.mode.price - item.mode.GROUP < 0) {
|
|
|
|
+ item.mode.GROUP = item.mode.price
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ deposiInput (item) {
|
|
|
|
+ if (item.mode.depositFee - item.mode.LEASE < 0) {
|
|
|
|
+ item.mode.LEASE = item.mode.depositFee
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
@@ -1089,7 +1104,7 @@ export default {
|
|
str += `免费:减免金额${val[i].mode['FREE']}\n`
|
|
str += `免费:减免金额${val[i].mode['FREE']}\n`
|
|
}
|
|
}
|
|
if (val[i].mode.isGROUP) {
|
|
if (val[i].mode.isGROUP) {
|
|
- str += `团购:减免金额${val[i].mode['GROUP']}\n`
|
|
|
|
|
|
+ str += `团购:团购价${val[i].mode['price']},减免金额${val[i].mode['GROUP']}\n`
|
|
}
|
|
}
|
|
if (val[i].mode.isLEASE) {
|
|
if (val[i].mode.isLEASE) {
|
|
str += `租赁:${val[i].mode.depositFee},减免金额${val[i].mode['FREE']}\n`
|
|
str += `租赁:${val[i].mode.depositFee},减免金额${val[i].mode['FREE']}\n`
|