diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue index 290d53a43..3fe03ac34 100644 --- a/src/views/modules/base/community/buildTable.vue +++ b/src/views/modules/base/community/buildTable.vue @@ -52,6 +52,11 @@ class="diy-button--more" size="small" @click="deleteBatch">批量删除 + 导出一户一档
@@ -223,6 +228,8 @@ export default { formShow: false, formTitle: '新增楼栋', + yihuyidangDisabled: false, + } }, components: { @@ -582,6 +589,40 @@ export default { ); }, + //导出一户一档 + handleExportYihuyidang () { + this.yihuyidangDisabled = true + let title = this.agencyObj.label + title = title + '-一户一档' + let url = "/gov/org/house/exportHouseUser" + + + let params = { + agencyId: '', + gridId: '', + ownerName: this.ownerName, + ownerPhone: this.ownerPhone, + rentFlag: this.rentFlag, + neighborHoodId: this.agencyObj.id + + } + + + app.ajax.exportFilePost( + url, + params, + (data, rspMsg) => { + + this.download(data, title + '.xls') + this.yihuyidangDisabled = false + }, + (rspMsg, data) => { + this.$message.error(rspMsg); + this.yihuyidangDisabled = false + } + ); + }, + // 上传文件之前的钩子 beforeUpload (file, type) { @@ -725,6 +766,18 @@ export default { type: Boolean, default: false, }, + ownerName: { + type: String, + default: '', + }, + ownerPhone: { + type: String, + default: '', + }, + rentFlag: { + type: String, + default: '', + }, } } diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 156903b8b..01f94046b 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -62,7 +62,7 @@
@@ -92,18 +92,27 @@ ref="ref_neighTable" :staffAgencyId="staffAgencyId" :showImportBtn="showImportBtn" + :ownerName="ownerName" + :ownerPhone="ownerPhone" + :rentFlag="rentFlag" @toNextLevel="toNextLevel" @refreshTree="refreshTree"> @@ -156,7 +165,7 @@ export default { ], ownerName: '', ownerPhone: '', - rentState: '', + rentFlag: '', showRoomTable: false, selObj: {}, } @@ -197,11 +206,11 @@ export default { methods: { handleSearch () { - if (this.ownerName || this.ownerPhone || this.rentState) { + if (this.ownerName || this.ownerPhone || this.rentFlag) { this.showRoomTable = true this.$nextTick(() => { - this.$refs['ref_buildingTable'].loadTable('search', this.selTreeObj, this.ownerName, this.ownerPhone, this.rentState) + this.$refs['ref_buildingTable'].loadTable('search', this.selTreeObj, this.ownerName, this.ownerPhone, this.rentFlag) }) } else { this.$message.warning('请输入查询条件') @@ -214,7 +223,7 @@ export default { resetSearch () { this.ownerName = '' this.ownerPhone = '' - this.rentState = '' + this.rentFlag = '' this.pageSize = 10 this.pageNo = 1 @@ -285,7 +294,7 @@ export default { handleNodeClick (obj) { this.ownerName = '' this.ownerPhone = '' - this.rentState = '' + this.rentFlag = '' this.showRoomTable = false this.selObj = JSON.parse(JSON.stringify(obj)) diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue index e93868afa..5eb4596f7 100644 --- a/src/views/modules/base/community/communityTable.vue +++ b/src/views/modules/base/community/communityTable.vue @@ -61,6 +61,7 @@ size="small" class="diy-button--delete">导入房屋数据 +
批量删除 + 导出一户一档
@@ -217,7 +223,8 @@ export default { files: "", fileName: "", - uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import' + uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import', + yihuyidangDisabled: false, } }, @@ -562,6 +569,47 @@ export default { ); }, + //导出一户一档 + handleExportYihuyidang () { + this.yihuyidangDisabled = true + let title = this.agencyObj.label + title = title + '-一户一档' + let url = "/gov/org/house/exportHouseUser" + + + let params = { + agencyId: '', + gridId: '', + ownerName: this.ownerName, + ownerPhone: this.ownerPhone, + rentFlag: this.rentFlag, + } + + if (this.agencyObj.level === 'grid') { + params.gridId = this.agencyObj.id + params.agencyId = '' + } else { + params.gridId = '' + params.agencyId = this.agencyObj.id + } + + app.ajax.exportFilePost( + url, + params, + (data, rspMsg) => { + + this.download(data, title + '.xls') + this.yihuyidangDisabled = false + }, + (rspMsg, data) => { + this.yihuyidangDisabled = false + this.$message.error(rspMsg); + } + ); + }, + + + // 上传文件之前的钩子 beforeUpload (file, type) { this.files = file; @@ -717,6 +765,18 @@ export default { type: String, default: '', }, + ownerName: { + type: String, + default: '', + }, + ownerPhone: { + type: String, + default: '', + }, + rentFlag: { + type: String, + default: '', + }, } } diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue index 49574f4c8..a3b8a17ad 100644 --- a/src/views/modules/base/community/roomTable.vue +++ b/src/views/modules/base/community/roomTable.vue @@ -35,6 +35,11 @@ class="diy-button--more" size="small" @click="deleteBatch">批量删除 + 导出一户一档
@@ -231,7 +236,9 @@ export default { value: '0', label: '自住' }, - ] + ], + + yihuyidangDisabled: false, } @@ -603,6 +610,39 @@ export default { ); }, + //导出一户一档 + handleExportYihuyidang () { + this.yihuyidangDisabled = true + let title = this.agencyObj.label + title = title + '-一户一档' + let url = "/gov/org/house/exportHouseUser" + + + let params = { + agencyId: '', + gridId: '', + ownerName: this.ownerName, + ownerPhone: this.ownerPhone, + rentFlag: this.rentFlag, + buildingId: this.agencyObj.id + } + + + + app.ajax.exportFilePost( + url, + params, + (data, rspMsg) => { + + this.download(data, title + '.xls') + this.yihuyidangDisabled = false + }, + (rspMsg, data) => { + this.$message.error(rspMsg); + this.yihuyidangDisabled = false + } + ); + }, // 上传文件之前的钩子 beforeUpload (file) { this.files = file; @@ -730,6 +770,18 @@ export default { type: Boolean, default: false, }, + ownerName: { + type: String, + default: '', + }, + ownerPhone: { + type: String, + default: '', + }, + rentFlag: { + type: String, + default: '', + }, } } diff --git a/src/views/modules/base/huji/chusheng/cpts/edit.vue b/src/views/modules/base/huji/chusheng/cpts/edit.vue index 9471fecd8..4ad5714a6 100644 --- a/src/views/modules/base/huji/chusheng/cpts/edit.vue +++ b/src/views/modules/base/huji/chusheng/cpts/edit.vue @@ -22,6 +22,7 @@ clearable class="resi-cell-select" @change="handleChangeGrid" + :disabled="formType === 'edit'" style="width: 250px" > @@ -79,7 +81,7 @@ - 享受福利 补充居民信息 @@ -157,6 +165,7 @@ show-word-limit placeholder="请输入手机号 " v-model="fmData.mobile" + :disabled="formType === 'edit'" > @@ -172,6 +181,7 @@ placeholder="请输入身份证号" v-model="fmData.idCard" @blur="handleBlurId" + :disabled="formType === 'edit'" > @@ -188,6 +198,7 @@ clearable style="width: 120px" class="resi-cell-select" + :disabled="formType === 'edit'" > @@ -292,7 +304,7 @@ @@ -302,19 +314,19 @@ show-word-limit placeholder="请输入户主姓名" :disabled="fmData.alreadyHaveMaster" - v-model="fmData.houseHolderName" + v-model="fmData.householderName" > + + + + + diff --git a/src/views/modules/base/huji/immigration/edit.vue b/src/views/modules/base/huji/immigration/edit.vue new file mode 100644 index 000000000..183b2c249 --- /dev/null +++ b/src/views/modules/base/huji/immigration/edit.vue @@ -0,0 +1,903 @@ + + + + + + + diff --git a/src/views/modules/base/huji/immigration/index.vue b/src/views/modules/base/huji/immigration/index.vue new file mode 100644 index 000000000..0c5b89372 --- /dev/null +++ b/src/views/modules/base/huji/immigration/index.vue @@ -0,0 +1,1046 @@ + + + + +