Commit b0f09b52 authored by 黄媛媛's avatar 黄媛媛

11

parent bd461c73
...@@ -269,7 +269,8 @@ export default { ...@@ -269,7 +269,8 @@ export default {
couponsType: "", couponsType: "",
couponStatus: 1, couponStatus: 1,
couponEffectStatus: 1, couponEffectStatus: 1,
couponsUseScope: 0 couponsUseScope: 0,
userId:'',
}, },
dataList: [], dataList: [],
dataLoading: false, dataLoading: false,
...@@ -280,7 +281,10 @@ export default { ...@@ -280,7 +281,10 @@ export default {
computed: {}, computed: {},
created() {}, created() {},
mounted() { mounted() {
this.getList() this.getList();
if(this.$route.query.customerId){
this.msg.userId=this.$route.query.customerId;
}
}, },
methods: { methods: {
// 获取数据 // 获取数据
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</div> </div>
</div> </div>
<div @click="goCoupons" class="list"> <div @click="goCoupons(datainfo.CustomerAccountId)" class="list">
<div class="Item moneyItem"> <div class="Item moneyItem">
<p>优惠券</p> <p>优惠券</p>
<div class="des"> <div class="des">
...@@ -196,11 +196,12 @@ export default { ...@@ -196,11 +196,12 @@ export default {
}, },
methods: { methods: {
goCoupons(){ goCoupons(id){
this.$router.push({ this.$router.push({
name: 'CouponsList', name: 'CouponsList',
query: { query: {
blank: "y", blank: "y",
"customerId": id,
tab:'优惠券列表' tab:'优惠券列表'
} }
}); });
......
...@@ -398,7 +398,7 @@ ...@@ -398,7 +398,7 @@
<td>{{item.tradeTotal}}</td> <td>{{item.tradeTotal}}</td>
<td>{{item.inquireCount}}</td> <td>{{item.inquireCount}}</td>
<td>{{item.allianceName}}</td> <td>{{item.allianceName}}</td>
<td><span style="cursor: pointer;" @click.stop="goUrC('CouponsList')">{{item.couponNum}}</span></td> <td><span style="cursor: pointer;" @click.stop="goUrC('CouponsList',item.customerAccountId)">{{item.couponNum}}</span></td>
<td> <td>
<el-tooltip class="item" effect="dark" content="账户管理" placement="top-start"> <el-tooltip class="item" effect="dark" content="账户管理" placement="top-start">
<el-button style="padding:4px" @click.stop="goUrlT('empBankAccount',item.customerId)" type="danger" icon="iconfont icon-guanliyuan" circle></el-button> <el-button style="padding:4px" @click.stop="goUrlT('empBankAccount',item.customerId)" type="danger" icon="iconfont icon-guanliyuan" circle></el-button>
...@@ -956,7 +956,6 @@ ...@@ -956,7 +956,6 @@
}) })
}, },
goUrC(path, customerId) { goUrC(path, customerId) {
if(customerId){
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -964,14 +963,6 @@ ...@@ -964,14 +963,6 @@
blank: 'y' blank: 'y'
} }
}) })
}else{
this.$router.push({
name: path,
query: {
blank: 'y'
}
})
}
}, },
goUrlT(path, id) { goUrlT(path, id) {
......
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