Browse Source

添加居民信息确认

feature
是小王呀\24601 1 year ago
parent
commit
ddfb4c65a4
  1. 79
      src/views/modules/base/resi.vue

79
src/views/modules/base/resi.vue

@ -98,6 +98,9 @@
<el-button style="margin-left: 10px" v-if="btnAuths.ic_resi_batch_del" size="small" class="diy-button--add" <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> 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> --> <!-- <el-button type="primary" size="small">下载人口模板</el-button> -->
</div> </div>
</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="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="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="qcdj">迁出登记</el-dropdown-item>
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="confirm">信息无误确认</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</template> </template>
@ -477,6 +481,8 @@ export default {
this.handleDeath(row); this.handleDeath(row);
} else if (command == "qcdj") { } else if (command == "qcdj") {
this.handleChangeTransfer(row); this.handleChangeTransfer(row);
}else if(command=="confirm"){
this.handleConfirm(row);
} }
}, },
reportForm() { reportForm() {
@ -614,6 +620,24 @@ export default {
await nextTick(200); await nextTick(200);
this.$refs.ref_change_transfer.initForm(row); 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) { async handleDeath(row) {
console.log("=====", row); console.log("=====", row);
@ -712,6 +736,24 @@ export default {
this.$message.warning("请先选择要删除的居民"); 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) { handleSizeChange(val) {
console.log(`每页 ${val}`); console.log(`每页 ${val}`);
this.pageSize = val; this.pageSize = val;
@ -1034,7 +1076,42 @@ export default {
}); });
return options; 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() { async deleteresiBatch() {
if (this.selection.length === 0) if (this.selection.length === 0)

Loading…
Cancel
Save