Compare commits
48 Commits
Author | SHA1 | Date |
---|---|---|
|
9a062fb514 | 3 months ago |
|
b7a4c440c1 | 3 months ago |
|
814c7198c7 | 3 months ago |
|
b47d9aa8ed | 3 months ago |
|
7a15a8efb5 | 4 months ago |
|
af29a66f05 | 4 months ago |
|
fd11715900 | 4 months ago |
|
6d6a814d09 | 4 months ago |
|
f69c670932 | 4 months ago |
|
9c80a001b6 | 5 months ago |
|
c157a1c07e | 6 months ago |
|
806736de1a | 6 months ago |
|
f3d9ffb25c | 6 months ago |
|
bbe234f6cd | 6 months ago |
|
e94375a587 | 6 months ago |
|
20e585479d | 6 months ago |
|
59bf04245d | 6 months ago |
|
5e78fd2d42 | 6 months ago |
|
93375a734a | 6 months ago |
|
7f2c6c53b8 | 6 months ago |
|
eef34e02b4 | 6 months ago |
|
945a6e897f | 6 months ago |
|
38fc9e10f2 | 6 months ago |
|
207253d451 | 6 months ago |
|
5f5fa34e55 | 6 months ago |
|
2383835852 | 6 months ago |
|
53fb9bac0a | 6 months ago |
|
87945012e0 | 6 months ago |
|
be345e5fa3 | 6 months ago |
|
b373bb5987 | 6 months ago |
|
02fe1b664f | 6 months ago |
|
7d75959f40 | 6 months ago |
|
16f1704e3d | 7 months ago |
|
3f9c2cac65 | 7 months ago |
|
32c1e837d7 | 9 months ago |
|
28ee8f43fd | 9 months ago |
|
7f10afb665 | 9 months ago |
|
ba31962e68 | 9 months ago |
|
f86a357dde | 9 months ago |
|
8873bcacd3 | 9 months ago |
|
dffc546122 | 9 months ago |
|
566dedb61e | 9 months ago |
|
371d7b6bca | 9 months ago |
|
d39e5900a0 | 10 months ago |
|
db4b34582a | 10 months ago |
|
c27bb2d285 | 12 months ago |
|
d8bd714404 | 12 months ago |
|
43fd28452e | 1 year ago |
@ -1,2 +1,2 @@ |
|||||
# spa-title |
# spa-title |
||||
VITE_GLOB_APP_TITLE = Plus Admin |
VITE_GLOB_APP_TITLE = AI合同审核系统 |
||||
|
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 3.9 KiB |
@ -0,0 +1,61 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { ContractualAuditConfigVO, ContractualAuditConfigForm, ContractualAuditConfigQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询合同审核配置列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualAuditConfigList(params?: ContractualAuditConfigQuery) { |
||||
|
return defHttp.get<ContractualAuditConfigVO[]>({ url: '/productManagement/ContractualAuditConfig/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出合同审核配置列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualAuditConfigExport(params?: ContractualAuditConfigQuery) { |
||||
|
return commonExport('/productManagement/ContractualAuditConfig/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询合同审核配置详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualAuditConfigInfo(id: ID) { |
||||
|
return defHttp.get<ContractualAuditConfigVO>({ url: '/productManagement/ContractualAuditConfig/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增合同审核配置 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualAuditConfigAdd(data: ContractualAuditConfigForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/ContractualAuditConfig', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新合同审核配置 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualAuditConfigUpdate(data: ContractualAuditConfigForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/ContractualAuditConfig', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除合同审核配置 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualAuditConfigRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/ContractualAuditConfig/' + id },); |
||||
|
} |
||||
|
|
||||
|
export function getRequirementTypeDict(){ |
||||
|
return defHttp.get<any>({url:"/productManagement/ContractualAuditConfig/getRequirementTypeDict"}) |
||||
|
} |
@ -0,0 +1,94 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface ContractualAuditConfigVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 规则名称 |
||||
|
*/ |
||||
|
auditElement: string; |
||||
|
|
||||
|
/** |
||||
|
* 规则ID |
||||
|
*/ |
||||
|
requirementId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 规则描述 |
||||
|
*/ |
||||
|
requirementDescription: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否表单,0-否,1-是 |
||||
|
*/ |
||||
|
isForm: number; |
||||
|
/** |
||||
|
* CPU/OS/数据库规则配置 |
||||
|
*/ |
||||
|
requirementCpuosdatabase?: any[]; |
||||
|
|
||||
|
/** |
||||
|
* 实体规则配置 |
||||
|
*/ |
||||
|
requirementEntity?: any[]; |
||||
|
|
||||
|
/** |
||||
|
* 产品属性规则配置 |
||||
|
*/ |
||||
|
requirementProductAttribute?: any[]; |
||||
|
|
||||
|
/** |
||||
|
* 普通合同规则配置 |
||||
|
*/ |
||||
|
requirementContractualNormal?: any[]; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ContractualAuditConfigForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 规则名称 |
||||
|
*/ |
||||
|
auditElement?: string; |
||||
|
|
||||
|
/** |
||||
|
* 规则ID |
||||
|
*/ |
||||
|
requirementId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 规则描述 |
||||
|
*/ |
||||
|
requirementDescription?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ContractualAuditConfigQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 规则名称 |
||||
|
*/ |
||||
|
auditElement?: string; |
||||
|
|
||||
|
/** |
||||
|
* 规则ID |
||||
|
*/ |
||||
|
requirementId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 规则描述 |
||||
|
*/ |
||||
|
requirementDescription?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { ContractualInfoVO, ContractualInfoForm, ContractualInfoQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询合同信息保存列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualInfoList(params?: ContractualInfoQuery) { |
||||
|
return defHttp.get<ContractualInfoVO[]>({ url: '/productManagement/ContractualInfo/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出合同信息保存列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualInfoExport(params?: ContractualInfoQuery) { |
||||
|
return commonExport('/productManagement/ContractualInfo/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询合同信息保存详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualInfoInfo(id: ID) { |
||||
|
return defHttp.get<ContractualInfoVO>({ url: '/productManagement/ContractualInfo/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增合同信息保存 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualInfoAdd(data: ContractualInfoForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/ContractualInfo', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新合同信息保存 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualInfoUpdate(data: ContractualInfoForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/ContractualInfo', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除合同信息保存 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualInfoRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/ContractualInfo/' + id },); |
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface ContractualInfoVO { |
||||
|
/** |
||||
|
* 合同名称 |
||||
|
*/ |
||||
|
fileName: string; |
||||
|
|
||||
|
/** |
||||
|
* 采购人名称 |
||||
|
*/ |
||||
|
purchaserName: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商名称或姓名 |
||||
|
*/ |
||||
|
supplierName: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同签订时间 |
||||
|
*/ |
||||
|
signDate: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同金额 |
||||
|
*/ |
||||
|
contractAmount: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ContractualInfoForm extends BaseEntity { |
||||
|
/** |
||||
|
* 合同名称 |
||||
|
*/ |
||||
|
fileName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 采购人名称 |
||||
|
*/ |
||||
|
purchaserName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商名称或姓名 |
||||
|
*/ |
||||
|
supplierName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同签订时间 |
||||
|
*/ |
||||
|
signDate?: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同金额 |
||||
|
*/ |
||||
|
contractAmount?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ContractualInfoQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 合同名称 |
||||
|
*/ |
||||
|
fileName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 采购人名称 |
||||
|
*/ |
||||
|
purchaserName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商名称或姓名 |
||||
|
*/ |
||||
|
supplierName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同签订时间 |
||||
|
*/ |
||||
|
signDate?: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同金额 |
||||
|
*/ |
||||
|
contractAmount?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { ContractualProductInfoVO, ContractualProductInfoForm, ContractualProductInfoQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询合同产品信息列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualProductInfoList(params?: ContractualProductInfoQuery) { |
||||
|
return defHttp.get<ContractualProductInfoVO[]>({ url: '/productManagement/ContractualProductInfo/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出合同产品信息列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualProductInfoExport(params?: ContractualProductInfoQuery) { |
||||
|
return commonExport('/productManagement/ContractualProductInfo/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询合同产品信息详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualProductInfoInfo(id: ID) { |
||||
|
return defHttp.get<ContractualProductInfoVO>({ url: '/productManagement/ContractualProductInfo/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增合同产品信息 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualProductInfoAdd(data: ContractualProductInfoForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/ContractualProductInfo', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新合同产品信息 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualProductInfoUpdate(data: ContractualProductInfoForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/ContractualProductInfo', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除合同产品信息 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualProductInfoRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/ContractualProductInfo/' + id },); |
||||
|
} |
@ -0,0 +1,160 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface ContractualProductInfoVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 任务ID |
||||
|
*/ |
||||
|
taskId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 文件名称 |
||||
|
*/ |
||||
|
fileName: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr: string; |
||||
|
|
||||
|
/** |
||||
|
* 单价 |
||||
|
*/ |
||||
|
unitPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 价格单位 |
||||
|
*/ |
||||
|
priceUnit: string; |
||||
|
|
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
quantity: number; |
||||
|
|
||||
|
/** |
||||
|
* 总价 |
||||
|
*/ |
||||
|
totalPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 类型 |
||||
|
*/ |
||||
|
type: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ContractualProductInfoForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 任务ID |
||||
|
*/ |
||||
|
taskId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 文件名称 |
||||
|
*/ |
||||
|
fileName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand?: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单价 |
||||
|
*/ |
||||
|
unitPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 价格单位 |
||||
|
*/ |
||||
|
priceUnit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
quantity?: number; |
||||
|
|
||||
|
/** |
||||
|
* 总价 |
||||
|
*/ |
||||
|
totalPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 类型 |
||||
|
*/ |
||||
|
type?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ContractualProductInfoQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 任务ID |
||||
|
*/ |
||||
|
taskId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 文件名称 |
||||
|
*/ |
||||
|
fileName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand?: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单价 |
||||
|
*/ |
||||
|
unitPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 价格单位 |
||||
|
*/ |
||||
|
priceUnit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
quantity?: number; |
||||
|
|
||||
|
/** |
||||
|
* 总价 |
||||
|
*/ |
||||
|
totalPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 类型 |
||||
|
*/ |
||||
|
type?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { ContractualTasksVO, ContractualTasksForm, ContractualTasksQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询合同任务列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualTasksList(params?: ContractualTasksQuery) { |
||||
|
return defHttp.get<ContractualTasksVO[]>({ url: '/productManagement/ContractualTasks/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出合同任务列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualTasksExport(params?: ContractualTasksQuery) { |
||||
|
return commonExport('/productManagement/ContractualTasks/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询合同任务详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualTasksInfo(id: ID) { |
||||
|
return defHttp.get<ContractualTasksVO>({ url: '/productManagement/ContractualTasks/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增合同任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualTasksAdd(data: ContractualTasksForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/ContractualTasks', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新合同任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualTasksUpdate(data: ContractualTasksForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/ContractualTasks', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除合同任务 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ContractualTasksRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/ContractualTasks/' + id },); |
||||
|
} |
@ -0,0 +1,115 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface ContractualTasksVO { |
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同任务名称 |
||||
|
*/ |
||||
|
contractTaskName: string; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
documentName: string; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
ossId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
progressStatus: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ContractualTasksForm extends BaseEntity { |
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同任务名称 |
||||
|
*/ |
||||
|
contractTaskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
ossId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ContractualTasksQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 合同任务名称 |
||||
|
*/ |
||||
|
contractTaskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
ossId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,113 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { JyjcontractualTaskBatchVO, JyjcontractualTaskBatchForm, JyjcontractualTaskBatchQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询合同批处理记录列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function JyjcontractualTaskBatchList(params?: JyjcontractualTaskBatchQuery) { |
||||
|
return defHttp.get<JyjcontractualTaskBatchVO[]>({ url: '/productManagement/JyjcontractualTaskBatch/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出合同批处理记录列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function JyjcontractualTaskBatchExport(params?: JyjcontractualTaskBatchQuery) { |
||||
|
return commonExport('/productManagement/JyjcontractualTaskBatch/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询合同批处理记录详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function JyjcontractualTaskBatchInfo(id: ID) { |
||||
|
return defHttp.get<JyjcontractualTaskBatchVO>({ url: '/productManagement/JyjcontractualTaskBatch/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增合同批处理记录 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function JyjcontractualTaskBatchAdd(data: JyjcontractualTaskBatchForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/JyjcontractualTaskBatch', data ,timeout:1000 * 60 * 10}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新合同批处理记录 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function JyjcontractualTaskBatchUpdate(data: JyjcontractualTaskBatchForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/JyjcontractualTaskBatch', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除合同批处理记录 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function JyjcontractualTaskBatchRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/JyjcontractualTaskBatch/' + id },); |
||||
|
} |
||||
|
|
||||
|
import { UploadFileParams } from '#/axios'; |
||||
|
import { AxiosProgressEvent } from 'axios'; |
||||
|
|
||||
|
/** |
||||
|
* @description: Upload interface |
||||
|
*/ |
||||
|
export function uploadContractual( |
||||
|
params: UploadFileParams, |
||||
|
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void, |
||||
|
) { |
||||
|
return defHttp.uploadFile<any>( |
||||
|
{ |
||||
|
// 固定url地址
|
||||
|
url: '/productManagement/JyjcontractualTaskBatch/back/upload', |
||||
|
onUploadProgress, |
||||
|
timeout: 1000 * 60 * 10, |
||||
|
}, |
||||
|
params, |
||||
|
); |
||||
|
} |
||||
|
/** |
||||
|
* 根据id获取合同的审查结果 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function getContractualResultById(id: ID) { |
||||
|
return defHttp.get({ url: '/productManagement/JyjcontractualTaskBatch/getContractulResultById/' + id }); |
||||
|
} |
||||
|
/** |
||||
|
* 获取PDF文件流 |
||||
|
* @param fileName - PDF文件名 |
||||
|
* @returns Blob 数据 |
||||
|
*/ |
||||
|
export function getPdfFile(id:Number) { |
||||
|
return defHttp.get( |
||||
|
{ |
||||
|
url: `/productManagement/JyjcontractualTaskBatch/getContractulPdf/${id}`, |
||||
|
responseType: 'blob', |
||||
|
timeout: 1000 * 60 * 10, |
||||
|
headers: { |
||||
|
Accept: 'application/pdf', |
||||
|
} |
||||
|
}, |
||||
|
{ isReturnNativeResponse: true } |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 根据id获取合同的审查结果 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function getContractulContent(id: ID) { |
||||
|
return defHttp.get({ url: '/productManagement/JyjcontractualTaskBatch/getContractulContent/' + id }); |
||||
|
} |
@ -0,0 +1,160 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface JyjcontractualTaskBatchVO { |
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务类型 |
||||
|
*/ |
||||
|
taskType: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName: string; |
||||
|
|
||||
|
/** |
||||
|
* OSS文件ID |
||||
|
*/ |
||||
|
ossId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 进度状态 |
||||
|
*/ |
||||
|
progressStatus: string; |
||||
|
|
||||
|
/** |
||||
|
* 列队任务id |
||||
|
*/ |
||||
|
groupId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同总数 |
||||
|
*/ |
||||
|
totalContracts: number; |
||||
|
|
||||
|
/** |
||||
|
* 已审批总数 |
||||
|
*/ |
||||
|
approvedCount: number; |
||||
|
|
||||
|
/** |
||||
|
* 审核通过数量 |
||||
|
*/ |
||||
|
passCount: number; |
||||
|
|
||||
|
/** |
||||
|
* 审核不通过数量 |
||||
|
*/ |
||||
|
rejectCount: number; |
||||
|
|
||||
|
/** |
||||
|
* 非审查范围数量 |
||||
|
*/ |
||||
|
irrelevantCount: number; |
||||
|
|
||||
|
/** |
||||
|
* 进度(百分比) |
||||
|
*/ |
||||
|
progress: number; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface JyjcontractualTaskBatchForm extends BaseEntity { |
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务类型 |
||||
|
*/ |
||||
|
taskType?: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* OSS文件ID |
||||
|
*/ |
||||
|
ossId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 进度状态 |
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface JyjcontractualTaskBatchQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务类型 |
||||
|
*/ |
||||
|
taskType?: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* OSS文件ID |
||||
|
*/ |
||||
|
ossId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 进度状态 |
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
/** |
||||
|
* 列队任务id |
||||
|
*/ |
||||
|
groupId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同总数 |
||||
|
*/ |
||||
|
totalContracts?: number; |
||||
|
|
||||
|
/** |
||||
|
* 已审批总数 |
||||
|
*/ |
||||
|
approvedCount?: number; |
||||
|
|
||||
|
/** |
||||
|
* 审核通过数量 |
||||
|
*/ |
||||
|
passCount?: number; |
||||
|
|
||||
|
/** |
||||
|
* 审核不通过数量 |
||||
|
*/ |
||||
|
rejectCount?: number; |
||||
|
|
||||
|
/** |
||||
|
* 非审查范围数量 |
||||
|
*/ |
||||
|
irrelevantCount?: number; |
||||
|
|
||||
|
/** |
||||
|
* 进度(百分比) |
||||
|
*/ |
||||
|
progress?: number; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { RequirementContractualNormalVO, RequirementContractualNormalForm, RequirementContractualNormalQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询合同常规要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementContractualNormalList(params?: RequirementContractualNormalQuery) { |
||||
|
return defHttp.get<RequirementContractualNormalVO[]>({ url: '/productManagement/RequirementContractualNormal/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出合同常规要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementContractualNormalExport(params?: RequirementContractualNormalQuery) { |
||||
|
return commonExport('/productManagement/RequirementContractualNormal/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询合同常规要求详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementContractualNormalInfo(id: ID) { |
||||
|
return defHttp.get<RequirementContractualNormalVO>({ url: '/productManagement/RequirementContractualNormal/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增合同常规要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementContractualNormalAdd(data: RequirementContractualNormalForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/RequirementContractualNormal', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新合同常规要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementContractualNormalUpdate(data: RequirementContractualNormalForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/RequirementContractualNormal', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除合同常规要求 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementContractualNormalRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/RequirementContractualNormal/' + id },); |
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface RequirementContractualNormalVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 检查项 |
||||
|
*/ |
||||
|
checkItem: string; |
||||
|
|
||||
|
/** |
||||
|
* 要求描述 |
||||
|
*/ |
||||
|
requirementDesc: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementContractualNormalForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 检查项 |
||||
|
*/ |
||||
|
checkItem?: string; |
||||
|
|
||||
|
/** |
||||
|
* 要求描述 |
||||
|
*/ |
||||
|
requirementDesc?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementContractualNormalQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 检查项 |
||||
|
*/ |
||||
|
checkItem?: string; |
||||
|
|
||||
|
/** |
||||
|
* 要求描述 |
||||
|
*/ |
||||
|
requirementDesc?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { RequirementCpuVO, RequirementCpuForm, RequirementCpuQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询CPU要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementCpuList(params?: RequirementCpuQuery) { |
||||
|
return defHttp.get<RequirementCpuVO[]>({ url: '/productManagement/RequirementCpu/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出CPU要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementCpuExport(params?: RequirementCpuQuery) { |
||||
|
return commonExport('/productManagement/RequirementCpu/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询CPU要求详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementCpuInfo(id: ID) { |
||||
|
return defHttp.get<RequirementCpuVO>({ url: '/productManagement/RequirementCpu/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增CPU要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementCpuAdd(data: RequirementCpuForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/RequirementCpu', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新CPU要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementCpuUpdate(data: RequirementCpuForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/RequirementCpu', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除CPU要求 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementCpuRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/RequirementCpu/' + id },); |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface RequirementCpuVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementCpuForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name?: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model?: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementCpuQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name?: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model?: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { RequirementDatabaseVO, RequirementDatabaseForm, RequirementDatabaseQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询数据库要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementDatabaseList(params?: RequirementDatabaseQuery) { |
||||
|
return defHttp.get<RequirementDatabaseVO[]>({ url: '/productManagement/RequirementDatabase/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出数据库要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementDatabaseExport(params?: RequirementDatabaseQuery) { |
||||
|
return commonExport('/productManagement/RequirementDatabase/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询数据库要求详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementDatabaseInfo(id: ID) { |
||||
|
return defHttp.get<RequirementDatabaseVO>({ url: '/productManagement/RequirementDatabase/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增数据库要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementDatabaseAdd(data: RequirementDatabaseForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/RequirementDatabase', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新数据库要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementDatabaseUpdate(data: RequirementDatabaseForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/RequirementDatabase', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除数据库要求 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementDatabaseRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/RequirementDatabase/' + id },); |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface RequirementDatabaseVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementDatabaseForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name?: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model?: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementDatabaseQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name?: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model?: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { RequirementEntityVO, RequirementEntityForm, RequirementEntityQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询主体要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementEntityList(params?: RequirementEntityQuery) { |
||||
|
return defHttp.get<RequirementEntityVO[]>({ url: '/productManagement/RequirementEntity/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出主体要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementEntityExport(params?: RequirementEntityQuery) { |
||||
|
return commonExport('/productManagement/RequirementEntity/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询主体要求详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementEntityInfo(id: ID) { |
||||
|
return defHttp.get<RequirementEntityVO>({ url: '/productManagement/RequirementEntity/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增主体要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementEntityAdd(data: RequirementEntityForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/RequirementEntity', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新主体要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementEntityUpdate(data: RequirementEntityForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/RequirementEntity', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除主体要求 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementEntityRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/RequirementEntity/' + id },); |
||||
|
} |
@ -0,0 +1,100 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface RequirementEntityVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 主体名称 |
||||
|
*/ |
||||
|
entityName: string; |
||||
|
|
||||
|
/** |
||||
|
* 父主体ID,0表示顶级主体 |
||||
|
*/ |
||||
|
parentId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 层级,1表示顶级 |
||||
|
*/ |
||||
|
level: number; |
||||
|
|
||||
|
/** |
||||
|
* 层级路径,格式如:0,1,2 |
||||
|
*/ |
||||
|
path: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementEntityForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 主体名称 |
||||
|
*/ |
||||
|
entityName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 父主体ID,0表示顶级主体 |
||||
|
*/ |
||||
|
parentId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 层级,1表示顶级 |
||||
|
*/ |
||||
|
level?: number; |
||||
|
|
||||
|
/** |
||||
|
* 层级路径,格式如:0,1,2 |
||||
|
*/ |
||||
|
path?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementEntityQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 主体名称 |
||||
|
*/ |
||||
|
entityName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 父主体ID,0表示顶级主体 |
||||
|
*/ |
||||
|
parentId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 层级,1表示顶级 |
||||
|
*/ |
||||
|
level?: number; |
||||
|
|
||||
|
/** |
||||
|
* 层级路径,格式如:0,1,2 |
||||
|
*/ |
||||
|
path?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { RequirementOsVO, RequirementOsForm, RequirementOsQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询操作系统要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementOsList(params?: RequirementOsQuery) { |
||||
|
return defHttp.get<RequirementOsVO[]>({ url: '/productManagement/RequirementOs/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出操作系统要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementOsExport(params?: RequirementOsQuery) { |
||||
|
return commonExport('/productManagement/RequirementOs/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询操作系统要求详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementOsInfo(id: ID) { |
||||
|
return defHttp.get<RequirementOsVO>({ url: '/productManagement/RequirementOs/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增操作系统要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementOsAdd(data: RequirementOsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/RequirementOs', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新操作系统要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementOsUpdate(data: RequirementOsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/RequirementOs', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除操作系统要求 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementOsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/RequirementOs/' + id },); |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface RequirementOsVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementOsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name?: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model?: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementOsQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 名称 |
||||
|
*/ |
||||
|
name?: string; |
||||
|
|
||||
|
/** |
||||
|
* 型号 |
||||
|
*/ |
||||
|
model?: string; |
||||
|
|
||||
|
/** |
||||
|
* 版本号 |
||||
|
*/ |
||||
|
versionStr?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { RequirementProductAttributeVO, RequirementProductAttributeForm, RequirementProductAttributeQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询产品属性要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementProductAttributeList(params?: RequirementProductAttributeQuery) { |
||||
|
return defHttp.get<RequirementProductAttributeVO[]>({ url: '/productManagement/RequirementProductAttribute/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出产品属性要求列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementProductAttributeExport(params?: RequirementProductAttributeQuery) { |
||||
|
return commonExport('/productManagement/RequirementProductAttribute/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询产品属性要求详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementProductAttributeInfo(id: ID) { |
||||
|
return defHttp.get<RequirementProductAttributeVO>({ url: '/productManagement/RequirementProductAttribute/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增产品属性要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementProductAttributeAdd(data: RequirementProductAttributeForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/RequirementProductAttribute', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新产品属性要求 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementProductAttributeUpdate(data: RequirementProductAttributeForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/RequirementProductAttribute', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除产品属性要求 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function RequirementProductAttributeRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/RequirementProductAttribute/' + id },); |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface RequirementProductAttributeVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 属性名称 |
||||
|
*/ |
||||
|
attributeName: string; |
||||
|
|
||||
|
/** |
||||
|
* 要求 |
||||
|
*/ |
||||
|
requirement: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品类型 |
||||
|
*/ |
||||
|
productType: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementProductAttributeForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 属性名称 |
||||
|
*/ |
||||
|
attributeName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 要求 |
||||
|
*/ |
||||
|
requirement?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品类型 |
||||
|
*/ |
||||
|
productType?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface RequirementProductAttributeQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 合同审核配置表ID |
||||
|
*/ |
||||
|
configId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 属性名称 |
||||
|
*/ |
||||
|
attributeName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 要求 |
||||
|
*/ |
||||
|
requirement?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品类型 |
||||
|
*/ |
||||
|
productType?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,167 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { DocumentTaskResultsVO, DocumentTaskResultsForm, DocumentTaskResultsQuery } from './model'; |
||||
|
import { message } from 'ant-design-vue'; |
||||
|
|
||||
|
interface DownloadOptions { |
||||
|
filename?: string; |
||||
|
mimeType?: string; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 通用文件下载函数 |
||||
|
* @param url 下载地址 |
||||
|
* @param onError 错误处理回调 |
||||
|
* @returns Promise<boolean> 下载是否成功 |
||||
|
*/ |
||||
|
export async function useDownload( |
||||
|
url: string, |
||||
|
onError?: (error: any) => void |
||||
|
): Promise<boolean> { |
||||
|
try { |
||||
|
const response = await defHttp.get( |
||||
|
{ |
||||
|
url, |
||||
|
responseType: 'blob', |
||||
|
timeout: 60000, // 设置较长的超时时间
|
||||
|
}, |
||||
|
{ |
||||
|
isReturnNativeResponse: true, |
||||
|
// 自定义错误处理
|
||||
|
errorMessageMode: 'none', |
||||
|
} |
||||
|
); |
||||
|
|
||||
|
// 检查响应类型
|
||||
|
const contentType = response.headers['content-type']; |
||||
|
if (contentType && contentType.includes('application/json')) { |
||||
|
// 如果返回的是JSON(通常是错误信息),转换并抛出
|
||||
|
const reader = new FileReader(); |
||||
|
reader.onload = () => { |
||||
|
const error = JSON.parse(reader.result as string); |
||||
|
message.error(error.message || '下载失败'); |
||||
|
onError?.(error); |
||||
|
}; |
||||
|
reader.readAsText(response.data); |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
// 获取文件名
|
||||
|
const contentDisposition = response.headers['content-disposition']; |
||||
|
let fileName = ''; |
||||
|
|
||||
|
if (contentDisposition) { |
||||
|
const matches = contentDisposition.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/); |
||||
|
if (matches && matches[1]) { |
||||
|
fileName = decodeURIComponent(matches[1].replace(/['"]/g, '')); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 创建Blob对象
|
||||
|
const blob = new Blob([response.data], { |
||||
|
type: contentType || 'application/octet-stream' |
||||
|
}); |
||||
|
|
||||
|
if (window.navigator && window.navigator.msSaveOrOpenBlob) { |
||||
|
// 针对IE的处理
|
||||
|
window.navigator.msSaveOrOpenBlob(blob, fileName); |
||||
|
} else { |
||||
|
// 现代浏览器的处理
|
||||
|
const url = window.URL.createObjectURL(blob); |
||||
|
const link = document.createElement('a'); |
||||
|
link.href = url; |
||||
|
link.download = fileName; |
||||
|
link.style.display = 'none'; |
||||
|
document.body.appendChild(link); |
||||
|
link.click(); |
||||
|
document.body.removeChild(link); |
||||
|
window.URL.revokeObjectURL(url); |
||||
|
} |
||||
|
|
||||
|
return true; |
||||
|
} catch (error: any) { |
||||
|
console.error('下载失败:', error); |
||||
|
message.error(error.message || '下载失败,请稍后重试'); |
||||
|
onError?.(error); |
||||
|
return false; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询文档任务结果列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTaskResultsList(params?: DocumentTaskResultsQuery) { |
||||
|
return defHttp.get<DocumentTaskResultsVO[]>({ url: '/productManagement/DocumentTaskResults/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出文档任务结果列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTaskResultsExport(params?: DocumentTaskResultsQuery) { |
||||
|
return commonExport('/productManagement/DocumentTaskResults/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询文档任务结果详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTaskResultsInfo(id: ID) { |
||||
|
return defHttp.get<DocumentTaskResultsVO>({ url: '/productManagement/DocumentTaskResults/' + id }); |
||||
|
} |
||||
|
/** |
||||
|
* 根据任务id查询文档任务结果详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTaskResultsInfoByTaskId(id: ID) { |
||||
|
return defHttp.get<DocumentTaskResultsVO>({ url: '/productManagement/DocumentTaskResults/task/' + id }); |
||||
|
} |
||||
|
/** |
||||
|
* 新增文档任务结果 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTaskResultsAdd(data: DocumentTaskResultsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/DocumentTaskResults', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新文档任务结果 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTaskResultsUpdate(data: DocumentTaskResultsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/DocumentTaskResults', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除文档任务结果 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTaskResultsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/DocumentTaskResults/' + id },); |
||||
|
} |
||||
|
/** |
||||
|
* 下载文档任务结果 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTaskResultDownload(id: ID | IDS) { |
||||
|
return useDownload(`/productManagement/DocumentTaskResults/downloadResult/${id}`); |
||||
|
|
||||
|
// return defHttp.get<void>({ url: '/productManagement/DocumentTaskResults/downloadResult/' + id ,responseType: 'blob',headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED }},);
|
||||
|
} |
||||
|
/** |
||||
|
* 新增合同任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function modifyContractReview(documentTaskId: ID, contractualRes) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/DocumentTaskResults/modifyContractReview/'+documentTaskId, data: contractualRes }); |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface DocumentTaskResultsVO { |
||||
|
/** |
||||
|
* 任务结果 |
||||
|
*/ |
||||
|
result?: string; |
||||
|
} |
||||
|
|
||||
|
export interface DocumentTaskResultsForm extends BaseEntity { |
||||
|
} |
||||
|
|
||||
|
export interface DocumentTaskResultsQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 任务id |
||||
|
*/ |
||||
|
documentTaskId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 任务结果 |
||||
|
*/ |
||||
|
result?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,94 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { DocumentTasksVO, DocumentTasksForm, DocumentTasksQuery } from './model'; |
||||
|
import { ContentTypeEnum } from '@/enums/httpEnum'; |
||||
|
|
||||
|
/** |
||||
|
* 查询文档任务列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksList(params?: DocumentTasksQuery) { |
||||
|
return defHttp.get<DocumentTasksVO[]>({ url: '/productManagement/DocumentTasks/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出文档任务列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksExport(params?: DocumentTasksQuery) { |
||||
|
return commonExport('/productManagement/DocumentTasks/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询文档任务详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksInfo(id: ID) { |
||||
|
return defHttp.get<DocumentTasksVO>({ url: '/productManagement/DocumentTasks/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增文档任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksAdd(data: DocumentTasksForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/DocumentTasks', data,timeout:1000*60*10 }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新文档任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksUpdate(data: DocumentTasksForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/DocumentTasks', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除文档任务 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/DocumentTasks/' + id },); |
||||
|
} |
||||
|
/** |
||||
|
* 停止任务 |
||||
|
*/ |
||||
|
export function DocumentTasksStop(id: ID | IDS) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/DocumentTasks/stopTask/' + id }); |
||||
|
} |
||||
|
// export function uploadDocument(formData) {
|
||||
|
// return defHttp.post({
|
||||
|
// url: '/productManagement/docAi/sse/upload',
|
||||
|
// data: formData,
|
||||
|
// headers: {
|
||||
|
// 'Content-Type': ContentTypeEnum.FORM_DATA,
|
||||
|
// },
|
||||
|
// timeout: 10 * 60 * 1000,
|
||||
|
// });
|
||||
|
// }
|
||||
|
import { UploadFileParams } from '#/axios'; |
||||
|
import { AxiosProgressEvent } from 'axios'; |
||||
|
|
||||
|
/** |
||||
|
* @description: Upload interface |
||||
|
*/ |
||||
|
export function uploadDocument( |
||||
|
params: UploadFileParams, |
||||
|
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void, |
||||
|
) { |
||||
|
return defHttp.uploadFile<any>( |
||||
|
{ |
||||
|
// 固定url地址
|
||||
|
url: '/productManagement/DocumentTasks/back/upload', |
||||
|
onUploadProgress, |
||||
|
timeout: 1000 * 60 * 10, |
||||
|
}, |
||||
|
params, |
||||
|
); |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface DocumentTasksVO { |
||||
|
id: string | number; |
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName: string; |
||||
|
|
||||
|
/** |
||||
|
* 预计时间 |
||||
|
*/ |
||||
|
estimatedCompletionTime: string; |
||||
|
|
||||
|
/** |
||||
|
* 状态 |
||||
|
*/ |
||||
|
progressStatus: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface DocumentTasksForm extends BaseEntity { |
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 预计时间 |
||||
|
*/ |
||||
|
estimatedCompletionTime?: string; |
||||
|
|
||||
|
/** |
||||
|
* 状态 |
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface DocumentTasksQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 预计时间 |
||||
|
*/ |
||||
|
estimatedCompletionTime?: string; |
||||
|
|
||||
|
/** |
||||
|
* 状态 |
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { ModelPromptsVO, ModelPromptsForm, ModelPromptsQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询用于存储模型提示词列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsList(params?: ModelPromptsQuery) { |
||||
|
return defHttp.get<ModelPromptsVO[]>({ url: '/productManagement/ModelPrompts/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出用于存储模型提示词列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsExport(params?: ModelPromptsQuery) { |
||||
|
return commonExport('/productManagement/ModelPrompts/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询用于存储模型提示词详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsInfo(id: ID) { |
||||
|
return defHttp.get<ModelPromptsVO>({ url: '/productManagement/ModelPrompts/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增用于存储模型提示词 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsAdd(data: ModelPromptsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/ModelPrompts', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新用于存储模型提示词 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsUpdate(data: ModelPromptsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/ModelPrompts', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除用于存储模型提示词 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/ModelPrompts/' + id },); |
||||
|
} |
@ -0,0 +1,188 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface ModelPromptsVO { |
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 任务角色描述 |
||||
|
*/ |
||||
|
taskRoleDesc: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型任务名称 |
||||
|
*/ |
||||
|
taskName: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务背景 |
||||
|
*/ |
||||
|
context: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务描述 |
||||
|
*/ |
||||
|
description: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务流程 |
||||
|
*/ |
||||
|
workflow: string; |
||||
|
|
||||
|
/** |
||||
|
* 输出说明 |
||||
|
*/ |
||||
|
outputDesc: string; |
||||
|
|
||||
|
/** |
||||
|
* 注意事项 |
||||
|
*/ |
||||
|
cautions: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型版本 |
||||
|
*/ |
||||
|
modelVersion: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
note: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ModelPromptsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 任务角色描述 |
||||
|
*/ |
||||
|
taskRoleDesc?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务背景 |
||||
|
*/ |
||||
|
context?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务流程 |
||||
|
*/ |
||||
|
workflow?: string; |
||||
|
|
||||
|
/** |
||||
|
* 输出说明 |
||||
|
*/ |
||||
|
outputDesc?: string; |
||||
|
|
||||
|
/** |
||||
|
* 注意事项 |
||||
|
*/ |
||||
|
cautions?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型版本 |
||||
|
*/ |
||||
|
modelVersion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
note?: string; |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ModelPromptsQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 任务角色描述 |
||||
|
*/ |
||||
|
taskRoleDesc?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务背景 |
||||
|
*/ |
||||
|
context?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务流程 |
||||
|
*/ |
||||
|
workflow?: string; |
||||
|
|
||||
|
/** |
||||
|
* 输出说明 |
||||
|
*/ |
||||
|
outputDesc?: string; |
||||
|
|
||||
|
/** |
||||
|
* 注意事项 |
||||
|
*/ |
||||
|
cautions?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型版本 |
||||
|
*/ |
||||
|
modelVersion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
note?: string; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { ModelPromptsHistoryVO, ModelPromptsHistoryForm, ModelPromptsHistoryQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询模型提示词历史记录列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsHistoryList(params?: ModelPromptsHistoryQuery) { |
||||
|
return defHttp.get<ModelPromptsHistoryVO[]>({ url: '/productManagement/ModelPromptsHistory/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出模型提示词历史记录列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsHistoryExport(params?: ModelPromptsHistoryQuery) { |
||||
|
return commonExport('/productManagement/ModelPromptsHistory/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询模型提示词历史记录详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsHistoryInfo(id: ID) { |
||||
|
return defHttp.get<ModelPromptsHistoryVO>({ url: '/productManagement/ModelPromptsHistory/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增模型提示词历史记录 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsHistoryAdd(data: ModelPromptsHistoryForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/ModelPromptsHistory', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新模型提示词历史记录 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsHistoryUpdate(data: ModelPromptsHistoryForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/ModelPromptsHistory', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除模型提示词历史记录 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelPromptsHistoryRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/ModelPromptsHistory/' + id },); |
||||
|
} |
||||
|
export function ModelPromptsHistoryRestore(id: ID) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/ModelPromptsHistory/restore/'+id}); |
||||
|
} |
@ -0,0 +1,160 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface ModelPromptsHistoryVO { |
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 提示词id |
||||
|
*/ |
||||
|
promptId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 任务角色描述 |
||||
|
*/ |
||||
|
taskRoleDesc: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型任务名称 |
||||
|
*/ |
||||
|
taskName: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务背景 |
||||
|
*/ |
||||
|
context: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务描述 |
||||
|
*/ |
||||
|
description: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务流程 |
||||
|
*/ |
||||
|
workflow: string; |
||||
|
|
||||
|
/** |
||||
|
* 输出说明 |
||||
|
*/ |
||||
|
outputDesc: string; |
||||
|
|
||||
|
/** |
||||
|
* 注意事项 |
||||
|
*/ |
||||
|
cautions: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型版本 |
||||
|
*/ |
||||
|
modelVersion: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
note: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ModelPromptsHistoryForm extends BaseEntity { |
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 提示词id |
||||
|
*/ |
||||
|
promptId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 任务角色描述 |
||||
|
*/ |
||||
|
taskRoleDesc?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务背景 |
||||
|
*/ |
||||
|
context?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务流程 |
||||
|
*/ |
||||
|
workflow?: string; |
||||
|
|
||||
|
/** |
||||
|
* 输出说明 |
||||
|
*/ |
||||
|
outputDesc?: string; |
||||
|
|
||||
|
/** |
||||
|
* 注意事项 |
||||
|
*/ |
||||
|
cautions?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型版本 |
||||
|
*/ |
||||
|
modelVersion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
note?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ModelPromptsHistoryQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 模型任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { ModelUserPromptssettingVO, ModelUserPromptssettingForm, ModelUserPromptssettingQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询模型提示词用户配置列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelUserPromptssettingList(params?: ModelUserPromptssettingQuery) { |
||||
|
return defHttp.get<ModelUserPromptssettingVO[]>({ url: '/productManagement/ModelUserPromptssetting/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出模型提示词用户配置列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelUserPromptssettingExport(params?: ModelUserPromptssettingQuery) { |
||||
|
return commonExport('/productManagement/ModelUserPromptssetting/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询模型提示词用户配置详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelUserPromptssettingInfo(id: ID) { |
||||
|
return defHttp.get<ModelUserPromptssettingVO>({ url: '/productManagement/ModelUserPromptssetting/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增模型提示词用户配置 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelUserPromptssettingAdd(data: ModelUserPromptssettingForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/ModelUserPromptssetting', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新模型提示词用户配置 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelUserPromptssettingUpdate(data: ModelUserPromptssettingForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/ModelUserPromptssetting', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除模型提示词用户配置 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelUserPromptssettingRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/ModelUserPromptssetting/' + id },); |
||||
|
} |
||||
|
/** |
||||
|
* 查询模型提示词用户配置详细根据用户id |
||||
|
* @param userId userId |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function ModelUserPromptssettingInfoByUserId(params:{taskType:string}) { |
||||
|
return defHttp.get<ModelUserPromptssettingVO>({ url: '/productManagement/ModelUserPromptssetting/getInfoByuserId', params }); |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface ModelUserPromptssettingVO { |
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务类型(名称) |
||||
|
*/ |
||||
|
taskName: string; |
||||
|
|
||||
|
/** |
||||
|
* 用户id |
||||
|
*/ |
||||
|
userId: string | number; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ModelUserPromptssettingForm extends BaseEntity { |
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务类型(名称) |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 用户id |
||||
|
*/ |
||||
|
userId?: string | number; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface ModelUserPromptssettingQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务类型(名称) |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 用户id |
||||
|
*/ |
||||
|
userId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { SchemEvaluationVO, SchemEvaluationForm, SchemEvaluationQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询方案评价任务列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function SchemEvaluationList(params?: SchemEvaluationQuery) { |
||||
|
return defHttp.get<SchemEvaluationVO[]>({ url: '/productManagement/SchemEvaluation/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出方案评价任务列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function SchemEvaluationExport(params?: SchemEvaluationQuery) { |
||||
|
return commonExport('/productManagement/SchemEvaluation/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询方案评价任务详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function SchemEvaluationInfo(id: ID) { |
||||
|
return defHttp.get<SchemEvaluationVO>({ url: '/productManagement/SchemEvaluation/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增方案评价任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function SchemEvaluationAdd(data: SchemEvaluationForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/SchemEvaluation', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新方案评价任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function SchemEvaluationUpdate(data: SchemEvaluationForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/SchemEvaluation', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除方案评价任务 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function SchemEvaluationRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/SchemEvaluation/' + id },); |
||||
|
} |
@ -0,0 +1,105 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface SchemEvaluationVO { |
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName: string; |
||||
|
|
||||
|
/** |
||||
|
* ossid |
||||
|
*/ |
||||
|
ossId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 当前状态 |
||||
|
*/ |
||||
|
progressStatus: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface SchemEvaluationForm extends BaseEntity { |
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* ossid |
||||
|
*/ |
||||
|
ossId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 当前状态 |
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface SchemEvaluationQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* ossid |
||||
|
*/ |
||||
|
ossId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 当前状态 |
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { DocumentTasksPermissionsVO, DocumentTasksPermissionsForm, DocumentTasksPermissionsQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询文档任务权限列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsList(params?: DocumentTasksPermissionsQuery) { |
||||
|
return defHttp.get<DocumentTasksPermissionsVO[]>({ url: '/productManagement/DocumentTasksPermissions/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出文档任务权限列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsExport(params?: DocumentTasksPermissionsQuery) { |
||||
|
return commonExport('/productManagement/DocumentTasksPermissions/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询文档任务权限详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsInfo(id: ID) { |
||||
|
return defHttp.get<DocumentTasksPermissionsVO>({ url: '/productManagement/DocumentTasksPermissions/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增文档任务权限 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsAdd(data: DocumentTasksPermissionsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/DocumentTasksPermissions', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新文档任务权限 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsUpdate(data: DocumentTasksPermissionsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/DocumentTasksPermissions', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除文档任务权限 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/DocumentTasksPermissions/' + id },); |
||||
|
} |
||||
|
/** |
||||
|
* 获取所有人员列表 |
||||
|
* @returns 所有人员列表 |
||||
|
*/ |
||||
|
export const getUsersAll = () => { |
||||
|
return defHttp.get<any>({ url: '/productManagement/DocumentTasksPermissions/getUsersAll' }); |
||||
|
} |
||||
|
export const getTasksPermissionsByUserId = () => { |
||||
|
return defHttp.get<DocumentTasksPermissionsVO>({ url: '/productManagement/DocumentTasksPermissions/getTasksPermissionsByUserId' }); |
||||
|
} |
@ -0,0 +1,115 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface DocumentTasksPermissionsVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 用户ID |
||||
|
*/ |
||||
|
userId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 角色ID |
||||
|
*/ |
||||
|
roleId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 每日文档数 |
||||
|
*/ |
||||
|
dailyDocumentCount: number; |
||||
|
|
||||
|
/** |
||||
|
* 优先级 |
||||
|
*/ |
||||
|
priority: number; |
||||
|
|
||||
|
/** |
||||
|
* 任务种类 |
||||
|
*/ |
||||
|
taskType: string; |
||||
|
|
||||
|
/** |
||||
|
* 当日剩余任务数 |
||||
|
*/ |
||||
|
remainingTasksToday: number; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface DocumentTasksPermissionsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 用户ID |
||||
|
*/ |
||||
|
userId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 角色ID |
||||
|
*/ |
||||
|
roleId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 每日文档数 |
||||
|
*/ |
||||
|
dailyDocumentCount?: number; |
||||
|
|
||||
|
/** |
||||
|
* 优先级 |
||||
|
*/ |
||||
|
priority?: number; |
||||
|
|
||||
|
/** |
||||
|
* 任务种类 |
||||
|
*/ |
||||
|
taskType?: string; |
||||
|
|
||||
|
/** |
||||
|
* 当日剩余任务数 |
||||
|
*/ |
||||
|
remainingTasksToday?: number; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface DocumentTasksPermissionsQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 用户ID |
||||
|
*/ |
||||
|
userId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 角色ID |
||||
|
*/ |
||||
|
roleId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 每日文档数 |
||||
|
*/ |
||||
|
dailyDocumentCount?: number; |
||||
|
|
||||
|
/** |
||||
|
* 优先级 |
||||
|
*/ |
||||
|
priority?: number; |
||||
|
|
||||
|
/** |
||||
|
* 任务种类 |
||||
|
*/ |
||||
|
taskType?: string; |
||||
|
|
||||
|
/** |
||||
|
* 当日剩余任务数 |
||||
|
*/ |
||||
|
remainingTasksToday?: number; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { DocumentTasksPermissionsDetailVO, DocumentTasksPermissionsDetailForm, DocumentTasksPermissionsDetailQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询文档任务权限详情列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsDetailList(params?: DocumentTasksPermissionsDetailQuery) { |
||||
|
return defHttp.get<DocumentTasksPermissionsDetailVO[]>({ url: '/productManagement/DocumentTasksPermissionsDetail/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出文档任务权限详情列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsDetailExport(params?: DocumentTasksPermissionsDetailQuery) { |
||||
|
return commonExport('/productManagement/DocumentTasksPermissionsDetail/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询文档任务权限详情详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsDetailInfo(id: ID) { |
||||
|
return defHttp.get<DocumentTasksPermissionsDetailVO>({ url: '/productManagement/DocumentTasksPermissionsDetail/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增文档任务权限详情 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsDetailAdd(data: DocumentTasksPermissionsDetailForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/DocumentTasksPermissionsDetail', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新文档任务权限详情 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsDetailUpdate(data: DocumentTasksPermissionsDetailForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/DocumentTasksPermissionsDetail', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除文档任务权限详情 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function DocumentTasksPermissionsDetailRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/DocumentTasksPermissionsDetail/' + id },); |
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface DocumentTasksPermissionsDetailVO { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 用户ID |
||||
|
*/ |
||||
|
userId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 剩余文档数 |
||||
|
*/ |
||||
|
remainingDocumentCount: number; |
||||
|
|
||||
|
/** |
||||
|
* 任务种类 |
||||
|
*/ |
||||
|
taskType: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface DocumentTasksPermissionsDetailForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 用户ID |
||||
|
*/ |
||||
|
userId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 剩余文档数 |
||||
|
*/ |
||||
|
remainingDocumentCount?: number; |
||||
|
|
||||
|
/** |
||||
|
* 任务种类 |
||||
|
*/ |
||||
|
taskType?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface DocumentTasksPermissionsDetailQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 用户ID |
||||
|
*/ |
||||
|
userId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 剩余文档数 |
||||
|
*/ |
||||
|
remainingDocumentCount?: number; |
||||
|
|
||||
|
/** |
||||
|
* 任务种类 |
||||
|
*/ |
||||
|
taskType?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { TenderTaskVO, TenderTaskForm, TenderTaskQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询招标摘要任务列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function TenderTaskList(params?: TenderTaskQuery) { |
||||
|
return defHttp.get<TenderTaskVO[]>({ url: '/productManagement/TenderTask/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出招标摘要任务列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function TenderTaskExport(params?: TenderTaskQuery) { |
||||
|
return commonExport('/productManagement/TenderTask/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询招标摘要任务详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function TenderTaskInfo(id: ID) { |
||||
|
return defHttp.get<TenderTaskVO>({ url: '/productManagement/TenderTask/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增招标摘要任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function TenderTaskAdd(data: TenderTaskForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/TenderTask', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新招标摘要任务 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function TenderTaskUpdate(data: TenderTaskForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/TenderTask', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除招标摘要任务 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function TenderTaskRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/TenderTask/' + id },); |
||||
|
} |
@ -0,0 +1,108 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface TenderTaskVO { |
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName: string; |
||||
|
|
||||
|
/** |
||||
|
* ossid |
||||
|
*/ |
||||
|
ossId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 当前状态 |
||||
|
|
||||
|
*/ |
||||
|
progressStatus: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface TenderTaskForm extends BaseEntity { |
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* ossid |
||||
|
*/ |
||||
|
ossId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 当前状态 |
||||
|
|
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
export interface TenderTaskQuery extends PageQuery { |
||||
|
|
||||
|
/** |
||||
|
* 模型所属行业 |
||||
|
*/ |
||||
|
taskIndustry?: string; |
||||
|
|
||||
|
/** |
||||
|
* 模型所属区域 |
||||
|
*/ |
||||
|
taskRegion?: string; |
||||
|
|
||||
|
/** |
||||
|
* 任务名称 |
||||
|
*/ |
||||
|
taskName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 文档名称 |
||||
|
*/ |
||||
|
documentName?: string; |
||||
|
|
||||
|
/** |
||||
|
* ossid |
||||
|
*/ |
||||
|
ossId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 当前状态 |
||||
|
|
||||
|
*/ |
||||
|
progressStatus?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { |
||||
|
CompanyProductModelDetailsVO, |
||||
|
CompanyProductModelDetailsForm, |
||||
|
CompanyProductModelDetailsQuery, |
||||
|
} from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询公司产品模型详情表列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelDetailsList(params?: CompanyProductModelDetailsQuery) { |
||||
|
return defHttp.get<CompanyProductModelDetailsVO[]>({ |
||||
|
url: '/productManagement/companyProductModelDetails/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出公司产品模型详情表列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelDetailsExport(params?: CompanyProductModelDetailsQuery) { |
||||
|
return commonExport('/productManagement/companyProductModelDetails/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询公司产品模型详情表详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelDetailsInfo(id: ID) { |
||||
|
return defHttp.get<CompanyProductModelDetailsVO>({ |
||||
|
url: '/productManagement/companyProductModelDetails/' + id, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增公司产品模型详情表 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelDetailsAdd(data: CompanyProductModelDetailsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/companyProductModelDetails', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新公司产品模型详情表 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelDetailsUpdate(data: CompanyProductModelDetailsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/companyProductModelDetails', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除公司产品模型详情表 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelDetailsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ |
||||
|
url: '/productManagement/companyProductModelDetails/' + id, |
||||
|
}); |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface CompanyProductModelDetailsVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 公司产品型号表id |
||||
|
*/ |
||||
|
modelId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary: string; |
||||
|
} |
||||
|
|
||||
|
export interface CompanyProductModelDetailsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 公司产品型号表id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
} |
||||
|
|
||||
|
export interface CompanyProductModelDetailsQuery extends PageQuery { |
||||
|
/** |
||||
|
* 公司产品型号表id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { CompanyProductModelVO, CompanyProductModelForm, CompanyProductModelQuery } from './model'; |
||||
|
import { CompanyProductModelDetailsVO } from './companyProductModelDetails/model'; |
||||
|
|
||||
|
/** |
||||
|
* 公司产品 |
||||
|
* @param id 公司产品 |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductGetModelDetails(id: ID) { |
||||
|
return defHttp.get<CompanyProductModelDetailsVO[]>({ |
||||
|
url: '/productManagement/companyProductModel/getModelDetails/' + id, |
||||
|
}); |
||||
|
} |
||||
|
/** |
||||
|
* 新增公司产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function addCompanyProductModel(data: CompanyProductModelForm) { |
||||
|
return defHttp.post<string>({ url: '/productManagement/companyProductModel/addModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新公司产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function updateCompanyProductModel(data: CompanyProductModelForm) { |
||||
|
return defHttp.put<string>({ url: '/productManagement/companyProductModel/editModel', data }); |
||||
|
} |
||||
|
/** |
||||
|
* 查询公司产品模型列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelList(params?: CompanyProductModelQuery) { |
||||
|
return defHttp.get<CompanyProductModelVO[]>({ |
||||
|
url: '/productManagement/companyProductModel/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出公司产品模型列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelExport(params?: CompanyProductModelQuery) { |
||||
|
return commonExport('/productManagement/companyProductModel/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询公司产品模型详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelInfo(id: ID) { |
||||
|
return defHttp.get<CompanyProductModelVO>({ |
||||
|
url: '/productManagement/companyProductModel/' + id, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增公司产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelAdd(data: CompanyProductModelForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/companyProductModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新公司产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelUpdate(data: CompanyProductModelForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/companyProductModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除公司产品模型 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductModelRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/companyProductModel/' + id }); |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface CompanyProductModelVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 公司产品指标描述 |
||||
|
*/ |
||||
|
description: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary: string; |
||||
|
} |
||||
|
|
||||
|
export interface CompanyProductModelForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 公司产品指标描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
} |
||||
|
|
||||
|
export interface CompanyProductModelQuery extends PageQuery { |
||||
|
/** |
||||
|
* 公司产品指标描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { CompanyProductsVO, CompanyProductsForm, CompanyProductsQuery } from './model'; |
||||
|
/** |
||||
|
* 查询公司产品管理列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductsList(params?: CompanyProductsQuery) { |
||||
|
return defHttp.get<CompanyProductsVO[]>({ |
||||
|
url: '/productManagement/companyProducts/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出公司产品管理列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductsExport(params?: CompanyProductsQuery) { |
||||
|
return commonExport('/productManagement/companyProducts/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询公司产品管理详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductsInfo(id: ID) { |
||||
|
return defHttp.get<CompanyProductsVO>({ url: '/productManagement/companyProducts/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增公司产品管理 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductsAdd(data: CompanyProductsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/companyProducts', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新公司产品管理 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductsUpdate(data: CompanyProductsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/companyProducts', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除公司产品管理 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function companyProductsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/companyProducts/' + id }); |
||||
|
} |
@ -0,0 +1,227 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface CompanyProductsVO { |
||||
|
/** |
||||
|
* 关联厂商产品id |
||||
|
*/ |
||||
|
supplierProductsId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 公司产品规格 |
||||
|
*/ |
||||
|
productSpecifications: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks: string; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
image: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate: number; |
||||
|
|
||||
|
/** |
||||
|
* 分类id |
||||
|
*/ |
||||
|
categoryId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 型号id |
||||
|
*/ |
||||
|
modelId: string | number; |
||||
|
} |
||||
|
|
||||
|
export interface CompanyProductsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 关联厂商产品id |
||||
|
*/ |
||||
|
supplierProductsId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 公司产品规格 |
||||
|
*/ |
||||
|
productSpecifications?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation?: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks?: string; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
image?: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate?: number; |
||||
|
|
||||
|
/** |
||||
|
* 分类id |
||||
|
*/ |
||||
|
categoryId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 型号id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
} |
||||
|
|
||||
|
export interface CompanyProductsQuery extends PageQuery { |
||||
|
/** |
||||
|
* 关联厂商产品id |
||||
|
*/ |
||||
|
supplierProductsId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 公司产品规格 |
||||
|
*/ |
||||
|
productSpecifications?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation?: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks?: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate?: number; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { CostItemDetailVO, CostItemDetailForm, CostItemDetailQuery, ProductsVO } from './model'; |
||||
|
|
||||
|
export function getProductsPageByType(params?: ProductsVO) { |
||||
|
return defHttp.get<ProductsVO[]>({ |
||||
|
url: '/productManagement/costItemDetail/getProductsPageByType', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
/** |
||||
|
* 查询造价编制详情列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costItemDetailList(params?: CostItemDetailQuery) { |
||||
|
return defHttp.get<CostItemDetailVO[]>({ url: '/productManagement/costItemDetail/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出造价编制详情列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costItemDetailExport(params?: CostItemDetailQuery) { |
||||
|
return commonExport('/productManagement/costItemDetail/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询造价编制详情详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costItemDetailInfo(id: ID) { |
||||
|
return defHttp.get<CostItemDetailVO>({ url: '/productManagement/costItemDetail/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增造价编制详情 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costItemDetailAdd(data: CostItemDetailForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/costItemDetail', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新造价编制详情 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costItemDetailUpdate(data: CostItemDetailForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/costItemDetail', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除造价编制详情 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costItemDetailRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/costItemDetail/' + id }); |
||||
|
} |
@ -0,0 +1,225 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface CostItemDetailVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 造价表id |
||||
|
*/ |
||||
|
costTableId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 父类id |
||||
|
*/ |
||||
|
parentId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 费用类型 |
||||
|
*/ |
||||
|
costType: string; |
||||
|
|
||||
|
/** |
||||
|
* 建设内容 |
||||
|
*/ |
||||
|
constructContent: string; |
||||
|
|
||||
|
/** |
||||
|
* 费用名称 |
||||
|
*/ |
||||
|
costName: string; |
||||
|
|
||||
|
/** |
||||
|
* 费用描述 |
||||
|
*/ |
||||
|
costDescribe: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit: string; |
||||
|
|
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
quantity: number; |
||||
|
|
||||
|
/** |
||||
|
* 单价 |
||||
|
*/ |
||||
|
unitPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 总价 |
||||
|
*/ |
||||
|
totalPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 是否明细 |
||||
|
*/ |
||||
|
isDetail: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks: string; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
orderNo: string; |
||||
|
} |
||||
|
|
||||
|
export interface CostItemDetailForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 造价表id |
||||
|
*/ |
||||
|
costTableId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 父类id |
||||
|
*/ |
||||
|
parentId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 费用类型 |
||||
|
*/ |
||||
|
costType?: string; |
||||
|
|
||||
|
/** |
||||
|
* 建设内容 |
||||
|
*/ |
||||
|
constructContent?: string; |
||||
|
|
||||
|
/** |
||||
|
* 费用名称 |
||||
|
*/ |
||||
|
costName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 费用描述 |
||||
|
*/ |
||||
|
costDescribe?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
quantity?: number; |
||||
|
|
||||
|
/** |
||||
|
* 单价 |
||||
|
*/ |
||||
|
unitPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 总价 |
||||
|
*/ |
||||
|
totalPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 是否明细 |
||||
|
*/ |
||||
|
isDetail?: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks?: string; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
orderNo?: string; |
||||
|
} |
||||
|
|
||||
|
export interface CostItemDetailQuery extends PageQuery { |
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
||||
|
export interface ProductsVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation: string; |
||||
|
|
||||
|
/** |
||||
|
* 个人产品规格 |
||||
|
*/ |
||||
|
productSpecifications: string; |
||||
|
|
||||
|
/** |
||||
|
* 关联厂商产品id |
||||
|
*/ |
||||
|
supplierProductsId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks: string; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
image: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate: number; |
||||
|
|
||||
|
productType: string; |
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { CostTableVO, CostTableForm, CostTableQuery, CostDetailViewVo } from './model'; |
||||
|
/** |
||||
|
* 新增造价编制信息 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function addCostTable(data: CostTableForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/costTable/addCostTable', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新造价编制信息 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function modifyCostTable(data: CostTableForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/costTable/modifyCostTable', data }); |
||||
|
} |
||||
|
/** |
||||
|
* 查询造价编制信息列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costTableList(params?: CostTableQuery) { |
||||
|
return defHttp.get<CostTableVO[]>({ url: '/productManagement/costTable/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出造价编制信息列表详情 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function exportDataDetail(params?) { |
||||
|
return commonExport('/productManagement/costTable/exportData', params ?? {}); |
||||
|
} |
||||
|
/** |
||||
|
* 导出造价编制信息列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costTableExport(params?: CostTableQuery) { |
||||
|
return commonExport('/productManagement/costTable/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
// /**
|
||||
|
// * 查询造价编制信息详细
|
||||
|
// * @param id id
|
||||
|
// * @returns
|
||||
|
// */
|
||||
|
// export function costTableInfo(id: ID) {
|
||||
|
// return defHttp.get<CostTableVO>({ url: '/productManagement/costTable/' + id });
|
||||
|
// }
|
||||
|
/** |
||||
|
* 查询造价编制信息详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costTableInfo(id: ID) { |
||||
|
return defHttp.get<CostDetailViewVo>({ |
||||
|
url: '/productManagement/costTable/getCostTableDetail/' + id, |
||||
|
}); |
||||
|
} |
||||
|
/** |
||||
|
* 新增造价编制信息 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costTableAdd(data: CostTableForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/costTable', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新造价编制信息 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costTableUpdate(data: CostTableForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/costTable', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除造价编制信息 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function costTableRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/costTable/' + id }); |
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
import { CostItemDetailVO } from '../costItemDetail/model'; |
||||
|
export interface CostTableVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 项目名称 |
||||
|
*/ |
||||
|
projectName: string; |
||||
|
|
||||
|
/** |
||||
|
* 造价日期 |
||||
|
*/ |
||||
|
costDate: string; |
||||
|
|
||||
|
/** |
||||
|
* 总投资 |
||||
|
*/ |
||||
|
totalInvestment: number; |
||||
|
} |
||||
|
|
||||
|
export interface CostTableForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 项目名称 |
||||
|
*/ |
||||
|
projectName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 造价日期 |
||||
|
*/ |
||||
|
costDate?: string; |
||||
|
|
||||
|
/** |
||||
|
* 总投资 |
||||
|
*/ |
||||
|
totalInvestment?: number; |
||||
|
} |
||||
|
|
||||
|
export interface CostTableQuery extends PageQuery { |
||||
|
/** |
||||
|
* 项目名称 |
||||
|
*/ |
||||
|
projectName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 造价日期 |
||||
|
*/ |
||||
|
costDate?: string; |
||||
|
|
||||
|
/** |
||||
|
* 总投资 |
||||
|
*/ |
||||
|
totalInvestment?: number; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
||||
|
export interface CostDetailViewVo extends CostTableVO { |
||||
|
costItemDetailList?: CostItemDetailVO[]; |
||||
|
} |
@ -0,0 +1,87 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { PersonProductModelVO, PersonProductModelForm, PersonProductModelQuery } from './model'; |
||||
|
import { PersonProductModelDetailsVO } from './personProductModelDetails/model'; |
||||
|
/** |
||||
|
* 根据id查询个人产品模型详情 |
||||
|
* @param id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductGetModelDetails(id: ID) { |
||||
|
return defHttp.get<PersonProductModelDetailsVO[]>({ |
||||
|
url: '/productManagement/personProductModel/getModelDetails/' + id, |
||||
|
}); |
||||
|
} |
||||
|
/** |
||||
|
* 新增个人产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function addPersonProductModel(data: PersonProductModelForm) { |
||||
|
return defHttp.post<string>({ url: '/productManagement/personProductModel/addModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新个人产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function updatePersonProductModel(data: PersonProductModelForm) { |
||||
|
return defHttp.put<string>({ url: '/productManagement/personProductModel/editModel', data }); |
||||
|
} |
||||
|
/** |
||||
|
* 查询个人产品模型列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelList(params?: PersonProductModelQuery) { |
||||
|
return defHttp.get<PersonProductModelVO[]>({ |
||||
|
url: '/productManagement/personProductModel/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出个人产品模型列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelExport(params?: PersonProductModelQuery) { |
||||
|
return commonExport('/productManagement/personProductModel/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询个人产品模型详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelInfo(id: ID) { |
||||
|
return defHttp.get<PersonProductModelVO>({ url: '/productManagement/personProductModel/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增个人产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelAdd(data: PersonProductModelForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/personProductModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新个人产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelUpdate(data: PersonProductModelForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/personProductModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除个人产品模型 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/personProductModel/' + id }); |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface PersonProductModelVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 个人产品指标描述 |
||||
|
*/ |
||||
|
description: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary: string; |
||||
|
} |
||||
|
|
||||
|
export interface PersonProductModelForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 个人产品指标描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
} |
||||
|
|
||||
|
export interface PersonProductModelQuery extends PageQuery { |
||||
|
/** |
||||
|
* 个人产品指标描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,66 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { |
||||
|
PersonProductModelDetailsVO, |
||||
|
PersonProductModelDetailsForm, |
||||
|
PersonProductModelDetailsQuery, |
||||
|
} from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询个人产品模型详情列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelDetailsList(params?: PersonProductModelDetailsQuery) { |
||||
|
return defHttp.get<PersonProductModelDetailsVO[]>({ |
||||
|
url: '/productManagement/personProductModelDetails/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出个人产品模型详情列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelDetailsExport(params?: PersonProductModelDetailsQuery) { |
||||
|
return commonExport('/productManagement/personProductModelDetails/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询个人产品模型详情详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelDetailsInfo(id: ID) { |
||||
|
return defHttp.get<PersonProductModelDetailsVO>({ |
||||
|
url: '/productManagement/personProductModelDetails/' + id, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增个人产品模型详情 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelDetailsAdd(data: PersonProductModelDetailsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/personProductModelDetails', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新个人产品模型详情 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelDetailsUpdate(data: PersonProductModelDetailsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/personProductModelDetails', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除个人产品模型详情 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductModelDetailsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/personProductModelDetails/' + id }); |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface PersonProductModelDetailsVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 个人产品型号表id |
||||
|
*/ |
||||
|
modelId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary: string; |
||||
|
} |
||||
|
|
||||
|
export interface PersonProductModelDetailsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 个人产品型号表id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
} |
||||
|
|
||||
|
export interface PersonProductModelDetailsQuery extends PageQuery { |
||||
|
/** |
||||
|
* 个人产品型号表id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,87 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { |
||||
|
PersonProductsVO, |
||||
|
PersonProductsForm, |
||||
|
PersonProductsQuery, |
||||
|
PersonProductsImportParam, |
||||
|
} from './model'; |
||||
|
import { ContentTypeEnum } from '@/enums/httpEnum'; |
||||
|
|
||||
|
enum Api { |
||||
|
personProductsImport = '/productManagement/personProducts/personProductsImportData', |
||||
|
} |
||||
|
/** |
||||
|
* 从excel导入用户 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductsImport(data: PersonProductsImportParam) { |
||||
|
return defHttp.post( |
||||
|
{ |
||||
|
url: Api.personProductsImport, |
||||
|
data, |
||||
|
headers: { |
||||
|
'Content-Type': ContentTypeEnum.FORM_DATA, |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
// 返回的msg包含<br> 用modal显示
|
||||
|
successMessageMode: 'modal', |
||||
|
errorMessageMode: 'modal', |
||||
|
}, |
||||
|
); |
||||
|
} |
||||
|
/** |
||||
|
* 查询个人产品管理列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductsList(params?: PersonProductsQuery) { |
||||
|
return defHttp.get<PersonProductsVO[]>({ url: '/productManagement/personProducts/list', params }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出个人产品管理列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductsExport(params?: PersonProductsQuery) { |
||||
|
return commonExport('/productManagement/personProducts/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询个人产品管理详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductsInfo(id: ID) { |
||||
|
return defHttp.get<PersonProductsVO>({ url: '/productManagement/personProducts/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增个人产品管理 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductsAdd(data: PersonProductsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/personProducts', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新个人产品管理 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductsUpdate(data: PersonProductsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/personProducts', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除个人产品管理 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function personProductsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/personProducts/' + id }); |
||||
|
} |
@ -0,0 +1,226 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
export interface PersonProductsImportParam { |
||||
|
updateSupport: boolean; |
||||
|
file: File | Blob; |
||||
|
} |
||||
|
|
||||
|
export interface PersonProductsVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation: string; |
||||
|
|
||||
|
/** |
||||
|
* 个人产品规格 |
||||
|
*/ |
||||
|
productSpecifications: string; |
||||
|
|
||||
|
/** |
||||
|
* 关联厂商产品id |
||||
|
*/ |
||||
|
supplierProductsId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks: string; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
image: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate: number; |
||||
|
} |
||||
|
|
||||
|
export interface PersonProductsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation?: string; |
||||
|
|
||||
|
/** |
||||
|
* 个人产品规格 |
||||
|
*/ |
||||
|
productSpecifications?: string; |
||||
|
|
||||
|
/** |
||||
|
* 关联厂商产品id |
||||
|
*/ |
||||
|
supplierProductsId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks?: string; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
image?: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate?: number; |
||||
|
|
||||
|
/** |
||||
|
* 分类id |
||||
|
*/ |
||||
|
categoryId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 型号id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
} |
||||
|
|
||||
|
export interface PersonProductsQuery extends PageQuery { |
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation?: string; |
||||
|
|
||||
|
/** |
||||
|
* 个人产品规格 |
||||
|
*/ |
||||
|
productSpecifications?: string; |
||||
|
|
||||
|
/** |
||||
|
* 关联厂商产品id |
||||
|
*/ |
||||
|
supplierProductsId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks?: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate?: number; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,89 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { |
||||
|
SupplierProductModelVO, |
||||
|
SupplierProductModelForm, |
||||
|
SupplierProductModelQuery, |
||||
|
} from './model'; |
||||
|
import { SupplierProductModelDetailsVO } from './supplierProductModelDetails/model'; |
||||
|
|
||||
|
export function supplierProductGetModelDetails(id: ID) { |
||||
|
return defHttp.get<SupplierProductModelDetailsVO[]>({ |
||||
|
url: '/productManagement/supplierProductModel/getModelDetails/' + id, |
||||
|
}); |
||||
|
} |
||||
|
/** |
||||
|
* 新增个人产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function addSupplierProductModel(data: SupplierProductModelForm) { |
||||
|
return defHttp.post<string>({ url: '/productManagement/supplierProductModel/addModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新个人产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function updateSupplierProductModel(data: SupplierProductModelForm) { |
||||
|
return defHttp.put<string>({ url: '/productManagement/supplierProductModel/editModel', data }); |
||||
|
} |
||||
|
/** |
||||
|
* 查询供应商产品模型列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelList(params?: SupplierProductModelQuery) { |
||||
|
return defHttp.get<SupplierProductModelVO[]>({ |
||||
|
url: '/productManagement/supplierProductModel/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出供应商产品模型列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelExport(params?: SupplierProductModelQuery) { |
||||
|
return commonExport('/productManagement/supplierProductModel/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询供应商产品模型详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelInfo(id: ID) { |
||||
|
return defHttp.get<SupplierProductModelVO>({ |
||||
|
url: '/productManagement/supplierProductModel/' + id, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增供应商产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelAdd(data: SupplierProductModelForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/supplierProductModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新供应商产品模型 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelUpdate(data: SupplierProductModelForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/supplierProductModel', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除供应商产品模型 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/supplierProductModel/' + id }); |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface SupplierProductModelVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商产品指标描述 |
||||
|
*/ |
||||
|
description: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary: string; |
||||
|
} |
||||
|
|
||||
|
export interface SupplierProductModelForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商产品指标描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
} |
||||
|
|
||||
|
export interface SupplierProductModelQuery extends PageQuery { |
||||
|
/** |
||||
|
* 供应商产品指标描述 |
||||
|
*/ |
||||
|
description?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品型号模板id |
||||
|
*/ |
||||
|
productModelTemplateId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { |
||||
|
SupplierProductModelDetailsVO, |
||||
|
SupplierProductModelDetailsForm, |
||||
|
SupplierProductModelDetailsQuery, |
||||
|
} from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询供应商产品模型详细列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelDetailsList(params?: SupplierProductModelDetailsQuery) { |
||||
|
return defHttp.get<SupplierProductModelDetailsVO[]>({ |
||||
|
url: '/productManagement/supplierProductModelDetails/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出供应商产品模型详细列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelDetailsExport(params?: SupplierProductModelDetailsQuery) { |
||||
|
return commonExport('/productManagement/supplierProductModelDetails/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询供应商产品模型详细详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelDetailsInfo(id: ID) { |
||||
|
return defHttp.get<SupplierProductModelDetailsVO>({ |
||||
|
url: '/productManagement/supplierProductModelDetails/' + id, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增供应商产品模型详细 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelDetailsAdd(data: SupplierProductModelDetailsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/supplierProductModelDetails', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新供应商产品模型详细 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelDetailsUpdate(data: SupplierProductModelDetailsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/supplierProductModelDetails', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除供应商产品模型详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductModelDetailsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ |
||||
|
url: '/productManagement/supplierProductModelDetails/' + id, |
||||
|
}); |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface SupplierProductModelDetailsVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商产品型号表id |
||||
|
*/ |
||||
|
modelId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary: string; |
||||
|
} |
||||
|
|
||||
|
export interface SupplierProductModelDetailsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商产品型号表id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
} |
||||
|
|
||||
|
export interface SupplierProductModelDetailsQuery extends PageQuery { |
||||
|
/** |
||||
|
* 供应商产品型号表id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
paramName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 指标参数 |
||||
|
*/ |
||||
|
parameterValue?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否关键指标 |
||||
|
*/ |
||||
|
isKeyParameter?: string; |
||||
|
|
||||
|
/** |
||||
|
* 是否临时数据 |
||||
|
*/ |
||||
|
isTemporary?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { SupplierProductsVO, SupplierProductsForm, SupplierProductsQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询供应商产品管理列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductsList(params?: SupplierProductsQuery) { |
||||
|
return defHttp.get<SupplierProductsVO[]>({ |
||||
|
url: '/productManagement/supplierProducts/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出供应商产品管理列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductsExport(params?: SupplierProductsQuery) { |
||||
|
return commonExport('/productManagement/supplierProducts/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询供应商产品管理详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductsInfo(id: ID) { |
||||
|
return defHttp.get<SupplierProductsVO>({ url: '/productManagement/supplierProducts/' + id }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增供应商产品管理 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductsAdd(data: SupplierProductsForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/supplierProducts', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新供应商产品管理 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductsUpdate(data: SupplierProductsForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/supplierProducts', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除供应商产品管理 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierProductsRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/supplierProducts/' + id }); |
||||
|
} |
@ -0,0 +1,222 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface SupplierProductsVO { |
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商产品规格 |
||||
|
*/ |
||||
|
productSpecifications: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks: string; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
image: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate: number; |
||||
|
|
||||
|
/** |
||||
|
* 分类id |
||||
|
*/ |
||||
|
categoryId: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 型号id |
||||
|
*/ |
||||
|
modelId: string | number; |
||||
|
} |
||||
|
|
||||
|
export interface SupplierProductsForm extends BaseEntity { |
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商产品规格 |
||||
|
*/ |
||||
|
productSpecifications?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation?: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks?: string; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
image?: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate?: number; |
||||
|
|
||||
|
/** |
||||
|
* 分类id |
||||
|
*/ |
||||
|
categoryId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 型号id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
} |
||||
|
|
||||
|
export interface SupplierProductsQuery extends PageQuery { |
||||
|
/** |
||||
|
* 供应商id |
||||
|
*/ |
||||
|
supplierInformationId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商产品规格 |
||||
|
*/ |
||||
|
productSpecifications?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品名称 |
||||
|
*/ |
||||
|
productName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 产品标识(型号) |
||||
|
*/ |
||||
|
productIdentity?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 产品价格 |
||||
|
*/ |
||||
|
productPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 信息来源 |
||||
|
*/ |
||||
|
sourceInformation?: string; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
remarks?: string; |
||||
|
|
||||
|
/** |
||||
|
* 图片 |
||||
|
*/ |
||||
|
image?: string; |
||||
|
|
||||
|
/** |
||||
|
* 品牌 |
||||
|
*/ |
||||
|
brand?: string; |
||||
|
|
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
unit?: string; |
||||
|
|
||||
|
/** |
||||
|
* 除税价 |
||||
|
*/ |
||||
|
exTaxPrice?: number; |
||||
|
|
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
taxrate?: number; |
||||
|
|
||||
|
/** |
||||
|
* 分类id |
||||
|
*/ |
||||
|
categoryId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 型号id |
||||
|
*/ |
||||
|
modelId?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
@ -0,0 +1,62 @@ |
|||||
|
import { defHttp } from '@/utils/http/axios'; |
||||
|
import { ID, IDS, commonExport } from '@/api/base'; |
||||
|
import { SupplierInformationVO, SupplierInformationForm, SupplierInformationQuery } from './model'; |
||||
|
|
||||
|
/** |
||||
|
* 查询供应商信息管理列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierInformationList(params?: SupplierInformationQuery) { |
||||
|
return defHttp.get<SupplierInformationVO[]>({ |
||||
|
url: '/productManagement/supplierInformation/list', |
||||
|
params, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出供应商信息管理列表 |
||||
|
* @param params |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierInformationExport(params?: SupplierInformationQuery) { |
||||
|
return commonExport('/productManagement/supplierInformation/export', params ?? {}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询供应商信息管理详细 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierInformationInfo(id: ID) { |
||||
|
return defHttp.get<SupplierInformationVO>({ |
||||
|
url: '/productManagement/supplierInformation/' + id, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增供应商信息管理 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierInformationAdd(data: SupplierInformationForm) { |
||||
|
return defHttp.postWithMsg<void>({ url: '/productManagement/supplierInformation', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新供应商信息管理 |
||||
|
* @param data |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierInformationUpdate(data: SupplierInformationForm) { |
||||
|
return defHttp.putWithMsg<void>({ url: '/productManagement/supplierInformation', data }); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除供应商信息管理 |
||||
|
* @param id id |
||||
|
* @returns |
||||
|
*/ |
||||
|
export function supplierInformationRemove(id: ID | IDS) { |
||||
|
return defHttp.deleteWithMsg<void>({ url: '/productManagement/supplierInformation/' + id }); |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
import { BaseEntity, PageQuery } from '@/api/base'; |
||||
|
|
||||
|
export interface SupplierInformationVO { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商名称 |
||||
|
*/ |
||||
|
supplierName: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商联系人 |
||||
|
*/ |
||||
|
supplierContacts: string; |
||||
|
|
||||
|
/** |
||||
|
* 职位 |
||||
|
*/ |
||||
|
position: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商联系电话 |
||||
|
*/ |
||||
|
supplierContactsPhone: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商类型 |
||||
|
*/ |
||||
|
supplierType: string; |
||||
|
} |
||||
|
|
||||
|
export interface SupplierInformationForm extends BaseEntity { |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
id?: string | number; |
||||
|
|
||||
|
/** |
||||
|
* 供应商名称 |
||||
|
*/ |
||||
|
supplierName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商联系人 |
||||
|
*/ |
||||
|
supplierContacts?: string; |
||||
|
|
||||
|
/** |
||||
|
* 职位 |
||||
|
*/ |
||||
|
position?: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商联系电话 |
||||
|
*/ |
||||
|
supplierContactsPhone?: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商类型 |
||||
|
*/ |
||||
|
supplierType?: string; |
||||
|
} |
||||
|
|
||||
|
export interface SupplierInformationQuery extends PageQuery { |
||||
|
/** |
||||
|
* 供应商名称 |
||||
|
*/ |
||||
|
supplierName?: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商联系人 |
||||
|
*/ |
||||
|
supplierContacts?: string; |
||||
|
|
||||
|
/** |
||||
|
* 职位 |
||||
|
*/ |
||||
|
position?: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商联系电话 |
||||
|
*/ |
||||
|
supplierContactsPhone?: string; |
||||
|
|
||||
|
/** |
||||
|
* 供应商类型 |
||||
|
*/ |
||||
|
supplierType?: string; |
||||
|
|
||||
|
/** |
||||
|
* 日期范围参数 |
||||
|
*/ |
||||
|
params?: any; |
||||
|
} |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 294 KiB |
After Width: | Height: | Size: 386 KiB |
After Width: | Height: | Size: 1.8 MiB |
@ -0,0 +1,234 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<Upload |
||||
|
v-bind="$attrs" |
||||
|
v-model:file-list="fileList" |
||||
|
:list-type="listType" |
||||
|
:accept="getStringAccept" |
||||
|
:multiple="multiple" |
||||
|
:maxCount="maxNumber" |
||||
|
:before-upload="beforeUpload" |
||||
|
:custom-request="request" |
||||
|
:disabled="disabled" |
||||
|
@preview="handlePreview" |
||||
|
@remove="handleRemove" |
||||
|
> |
||||
|
<div v-if="fileList && fileList.length < maxNumber"> |
||||
|
<plus-outlined /> |
||||
|
<div style="margin-top: 8px">{{ t('component.upload.upload') }}</div> |
||||
|
</div> |
||||
|
</Upload> |
||||
|
<Modal :open="previewOpen" :title="previewTitle" :footer="null" @cancel="handleCancel"> |
||||
|
<img alt="" style="width: 100%" :src="previewImage" /> |
||||
|
</Modal> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script lang="ts" setup> |
||||
|
import { ref, toRefs, watch } from 'vue'; |
||||
|
import { PlusOutlined } from '@ant-design/icons-vue'; |
||||
|
import type { UploadFile, UploadProps } from 'ant-design-vue'; |
||||
|
import { Modal, Upload } from 'ant-design-vue'; |
||||
|
import { UploadRequestOption } from 'ant-design-vue/lib/vc-upload/interface'; |
||||
|
import { useMessage } from '@/hooks/web/useMessage'; |
||||
|
import { isArray, isFunction, isObject, isString } from '@/utils/is'; |
||||
|
import { warn } from '@/utils/log'; |
||||
|
import { useI18n } from '@/hooks/web/useI18n'; |
||||
|
import { useUploadType } from '../hooks/useUpload'; |
||||
|
import { uploadContainerProps } from '../props'; |
||||
|
import { checkFileType } from '../helper'; |
||||
|
import { UploadResultStatus } from '@/components/Upload/src/types/typing'; |
||||
|
import { get, omit } from 'lodash-es'; |
||||
|
|
||||
|
defineOptions({ name: 'ImageUpload' }); |
||||
|
|
||||
|
const emit = defineEmits(['change', 'update:value', 'delete']); |
||||
|
const props = defineProps({ |
||||
|
...omit(uploadContainerProps, ['previewColumns', 'beforePreviewData']), |
||||
|
}); |
||||
|
const { t } = useI18n(); |
||||
|
const { createMessage } = useMessage(); |
||||
|
const { accept, helpText, maxNumber, maxSize } = toRefs(props); |
||||
|
const isInnerOperate = ref<boolean>(false); |
||||
|
const { getStringAccept } = useUploadType({ |
||||
|
acceptRef: accept, |
||||
|
helpTextRef: helpText, |
||||
|
maxNumberRef: maxNumber, |
||||
|
maxSizeRef: maxSize, |
||||
|
}); |
||||
|
const previewOpen = ref<boolean>(false); |
||||
|
const previewImage = ref<string>(''); |
||||
|
const previewTitle = ref<string>(''); |
||||
|
|
||||
|
const fileList = ref<UploadProps['fileList']>([]); |
||||
|
const isLtMsg = ref<boolean>(true); |
||||
|
const isActMsg = ref<boolean>(true); |
||||
|
const isFirstRender = ref<boolean>(true); |
||||
|
let fileData = ref() |
||||
|
watch( |
||||
|
() => props.value, |
||||
|
(v) => { |
||||
|
if (isInnerOperate.value) { |
||||
|
isInnerOperate.value = false; |
||||
|
return; |
||||
|
} |
||||
|
let value: string[] = []; |
||||
|
if (v) { |
||||
|
if (isArray(v)) { |
||||
|
value = v; |
||||
|
} else { |
||||
|
value.push(v); |
||||
|
} |
||||
|
fileList.value = value.map((item, i) => { |
||||
|
if (item && isString(item)) { |
||||
|
return { |
||||
|
uid: -i + '', |
||||
|
name: item.substring(item.lastIndexOf('/') + 1), |
||||
|
status: 'done', |
||||
|
url: item, |
||||
|
}; |
||||
|
} else if (item && isObject(item)) { |
||||
|
return item; |
||||
|
} else { |
||||
|
return; |
||||
|
} |
||||
|
}) as UploadProps['fileList']; |
||||
|
} |
||||
|
emit('update:value', value); |
||||
|
if (!isFirstRender.value) { |
||||
|
emit('change', value); |
||||
|
isFirstRender.value = false; |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
immediate: true, |
||||
|
deep: true, |
||||
|
}, |
||||
|
); |
||||
|
|
||||
|
function getBase64<T extends string | ArrayBuffer | null>(file: File) { |
||||
|
return new Promise<T>((resolve, reject) => { |
||||
|
const reader = new FileReader(); |
||||
|
reader.readAsDataURL(file); |
||||
|
reader.onload = () => { |
||||
|
resolve(reader.result as T); |
||||
|
}; |
||||
|
reader.onerror = (error) => reject(error); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
const handlePreview = async (file: UploadFile) => { |
||||
|
if (!file.url && !file.preview) { |
||||
|
file.preview = await getBase64<string>(file.originFileObj!); |
||||
|
} |
||||
|
previewImage.value = file.url || file.preview || ''; |
||||
|
previewOpen.value = true; |
||||
|
previewTitle.value = |
||||
|
file.name || previewImage.value.substring(previewImage.value.lastIndexOf('/') + 1); |
||||
|
}; |
||||
|
|
||||
|
const handleRemove = async (file: UploadFile) => { |
||||
|
if (fileList.value) { |
||||
|
const index = fileList.value.findIndex((item) => item.uid === file.uid); |
||||
|
index !== -1 && fileList.value.splice(index, 1); |
||||
|
const value = getValue(); |
||||
|
isInnerOperate.value = true; |
||||
|
emit('update:value', value); |
||||
|
emit('change', value); |
||||
|
emit('delete', file); |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
const handleCancel = () => { |
||||
|
previewOpen.value = false; |
||||
|
previewTitle.value = ''; |
||||
|
}; |
||||
|
|
||||
|
const beforeUpload = (file: File) => { |
||||
|
const { maxSize, accept } = props; |
||||
|
const isAct = checkFileType(file, accept); |
||||
|
if (!isAct) { |
||||
|
createMessage.error(t('component.upload.acceptUpload', [accept])); |
||||
|
isActMsg.value = false; |
||||
|
// 防止弹出多个错误提示 |
||||
|
setTimeout(() => (isActMsg.value = true), 1000); |
||||
|
} |
||||
|
const isLt = file.size / 1024 / 1024 > maxSize; |
||||
|
if (isLt) { |
||||
|
createMessage.error(t('component.upload.maxSizeMultiple', [maxSize])); |
||||
|
isLtMsg.value = false; |
||||
|
// 防止弹出多个错误提示 |
||||
|
setTimeout(() => (isLtMsg.value = true), 1000); |
||||
|
} |
||||
|
return (isAct && !isLt) || Upload.LIST_IGNORE; |
||||
|
}; |
||||
|
async function request(info: UploadRequestOption<any>) { |
||||
|
fileData.value=info |
||||
|
isInnerOperate.value = true; |
||||
|
const value = getValue(); |
||||
|
let a= fileList.value |
||||
|
emit('update:value', a); |
||||
|
emit('change', value); |
||||
|
} |
||||
|
function submit(){ |
||||
|
customRequest(fileData.value) |
||||
|
} |
||||
|
async function customRequest(info: UploadRequestOption<any>) { |
||||
|
const { api, uploadParams = {}, name, filename, resultField } = props; |
||||
|
if (!api || !isFunction(api)) { |
||||
|
return warn('upload api must exist and be a function'); |
||||
|
} |
||||
|
try { |
||||
|
const res = await api?.({ |
||||
|
data: { |
||||
|
...uploadParams, |
||||
|
}, |
||||
|
file: info.file, |
||||
|
name: name, |
||||
|
filename: filename, |
||||
|
}); |
||||
|
if (props.resultField) { |
||||
|
let result = get(res, resultField); |
||||
|
info.onSuccess!(result); |
||||
|
} else { |
||||
|
// 不传入 resultField 的情况 |
||||
|
info.onSuccess!(res); |
||||
|
} |
||||
|
const value = getValue(); |
||||
|
isInnerOperate.value = true; |
||||
|
emit('update:value', value); |
||||
|
emit('change', value); |
||||
|
} catch (e: any) { |
||||
|
console.log(e); |
||||
|
info.onError!(e); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
function getValue() { |
||||
|
const list = (fileList.value || []) |
||||
|
.filter((item) => item?.status === UploadResultStatus.DONE) |
||||
|
.map((item: any) => { |
||||
|
if (item?.response && props?.resultField) { |
||||
|
return item?.response; |
||||
|
} |
||||
|
//注意这里取的key为 url |
||||
|
return item?.url || item?.response?.url; |
||||
|
}); |
||||
|
return list; |
||||
|
} |
||||
|
defineExpose({ |
||||
|
submit |
||||
|
}); |
||||
|
</script> |
||||
|
|
||||
|
<style lang="less"> |
||||
|
.ant-upload-select-picture-card i { |
||||
|
color: #999; |
||||
|
font-size: 32px; |
||||
|
} |
||||
|
|
||||
|
.ant-upload-select-picture-card .ant-upload-text { |
||||
|
margin-top: 8px; |
||||
|
color: #666; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,115 @@ |
|||||
|
// 任务类型枚举
|
||||
|
export const TaskType = { |
||||
|
SCHEME_REVIEW: { |
||||
|
value: 'scheme_review', |
||||
|
label: '方案审核', |
||||
|
icon: 'mdi:file-document-check-outline', |
||||
|
color: '#2F54EB', |
||||
|
path:"/documentReview/DocumentTasks" |
||||
|
}, |
||||
|
CONTRACT_REVIEW: { |
||||
|
value: 'contract_review', |
||||
|
label: '合同审核', |
||||
|
icon: 'fluent-mdl2:document-approval', |
||||
|
color: '#722ED1', |
||||
|
path:"/contractReview/ContractualTasks" |
||||
|
}, |
||||
|
TENDER_REVIEW: { |
||||
|
value: 'tender_review', |
||||
|
label: '招投标审核', |
||||
|
icon: 'heroicons:clipboard-document-check-20-solid', |
||||
|
color: '#13C2C2', |
||||
|
path:"/tenderReview/TenderSummaryTask" |
||||
|
}, |
||||
|
SCHEME_EVALUATION: { // 新增方案评价
|
||||
|
value: 'scheme_evaluation', |
||||
|
label: '方案评价', |
||||
|
icon: 'mdi:file-document-edit-outline', // 使用文档编辑图标
|
||||
|
color: '#FA8C16', // 使用橙色系
|
||||
|
path:"/schemEvaluation/SchemeEvaluation" |
||||
|
}, |
||||
|
PROJECT_DOCUMENT_REVIEW: { // 新增项目文档审核
|
||||
|
value: 'project_document_review', |
||||
|
label: '项目文档审核', |
||||
|
icon: 'mdi:folder-text-outline', // 使用文件夹文档图标
|
||||
|
color: '#1890FF', // 使用蓝色系
|
||||
|
path:"/projectDocumentReview/ProjectDocumentReview" |
||||
|
} |
||||
|
} as const; |
||||
|
|
||||
|
// 方案审核子任务
|
||||
|
export const SchemeTask = { |
||||
|
DOCUMENT_SIMILARITY: { |
||||
|
value: 'checkRepeatText', |
||||
|
label: '文档相似性检查', |
||||
|
icon: 'arcticons:onlyoffice-documents', |
||||
|
color: '#1890FF' |
||||
|
}, |
||||
|
DOCUMENT_ERROR: { |
||||
|
value: 'checkDocumentError', |
||||
|
label: '文档纠错', |
||||
|
icon: 'solar:document-medicine-bold-duotone', |
||||
|
color: '#F5222D' |
||||
|
}, |
||||
|
|
||||
|
PLACE_CHECK: { |
||||
|
value: 'checkPlaceName', |
||||
|
label: '地名检查', |
||||
|
icon: 'solar:map-point-search-bold-duotone', |
||||
|
color: '#52C41A' |
||||
|
}, |
||||
|
COMPANY_CHECK: { |
||||
|
value: 'checkCompanyName', |
||||
|
label: '公司名称检查', |
||||
|
icon: 'mdi:company', |
||||
|
color: '#2F54EB' |
||||
|
}, |
||||
|
TITLE_CHECK: { |
||||
|
value: 'checkTitleName', |
||||
|
label: '文档结构检查', |
||||
|
icon: 'mdi:file-tree-outline', |
||||
|
color: '#722ED1' |
||||
|
} |
||||
|
} as const; |
||||
|
|
||||
|
// 合同审核子任务
|
||||
|
export const ContractTask = { |
||||
|
CONTRACT_REVIEW: { |
||||
|
value: 'contractReview', |
||||
|
label: '合同审核', |
||||
|
icon: 'fluent-mdl2:document-approval', |
||||
|
color: '#722ED1' |
||||
|
} |
||||
|
} as const; |
||||
|
|
||||
|
// 招标审核子任务
|
||||
|
export const TenderTask = { |
||||
|
TENDER_SUMMARY: { |
||||
|
value: 'tenderSummary', |
||||
|
label: '招标摘要', |
||||
|
icon: 'mdi:text-box-outline', |
||||
|
color: '#2B7DE9' |
||||
|
} |
||||
|
} as const; |
||||
|
|
||||
|
// 招标审核子任务
|
||||
|
export const SchemeEvaluation = { |
||||
|
SCHEME_EVALUATION: { |
||||
|
value: 'schemEvaluation', |
||||
|
label: '方案评价', |
||||
|
icon: 'iconoir:doc-star', |
||||
|
color: '#13C2C2' |
||||
|
}, |
||||
|
} as const; |
||||
|
/** |
||||
|
* 从对象中提取指定键的值 |
||||
|
* @param obj 要提取的对象 |
||||
|
* @param key 要提取的键名 |
||||
|
* @returns any[] 提取的值数组 |
||||
|
*/ |
||||
|
export const extractValues = <T extends Record<string, { [key: string]: any }>>( |
||||
|
obj: T, |
||||
|
key: string |
||||
|
): any[] => { |
||||
|
return Object.values(obj).map(item => item[key]); |
||||
|
}; |