|
|
@ -98,6 +98,9 @@ |
|
|
|
|
|
|
|
<el-button style="margin-left: 10px" v-if="btnAuths.ic_resi_batch_del" size="small" class="diy-button--add" |
|
|
|
type="parimary" @click="deleteBatch">批量删除</el-button> |
|
|
|
|
|
|
|
<el-button style="margin-left: 10px" v-if="btnAuths.ic_resi_batch_del" size="small" class="diy-button--add" |
|
|
|
type="parimary" @click="confirmBatch">信息无误批量确认</el-button> |
|
|
|
<!-- <el-button type="primary" size="small">下载人口模板</el-button> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -201,6 +204,7 @@ |
|
|
|
<el-dropdown-item v-if="false && btnAuths.ic_resi_change_rec" command="bgjl">变更记录</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="swdj">死亡登记</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="qcdj">迁出登记</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="confirm">信息无误确认</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</template> |
|
|
@ -477,6 +481,8 @@ export default { |
|
|
|
this.handleDeath(row); |
|
|
|
} else if (command == "qcdj") { |
|
|
|
this.handleChangeTransfer(row); |
|
|
|
}else if(command=="confirm"){ |
|
|
|
this.handleConfirm(row); |
|
|
|
} |
|
|
|
}, |
|
|
|
reportForm() { |
|
|
@ -614,6 +620,24 @@ export default { |
|
|
|
await nextTick(200); |
|
|
|
this.$refs.ref_change_transfer.initForm(row); |
|
|
|
}, |
|
|
|
//确认信息 |
|
|
|
async handleConfirm(row){ |
|
|
|
if (row) { |
|
|
|
this.$confirm("是否确认信息", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.confirresi(row); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
console.log(row); |
|
|
|
}, |
|
|
|
//死亡记录 |
|
|
|
async handleDeath(row) { |
|
|
|
console.log("=====", row); |
|
|
@ -712,6 +736,24 @@ export default { |
|
|
|
this.$message.warning("请先选择要删除的居民"); |
|
|
|
} |
|
|
|
}, |
|
|
|
confirmBatch() { |
|
|
|
if (this.selection.length > 0) { |
|
|
|
this.$confirm("是否确认信息", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.confirresiBatch(); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message.warning("请先选择要确认信息的居民"); |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSizeChange(val) { |
|
|
|
console.log(`每页 ${val} 条`); |
|
|
|
this.pageSize = val; |
|
|
@ -1034,7 +1076,42 @@ export default { |
|
|
|
}); |
|
|
|
return options; |
|
|
|
}, |
|
|
|
async confirresi(row) { |
|
|
|
let userIds = row.resiId; |
|
|
|
this.$http |
|
|
|
.post("/actual/base/residentCategoryUpdateInfo/unchangeSingleUpdate", userIds) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg); |
|
|
|
} else { |
|
|
|
this.$message.success("信息确定成功"); |
|
|
|
this.handleSearchFrom(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
async confirresiBatch() { |
|
|
|
if (this.selection.length === 0) |
|
|
|
return this.$message.error("请选择之后进行操作"); |
|
|
|
let orgId = this.selection.map((item) => item.resiId); |
|
|
|
console.log(this.selection); |
|
|
|
const url = `/actual/base/residentCategoryUpdateInfo/unchangeMultiUpdate`; |
|
|
|
let parm = { |
|
|
|
orgId:orgId, |
|
|
|
orgType: "agency", |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 100 |
|
|
|
|
|
|
|
}; |
|
|
|
const { data, code, msg } = await requestPost(url, parm); |
|
|
|
console.log(data, "data"); |
|
|
|
if (code !== 0) { |
|
|
|
return this.$message.error(msg); |
|
|
|
} else { |
|
|
|
this.$message.success("确认成功"); |
|
|
|
this.handleSearchFrom(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async deleteresiBatch() { |
|
|
|
if (this.selection.length === 0) |
|
|
|