From d9ca83327f205e69c920a845188fb104c0d4a591 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Mon, 3 Jun 2024 15:40:04 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B1=85=E6=B0=91=E9=87=8D?=
=?UTF-8?q?=E5=A4=8D=E8=BF=9B=E5=88=B0=E5=B1=85=E6=B0=91=E7=BC=96=E8=BE=91?=
=?UTF-8?q?=E5=90=8E=E6=B2=A1=E6=9C=89=E5=A7=93=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/components/addResi.vue | 112 +++++++++++++++++++++++--------
1 file changed, 83 insertions(+), 29 deletions(-)
diff --git a/src/views/components/addResi.vue b/src/views/components/addResi.vue
index 319f6f05f..e509c3346 100644
--- a/src/views/components/addResi.vue
+++ b/src/views/components/addResi.vue
@@ -338,6 +338,18 @@
+
+
+
+
+
+
+
+
@@ -364,20 +376,35 @@ import resiExpand from "./resiExpand";
export default {
data() {
return {
- dialogVisible: false,
- dialogTitle: "",
- formList: [],
-
- orgOptions: [],
- orgOptionProps: {
- value: 'agencyId',
- label: 'agencyName',
- children: 'subAgencyList',
- emitPath: false,
- multiple: false,
- checkStrictly: true
- },
- form: {
+ resiId:null,
+ showCheckPassword:false,
+ checkPasswordFrom: {
+ password: "",
+ },
+ checkPasswordRulse: {
+ password: [
+ { required: true, message: "请输入密码", trigger: "blur" },
+ {
+ min: 6,
+ max: 18,
+ message: "长度在 6 到 18 个字符",
+ trigger: "blur",
+ },
+ ],
+ },
+ dialogVisible: false,
+ dialogTitle: "",
+ formList: [],
+ orgOptions: [],
+ orgOptionProps: {
+ value: 'agencyId',
+ label: 'agencyName',
+ children: 'subAgencyList',
+ emitPath: false,
+ multiple: false,
+ checkStrictly: true
+ },
+ form: {
baseInfoDto: {
name: null,//姓名
idType: null,//证件类型
@@ -481,8 +508,8 @@ export default {
resideSituation: null,
oldSubsidy:null
}
- },
- footerInputList: [
+ },
+ footerInputList: [
{
id: 'healthDto',
children: [
@@ -911,14 +938,13 @@ export default {
]
},
- ],
-
- idTypeList,
- genderList,
- hasOptions,
- disabilityFlagList,
- btnLoading: false,
- rules: {
+ ],
+ idTypeList,
+ genderList,
+ hasOptions,
+ disabilityFlagList,
+ btnLoading: false,
+ rules: {
"baseInfoDto.name": [
{ required: true, message: "请输入姓名", trigger: "blur" },
],
@@ -934,8 +960,8 @@ export default {
"baseInfoDto.nationality": [
{ required: true, message: "请选择国籍", trigger: "blur" },
],
- },
- dicts: {
+ },
+ dicts: {
educationList: [], //文化程度
nationList: [], //民族
nationalityList: [], //国籍
@@ -956,8 +982,8 @@ export default {
value: 1,
},
],
- },
- logLevelChecked: 0,
+ },
+ logLevelChecked: 0,
};
},
created() {
@@ -967,6 +993,33 @@ export default {
this.initHouseBind();
},
methods: {
+ handelClickCheckPassword() {
+ this.$refs.checkPasswordFrom.validate((vali) => {
+ if (vali) {
+ this.saveCheckPassword(this.checkPasswordFrom.password);
+ } else {
+ return false;
+ }
+ });
+ },
+ async saveCheckPassword(password){
+ const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.resiId}`;
+ let parm = {
+ password,
+ };
+ const { data, code, msg } = await requestPost(url, parm);
+ if (code === 0) {
+ this.showCheckPassword = false;
+ this.$router.push({
+ name: "edit-resi",
+ query: { id: this.resiId },
+ params: { idNum: data.idNum, mobile: data.mobile, name: data.name, nationality: data.nationality },
+ });
+ this.checkPasswordFrom.password = "";
+ } else {
+ this.$message.error(msg);
+ }
+ },
// 从房屋画像进行添加居民时绑定房屋信息
initHouseBind() {
for (let i in this.form.resideInfoDtos) {
@@ -1234,7 +1287,8 @@ export default {
cancelButtonText: '继续填写',
type: 'warning'
}).then(() => {
- this.$router.push({ name: 'edit-resi', query: { id: data.id }, params: { idNum: data.idNum, mobile: data.mobile } });
+ this.resiId = data.id
+ this.showCheckPassword = true;
}).catch(() => {