Commit 3ba38403 authored by 黄媛媛's avatar 黄媛媛

修改优惠券管理

parent a3e31668
...@@ -127,14 +127,13 @@ ...@@ -127,14 +127,13 @@
<th>{{$t('system.query_type')}}</th> <th>{{$t('system.query_type')}}</th>
<th>{{$t('active.cl_sytiaojian')}}</th> <th>{{$t('active.cl_sytiaojian')}}</th>
<th>{{$t('active.cl_miane')}}</th> <th>{{$t('active.cl_miane')}}</th>
<!-- <th>使用状态</th> -->
<th>{{$t('active.cl_djshiyong')}}</th> <th>{{$t('active.cl_djshiyong')}}</th>
<th>{{$t('active.cl_sxriqi')}}</th> <th>{{$t('active.cl_sxriqi')}}</th>
<th>{{$t('active.cl_sxzhuangtai')}}</th> <th>{{$t('active.cl_sxzhuangtai')}}</th>
<th>{{$t('active.cl_gqriqi')}}</th> <th>{{$t('active.cl_gqriqi')}}</th>
<th>{{$t('MarketingActi.usingRange')}}</th> <th>{{$t('MarketingActi.usingRange')}}</th>
<th>{{$t('admin.admin_status')}}</th> <th>{{$t('admin.admin_status')}}</th>
<th>{{$t('active.cl_addPp')}}</th> <th>是否结束</th>
<th>{{$t('MarketingActi.huangoujia')}}</th> <th>{{$t('MarketingActi.huangoujia')}}</th>
<th>{{$t('MarketingActi.huodongtime')}}</th> <th>{{$t('MarketingActi.huodongtime')}}</th>
<th>{{$t('hotel.hotel_remark')}}</th> <th>{{$t('hotel.hotel_remark')}}</th>
...@@ -176,7 +175,10 @@ ...@@ -176,7 +175,10 @@
<span v-if="item.couponStatus == 2" style="color: gray">{{$t('active.ld_jinyong')}}</span> <span v-if="item.couponStatus == 2" style="color: gray">{{$t('active.ld_jinyong')}}</span>
<span v-if="item.couponStatus == 3" style="color: red">{{$t('system.ph_shanchu')}}</span> <span v-if="item.couponStatus == 3" style="color: red">{{$t('system.ph_shanchu')}}</span>
</td> </td>
<td>{{item.createUserName}}</td> <td>
<span v-if="item.activityIsEnding=='0'">未结束</span>
<span v-if="item.activityIsEnding=='1'">已结束</span>
</td>
<td>{{item.redemptionPrice}}</td> <td>{{item.redemptionPrice}}</td>
<td> <td>
<p>{{$t('system.table_begTime')}}{{item.activityStartDate}}</p> <p>{{$t('system.table_begTime')}}{{item.activityStartDate}}</p>
...@@ -227,6 +229,12 @@ ...@@ -227,6 +229,12 @@
@click="updateKucundialog=true" @click="updateKucundialog=true"
></el-button> ></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="修改" placement="top">
<el-button v-if="EditBtn" type="danger" icon="iconfont icon-xiugai" circle style="padding:4px;"
@click="outerVisible=true,EditItem(item)"
></el-button>
</el-tooltip>
<!-- </el-button-group> --> <!-- </el-button-group> -->
</td> </td>
...@@ -508,13 +516,17 @@ export default { ...@@ -508,13 +516,17 @@ export default {
QLineTeamList: [], QLineTeamList: [],
upDateKcMsg:{ upDateKcMsg:{
number:'' number:''
} },
EditBtn:false,
}; };
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.groupId = this.msg.groupId = this.getCompanyMsg.RB_Group_Id = this.addMsg.groupId = userInfo.RB_Group_id; //集团 this.groupId = this.msg.groupId = this.getCompanyMsg.RB_Group_Id = this.addMsg.groupId = userInfo.RB_Group_id; //集团
this.msg.branchId = userInfo.RB_Branch_id; //公司 this.msg.branchId = userInfo.RB_Branch_id; //公司
if(userInfo.EmployeeId==6115){
this.EditBtn=true;
}
this.getList(); this.getList();
this.getCompany(); this.getCompany();
this.getLineList(); this.getLineList();
...@@ -523,6 +535,9 @@ export default { ...@@ -523,6 +535,9 @@ export default {
}, },
methods: { methods: {
EditItem(item){
this.addMsg=Object.assign({},item);
},
//点击确定修改库存 //点击确定修改库存
sureUpdatekucun(){ sureUpdatekucun(){
this.apiJavaPost("/api/appActivity/updateCouponStock", this.upDateKcMsg, res => { this.apiJavaPost("/api/appActivity/updateCouponStock", this.upDateKcMsg, res => {
...@@ -542,11 +557,7 @@ export default { ...@@ -542,11 +557,7 @@ export default {
this.getCompanyMsg, this.getCompanyMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if (this.outerVisible) {
this.layerCompanyList = res.data.data; this.layerCompanyList = res.data.data;
} else {
this.companyList = res.data.data;
}
} else { } else {
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment