From 20a7f2bde489cf0b89a73cb85207c53675f984c5 Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:31:10 +0800 Subject: [PATCH] 2024.1.8 --- src/api/customer/customerGroupInformation.js | 26 + .../customer/customerGroupInformation.vue | 560 ++++++++++++++++++ .../customerInformationManagement.vue | 173 ++++-- 3 files changed, 718 insertions(+), 41 deletions(-) create mode 100644 src/api/customer/customerGroupInformation.js create mode 100644 src/views/modules/customer/customerGroupInformation.vue diff --git a/src/api/customer/customerGroupInformation.js b/src/api/customer/customerGroupInformation.js new file mode 100644 index 0000000..25807f3 --- /dev/null +++ b/src/api/customer/customerGroupInformation.js @@ -0,0 +1,26 @@ +import { createAPI } from "@/utils/httpRequest.js"; + +/** + * 分组信息列表查询 + * @param data + * @returns {*} + */ +export const customerGroupInformationSearch = data => createAPI(`/plm/customerGroupInformation/customerGroupInformationSearch`,'post',data) +/** + * 分组信息新增 + * @param data + * @returns {*} + */ +export const customerGroupInformationSave = data => createAPI(`/plm/customerGroupInformation/customerGroupInformationSave`,'post',data) +/** + * 分组信息编辑 + * @param data + * @returns {*} + */ +export const customerGroupInformationEdit = data => createAPI(`/plm/customerGroupInformation/customerGroupInformationEdit`,'post',data) +/** + * 分组信息删除 + * @param data + * @returns {*} + */ +export const customerGroupInformationDelete = data => createAPI(`/plm/customerGroupInformation/customerGroupInformationDelete`,'post',data) diff --git a/src/views/modules/customer/customerGroupInformation.vue b/src/views/modules/customer/customerGroupInformation.vue new file mode 100644 index 0000000..7d497b9 --- /dev/null +++ b/src/views/modules/customer/customerGroupInformation.vue @@ -0,0 +1,560 @@ + + + + + + diff --git a/src/views/modules/customer/customerInformationManagement.vue b/src/views/modules/customer/customerInformationManagement.vue index 3402cc4..ebbb766 100644 --- a/src/views/modules/customer/customerInformationManagement.vue +++ b/src/views/modules/customer/customerInformationManagement.vue @@ -112,13 +112,10 @@ - + - - - - + @@ -149,18 +146,33 @@ + + + 客户组1 + + + + + 客户组2 + + + + - - - - - + + + - - + + + + + + + - + @@ -722,6 +734,7 @@ } from "@/api/project/project.js" import Chooselist from '@/views/modules/common/Chooselist' import DictDataSelect from '../sys/dict-data-select.vue' + import partUploadFile from '../part/part_upload_file.vue' export default { components: { DictDataSelect, @@ -743,6 +756,10 @@ }, data () { return { + components: { + DictDataSelect, + Chooselist + }, // 导出 exportData: [], exportName: '设备分类' + this.dayjs().format('YYYYMMDDHHmmss'), @@ -783,6 +800,7 @@ turnoverOfYear: '', potentialRevenueOfYear: '', importantCustomer: '', + customerType: '', customerStatus: '', companyName: '', jobDescription: '', @@ -796,7 +814,11 @@ primaryContact: '', contactStatus: '', addressName: '', - customerAddress:'' + customerAddress:'', + customerGroupId1: '', + customerGroupId2: '', + customerGroupName1: '', + customerGroupName2: '', }, contactModalData: { flag: '', @@ -901,6 +923,42 @@ fixed: '', columnWidth: 160 }, + { + userId: this.$store.state.user.name, + functionId: 101001, + serialNumber: '101001Table1CustomerGroupName1', + tableId: '101001Table1', + tableName: '客户信息表', + columnProp: 'customerGroupName1', + headerAlign: 'center', + align: 'center', + columnLabel: '客户组1', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 160 + }, + { + userId: this.$store.state.user.name, + functionId: 101001, + serialNumber: '101001Table1CustomerGroupName2', + tableId: '101001Table1', + tableName: '客户信息表', + columnProp: 'customerGroupName2', + headerAlign: 'center', + align: 'center', + columnLabel: '客户组1', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 160 + }, { userId: this.$store.state.user.name, functionId: 101001, @@ -964,7 +1022,7 @@ columnProp: 'importantCustomer', headerAlign: 'center', align: 'center', - columnLabel: '关键客户', + columnLabel: '重要程度', columnHidden: false, columnImage: false, columnSortable: false, @@ -991,6 +1049,24 @@ fixed: '', columnWidth: 80 }, + { + userId: this.$store.state.user.name, + functionId: 101001, + serialNumber: '101001Table1CustomerType', + tableId: '101001Table1', + tableName: '客户信息表', + columnProp: 'customerType', + headerAlign: 'center', + align: 'center', + columnLabel: '客户类型', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80 + }, { userId: this.$store.state.user.name, functionId: 101001, @@ -1668,6 +1744,13 @@ trigger: 'change' } ], + customerType: [ + { + required: true, + message: ' ', + trigger: 'change' + } + ], }, contactRules: { contactName: [ @@ -1985,16 +2068,14 @@ turnoverOfYear: '', potentialRevenueOfYear: '', importantCustomer: '', - customerStatus: '', - companyName: '', - jobDescription: '', - remark: '', - contactName: '', - contactPhoneNumber1: '', - primaryContact: '', - contactStatus: '', + customerGroupId1: '', + customerGroupId2: '', + customerGroupName1: '', + customerGroupName2: '', + customerStatus: 'Y', + customerType: '潜在客户', addressName: '', - defaultAddress: 'Y', + defaultAddress: '', addressStatus: '启用', addressType: '类型一', createBy: this.$store.state.user.name @@ -2107,14 +2188,15 @@ customerCurrency: row.customerCurrency, turnoverOfYear: row.turnoverOfYear, potentialRevenueOfYear: row.potentialRevenueOfYear, + customerGroupId1: row.customerGroupId1, + customerGroupId2: row.customerGroupId2, + customerGroupName1: row.customerGroupName1, + customerGroupName2: row.customerGroupName2, importantCustomer: row.importantCustomer, customerStatus: row.customerStatus, + customerType: row.customerType, companyName: row.companyName, jobDescription: row.jobDescription, - remark: row.remark, - contactName: row.contactName, - contactPhoneNumber1: row.contactPhoneNumber1, - primaryContact: 'Y', contactStatus: row.contactStatus, addressName: row.addressName, defaultAddress: 'Y', @@ -2255,14 +2337,15 @@ customerCurrency: row.customerCurrency, turnoverOfYear: row.turnoverOfYear, potentialRevenueOfYear: row.potentialRevenueOfYear, + customerGroupId1: row.customerGroupId1, + customerGroupId2: row.customerGroupId2, + customerGroupName1: row.customerGroupName1, + customerGroupName2: row.customerGroupName2, importantCustomer: row.importantCustomer, customerStatus: row.customerStatus, + customerType: row.customerType, companyName: row.companyName, jobDescription: row.jobDescription, - remark: row.remark, - contactName: row.contactName, - contactPhoneNumber1: row.contactPhoneNumber1, - primaryContact: 'Y', contactStatus: row.contactStatus, addressName: row.addressName } @@ -2555,22 +2638,18 @@ this.$message.warning('请输入币种!') return } - if (this.modalData.contactName === '' || this.modalData.contactName == null) { - this.$message.warning('请输入联系人!') - return - } - if (this.modalData.contactPhoneNumber1 === '' || this.modalData.contactPhoneNumber1 == null) { - this.$message.warning('请输入联系电话!') - return - } if (this.modalData.importantCustomer === '' || this.modalData.importantCustomer == null) { - this.$message.warning('请选择是否为关键客户!') + this.$message.warning('请选择重要程度!') return } if (this.modalData.customerStatus === '' || this.modalData.customerStatus == null) { this.$message.warning('请选择客户状态!') return } + if (this.modalData.customerType === '' || this.modalData.customerType == null) { + this.$message.warning('请选择客户类型!') + return + } if(this.modalData.flag === '1'){ this.modalData.primaryContact = 'Y' this.modalData.contactStatus = '启用' @@ -2887,6 +2966,11 @@ strVal = this.projectInformationModalData.priority } } + else if (val === 1021) { + strVal = this.modalData.customerGroupId1 + } else if (val === 1022) { + strVal = this.modalData.customerGroupId2 + } this.$refs.baseList.init(val, strVal) }) }, @@ -2919,6 +3003,13 @@ this.projectInformationModalData.priorityDesc = val.Base_desc } } + if (this.tagNo === 1021) { + this.modalData.customerGroupId1 = val.customer_group_id + this.modalData.customerGroupName1 = val.customer_group_name + } else if (this.tagNo === 1022) { + this.modalData.customerGroupId2 = val.customer_group_id + this.modalData.customerGroupName2 = val.customer_group_name + } }, /** * 项目经理选择模态框