|
@@ -287,17 +287,6 @@
|
|
this.currentDate = year + '-' + mon + '-' + day;
|
|
this.currentDate = year + '-' + mon + '-' + day;
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- // 'dataForm.detailFormList': {
|
|
|
|
- // handler(newVal, oldVal) {
|
|
|
|
- // let disp = newVal[0].roomAmount - this.oldVal;
|
|
|
|
- // console.log(disp)
|
|
|
|
- // console.log(this.totalMOney)
|
|
|
|
- // console.log(newVal[0].roomAmount)
|
|
|
|
- // this.oldval = newVal[0].roomAmount; //上一次价格
|
|
|
|
- // this.totalMOney += parseFloat(disp);
|
|
|
|
- // },
|
|
|
|
- // deep: true
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
@@ -368,9 +357,12 @@
|
|
},
|
|
},
|
|
//添加入住人
|
|
//添加入住人
|
|
goStayCheck() {
|
|
goStayCheck() {
|
|
- let list = JSON.stringify(this.dataForm);
|
|
|
|
|
|
+ //let list = JSON.stringify(this.dataForm);
|
|
|
|
+ uni.$once('toSendData', () => {
|
|
|
|
+ uni.$emit('sendData', this.dataForm)
|
|
|
|
+ })
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/house/stayCheck?orderInfo=' + list,
|
|
|
|
|
|
+ url: '/pages/house/stayCheck',
|
|
events: {
|
|
events: {
|
|
addSuccess: data => {
|
|
addSuccess: data => {
|
|
this.dataForm.detailFormList[0].checkInPersonList = data.data || [];
|
|
this.dataForm.detailFormList[0].checkInPersonList = data.data || [];
|
|
@@ -569,7 +561,6 @@
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
this.laiyuan = [res.data.data];
|
|
this.laiyuan = [res.data.data];
|
|
- console.log(this.laiyuan)
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -580,12 +571,14 @@
|
|
...this.dataForm,
|
|
...this.dataForm,
|
|
...res.data.data,
|
|
...res.data.data,
|
|
};
|
|
};
|
|
|
|
+
|
|
//加密备用
|
|
//加密备用
|
|
if (this.dataForm.detailFormList[0].checkInPersonList.length != 0) {
|
|
if (this.dataForm.detailFormList[0].checkInPersonList.length != 0) {
|
|
this.tempCheckInPersonList = JSON.parse(
|
|
this.tempCheckInPersonList = JSON.parse(
|
|
JSON.stringify(this.dataForm.detailFormList[0].checkInPersonList)
|
|
JSON.stringify(this.dataForm.detailFormList[0].checkInPersonList)
|
|
);
|
|
);
|
|
} //入住人集合
|
|
} //入住人集合
|
|
|
|
+
|
|
this.tempGuestName = this.dataForm.guestName;
|
|
this.tempGuestName = this.dataForm.guestName;
|
|
this.tempGuestPhone = this.dataForm.guestPhone;
|
|
this.tempGuestPhone = this.dataForm.guestPhone;
|
|
this.compareDate(this.dataForm.arriveDate);
|
|
this.compareDate(this.dataForm.arriveDate);
|