diff --git a/src/api/oa/baseCustomer/index.ts b/src/api/oa/baseCustomer/index.ts new file mode 100644 index 0000000..b51746c --- /dev/null +++ b/src/api/oa/baseCustomer/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BaseCustomerVO, BaseCustomerForm, BaseCustomerQuery } from '@/api/oa/baseCustomer/types'; + +/** + * 查询客户信息列表 + * @param query + * @returns {*} + */ + +export const listBaseCustomer = (query?: BaseCustomerQuery): AxiosPromise => { + return request({ + url: '/oa/baseCustomer/list', + method: 'get', + params: query + }); +}; + +/** + * 查询客户信息详细 + * @param customerId + */ +export const getBaseCustomer = (customerId: string | number): AxiosPromise => { + return request({ + url: '/oa/baseCustomer/' + customerId, + method: 'get' + }); +}; + +/** + * 新增客户信息 + * @param data + */ +export const addBaseCustomer = (data: BaseCustomerForm) => { + return request({ + url: '/oa/baseCustomer', + method: 'post', + data: data + }); +}; + +/** + * 修改客户信息 + * @param data + */ +export const updateBaseCustomer = (data: BaseCustomerForm) => { + return request({ + url: '/oa/baseCustomer', + method: 'put', + data: data + }); +}; + +/** + * 删除客户信息 + * @param customerId + */ +export const delBaseCustomer = (customerId: string | number | Array) => { + return request({ + url: '/oa/baseCustomer/' + customerId, + method: 'delete' + }); +}; + +/** + * 下拉框查询客户信息列表 + * @param query + * @returns {*} + */ +export function getBaseCustomerList (query) { + return request({ + url: '/oa/baseCustomer/getBaseCustomerList', + method: 'get', + params: query + }); +}; diff --git a/src/api/oa/baseCustomer/types.ts b/src/api/oa/baseCustomer/types.ts new file mode 100644 index 0000000..9b88312 --- /dev/null +++ b/src/api/oa/baseCustomer/types.ts @@ -0,0 +1,291 @@ +export interface BaseCustomerVO { + /** + * 客户ID + */ + customerId: string | number; + + /** + * 客户名称 + */ + customerName: string; + + /** + * 助记名称 + */ + mnemonicName: string; + + /** + * 所属行业(1制造业 2仓储业 ……) + */ + industryId: string | number; + + /** + * 客户类型(1企业客户 2个人客户) + */ + customerType: number; + + /** + * 客户状态(1了解产品 2正在跟进 3正在试用 4准备购买 5准备付款 6已经购买 7暂时搁置) + */ + customerStatus: number; + + /** + * 客户级别(1普通客户 2意向客户 3重要客户) + */ + customerLevel: number; + + /** + * 客户来源(1电话营销 2主动来电 3客户介绍 4朋友介绍 5独立开发 6网络搜索 7广告杂志 8展会促销 9其它途径) + */ + customerSource: number; + + /** + * 归属人员ID + */ + ownerId: string | number; + + /** + * 详细地址 + */ + detailedAddress: string; + + /** + * 企业规模(10人以内 10-20人 21人-50人 51人-200人 201人-500人 500人以上) + */ + customerScale: number; + + /** + * 下级客户 + */ + parentCustomerId: string | number; + + /** + * 法定代表人 + */ + legalRepresentative: string; + + /** + * 营业执照号码 + */ + businessLicenseNumber: string; + + /** + * 开户银行 + */ + bankAccountOpening: string; + + /** + * 税号 + */ + taxNumber: string; + + /** + * 备注 + */ + remark: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface BaseCustomerForm extends BaseEntity { + /** + * 客户ID + */ + customerId?: string | number; + + /** + * 客户名称 + */ + customerName?: string; + + /** + * 助记名称 + */ + mnemonicName?: string; + + /** + * 所属行业(1制造业 2仓储业 ……) + */ + industryId?: string | number; + + /** + * 客户类型(1企业客户 2个人客户) + */ + customerType?: number; + + /** + * 客户状态(1了解产品 2正在跟进 3正在试用 4准备购买 5准备付款 6已经购买 7暂时搁置) + */ + customerStatus?: number; + + /** + * 客户级别(1普通客户 2意向客户 3重要客户) + */ + customerLevel?: number; + + /** + * 客户来源(1电话营销 2主动来电 3客户介绍 4朋友介绍 5独立开发 6网络搜索 7广告杂志 8展会促销 9其它途径) + */ + customerSource?: number; + + /** + * 归属人员ID + */ + ownerId?: string | number; + + /** + * 详细地址 + */ + detailedAddress?: string; + + /** + * 企业规模(10人以内 10-20人 21人-50人 51人-200人 201人-500人 500人以上) + */ + customerScale?: number; + + /** + * 下级客户 + */ + parentCustomerId?: string | number; + + /** + * 法定代表人 + */ + legalRepresentative?: string; + + /** + * 营业执照号码 + */ + businessLicenseNumber?: string; + + /** + * 开户银行 + */ + bankAccountOpening?: string; + + /** + * 税号 + */ + taxNumber?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + +} + +export interface BaseCustomerQuery extends PageQuery { + + /** + * 客户名称 + */ + customerName?: string; + + /** + * 助记名称 + */ + mnemonicName?: string; + + /** + * 所属行业(1制造业 2仓储业 ……) + */ + industryId?: string | number; + + /** + * 客户类型(1企业客户 2个人客户) + */ + customerType?: number; + + /** + * 客户状态(1了解产品 2正在跟进 3正在试用 4准备购买 5准备付款 6已经购买 7暂时搁置) + */ + customerStatus?: number; + + /** + * 客户级别(1普通客户 2意向客户 3重要客户) + */ + customerLevel?: number; + + /** + * 客户来源(1电话营销 2主动来电 3客户介绍 4朋友介绍 5独立开发 6网络搜索 7广告杂志 8展会促销 9其它途径) + */ + customerSource?: number; + + /** + * 企业规模(10人以内 10-20人 21人-50人 51人-200人 201人-500人 500人以上) + */ + customerScale?: number; + + /** + * 下级客户 + */ + parentCustomerId?: string | number; + + /** + * 法定代表人 + */ + legalRepresentative?: string; + + /** + * 营业执照号码 + */ + businessLicenseNumber?: string; + + /** + * 开户银行 + */ + bankAccountOpening?: string; + + /** + * 税号 + */ + taxNumber?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/workflow/workflowCommon/types.ts b/src/api/workflow/workflowCommon/types.ts index 8ab5a67..4815554 100644 --- a/src/api/workflow/workflowCommon/types.ts +++ b/src/api/workflow/workflowCommon/types.ts @@ -10,5 +10,5 @@ export interface StartProcessBo { businessId: string | number; flowCode: string; variables: any; - flowInstanceBizExtBo: any; + bizExt: any; } diff --git a/src/assets/images/profile.jpg b/src/assets/images/profile.jpg index f4fde57..6d7d07d 100644 Binary files a/src/assets/images/profile.jpg and b/src/assets/images/profile.jpg differ diff --git a/src/layout/components/notice/index.vue b/src/layout/components/notice/index.vue index 684ae6a..20181ad 100644 --- a/src/layout/components/notice/index.vue +++ b/src/layout/components/notice/index.vue @@ -19,7 +19,7 @@ -
前往gitee
+
前往待办
@@ -29,6 +29,8 @@ import { useNoticeStore } from '@/store/modules/notice'; const noticeStore = useNoticeStore(); const { readAll } = useNoticeStore(); +const { proxy } = getCurrentInstance() as ComponentInternalInstance; + // 定义变量内容 const state = reactive({ loading: false @@ -54,7 +56,8 @@ const onNewsClick = (item: any) => { // 前往通知中心点击 const onGoToGiteeClick = () => { - window.open('https://gitee.com/dromara/RuoYi-Vue-Plus/tree/5.X/'); + // window.open('https://gitee.com/dromara/RuoYi-Vue-Plus/tree/5.X/'); + proxy?.$tab.openPage('/task/taskWaiting'); }; onMounted(() => { diff --git a/src/views/oa/baseCustomer/index.vue b/src/views/oa/baseCustomer/index.vue new file mode 100644 index 0000000..56efd9f --- /dev/null +++ b/src/views/oa/baseCustomer/index.vue @@ -0,0 +1,479 @@ + + + diff --git a/src/views/workflow/leave/index.vue b/src/views/workflow/leave/index.vue index 608cf05..a3407e9 100644 --- a/src/views/workflow/leave/index.vue +++ b/src/views/workflow/leave/index.vue @@ -59,7 +59,7 @@