自动折扣优化
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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 => {})
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user