Commit fbe02bef by 杨明

fixed

1 parent c329d3d4
...@@ -293,7 +293,7 @@ export default { ...@@ -293,7 +293,7 @@ export default {
return return
} }
let equityCode let equityCode
if (this.isGhPackage && !this.giftValue) { if ((this.isGhPackage && !this.giftValue) || (this.isGhPackage && this.isCustom)) {
if (selectedCarList.length == 0) { if (selectedCarList.length == 0) {
this.$message.error('请选择1~2项用车权益') this.$message.error('请选择1~2项用车权益')
return return
...@@ -311,12 +311,10 @@ export default { ...@@ -311,12 +311,10 @@ export default {
equityCode = await this.$apis.marketing.packageGetCode({ equityCode = await this.$apis.marketing.packageGetCode({
merchantId: this.merchantId, merchantId: this.merchantId,
createdBy: this.merchantId, createdBy: this.merchantId,
packageCode: this.equitiesCode,
serviceItemsList serviceItemsList
}) })
} }
if (this.isGhPackage && this.giftValue) {
equityCode = this.equitiesCode
}
this.totalPrice = 0 this.totalPrice = 0
for (let i = 0; i < selectedCarList.length; i++) { for (let i = 0; i < selectedCarList.length; i++) {
this.totalPrice = this.totalPrice + parseFloat(selectedCarList[i].packageAmount || 0) this.totalPrice = this.totalPrice + parseFloat(selectedCarList[i].packageAmount || 0)
...@@ -405,9 +403,6 @@ export default { ...@@ -405,9 +403,6 @@ export default {
if (res && res.id) { if (res && res.id) {
params.id = res.id params.id = res.id
params.name = res.name params.name = res.name
if (res.equities) {
params.equities = JSON.stringify({ [this.equitiesCode]: this.totalPrice })
}
} }
this.$apis.giftBag.packageAdd(params).then(res => { this.$apis.giftBag.packageAdd(params).then(res => {
if (res) { if (res) {
...@@ -751,9 +746,6 @@ export default { ...@@ -751,9 +746,6 @@ export default {
}) })
}, },
tabClick(index) { tabClick(index) {
if ((index == 1 || index == 3) && this.activityInfo.ghExclusiveFlag == 2) {
this.$message.error('不可以修改用车权益/门店服务')
}
this.currentIndex = index this.currentIndex = index
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!