Browse Source

Merge branch 'dev-fangwu' into test

test
jiangyy 3 years ago
parent
commit
f8f96ca01a
  1. 6
      src/views/modules/base/community/community.vue
  2. 45
      src/views/modules/base/community/roomForm.vue
  3. 2
      src/views/modules/base/community/roomTable.vue
  4. 30
      src/views/modules/base/organization/organization.vue
  5. 1
      src/views/modules/plugins/stats/factagencyuserhousedaily.vue

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

@ -48,7 +48,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="房主手机" <el-form-item label="联系方式"
prop="ownerPhone"> prop="ownerPhone">
<el-input v-model="ownerPhone" <el-input v-model="ownerPhone"
class="item_width_2" class="item_width_2"
@ -269,7 +269,7 @@ export default {
await this.loadOrgData() await this.loadOrgData()
await this.loadTree() await this.loadTree()
await this.loadOpenNode() // await this.loadOpenNode()
await this.$refs['ref_communityTable'].loadTable(true, this.selTreeObj) await this.$refs['ref_communityTable'].loadTable(true, this.selTreeObj)
if (this.treeData.length > 0) { if (this.treeData.length > 0) {
@ -347,6 +347,8 @@ export default {
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
this.openNodes = []
this.openNodes.push(data[0].id)
this.treeData = data this.treeData = data
if (!isRefresh && data.length > 0) { if (!isRefresh && data.length > 0) {

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

@ -40,19 +40,22 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<div v-if="formType === 'detail'"> <div v-if="formType === 'detail'">
<el-form-item label="房屋编码" <el-form-item label="房屋编码"
prop="houseCode" prop="houseCode"
label-width="150px" label-width="150px"
style="display: block"> style="display: block">
<el-input class="item_width_1" <el-input class="item_width_1"
maxlength="30" maxlength="30"
v-model="dataForm.houseCode"> v-model="dataForm.houseCode">
</el-input> </el-input>
</el-form-item> </el-form-item>
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<img style="margin-left: 70px;width: 200px;" :src="dataForm.houseQrcodeUrl"> <img style="margin-left: 70px;width: 200px;"
<a style="margin-left: 80px" :href="dataForm.houseQrcodeUrl" target="_blank">下载</a> :src="dataForm.houseQrcodeUrl">
</div> <a style="margin-left: 80px"
:href="dataForm.houseQrcodeUrl"
target="_blank">下载</a>
</div>
</div> </div>
<el-form-item label="房屋类型" <el-form-item label="房屋类型"
prop="houseType" prop="houseType"
@ -105,13 +108,13 @@
v-model="dataForm.ownerName"> v-model="dataForm.ownerName">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="房主电话" <el-form-item label="联系方式"
prop="ownerPhone" prop="ownerPhone"
label-width="150px" label-width="150px"
style="display: block"> style="display: block">
<el-input class="item_width_1" <el-input class="item_width_1"
type='number' type='number'
placeholder="请输入房主电话" placeholder="请输入联系方式"
v-model="dataForm.ownerPhone"> v-model="dataForm.ownerPhone">
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -175,21 +178,21 @@ export default {
houseType: '',// houseType: '',//
purpose: '',// purpose: '',//
rentFlag: 0,//10 12 0 rentFlag: 0,//10 12 0
ownerPhone: '', // ownerPhone: '', //
ownerName: '', // ownerName: '', //
ownerIdCard: '', // ownerIdCard: '', //
remark: '' // remark: ''
}, },
keyWords: '', keyWords: '',
agencyObj: {}, agencyObj: {},
} }
}, },
components: {}, components: {},
mounted () { mounted () {
}, },
methods: { methods: {
async initForm (type, row, agencyObj) { async initForm (type, row, agencyObj) {
@ -344,7 +347,7 @@ export default {
houseType: '1',// houseType: '1',//
purpose: '1',// purpose: '1',//
rentFlag: 0,//10 rentFlag: 0,//10
ownerPhone: '', // ownerPhone: '', //
ownerName: '', // ownerName: '', //
ownerIdCard: '', // ownerIdCard: '', //
remark: '' // remark: '' //
@ -396,7 +399,7 @@ export default {
], ],
remark: [ remark: [
{ required: false } { required: false }
] ],
} }
}, },

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

@ -102,7 +102,7 @@
width="90"> width="90">
</el-table-column> </el-table-column>
<el-table-column prop="ownerPhone" <el-table-column prop="ownerPhone"
label="房主电话" label="联系方式"
width="110"> width="110">
</el-table-column> </el-table-column>
<el-table-column prop="ownerIdCard" <el-table-column prop="ownerIdCard"

30
src/views/modules/base/organization/organization.vue

@ -463,12 +463,12 @@
<!-- 组织区划 --> <!-- 组织区划 -->
<el-form-item label="组织区划"> <el-form-item label="组织区划">
<el-select v-model="zonings.areaCode" placeholder="请选择组织区划" @change="handelZoing"> <el-select v-model="agencyForm.areaCode" placeholder="请选择组织区划" @change="handelZoing">
<el-option <el-option
v-for="item in zonings" v-for="item in zonings"
:key="item.areaCode" :key="item.areaCode"
:label="item.areaName" :label="item.areaName"
:value="item"> :value="item.areaCode">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -537,12 +537,12 @@
<!-- 组织区划 --> <!-- 组织区划 -->
<el-form-item label="组织区划"> <el-form-item label="组织区划">
<el-select v-model="OrgDetailsForm.areaName" placeholder="请选择组织区划" @change="handelStreeOrCommunityZoing"> <el-select v-model="OrgDetailsForm.areaCode" placeholder="请选择组织区划" @change="handelStreeOrCommunityZoing">
<el-option <el-option
v-for="item in zonings" v-for="item in zonings"
:key="item.areaCode" :key="item.areaCode"
:label="item.areaName" :label="item.areaName"
:value="item"> :value="item.areaCode">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -1932,19 +1932,27 @@ export default {
}, },
handelZoing(val){ handelZoing(val){
this.agencyForm.level = val.level this.zonings.forEach(item => {
this.agencyForm.areaName = val.areaName if (item.areaCode == val) {
this.agencyForm.areaCode = val.areaCode this.agencyForm.level = item.level
this.agencyForm.areaName = item.areaName
this.agencyForm.areaCode = item.areaCode
}
})
}, },
handelStreeOrCommunityZoing(val){ handelStreeOrCommunityZoing(val){
this.OrgDetailsForm.level = val.level this.zonings.forEach(item => {
this.OrgDetailsForm.areaName = val.areaName if (item.areaCode == val) {
this.OrgDetailsForm.areaCode = val.areaCode this.OrgDetailsForm.level = item.level
this.OrgDetailsForm.areaName = item.areaName
this.OrgDetailsForm.areaCode = item.areaCode
}
})
}, },
addAgency(row){ addAgency(row){
this.createAgencyDialogFlag = true this.createAgencyDialogFlag = true
this.addNewAgencyRest()
this.getUser() this.getUser()
}, },
// //

1
src/views/modules/plugins/stats/factagencyuserhousedaily.vue

@ -218,6 +218,7 @@ export default {
this.optionsA.push(res.data) this.optionsA.push(res.data)
this.dataForm.agencyId = res.data.agencyId this.dataForm.agencyId = res.data.agencyId
this.dataForm.level = res.data.level this.dataForm.level = res.data.level
this.getDataList()
} }
}) })
.catch(() => { .catch(() => {

Loading…
Cancel
Save