Browse Source

小区管理

shibei_master
jiangyy 4 years ago
parent
commit
53c7ba31e2
  1. 8
      src/views/modules/base/community/buildForm.vue
  2. 6
      src/views/modules/base/community/buildTable.vue
  3. 1
      src/views/modules/base/community/communityForm.vue
  4. 2
      src/views/modules/base/community/communityTable.vue
  5. 41
      src/views/modules/base/community/roomForm.vue
  6. 2
      src/views/modules/base/community/roomTable.vue

8
src/views/modules/base/community/buildForm.vue

@ -28,7 +28,7 @@
prop="type"
label-width="150px"
style="display: block">
<el-radio-group v-model="dataForm.type">
<el-radio-group v-model="buildType">
<el-radio :label="'1'">商品房</el-radio>
<el-radio :label="'2'">自建房</el-radio>
@ -120,6 +120,7 @@ export default {
formType: 'add', // addeditdetail
buildingId: '', //ID
buildType: "1",
dataForm: {
agencyId: '', // ID
agencyName: '',
@ -130,7 +131,7 @@ export default {
totalUnitNum: 0,//
totalFloorNum: 0,//
totalHouseNum: 0,//
type: '1',//
type: '',//
location: '', //
longitude: '', //
latitude: '' //
@ -160,7 +161,9 @@ export default {
if (row) {
this.buildingId = row.buildingId
this.dataForm = row
this.buildType = row.buildingTypeKey
}
console.log(row)
},
@ -173,6 +176,7 @@ export default {
this.dataForm.buildingId = this.buildingId
}
this.dataForm.type = this.buildType
const { data, code, msg } = await requestPost(url, this.dataForm)

6
src/views/modules/base/community/buildTable.vue

@ -83,9 +83,7 @@
<el-table-column prop="totalHouseNum"
label="户数">
</el-table-column>
<el-table-column prop="remark"
label="备注">
</el-table-column>
<el-table-column label="操作"
fixed="right"
width="140"
@ -231,7 +229,9 @@ export default {
handleEdit (row) {
this.formTitle = '修改楼栋'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('edit', row, this.agencyObj)
})
},
addFormCancle () {

1
src/views/modules/base/community/communityForm.vue

@ -280,6 +280,7 @@ export default {
this.neighborHoodId = row.neighborHoodId
this.dataForm = row
}
console.log(row)
await this.loadAgency()
await this.loadGrid()

2
src/views/modules/base/community/communityTable.vue

@ -232,7 +232,9 @@ export default {
handleEdit (row) {
this.formTitle = '修改小区'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('edit', row, this.agencyObj)
})
},
addFormCancle () {

41
src/views/modules/base/community/roomForm.vue

@ -43,7 +43,7 @@
prop="houseType"
label-width="150px"
style="display: block">
<el-radio-group v-model="dataForm.houseType">
<el-radio-group v-model="houseType">
<el-radio :label="'1'">楼房</el-radio>
<el-radio :label="'2'">平房</el-radio>
@ -55,11 +55,15 @@
prop="purpose"
label-width="150px"
style="display: block">
<el-radio-group v-model="dataForm.purpose">
<el-radio :label="'1'">商品房</el-radio>
<el-radio :label="'2'">自建房</el-radio>
<el-radio :label="'3'">别墅</el-radio>
<el-radio-group v-model="purpose">
<el-radio :label="'1'">住宅</el-radio>
<el-radio :label="'2'">商业</el-radio>
<el-radio :label="'3'">办公</el-radio>
<el-radio :label="'4'">工业</el-radio>
<el-radio :label="'5'">仓储</el-radio>
<el-radio :label="'6'">商住混用</el-radio>
<el-radio :label="'7'">其他</el-radio>
</el-radio-group>
</el-form-item>
@ -67,10 +71,10 @@
prop="rentFlag"
label-width="150px"
style="display: block">
<el-radio-group v-model="dataForm.rentFlag">
<el-radio-group v-model="rentFlag">
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio>
<el-radio :label="false"></el-radio>
<el-radio :label="true"></el-radio>
</el-radio-group>
</el-form-item>
@ -80,8 +84,6 @@
label-width="150px"
style="display: block">
<el-input class="item_width_1"
maxlength="50"
show-word-limit
placeholder="请输入房主姓名"
v-model="dataForm.ownerName">
</el-input>
@ -132,13 +134,16 @@ export default {
unitList: [],
houseId: '', //ID
houseType: '1',
purpose: '1',
rentFlag: false,
dataForm: {
neighborHoodId: '', // ID
buildingId: '',//ID
buildingUnitId: '',//ID
doorName: '',//
houseType: '1',//
purpose: '1',//
houseType: '',//
purpose: '',//
rentFlag: 0,//10
ownerPhone: '', //
ownerName: '', //
@ -166,7 +171,13 @@ export default {
if (row) {
this.houseId = row.houseId
this.dataForm = row
this.dataForm.buildingUnitId = row.unitNumKey
this.houseType = row.houseTypeKey
this.purpose = row.purposeKey
this.rentFlag = row.rentFlagKey
}
console.log(row)
await this.loadUnitList()
@ -201,6 +212,10 @@ export default {
this.dataForm.houseId = this.houseId
}
this.dataForm.houseType = this.houseType
this.dataForm.purpose = this.purpose
this.dataForm.rentFlag = this.rentFlag
const { data, code, msg } = await requestPost(url, this.dataForm)
if (code === 0) {

2
src/views/modules/base/community/roomTable.vue

@ -244,7 +244,9 @@ export default {
handleEdit (row) {
this.formTitle = '修改房屋'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('edit', row, this.agencyObj)
})
},
addFormCancle () {

Loading…
Cancel
Save