feat(库存管理): 重构库存页面并添加分组功能
添加vxe-table依赖支持表格分组和筛选 重构库存页面为左右布局,左侧仓库树右侧分组表格 实现按物料类型、名称、材质等多维度分组功能 添加全表搜索和列筛选功能 移除不再使用的stockIo组件和旧版库存页面
This commit is contained in:
@@ -541,7 +541,13 @@ export default {
|
||||
// 清理空格和换行
|
||||
content = content.trim();
|
||||
|
||||
// 如果不是以大写汉字数字开头,添加一个中文字符的缩进
|
||||
if (content) {
|
||||
// 检查是否以大写汉字数字开头(一、二、三、四、五、六、七、八、九、十)
|
||||
const chineseNumberRegex = /^[一二三四五六七八九十]+、/;
|
||||
if (!chineseNumberRegex.test(content)) {
|
||||
content = ' ' + content; // 使用全角空格作为中文字符缩进
|
||||
}
|
||||
pContents.push(content);
|
||||
}
|
||||
}
|
||||
@@ -551,7 +557,13 @@ export default {
|
||||
let textContent = htmlContent.replace(/<[^>]*>/g, '');
|
||||
textContent = textContent.replace(/ /g, ' ').trim();
|
||||
|
||||
// 如果不是以大写汉字数字开头,添加一个中文字符的缩进
|
||||
if (textContent) {
|
||||
// 检查是否以大写汉字数字开头(一、二、三、四、五、六、七、八、九、十)
|
||||
const chineseNumberRegex = /^[一二三四五六七八九十]+、/;
|
||||
if (!chineseNumberRegex.test(textContent)) {
|
||||
textContent = ' ' + textContent; // 使用全角空格作为中文字符缩进
|
||||
}
|
||||
pContents.push(textContent);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user