Compare commits
No commits in common. "ed3c69ad65c94a23daf57af764ea724234f98331" and "8df6961a45fd99bd2993d1bcdeea772279e9d5d8" have entirely different histories.
ed3c69ad65
...
8df6961a45
|
@ -49,11 +49,6 @@
|
||||||
<el-table-column label="终端零售价" prop="price" show-overflow-tooltip />
|
<el-table-column label="终端零售价" prop="price" show-overflow-tooltip />
|
||||||
<el-table-column label="销量" prop="sales" show-overflow-tooltip />
|
<el-table-column label="销量" prop="sales" show-overflow-tooltip />
|
||||||
<el-table-column label="库存" prop="stock" show-overflow-tooltip />
|
<el-table-column label="库存" prop="stock" show-overflow-tooltip />
|
||||||
<el-table-column label="厂家备注" prop="manufacturer_information" min-width="200">
|
|
||||||
<template #default="{ row }">
|
|
||||||
<div style="white-space: pre;">{{ cMark(row.manufacturer_information) }}</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<!-- <el-table-column label="状态" prop="engineering_status_text" show-overflow-tooltip>
|
<!-- <el-table-column label="状态" prop="engineering_status_text" show-overflow-tooltip>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-switch v-model="row.status" :active-value="1" :inactive-value="0"
|
<el-switch v-model="row.status" :active-value="1" :inactive-value="0"
|
||||||
|
@ -132,23 +127,6 @@ const handleEdit = async (data: any) => {
|
||||||
editRef.value?.getTableLists({ product_id: data.product_id, store_id })
|
editRef.value?.getTableLists({ product_id: data.product_id, store_id })
|
||||||
}
|
}
|
||||||
|
|
||||||
const cMark = (str: any) => {
|
|
||||||
if (str) {
|
|
||||||
return str.replace(/(\d{5,})/g, (match: string) => {
|
|
||||||
let replacement;
|
|
||||||
// 判断数字长度,执行不同替换逻辑
|
|
||||||
if (match.length >= 11) {
|
|
||||||
// 对于11位以上的连续数字,替换倒数第四到倒数第八位为星号
|
|
||||||
replacement = match.slice(0, -8) + "****" + match.slice(-4);
|
|
||||||
} else {
|
|
||||||
// 对于5到11位的数字,替换最后四位为星号
|
|
||||||
replacement = match.slice(0, -4) + "****";
|
|
||||||
}
|
|
||||||
return replacement;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return '-';
|
|
||||||
}
|
|
||||||
|
|
||||||
const typeLists = reactive([])
|
const typeLists = reactive([])
|
||||||
|
|
||||||
|
@ -159,4 +137,5 @@ const getTypeLists = async () => {
|
||||||
|
|
||||||
// getTypeLists()
|
// getTypeLists()
|
||||||
getLists()
|
getLists()
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue