自动折扣优化

This commit is contained in:
“wanyongkang”
2021-05-11 15:40:24 +08:00
parent 993695d235
commit dd535cccd2
3 changed files with 18 additions and 9 deletions

View File

@@ -64,10 +64,10 @@
<router-link :to="{name:'account',query:{userId:scope.row.Id}}">
<span class="handel cursor edit">账号</span>
</router-link>
<!-- <router-link :to="{name:'userprice',query:{id:scope.row.Id}}">
<span class="handel cursor edit">会员</span>
</router-link> -->
<span class="handel cursor edit" @click="showUserPrice(scope.row)">会员价</span>
<router-link :to="{name:'userprice',query:{id:scope.row.Id}}">
<span class="handel cursor edit">专项</span>
</router-link>
<span class="handel cursor edit" @click="showUserPrice(scope.row)">折扣</span>
<span class="handel cursor edit" @click="edit(scope.row)">编辑</span>
<span class="handel cursor edit" @click="showAmountDetail(scope.row)">明细</span>
<el-popover @show="showHandle(scope.row)" placement="bottom" trigger="hover" width="180">

View File

@@ -46,10 +46,10 @@
<router-link :to="{name:'account',query:{userId:scope.row.Id}}">
<span class="handel cursor edit">账号</span>
</router-link>
<!-- <router-link :to="{name:'userprice',query:{id:scope.row.Id}}">
<span class="handel cursor edit">会员</span>
</router-link> -->
<span class="handel cursor edit" @click="showUserPrice(scope.row)">会员价</span>
<router-link :to="{name:'userprice',query:{id:scope.row.Id}}">
<span class="handel cursor edit">专项</span>
</router-link>
<span class="handel cursor edit" @click="showUserPrice(scope.row)">折扣</span>
<span class="handel cursor edit" @click="edit(scope.row)">编辑</span>
<span class="handel cursor edit" @click="showAmountDetail(scope.row)">明细</span>
<el-popover placement="bottom" trigger="hover" width="180">

View File

@@ -1,7 +1,8 @@
<template>
<div v-loading="loading">
<div class="heior_box">
<el-button size="small" type="primary" icon="el-icon-plus" @click="showDialogDiscount=true">折扣价格</el-button>
<el-button size="small" type="primary" @click="useDanPrice">使用专项价</el-button>
<div class="search-box">
<el-input v-model="searchModel.keyWord" placeholder="请输入套餐名称/标题" clearable size="small">
<el-button slot="append" icon="el-icon-search" @click="get"></el-button>
@@ -199,6 +200,14 @@ export default {
resetForm() {
this.$refs["inputPackageForm"].resetFields();
this.showDialog = false;
},
useDanPrice() {
if (this.current.UserId) {
// eslint-disable-next-line camelcase
this.$api.post(this.$api.phpURL + 'user/user/useDanPrice', {
userid: this.current.UserId
}).then(res => {})
}
}
}
};