Commit 01393804 authored by 吴春's avatar 吴春

1

parent 7580016a
......@@ -516,7 +516,7 @@
remark: "",
autoGrant:"",
openPlatformList:[],
couponPriceLists: '',
couponPriceLists:[],
couponPriceList: [],
},
pwdMsg: {
......@@ -561,7 +561,6 @@
methods: {
getcouponPriceList(){
console.log("getcouponPriceList进来了");
this.addMsg.couponPriceList = []
this.addMsg.couponPriceLists.forEach(item=>{
this.queryCommonData.dataList.forEach(dataItem=>{
......@@ -574,7 +573,6 @@
}
});
})
console.log("getcouponPriceList结束了",this.addMsg.couponPriceList);
},
getTravelPrciePageList(){
console.log("getTravelPrciePageList111",this.addMsg);
......@@ -592,6 +590,14 @@
console.log("getTravelPrciePageList",this.queryMsg);
if (res.data.resultCode == 1) {
this.queryCommonData.dataList = res.data.data.pageData;
console.log("addMsg.couponPriceList11", this.addMsg.couponPriceList);
if( this.addMsg.couponPriceList&& this.addMsg.couponPriceList.length>0){
this.addMsg.couponPriceList.forEach(item=>{
console.log("item",item);
this.addMsg.couponPriceLists.push(item.tcid);
})
console.log("item.couponPriceLists", this.addMsg.couponPriceLists);
}
console.log(this.queryCommonData.dataList,'----')
}
},
......@@ -607,13 +613,11 @@
});
},
EditItem(item) {
console.log("item222",item);
if(item.couponPriceList&&item.couponPriceList.length>0){
item.couponPriceLists = item.couponPriceList.map(item=> {return item.TCID})
}
this.addMsg = Object.assign({}, item);
if(item.couponPriceLists||item.lineId||item.lineteamId||item.effectDate||item.expirationDate){
console.log("1111111",item);
this.getTravelPrciePageList()
}
},
......@@ -730,7 +734,6 @@
},
// 修改
updateData(item) {
console.log("item",item)
this.getLineTeamList(item.lineId)
this.addMsg.couponsName = item.couponsName
this.addMsg.effectDate = item.effectDate
......
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