|
@@ -491,13 +491,14 @@
|
|
|
newDataForm.detailFormList[0].checkInPersonList;
|
|
|
//入住人里面身份证
|
|
|
//let len = this.tempCheckInPersonList;
|
|
|
+ console.log(newDataForm.detailFormList[0].checkInPersonList)
|
|
|
checkInPersonList.forEach((element, i) => {
|
|
|
//姓名 checkInName,idCard,checkInPhone
|
|
|
//新增直接加密,编辑判断是否修改
|
|
|
if (
|
|
|
- (this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
|
|
|
+ (this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||(
|
|
|
element.checkInName &&
|
|
|
- element.checkInName != this.tempCheckInPersonList[i].checkInName
|
|
|
+ element.checkInName != this.tempCheckInPersonList[i].checkInName)
|
|
|
) {
|
|
|
element.checkInName = encrypt(element.checkInName);
|
|
|
} else {
|
|
@@ -505,9 +506,9 @@
|
|
|
}
|
|
|
//身份证
|
|
|
if (
|
|
|
- (this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
|
|
|
+ (this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||(
|
|
|
element.idCard &&
|
|
|
- element.idCard != this.tempCheckInPersonList[i].idCard
|
|
|
+ element.idCard != this.tempCheckInPersonList[i].idCard)
|
|
|
) {
|
|
|
element.idCard = encrypt(element.idCard);
|
|
|
} else {
|
|
@@ -516,8 +517,8 @@
|
|
|
//手机号
|
|
|
if (
|
|
|
(this.tempCheckInPersonList.length == 0) || (!this.tempCheckInPersonList[i]) ||
|
|
|
- element.checkInPhone &&
|
|
|
- element.checkInPhone != this.tempCheckInPersonList[i].checkInPhone
|
|
|
+ (element.checkInPhone &&
|
|
|
+ element.checkInPhone != this.tempCheckInPersonList[i].checkInPhone)
|
|
|
) {
|
|
|
element.checkInPhone = encrypt(
|
|
|
element.checkInPhone
|
|
@@ -527,11 +528,13 @@
|
|
|
}
|
|
|
});
|
|
|
newDataForm.detailFormList[0].checkInPersonList = checkInPersonList;
|
|
|
+ console.log(newDataForm)
|
|
|
+ //return
|
|
|
this.$api.post(url, newDataForm).then(res => {
|
|
|
if (res.data.code == 0) {
|
|
|
this.$showToast('操作成功');
|
|
|
setTimeout(() => {
|
|
|
- uni.navigateTo({
|
|
|
+ uni.redirectTo({
|
|
|
url: '/pagesMy/orderList/orderList'
|
|
|
})
|
|
|
}, 1500)
|