diff --git a/src/api/oa/base/materialInfo/index.ts b/src/api/oa/base/materialInfo/index.ts index 9603057..b5ed6eb 100644 --- a/src/api/oa/base/materialInfo/index.ts +++ b/src/api/oa/base/materialInfo/index.ts @@ -1,6 +1,7 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; import { MaterialInfoVO, MaterialInfoForm, MaterialInfoQuery } from '@/api/oa/base/materialInfo/types'; +import { RelationMaterialVO } from '@/api/oa/base/relationMaterial/types'; /** * 查询SAP物料信息列表 @@ -74,3 +75,16 @@ export function getBaseMaterialInfoList (query) { params: query }); }; + +/** + * 查询物料信息并关联销售物料表 + * @param query + * @returns {*} + */ +export const listMaterialInfoWithRelation = (query?: MaterialInfoQuery): AxiosPromise => { + return request({ + url: '/oa/base/materialInfo/listWithRelation', + method: 'get', + params: query + }); +}; diff --git a/src/api/oa/base/relationMaterial/types.ts b/src/api/oa/base/relationMaterial/types.ts index 9fca428..1529f6c 100644 --- a/src/api/oa/base/relationMaterial/types.ts +++ b/src/api/oa/base/relationMaterial/types.ts @@ -19,6 +19,11 @@ export interface RelationMaterialVO { */ saleMaterialName: string; + /** + * 销售物料型号 + */ + saleMaterialModel?: string; + /** * SAP物料编码 */ @@ -29,6 +34,11 @@ export interface RelationMaterialVO { */ materialName?: string; + /** + * 物料型号 + */ + materialModel?: string; + /** * 客户名称 */ @@ -92,6 +102,11 @@ export interface RelationMaterialForm extends BaseEntity { */ saleMaterialName?: string; + /** + * 销售物料型号 + */ + saleMaterialModel?: string; + /** * 备注 */ @@ -126,6 +141,11 @@ export interface RelationMaterialQuery extends PageQuery { */ saleMaterialName?: string; + /** + * 销售物料型号 + */ + saleMaterialModel?: string; + /** * 激活标识(1是 0否) */ diff --git a/src/api/oa/erp/contractInfo/types.ts b/src/api/oa/erp/contractInfo/types.ts index c5edbdc..0cf3d50 100644 --- a/src/api/oa/erp/contractInfo/types.ts +++ b/src/api/oa/erp/contractInfo/types.ts @@ -154,6 +154,26 @@ export interface ContractInfoVO { */ activeFlag: string; + /** + * 合同负责人 + */ + contractManagerId: string | number; + + /** + * 合同负责人名称 + */ + contractManagerName: string; + + /** + * 合同大写金额 + */ + capitalizedAmount: string; + + /** + * 合同模板标识(1客户 2内部) + */ + contractTemplateFlag: string; + } export interface ContractInfoForm extends BaseEntity { @@ -312,6 +332,21 @@ export interface ContractInfoForm extends BaseEntity { */ activeFlag?: string; + /** + * 合同负责人 + */ + contractManagerId?: string | number; + + /** + * 合同大写金额 + */ + capitalizedAmount?: string; + + /** + * 合同模板标识(1客户 2内部) + */ + contractTemplateFlag?: string; + /** * 合同物料列表 */ @@ -468,6 +503,21 @@ export interface ContractInfoQuery extends PageQuery { */ activeFlag?: string; + /** + * 合同负责人 + */ + contractManagerId?: string | number; + + /** + * 合同大写金额 + */ + capitalizedAmount?: string; + + /** + * 合同模板标识(1客户 2内部) + */ + contractTemplateFlag?: string; + /** * 日期范围参数 */ diff --git a/src/api/oa/erp/contractMaterial/types.ts b/src/api/oa/erp/contractMaterial/types.ts index 509f8d0..99434b1 100644 --- a/src/api/oa/erp/contractMaterial/types.ts +++ b/src/api/oa/erp/contractMaterial/types.ts @@ -182,6 +182,11 @@ export interface ContractMaterialForm extends BaseEntity { */ activeFlag?: string; + /** + * 销售物料名称 + */ + saleMaterialName?: string; + } export interface ContractMaterialQuery extends PageQuery { diff --git a/src/components/SaleMaterialSelect/index.vue b/src/components/SaleMaterialSelect/index.vue index b9b4040..768b3ec 100644 --- a/src/components/SaleMaterialSelect/index.vue +++ b/src/components/SaleMaterialSelect/index.vue @@ -13,11 +13,11 @@ + + + - - - 搜索 @@ -56,9 +56,11 @@ - - + + + + @@ -89,10 +91,11 @@