|  | @@ -234,7 +234,7 @@
 | 
												
													
														
															|  |  				currentDate: '',
 |  |  				currentDate: '',
 | 
												
													
														
															|  |  				today: '',
 |  |  				today: '',
 | 
												
													
														
															|  |  				//加密备用
 |  |  				//加密备用
 | 
												
													
														
															|  | -				tempCheckInPersonList: null,
 |  | 
 | 
												
													
														
															|  | 
 |  | +				tempCheckInPersonList: [],
 | 
												
													
														
															|  |  				tempGuestName: null,
 |  |  				tempGuestName: null,
 | 
												
													
														
															|  |  				tempGuestPhone: null
 |  |  				tempGuestPhone: null
 | 
												
													
														
															|  |  			}
 |  |  			}
 | 
												
											
												
													
														
															|  | @@ -387,7 +387,7 @@
 | 
												
													
														
															|  |  			delPer(index) {
 |  |  			delPer(index) {
 | 
												
													
														
															|  |  				this.dataForm.detailFormList[0].checkInPersonList.splice(index, 1)
 |  |  				this.dataForm.detailFormList[0].checkInPersonList.splice(index, 1)
 | 
												
													
														
															|  |  			},
 |  |  			},
 | 
												
													
														
															|  | -			confirmOrder(orderStatus) {		
 |  | 
 | 
												
													
														
															|  | 
 |  | +			confirmOrder(orderStatus) {
 | 
												
													
														
															|  |  				if (!this.dataForm.guestName) {
 |  |  				if (!this.dataForm.guestName) {
 | 
												
													
														
															|  |  					this.$showToast('请输入姓名');
 |  |  					this.$showToast('请输入姓名');
 | 
												
													
														
															|  |  					return
 |  |  					return
 | 
												
											
												
													
														
															|  | @@ -404,11 +404,11 @@
 | 
												
													
														
															|  |  					this.$showToast('请选择来源');
 |  |  					this.$showToast('请选择来源');
 | 
												
													
														
															|  |  					return
 |  |  					return
 | 
												
													
														
															|  |  				}
 |  |  				}
 | 
												
													
														
															|  | -				if (!this.dataForm.detailFormList[0].checkInPersonList || this.dataForm.detailFormList[0].checkInPersonList
 |  | 
 | 
												
													
														
															|  | -					.length == 0) {
 |  | 
 | 
												
													
														
															|  | -					this.$showToast('请添加入住人');
 |  | 
 | 
												
													
														
															|  | -					return
 |  | 
 | 
												
													
														
															|  | -				}
 |  | 
 | 
												
													
														
															|  | 
 |  | +				// if (!this.dataForm.detailFormList[0].checkInPersonList || this.dataForm.detailFormList[0].checkInPersonList
 | 
												
													
														
															|  | 
 |  | +				// 	.length == 0) {
 | 
												
													
														
															|  | 
 |  | +				// 	this.$showToast('请添加入住人');
 | 
												
													
														
															|  | 
 |  | +				// 	return
 | 
												
													
														
															|  | 
 |  | +				// }
 | 
												
													
														
															|  |  				//orderStatus//预约入住 1,直接入住2
 |  |  				//orderStatus//预约入住 1,直接入住2
 | 
												
													
														
															|  |  				if (orderStatus) {
 |  |  				if (orderStatus) {
 | 
												
													
														
															|  |  					this.dataForm.orderStatus = orderStatus;
 |  |  					this.dataForm.orderStatus = orderStatus;
 | 
												
											
												
													
														
															|  | @@ -453,27 +453,27 @@
 | 
												
													
														
															|  |  					//姓名 checkInName,idCard,checkInPhone
 |  |  					//姓名 checkInName,idCard,checkInPhone
 | 
												
													
														
															|  |  					//新增直接加密,编辑判断是否修改
 |  |  					//新增直接加密,编辑判断是否修改
 | 
												
													
														
															|  |  					if (
 |  |  					if (
 | 
												
													
														
															|  | -						(!this.tempCheckInPersonLis) ||
 |  | 
 | 
												
													
														
															|  | 
 |  | +						(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
 | 
												
													
														
															|  |  						element.checkInName &&
 |  |  						element.checkInName &&
 | 
												
													
														
															|  |  						element.checkInName != this.tempCheckInPersonList[i].checkInName
 |  |  						element.checkInName != this.tempCheckInPersonList[i].checkInName
 | 
												
													
														
															|  |  					) {
 |  |  					) {
 | 
												
													
														
															|  |  						element.checkInName = encrypt(element.checkInName);
 |  |  						element.checkInName = encrypt(element.checkInName);
 | 
												
													
														
															|  |  					} else {
 |  |  					} else {
 | 
												
													
														
															|  | -						element.checkInName = null;
 |  | 
 | 
												
													
														
															|  | 
 |  | +						element.checkInName = this.tempCheckInPersonList[i].checkInName2;
 | 
												
													
														
															|  |  					}
 |  |  					}
 | 
												
													
														
															|  |  					//身份证
 |  |  					//身份证
 | 
												
													
														
															|  |  					if (
 |  |  					if (
 | 
												
													
														
															|  | -						(!this.tempCheckInPersonLis) ||
 |  | 
 | 
												
													
														
															|  | 
 |  | +						(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
 | 
												
													
														
															|  |  						element.idCard &&
 |  |  						element.idCard &&
 | 
												
													
														
															|  |  						element.idCard != this.tempCheckInPersonList[i].idCard
 |  |  						element.idCard != this.tempCheckInPersonList[i].idCard
 | 
												
													
														
															|  |  					) {
 |  |  					) {
 | 
												
													
														
															|  |  						element.idCard = encrypt(element.idCard);
 |  |  						element.idCard = encrypt(element.idCard);
 | 
												
													
														
															|  |  					} else {
 |  |  					} else {
 | 
												
													
														
															|  | -						element.idCard = null;
 |  | 
 | 
												
													
														
															|  | 
 |  | +						element.idCard = this.tempCheckInPersonList[i].idCard2;
 | 
												
													
														
															|  |  					}
 |  |  					}
 | 
												
													
														
															|  |  					//手机号
 |  |  					//手机号
 | 
												
													
														
															|  |  					if (
 |  |  					if (
 | 
												
													
														
															|  | -						(!this.tempCheckInPersonLis) ||
 |  | 
 | 
												
													
														
															|  | 
 |  | +						(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
 | 
												
													
														
															|  |  						element.checkInPhone &&
 |  |  						element.checkInPhone &&
 | 
												
													
														
															|  |  						element.checkInPhone != this.tempCheckInPersonList[i].checkInPhone
 |  |  						element.checkInPhone != this.tempCheckInPersonList[i].checkInPhone
 | 
												
													
														
															|  |  					) {
 |  |  					) {
 | 
												
											
												
													
														
															|  | @@ -481,7 +481,7 @@
 | 
												
													
														
															|  |  							element.checkInPhone
 |  |  							element.checkInPhone
 | 
												
													
														
															|  |  						);
 |  |  						);
 | 
												
													
														
															|  |  					} else {
 |  |  					} else {
 | 
												
													
														
															|  | -						element.checkInPhone = null;
 |  | 
 | 
												
													
														
															|  | 
 |  | +						element.checkInPhone = this.tempCheckInPersonList[i].checkInPhone2;
 | 
												
													
														
															|  |  					}
 |  |  					}
 | 
												
													
														
															|  |  				});
 |  |  				});
 | 
												
													
														
															|  |  				newDataForm.detailFormList[0].checkInPersonList = checkInPersonList;
 |  |  				newDataForm.detailFormList[0].checkInPersonList = checkInPersonList;
 | 
												
											
												
													
														
															|  | @@ -531,8 +531,11 @@
 | 
												
													
														
															|  |  							...res.data.data,
 |  |  							...res.data.data,
 | 
												
													
														
															|  |  						};
 |  |  						};
 | 
												
													
														
															|  |  						//加密备用
 |  |  						//加密备用
 | 
												
													
														
															|  | -						this.tempCheckInPersonList =
 |  | 
 | 
												
													
														
															|  | -							this.dataForm.detailFormList[0].checkInPersonList || []; //入住人集合
 |  | 
 | 
												
													
														
															|  | 
 |  | +						if (this.dataForm.detailFormList[0].checkInPersonList.length != 0) {
 | 
												
													
														
															|  | 
 |  | +							this.tempCheckInPersonList = JSON.parse(
 | 
												
													
														
															|  | 
 |  | +								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);
 |