From d8ad7227a98c6edb0e0a83f5d86f5f6e2c819694 Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 16 Oct 2025 10:24:57 +0800 Subject: [PATCH] =?UTF-8?q?1.0.10=20=E5=90=88=E5=90=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E3=80=81=E5=90=88=E5=90=8C=E7=89=A9=E6=96=99?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/erp/contractInfo/types.ts | 5 + src/api/oa/erp/contractMaterial/index.ts | 76 +++ .../types.ts | 52 +- src/api/oa/erp/contractMateriel/index.ts | 76 --- src/views/oa/base/relationMaterial/index.vue | 8 +- src/views/oa/erp/contractInfo/edit.vue | 540 ++++++++++++++++-- .../index.vue | 220 ++++--- 7 files changed, 734 insertions(+), 243 deletions(-) create mode 100644 src/api/oa/erp/contractMaterial/index.ts rename src/api/oa/erp/{contractMateriel => contractMaterial}/types.ts (70%) delete mode 100644 src/api/oa/erp/contractMateriel/index.ts rename src/views/oa/erp/{contractMateriel => contractMaterial}/index.vue (57%) diff --git a/src/api/oa/erp/contractInfo/types.ts b/src/api/oa/erp/contractInfo/types.ts index c485e42..6715ad4 100644 --- a/src/api/oa/erp/contractInfo/types.ts +++ b/src/api/oa/erp/contractInfo/types.ts @@ -272,6 +272,11 @@ export interface ContractInfoForm extends BaseEntity { */ activeFlag?: string; + /** + * 合同物料列表 + */ + contractMaterielList?: any[]; + } export interface ContractInfoQuery extends PageQuery { diff --git a/src/api/oa/erp/contractMaterial/index.ts b/src/api/oa/erp/contractMaterial/index.ts new file mode 100644 index 0000000..771b85f --- /dev/null +++ b/src/api/oa/erp/contractMaterial/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ContractMaterialVO, ContractMaterialForm, ContractMaterialQuery } from '@/api/oa/erp/contractMaterial/types'; + +/** + * 查询合同物料信息列表 + * @param query + * @returns {*} + */ + +export const listContractMaterial = (query?: ContractMaterialQuery): AxiosPromise => { + return request({ + url: '/oa/erp/contractMaterial/list', + method: 'get', + params: query + }); +}; + +/** + * 查询合同物料信息详细 + * @param contractMaterialId + */ +export const getContractMaterial = (contractMaterialId: string | number): AxiosPromise => { + return request({ + url: '/oa/erp/contractMaterial/' + contractMaterialId, + method: 'get' + }); +}; + +/** + * 新增合同物料信息 + * @param data + */ +export const addContractMaterial = (data: ContractMaterialForm) => { + return request({ + url: '/oa/erp/contractMaterial', + method: 'post', + data: data + }); +}; + +/** + * 修改合同物料信息 + * @param data + */ +export const updateContractMaterial = (data: ContractMaterialForm) => { + return request({ + url: '/oa/erp/contractMaterial', + method: 'put', + data: data + }); +}; + +/** + * 删除合同物料信息 + * @param contractMaterialId + */ +export const delContractMaterial = (contractMaterialId: string | number | Array) => { + return request({ + url: '/oa/erp/contractMaterial/' + contractMaterialId, + method: 'delete' + }); +}; + +/** + * 下拉框查询合同物料信息列表 + * @param query + * @returns {*} + */ +export function getErpContractMaterialList (query) { + return request({ + url: '/oa/erp/contractMaterial/getErpContractMaterialList', + method: 'get', + params: query + }); +}; diff --git a/src/api/oa/erp/contractMateriel/types.ts b/src/api/oa/erp/contractMaterial/types.ts similarity index 70% rename from src/api/oa/erp/contractMateriel/types.ts rename to src/api/oa/erp/contractMaterial/types.ts index a1b0c97..94e5acb 100644 --- a/src/api/oa/erp/contractMateriel/types.ts +++ b/src/api/oa/erp/contractMaterial/types.ts @@ -1,8 +1,13 @@ -export interface ContractMaterielVO { +export interface ContractMaterialVO { /** * 合同物料ID */ - contractMaterielId: string | number; + contractMaterialId: string | number; + + /** + * 计划标识(1计划内 2计划外) + */ + planFlag: string; /** * 合同ID @@ -22,12 +27,12 @@ export interface ContractMaterielVO { /** * 物料ID */ - materielId: string | number; + materialId: string | number; /** * 销售物料ID */ - relationMaterielId: string | number; + relationMaterialId: string | number; /** * 数量 @@ -69,13 +74,33 @@ export interface ContractMaterielVO { */ activeFlag: string; + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + } -export interface ContractMaterielForm extends BaseEntity { +export interface ContractMaterialForm extends BaseEntity { /** * 合同物料ID */ - contractMaterielId?: string | number; + contractMaterialId?: string | number; + + /** + * 计划标识(1计划内 2计划外) + */ + planFlag?: string; /** * 合同ID @@ -95,12 +120,12 @@ export interface ContractMaterielForm extends BaseEntity { /** * 物料ID */ - materielId?: string | number; + materialId?: string | number; /** * 销售物料ID */ - relationMaterielId?: string | number; + relationMaterialId?: string | number; /** * 数量 @@ -144,7 +169,12 @@ export interface ContractMaterielForm extends BaseEntity { } -export interface ContractMaterielQuery extends PageQuery { +export interface ContractMaterialQuery extends PageQuery { + + /** + * 计划标识(1计划内 2计划外) + */ + planFlag?: string; /** * 合同ID @@ -164,12 +194,12 @@ export interface ContractMaterielQuery extends PageQuery { /** * 物料ID */ - materielId?: string | number; + materialId?: string | number; /** * 销售物料ID */ - relationMaterielId?: string | number; + relationMaterialId?: string | number; /** * 数量 diff --git a/src/api/oa/erp/contractMateriel/index.ts b/src/api/oa/erp/contractMateriel/index.ts deleted file mode 100644 index 21c6c01..0000000 --- a/src/api/oa/erp/contractMateriel/index.ts +++ /dev/null @@ -1,76 +0,0 @@ -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/views/oa/base/relationMaterial/index.vue b/src/views/oa/base/relationMaterial/index.vue index ec4de2d..2add4ab 100644 --- a/src/views/oa/base/relationMaterial/index.vue +++ b/src/views/oa/base/relationMaterial/index.vue @@ -107,7 +107,7 @@ @@ -137,7 +137,7 @@ - + @@ -241,8 +241,8 @@ const getList = async () => { loading.value = false; }; -//打开申请人选择 -const openUserSelect = () => { +//打开物料选择 +const openMaterialSelect = () => { materialSelectRef.value.open(); }; diff --git a/src/views/oa/erp/contractInfo/edit.vue b/src/views/oa/erp/contractInfo/edit.vue index dbaf107..38e4682 100644 --- a/src/views/oa/erp/contractInfo/edit.vue +++ b/src/views/oa/erp/contractInfo/edit.vue @@ -2,20 +2,24 @@
- {{ dict.label }} + {{ dict.label }} - - + + + + @@ -57,7 +61,14 @@ - + + + + + + + + @@ -65,27 +76,27 @@ + + + + + + + + + + - - - - - - - - - - @@ -94,16 +105,16 @@ - - {{ dict.label }} + + {{ dict.label }} - - - - - + + + + + @@ -114,48 +125,201 @@ - - - - - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - - 保 存 - 返 回 + + + + + + + +
+ 新增物料 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保 存 + 返 回 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- - diff --git a/src/views/oa/erp/contractMateriel/index.vue b/src/views/oa/erp/contractMaterial/index.vue similarity index 57% rename from src/views/oa/erp/contractMateriel/index.vue rename to src/views/oa/erp/contractMaterial/index.vue index eddfa97..00ea661 100644 --- a/src/views/oa/erp/contractMateriel/index.vue +++ b/src/views/oa/erp/contractMaterial/index.vue @@ -3,24 +3,32 @@
- + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + 搜索 重置 @@ -34,49 +42,61 @@ - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -95,7 +115,12 @@ - + + + + {{ dict.label }} + + @@ -105,11 +130,11 @@ - - + + - - + + @@ -148,20 +173,20 @@
-