From 16b5ceebb187f53a803914e2a3cb201bc2586b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=99=93=E5=9D=A4?= Date: Fri, 25 Oct 2019 15:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B2=A1=E7=94=A8=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/ebiz/Department.js | 32 -- src/router/ebiz/index.js | 4 +- src/views/ebiz/Department/DepartInfo.vue | 23 -- src/views/ebiz/Department/DepartInfoOne.vue | 323 ------------------- src/views/ebiz/Department/DepartInfoTwo.vue | 56 ---- src/views/ebiz/Department/js/verification.js | 52 --- 6 files changed, 2 insertions(+), 488 deletions(-) delete mode 100644 src/router/ebiz/Department.js delete mode 100644 src/views/ebiz/Department/DepartInfo.vue delete mode 100644 src/views/ebiz/Department/DepartInfoOne.vue delete mode 100644 src/views/ebiz/Department/DepartInfoTwo.vue delete mode 100644 src/views/ebiz/Department/js/verification.js diff --git a/src/router/ebiz/Department.js b/src/router/ebiz/Department.js deleted file mode 100644 index 46b87d64a..000000000 --- a/src/router/ebiz/Department.js +++ /dev/null @@ -1,32 +0,0 @@ -const DepartInfo = () => import('@/views/ebiz/Department/DepartInfo') -const DepartInfoOne = () => import('@/views/ebiz/Department/DepartInfoOne') -const DepartInfoTwo = () => import('@/views/ebiz/Department/DepartInfoTwo') -export default [ - { - path: '/Department/DepartInfo', - name: 'DepartmentInformation', - component: DepartInfo, - meta: { - title: '入司基本信息' - }, - redirect: '/Department/DepartInfo/one', - children: [ - { - path: 'one', - name: 'DepartInfoOne', - component: DepartInfoOne, - meta: { - title: '入司基本信息one' - } - }, - { - path: 'Two', - name: 'DepartInfoTwo', - component: DepartInfoTwo, - meta: { - title: '入司基本信息' - } - } - ] - } -] diff --git a/src/router/ebiz/index.js b/src/router/ebiz/index.js index 7f8a7be5f..6abd96f58 100644 --- a/src/router/ebiz/index.js +++ b/src/router/ebiz/index.js @@ -6,5 +6,5 @@ import my from './my' import serve from './serve' import common from './common' import product from './product' -import Department from './Department' -export default [...proposal, ...sale, ...customer, ...my, ...serve, ...common, ...product, ...Department] //根据需要进行删减 + +export default [...proposal, ...sale, ...customer, ...my, ...serve, ...common, ...product] //根据需要进行删减 diff --git a/src/views/ebiz/Department/DepartInfo.vue b/src/views/ebiz/Department/DepartInfo.vue deleted file mode 100644 index be502894c..000000000 --- a/src/views/ebiz/Department/DepartInfo.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/src/views/ebiz/Department/DepartInfoOne.vue b/src/views/ebiz/Department/DepartInfoOne.vue deleted file mode 100644 index a202fc1c5..000000000 --- a/src/views/ebiz/Department/DepartInfoOne.vue +++ /dev/null @@ -1,323 +0,0 @@ - - - diff --git a/src/views/ebiz/Department/DepartInfoTwo.vue b/src/views/ebiz/Department/DepartInfoTwo.vue deleted file mode 100644 index 87f43fc54..000000000 --- a/src/views/ebiz/Department/DepartInfoTwo.vue +++ /dev/null @@ -1,56 +0,0 @@ - - - diff --git a/src/views/ebiz/Department/js/verification.js b/src/views/ebiz/Department/js/verification.js deleted file mode 100644 index b42c40b4b..000000000 --- a/src/views/ebiz/Department/js/verification.js +++ /dev/null @@ -1,52 +0,0 @@ -import changeFifteenToEighteen from '@/assets/js/utils/changeFifteenToEighteen' -import idNoCheck from '@/assets/js/utils/idNoCheck' -import utilsAge from '@/assets/js/utils/age' - -//身份证带出出生日期,性别,年龄 -export function idToData(idNo) { - //非空 - if (!idNo.trim()) { - return { - text: '证件号码不能为空' - } - } - - // 证件号码规则校验 - if (!idNoCheck.isIdno(idNo)) { - return { - text: '您填写的证件号码有误' - } - } - - //如果是15位身份证号先转为18位 - if (idNo.length == 15) { - idNo = changeFifteenToEighteen(idNo) - } - let birthday = getBirthById(idNo) - let age = utilsAge.getAge(birthday, new Date()) - let sex = getSexById(idNo) - return { - birthday, - age, - sex - } -} - -function getBirthById(idNo) { - // 获取生日 - var year = idNo.substr(6, 4) - var month = idNo.substr(10, 2) - var day = idNo.substr(12, 2) - return year + '-' + month + '-' + day -} - -function getSexById(idNo) { - // 获取性别 - if (idNo.charAt(16) >= '0' && idNo.charAt(16) <= '9') { - if (parseInt(idNo.charAt(16)) % 2 == 0) { - return '1' - } else { - return '0' - } - } -}