Commit 3bd730f0 by 杨明

fixed

1 parent a0fa2d96
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div v-show="currentIndex == 1" class="car-table"> <div v-show="currentIndex == 1" class="car-table">
<GLTable :hasPage="false" v-loading="loading" ref="carRef" :tableData="carList" :tableParams="carTableParams" @refreshTable="getCarList" @select="handleSelectionCarTable"> <GLTable :hasPage="false" v-loading="loading" ref="carRef" :tableData="carList" :tableParams="carTableParams" @refreshTable="getCarList" @select="handleSelectionCarTable">
<template slot="price" slot-scope="scope"> <template slot="price" slot-scope="scope">
<el-input v-model="scope.scope.packageAmount" @blur="calcCarValue" placeholder="请输入" oninput="value=value.match(/\d+\.?\d{0,2}/, '')"></el-input> <el-input v-model="scope.scope.packageAmount" @blur="calcCarValue(scope.scope)" placeholder="请输入" oninput="value=value.match(/\d+\.?\d{0,2}/, '')"></el-input>
</template> </template>
</GLTable> </GLTable>
<div class="car-gift flex-space-between"> <div class="car-gift flex-space-between">
...@@ -209,9 +209,12 @@ export default { ...@@ -209,9 +209,12 @@ export default {
this.giftList = res || [] this.giftList = res || []
}) })
}, },
calcCarValue() { calcCarValue(scope) {
this.totalPrice = 0 this.totalPrice = 0
for (let i = 0; i < this.selectedCarList.length; i++) { for (let i = 0; i < this.selectedCarList.length; i++) {
if (scope && scope.packageCode == this.selectedCarList[i].packageCode) {
this.selectedCarList[i].packageAmount = scope.packageAmount
}
if (!this.selectedCarList[i].packageAmount) { if (!this.selectedCarList[i].packageAmount) {
this.$message.error('输入用车权益价格') this.$message.error('输入用车权益价格')
return return
...@@ -254,6 +257,7 @@ export default { ...@@ -254,6 +257,7 @@ export default {
params.equityServices = equityServices.join(',') params.equityServices = equityServices.join(',')
params.activityPrice = (this.editForm.activityPrice * 100).toFixed(0) params.activityPrice = (this.editForm.activityPrice * 100).toFixed(0)
params.superMarketingCouponRelRequestList = selectedGoodsList || [] params.superMarketingCouponRelRequestList = selectedGoodsList || []
console.log(params)
this.SET_STEP(3) this.SET_STEP(3)
this.setProcess({ this.setProcess({
1: { 1: {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-07-06 11:45:15 * @Date: 2023-07-06 11:45:15
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-17 11:26:13 * @LastEditTime: 2023-07-17 18:21:24
* @FilePath: \scrm-micro-link\src\views\activityLink\components\SelectInsure.vue * @FilePath: \scrm-micro-link\src\views\activityLink\components\SelectInsure.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -42,13 +42,21 @@ export default { ...@@ -42,13 +42,21 @@ export default {
methods: { methods: {
...mapActions('marketing', ['getCalendarDetail']), ...mapActions('marketing', ['getCalendarDetail']),
calendarPage() { calendarPage() {
this.$apis.marketing.calendarPage({ pageSize: 100, pageNum: 1,status: 1 }).then(res => { this.$apis.marketing.calendarPage({ pageSize: 100, pageNum: 1, status: 1 }).then(res => {
this.modelList = (res.data || []).filter(item => item.marketingType == 5) this.modelList = (res.data || []).filter(item => item.marketingType == 5)
this.selectObj = this.modelList[0] this.selectObj = this.modelList[0]
}) })
}, },
handleConfirm() { handleConfirm() {
this.$confirm('是否覆盖营销礼包的内容?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.$emit('handleSure', this.selectObj) this.$emit('handleSure', this.selectObj)
})
.catch(() => {})
}, },
handleModelClose() { handleModelClose() {
this.$emit('handleClose') this.$emit('handleClose')
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
<img class="server-type" :src="require(`@/assets/coupon/equity.png`)" /> <img class="server-type" :src="require(`@/assets/coupon/equity.png`)" />
<div class="gift-content"> <div class="gift-content">
<div class="gift-item" v-for="(subItem, subIndex) in selectedEquityList" :key="subIndex"> <div class="gift-item" v-for="(subItem, subIndex) in selectedEquityList" :key="subIndex">
<p :class="['gift-coupon-name']">{{ subitem.packageName }}</p> <p :class="['gift-coupon-name']">{{ subitem && subitem.packageName }}</p>
<i class="el-icon-delete" style="color: #c6c6c6" @click="handleEquityDelete(subIndex)"></i> <i class="el-icon-delete" style="color: #c6c6c6" @click="handleEquityDelete(subIndex)"></i>
</div> </div>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!