Commit 2919f79b by 杨明

fixed

1 parent d3900a37
......@@ -13,7 +13,7 @@
<div class="gift-table">
<div class="goods-panel">
<div v-show="currentIndex == 1" class="car-table">
<GLTable :hasPage="false" v-loading="loading" ref="carRef" :tableData="carList" :tableParams="carTableParams" @refreshTable="getCarList" @select="handleSelectionCarTable" @selectAll="handleSelectionCarTableAll">
<GLTable :hasPage="false" v-loading="loading" ref="carRef" :tableData="carList" :tableParams="carTableParams" @refreshTable="getCarList" @select="handleSelectionCarTable" @select-all="handleSelectionCarTableAll">
<template slot="price" slot-scope="scope">
<el-input v-model="scope.scope.packageAmount" @blur="calcCarValue(scope.scope)" placeholder="请输入" oninput="value=value.match(/\d+\.?\d{0,2}/, '')"></el-input>
</template>
......@@ -338,7 +338,7 @@ export default {
if (selected.length > 0) {
this.addRows(this.selectedServiceList, selected, 'id')
} else {
this.selectedServiceList = this.deleteRows(this.selectedServiceList, selected, 'id')
this.selectedServiceList = this.deleteRows(this.selectedServiceList, this.serviceList, 'id')
}
},
// 选择/取消 生活权益
......@@ -354,7 +354,7 @@ export default {
if (selected.length > 0) {
this.addRows(this.selectedGoodsList, selected, 'id')
} else {
this.selectedGoodsList = this.deleteRows(this.selectedGoodsList, selected, 'id')
this.selectedGoodsList = this.deleteRows(this.selectedGoodsList, this.goodsList, 'id')
}
console.log(this.selectedGoodsList)
},
......@@ -371,7 +371,7 @@ export default {
if (selected.length > 0) {
this.addRows(this.selectedCarList, selected, 'packageCode')
} else {
this.selectedCarList = this.deleteRows(this.selectedCarList, selected, 'packageCode')
this.selectedCarList = this.deleteRows(this.selectedCarList, this.carList, 'packageCode')
}
this.calcCarValue()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!