提交
This commit is contained in:
@@ -78,12 +78,14 @@
|
|||||||
<el-table-column prop="id" label="名称">
|
<el-table-column prop="id" label="名称">
|
||||||
<template slot-scope="scope">{{scope.row.couponEntity.couponName}}</template>
|
<template slot-scope="scope">{{scope.row.couponEntity.couponName}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column prop="id" label="作用时间">
|
<el-table-column prop="id" label="获得途径">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
生效时间:{{scope.row.couponEntity.effectTime}}<br/>
|
<span v-if="scope.row.getType == 0">后台赠送<br/>
|
||||||
结束时间:{{scope.row.couponEntity.expireTime}}
|
<i>原因:{{scope.row.remark}}</i>
|
||||||
|
</span>
|
||||||
|
<span v-if="scope.row.getType == 1">主动获取</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column>
|
||||||
<el-table-column prop="id" label="使用上限(x张)">
|
<el-table-column prop="id" label="使用上限(x张)">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{scope.row.couponEntity.limitedCollar}}
|
{{scope.row.couponEntity.limitedCollar}}
|
||||||
@@ -160,7 +162,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="赠送原因">
|
<el-form-item label="赠送原因">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="youForm.reason" type="textarea"
|
v-model="youForm.remark" type="textarea"
|
||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
@@ -230,7 +232,7 @@ export default {
|
|||||||
dataListLoading: false,
|
dataListLoading: false,
|
||||||
youForm: {
|
youForm: {
|
||||||
couponName:'',
|
couponName:'',
|
||||||
reason:'后台客服操作赠送',
|
remark:'后台客服操作赠送',
|
||||||
ids:undefined
|
ids:undefined
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -278,12 +280,14 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('/common/coupon/delCoupon'),
|
url: this.$http.adornUrl('/common/coupon/delCouponHistory'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
id: id
|
couponHistoryId: id
|
||||||
})
|
})
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
if(data.code!== 0) return this.$message.error(data.msg)
|
||||||
|
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: '操作成功',
|
||||||
@@ -302,6 +306,7 @@ export default {
|
|||||||
dialogHandleClose(){
|
dialogHandleClose(){
|
||||||
this.youVisible = false
|
this.youVisible = false
|
||||||
this.youForm.ids = undefined
|
this.youForm.ids = undefined
|
||||||
|
this.youForm.remark = ''
|
||||||
|
|
||||||
},
|
},
|
||||||
surYou() {
|
surYou() {
|
||||||
@@ -315,6 +320,7 @@ export default {
|
|||||||
}
|
}
|
||||||
var data = {
|
var data = {
|
||||||
"couponId": this.youForm.ids,
|
"couponId": this.youForm.ids,
|
||||||
|
"remark": this.youForm.remark,
|
||||||
"userId": this.userId,
|
"userId": this.userId,
|
||||||
"getType":0 //获取类型 0 后台赠送 1 主动获取
|
"getType":0 //获取类型 0 后台赠送 1 主动获取
|
||||||
}
|
}
|
||||||
@@ -335,13 +341,14 @@ export default {
|
|||||||
})
|
})
|
||||||
this.dialogHandleClose()
|
this.dialogHandleClose()
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
}else{
|
|
||||||
this.$message({
|
|
||||||
message: data.msg,
|
|
||||||
type: 'error',
|
|
||||||
duration: 1500,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
// else{
|
||||||
|
// this.$message({
|
||||||
|
// message: data.msg,
|
||||||
|
// type: 'error',
|
||||||
|
// duration: 1500,
|
||||||
|
// })
|
||||||
|
// }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
givePersonCoupon() {
|
givePersonCoupon() {
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
<el-button type="text" size="small">充/扣天医币记录</el-button>
|
<el-button type="text" size="small">充/扣天医币记录</el-button>
|
||||||
</router-link>
|
</router-link>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item><el-button type="text" size="small" @click=" thisUserID = scope.row.id; youVisible = true">优惠券列表</el-button></el-dropdown-item>
|
<el-dropdown-item><el-button type="text" size="small" @click=" thisUserID = scope.row.id; youVisible = true">优惠券管理</el-button></el-dropdown-item>
|
||||||
<el-dropdown-item><el-button type="text" size="small" @click="resetPassword(scope.row)">修改密码</el-button></el-dropdown-item>
|
<el-dropdown-item><el-button type="text" size="small" @click="resetPassword(scope.row)">修改密码</el-button></el-dropdown-item>
|
||||||
<el-dropdown-item>
|
<el-dropdown-item>
|
||||||
<router-link :to="{ path: '/userCourse', query: {id:scope.row.id} }">
|
<router-link :to="{ path: '/userCourse', query: {id:scope.row.id} }">
|
||||||
|
|||||||
Reference in New Issue
Block a user