From b2e69be0841619c4fd3bba6e8be36eb0c91917b4 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Fri, 22 Apr 2022 11:03:35 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E6=88=B7=E7=B1=8D?= =?UTF-8?q?=EF=BC=8C=E8=80=81=E5=B9=B4=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/editResi.vue | 2 +- src/views/components/resiForm.vue | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/components/editResi.vue b/src/views/components/editResi.vue index 4a2fdff2..d3b243f5 100644 --- a/src/views/components/editResi.vue +++ b/src/views/components/editResi.vue @@ -812,7 +812,7 @@ export default { } } .resi-cell-value .resi-cell-input { - max-width: 190px; + width: 190px; } diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue index eeaaedc0..1c1c95d7 100644 --- a/src/views/components/resiForm.vue +++ b/src/views/components/resiForm.vue @@ -491,9 +491,16 @@ export default { console.log('n---', n) if (n.columnName !== 'ID_CARD') return if (!isCard(this.form.ID_CARD)) return - const { sex, birth } = computedCard(this.form.ID_CARD) + const { user } = this.$store.state + const i = user.areaCodePath && user.areaCodePath.length - 1 + const huji = user.areaCodePath[i].length > 6 ? user.areaCodePath[i].substr(0, 6) : user.areaCodePath[i] + const _id = this.form.ID_CARD.substr(0, 6) + const { sex, birth, age } = computedCard(this.form.ID_CARD) this.form.BIRTHDAY = birth this.form.GENDER = sex == 1 ? '1' : '2' + this.form.IS_OLD_PEOPLE = age >= 60 ? '1' : '0' + this.form.IS_BDHJ = huji == _id ? '1' : '' + console.log('age-----', age, _id) }, handleOpenSearch () { this.openSearch = !this.openSearch @@ -760,7 +767,7 @@ export default { } } .resi-cell-value .resi-cell-input { - max-width: 190px; + width: 190px; } .resi-cell-value { :deep .el-col { From 805b5025e5378b2d496f639bf8041fdccc982ed3 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Fri, 22 Apr 2022 11:15:49 +0800 Subject: [PATCH 2/4] dd --- src/views/components/resiForm.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue index 1c1c95d7..c84b11a1 100644 --- a/src/views/components/resiForm.vue +++ b/src/views/components/resiForm.vue @@ -492,8 +492,11 @@ export default { if (n.columnName !== 'ID_CARD') return if (!isCard(this.form.ID_CARD)) return const { user } = this.$store.state - const i = user.areaCodePath && user.areaCodePath.length - 1 - const huji = user.areaCodePath[i].length > 6 ? user.areaCodePath[i].substr(0, 6) : user.areaCodePath[i] + let huji = '', i = 0 + if (user.areaCodePath && user.areaCodePath.length > 0) { + i = user.areaCodePath.length - 1 + huji = user.areaCodePath[i].length > 6 ? user.areaCodePath[i].substr(0, 6) : user.areaCodePath[i] + } const _id = this.form.ID_CARD.substr(0, 6) const { sex, birth, age } = computedCard(this.form.ID_CARD) this.form.BIRTHDAY = birth From d67d1fc3c5fa45370a994a8293fd7cb15b7dffdd Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Sun, 24 Apr 2022 15:50:33 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9B=B4=E5=A4=9A=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/rangeInput.vue | 115 +++++++++++++++++++++++ src/views/components/resiSearch.vue | 141 ++++++++++++++++++++++------ src/views/modules/base/resi.vue | 137 ++++++++++++++++++++++++--- 3 files changed, 349 insertions(+), 44 deletions(-) create mode 100644 src/views/components/rangeInput.vue diff --git a/src/views/components/rangeInput.vue b/src/views/components/rangeInput.vue new file mode 100644 index 00000000..99afe0d0 --- /dev/null +++ b/src/views/components/rangeInput.vue @@ -0,0 +1,115 @@ + + + + + + + - + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 6cc4a41a..ef2b7fa6 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -1,8 +1,8 @@ - - - + + + 所属网格 @@ -107,13 +107,13 @@ - + - {{ n.label }} + {{ n.label }} + + + + + + + {{ns.label}} + + + - + @@ -196,17 +212,21 @@ 重置 - + +