Commit a96db21b authored by 黄奎's avatar 黄奎

111

parent 78dc305d
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
if (this.$route.query.TCID) { if (this.$route.query.TCID) {
this.qMsg.TCID = this.$route.query.TCID; this.qMsg.TCID = this.$route.query.TCID;
} }
}, },
mounted() { mounted() {
this.getPriceInfo(); this.getPriceInfo();
...@@ -199,12 +199,9 @@ ...@@ -199,12 +199,9 @@
saveGuestSurvey() { saveGuestSurvey() {
this.saveLoading = true; this.saveLoading = true;
var postMsg = []; var postMsg = [];
console.log("this.dataList2", JSON.parse(JSON.stringify(this.dataList)))
if (this.dataList && this.dataList.length > 0) { if (this.dataList && this.dataList.length > 0) {
this.dataList.forEach(item => { this.dataList.forEach(item => {
item.GuestId = this.qMsg.GuestId;
item.TCID = this.qMsg.TCID; item.TCID = this.qMsg.TCID;
item.OrderID = this.qMsg.OrderId;
if (item.SurveyType === 2 || item.SurveyType === 3) { if (item.SurveyType === 2 || item.SurveyType === 3) {
item.SurveyOptionsList.forEach(y => { item.SurveyOptionsList.forEach(y => {
//单选 //单选
...@@ -226,7 +223,10 @@ ...@@ -226,7 +223,10 @@
postMsg.push(item); postMsg.push(item);
}) })
} }
this.apipost("survey_post_SetGuestSurvey", postMsg, res => { var newMsg = {
busDetailsList: postMsg
}
this.apipost("survey_post_SetBusSurvey", newMsg, res => {
this.saveLoading = false; this.saveLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
......
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