From 1643cfacb1af68a568834fe6dcbd104f649b3628 Mon Sep 17 00:00:00 2001 From: yinq Date: Sat, 11 Oct 2025 15:33:19 +0800 Subject: [PATCH] =?UTF-8?q?1.0.8=20=E5=88=9D=E5=A7=8B=E5=8C=96=E5=90=88?= =?UTF-8?q?=E5=90=8C=E3=80=81=E5=90=88=E5=90=8C=E7=89=A9=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/erp/contractInfo/index.ts | 76 +++ src/api/oa/erp/contractInfo/types.ts | 401 ++++++++++++++++ src/api/oa/erp/contractMateriel/index.ts | 76 +++ src/api/oa/erp/contractMateriel/types.ts | 216 +++++++++ src/views/oa/erp/contractInfo/index.vue | 489 ++++++++++++++++++++ src/views/oa/erp/contractMateriel/index.vue | 343 ++++++++++++++ 6 files changed, 1601 insertions(+) create mode 100644 src/api/oa/erp/contractInfo/index.ts create mode 100644 src/api/oa/erp/contractInfo/types.ts create mode 100644 src/api/oa/erp/contractMateriel/index.ts create mode 100644 src/api/oa/erp/contractMateriel/types.ts create mode 100644 src/views/oa/erp/contractInfo/index.vue create mode 100644 src/views/oa/erp/contractMateriel/index.vue diff --git a/src/api/oa/erp/contractInfo/index.ts b/src/api/oa/erp/contractInfo/index.ts new file mode 100644 index 0000000..681ba3f --- /dev/null +++ b/src/api/oa/erp/contractInfo/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ContractInfoVO, ContractInfoForm, ContractInfoQuery } from '@/api/oa/erp/contractInfo/types'; + +/** + * 查询合同信息列表 + * @param query + * @returns {*} + */ + +export const listContractInfo = (query?: ContractInfoQuery): AxiosPromise => { + return request({ + url: '/oa/erp/contractInfo/list', + method: 'get', + params: query + }); +}; + +/** + * 查询合同信息详细 + * @param contractId + */ +export const getContractInfo = (contractId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/contractInfo/' + contractId, + method: 'get' + }); +}; + +/** + * 新增合同信息 + * @param data + */ +export const addContractInfo = (data: ContractInfoForm) => { + return request({ + url: '/oa/erp/contractInfo', + method: 'post', + data: data + }); +}; + +/** + * 修改合同信息 + * @param data + */ +export const updateContractInfo = (data: ContractInfoForm) => { + return request({ + url: '/oa/erp/contractInfo', + method: 'put', + data: data + }); +}; + +/** + * 删除合同信息 + * @param contractId + */ +export const delContractInfo = (contractId: string | number | Array) => { + return request({ + url: '/oa/erp/contractInfo/' + contractId, + method: 'delete' + }); +}; + +/** + * 下拉框查询合同信息列表 + * @param query + * @returns {*} + */ +export function getErpContractInfoList(query) { + return request({ + url: '/oa/erp/contractInfo/getErpContractInfoList', + method: 'get', + params: query + }); +} diff --git a/src/api/oa/erp/contractInfo/types.ts b/src/api/oa/erp/contractInfo/types.ts new file mode 100644 index 0000000..c485e42 --- /dev/null +++ b/src/api/oa/erp/contractInfo/types.ts @@ -0,0 +1,401 @@ +export interface ContractInfoVO { + /** + * 合同ID + */ + contractId: string | number; + + /** + * 有无合同(1有 2无) + */ + contractFlag: string; + + /** + * 合同编号 + */ + contractCode: string; + + /** + * 合同名称 + */ + contractName: string; + + /** + * 合同大类(1市场项目 2备件销售) + */ + contractCategory: string; + + /** + * 合同类型(1对内 2对外) + */ + contractType: string; + + /** + * 业务方向(1智能轮胎 2轮胎工厂 3快递物流 4锂电 5工业软件 6智能制造 7新行业及零售) + */ + businessDirection: string; + + /** + * 部门 + */ + contractDeptId: string | number; + + /** + * 合同时间 + */ + contractDate: string; + + /** + * 合同总价 + */ + totalPrice: number; + + /** + * 甲方公司 + */ + aCustomerId: string | number; + + /** + * 甲方授权代表 + */ + aRepresent: string; + + /** + * 甲方签字日期 + */ + aDate: string; + + /** + * 乙方公司 + */ + bCustomerId: string | number; + + /** + * 乙方授权代表 + */ + bRepresent: string; + + /** + * 乙方签字日期 + */ + bDate: string; + + /** + * 合同状态(1暂存 2审批中 3可用) + */ + contractStatus: string; + + /** + * 流程状态 + */ + flowStatus: string; + + /** + * 合同模板ID + */ + templateId: string | number; + + /** + * 附件ID + */ + ossId: string | number; + + /** + * 付款方式 + */ + paymentMethod: string; + + /** + * 签字合同附件 + */ + signatureAppendix: number; + + /** + * 合同税率(预留) + */ + taxRate: number; + + /** + * 备注 + */ + remark: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface ContractInfoForm extends BaseEntity { + /** + * 合同ID + */ + contractId?: string | number; + + /** + * 有无合同(1有 2无) + */ + contractFlag?: string; + + /** + * 合同编号 + */ + contractCode?: string; + + /** + * 合同名称 + */ + contractName?: string; + + /** + * 合同大类(1市场项目 2备件销售) + */ + contractCategory?: string; + + /** + * 合同类型(1对内 2对外) + */ + contractType?: string; + + /** + * 业务方向(1智能轮胎 2轮胎工厂 3快递物流 4锂电 5工业软件 6智能制造 7新行业及零售) + */ + businessDirection?: string; + + /** + * 部门 + */ + contractDeptId?: string | number; + + /** + * 合同时间 + */ + contractDate?: string; + + /** + * 合同总价 + */ + totalPrice?: number; + + /** + * 甲方公司 + */ + aCustomerId?: string | number; + + /** + * 甲方授权代表 + */ + aRepresent?: string; + + /** + * 甲方签字日期 + */ + aDate?: string; + + /** + * 乙方公司 + */ + bCustomerId?: string | number; + + /** + * 乙方授权代表 + */ + bRepresent?: string; + + /** + * 乙方签字日期 + */ + bDate?: string; + + /** + * 合同状态(1暂存 2审批中 3可用) + */ + contractStatus?: string; + + /** + * 流程状态 + */ + flowStatus?: string; + + /** + * 合同模板ID + */ + templateId?: string | number; + + /** + * 附件ID + */ + ossId?: string | number; + + /** + * 付款方式 + */ + paymentMethod?: string; + + /** + * 签字合同附件 + */ + signatureAppendix?: number; + + /** + * 合同税率(预留) + */ + taxRate?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + +} + +export interface ContractInfoQuery extends PageQuery { + + /** + * 有无合同(1有 2无) + */ + contractFlag?: string; + + /** + * 合同编号 + */ + contractCode?: string; + + /** + * 合同名称 + */ + contractName?: string; + + /** + * 合同大类(1市场项目 2备件销售) + */ + contractCategory?: string; + + /** + * 合同类型(1对内 2对外) + */ + contractType?: string; + + /** + * 业务方向(1智能轮胎 2轮胎工厂 3快递物流 4锂电 5工业软件 6智能制造 7新行业及零售) + */ + businessDirection?: string; + + /** + * 部门 + */ + contractDeptId?: string | number; + + /** + * 合同时间 + */ + contractDate?: string; + + /** + * 合同总价 + */ + totalPrice?: number; + + /** + * 甲方公司 + */ + aCustomerId?: string | number; + + /** + * 甲方授权代表 + */ + aRepresent?: string; + + /** + * 甲方签字日期 + */ + aDate?: string; + + /** + * 乙方公司 + */ + bCustomerId?: string | number; + + /** + * 乙方授权代表 + */ + bRepresent?: string; + + /** + * 乙方签字日期 + */ + bDate?: string; + + /** + * 合同状态(1暂存 2审批中 3可用) + */ + contractStatus?: string; + + /** + * 流程状态 + */ + flowStatus?: string; + + /** + * 合同模板ID + */ + templateId?: string | number; + + /** + * 附件ID + */ + ossId?: string | number; + + /** + * 付款方式 + */ + paymentMethod?: string; + + /** + * 签字合同附件 + */ + signatureAppendix?: number; + + /** + * 合同税率(预留) + */ + taxRate?: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/oa/erp/contractMateriel/index.ts b/src/api/oa/erp/contractMateriel/index.ts new file mode 100644 index 0000000..21c6c01 --- /dev/null +++ b/src/api/oa/erp/contractMateriel/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ContractMaterielVO, ContractMaterielForm, ContractMaterielQuery } from '@/api/oa/erp/contractMateriel/types'; + +/** + * 查询合同物料信息列表 + * @param query + * @returns {*} + */ + +export const listContractMateriel = (query?: ContractMaterielQuery): AxiosPromise => { + return request({ + url: '/oa/erp/contractMateriel/list', + method: 'get', + params: query + }); +}; + +/** + * 查询合同物料信息详细 + * @param contractMaterielId + */ +export const getContractMateriel = (contractMaterielId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/contractMateriel/' + contractMaterielId, + method: 'get' + }); +}; + +/** + * 新增合同物料信息 + * @param data + */ +export const addContractMateriel = (data: ContractMaterielForm) => { + return request({ + url: '/oa/erp/contractMateriel', + method: 'post', + data: data + }); +}; + +/** + * 修改合同物料信息 + * @param data + */ +export const updateContractMateriel = (data: ContractMaterielForm) => { + return request({ + url: '/oa/erp/contractMateriel', + method: 'put', + data: data + }); +}; + +/** + * 删除合同物料信息 + * @param contractMaterielId + */ +export const delContractMateriel = (contractMaterielId: string | number | Array) => { + return request({ + url: '/oa/erp/contractMateriel/' + contractMaterielId, + method: 'delete' + }); +}; + +/** + * 下拉框查询合同物料信息列表 + * @param query + * @returns {*} + */ +export function getErpContractMaterielList (query) { + return request({ + url: '/oa/erp/contractMateriel/getErpContractMaterielList', + method: 'get', + params: query + }); +}; diff --git a/src/api/oa/erp/contractMateriel/types.ts b/src/api/oa/erp/contractMateriel/types.ts new file mode 100644 index 0000000..a1b0c97 --- /dev/null +++ b/src/api/oa/erp/contractMateriel/types.ts @@ -0,0 +1,216 @@ +export interface ContractMaterielVO { + /** + * 合同物料ID + */ + contractMaterielId: string | number; + + /** + * 合同ID + */ + contractId: string | number; + + /** + * 产品名称 + */ + productName: string; + + /** + * 规格描述 + */ + specificationDescription: string; + + /** + * 物料ID + */ + materielId: string | number; + + /** + * 销售物料ID + */ + relationMaterielId: string | number; + + /** + * 数量 + */ + amount: number; + + /** + * 单位ID + */ + unitId: string | number; + + /** + * 未税单价 + */ + beforePrice: number; + + /** + * 税率 + */ + taxRate: number; + + /** + * 含税单价 + */ + includingPrice: number; + + /** + * 小计 + */ + subtotal: number; + + /** + * 备注 + */ + remark: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + +} + +export interface ContractMaterielForm extends BaseEntity { + /** + * 合同物料ID + */ + contractMaterielId?: string | number; + + /** + * 合同ID + */ + contractId?: string | number; + + /** + * 产品名称 + */ + productName?: string; + + /** + * 规格描述 + */ + specificationDescription?: string; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 销售物料ID + */ + relationMaterielId?: string | number; + + /** + * 数量 + */ + amount?: number; + + /** + * 单位ID + */ + unitId?: string | number; + + /** + * 未税单价 + */ + beforePrice?: number; + + /** + * 税率 + */ + taxRate?: number; + + /** + * 含税单价 + */ + includingPrice?: number; + + /** + * 小计 + */ + subtotal?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + +} + +export interface ContractMaterielQuery extends PageQuery { + + /** + * 合同ID + */ + contractId?: string | number; + + /** + * 产品名称 + */ + productName?: string; + + /** + * 规格描述 + */ + specificationDescription?: string; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 销售物料ID + */ + relationMaterielId?: string | number; + + /** + * 数量 + */ + amount?: number; + + /** + * 单位ID + */ + unitId?: string | number; + + /** + * 未税单价 + */ + beforePrice?: number; + + /** + * 税率 + */ + taxRate?: number; + + /** + * 含税单价 + */ + includingPrice?: number; + + /** + * 小计 + */ + subtotal?: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/oa/erp/contractInfo/index.vue b/src/views/oa/erp/contractInfo/index.vue new file mode 100644 index 0000000..e01c7cd --- /dev/null +++ b/src/views/oa/erp/contractInfo/index.vue @@ -0,0 +1,489 @@ + + + diff --git a/src/views/oa/erp/contractMateriel/index.vue b/src/views/oa/erp/contractMateriel/index.vue new file mode 100644 index 0000000..eddfa97 --- /dev/null +++ b/src/views/oa/erp/contractMateriel/index.vue @@ -0,0 +1,343 @@ + + +