清理idCardNoUtils,改使用ID对象
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
import LoanSta from "./loanSta";
|
||||
import {ID} from "dvcp-ui/lib/js/utils";
|
||||
|
||||
export default {
|
||||
name: "loanList",
|
||||
@@ -130,7 +131,7 @@ export default {
|
||||
]
|
||||
} else {//金融产品
|
||||
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: "organizationName"},
|
||||
{label: "机构类型", prop: "organizationType", dict: "financialOrganizationType"},
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
import {ID} from "dvcp-ui/lib/js/utils";
|
||||
|
||||
export default {
|
||||
name: "AppLoanSta",
|
||||
@@ -55,7 +56,7 @@ export default {
|
||||
{label: "产品名称", width: '200', prop: "productName"},
|
||||
{label: "联系人", width: '100', prop: "name"},
|
||||
{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: '120', prop: "loanAmount"},
|
||||
{label: "申请时间", prop: "createTime", width: 160},
|
||||
|
||||
@@ -95,6 +95,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {ID} from "dvcp-ui/lib/js/utils";
|
||||
|
||||
export default {
|
||||
name: "sealDetail",
|
||||
inject: ['seal'],
|
||||
@@ -135,11 +137,11 @@ export default {
|
||||
],
|
||||
legalIdNumber: [
|
||||
{required: true, message: "请填写法人身份证号码"},
|
||||
{validator: (r, v, cb) => cb(this.idCardNoUtil.checkIdCardNo(v) ? undefined : "身份证号码格式有误")}
|
||||
{validator: (r, v, cb) => cb(ID.check(v) ? undefined : "身份证号码格式有误")}
|
||||
],
|
||||
agentIdNumber: [
|
||||
{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>
|
||||
import {mapState} from "vuex";
|
||||
import DrawInPhone from "./drawInPhone";
|
||||
import {ID} from "dvcp-ui/lib/js/utils";
|
||||
|
||||
export default {
|
||||
name: "AppPersonalSignature",
|
||||
@@ -95,7 +96,7 @@ export default {
|
||||
],
|
||||
idNumber: [
|
||||
{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