From 8c20dd758b9e97faaaba4f28d58e287a8192395e Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Mon, 24 Nov 2025 17:52:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(crmQuoteInfo):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=8A=A5=E4=BB=B7=E4=BF=A1=E6=81=AF=E7=95=8C=E9=9D=A2=E5=92=8C?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除报价编辑页中未使用的物料数据及相关处理方法 - 移除对基础物料列表的接口调用,简化数据源 - 调整报价列表页中多个字段的可见性,隐藏报价大类、报价类型等列 - 提升前端表现一致性和用户界面的简洁性 --- src/views/oa/crm/crmQuoteInfo/edit.vue | 13 ------------- src/views/oa/crm/crmQuoteInfo/index.vue | 8 ++++---- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/views/oa/crm/crmQuoteInfo/edit.vue b/src/views/oa/crm/crmQuoteInfo/edit.vue index b84bda2..91c1eb7 100644 --- a/src/views/oa/crm/crmQuoteInfo/edit.vue +++ b/src/views/oa/crm/crmQuoteInfo/edit.vue @@ -422,7 +422,6 @@ import { useRoute, useRouter } from 'vue-router'; import { addCrmQuoteInfo, getCrmQuoteInfo, quoteSubmitAndFlowStart, updateCrmQuoteInfo } from '@/api/oa/crm/crmQuoteInfo'; import { CrmQuoteInfoForm } from '@/api/oa/crm/crmQuoteInfo/types'; import type { CrmQuoteMaterialForm } from '@/api/oa/crm/crmQuoteMaterial/types'; -import { getBaseMaterialInfoList } from '@/api/oa/base/materialInfo'; import { getCrmCustomerContactList } from '@/api/oa/crm/customerContact'; import { getCrmSupplierInfoList } from '@/api/oa/crm/crmSupplierInfo'; import { getRuleGenerateCode } from '@/api/system/codeRule'; @@ -482,7 +481,6 @@ const rules = { }; // 下拉数据 -const materialList = ref([]); const customerContactList = ref([]); const supplierList = ref([]); // 供应商计划标识:1计划内,2计划外 @@ -759,15 +757,6 @@ const onSupplierChanged = (supplierId: any) => { form.supplierContactEmail = supplier.contactEmail || ''; } }; -const onMaterialChange = (row: any) => { - // 根据选中物料带出单位与名称(若有),提升录入效率 - const m = materialList.value.find((x: any) => x.materialId === row.materialId); - if (m) { - if (m.unitName) row.unitName = m.unitName; - if (!row.productName && m.materialName) row.productName = m.materialName; - } -}; - // 生成报价单编号(codeRuleCode=1004) const generateQuoteCode = async () => { if (isCodeGenerated.value) return; @@ -864,8 +853,6 @@ const submitCallback = async () => { onMounted(async () => { // 下拉数据初始化 - const materialRes = await getBaseMaterialInfoList({}); - materialList.value = materialRes.data || []; const contactRes = await getCrmCustomerContactList({}); customerContactList.value = contactRes.data || []; // 加载供应商列表(计划内供应商) diff --git a/src/views/oa/crm/crmQuoteInfo/index.vue b/src/views/oa/crm/crmQuoteInfo/index.vue index 3fc5abd..092fa2a 100644 --- a/src/views/oa/crm/crmQuoteInfo/index.vue +++ b/src/views/oa/crm/crmQuoteInfo/index.vue @@ -509,10 +509,10 @@ const columns = ref([ { key: 1, label: `报价单号`, visible: true }, { key: 2, label: `报价单名称`, visible: true }, { key: 3, label: `报价轮次`, visible: false }, - { key: 4, label: `报价大类`, visible: true }, - { key: 5, label: `报价类型`, visible: true }, - { key: 6, label: `业务方向`, visible: true }, - { key: 7, label: `部门`, visible: true }, + { key: 4, label: `报价大类`, visible: false }, + { key: 5, label: `报价类型`, visible: false }, + { key: 6, label: `业务方向`, visible: false }, + { key: 7, label: `部门`, visible: false }, { key: 8, label: `报价日期`, visible: true }, { key: 9, label: `报价有效期起`, visible: true }, { key: 10, label: `报价有效期`, visible: false },