+
+
所属房屋
+
@@ -58,7 +58,7 @@
size="small"
clearable
style="width: 120px"
- class="resi-cell-select"
+ class="resi-cell2-select"
:disabled="changeVDisabled"
@clear="handleClearBuild"
@change="handleChangeB"
@@ -78,7 +78,7 @@
size="small"
clearable
style="width: 120px"
- class="resi-cell-select"
+ class="resi-cell2-select"
@click="handleClearDan"
@change="handleChangeD"
>
@@ -97,7 +97,7 @@
size="small"
clearable
style="width: 120px"
- class="resi-cell-select"
+ class="resi-cell2-select"
>
Date: Tue, 10 May 2022 09:02:38 +0800
Subject: [PATCH 05/37] 1
---
.../base/houseChange/houseChangeList.vue | 570 ++++++++++++++++++
1 file changed, 570 insertions(+)
create mode 100644 src/views/modules/base/houseChange/houseChangeList.vue
diff --git a/src/views/modules/base/houseChange/houseChangeList.vue b/src/views/modules/base/houseChange/houseChangeList.vue
new file mode 100644
index 00000000..b37d403a
--- /dev/null
+++ b/src/views/modules/base/houseChange/houseChangeList.vue
@@ -0,0 +1,570 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+ 修改
+
+
+
+ 通知记录
+
+
+
+ 随访记录
+
+
+ 更多
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 60d6243a12bb65074eefcfb40c40d517f6666118 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Tue, 10 May 2022 09:32:32 +0800
Subject: [PATCH 06/37] 33
---
.../modules/base/huji/chusheng/cpts/edit.vue | 51 ++++++++++++++++---
1 file changed, 43 insertions(+), 8 deletions(-)
diff --git a/src/views/modules/base/huji/chusheng/cpts/edit.vue b/src/views/modules/base/huji/chusheng/cpts/edit.vue
index 85fe68b6..9471fecd 100644
--- a/src/views/modules/base/huji/chusheng/cpts/edit.vue
+++ b/src/views/modules/base/huji/chusheng/cpts/edit.vue
@@ -126,14 +126,22 @@
class="item_width_1"
maxlength="50"
show-word-limit
- style="width: 200px;margin-right:20px;"
+ style="width: 200px; margin-right: 20px"
placeholder="请输入姓名 "
v-model="fmData.name"
>
- 享受福利
- 补充居民信息
+ 享受福利
+ 补充居民信息
Date: Tue, 10 May 2022 10:34:32 +0800
Subject: [PATCH 07/37] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/base/huji/chusheng/cpts/edit.vue | 63 +++++++++----------
.../modules/base/huji/chusheng/index.vue | 13 ++--
2 files changed, 37 insertions(+), 39 deletions(-)
diff --git a/src/views/modules/base/huji/chusheng/cpts/edit.vue b/src/views/modules/base/huji/chusheng/cpts/edit.vue
index 9471fecd..96c2ecdc 100644
--- a/src/views/modules/base/huji/chusheng/cpts/edit.vue
+++ b/src/views/modules/base/huji/chusheng/cpts/edit.vue
@@ -136,7 +136,7 @@
>享受福利
@@ -302,19 +302,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/index.vue b/src/views/modules/base/huji/immigration/index.vue
new file mode 100644
index 00000000..f49e38cd
--- /dev/null
+++ b/src/views/modules/base/huji/immigration/index.vue
@@ -0,0 +1,971 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 迁入登记
+ 下载模板
+
+ {{ importBtnTitle }}
+
+
+ 导出
+
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 9487f3aca95d07d2de88cabd814634ad895ffe6e Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Wed, 11 May 2022 15:07:26 +0800
Subject: [PATCH 10/37] =?UTF-8?q?=E5=B5=8C=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/base/huji/immigration/edit.vue | 89 ++++++----
.../modules/base/huji/immigration/index.vue | 157 +++++++++++++-----
2 files changed, 174 insertions(+), 72 deletions(-)
diff --git a/src/views/modules/base/huji/immigration/edit.vue b/src/views/modules/base/huji/immigration/edit.vue
index 437ac47e..2aab95da 100644
--- a/src/views/modules/base/huji/immigration/edit.vue
+++ b/src/views/modules/base/huji/immigration/edit.vue
@@ -123,8 +123,6 @@
>
@@ -288,27 +286,26 @@
0) {
const labels = this.$refs.nowArea.getCheckedNodes()[0].pathLabels
- this.fmData.presentAddressCode = val[val.length - 1]
- this.fmData.presentAddress = labels.join('-')
- this.fmData.presentAddressPathCode = val.join(',')
- console.log('presentAddress', this.formData.presentAddress)
- this.$refs.ref_form.clearValidate('presentAddress')
+ this.fmData.sourceAddressCode = val[val.length - 1]
+ this.fmData.sourceAddress = labels.join('-')
+ this.fmData.sourceAddressPathCode = val.join(',')
+ console.log('sourceAddress', this.fmData.sourceAddressPathCode)
+ this.$refs.ref_form.clearValidate('sourceAddress')
} else {
- this.fmData.presentAddressCode = ''
- this.fmData.presentAddress = ''
- this.fmData.presentAddressPathCode = ''
+ this.fmData.sourceAddressCode = ''
+ this.fmData.sourceAddress = ''
+ this.fmData.sourceAddressPathCode = ''
}
},
handleBlurId(val) {
@@ -707,9 +708,10 @@ export default {
return this.$message.error(res.msg)
} else {
console.log('获取户主信息成功', res.data)
- const { name } = res.data
- if (name) {
- this.fmData.houseHolderName = name
+
+ if (res.data) {
+ const { name } = res.data
+ this.fmData.householderName = name
this.alreadyHaveMaster = true
} else {
this.alreadyHaveMaster = false
@@ -725,8 +727,14 @@ export default {
this.$refs.ref_form.resetFields()
this.formType = type
+
if (id) {
- this.getDatail(id)
+ await this.getDatail(id)
+ }
+ if (this.formType != 'add') {
+ this.getBuildList()
+ this.getUniList()
+ this.getHouseList()
}
},
async getDatail(moveInId) {
@@ -735,17 +743,18 @@ export default {
const params = {
moveInId: moveInId || ''
}
- const { data, code, msg } = await requestPost(url, this.fmData)
+ const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.fmData = { ...data }
+ this.nowAllCode = data.sourceAddressPathCode && data.sourceAddressPathCode.split(',')
} else this.$message.error(msg)
},
async handleComfirm() {
this.btnDisable = true
- setTimeout(() => {
- this.btnDisable = false
- }, 10000)
+ // setTimeout(() => {
+ // this.btnDisable = false
+ // }, 10000)
this.$refs['ref_form'].validate((valid, messageObj) => {
if (!valid) {
app.util.validateRule(messageObj)
@@ -763,9 +772,27 @@ export default {
},
async submit() {
+ if (this.fmData.isCHeck && this.userInfo && this.userInfo.resiHomeId) {
+ const { user } = this.$store.state
+ if (user.agencyId == this.userInfo.resiAgencyId) {
+ if (this.userInfo.resiHomeId !== this.fmData.homeId) {
+ this.$confirm('居民信息中房屋信息与当前选择房屋不一致,是否更新?', '提示', {
+ confirmButtonText: '更新',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.fmData.isReplace = '1'
+ }).catch(() => {
+ this.fmData.isReplace = '0'
+ });
+ return
+ }
+ }
+
+ }
let url = ''
if (this.formType === 'add') {
- url = '/epmetuser/icMoveIn/save'
+ url = '/epmetuser/icMoveIn/add'
} else {
url = '/epmetuser/icMoveIn/edit'
diff --git a/src/views/modules/base/huji/immigration/index.vue b/src/views/modules/base/huji/immigration/index.vue
index f49e38cd..897365ca 100644
--- a/src/views/modules/base/huji/immigration/index.vue
+++ b/src/views/modules/base/huji/immigration/index.vue
@@ -235,7 +235,7 @@
border
style="width: 100%"
class="resi-table"
- :height="maxTableHeight"
+ :height="tableHeight"
>
-
+ />
{
+ this.tableHeight = this.$store.state.inIframe ? h : _h
+ })
}
},
mounted() {
this.getGridList()
this.getValiheList()
this.getTableData()
+ this.searchH = this.$refs.searchCard.$el.offsetHeight + 260
+ console.log('searchH----', this.$refs.searchCard.$el.offsetHeight)
},
methods: {
handleClearVillage() {
@@ -796,38 +809,99 @@ export default {
async handleChu() {
const url =
- '/heart/iccommunityselforganization/exportcommunityselforganization'
+ '/epmetuser/icMoveIn/export'
const { pageSize, pageNo, fmData } = this
- axios({
- url: window.SITE_CONFIG['apiURL'] + url,
- method: 'post',
+ await this.$http({
+ method: 'POST',
+ url,
+ responseType: 'blob',
data: {
pageSize,
pageNo,
...fmData
- },
- responseType: 'blob'
+ }
})
- .then((res) => {
- let fileName = window.decodeURI(
- res.headers['content-disposition'].split(';')[1].split('=')[1]
- )
- console.log('filename', fileName)
- let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
- var url = window.URL.createObjectURL(blob)
- var aLink = document.createElement('a')
- aLink.style.display = 'none'
- aLink.href = url
- aLink.setAttribute('download', fileName)
- document.body.appendChild(aLink)
- aLink.click()
- document.body.removeChild(aLink) //下载完成移除元素
- window.URL.revokeObjectURL(url) //释放掉blob对象
+ .then(res => {
+ console.log('res----dddd', res)
+ // this.download(res.data, title + '.xls')
+ // this.getTemplateList()
+
+ // this.exportLoading = false
+ // if (res.data.code && res.data.code == 9999) {
+ // return this.$message.error(res.data.msg)
+ // }
+ this.formatData(res)
+
})
- .catch((err) => {
- console.log('获取导出情失败', err)
+ .catch(err => {
+ console.log('err', err)
+ this.exportLoading = false
return this.$message.error('网络错误')
})
+ // axios({
+ // url: window.SITE_CONFIG['apiURL'] + url,
+ // method: 'post',
+ // data: {
+ // pageSize,
+ // pageNo,
+ // ...fmData
+ // },
+ // responseType: 'blob'
+ // })
+ // .then((res) => {
+ // let fileName = window.decodeURI(
+ // res.headers['content-disposition'].split(';')[1].split('=')[1]
+ // )
+ // console.log('filename', fileName)
+ // let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
+ // var url = window.URL.createObjectURL(blob)
+ // var aLink = document.createElement('a')
+ // aLink.style.display = 'none'
+ // aLink.href = url
+ // aLink.setAttribute('download', fileName)
+ // document.body.appendChild(aLink)
+ // aLink.click()
+ // document.body.removeChild(aLink) //下载完成移除元素
+ // window.URL.revokeObjectURL(url) //释放掉blob对象
+ // })
+ // .catch((err) => {
+ // console.log('获取导出情失败', err)
+ // return this.$message.error('网络错误')
+ // })
+ },
+ formatData(res) {
+ const fileReader = new FileReader()
+ fileReader.onloadend = () => {
+ try {
+ const jsonData = JSON.parse(fileReader.result) // 说明是普通对象数据,后台转换失败
+ // 后台信息
+ console.log('jsonData---1', jsonData)
+ return this.$message.error(jsonData.msg)
+ } catch (err) { // 解析成对象失败,说明是正常的文件流
+ // 下载文件
+ console.log('errr-----', err, this)
+ this.downloadFile(res)
+ }
+ }
+ fileReader.readAsText(res.data)
+ },
+ downloadFile(res) {
+ if (res.headers["content-disposition"]) {
+ let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1])
+ console.log('filename', fileName)
+ let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
+ var url = window.URL.createObjectURL(blob)
+ var aLink = document.createElement('a')
+ aLink.style.display = 'none'
+ aLink.href = url
+ aLink.setAttribute('download', fileName)
+ document.body.appendChild(aLink)
+ aLink.click()
+ document.body.removeChild(aLink) //下载完成移除元素
+ window.URL.revokeObjectURL(url) //释放掉blob对象
+ this.$message.success('导出成功')
+ this.$emit('close')
+ } else this.$message.error('下载失败')
},
async handleWatch(rowIndex) {
@@ -923,9 +997,9 @@ export default {
overflow: visible;
}
-.demo-form-inline .resi-cell {
- display: flex;
- align-items: center;
+.demo-form-inline {
+ // display: flex;
+ // align-items: center;
// margin-bottom: 20px;
.resi-cell-label {
@@ -965,6 +1039,7 @@ export default {
margin-right: 0;
}
}
+
.mt10 {
margin-top: 10px;
}
From 880bd944100e2e2fa963d2eb00d3043e8f406ff7 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Wed, 11 May 2022 15:48:29 +0800
Subject: [PATCH 11/37] dd
---
src/views/modules/base/huji/immigration/edit.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/modules/base/huji/immigration/edit.vue b/src/views/modules/base/huji/immigration/edit.vue
index 2aab95da..9143e550 100644
--- a/src/views/modules/base/huji/immigration/edit.vue
+++ b/src/views/modules/base/huji/immigration/edit.vue
@@ -489,6 +489,7 @@ export default {
type: 'error',
message: `请联系${data.resiAgencyName}迁出该居民后操作`
})
+ this.btnDisable = true
}
this.userInfo = { ...data }
} else {
From afd969583f5c7f88f22a384a12a4dbbc6fcd8d67 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Wed, 11 May 2022 16:20:52 +0800
Subject: [PATCH 12/37] =?UTF-8?q?=E4=B8=80=E5=8C=BA=E4=B8=80=E6=88=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/base/community/buildTable.vue | 48 ++++++++++++++++
.../modules/base/community/community.vue | 21 +++++--
.../modules/base/community/communityTable.vue | 55 +++++++++++++++++++
.../modules/base/community/roomTable.vue | 46 ++++++++++++++++
4 files changed, 164 insertions(+), 6 deletions(-)
diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue
index 290d53a4..125a8feb 100644
--- a/src/views/modules/base/community/buildTable.vue
+++ b/src/views/modules/base/community/buildTable.vue
@@ -52,6 +52,10 @@
class="diy-button--more"
size="small"
@click="deleteBatch">批量删除
+ 导出一户一档
@@ -582,6 +586,38 @@ export default {
);
},
+ //导出一户一档
+ handleExportYihuyidang () {
+ 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')
+ },
+ (rspMsg, data) => {
+ this.$message.error(rspMsg);
+ }
+ );
+ },
+
// 上传文件之前的钩子
beforeUpload (file, type) {
@@ -725,6 +761,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 156903b8..01f94046 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 e93868af..11aaf2be 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">导入房屋数据
+
批量删除
+
导出一户一档
@@ -562,6 +567,44 @@ export default {
);
},
+ //导出一户一档
+ handleExportYihuyidang () {
+ 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')
+ },
+ (rspMsg, data) => {
+ this.$message.error(rspMsg);
+ }
+ );
+ },
+
+
+
// 上传文件之前的钩子
beforeUpload (file, type) {
this.files = file;
@@ -717,6 +760,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 49574f4c..5f4c75f0 100644
--- a/src/views/modules/base/community/roomTable.vue
+++ b/src/views/modules/base/community/roomTable.vue
@@ -35,6 +35,10 @@
class="diy-button--more"
size="small"
@click="deleteBatch">批量删除
+
导出一户一档
@@ -603,6 +607,36 @@ export default {
);
},
+ //导出一户一档
+ handleExportYihuyidang () {
+ 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')
+ },
+ (rspMsg, data) => {
+ this.$message.error(rspMsg);
+ }
+ );
+ },
// 上传文件之前的钩子
beforeUpload (file) {
this.files = file;
@@ -730,6 +764,18 @@ export default {
type: Boolean,
default: false,
},
+ ownerName: {
+ type: String,
+ default: '',
+ },
+ ownerPhone: {
+ type: String,
+ default: '',
+ },
+ rentFlag: {
+ type: String,
+ default: '',
+ },
}
}
From 6baa9bb8e92dcfbf426c92c04660edccb6ae0a45 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Wed, 11 May 2022 16:37:18 +0800
Subject: [PATCH 13/37] dd
---
src/views/modules/base/huji/immigration/edit.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/modules/base/huji/immigration/edit.vue b/src/views/modules/base/huji/immigration/edit.vue
index 9143e550..55830b1c 100644
--- a/src/views/modules/base/huji/immigration/edit.vue
+++ b/src/views/modules/base/huji/immigration/edit.vue
@@ -823,6 +823,7 @@ export default {
resetData() {
this.orgId = ''
this.nowAllCode = []
+ this.btnDisable = false
this.fmData = iniFmData()
}
}
From 3bb707bec82ee6104527e217ce9e720b8d288c78 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Wed, 11 May 2022 16:42:25 +0800
Subject: [PATCH 14/37] 666
---
.../modules/base/huji/chusheng/cpts/edit.vue | 79 ++++++++++++++-----
1 file changed, 61 insertions(+), 18 deletions(-)
diff --git a/src/views/modules/base/huji/chusheng/cpts/edit.vue b/src/views/modules/base/huji/chusheng/cpts/edit.vue
index 96c2ecdc..4ad5714a 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'"
>
@@ -386,6 +398,7 @@ function iniFmData() {
idCard: "",
isWelfare: "0", //福利0否,1是
isCheck: "0",
+ isReplace: "0",
gender: "",
birthplace: "",
father: "",
@@ -410,6 +423,7 @@ export default {
optionsH: [],
optionsD: [],
optionsG: [],
+ optionsRelation: [],
optionsGender: [
{
value: "1",
@@ -420,9 +434,9 @@ export default {
label: "女",
},
],
- optionsRelation: [],
fmData: iniFmData(),
+ checkResult: {},
};
},
components: {},
@@ -490,6 +504,7 @@ export default {
}
);
if (code === 0) {
+ this.checkResult = data;
if (!data.moveInstatus) {
this.$message({
type: "error",
@@ -566,11 +581,10 @@ export default {
return this.$message.error(res.msg);
} else {
console.log("获取查询详情成功", res.data);
- this.optionsRelation = res.data;
+ if (res.data) {
+ this.optionsRelation = res.data;
+ }
}
- })
- .catch(() => {
- return this.$message.error("网络错误");
});
},
@@ -682,9 +696,6 @@ export default {
this.alreadyHaveMaster = false;
}
}
- })
- .catch(() => {
- return this.$message.error("网络错误");
});
},
@@ -696,14 +707,18 @@ export default {
if (row) {
// this.fmData = { ...this.fmData, ...row };
this.getInfo(row.id);
+ this.getValiheList();
+ this.getBuildList();
+ this.getUniList();
+ this.getHouseList();
}
},
async getInfo(id) {
const { data, code, msg } = await requestPost(
- "/epmetuser/icBirthRecord",
+ "/epmetuser/icBirthRecord/" + id,
{
- id,
+ // id,
}
);
if (code === 0) {
@@ -738,13 +753,37 @@ export default {
let url = "";
if (this.formType === "add") {
url = "/epmetuser/icBirthRecord/save";
- } else {
+ } else if (this.formType === "edit") {
url = "/epmetuser/icBirthRecord/update";
+ } else {
+ return;
+ }
- this.fmData.orgId = this.orgId;
+ const { fmData, checkResult } = this;
+ if (
+ fmData.isCheck == "1" &&
+ checkResult.resiHomeId != fmData.homeId &&
+ checkResult.status == "0"
+ ) {
+ await this.$confirm(
+ "居民信息中房屋信息与当前选择房屋不一致,是否更新?",
+ "提示",
+ {
+ confirmButtonText: "更新",
+ cancelButtonText: "不更新",
+ type: "warning",
+ center: true,
+ }
+ )
+ .then(() => {
+ this.fmData.isReplace = "1";
+ })
+ .catch(() => {
+ this.fmData.isReplace = "0";
+ });
}
- const { data, code, msg } = await requestPost(url, this.fmData);
+ const { data, code, msg } = await requestPost(url, fmData);
if (code === 0) {
this.$message({
@@ -765,7 +804,11 @@ export default {
this.$emit("dialogCancle");
},
resetData() {
- this.orgId = "";
+ this.checkResult = {};
+ this.optionsB = [];
+ this.optionsH = [];
+ this.optionsD = [];
+ this.optionsRelation = [];
this.fmData = iniFmData();
},
// 开启加载动画
From 5628026ac6876a79a2d67424955416d6d0465a85 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Wed, 11 May 2022 16:50:41 +0800
Subject: [PATCH 15/37] =?UTF-8?q?=E4=B8=80=E6=88=B7=E4=B8=80=E6=A1=A3?=
=?UTF-8?q?=E5=AF=BC=E5=87=BA=E9=98=B2=E9=87=8D=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/base/community/buildTable.vue | 7 ++++++-
src/views/modules/base/community/communityTable.vue | 7 ++++++-
src/views/modules/base/community/roomTable.vue | 8 +++++++-
3 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue
index 125a8feb..3fe03ac3 100644
--- a/src/views/modules/base/community/buildTable.vue
+++ b/src/views/modules/base/community/buildTable.vue
@@ -55,6 +55,7 @@
导出一户一档
@@ -227,6 +228,8 @@ export default {
formShow: false,
formTitle: '新增楼栋',
+ yihuyidangDisabled: false,
+
}
},
components: {
@@ -588,6 +591,7 @@ export default {
//导出一户一档
handleExportYihuyidang () {
+ this.yihuyidangDisabled = true
let title = this.agencyObj.label
title = title + '-一户一档'
let url = "/gov/org/house/exportHouseUser"
@@ -604,16 +608,17 @@ export default {
}
-
app.ajax.exportFilePost(
url,
params,
(data, rspMsg) => {
this.download(data, title + '.xls')
+ this.yihuyidangDisabled = false
},
(rspMsg, data) => {
this.$message.error(rspMsg);
+ this.yihuyidangDisabled = false
}
);
},
diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue
index 11aaf2be..5eb4596f 100644
--- a/src/views/modules/base/community/communityTable.vue
+++ b/src/views/modules/base/community/communityTable.vue
@@ -79,6 +79,7 @@
导出一户一档
@@ -222,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,
}
},
@@ -569,6 +571,7 @@ export default {
//导出一户一档
handleExportYihuyidang () {
+ this.yihuyidangDisabled = true
let title = this.agencyObj.label
title = title + '-一户一档'
let url = "/gov/org/house/exportHouseUser"
@@ -596,8 +599,10 @@ export default {
(data, rspMsg) => {
this.download(data, title + '.xls')
+ this.yihuyidangDisabled = false
},
(rspMsg, data) => {
+ this.yihuyidangDisabled = false
this.$message.error(rspMsg);
}
);
diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue
index 5f4c75f0..a3b8a17a 100644
--- a/src/views/modules/base/community/roomTable.vue
+++ b/src/views/modules/base/community/roomTable.vue
@@ -38,6 +38,7 @@