feat(fdfh): 辅导分红文案改为培育津贴

This commit is contained in:
woody 2025-06-30 11:51:14 +08:00
parent 2efc0c210d
commit 3fb2ec45d0
12 changed files with 500 additions and 794 deletions

View File

@ -1606,7 +1606,7 @@ export const constantRoutes = [
path: 'fdfh',
name: 'CoachingDividends',
component: () => import('@/views/configManage/bonus/fdfh'),
meta: { title: '辅导分红', icon: 'table' },
meta: { title: '培育津贴', icon: 'table' },
hidden: true
},

View File

@ -2,9 +2,9 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="maintable">
<el-table
@ -18,22 +18,23 @@
align="center"
prop="awardsName"
:label="'真实奖衔'"
>
</el-table-column>
<el-table-column align="center" prop="coachAlgebra" :label="'辅导代数'">
/>
<el-table-column align="center" prop="coachAlgebra" :label="'培育代数'">
<template slot-scope="scope">
<el-input clearable
:disabled="ifupdate"
<el-input
v-model="scope.row.coachAlgebra"
></el-input>
clearable
:disabled="ifupdate"
/>
</template>
</el-table-column>
<el-table-column align="center" prop="coachRatio" :label="'辅导比例' +'(%)'">
<el-table-column align="center" prop="coachRatio" :label="'培育津贴比例' +'(%)'">
<template slot-scope="scope">
<el-input clearable
:disabled="ifupdate"
<el-input
v-model="scope.row.coachRatio"
></el-input>
clearable
:disabled="ifupdate"
/>
</template>
</el-table-column>
<el-table-column
@ -42,10 +43,11 @@
:label="'分红比例' +'(%)'"
>
<template slot-scope="scope">
<el-input clearable
:disabled="ifupdate"
<el-input
v-model="scope.row.abonusRatio"
></el-input>
clearable
:disabled="ifupdate"
/>
</template>
</el-table-column>
</el-table>
@ -53,9 +55,10 @@
</div>
<div class="footer">
<div style="margin: 0 auto">
<el-button class="thebtn btn1" @click="ifupdate = false"
>{{'修改'}}</el-button
>
<el-button
class="thebtn btn1"
@click="ifupdate = false"
>{{ '修改' }}</el-button>
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
</div>
</div>
@ -63,97 +66,59 @@
</template>
<script>
import topBar from "@/components/topBar";
import { getcoachBonusList, updateCoachBonus } from "@/api/bonus";
import topBar from '@/components/topBar'
import { getcoachBonusList, updateCoachBonus } from '@/api/bonus'
import { mixin } from './mixins'
export default {
name: "Fdfh",
name: 'Fdfh',
components: {
topBar,
topBar
},
mixins: [mixin],
data() {
return {
moren: "fdfh",
topList: [
{
name: '奖项配置',
path: "bonus",
},
{
name: '直推配置',
path: "ztpz",
},
{
name: '拓展配置',
path: "kzpz",
},
{
name: '辅导分红',
path: "fdfh",
},
{
name: '服务补贴',
path: "fwbt",
},
{
name: '奖金扣项',
path: "jjkx",
},
{
name: '云代配置',
path: "ydpz",
},
{
name: '环球积分',
path: "hqjf",
},
{
name: '车奖积分',
path: "njjf",
},
],
moren: 'fdfh',
tableData: [],
ifupdate: true,
};
ifupdate: true
}
},
created() {
this.getcoachBonusList();
this.getcoachBonusList()
},
methods: {
getcoachBonusList() {
getcoachBonusList().then((res) => {
this.tableData = res.rows;
});
this.tableData = res.rows
})
},
//
//
savedate() {
this.ifupdate = true;
updateCoachBonus({awardsList:this.tableData}).then((res) => {
this.ifupdate = true
updateCoachBonus({ awardsList: this.tableData }).then((res) => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
type: 'success'
})
} else {
this.$message({
message: res.msg,
type: "warning",
});
type: 'warning'
})
}
this.getcoachBonusList();
});
this.getcoachBonusList()
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -2,9 +2,9 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="maintable">
<el-table
@ -19,8 +19,7 @@
:formatter="checkTypeList"
prop="serviceType"
:label="'服务类型'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="serviceRadio"
@ -28,11 +27,11 @@
>
<template slot-scope="scope">
<el-input
v-model="scope.row.serviceRadio"
clearable
class="theinput"
:disabled="ifupdate"
v-model="scope.row.serviceRadio"
></el-input>
/>
</template>
</el-table-column>
<el-table-column
@ -42,16 +41,16 @@
>
<template slot-scope="scope">
<el-select
v-model="scope.row.assessmentType"
clearable
:disabled="ifupdate"
v-model="scope.row.assessmentType"
>
<el-option
v-for="item in ssessmentTypeList"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</template>
</el-table-column>
@ -72,131 +71,93 @@
</template>
<script>
import topBar from "@/components/topBar";
import topBar from '@/components/topBar'
import {
getServiceList,
updateService,
getServiceTypeList,
getAssessmentType,
} from "@/api/bonus";
getAssessmentType
} from '@/api/bonus'
import { mixin } from './mixins'
export default {
name: "Fwbt",
name: 'Fwbt',
components: {
topBar,
topBar
},
mixins: [mixin],
data() {
return {
moren: "fwbt",
topList: [
{
name: '奖项配置',
path: "bonus",
},
{
name: '直推配置',
path: "ztpz",
},
{
name: '拓展配置',
path: "kzpz",
},
{
name: '辅导分红',
path: "fdfh",
},
{
name: '服务补贴',
path: "fwbt",
},
{
name: '奖金扣项',
path: "jjkx",
},
{
name: '云代配置',
path: "ydpz",
},
{
name: '环球积分',
path: "hqjf",
},
{
name: '车奖积分',
path: "njjf",
},
],
moren: 'fwbt',
tableData: [
{
name: "asads",
put: 2,
},
name: 'asads',
put: 2
}
],
ifupdate: true,
serviceTypeList: [],
ssessmentTypeList: [],
};
ssessmentTypeList: []
}
},
created() {
this.getServiceList();
this.getServiceTypeList();
this.getServiceList()
this.getServiceTypeList()
},
methods: {
//
//
getServiceList() {
getServiceList().then((res) => {
this.tableData = res.rows;
});
this.tableData = res.rows
})
},
//
//
getServiceTypeList() {
getServiceTypeList().then((res) => {
this.serviceTypeList = res.data;
});
//
this.serviceTypeList = res.data
})
//
getAssessmentType().then((res) => {
this.ssessmentTypeList = res.data;
});
this.ssessmentTypeList = res.data
})
},
//
//
checkTypeList(row) {
let state = "";
let state = ''
this.serviceTypeList.forEach((item) => {
if (item.value == row.serviceType) {
state = item.label;
state = item.label
}
});
return state;
})
return state
},
//
//
savedate() {
this.ifupdate = true;
this.ifupdate = true
updateService({ bdBonusServiceList: this.tableData }).then((res) => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
type: 'success'
})
} else {
this.$message({
message: res.msg,
type: "warning",
});
type: 'warning'
})
}
this.getServiceList();
});
this.getServiceList()
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -2,9 +2,9 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="maintable">
<el-table
@ -13,11 +13,10 @@
:header-cell-style="{ background: '#EEEEEE' }"
:row-class-name="tableRowClassName"
>
<el-table-column width="200px" align="center" prop="awardsName" :label="'真实奖衔'">
</el-table-column>
<el-table-column align="center" prop="globalIntegral" :label="'环球比例' +'(%)'">
<el-table-column width="200px" align="center" prop="awardsName" :label="'真实奖衔'" />
<el-table-column align="center" prop="globalIntegral" :label="'环球比例' +'(%)'">
<template slot-scope="scope">
<el-input clearable :disabled="ifupdate" v-model="scope.row.globalIntegral"></el-input>
<el-input v-model="scope.row.globalIntegral" clearable :disabled="ifupdate" />
</template>
</el-table-column>
</el-table>
@ -25,106 +24,67 @@
</div>
<div class="footer">
<div style="margin: 0 auto">
<el-button class="thebtn btn1" @click="ifupdate=false">{{'修改'}}</el-button>
<el-button class="thebtn btn2" @click="savedate">{{'保存'}}</el-button>
<el-button class="thebtn btn1" @click="ifupdate=false">{{ '修改' }}</el-button>
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
</div>
</div>
</div>
</template>
<script>
import topBar from "@/components/topBar";
import {getintegralList,updategLobalIntegral} from '@/api/bonus'
import topBar from '@/components/topBar'
import { getintegralList, updategLobalIntegral } from '@/api/bonus'
import { mixin } from './mixins'
export default {
name: "Hqjf",
name: 'Hqjf',
components: {
topBar,
topBar
},
mixins: [mixin],
data() {
return {
moren: "hqjf",
topList: [
{
name: '奖项配置',
path: "bonus",
},
{
name: '直推配置',
path: "ztpz",
},
{
name: '拓展配置',
path: "kzpz",
},
{
name: '辅导分红',
path: "fdfh",
},
{
name: '服务补贴',
path: "fwbt",
},
{
name: '奖金扣项',
path: "jjkx",
},
{
name: '云代配置',
path: "ydpz",
},
{
name: '环球积分',
path: "hqjf",
},
{
name: '车奖积分',
path: "njjf",
},
],
moren: 'hqjf',
tableData: [],
ifupdate:true,
};
ifupdate: true
}
},
created(){
created() {
this.getintegralList()
},
methods: {
getintegralList(){
getintegralList().then(res=>{
getintegralList() {
getintegralList().then(res => {
this.tableData = res.rows
})
},
//
savedate(){
//
savedate() {
this.ifupdate = true
updategLobalIntegral({lobalIntegralList:this.tableData}).then(res=>{
updategLobalIntegral({ lobalIntegralList: this.tableData }).then(res => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
type: 'success'
})
} else {
this.$message({
message: res.msg,
type: "warning",
});
type: 'warning'
})
}
this.getintegralList()
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -3,81 +3,77 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="maintop">
<div class="mainbtn">
<el-button size="mini" class="thebtn1" @click="adddate"
> {{ '生成' }}</el-button
>
<el-button
size="mini"
class="thebtn1"
@click="adddate"
> {{ '生成' }}</el-button>
<el-button size="mini" class="thebtn2" @click="handleExport"> {{ '导出' }}</el-button>
</div>
<div class="maintitle">{{ '基于报单时间,往后延期天数' }}</div>
</div>
<div class="maintable">
<el-table
v-loading="loading"
height="750px"
:data="tableData"
v-loading="loading"
style="width: 100%"
:header-cell-style="{ background: '#EEEEEE' }"
:row-class-name="tableRowClassName"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column type="selection" width="55" />
<el-table-column
align="center"
prop="bonusName"
:label="'奖项名称'"
width="180"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="settleType2"
:label="'结算周期'"
width="180"
>
</el-table-column>
<el-table-column align="center" prop="publishTime" :label="'公布时间'">
</el-table-column>
/>
<el-table-column align="center" prop="publishTime" :label="'公布时间'" />
<el-table-column
align="center"
prop="publishDate2"
:label="'公布日期(天)'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="grantDate2"
:label="'发放日期(天)'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="withdrawalDate2"
:label="'可提现日期(天)'"
>
</el-table-column>
<el-table-column align="center" prop="time" :label="'操作'" fixed="right" >
/>
<el-table-column align="center" prop="time" :label="'操作'" fixed="right">
<template slot-scope="scope">
<el-button
@click.native.prevent="update(scope.row)"
type="text"
size="small"
class="button-s"
style="color:#6962F6"
@click.native.prevent="update(scope.row)"
>
{{ '修改' }}
</el-button>
<el-button
class="button-s"
@click.native.prevent="deleteRow(scope.row)"
type="text"
size="small"
style="color: #c73030"
@click.native.prevent="deleteRow(scope.row)"
>
{{ '删除' }}
</el-button>
@ -104,21 +100,22 @@
<el-row style="display: flex;justify-content:space-between ">
<el-col :span="12">
<el-form-item :label="'奖项名称'" prop="bonusName">
<el-input clearable
<el-input
v-model="form.bonusName"
clearable
:placeholder="'请输入奖项名称'"
></el-input>
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="'结算周期'" prop="settleType">
<el-select clearable v-model="form.settleType" :placeholder="'请选择结算周期'">
<el-form-item :label="'结算周期'" prop="settleType">
<el-select v-model="form.settleType" clearable :placeholder="'请选择结算周期'">
<el-option
v-for="item in settleList"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
@ -130,14 +127,14 @@
v-model="form.publishTime"
:placeholder="'请选择公布时间'"
value-format="HH:mm:ss"
>
</el-time-picker>
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="'公布日期(天)'" prop="publishDate">
<el-select clearable
<el-select
v-model="form.publishDate"
clearable
:placeholder="'请选择公布日期(天)'"
>
<el-option
@ -145,7 +142,7 @@
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
@ -153,8 +150,9 @@
<el-row>
<el-col :span="12">
<el-form-item :label="'发布日期(天)'" prop="grantDate">
<el-select clearable
<el-select
v-model="form.grantDate"
clearable
:placeholder="'请选择发布日期(天)'"
>
<el-option
@ -162,14 +160,15 @@
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="'可提现日期(天)'" prop="withdrawalDate">
<el-select clearable
<el-select
v-model="form.withdrawalDate"
clearable
:placeholder="'请选择可提现日期(天)'"
>
<el-option
@ -177,7 +176,7 @@
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
@ -185,14 +184,14 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button class="cancels" @click="handleClose"> {{ '取消' }}</el-button>
<el-button class="submit" style="margin-left: 40px" @click="onSubmit('form')">{{'确定'}}</el-button>
<el-button class="submit" style="margin-left: 40px" @click="onSubmit('form')">{{ '确定' }}</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import topBar from "@/components/topBar";
import topBar from '@/components/topBar'
import {
getbonusList,
deletebonusList,
@ -200,89 +199,52 @@ import {
scBonusList,
updateBonus,
getsettlement,
getPublishDate,
} from "@/api/bonus";
getPublishDate
} from '@/api/bonus'
import { mixin } from './mixins'
export default {
name: "Bonus",
name: 'Bonus',
components: {
topBar,
topBar
},
mixins: [mixin],
data() {
return {
moren: "bonus",
topList: [
{
name: '奖项配置',
path: "bonus",
},
{
name: '直推配置',
path: "ztpz",
},
{
name: '拓展配置',
path: "kzpz",
},
{
name: '辅导分红',
path: "fdfh",
},
{
name: '服务补贴',
path: "fwbt",
},
{
name: '奖金扣项',
path: "jjkx",
},
{
name: '云代配置',
path: "ydpz",
},
{
name: '环球积分',
path: "hqjf",
},
{
name: '车奖积分',
path: "njjf",
},
],
moren: 'bonus',
tableData: [],
loading:false,
loading: false,
multipleSelection: [],
updateShow: false,
total: 0,
queryParams: {
pageNum: 1,
pageSize: 50,
pageSize: 50
},
settleList: [], //
publishDate: [], //
settleList: [], //
publishDate: [], //
form: {
bonusName: "", //
settleType: "", //
publishTime: "", //
publishDate: "", //()
grantDate: "", //()
withdrawalDate: "", //()
bonusName: '', //
settleType: '', //
publishTime: '', //
publishDate: '', // ()
grantDate: '', // ()
withdrawalDate: '' // ()
},
rules: {},
};
rules: {}
}
},
created() {
this.getbonusList();
this.getsettlement();
this.getPublishDate();
this.getbonusList()
this.getsettlement()
this.getPublishDate()
},
methods: {
/** 导出按钮操作 */
handleExport() {
this.$confirm( '是否确认导出所有数据项?', '警告', {
/** 导出按钮操作 */
handleExport() {
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
type: 'warning'
}).then((_) => {
this.download(
'/system/manage/bd-bonus-items/export',
@ -291,117 +253,117 @@ export default {
)
})
},
//
//
getPublishDate() {
getPublishDate().then((res) => {
this.publishDate = res.data;
});
this.publishDate = res.data
})
},
//
//
getsettlement() {
getsettlement().then((res) => {
this.settleList = res.data;
});
this.settleList = res.data
})
},
//
//
onSubmit(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
//
//
updateBonus(this.form).then((res) => {
if (res.code == 200) {
this.updateShow = false;
this.updateShow = false
this.$message({
message: res.msg,
type: "success",
});
this.getbonusList();
type: 'success'
})
this.getbonusList()
} else {
this.$message({
message: res.msg,
type: "warning",
});
type: 'warning'
})
}
});
})
} else {
return false;
return false
}
});
})
},
//
//
adddate() {
scBonusList({}).then((res) => {
if (res.code == 200) {
this.getbonusList();
this.getbonusList()
}
});
})
},
//
//
update(row) {
this.updateShow = true;
this.updateShow = true
getOneBounsList(row.pkId).then((res) => {
this.form = res.data;
});
this.form = res.data
})
},
//
//
getbonusList() {
this.loading = true
getbonusList(this.queryParams).then((res) => {
res.rows.forEach((element) => {
this.settleList.forEach((item) => {
if (element.settleType == item.value) {
element.settleType2 = item.label;
element.settleType2 = item.label
}
});
})
this.publishDate.forEach((child) => {
if (element.publishDate == child.value) {
element.publishDate2 = child.label;
element.publishDate2 = child.label
}
if (element.grantDate == child.value) {
element.grantDate2 = child.label;
element.grantDate2 = child.label
}
if (element.withdrawalDate == child.value) {
element.withdrawalDate2 = child.label;
element.withdrawalDate2 = child.label
}
});
});
this.tableData = res.rows;
this.total = res.total;
})
})
this.tableData = res.rows
this.total = res.total
this.loading = false
});
})
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.multipleSelection = val
},
handleClose() {
this.updateShow = false;
this.$refs["form"].clearValidate();
this.$refs["form"].resetFields();
this.updateShow = false
this.$refs['form'].clearValidate()
this.$refs['form'].resetFields()
},
//
//
deleteRow(row) {
this.$confirm('确定删除?').then((_) => {
deletebonusList(row.pkId).then((res) => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
this.getbonusList();
type: 'success'
})
this.getbonusList()
}
});
});
})
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style scoped lang="scss">
.el-date-editor.el-input, .el-date-editor.el-input__inner{

View File

@ -2,9 +2,9 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="maintable">
<el-table
@ -19,31 +19,31 @@
align="center"
prop="bonusName"
:label="'奖金名称'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="backRatio"
:label="'重复消费'+'(%)'"
>
<template slot-scope="scope">
<el-input clearable
:disabled="ifupdate"
<el-input
v-model="scope.row.backRatio"
></el-input>
clearable
:disabled="ifupdate"
/>
</template>
</el-table-column>
<el-table-column
align="center"
prop="platformRatio"
:label="'平台消费'+'(%)'"
>
<template slot-scope="scope">
<el-input clearable
:disabled="ifupdate"
<el-input
v-model="scope.row.platformRatio"
></el-input>
clearable
:disabled="ifupdate"
/>
</template>
</el-table-column>
</el-table>
@ -51,82 +51,45 @@
</div>
<div class="footer">
<div style="margin: 0 auto">
<el-button class="thebtn btn1" @click="ifupdate = false"
> {{ '修改' }}</el-button
>
<el-button class="thebtn btn2" @click="savedate">{{'保存'}}</el-button>
<el-button
class="thebtn btn1"
@click="ifupdate = false"
> {{ '修改' }}</el-button>
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
</div>
</div>
</div>
</template>
<script>
import topBar from "@/components/topBar";
import { getDeductList, updateDeduct, getDeductTypeList } from "@/api/bonus";
import topBar from '@/components/topBar'
import { getDeductList, updateDeduct, getDeductTypeList } from '@/api/bonus'
import { mixin } from './mixins'
export default {
name: "Jjkx",
name: 'Jjkx',
components: {
topBar,
topBar
},
mixins: [mixin],
data() {
return {
moren: "jjkx",
topList: [
{
name: '奖项配置',
path: "bonus",
},
{
name: '直推配置',
path: "ztpz",
},
{
name: '拓展配置',
path: "kzpz",
},
{
name: '辅导分红',
path: "fdfh",
},
{
name: '服务补贴',
path: "fwbt",
},
{
name: '奖金扣项',
path: "jjkx",
},
{
name: '云代配置',
path: "ydpz",
},
{
name: '环球积分',
path: "hqjf",
},
{
name: '车奖积分',
path: "njjf",
},
],
moren: 'jjkx',
tableData: [
{
name: "asads",
put: 2,
},
name: 'asads',
put: 2
}
],
ifupdate: true,
deductTypeList: [],
};
deductTypeList: []
}
},
created() {
this.getDeductList();
this.getDeductTypeList();
this.getDeductList()
this.getDeductTypeList()
},
methods: {
//
//
// checkType(row){
// let state = "";
// this.deductTypeList.forEach(item=>{
@ -136,46 +99,46 @@ export default {
// })
// return state
// },
//
//
getDeductList() {
getDeductList().then((res) => {
this.tableData = res.data;
});
this.tableData = res.data
})
},
//
//
getDeductTypeList() {
getDeductTypeList().then((res) => {
this.deductTypeList = res.data;
});
this.deductTypeList = res.data
})
},
//
//
savedate() {
this.ifupdate = true;
this.ifupdate = true
updateDeduct({ bonusDeductList: this.tableData }).then((res) => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
type: 'success'
})
} else {
this.$message({
message: res.msg,
type: "warning",
});
type: 'warning'
})
}
this.getDeductList();
});
this.getDeductList()
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -2,9 +2,9 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="maintable">
<el-table
@ -19,8 +19,7 @@
align="center"
prop="gradeName"
:label="'等级'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="expandRatio"
@ -28,10 +27,10 @@
>
<template slot-scope="scope">
<el-input
v-model="scope.row.expandRatio"
clearable
:disabled="ifupdate"
v-model="scope.row.expandRatio"
></el-input>
/>
</template>
</el-table-column>
<el-table-column
@ -41,10 +40,10 @@
>
<template slot-scope="scope">
<el-input
v-model="scope.row.expandCapping"
clearable
:disabled="ifupdate"
v-model="scope.row.expandCapping"
></el-input>
/>
</template>
</el-table-column>
<el-table-column
@ -54,10 +53,10 @@
>
<template slot-scope="scope">
<el-input
v-model="scope.row.repurchaseRatio"
clearable
:disabled="ifupdate"
v-model="scope.row.repurchaseRatio"
></el-input>
/>
</template>
</el-table-column>
<el-table-column
@ -67,10 +66,10 @@
>
<template slot-scope="scope">
<el-input
v-model="scope.row.repurchaseCapping"
clearable
:disabled="ifupdate"
v-model="scope.row.repurchaseCapping"
></el-input>
/>
</template>
</el-table-column>
<el-table-column
@ -80,16 +79,16 @@
>
<template slot-scope="scope">
<el-select
v-model="scope.row.firstCalculate"
clearable
:disabled="ifupdate"
v-model="scope.row.firstCalculate"
>
<el-option
v-for="item in yesNoList"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</template>
</el-table-column>
@ -98,18 +97,18 @@
prop="firstAssess"
label="首购考核"
>
<template slot-scope="scope">
<template slot-scope="scope">
<el-select
v-model="scope.row.firstAssess"
clearable
:disabled="ifupdate"
v-model="scope.row.firstAssess"
>
<el-option
v-for="item in ssessmentTypeList"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</template>
</el-table-column>
@ -118,18 +117,18 @@
prop="repurchaseCalculate"
label="复购计算"
>
<template slot-scope="scope">
<template slot-scope="scope">
<el-select
v-model="scope.row.repurchaseCalculate"
clearable
:disabled="ifupdate"
v-model="scope.row.repurchaseCalculate"
>
<el-option
v-for="item in yesNoList"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</template>
</el-table-column>
@ -140,16 +139,16 @@
>
<template slot-scope="scope">
<el-select
v-model="scope.row.repurchaseAssess"
clearable
:disabled="ifupdate"
v-model="scope.row.repurchaseAssess"
>
<el-option
v-for="item in ssessmentTypeList"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</template>
</el-table-column>
@ -167,8 +166,7 @@
align="center"
prop="expandName"
:label="'4-N配置'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="expandNumber"
@ -176,10 +174,10 @@
>
<template slot-scope="scope">
<el-input
v-model="scope.row.expandNumber"
clearable
:disabled="ifupdate"
v-model="scope.row.expandNumber"
></el-input>
/>
</template>
</el-table-column>
<el-table-column
@ -189,14 +187,14 @@
>
<template slot-scope="scope">
<el-input
v-model="scope.row.expandRatio"
clearable
:disabled="ifupdate"
v-model="scope.row.expandRatio"
></el-input>
/>
</template>
</el-table-column>
<el-table-column align="center" prop="" label=""> </el-table-column>
<el-table-column align="center" prop="" label=""> </el-table-column>
<el-table-column align="center" prop="" label="" />
<el-table-column align="center" prop="" label="" />
</el-table>
<el-table
@ -213,8 +211,8 @@
>
<template slot-scope="scope">
<el-select
clearable
v-model="scope.row.value"
clearable
:placeholder="'请选择'"
:disabled="ifupdate"
>
@ -223,148 +221,111 @@
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
/>
</el-select>
</template>
</el-table-column>
<el-table-column align="center" prop="" label=""> </el-table-column>
<el-table-column align="center" prop="" label="" />
<el-table-column align="center" prop="" label=""> </el-table-column>
<el-table-column align="center" prop="" label=""> </el-table-column>
<el-table-column align="center" prop="" label=""> </el-table-column>
<el-table-column align="center" prop="" label="" />
<el-table-column align="center" prop="" label="" />
<el-table-column align="center" prop="" label="" />
</el-table>
</div>
</div>
<div class="footer">
<div style="margin: 0 auto">
<el-button class="thebtn btn1" @click="ifupdate = false"
> {{ '修改' }}</el-button
>
<el-button class="thebtn btn2" @click="savedate">{{'保存'}}</el-button>
<el-button
class="thebtn btn1"
@click="ifupdate = false"
> {{ '修改' }}</el-button>
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
</div>
</div>
</div>
</template>
<script>
import topBar from "@/components/topBar";
import {getDealerYesNo} from "@/api/delivery"
import { getExpandList, updateExpand, getbdBonusExpand,getAssessmentType } from "@/api/bonus";
import {getzccsList} from '@/api/siteConfig'
import {saveYfpz} from '@/api/system'
import {isLocals} from "@/utils/numberToCurrency";
import topBar from '@/components/topBar'
import { getDealerYesNo } from '@/api/delivery'
import { getExpandList, updateExpand, getbdBonusExpand, getAssessmentType } from '@/api/bonus'
import { getzccsList } from '@/api/siteConfig'
import { saveYfpz } from '@/api/system'
import { isLocals } from '@/utils/numberToCurrency'
import { mixin } from './mixins'
export default {
name: "Kzpz",
name: 'Kzpz',
components: {
topBar,
topBar
},
mixins: [mixin],
data() {
return {
moren: "kzpz",
topList: [
{
name: '奖项配置',
path: "bonus",
},
{
name: '直推配置',
path: "ztpz",
},
{
name: '拓展配置',
path: "kzpz",
},
{
name: '辅导分红',
path: "fdfh",
},
{
name: '服务补贴',
path: "fwbt",
},
{
name: '奖金扣项',
path: "jjkx",
},
{
name: '云代配置',
path: "ydpz",
},
{
name: '环球积分',
path: "hqjf",
},
{
name: '车奖积分',
path: "njjf",
},
],
moren: 'kzpz',
tableData: [],
tableData2: [],
tableData3: [],
ifupdate: true,
fdWayList: [
{ value: '1', label: "日" },
{ value: '2', label: "周" },
{ value: '1', label: '日' },
{ value: '2', label: '周' }
],
ssessmentTypeList: [],
yesNoList:[]
};
yesNoList: []
}
},
created() {
this.getExpandList();
this.getExpandList()
},
methods: {
isLocals,
//
//
getExpandList() {
getExpandList().then((res) => {
this.tableData = res.rows;
});
this.tableData = res.rows
})
getbdBonusExpand().then((res) => {
this.tableData2 = res.rows;
});
getzccsList({key:'EXPAND_CAP_METHOD1'}).then(res=>{
this.tableData2 = res.rows
})
getzccsList({ key: 'EXPAND_CAP_METHOD1' }).then(res => {
this.tableData3 = res.data
})
//
getAssessmentType().then((res) => {
this.ssessmentTypeList = res.data;
});
getDealerYesNo().then(res=>{
//
getAssessmentType().then((res) => {
this.ssessmentTypeList = res.data
})
getDealerYesNo().then(res => {
this.yesNoList = res.data
})
},
//
//
savedate() {
this.ifupdate = true;
this.ifupdate = true
updateExpand({
expandList: this.tableData,
bonusExpands: this.tableData2,
bonusExpands: this.tableData2
}).then((res) => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
this.getExpandList();
type: 'success'
})
this.getExpandList()
}
});
saveYfpz(this.tableData3).then(res=>{
})
saveYfpz(this.tableData3).then(res => {
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -0,0 +1,45 @@
export const mixin = {
data() {
return {
topList: [
{
name: '奖项配置',
path: 'bonus'
},
{
name: '直推配置',
path: 'ztpz'
},
{
name: '拓展配置',
path: 'kzpz'
},
{
name: '培育津贴',
path: 'fdfh'
},
{
name: '服务补贴',
path: 'fwbt'
},
{
name: '奖金扣项',
path: 'jjkx'
},
{
name: '云代配置',
path: 'ydpz'
},
{
name: '环球积分',
path: 'hqjf'
},
{
name: '车奖积分',
path: 'njjf'
}
]
}
}
}

View File

@ -2,9 +2,9 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="maintable">
<el-table
@ -18,18 +18,18 @@
align="center"
prop="awardsName"
:label="'真实奖衔'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="carAwardPoints"
:label="'车奖比例'+'(%)'"
>
<template slot-scope="scope">
<el-input clearable
:disabled="ifupdate"
<el-input
v-model="scope.row.carAwardPoints"
></el-input>
clearable
:disabled="ifupdate"
/>
</template>
</el-table-column>
</el-table>
@ -37,114 +37,78 @@
</div>
<div class="footer">
<div style="margin: 0 auto">
<el-button class="thebtn btn1" @click="ifupdate = false"
>{{'修改'}}</el-button
>
<el-button class="thebtn btn2" @click="savedate">{{'保存'}}</el-button>
<el-button
class="thebtn btn1"
@click="ifupdate = false"
>{{ '修改' }}</el-button>
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
</div>
</div>
</div>
</template>
<script>
import topBar from "@/components/topBar";
import { getintegralList, updategCarAwardPoints } from "@/api/bonus";
import topBar from '@/components/topBar'
import { getintegralList, updategCarAwardPoints } from '@/api/bonus'
import { mixin } from './mixins'
export default {
name: "Njjf",
name: 'Njjf',
components: {
topBar,
topBar
},
mixins: [mixin],
data() {
return {
moren: "njjf",
topList: [
{
name: '奖项配置',
path: "bonus",
},
{
name: '直推配置',
path: "ztpz",
},
{
name: '拓展配置',
path: "kzpz",
},
{
name: '辅导分红',
path: "fdfh",
},
{
name: '服务补贴',
path: "fwbt",
},
{
name: '奖金扣项',
path: "jjkx",
},
{
name: '云代配置',
path: "ydpz",
},
{
name: '环球积分',
path: "hqjf",
},
{
name: '车奖积分',
path: "njjf",
},
],
moren: 'njjf',
tableData: [
{
name: "asads",
put: 2,
},
name: 'asads',
put: 2
}
],
ifupdate: true,
};
ifupdate: true
}
},
created() {
this.getintegralList();
this.getintegralList()
},
methods: {
getintegralList() {
getintegralList().then((res) => {
this.tableData = res.rows;
});
this.tableData = res.rows
})
},
//
//
savedate() {
this.ifupdate = true;
this.ifupdate = true
updategCarAwardPoints({ carAwardPointsList: this.tableData }).then(
(res) => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
type: 'success'
})
} else {
this.$message({
message: res.msg,
type: "warning",
});
type: 'warning'
})
}
this.getintegralList()
}
);
)
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -2,9 +2,9 @@
<div class="page">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="main">
<div class="maintable">
<el-table
@ -13,11 +13,10 @@
:header-cell-style="{ background: '#EEEEEE' }"
:row-class-name="tableRowClassName"
>
<el-table-column width="200px" align="center" prop="cloudTypeVal" :label="'云代收益'">
</el-table-column>
<el-table-column align="center" prop="cloudRatio" :label="'比例'+'(%)'">
<el-table-column width="200px" align="center" prop="cloudTypeVal" :label="'云代收益'" />
<el-table-column align="center" prop="cloudRatio" :label="'比例'+'(%)'">
<template slot-scope="scope">
<el-input clearable :disabled="ifupdate" v-model="scope.row.cloudRatio"></el-input>
<el-input v-model="scope.row.cloudRatio" clearable :disabled="ifupdate" />
</template>
</el-table-column>
</el-table>
@ -26,103 +25,66 @@
<div class="footer">
<div style="margin: 0 auto">
<el-button class="thebtn btn1" @click="ifupdate=false"> {{ '修改' }}</el-button>
<el-button class="thebtn btn2" @click="savedate">{{'保存'}}</el-button>
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
</div>
</div>
</div>
</template>
<script>
import topBar from "@/components/topBar";
import {getCloudList,updateCloud} from '@/api/bonus'
import topBar from '@/components/topBar'
import { getCloudList, updateCloud } from '@/api/bonus'
import { mixin } from './mixins'
export default {
name: "Ydpz",
name: 'Ydpz',
components: {
topBar,
topBar
},
mixins: [mixin],
data() {
return {
moren: "ydpz",
topList: [
{
name: '奖项配置',
path: "bonus",
},
{
name: '直推配置',
path: "ztpz",
},
{
name: '拓展配置',
path: "kzpz",
},
{
name: '辅导分红',
path: "fdfh",
},
{
name: '服务补贴',
path: "fwbt",
},
{
name: '奖金扣项',
path: "jjkx",
},
{
name: '云代配置',
path: "ydpz",
},
{
name: '环球积分',
path: "hqjf",
},
{
name: '车奖积分',
path: "njjf",
},
],
moren: 'ydpz',
tableData: [],
ifupdate:true,
};
ifupdate: true
}
},
created(){
created() {
this.getCloudList()
},
methods: {
getCloudList(){
getCloudList().then(res=>{
this.tableData = res.rows
})
getCloudList() {
getCloudList().then(res => {
this.tableData = res.rows
})
},
//
savedate(){
//
savedate() {
this.ifupdate = true
updateCloud({bonusCloudList:this.tableData}).then(res=>{
updateCloud({ bonusCloudList: this.tableData }).then(res => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
type: 'success'
})
} else {
this.$message({
message: res.msg,
type: "warning",
});
type: 'warning'
})
}
this.getCloudList()
})
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -101,7 +101,7 @@
<div class="linetitle">
<div class="tit" />
{{'直推奖励配置'}}
{{ '直推奖励配置' }}
</div>
<div class="maincontent">
<el-row>
@ -171,7 +171,7 @@
<div class="linetitle">
<div class="tit" />
{{'复购直推配置'}}
{{ '复购直推配置' }}
</div>
<div class="maincontent">
<el-row>
@ -436,53 +436,16 @@ import {
getTakeValueTypeList,
getAlgebra
} from '@/api/bonus'
import { mixin } from './mixins'
export default {
name: 'Ztpz',
components: {
topBar
},
mixins: [mixin],
data() {
return {
moren: 'ztpz',
topList: [
{
name: '奖项配置',
path: 'bonus'
},
{
name: '直推配置',
path: 'ztpz'
},
{
name: '拓展配置',
path: 'kzpz'
},
{
name: '辅导分红',
path: 'fdfh'
},
{
name: '服务补贴',
path: 'fwbt'
},
{
name: '奖金扣项',
path: 'jjkx'
},
{
name: '云代配置',
path: 'ydpz'
},
{
name: '环球积分',
path: 'hqjf'
},
{
name: '车奖积分',
path: 'njjf'
}
],
form: {
bonusDirectLoopExtsList: [
{

View File

@ -44,9 +44,9 @@ module.exports = {
},
proxy: {
'/prod-api': {
target: 'http://localhost:8080',
changeOrigin: true,
pathRewrite: { '^/prod-api': '' }
target: 'http://t-app.beida777.com',
changeOrigin: true
// pathRewrite: { '^/prod-api': '' }
}
}
},