diff --git a/.workbuddy/memory/2026-08-28.md b/.workbuddy/memory/2026-08-28.md index 017fcab..3e95a8b 100644 --- a/.workbuddy/memory/2026-08-28.md +++ b/.workbuddy/memory/2026-08-28.md @@ -58,3 +58,25 @@ - 根因:`` 误加 `class="project-apply-form__item--full"`(该类对应样式 `:deep(.project-apply-form__item--full) { grid-column: 1 / -1; ... }` 是横跨整行的:本意只用于"项目由来说明"等多行文本字段)。 - 修复:移除该 class,业务部门恢复为半宽(一行两列网格的常规项),仅"项目由来说明"等需要全宽铺开的字段仍保留 full。同时把样式块上方注释由「占满整行的表单项(业务部门 / 项目由来说明)」改为「占满整行的表单项(如项目由来说明等多行文本字段)」,避免再误读。 +## project-apply 字段 label 问号悬浮提示 +- 文件:`src/views/business/project-apply.vue` +- 需求:把"项目资金使用额度"/"项目应收账款额度"两字段的提示从 placeholder 移到 label 右侧问号 tooltip。 +- 实现: + - 两 `el-form-item` 加 `class="project-apply-form__tip-label"`,用 `#label` slot 包裹文字 + ``。 + - placeholder 改回"请输入"。 + - 提示文案按截图(去掉"额度"二字):资金使用额度→`实际业务回款周期内付款`;应收账款额度→`回款期内最大应收账款额`。 + - scoped 样式:`__tip-label :deep(.el-form-item__label){vertical-align:top}` 保持默认 inline 布局,让文字按全局 `white-space: normal` 换行显示;`__label-tip{margin-left:4px;color:#a8abb2;cursor:help;vertical-align:-0.125em}` 问号与文字 baseline 对齐。 +- 图标 `QuestionFilled` 已在 main.js 全局注册(@element-plus/icons-vue),模板可直接用。 +- 可复用模式:其它表单字段如需 label 旁问号提示,套用此 slot 结构即可。 + +## project-apply 详情页客户/承运商表格改造 +- 文件:`src/views/business/project-apply.vue` +- 需求: + 1. 客户信息、承运商信息两个表格的「客户」「承运商」列改为可点击链接,跳转打开对应客商档案。 + 2. 删除两个表格的「联系人」「联系方式」列。 +- 实现: + - 模板:两列的 `el-table-column` 用 `#default` slot 渲染 ``,显示 `row.customer` / `row.carrier`。 + - 删除原 `prop="contact"` 和 `prop="phone"` 两列。 + - methods 新增 `openCustomerArchive(row)`:取 `getCustomerRowId(row)`(`row.id || row.customerId || row.carrierId`),无 ID 时 `this.$message.warning`;有 ID 则 `this.$router.push({ path: '/vehicle/customer-archive/form', query: { id: String(id), name: '查看客商档案', view: '1' } })`。 +- 注意:客商档案查看态由 `customer-archive.vue` 的 `this.$route.query.view === '1'` 识别,与现有查看逻辑一致。 + diff --git a/src/views/business/project-apply.vue b/src/views/business/project-apply.vue index d8ef3ee..07b74a0 100644 --- a/src/views/business/project-apply.vue +++ b/src/views/business/project-apply.vue @@ -220,7 +220,7 @@ - + + - + + @@ -292,7 +304,7 @@ - + @@ -399,7 +411,17 @@
客户信息
- + + +