From 424149613f6e76fa931b1502a7163f2f00b5c0b5 Mon Sep 17 00:00:00 2001 From: 123 <123@qq.com> Date: Tue, 20 May 2025 11:18:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage/contract/index.ts | 63 ++++++++ src/api/manage/contract/types.ts | 81 ++++++++++ src/api/manage/customer/index.ts | 63 ++++++++ src/api/manage/customer/types.ts | 81 ++++++++++ src/views/manage/contract/index.vue | 228 ++++++++++++++++++++++++++++ src/views/manage/customer/index.vue | 228 ++++++++++++++++++++++++++++ 6 files changed, 744 insertions(+) create mode 100644 src/api/manage/contract/index.ts create mode 100644 src/api/manage/contract/types.ts create mode 100644 src/api/manage/customer/index.ts create mode 100644 src/api/manage/customer/types.ts create mode 100644 src/views/manage/contract/index.vue create mode 100644 src/views/manage/customer/index.vue diff --git a/src/api/manage/contract/index.ts b/src/api/manage/contract/index.ts new file mode 100644 index 0000000..984e4ae --- /dev/null +++ b/src/api/manage/contract/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ContractInfoVO, ContractInfoForm, ContractInfoQuery } from '@/api/system/contractInfo/types'; + +/** + * 查询合同信息列表 + * @param query + * @returns {*} + */ + +export const listContractInfo = (query?: ContractInfoQuery): AxiosPromise => { + return request({ + url: '/manage/contractInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询合同信息详细 + * @param id + */ +export const getContractInfo = (id: string | number): AxiosPromise => { + return request({ + url: '/manage/contractInfo/' + id, + method: 'get' + }); +}; + +/** + * 新增合同信息 + * @param data + */ +export const addContractInfo = (data: ContractInfoForm) => { + return request({ + url: '/manage/contractInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改合同信息 + * @param data + */ +export const updateContractInfo = (data: ContractInfoForm) => { + return request({ + url: '/manage/contractInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除合同信息 + * @param id + */ +export const delContractInfo = (id: string | number | Array) => { + return request({ + url: '/manage/contractInfo/' + id, + method: 'delete' + }); +}; diff --git a/src/api/manage/contract/types.ts b/src/api/manage/contract/types.ts new file mode 100644 index 0000000..e08861f --- /dev/null +++ b/src/api/manage/contract/types.ts @@ -0,0 +1,81 @@ +export interface ContractInfoVO { + /** + * + */ + id: string | number; + + /** + * 合同名称 + */ + contractName: string; + + /** + * 合同类型 + */ + contractType: string; + + /** + * 合同编码 + */ + contractCode: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface ContractInfoForm extends BaseEntity { + /** + * + */ + id?: string | number; + + /** + * 合同名称 + */ + contractName?: string; + + /** + * 合同类型 + */ + contractType?: string; + + /** + * 合同编码 + */ + contractCode?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface ContractInfoQuery extends PageQuery { + + /** + * 合同名称 + */ + contractName?: string; + + /** + * 合同类型 + */ + contractType?: string; + + /** + * 合同编码 + */ + contractCode?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/manage/customer/index.ts b/src/api/manage/customer/index.ts new file mode 100644 index 0000000..8e03772 --- /dev/null +++ b/src/api/manage/customer/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { CustomerInfoVO, CustomerInfoForm, CustomerInfoQuery } from '@/api/system/customerInfo/types'; + +/** + * 查询客户信息列表 + * @param query + * @returns {*} + */ + +export const listCustomerInfo = (query?: CustomerInfoQuery): AxiosPromise => { + return request({ + url: '/system/customerInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询客户信息详细 + * @param id + */ +export const getCustomerInfo = (id: string | number): AxiosPromise => { + return request({ + url: '/system/customerInfo/' + id, + method: 'get' + }); +}; + +/** + * 新增客户信息 + * @param data + */ +export const addCustomerInfo = (data: CustomerInfoForm) => { + return request({ + url: '/system/customerInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改客户信息 + * @param data + */ +export const updateCustomerInfo = (data: CustomerInfoForm) => { + return request({ + url: '/system/customerInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除客户信息 + * @param id + */ +export const delCustomerInfo = (id: string | number | Array) => { + return request({ + url: '/system/customerInfo/' + id, + method: 'delete' + }); +}; diff --git a/src/api/manage/customer/types.ts b/src/api/manage/customer/types.ts new file mode 100644 index 0000000..943ad0e --- /dev/null +++ b/src/api/manage/customer/types.ts @@ -0,0 +1,81 @@ +export interface CustomerInfoVO { + /** + * + */ + id: string | number; + + /** + * 客户名称 + */ + customerName: string; + + /** + * 客户类型 + */ + customerType: string; + + /** + * 客户编码 + */ + customerCode: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface CustomerInfoForm extends BaseEntity { + /** + * + */ + id?: string | number; + + /** + * 客户名称 + */ + customerName?: string; + + /** + * 客户类型 + */ + customerType?: string; + + /** + * 客户编码 + */ + customerCode?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface CustomerInfoQuery extends PageQuery { + + /** + * 客户名称 + */ + customerName?: string; + + /** + * 客户类型 + */ + customerType?: string; + + /** + * 客户编码 + */ + customerCode?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/manage/contract/index.vue b/src/views/manage/contract/index.vue new file mode 100644 index 0000000..074efb5 --- /dev/null +++ b/src/views/manage/contract/index.vue @@ -0,0 +1,228 @@ + + + diff --git a/src/views/manage/customer/index.vue b/src/views/manage/customer/index.vue new file mode 100644 index 0000000..fd0af02 --- /dev/null +++ b/src/views/manage/customer/index.vue @@ -0,0 +1,228 @@ + + +