Commit 6bccb54f authored by zhengke's avatar zhengke
parents fee2c721 04926dd5
...@@ -122,15 +122,24 @@ ...@@ -122,15 +122,24 @@
}, },
//保存数据 //保存数据
SaveData() { SaveData() {
var currencyNumList = [];
if (this.CurrencyNumberListExt != null && this.CurrencyNumberListExt.length > 0) {
this.CurrencyNumberListExt.forEach((item, index) => {
item.currencyNumberList.forEach(subItem => {
currencyNumList.push(subItem);
});
});
}
var nObj = { var nObj = {
config: this.postData, config: this.postData,
dayCostPriceList: this.dayCostPriceList, dayCostPriceList: this.dayCostPriceList,
otherPrice: this.otherPrice, otherPrice: this.otherPrice,
teamPrice: this.teamPrice, teamPrice: this.teamPrice,
CostCurrencyList: this.CostCurrencyList, CostCurrencyList: this.CostCurrencyList,
CostNumberList: this.CostNumberList CostNumberList: this.CostNumberList,
CurrencyNumberListExt: currencyNumList
}; };
console.log("请求参数", nObj);
this.apipost( this.apipost(
"travel_post_SetConfigOffer_V2", nObj, "travel_post_SetConfigOffer_V2", nObj,
res => { res => {
...@@ -161,7 +170,6 @@ ...@@ -161,7 +170,6 @@
"travel_get_GetMyTravelInfo_V2", "travel_get_GetMyTravelInfo_V2",
msg, msg,
res => { res => {
console.log("res.data.data", res.data);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
if (tempData.ID && tempData.ID > 0) { if (tempData.ID && tempData.ID > 0) {
...@@ -205,13 +213,16 @@ ...@@ -205,13 +213,16 @@
if (tempData.teamPrice) { if (tempData.teamPrice) {
this.teamPrice = tempData.teamPrice; this.teamPrice = tempData.teamPrice;
} }
if(tempData.CostNumberList && tempData.CostNumberList!=null && tempData.CostNumberList.length>0) if (tempData.CostNumberList && tempData.CostNumberList != null && tempData.CostNumberList.length > 0) {
{ this.CostNumberList = tempData.CostNumberList;
this.CostNumberList=tempData.CostNumberList; }
if (tempData.CostCurrencyList && tempData.CostCurrencyList != null && tempData.CostCurrencyList.length >
0) {
this.CostCurrencyList = tempData.CostCurrencyList;
} }
if(tempData.CostCurrencyList && tempData.CostCurrencyList!=null && tempData.CostCurrencyList.length>0) if (tempData.CurrencyNumberListExt && tempData.CurrencyNumberListExt != null && tempData
{ .CurrencyNumberListExt.length > 0) {
this.CostCurrencyList=tempData.CostCurrencyList; this.CurrencyNumberListExt = tempData.CurrencyNumberListExt;
} }
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -219,7 +230,8 @@ ...@@ -219,7 +230,8 @@
}, },
err => {} err => {}
); );
} },
}, },
created() { created() {
this.getPostData(); this.getPostData();
...@@ -228,5 +240,4 @@ ...@@ -228,5 +240,4 @@
DirectQuotation: DirectQuotation DirectQuotation: DirectQuotation
} }
}; };
</script> </script>
\ No newline at end of file
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