From 379aa9d44bdfe608a0869db95bceb8dcb6edf977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Thu, 18 Jun 2026 10:27:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(crm):=20=E4=BC=98=E5=8C=96=E5=90=88?= =?UTF-8?q?=E5=90=8C=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86=E5=92=8C=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=98=8E=E7=BB=86=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 合同模板管理:添加选中状态高亮样式,新增当前选中模板状态管理 2. 订单明细页面: - 合并搜索框为产品名称/材质统一搜索 - 重构表格数据结构,拆分合同与产品明细展示 - 添加批量/单行保存功能,自动计算产品金额字段 - 优化筛选条件和默认日期范围,调整表格列样式与配置 --- .../components/ContractTemplateManager.vue | 12 +- klp-ui/src/views/crm/orderItem/index.vue | 553 ++++++++++-------- 2 files changed, 328 insertions(+), 237 deletions(-) diff --git a/klp-ui/src/views/crm/contract/components/ContractTemplateManager.vue b/klp-ui/src/views/crm/contract/components/ContractTemplateManager.vue index d7ce2919..56ccbcaf 100644 --- a/klp-ui/src/views/crm/contract/components/ContractTemplateManager.vue +++ b/klp-ui/src/views/crm/contract/components/ContractTemplateManager.vue @@ -4,6 +4,7 @@ {{ template.dictLabel }} @@ -72,6 +73,8 @@ export default { dialogTitle: "合同模板管理", // 选中的模板 selectedTemplate: {}, + // 当前选用的合同模板 + currentSelectedTemplate: null, // 保存按钮loading状态 saveLoading: false, // 表单数据 @@ -109,7 +112,7 @@ export default { /** 处理合同模板选择 */ handleTemplateSelect(template) { - // 抛出选择事件,将选中的模板数据传出 + this.currentSelectedTemplate = template; this.$emit('select', template); }, @@ -197,6 +200,13 @@ export default { margin-bottom: 16px; } +.template-btn-selected { + border-bottom: 3px solid #409eff; + border-radius: 4px 4px 0 0; + color: #409eff; + font-weight: 600; +} + .template-management-layout { display: flex; height: 70vh; diff --git a/klp-ui/src/views/crm/orderItem/index.vue b/klp-ui/src/views/crm/orderItem/index.vue index 9c1b3090..94e31455 100644 --- a/klp-ui/src/views/crm/orderItem/index.vue +++ b/klp-ui/src/views/crm/orderItem/index.vue @@ -19,35 +19,11 @@ @keyup.enter.native="handleQuery" /> - - - 筛选 重置 - 已按合同交货日期倒序 + 明细创建时间倒序排列 + 已按合同签订日期默认当月,结果按交货日期倒序排列 - +
- + + + + + - + - + - + @@ -120,164 +108,140 @@ - - - - - + + + + + - + - - - - - - - - - - + - + - + + + + - + - + - + - + - - - - - @@ -313,50 +270,53 @@