清理idCardNoUtils,改使用ID对象
This commit is contained in:
@@ -62,6 +62,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
import AddVaccination from "./addVaccination";
|
import AddVaccination from "./addVaccination";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AppVaccination",
|
name: "AppVaccination",
|
||||||
@@ -108,7 +109,7 @@ export default {
|
|||||||
{label: "出生日期", prop: "birthday", align: 'center'},
|
{label: "出生日期", prop: "birthday", align: 'center'},
|
||||||
{
|
{
|
||||||
label: "身份证号", width: "160px", align: 'center',
|
label: "身份证号", width: "160px", align: 'center',
|
||||||
render: (h, {row}) => h('span', null, this.idCardNoUtil.hideId(row.idNumber))
|
render: (h, {row}) => h('span', null, ID.hideId(row.idNumber))
|
||||||
},
|
},
|
||||||
{label: "所属地区", prop: "areaName", align: 'center'},
|
{label: "所属地区", prop: "areaName", align: 'center'},
|
||||||
{label: "住址", prop: "address", width: "200px", align: 'center'},
|
{label: "住址", prop: "address", width: "200px", align: 'center'},
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "addVaccination",
|
name: "addVaccination",
|
||||||
@@ -183,9 +184,9 @@ export default {
|
|||||||
this.form = {...this.form, name, idNumber, phone, areaId, address}
|
this.form = {...this.form, name, idNumber, phone, areaId, address}
|
||||||
},
|
},
|
||||||
getInfoByIdNumber(code) {
|
getInfoByIdNumber(code) {
|
||||||
if (this.idCardNoUtil.checkIdCardNo(code)) {
|
if (ID.check(code)) {
|
||||||
let info = this.idCardNoUtil.getIdCardInfo(code)
|
let info = new ID(code)
|
||||||
this.form.sex = this.dict.getValue('sex', info.gender)
|
this.form.sex = info.sex
|
||||||
this.form.birthday = info.birthday
|
this.form.birthday = info.birthday
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,6 +97,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import {mapState} from 'vuex';
|
import {mapState} from 'vuex';
|
||||||
import detail from './detail'
|
import detail from './detail'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppScorePersonal',
|
name: 'AppScorePersonal',
|
||||||
@@ -263,8 +264,7 @@ export default {
|
|||||||
formRules() {
|
formRules() {
|
||||||
let IdNumberPass = (rule, value, callback) => {
|
let IdNumberPass = (rule, value, callback) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
console.log(this.idCardNoUtil);
|
if (ID.check(value)) {
|
||||||
if (this.idCardNoUtil.checkIdCardNo(value)) {
|
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error("身份证号格式错误"));
|
callback(new Error("身份证号格式错误"));
|
||||||
|
|||||||
@@ -119,6 +119,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
export default {
|
export default {
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
|
|
||||||
@@ -132,7 +133,7 @@
|
|||||||
const validatorId = (rule, value, callback) => {
|
const validatorId = (rule, value, callback) => {
|
||||||
if (value === '') {
|
if (value === '') {
|
||||||
callback(new Error('请输入身份证号'))
|
callback(new Error('请输入身份证号'))
|
||||||
} else if (!this.idCardNoUtil.checkIdCardNo(value)) {
|
} else if (!ID.check(value)) {
|
||||||
callback(new Error('身份证号格式错误'))
|
callback(new Error('身份证号格式错误'))
|
||||||
} else {
|
} else {
|
||||||
callback()
|
callback()
|
||||||
|
|||||||
@@ -163,6 +163,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
@@ -242,7 +243,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const idNumberInfo = this.idCardNoUtil.getIdCardInfo(e.idNumber)
|
const idNumberInfo = new ID(e.idNumber)
|
||||||
this.$set(this.formData, 'birthDate', idNumberInfo.birthday)
|
this.$set(this.formData, 'birthDate', idNumberInfo.birthday)
|
||||||
this.formData.photo = e.photo ? [{
|
this.formData.photo = e.photo ? [{
|
||||||
url: e.photo
|
url: e.photo
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<el-row type="flex" justify="space-between" @click.native="handleSelectResident(row)" class="toggle"
|
<el-row type="flex" justify="space-between" @click.native="handleSelectResident(row)" class="toggle"
|
||||||
:class="{selected:findResident(row.id)>-1}">
|
:class="{selected:findResident(row.id)>-1}">
|
||||||
<span v-text="row.name"/>
|
<span v-text="row.name"/>
|
||||||
<span v-text="idCardNoUtil.hideId(row.idNumber)"/>
|
<span v-text="ID.hideId(row.idNumber)"/>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template slot-scope="{row,$index}">
|
<template slot-scope="{row,$index}">
|
||||||
<el-row type="flex" align="middle" justify="space-between">
|
<el-row type="flex" align="middle" justify="space-between">
|
||||||
<div v-text="[row.residentName, idCardNoUtil.hideId(row.idNumber)].join(' ')"/>
|
<div v-text="[row.residentName, ID.hideId(row.idNumber)].join(' ')"/>
|
||||||
<el-button type="text" @click="form.residentList.splice($index,1)">删除</el-button>
|
<el-button type="text" @click="form.residentList.splice($index,1)">删除</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
@@ -70,6 +70,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "neighbourSetting",
|
name: "neighbourSetting",
|
||||||
@@ -92,6 +93,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
ID,
|
||||||
search: {residentName: "", ids: ""},
|
search: {residentName: "", ids: ""},
|
||||||
page: {current: 1, size: 10, total: 0},
|
page: {current: 1, size: 10, total: 0},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
|||||||
@@ -448,7 +448,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
let IdNumberPass = (rule, value, callback) => {
|
let IdNumberPass = (rule, value, callback) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (this.idCardNoUtil.checkIdCardNo(value)) {
|
if (ID.check(value)) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error("身份证号格式错误"));
|
callback(new Error("身份证号格式错误"));
|
||||||
@@ -568,7 +568,7 @@ export default {
|
|||||||
{label: "姓名", prop: "name"},
|
{label: "姓名", prop: "name"},
|
||||||
{label: "性别", prop: "sex", dict: "sex", align: 'center'},
|
{label: "性别", prop: "sex", dict: "sex", align: 'center'},
|
||||||
{label: "年龄", prop: "age", align: 'center'},
|
{label: "年龄", prop: "age", align: 'center'},
|
||||||
{label: "身份证号", render: (h, {row}) => h('p', this.idCardNoUtil.hideId(row.idNumber))},
|
{label: "身份证号", render: (h, {row}) => h('p', ID.hideId(row.idNumber))},
|
||||||
{slot: "options"}
|
{slot: "options"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -653,7 +653,7 @@ export default {
|
|||||||
},
|
},
|
||||||
showFamily(row) {
|
showFamily(row) {
|
||||||
this.familyInfo = row;
|
this.familyInfo = row;
|
||||||
let {birthday} = this.idCardNoUtil.getIdCardInfo(this.familyInfo.idNumber)
|
let {birthday} = ID.getIdCardInfo(this.familyInfo.idNumber)
|
||||||
this.familyInfo.birthday = birthday
|
this.familyInfo.birthday = birthday
|
||||||
if (this.familyInfo.photo) {
|
if (this.familyInfo.photo) {
|
||||||
this.familyInfo.imgUrl = this.familyInfo.photo.split(";")[0];
|
this.familyInfo.imgUrl = this.familyInfo.photo.split(";")[0];
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "psList",
|
name: "psList",
|
||||||
@@ -60,7 +61,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{label: '类型', prop: 'residentType', align: 'center', dict: "residentType"},
|
{label: '类型', prop: 'residentType', align: 'center', dict: "residentType"},
|
||||||
{label: '姓名', prop: 'name', align: 'center'},
|
{label: '姓名', prop: 'name', align: 'center'},
|
||||||
{label: '身份证号', render: (h, {row}) => h('p', this.idCardNoUtil.hideId(row.idNumber)), width: 165},
|
{label: '身份证号', render: (h, {row}) => h('p', ID.hideId(row.idNumber)), width: 165},
|
||||||
{label: '联系电话', prop: 'phone', align: 'center', width: 120}
|
{label: '联系电话', prop: 'phone', align: 'center', width: 120}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -522,7 +522,7 @@ export default {
|
|||||||
{
|
{
|
||||||
label: "证件号",
|
label: "证件号",
|
||||||
render: (h, {row}) =>
|
render: (h, {row}) =>
|
||||||
h("p", null, this.idCardNoUtil.hideId(row.idNumber)),
|
h("p", null, ID.hideId(row.idNumber)),
|
||||||
},
|
},
|
||||||
{slot: "options"},
|
{slot: "options"},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -77,6 +77,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "hrList",
|
name: "hrList",
|
||||||
@@ -92,7 +93,7 @@ export default {
|
|||||||
{type: 'selection'},
|
{type: 'selection'},
|
||||||
{label: "姓名", prop: "name", align: "center"},
|
{label: "姓名", prop: "name", align: "center"},
|
||||||
{label: "性别", prop: "sex", dict: 'sex', align: "center"},
|
{label: "性别", prop: "sex", dict: 'sex', align: "center"},
|
||||||
{label: "证件号", render: (h, {row}) => h('p', this.idCardNoUtil.hideId(row.idNumber))},
|
{label: "证件号", render: (h, {row}) => h('p', ID.hideId(row.idNumber))},
|
||||||
{label: "年龄", prop: "age", align: "center"},
|
{label: "年龄", prop: "age", align: "center"},
|
||||||
{label: "民族", prop: "nation", align: "center", dict: "fpNation"},
|
{label: "民族", prop: "nation", align: "center", dict: "fpNation"},
|
||||||
{label: "文化程度", prop: "education", align: "center", dict: "fpEducation"},
|
{label: "文化程度", prop: "education", align: "center", dict: "fpEducation"},
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
export default {
|
export default {
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
|
|
||||||
@@ -70,7 +71,7 @@
|
|||||||
const validatorId = (rule, value, callback) => {
|
const validatorId = (rule, value, callback) => {
|
||||||
if (value === '') {
|
if (value === '') {
|
||||||
callback(new Error('请输入身份证号'))
|
callback(new Error('请输入身份证号'))
|
||||||
} else if (!this.idCardNoUtil.checkIdCardNo(value)) {
|
} else if (!ID.check(value)) {
|
||||||
callback(new Error('身份证号格式错误'))
|
callback(new Error('身份证号格式错误'))
|
||||||
} else {
|
} else {
|
||||||
callback()
|
callback()
|
||||||
@@ -80,10 +81,10 @@
|
|||||||
const validatorPhone = function (rule, value, callback) {
|
const validatorPhone = function (rule, value, callback) {
|
||||||
if (value === '') {
|
if (value === '') {
|
||||||
callback(new Error('请输入联系方式'))
|
callback(new Error('请输入联系方式'))
|
||||||
}
|
}
|
||||||
// else if (!/^1\d{10}$/.test(value)) {
|
// else if (!/^1\d{10}$/.test(value)) {
|
||||||
// callback(new Error('手机号格式错误'))
|
// callback(new Error('手机号格式错误'))
|
||||||
// }
|
// }
|
||||||
else {
|
else {
|
||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,6 +95,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "sealDetail",
|
name: "sealDetail",
|
||||||
inject: ['seal'],
|
inject: ['seal'],
|
||||||
@@ -135,11 +137,11 @@ export default {
|
|||||||
],
|
],
|
||||||
legalIdNumber: [
|
legalIdNumber: [
|
||||||
{required: true, message: "请填写法人身份证号码"},
|
{required: true, message: "请填写法人身份证号码"},
|
||||||
{validator: (r, v, cb) => cb(this.idCardNoUtil.checkIdCardNo(v) ? undefined : "身份证号码格式有误")}
|
{validator: (r, v, cb) => cb(ID.check(v) ? undefined : "身份证号码格式有误")}
|
||||||
],
|
],
|
||||||
agentIdNumber: [
|
agentIdNumber: [
|
||||||
{required: true, message: "请填写代理人身份证号码"},
|
{required: true, message: "请填写代理人身份证号码"},
|
||||||
{validator: (r, v, cb) => cb(this.idCardNoUtil.checkIdCardNo(v) ? undefined : "身份证号码格式有误")}
|
{validator: (r, v, cb) => cb(ID.check(v) ? undefined : "身份证号码格式有误")}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ export default {
|
|||||||
],
|
],
|
||||||
idNumber: [
|
idNumber: [
|
||||||
{required: true, message: "请填写身份证号码"},
|
{required: true, message: "请填写身份证号码"},
|
||||||
{validator: (r, v, cb) => cb(this.idCardNoUtil.checkIdCardNo(v) ? undefined : "身份证号码格式有误")}
|
{validator: (r, v, cb) => cb(ID.check(v) ? undefined : "身份证号码格式有误")}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
@@ -137,7 +138,7 @@ export default {
|
|||||||
|
|
||||||
let IdNumberPass = (rule, value, callback) => {
|
let IdNumberPass = (rule, value, callback) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (this.idCardNoUtil.checkIdCardNo(value)) {
|
if (ID.check(value)) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error('身份证号格式错误'))
|
callback(new Error('身份证号格式错误'))
|
||||||
|
|||||||
@@ -52,6 +52,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Detail',
|
name: 'Detail',
|
||||||
|
|
||||||
@@ -60,21 +62,22 @@
|
|||||||
dict: Object,
|
dict: Object,
|
||||||
params: Object
|
params: Object
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
idNumberInfo:v=>new ID(v.info.idNumber)
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
currIndex: 0,
|
currIndex: 0,
|
||||||
tabTitle: ['人员信息', '走访记录'],
|
tabTitle: ['人员信息', '走访记录'],
|
||||||
info: {},
|
info: {},
|
||||||
list: [],
|
list: [],
|
||||||
idNumberInfo: {}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
if (this.params && this.params.id) {
|
if (this.params && this.params.id) {
|
||||||
this.id = this.params.id
|
this.id = this.params.id
|
||||||
|
|
||||||
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
||||||
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
||||||
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
||||||
@@ -91,7 +94,6 @@
|
|||||||
this.instance.post(`/app/appspecialadjustment/queryDetailById?id=${id}`).then(res => {
|
this.instance.post(`/app/appspecialadjustment/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
this.idNumberInfo = this.idCardNoUtil.getIdCardInfo(res.data.idNumber)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
@@ -137,7 +138,7 @@ export default {
|
|||||||
|
|
||||||
let IdNumberPass = (rule, value, callback) => {
|
let IdNumberPass = (rule, value, callback) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (this.idCardNoUtil.checkIdCardNo(value)) {
|
if (ID.check(value)) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error('身份证号格式错误'))
|
callback(new Error('身份证号格式错误'))
|
||||||
|
|||||||
@@ -51,6 +51,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Detail',
|
name: 'Detail',
|
||||||
|
|
||||||
@@ -66,14 +68,13 @@
|
|||||||
tabTitle: ['人员信息', '走访记录'],
|
tabTitle: ['人员信息', '走访记录'],
|
||||||
info: {},
|
info: {},
|
||||||
list: [],
|
list: [],
|
||||||
idNumberInfo: {}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
if (this.params && this.params.id) {
|
if (this.params && this.params.id) {
|
||||||
this.id = this.params.id
|
this.id = this.params.id
|
||||||
|
|
||||||
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
||||||
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
||||||
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
||||||
@@ -84,13 +85,14 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
idNumberInfo:v=>new ID(v.info.idNumber)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getInfo (id) {
|
getInfo (id) {
|
||||||
this.instance.post(`/app/appspecialdisabled/queryDetailById?id=${id}`).then(res => {
|
this.instance.post(`/app/appspecialdisabled/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
this.idNumberInfo = this.idCardNoUtil.getIdCardInfo(res.data.idNumber)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
@@ -150,7 +151,7 @@ export default {
|
|||||||
|
|
||||||
let IdNumberPass = (rule, value, callback) => {
|
let IdNumberPass = (rule, value, callback) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (this.idCardNoUtil.checkIdCardNo(value)) {
|
if (ID.check(value)) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error('身份证号格式错误'))
|
callback(new Error('身份证号格式错误'))
|
||||||
|
|||||||
@@ -53,6 +53,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Detail',
|
name: 'Detail',
|
||||||
|
|
||||||
@@ -68,14 +70,13 @@
|
|||||||
tabTitle: ['人员信息', '走访记录'],
|
tabTitle: ['人员信息', '走访记录'],
|
||||||
info: {},
|
info: {},
|
||||||
list: [],
|
list: [],
|
||||||
idNumberInfo: {}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
if (this.params && this.params.id) {
|
if (this.params && this.params.id) {
|
||||||
this.id = this.params.id
|
this.id = this.params.id
|
||||||
|
|
||||||
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
||||||
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
||||||
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
||||||
@@ -86,13 +87,14 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
idNumberInfo:v=>new ID(v.info.idNumber)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getInfo (id) {
|
getInfo (id) {
|
||||||
this.instance.post(`/app/appspecialdrug/queryDetailById?id=${id}`).then(res => {
|
this.instance.post(`/app/appspecialdrug/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
this.idNumberInfo = this.idCardNoUtil.getIdCardInfo(res.data.idNumber)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
@@ -150,7 +151,7 @@ export default {
|
|||||||
|
|
||||||
let IdNumberPass = (rule, value, callback) => {
|
let IdNumberPass = (rule, value, callback) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (this.idCardNoUtil.checkIdCardNo(value)) {
|
if (ID.check(value)) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error('身份证号格式错误'))
|
callback(new Error('身份证号格式错误'))
|
||||||
|
|||||||
@@ -52,6 +52,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Detail',
|
name: 'Detail',
|
||||||
|
|
||||||
@@ -67,14 +69,13 @@
|
|||||||
tabTitle: ['人员信息', '走访记录'],
|
tabTitle: ['人员信息', '走访记录'],
|
||||||
info: {},
|
info: {},
|
||||||
list: [],
|
list: [],
|
||||||
idNumberInfo: {}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
if (this.params && this.params.id) {
|
if (this.params && this.params.id) {
|
||||||
this.id = this.params.id
|
this.id = this.params.id
|
||||||
|
|
||||||
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
||||||
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
||||||
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
||||||
@@ -85,13 +86,14 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
idNumberInfo:v=>new ID(v.info.idNumber)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getInfo (id) {
|
getInfo (id) {
|
||||||
this.instance.post(`/app/appspecialmental/queryDetailById?id=${id}`).then(res => {
|
this.instance.post(`/app/appspecialmental/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
this.idNumberInfo = this.idCardNoUtil.getIdCardInfo(res.data.idNumber)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
@@ -134,10 +135,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let IdNumberPass = (rule, value, callback) => {
|
let IdNumberPass = (rule, value, callback) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (this.idCardNoUtil.checkIdCardNo(value)) {
|
if (ID.check(value)) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error('身份证号格式错误'))
|
callback(new Error('身份证号格式错误'))
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-detail class="AppSpecial" isHasSidebar>
|
<ai-detail class="AppSpecial" isHasSidebar>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title title="详情" isShowBack isShowBottomBorder @onBackClick="cancel(true)">
|
<ai-title title="详情" isShowBack isShowBottomBorder @onBackClick="cancel(true)">
|
||||||
@@ -55,145 +55,147 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
name: 'Detail',
|
|
||||||
|
|
||||||
props: {
|
export default {
|
||||||
instance: Function,
|
name: 'Detail',
|
||||||
dict: Object,
|
|
||||||
params: Object
|
props: {
|
||||||
|
instance: Function,
|
||||||
|
dict: Object,
|
||||||
|
params: Object
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
idNumberInfo: v => new ID(v.info.idNumber)
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
currIndex: 0,
|
||||||
|
tabTitle: ['人员信息', '走访记录'],
|
||||||
|
info: {},
|
||||||
|
list: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
if (this.params && this.params.id) {
|
||||||
|
this.id = this.params.id
|
||||||
|
|
||||||
|
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
||||||
|
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
||||||
|
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive', 'isReflection', 'yesOrNo').then(() => {
|
||||||
|
this.getInfo(this.params.id)
|
||||||
|
})
|
||||||
|
this.dict.load('visitCondolenceReality').then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
getInfo(id) {
|
||||||
|
this.instance.post(`/app/appspecialprison/queryDetailById?id=${id}`).then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.info = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
data () {
|
getList() {
|
||||||
return {
|
this.instance.post(`/app/appvisitvondolence/list`, null, {
|
||||||
currIndex: 0,
|
params: {
|
||||||
tabTitle: ['人员信息', '走访记录'],
|
applicationId: 4,
|
||||||
info: {},
|
size: 1000
|
||||||
list: [],
|
}
|
||||||
idNumberInfo: {}
|
}).then(res => {
|
||||||
}
|
if (res.code == 0) {
|
||||||
|
this.list = res.data.records
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
cancel(isRefresh) {
|
||||||
if (this.params && this.params.id) {
|
this.$emit('change', {
|
||||||
this.id = this.params.id
|
type: 'List',
|
||||||
|
isRefresh: !!isRefresh
|
||||||
this.dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
})
|
||||||
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType', 'appSpecialCure', 'appSpecialDengerLevel',
|
|
||||||
'appSpecialDisableLevel', 'appSpecialDisableType', 'appSpecialHealth', 'appSpecialMarriage', 'appSpecialTypeFive','isReflection','yesOrNo').then(() => {
|
|
||||||
this.getInfo(this.params.id)
|
|
||||||
})
|
|
||||||
this.dict.load('visitCondolenceReality').then(() => {
|
|
||||||
this.getList()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
getInfo (id) {
|
|
||||||
this.instance.post(`/app/appspecialprison/queryDetailById?id=${id}`).then(res => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
this.info = res.data
|
|
||||||
this.idNumberInfo = this.idCardNoUtil.getIdCardInfo(res.data.idNumber)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
getList () {
|
|
||||||
this.instance.post(`/app/appvisitvondolence/list`, null, {
|
|
||||||
params: {
|
|
||||||
applicationId: 4,
|
|
||||||
size: 1000
|
|
||||||
}
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.list = res.data.records
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
cancel (isRefresh) {
|
|
||||||
this.$emit('change', {
|
|
||||||
type: 'List',
|
|
||||||
isRefresh: !!isRefresh
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.AppSpecial {
|
.AppSpecial {
|
||||||
.visit-list {
|
.visit-list {
|
||||||
.visit-item {
|
.visit-item {
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.visit-status {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 14px;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
i {
|
||||||
border-bottom: none;
|
color: #999;
|
||||||
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.visit-status {
|
& > p {
|
||||||
display: flex;
|
line-height: 1.4;
|
||||||
align-items: center;
|
margin-bottom: 4px;
|
||||||
|
text-align: justify;
|
||||||
|
color: #666;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.visit-item__top {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
span {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
color: #999;
|
||||||
span {
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
i {
|
|
||||||
color: #999;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& > p {
|
.left {
|
||||||
line-height: 1.4;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
text-align: justify;
|
|
||||||
color: #666;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.visit-item__top {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
|
|
||||||
span {
|
img, .avatar {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
|
text-align: center;
|
||||||
|
margin-right: 10px;
|
||||||
|
border-radius: 50%;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #999;
|
color: #fff;
|
||||||
|
background: #26f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left {
|
h2 {
|
||||||
display: flex;
|
font-size: 16px;
|
||||||
align-items: center;
|
font-weight: 500;
|
||||||
|
|
||||||
img, .avatar {
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
line-height: 40px;
|
|
||||||
text-align: center;
|
|
||||||
margin-right: 10px;
|
|
||||||
border-radius: 50%;
|
|
||||||
font-size: 14px;
|
|
||||||
color: #fff;
|
|
||||||
background: #26f;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
import LoanSta from "./loanSta";
|
import LoanSta from "./loanSta";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "loanList",
|
name: "loanList",
|
||||||
@@ -130,7 +131,7 @@ export default {
|
|||||||
]
|
]
|
||||||
} else {//金融产品
|
} else {//金融产品
|
||||||
ops = [
|
ops = [
|
||||||
{label: "身份证号", render: (h, {row}) => h('p', this.idCardNoUtil.hideId(row.idNumber)), width: 160},
|
{label: "身份证号", render: (h, {row}) => h('p', ID.hideId(row.idNumber)), width: 160},
|
||||||
{label: "贷款金额(万)", prop: "loanAmount"},
|
{label: "贷款金额(万)", prop: "loanAmount"},
|
||||||
{label: "贷款机构", prop: "organizationName"},
|
{label: "贷款机构", prop: "organizationName"},
|
||||||
{label: "机构类型", prop: "organizationType", dict: "financialOrganizationType"},
|
{label: "机构类型", prop: "organizationType", dict: "financialOrganizationType"},
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AppLoanSta",
|
name: "AppLoanSta",
|
||||||
@@ -55,7 +56,7 @@ export default {
|
|||||||
{label: "产品名称", width: '200', prop: "productName"},
|
{label: "产品名称", width: '200', prop: "productName"},
|
||||||
{label: "联系人", width: '100', prop: "name"},
|
{label: "联系人", width: '100', prop: "name"},
|
||||||
{label: "联系方式", width: '140', prop: "phone"},
|
{label: "联系方式", width: '140', prop: "phone"},
|
||||||
{label: "身份证号", render: (h, {row}) => h('p', this.idCardNoUtil.hideId(row.idNumber)), width: 160},
|
{label: "身份证号", render: (h, {row}) => h('p', ID.hideId(row.idNumber)), width: 160},
|
||||||
{label: "企业主体", width: '200', prop: "enterpriseName"},
|
{label: "企业主体", width: '200', prop: "enterpriseName"},
|
||||||
{label: "贷款金额(万)", width: '120', prop: "loanAmount"},
|
{label: "贷款金额(万)", width: '120', prop: "loanAmount"},
|
||||||
{label: "申请时间", prop: "createTime", width: 160},
|
{label: "申请时间", prop: "createTime", width: 160},
|
||||||
|
|||||||
@@ -95,6 +95,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "sealDetail",
|
name: "sealDetail",
|
||||||
inject: ['seal'],
|
inject: ['seal'],
|
||||||
@@ -135,11 +137,11 @@ export default {
|
|||||||
],
|
],
|
||||||
legalIdNumber: [
|
legalIdNumber: [
|
||||||
{required: true, message: "请填写法人身份证号码"},
|
{required: true, message: "请填写法人身份证号码"},
|
||||||
{validator: (r, v, cb) => cb(this.idCardNoUtil.checkIdCardNo(v) ? undefined : "身份证号码格式有误")}
|
{validator: (r, v, cb) => cb(ID.check(v) ? undefined : "身份证号码格式有误")}
|
||||||
],
|
],
|
||||||
agentIdNumber: [
|
agentIdNumber: [
|
||||||
{required: true, message: "请填写代理人身份证号码"},
|
{required: true, message: "请填写代理人身份证号码"},
|
||||||
{validator: (r, v, cb) => cb(this.idCardNoUtil.checkIdCardNo(v) ? undefined : "身份证号码格式有误")}
|
{validator: (r, v, cb) => cb(ID.check(v) ? undefined : "身份证号码格式有误")}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
import DrawInPhone from "./drawInPhone";
|
import DrawInPhone from "./drawInPhone";
|
||||||
|
import {ID} from "dvcp-ui/lib/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AppPersonalSignature",
|
name: "AppPersonalSignature",
|
||||||
@@ -95,7 +96,7 @@ export default {
|
|||||||
],
|
],
|
||||||
idNumber: [
|
idNumber: [
|
||||||
{required: true, message: "请填写身份证号码"},
|
{required: true, message: "请填写身份证号码"},
|
||||||
{validator: (r, v, cb) => cb(this.idCardNoUtil.checkIdCardNo(v) ? undefined : "身份证号码格式有误")}
|
{validator: (r, v, cb) => cb(ID.check(v) ? undefined : "身份证号码格式有误")}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user