|
|
|
@ -2550,21 +2550,26 @@
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.form.landlordId = this.landlordlistList[0].id
|
|
|
|
|
this.form.leaseFloor = JSON.stringify(this.leaseFloorList);
|
|
|
|
|
this.form.applicant = this.userinfo.nickName
|
|
|
|
|
this.form.phonenumber = this.userinfo.phonenumber
|
|
|
|
|
this.form.startDatetime = this.form.daterangeDatetime1[0]
|
|
|
|
|
this.form.endDatetime = this.form.daterangeDatetime1[1]
|
|
|
|
|
console.log('出租申请', this.form);
|
|
|
|
|
// debugger
|
|
|
|
|
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
console.log('出租申请更新', this.form);
|
|
|
|
|
|
|
|
|
|
// debugger
|
|
|
|
|
updateRentalapplylist(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.form.landlordId = this.landlordlistList[0].id
|
|
|
|
|
this.form.applicant = this.userinfo.nickName
|
|
|
|
|
this.form.phonenumber = this.userinfo.phonenumber
|
|
|
|
|
|
|
|
|
|
console.log('出租申请添加', this.form);
|
|
|
|
|
// debugger
|
|
|
|
|
addRentalapplylist(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
@ -3238,6 +3243,10 @@
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
/deep/ .el-table__fixed-right {
|
|
|
|
|
height: 100% !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.c-el-form-item {
|
|
|
|
|
margin-bottom: -10px;
|
|
|
|
|
}
|
|
|
|
|