|
|
|
@ -28,7 +28,7 @@
|
|
|
|
<el-table-column prop="tier4Rate" label="第四阶梯比例" />
|
|
|
|
<el-table-column prop="tier4Rate" label="第四阶梯比例" />
|
|
|
|
<el-table-column prop="renewalRate" label="续费率" />
|
|
|
|
<el-table-column prop="renewalRate" label="续费率" />
|
|
|
|
<el-table-column prop="referralRate" label="转介绍率" />
|
|
|
|
<el-table-column prop="referralRate" label="转介绍率" />
|
|
|
|
<el-table-column prop="isActive" label="是否生效" />
|
|
|
|
<el-table-column prop="isActive" :formatter="activeFormat" label="是否生效" />
|
|
|
|
<el-table-column prop="effectiveDate" label="生效日期" />
|
|
|
|
<el-table-column prop="effectiveDate" label="生效日期" />
|
|
|
|
<el-table-column width="150" label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column width="150" label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -61,7 +61,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="第二阶梯阈值:" prop="tier2Threshold">
|
|
|
|
<el-form-item label="第二阶梯阈值:" prop="tier2Threshold">
|
|
|
|
<el-input v-model="form.tier2Threshold" placeholder="第二阶梯阈值(0-?元)" />
|
|
|
|
<el-input v-model="form.tier2Threshold" placeholder="第二阶梯阈值(?-?元)" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
@ -71,7 +71,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="第三阶梯阈值:" prop="tier3Threshold">
|
|
|
|
<el-form-item label="第三阶梯阈值:" prop="tier3Threshold">
|
|
|
|
<el-input v-model="form.tier3Threshold" placeholder="第三阶梯阈值(0-?元)" />
|
|
|
|
<el-input v-model="form.tier3Threshold" placeholder="第三阶梯阈值(?-?元)" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
@ -91,7 +91,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="转介绍率:" prop="referralRate">
|
|
|
|
<el-form-item label="转介绍率:" prop="referralRate">
|
|
|
|
<el-input v-model="form.tier1Threshold" placeholder="转介绍率(8-10%)" />
|
|
|
|
<el-input v-model="form.referralRate" placeholder="转介绍率(8-10%)" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
@ -102,11 +102,11 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="生效日期:" prop="referralRate">
|
|
|
|
<el-form-item label="生效日期:" prop="effectiveDate">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="form.effectiveDate"
|
|
|
|
v-model="form.effectiveDate"
|
|
|
|
:format="dateFormat"
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
:valueFormat="dateFormat"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
|
placeholder="选择日期" />
|
|
|
|
placeholder="选择日期" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
@ -146,7 +146,6 @@ export default {
|
|
|
|
isActive:1,
|
|
|
|
isActive:1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
dateFormat:'yyyy/MM/dd',
|
|
|
|
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
|
planName:'',
|
|
|
|
planName:'',
|
|
|
|
tier1Threshold:null,
|
|
|
|
tier1Threshold:null,
|
|
|
|
@ -181,6 +180,14 @@ export default {
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
activeFormat(row,column,cellValue){
|
|
|
|
|
|
|
|
for (const item of this.options) {
|
|
|
|
|
|
|
|
if (item.value===cellValue){
|
|
|
|
|
|
|
|
return item.label
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return cellValue
|
|
|
|
|
|
|
|
},
|
|
|
|
// 取消按钮
|
|
|
|
// 取消按钮
|
|
|
|
cancel() {
|
|
|
|
cancel() {
|
|
|
|
this.open = false
|
|
|
|
this.open = false
|
|
|
|
@ -200,7 +207,7 @@ export default {
|
|
|
|
renewalRate:null,
|
|
|
|
renewalRate:null,
|
|
|
|
referralRate:null,
|
|
|
|
referralRate:null,
|
|
|
|
isActive:1,
|
|
|
|
isActive:1,
|
|
|
|
effectiveDate:new Date().getDate(),
|
|
|
|
effectiveDate:new Date(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.resetForm('form')
|
|
|
|
this.resetForm('form')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -245,19 +252,18 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
const id = row.roomId || this.ids
|
|
|
|
|
|
|
|
this.$confirm('是否确认删除?', '警告', {
|
|
|
|
this.$confirm('是否确认删除?', '警告', {
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
type: 'warning'
|
|
|
|
type: 'warning'
|
|
|
|
}).then(function() {
|
|
|
|
}).then(function() {
|
|
|
|
return remove({id:id})
|
|
|
|
return remove(row)
|
|
|
|
}).then((response) => {
|
|
|
|
}).then((response) => {
|
|
|
|
if (response.respCode === 200) {
|
|
|
|
if (response.code === 200) {
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
this.msgSuccess('删除成功')
|
|
|
|
this.msgSuccess('删除成功')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.msgError(response.respMsg)
|
|
|
|
this.msgError(response.msg)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch(function() {})
|
|
|
|
}).catch(function() {})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|