营销填报页面+录入明细页面:身份证号+手机号 脱敏显示

This commit is contained in:
zhuangdashia 2025-11-19 14:16:52 +08:00
parent e7bdeaf30c
commit ff779873e6
2 changed files with 32 additions and 4 deletions

View File

@ -192,7 +192,14 @@ const {
width: 180,
minWidth: 120,
ellipsis: true,
resizable: true
resizable: true,
render(row) {
// 64
if (row.custId && row.custId.length === 18) {
return row.custId.replace(/^(\d{6})\d+([\dXx]{4})$/, "$1********$2")
}
return row.custId || '';
}
},
{
key: 'custName',
@ -217,7 +224,14 @@ const {
align: 'center',
minWidth: 120,
ellipsis: true,
resizable: true
resizable: true,
render(row) {
// 34
if (row.custPhoneNo) {
return row.custPhoneNo.replace(/^(\d{3})\d+(\d{4})$/, "$1****$2")
}
return row.custPhoneNo || '';
}
},
{
key: 'magneticCardId',

View File

@ -189,7 +189,14 @@ const {
align: 'center',
minWidth: 120,
ellipsis: true,
resizable: true
resizable: true,
render(row) {
// 64
if (row.custId && row.custId.length === 18) {
return row.custId.replace(/^(\d{6})\d+([\dXx]{4})$/, "$1********$2")
}
return row.custId || '';
}
},
{
key: 'custName',
@ -213,7 +220,14 @@ const {
align: 'center',
minWidth: 120,
ellipsis: true,
resizable: true
resizable: true,
render(row) {
// 34
if (row.phone) {
return row.phone.replace(/^(\d{3})\d+(\d{4})$/, "$1****$2")
}
return row.phone || '';
}
},
{
key: 'magneticCardId',