feat(cargo-type): 优化货物类型导入失败明细的错误标记和提示

- 新增导入失败明细的加工函数,给违规字段自动标红并丰富错误提示信息
- 在导入弹窗调用中增加失败明细装饰器处理,提升用户体验
- 将货物类型组件option配置提取为单独模块,简化代码逻辑
- 调整货物类型表单禁用逻辑,避免非新增时的错误操作
- 移除原有表单校验函数,相关验证由导入失败明细装饰器替代
- 引入exceljs依赖以支持导入失败Excel文件的读取和修改
- 修复导入失败明细导出时的文件命名和内容加工问题
- 优化代码结构,提升维护性和可读性
This commit is contained in:
2026-07-27 23:58:29 +08:00
parent 1c7532e0de
commit e76cf70a20
7 changed files with 801 additions and 182 deletions

View File

@@ -9,21 +9,22 @@
"serve": "vite preview --host"
},
"dependencies": {
"element-plus": "^2.14.2",
"@element-plus/icons-vue": "^2.3.1",
"@open-file-viewer/core": "^0.1.27",
"@open-file-viewer/vue": "^0.1.27",
"@smallwei/avue": "~3.9.2",
"avue-plugin-ueditor": "^1.0.4",
"@saber/nf-design-base-elp": "^1.3.0",
"@saber/nf-form-design-elp": "^1.6.1",
"@saber/nf-form-elp": "^1.6.3",
"@smallwei/avue": "~3.9.2",
"animate.css": "^4.1.1",
"avue-plugin-ueditor": "^1.0.4",
"axios": "^1.13.5",
"codemirror": "^5.65.21",
"crypto-js": "^4.1.1",
"dayjs": "^1.10.6",
"disable-devtool": "^0.3.8",
"element-plus": "^2.14.2",
"exceljs": "^4.4.0",
"highlight.js": "^11.9.0",
"js-base64": "^3.7.4",
"js-cookie": "^3.0.0",
@@ -40,8 +41,8 @@
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.4",
"@vue/compiler-sfc": "^3.4.27",
"sass": "^1.85.1",
"prettier": "^2.8.7",
"sass": "^1.85.1",
"terser": "^5.31.1",
"unplugin-auto-import": "^0.11.2",
"vite": "^5.4.19",