diff --git a/src/api/oa/crm/crmQuoteInfo/index.ts b/src/api/oa/crm/crmQuoteInfo/index.ts index 2019b14..f07405b 100644 --- a/src/api/oa/crm/crmQuoteInfo/index.ts +++ b/src/api/oa/crm/crmQuoteInfo/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { CrmQuoteInfoVO, CrmQuoteInfoForm, CrmQuoteInfoQuery } from '@/api/oa/crm/crmQuoteInfo/types'; +import { CrmQuoteInfoForm, CrmQuoteInfoQuery, CrmQuoteInfoVO } from '@/api/oa/crm/crmQuoteInfo/types'; /** * 查询报价单信息列表 @@ -67,13 +67,13 @@ export const delCrmQuoteInfo = (quoteId: string | number | Array { }); }; -// -// /** -// * 测试用 -// */ -// export const exportQuoteTemplate = (quoteId: string | number) => { -// return request({ -// url: '/oa/crm/crmQuoteInfo/testExport' , -// method: 'get', -// responseType: 'blob' -// }); -// }; +/** + * 提交报价单并发起流程 + * @param data + */ +export const quoteSubmitAndFlowStart = (data: CrmQuoteInfoForm): AxiosPromise => { + return request({ + url: '/oa/crm/crmQuoteInfo/quoteSubmitAndFlowStart', + method: 'post', + data: data + }); +}; diff --git a/src/api/oa/crm/crmQuoteMaterial/types.ts b/src/api/oa/crm/crmQuoteMaterial/types.ts index 4854824..db2b7a8 100644 --- a/src/api/oa/crm/crmQuoteMaterial/types.ts +++ b/src/api/oa/crm/crmQuoteMaterial/types.ts @@ -14,6 +14,11 @@ export interface CrmQuoteMaterialVO { */ itemNo: number; + /** + * 标准物料标识(1标准物料 2非标物料) + */ + materialFlag: string; + /** * 产品/服务名称 */ @@ -34,6 +39,21 @@ export interface CrmQuoteMaterialVO { */ relationMaterialId: string | number; + /** + * 物料编号(SAP物料编码) + */ + materialCode: string; + + /** + * SAP物料名称 + */ + materialName: string; + + /** + * 销售物料名称 + */ + saleMaterialName: string; + /** * 数量 */ @@ -97,6 +117,11 @@ export interface CrmQuoteMaterialForm extends BaseEntity { */ itemNo?: number; + /** + * 标准物料标识(1标准物料 2非标物料) + */ + materialFlag?: string; + /** * 产品/服务名称 */ @@ -117,6 +142,21 @@ export interface CrmQuoteMaterialForm extends BaseEntity { */ relationMaterialId?: string | number; + /** + * 物料编号(SAP物料编码) + */ + materialCode?: string; + + /** + * SAP物料名称 + */ + materialName?: string; + + /** + * 销售物料名称 + */ + saleMaterialName?: string; + /** * 数量 */ @@ -166,6 +206,11 @@ export interface CrmQuoteMaterialForm extends BaseEntity { export interface CrmQuoteMaterialQuery extends PageQuery { + /** + * 标准物料标识(1标准物料 2非标物料) + */ + materialFlag?: string; + /** * 报价ID */ diff --git a/src/views/oa/crm/crmQuoteInfo/edit.vue b/src/views/oa/crm/crmQuoteInfo/edit.vue index 149ef93..de522dd 100644 --- a/src/views/oa/crm/crmQuoteInfo/edit.vue +++ b/src/views/oa/crm/crmQuoteInfo/edit.vue @@ -1,5 +1,17 @@