From 932b3d3e809e053ba4e12f66dc64863676a4e3ea Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 24 Feb 2025 17:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=91=98=E5=B7=A5=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/sysstaffinfo/yuangongAdd.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/anrui-management/anrui-management-ui/src/views/sysstaffinfo/yuangongAdd.vue b/anrui-management/anrui-management-ui/src/views/sysstaffinfo/yuangongAdd.vue index 24137d8569..ecbfb3e694 100644 --- a/anrui-management/anrui-management-ui/src/views/sysstaffinfo/yuangongAdd.vue +++ b/anrui-management/anrui-management-ui/src/views/sysstaffinfo/yuangongAdd.vue @@ -22,7 +22,7 @@ - + @@ -45,11 +45,11 @@ - *出生年月日 + 出生年月日 - - + + @@ -59,7 +59,7 @@ - + @@ -835,6 +835,14 @@ export default { }) }, + changeIdNo(value) { + if (value.length === 18) { + const year = value.substr(6, 4) + const month = value.substr(10, 2) + const day = value.substr(12, 2) + this.temp.birthday = year + '-' + (month >= 10 ? month : '0' + month) + '-' + (day >= 10 ? day : '0' + day) + } + }, getNational(value) { console.log('触发下拉框按钮') let bb = null