diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue
index 4a3cea0b9..bfcc7f9de 100644
--- a/src/views/modules/base/resi.vue
+++ b/src/views/modules/base/resi.vue
@@ -98,6 +98,9 @@
批量删除
+
+ 信息无误批量确认
@@ -201,6 +204,7 @@
变更记录
死亡登记
迁出登记
+ 信息无误确认
@@ -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)