|
@@ -1341,7 +1341,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
'model.orderInfo.bookingType'(val, old) {
|
|
'model.orderInfo.bookingType'(val, old) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (val) {
|
|
if (val) {
|
|
|
this.model.orderInfo.dayCount = this.daysBetween(this.model.orderInfo.arrivalTime2, this.model.orderInfo.dueOutTime2)
|
|
this.model.orderInfo.dayCount = this.daysBetween(this.model.orderInfo.arrivalTime2, this.model.orderInfo.dueOutTime2)
|
|
|
}
|
|
}
|
|
@@ -1434,7 +1434,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
paymentSplit(value) {
|
|
paymentSplit(value) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (this.loadRemenmberPayState) {
|
|
if (this.loadRemenmberPayState) {
|
|
|
console.log(1111111, this.loadRemenmberPayState)
|
|
console.log(1111111, this.loadRemenmberPayState)
|
|
|
if (!value) {
|
|
if (!value) {
|
|
@@ -1580,7 +1580,7 @@ export default {
|
|
|
//
|
|
//
|
|
|
// getAction('/business/busHousePriceSchemeLayout/list?hotelId=' + this.model.hotelId, {}
|
|
// getAction('/business/busHousePriceSchemeLayout/list?hotelId=' + this.model.hotelId, {}
|
|
|
// ).then((res) => {
|
|
// ).then((res) => {
|
|
|
- //
|
|
|
|
|
|
|
+ //
|
|
|
// if (res.success) {
|
|
// if (res.success) {
|
|
|
// this.housePriceSchemeList = res.result;
|
|
// this.housePriceSchemeList = res.result;
|
|
|
// }
|
|
// }
|
|
@@ -1791,11 +1791,16 @@ export default {
|
|
|
onOk: function () {
|
|
onOk: function () {
|
|
|
let idx = that.model.roomIds.findIndex(item => item.id == that.roomIdsIndexId)
|
|
let idx = that.model.roomIds.findIndex(item => item.id == that.roomIdsIndexId)
|
|
|
idx = (idx === -1 ? 0 : idx)
|
|
idx = (idx === -1 ? 0 : idx)
|
|
|
- that.model.roomIds[idx].key1 = that.vipCustomerData.name
|
|
|
|
|
- that.model.roomIds[idx].key2 = that.vipCustomerData.sex
|
|
|
|
|
- that.model.roomIds[idx].key4 = that.vipCustomerData.certificateNo
|
|
|
|
|
- that.model.roomIds[idx].key5 = that.vipCustomerData.mobile
|
|
|
|
|
- that.model.roomIds[idx].key6 = that.vipCustomerData.address
|
|
|
|
|
|
|
+ that.$set(that.model.roomIds[idx], 'key1', that.vipCustomerData.name)
|
|
|
|
|
+ that.$set(that.model.roomIds[idx], 'key2', that.vipCustomerData.sex)
|
|
|
|
|
+ that.$set(that.model.roomIds[idx], 'key4', that.vipCustomerData.certificateNo)
|
|
|
|
|
+ that.$set(that.model.roomIds[idx], 'key5', that.vipCustomerData.mobile)
|
|
|
|
|
+ that.$set(that.model.roomIds[idx], 'key6', that.vipCustomerData.address)
|
|
|
|
|
+ // that.model.roomIds[idx].key1 = that.vipCustomerData.name
|
|
|
|
|
+ // that.model.roomIds[idx].key2 = that.vipCustomerData.sex
|
|
|
|
|
+ // that.model.roomIds[idx].key4 = that.vipCustomerData.certificateNo
|
|
|
|
|
+ // that.model.roomIds[idx].key5 = that.vipCustomerData.mobile
|
|
|
|
|
+ // that.model.roomIds[idx].key6 = that.vipCustomerData.address
|
|
|
console.log(that.vipCustomerData)
|
|
console.log(that.vipCustomerData)
|
|
|
let findPayType = that.payTypeList.find(e => e.name === '会员卡')
|
|
let findPayType = that.payTypeList.find(e => e.name === '会员卡')
|
|
|
that.model.orderFees.forEach(e => {
|
|
that.model.orderFees.forEach(e => {
|
|
@@ -1911,7 +1916,7 @@ export default {
|
|
|
var payType = this.payTypeList[0]
|
|
var payType = this.payTypeList[0]
|
|
|
let plusDeposit = this.bookingPaidMoney
|
|
let plusDeposit = this.bookingPaidMoney
|
|
|
console.log(this.model.roomPrices)
|
|
console.log(this.model.roomPrices)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.model.roomPrices.forEach((item) => {
|
|
this.model.roomPrices.forEach((item) => {
|
|
|
// 未支付的押金扣减掉预约支付的押金
|
|
// 未支付的押金扣减掉预约支付的押金
|
|
|
var money = item.roomFee
|
|
var money = item.roomFee
|
|
@@ -1987,7 +1992,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
var find = orderFees.find(
|
|
var find = orderFees.find(
|
|
|
(t) => t.subjectType == 2 && t.roomId == this.model.roomIds[0].id
|
|
(t) => t.subjectType == 2 && t.roomId == this.model.roomIds[0].id
|
|
|
)
|
|
)
|
|
@@ -2523,7 +2528,7 @@ export default {
|
|
|
if (item.bookingYj) {
|
|
if (item.bookingYj) {
|
|
|
continue
|
|
continue
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (item.editPrice && item.editPrice.length > 0) {
|
|
if (item.editPrice && item.editPrice.length > 0) {
|
|
|
item.editPrice.forEach((p) => {
|
|
item.editPrice.forEach((p) => {
|
|
|
money += p
|
|
money += p
|
|
@@ -2789,7 +2794,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
console.log(orderInfo)
|
|
console.log(orderInfo)
|
|
|
console.log(this.modelDefault)
|
|
console.log(this.modelDefault)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (this.modelDefault.roomIds.length > 0) {
|
|
if (this.modelDefault.roomIds.length > 0) {
|
|
|
this.edit(this.modelDefault)
|
|
this.edit(this.modelDefault)
|
|
|
}
|
|
}
|
|
@@ -2799,7 +2804,7 @@ export default {
|
|
|
this.activeKey = record.roomIds[0].id
|
|
this.activeKey = record.roomIds[0].id
|
|
|
this.visible = true
|
|
this.visible = true
|
|
|
this.model = Object.assign({}, record)
|
|
this.model = Object.assign({}, record)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
console.log('this.model', this.model)
|
|
console.log('this.model', this.model)
|
|
|
if (this.model.roomIds && this.model.roomIds.length > 0) {
|
|
if (this.model.roomIds && this.model.roomIds.length > 0) {
|
|
|
this.roomIdsIndexId = this.model.roomIds[0].id
|
|
this.roomIdsIndexId = this.model.roomIds[0].id
|
|
@@ -3028,7 +3033,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
submitForm() {
|
|
submitForm() {
|
|
|
const that = this
|
|
const that = this
|
|
|
- console.log(that.model.orderInfo)
|
|
|
|
|
that.model.livingRoomDayPrices = []
|
|
that.model.livingRoomDayPrices = []
|
|
|
console.log('that.model.roomPrices', that.model.roomPrices)
|
|
console.log('that.model.roomPrices', that.model.roomPrices)
|
|
|
that.model.roomPrices.forEach((t) => {
|
|
that.model.roomPrices.forEach((t) => {
|