fix(crmQuoteInfo): 优化报价信息界面和表格显示

- 删除报价编辑页中未使用的物料数据及相关处理方法
- 移除对基础物料列表的接口调用,简化数据源
- 调整报价列表页中多个字段的可见性,隐藏报价大类、报价类型等列
- 提升前端表现一致性和用户界面的简洁性
dev
zangch@mesnac.com 4 weeks ago
parent cf02810189
commit 8c20dd758b

@ -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<any[]>([]);
const customerContactList = ref<any[]>([]);
const supplierList = ref<any[]>([]);
// 12
@ -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 || [];
//

@ -509,10 +509,10 @@ const columns = ref<FieldOption[]>([
{ 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 },

Loading…
Cancel
Save