Commit 01393804 authored by 吴春's avatar 吴春

1

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